rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
return _apply(s.find, args)
|
return s.find(*args)
|
def find(s, *args): """find(s, sub [,start [,end]]) -> in Return the lowest index in s where substring sub is found, such that sub is contained within s[start,end]. Optional arguments start and end are interpreted as in slice notation. Return -1 on failure. """ return _apply(s.find, args)
|
4e577568f34ac8283d2070929bf3c3090b3e722f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4e577568f34ac8283d2070929bf3c3090b3e722f/string.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
12,
87,
16,
380,
1968,
4672,
3536,
4720,
12,
87,
16,
720,
306,
16,
1937,
306,
16,
409,
65,
5717,
317,
316,
225,
2000,
326,
11981,
770,
316,
272,
1625,
3019,
720,
353,
1392,
16,
4123,
716,
720,
353,
7542,
3470,
272,
63,
1937,
16,
409,
8009,
225,
4055,
1775,
787,
471,
679,
854,
19898,
487,
316,
2788,
12155,
18,
225,
2000,
300,
21,
603,
5166,
18,
225,
3536,
327,
272,
18,
4720,
30857,
1968,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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716,
720,
353,
7542,
3470,
272,
63,
1937,
16,
409,
8009,
225,
4055,
1775,
787,
471,
679,
854,
19898,
487,
316,
2788,
12155,
18,
225,
2000,
300,
21,
603,
5166,
18,
225,
3536,
327,
272,
18,
4720,
30857,
1968,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
childIds = [i.getID() for i in selected if i.isDownloaded()]
|
childIDs = [i.getID() for i in selected if i.isDownloaded()]
|
def addToNewPlaylist(self): selected = controller.selection.getSelectedItems() childIds = [i.getID() for i in selected if i.isDownloaded()] playlist.createNewPlaylist(childIDs)
|
13c920d68b32ab3419331d8792f5d9c5a62d577f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/13c920d68b32ab3419331d8792f5d9c5a62d577f/app.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9604,
1908,
30194,
12,
2890,
4672,
3170,
273,
2596,
18,
10705,
18,
588,
7416,
3126,
1435,
1151,
5103,
273,
306,
77,
18,
588,
734,
1435,
364,
277,
316,
3170,
309,
277,
18,
291,
4164,
4230,
1435,
65,
16428,
18,
2640,
1908,
30194,
12,
3624,
5103,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9604,
1908,
30194,
12,
2890,
4672,
3170,
273,
2596,
18,
10705,
18,
588,
7416,
3126,
1435,
1151,
5103,
273,
306,
77,
18,
588,
734,
1435,
364,
277,
316,
3170,
309,
277,
18,
291,
4164,
4230,
1435,
65,
16428,
18,
2640,
1908,
30194,
12,
3624,
5103,
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
] |
elif type(t) == types.FunctionType:
|
elif iscallable(t):
|
def func(val): if not hasattr(val, '__iter__'): return False if type(t) in [types.ListType, types.TupleType]: for i in val: if not i in t: return False elif type(t) == types.FunctionType: for i in val: if not t(i): return False else: for i in val: if type(i) != t: return False if size is not None: if isinstance(size, (int, long)): return len(val) == size elif hasattr(size, '___iter__') and len(size) == 2: if size[0] is not None and size[1] is not None: return len(val) >= size[0] and len(val) <= size[1] elif size[0] is None: return len(val) <= size[1] else: return len(val) >= size[0] else: raise exceptions.ValueError('Invalid size specification for simuOpt.valueIsList') return True
|
0808dd362a5f2dd5d90d950500fd972461718062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/0808dd362a5f2dd5d90d950500fd972461718062/simuOpt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
12,
1125,
4672,
309,
486,
3859,
12,
1125,
16,
4940,
2165,
7250,
4672,
327,
1083,
309,
618,
12,
88,
13,
316,
306,
2352,
18,
19366,
16,
1953,
18,
9038,
559,
14542,
364,
277,
316,
1244,
30,
309,
486,
277,
316,
268,
30,
327,
1083,
1327,
353,
7293,
12,
88,
4672,
364,
277,
316,
1244,
30,
309,
486,
268,
12,
77,
4672,
327,
1083,
469,
30,
364,
277,
316,
1244,
30,
309,
618,
12,
77,
13,
480,
268,
30,
327,
1083,
309,
963,
353,
486,
599,
30,
309,
1549,
12,
1467,
16,
261,
474,
16,
1525,
3719,
30,
327,
562,
12,
1125,
13,
422,
963,
1327,
3859,
12,
1467,
16,
4940,
67,
2165,
972,
6134,
471,
562,
12,
1467,
13,
422,
576,
30,
309,
963,
63,
20,
65,
353,
486,
599,
471,
963,
63,
21,
65,
353,
486,
599,
30,
327,
562,
12,
1125,
13,
1545,
963,
63,
20,
65,
471,
562,
12,
1125,
13,
1648,
963,
63,
21,
65,
1327,
963,
63,
20,
65,
353,
599,
30,
327,
562,
12,
1125,
13,
1648,
963,
63,
21,
65,
469,
30,
327,
562,
12,
1125,
13,
1545,
963,
63,
20,
65,
469,
30,
1002,
4798,
18,
23610,
2668,
1941,
963,
7490,
364,
3142,
89,
6179,
18,
1132,
2520,
682,
6134,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
12,
1125,
4672,
309,
486,
3859,
12,
1125,
16,
4940,
2165,
7250,
4672,
327,
1083,
309,
618,
12,
88,
13,
316,
306,
2352,
18,
19366,
16,
1953,
18,
9038,
559,
14542,
364,
277,
316,
1244,
30,
309,
486,
277,
316,
268,
30,
327,
1083,
1327,
353,
7293,
12,
88,
4672,
364,
277,
316,
1244,
30,
309,
486,
268,
12,
77,
4672,
327,
1083,
469,
30,
364,
277,
316,
1244,
30,
309,
618,
12,
77,
13,
480,
268,
30,
327,
1083,
309,
963,
353,
486,
599,
30,
309,
1549,
12,
1467,
16,
261,
474,
16,
1525,
3719,
30,
327,
562,
12,
1125,
13,
422,
963,
1327,
3859,
12,
1467,
16,
4940,
67,
2165,
972,
6134,
471,
562,
12,
2
] |
lb_added.Artist = metadata.authors[0]
|
def _update_iTunes_metadata(self, metadata, db_added, lb_added, this_book): ''' ''' if DEBUG: self.log.info(" ITUNES._update_iTunes_metadata()")
|
4751389672c39516c9628cc4280a92d690e8552b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/4751389672c39516c9628cc4280a92d690e8552b/driver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
77,
56,
27490,
67,
4165,
12,
2890,
16,
1982,
16,
1319,
67,
9665,
16,
7831,
67,
9665,
16,
333,
67,
3618,
4672,
9163,
9163,
309,
6369,
30,
365,
18,
1330,
18,
1376,
2932,
24142,
2124,
3991,
6315,
2725,
67,
77,
56,
27490,
67,
4165,
1435,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2725,
67,
77,
56,
27490,
67,
4165,
12,
2890,
16,
1982,
16,
1319,
67,
9665,
16,
7831,
67,
9665,
16,
333,
67,
3618,
4672,
9163,
9163,
309,
6369,
30,
365,
18,
1330,
18,
1376,
2932,
24142,
2124,
3991,
6315,
2725,
67,
77,
56,
27490,
67,
4165,
1435,
7923,
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
] |
|
app = wx.PySimpleApp() import queueHandler import gui gui.initialize(app)
|
def main(): """NVDA's core main loop.
|
013fbcd0ed52e16485a9ee3538a2ac37e28ab9cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/013fbcd0ed52e16485a9ee3538a2ac37e28ab9cc/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
11679,
9793,
1807,
2922,
2774,
2798,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
11679,
9793,
1807,
2922,
2774,
2798,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
__send_message_sendmail(smtpserver, msg)
|
__send_message_sendmail(smtpserver, msg_str)
|
def __send_message(from_addr, to_addr_list, msg, options): """Message sending dispatcher. """ smtpserver = options.smtp_server or config.get('stgit.smtpserver') if smtpserver.startswith('/'): # Use the sendmail tool __send_message_sendmail(smtpserver, msg) else: # Use the SMTP server (we have host and port information) __send_message_smtp(smtpserver, from_addr, to_addr_list, msg, options)
|
9cb369d43b604b8ac24d8aaf23025da531cca473 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12366/9cb369d43b604b8ac24d8aaf23025da531cca473/mail.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4661,
67,
2150,
12,
2080,
67,
4793,
16,
358,
67,
4793,
67,
1098,
16,
1234,
16,
702,
4672,
3536,
1079,
5431,
7393,
18,
3536,
17660,
3567,
273,
702,
18,
20278,
67,
3567,
578,
642,
18,
588,
2668,
334,
6845,
18,
20278,
3567,
6134,
225,
309,
17660,
3567,
18,
17514,
1918,
2668,
2473,
4672,
468,
2672,
326,
1366,
4408,
5226,
1001,
4661,
67,
2150,
67,
4661,
4408,
12,
20278,
3567,
16,
1234,
67,
701,
13,
469,
30,
468,
2672,
326,
18102,
1438,
261,
1814,
1240,
1479,
471,
1756,
1779,
13,
1001,
4661,
67,
2150,
67,
20278,
12,
20278,
3567,
16,
628,
67,
4793,
16,
358,
67,
4793,
67,
1098,
16,
1234,
16,
702,
13,
225,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4661,
67,
2150,
12,
2080,
67,
4793,
16,
358,
67,
4793,
67,
1098,
16,
1234,
16,
702,
4672,
3536,
1079,
5431,
7393,
18,
3536,
17660,
3567,
273,
702,
18,
20278,
67,
3567,
578,
642,
18,
588,
2668,
334,
6845,
18,
20278,
3567,
6134,
225,
309,
17660,
3567,
18,
17514,
1918,
2668,
2473,
4672,
468,
2672,
326,
1366,
4408,
5226,
1001,
4661,
67,
2150,
67,
4661,
4408,
12,
20278,
3567,
16,
1234,
67,
701,
13,
469,
30,
468,
2672,
326,
18102,
1438,
261,
1814,
1240,
1479,
471,
1756,
1779,
13,
1001,
4661,
67,
2150,
67,
20278,
12,
20278,
3567,
16,
628,
67,
4793,
16,
358,
67,
4793,
67,
1098,
16,
1234,
16,
702,
13,
225,
2,
-100,
-100,
-100
] |
elif id == SUBSCRIPTION and len(data) == 5: stime, addr, password, digest, lang = data self.__db[id] = stime, addr, '', password, digest, lang
|
elif type == SUBSCRIPTION: if len(data) == 4: stime, addr, password, digest = data lang = self.preferred_language data = stime, addr, '', password, digest, lang elif len(data) == 5: stime, addr, password, digest, lang = data data = stime, addr, '', password, digest, lang self.__db[id] = type, data
|
def __opendb(self): filename = self.__filename() if self.__db is None: assert self.Locked() try: fp = open(filename) self.__db = marshal.load(fp) fp.close() except IOError, e: if e.errno <> errno.ENOENT: raise self.__db = {} except EOFError, e: # The unmarshalling failed, which means the file is corrupt. # Sigh. Start over. syslog('error', 'request.db file corrupt for list %s, blowing it away.', self.internal_name()) self.__db = {} # Migrate pre-2.1a3 held subscription records to include the # fullname data field. type, version = self.__db.get('version', (IGN, None)) if version is None: # No previous revisiont number, must be upgrading to 2.1a3 or # beyond from some unknown earlier version. for id, (type, data) in self.__db.items(): if id == IGN: pass elif id == HELDMSG and len(data) == 5: # tack on a msgdata dictionary self.__db[id] = data + ({},) elif id == SUBSCRIPTION and len(data) == 5: # a fullname field was added stime, addr, password, digest, lang = data self.__db[id] = stime, addr, '', password, digest, lang
|
f68a8b162368cc9894b421223e4867762ce2dbf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/f68a8b162368cc9894b421223e4867762ce2dbf4/ListAdmin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
556,
409,
70,
12,
2890,
4672,
1544,
273,
365,
16186,
3459,
1435,
309,
365,
16186,
1966,
353,
599,
30,
1815,
365,
18,
8966,
1435,
775,
30,
4253,
273,
1696,
12,
3459,
13,
365,
16186,
1966,
273,
10893,
18,
945,
12,
7944,
13,
4253,
18,
4412,
1435,
1335,
8340,
16,
425,
30,
309,
425,
18,
19088,
2813,
8402,
18,
1157,
51,
2222,
30,
1002,
365,
16186,
1966,
273,
2618,
1335,
6431,
668,
16,
425,
30,
468,
1021,
17606,
310,
2535,
16,
1492,
4696,
326,
585,
353,
16899,
18,
468,
348,
2031,
18,
3603,
1879,
18,
16718,
2668,
1636,
2187,
296,
2293,
18,
1966,
585,
16899,
364,
666,
738,
87,
16,
324,
821,
310,
518,
10804,
1093,
16,
365,
18,
7236,
67,
529,
10756,
365,
16186,
1966,
273,
2618,
468,
26507,
675,
17,
22,
18,
21,
69,
23,
15770,
4915,
3853,
358,
2341,
326,
468,
13321,
501,
652,
18,
618,
16,
1177,
273,
365,
16186,
1966,
18,
588,
2668,
1589,
2187,
261,
10452,
16,
599,
3719,
309,
1177,
353,
599,
30,
468,
2631,
2416,
6350,
88,
1300,
16,
1297,
506,
731,
15210,
358,
576,
18,
21,
69,
23,
578,
468,
17940,
628,
2690,
5917,
13805,
1177,
18,
364,
612,
16,
261,
723,
16,
501,
13,
316,
365,
16186,
1966,
18,
3319,
13332,
309,
612,
422,
467,
8318,
30,
1342,
1327,
612,
422,
670,
5192,
11210,
471,
562,
12,
892,
13,
422,
1381,
30,
468,
268,
484,
603,
279,
1234,
892,
3880,
365,
16186,
1966,
63,
350,
65,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
556,
409,
70,
12,
2890,
4672,
1544,
273,
365,
16186,
3459,
1435,
309,
365,
16186,
1966,
353,
599,
30,
1815,
365,
18,
8966,
1435,
775,
30,
4253,
273,
1696,
12,
3459,
13,
365,
16186,
1966,
273,
10893,
18,
945,
12,
7944,
13,
4253,
18,
4412,
1435,
1335,
8340,
16,
425,
30,
309,
425,
18,
19088,
2813,
8402,
18,
1157,
51,
2222,
30,
1002,
365,
16186,
1966,
273,
2618,
1335,
6431,
668,
16,
425,
30,
468,
1021,
17606,
310,
2535,
16,
1492,
4696,
326,
585,
353,
16899,
18,
468,
348,
2031,
18,
3603,
1879,
18,
16718,
2668,
1636,
2187,
296,
2293,
18,
1966,
585,
16899,
364,
666,
738,
87,
16,
324,
821,
310,
518,
10804,
1093,
16,
365,
2
] |
zapfile.write(">%s</block>" % xmlify(replacement))
|
zapfile.write("\">%s</block>" % xmlify(replacement))
|
def write_block (zapfile, adclass, pattern, replacement=None): #print "%s block %s => %s" % (adclass, `pattern`, `replacement`) d = get_rule_dict(adclass, pattern) zapfile.write("""<block title="%(title)s" desc="%(desc)s" url="%(url)s" """ % d) if replacement is not None: zapfile.write(">%s</block>" % xmlify(replacement)) else: zapfile.write("/>") zapfile.write("\n")
|
657f0d0ee0e77459d91104d389ffabd1966868e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/657f0d0ee0e77459d91104d389ffabd1966868e0/adzap2wc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2629,
261,
94,
438,
768,
16,
1261,
1106,
16,
1936,
16,
6060,
33,
7036,
4672,
468,
1188,
2213,
87,
1203,
738,
87,
516,
738,
87,
6,
738,
261,
361,
1106,
16,
1375,
4951,
9191,
1375,
24394,
24065,
302,
273,
336,
67,
5345,
67,
1576,
12,
361,
1106,
16,
1936,
13,
11419,
768,
18,
2626,
2932,
3660,
32,
2629,
2077,
11613,
12,
2649,
13,
87,
6,
3044,
11613,
12,
5569,
13,
87,
6,
880,
11613,
12,
718,
13,
87,
6,
3536,
738,
302,
13,
309,
6060,
353,
486,
599,
30,
11419,
768,
18,
2626,
2932,
2412,
9822,
87,
1757,
2629,
2984,
738,
2025,
1164,
12,
24394,
3719,
469,
30,
11419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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2629,
261,
94,
438,
768,
16,
1261,
1106,
16,
1936,
16,
6060,
33,
7036,
4672,
468,
1188,
2213,
87,
1203,
738,
87,
516,
738,
87,
6,
738,
261,
361,
1106,
16,
1375,
4951,
9191,
1375,
24394,
24065,
302,
273,
336,
67,
5345,
67,
1576,
12,
361,
1106,
16,
1936,
13,
11419,
768,
18,
2626,
2932,
3660,
32,
2629,
2077,
11613,
12,
2649,
13,
87,
6,
3044,
11613,
12,
5569,
13,
87,
6,
880,
11613,
12,
718,
13,
87,
6,
3536,
738,
302,
13,
309,
6060,
353,
486,
599,
30,
11419,
768,
18,
2626,
2932,
2412,
9822,
87,
1757,
2629,
2984,
738,
2025,
1164,
12,
24394,
3719,
469,
30,
11419,
768,
18,
2626,
2932,
26293,
13,
11419,
2
] |
if Utils.startswith(string.strip(mod.source[idx]), 'self._init_ctrls('):
|
line = string.strip(mod.source[idx]) if Utils.startswith(line, 'self._init_ctrls('):
|
e.g. def __init__(self, parent, myFrameCaption): self.frameCaption = 'Design time frame caption' self.frameCaption = myFrameCaption self._init_ctrls(parent)
|
2e9d3fcbdee9554725586a2bb9d0c08869148a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2e9d3fcbdee9554725586a2bb9d0c08869148a5c/wxPythonEditorModels.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
425,
18,
75,
18,
565,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
3399,
3219,
21158,
4672,
365,
18,
3789,
21158,
273,
296,
15478,
813,
2623,
11006,
11,
365,
18,
3789,
21158,
273,
3399,
3219,
21158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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,
425,
18,
75,
18,
565,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
3399,
3219,
21158,
4672,
365,
18,
3789,
21158,
273,
296,
15478,
813,
2623,
11006,
11,
365,
18,
3789,
21158,
273,
3399,
3219,
21158,
365,
6315,
2738,
67,
16277,
87,
12,
2938,
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
] |
return ByteCodeTemplate(render, self.root, self.parser, stream)
|
if 'xmlns' in self.root.attrib: del self.root.attrib['xmlns'] return ByteCodeTemplate(render, stream, self)
|
def __call__(self, macro=None, params=()): if not isinstance(self.root, Element): raise ValueError( "Must define valid namespace for tag: '%s.'" % self.root.tag)
|
bc20d5deeff33a4ee1fceef1fe36e55810606835 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9696/bc20d5deeff33a4ee1fceef1fe36e55810606835/translation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
11522,
33,
7036,
16,
859,
33,
1435,
4672,
309,
486,
1549,
12,
2890,
18,
3085,
16,
3010,
4672,
1002,
2068,
12,
315,
10136,
4426,
923,
1981,
364,
1047,
30,
1995,
87,
1093,
6,
738,
365,
18,
3085,
18,
2692,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
11522,
33,
7036,
16,
859,
33,
1435,
4672,
309,
486,
1549,
12,
2890,
18,
3085,
16,
3010,
4672,
1002,
2068,
12,
315,
10136,
4426,
923,
1981,
364,
1047,
30,
1995,
87,
1093,
6,
738,
365,
18,
3085,
18,
2692,
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
] |
pipe = os.popen(cmd)
|
with os.popen(cmd) as pipe: for line in pipe: words = line.lower().split() for i in range(len(words)): if words[i] in hw_identifiers: return int( words[get_index(i)].replace(':', ''), 16)
|
def _find_mac(command, args, hw_identifiers, get_index): import os for dir in ['', '/sbin/', '/usr/sbin']: executable = os.path.join(dir, command) if not os.path.exists(executable): continue try: # LC_ALL to get English output, 2>/dev/null to # prevent output on stderr cmd = 'LC_ALL=C %s %s 2>/dev/null' % (executable, args) pipe = os.popen(cmd) except IOError: continue for line in pipe: words = line.lower().split() for i in range(len(words)): if words[i] in hw_identifiers: return int(words[get_index(i)].replace(':', ''), 16) return None
|
932acb9a8a57a559c2376c8e4322f96ee3dd9c86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/932acb9a8a57a559c2376c8e4322f96ee3dd9c86/uuid.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
5821,
12,
3076,
16,
833,
16,
16139,
67,
20218,
16,
336,
67,
1615,
4672,
1930,
1140,
364,
1577,
316,
10228,
2187,
1173,
87,
4757,
19,
2187,
1173,
13640,
19,
87,
4757,
3546,
30,
9070,
273,
1140,
18,
803,
18,
5701,
12,
1214,
16,
1296,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
17751,
4672,
1324,
225,
775,
30,
468,
27727,
67,
4685,
358,
336,
24151,
876,
16,
576,
16893,
5206,
19,
2011,
358,
468,
5309,
876,
603,
4514,
1797,
273,
296,
13394,
67,
4685,
33,
39,
738,
87,
738,
87,
576,
16893,
5206,
19,
2011,
11,
738,
261,
17751,
16,
833,
13,
598,
1140,
18,
84,
3190,
12,
4172,
13,
487,
6010,
30,
364,
980,
316,
6010,
30,
4511,
273,
980,
18,
8167,
7675,
4939,
1435,
364,
277,
316,
1048,
12,
1897,
12,
3753,
3719,
30,
309,
4511,
63,
77,
65,
316,
16139,
67,
20218,
30,
327,
509,
12,
4511,
63,
588,
67,
1615,
12,
77,
13,
8009,
2079,
2668,
30,
2187,
875,
3631,
2872,
13,
1335,
8340,
30,
1324,
225,
364,
980,
316,
6010,
30,
4511,
273,
980,
18,
8167,
7675,
4939,
1435,
364,
277,
316,
1048,
12,
1897,
12,
3753,
3719,
30,
309,
4511,
63,
77,
65,
316,
16139,
67,
20218,
30,
327,
509,
12,
3753,
63,
588,
67,
1615,
12,
77,
13,
8009,
2079,
2668,
30,
2187,
875,
3631,
2872,
13,
327,
599,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
5821,
12,
3076,
16,
833,
16,
16139,
67,
20218,
16,
336,
67,
1615,
4672,
1930,
1140,
364,
1577,
316,
10228,
2187,
1173,
87,
4757,
19,
2187,
1173,
13640,
19,
87,
4757,
3546,
30,
9070,
273,
1140,
18,
803,
18,
5701,
12,
1214,
16,
1296,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
17751,
4672,
1324,
225,
775,
30,
468,
27727,
67,
4685,
358,
336,
24151,
876,
16,
576,
16893,
5206,
19,
2011,
358,
468,
5309,
876,
603,
4514,
1797,
273,
296,
13394,
67,
4685,
33,
39,
738,
87,
738,
87,
576,
16893,
5206,
19,
2011,
11,
738,
261,
17751,
16,
833,
13,
598,
1140,
18,
84,
3190,
12,
4172,
13,
487,
6010,
30,
364,
2
] |
if gameiter.event.event_text == "NP":
|
if gameiter.event.event_text != "NP": map(lambda x: x.OnEvent(game, gameiter), acclist) if gameiter.event.first_sub != None:
|
def ProcessGame(game, acclist): gameiter = CWGameIterator(game) map(lambda x: x.OnBeginGame(game, gameiter), acclist) while gameiter.event != None: if gameiter.event.event_text == "NP": # Note that there exist some Retrosheet files that have subs # that aren't preceded by NP... map(lambda x: x.OnSubstitution(game, gameiter), acclist) gameiter.NextEvent() continue map(lambda x: x.OnEvent(game, gameiter), acclist) gameiter.NextEvent() map(lambda x: x.OnEndGame(game, gameiter), acclist)
|
efdf67c2861d7d1352e442dde1bc2fb2f5bb81dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10056/efdf67c2861d7d1352e442dde1bc2fb2f5bb81dc/statscan.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
12496,
12,
13957,
16,
1721,
830,
376,
4672,
7920,
2165,
273,
385,
59,
12496,
3198,
12,
13957,
13,
852,
12,
14661,
619,
30,
619,
18,
1398,
8149,
12496,
12,
13957,
16,
7920,
2165,
3631,
1721,
830,
376,
13,
225,
1323,
7920,
2165,
18,
2575,
480,
599,
30,
309,
7920,
2165,
18,
2575,
18,
2575,
67,
955,
422,
315,
23430,
6877,
468,
3609,
716,
1915,
1005,
2690,
17100,
6973,
2963,
1390,
716,
1240,
11630,
468,
716,
11526,
1404,
29953,
635,
423,
52,
2777,
852,
12,
14661,
619,
30,
619,
18,
1398,
23798,
12,
13957,
16,
7920,
2165,
3631,
1721,
830,
376,
13,
7920,
2165,
18,
2134,
1133,
1435,
1324,
225,
852,
12,
14661,
619,
30,
619,
18,
1398,
1133,
12,
13957,
16,
7920,
2165,
3631,
1721,
830,
376,
13,
7920,
2165,
18,
2134,
1133,
1435,
225,
852,
12,
14661,
619,
30,
619,
18,
1398,
1638,
12496,
12,
13957,
16,
7920,
2165,
3631,
1721,
830,
376,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
12496,
12,
13957,
16,
1721,
830,
376,
4672,
7920,
2165,
273,
385,
59,
12496,
3198,
12,
13957,
13,
852,
12,
14661,
619,
30,
619,
18,
1398,
8149,
12496,
12,
13957,
16,
7920,
2165,
3631,
1721,
830,
376,
13,
225,
1323,
7920,
2165,
18,
2575,
480,
599,
30,
309,
7920,
2165,
18,
2575,
18,
2575,
67,
955,
422,
315,
23430,
6877,
468,
3609,
716,
1915,
1005,
2690,
17100,
6973,
2963,
1390,
716,
1240,
11630,
468,
716,
11526,
1404,
29953,
635,
423,
52,
2777,
852,
12,
14661,
619,
30,
619,
18,
1398,
23798,
12,
13957,
16,
7920,
2165,
3631,
1721,
830,
376,
13,
7920,
2165,
18,
2134,
1133,
1435,
1324,
225,
852,
12,
14661,
619,
30,
619,
18,
1398,
2
] |
def center_image(self, width, height): if width == 0: width = self.imageview.size_request()[0] if height == 0: height = self.imageview.size_request()[1] while gtk.events_pending(): gtk.main_iteration() x_shift = int((self.available_image_width() - width)/2)
|
def show_scrollbars_if_needed(self): if self.currimg_width > self.available_image_width(): self.hscroll.show() else: self.hscroll.hide() if self.currimg_height > self.available_image_height(): self.vscroll.show() else: self.vscroll.hide() def center_image(self): x_shift = int((self.available_image_width() - self.currimg_width)/2)
|
def put_zoom_image_to_window(self): previmg = self.currimg # Always start with the original image to preserve quality! # Calculate image size: finalimg_width = int(self.originalimg.get_width() * self.zoomratio) finalimg_height = int(self.originalimg.get_height() * self.zoomratio) # If self.zoomratio < 1, scale first so that rotating/flipping is performed # on the smaller image for speed improvements if self.zoomratio < 1: # Scale image: if self.originalimg.get_has_alpha() == False: self.currimg = self.originalimg.scale_simple(finalimg_width, finalimg_height, self.zoom_quality) else: colormap = self.imageview.get_colormap() light_grey = colormap.alloc_color('#666666', True, True) dark_grey = colormap.alloc_color('#999999', True, True) self.currimg = self.originalimg.composite_color_simple(finalimg_width, finalimg_height, self.zoom_quality, 255, 8, light_grey.pixel, dark_grey.pixel) # Now check if we need any rotating/flipping if self.orientation == 1: if self.location == 0: self.currimg = self.image_rotate(self.currimg, 270) self.currimg = self.image_flip(self.currimg, False) elif self.location == 1: self.currimg = self.image_rotate(self.currimg, 270) elif self.location == 2: self.currimg = self.image_rotate(self.currimg, 270) self.currimg = self.image_flip(self.currimg, True) elif self.location == 3: self.currimg = self.image_rotate(self.currimg, 90) else: if self.location == 1: self.currimg = self.image_flip(self.currimg, False) elif self.location == 2: self.currimg = self.image_rotate(self.currimg, 180) elif self.location == 3: self.currimg = self.image_flip(self.currimg, True) # If self.zoomratio >= 1, perform any rotating/flipping on the smaller image # (before scaling up) for speed improvements if self.zoomratio >= 1: # Check if we need any rotating/flipping if self.orientation == 1: finalimg_width, finalimg_height = finalimg_height, finalimg_width if self.location == 0: self.currimg = self.image_rotate(self.originalimg, 270) self.currimg = self.image_flip(self.currimg, False) elif self.location == 1: self.currimg = self.image_rotate(self.originalimg, 270) elif self.location == 2: self.currimg = self.image_rotate(self.originalimg, 270) self.currimg = self.image_flip(self.currimg, True) elif self.location == 3: self.currimg = self.image_rotate(self.originalimg, 90) else: if self.location == 0: self.currimg = self.originalimg elif self.location == 1: self.currimg = self.image_flip(self.originalimg, False) elif self.location == 2: self.currimg = self.image_rotate(self.originalimg, 180) elif self.location == 3: self.currimg = self.image_flip(self.originalimg, True) # Scale image: if self.originalimg.get_has_alpha() == False: if self.zoomratio != 1: self.currimg = self.currimg.scale_simple(finalimg_width, finalimg_height, self.zoom_quality) else: colormap = self.imageview.get_colormap() light_grey = colormap.alloc_color('#666666', True, True) dark_grey = colormap.alloc_color('#999999', True, True) self.currimg = self.currimg.composite_color_simple(finalimg_width, finalimg_height, self.zoom_quality, 255, 8, light_grey.pixel, dark_grey.pixel) if finalimg_width > self.available_image_width(): self.hscroll.show() else: self.hscroll.hide() if finalimg_height > self.available_image_height(): self.vscroll.show() else: self.vscroll.hide() self.layout.set_size(finalimg_width, finalimg_height) self.center_image(finalimg_width, finalimg_height) self.imageview.set_from_pixbuf(self.currimg) self.first_image_load = False # Clean up (free memory) because I'm lazy gc.collect() return
|
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
14932,
67,
2730,
67,
869,
67,
5668,
12,
2890,
4672,
2807,
6081,
273,
365,
18,
17016,
6081,
468,
14178,
787,
598,
326,
2282,
1316,
358,
9420,
9312,
5,
468,
9029,
1316,
963,
30,
727,
6081,
67,
2819,
273,
509,
12,
2890,
18,
8830,
6081,
18,
588,
67,
2819,
1435,
380,
365,
18,
14932,
9847,
13,
727,
6081,
67,
4210,
273,
509,
12,
2890,
18,
8830,
6081,
18,
588,
67,
4210,
1435,
380,
365,
18,
14932,
9847,
13,
468,
971,
365,
18,
14932,
9847,
411,
404,
16,
3159,
1122,
1427,
716,
4168,
1776,
19,
12357,
1382,
353,
9591,
468,
603,
326,
10648,
1316,
364,
8632,
13069,
90,
17110,
309,
365,
18,
14932,
9847,
411,
404,
30,
468,
12591,
1316,
30,
309,
365,
18,
8830,
6081,
18,
588,
67,
5332,
67,
5429,
1435,
422,
1083,
30,
365,
18,
17016,
6081,
273,
365,
18,
8830,
6081,
18,
5864,
67,
9647,
12,
6385,
6081,
67,
2819,
16,
727,
6081,
67,
4210,
16,
365,
18,
14932,
67,
16495,
13,
469,
30,
24806,
273,
365,
18,
2730,
1945,
18,
588,
67,
1293,
18804,
1435,
9052,
67,
11556,
93,
273,
24806,
18,
9853,
67,
3266,
2668,
7,
31684,
6028,
2187,
1053,
16,
1053,
13,
23433,
67,
11556,
93,
273,
24806,
18,
9853,
67,
3266,
2668,
7,
22866,
2187,
1053,
16,
1053,
13,
365,
18,
17016,
6081,
273,
365,
18,
8830,
6081,
18,
27676,
67,
3266,
67,
9647,
12,
6385,
6081,
67,
2819,
16,
727,
6081,
67,
4210,
16,
365,
18,
14932,
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,
1378,
67,
14932,
67,
2730,
67,
869,
67,
5668,
12,
2890,
4672,
2807,
6081,
273,
365,
18,
17016,
6081,
468,
14178,
787,
598,
326,
2282,
1316,
358,
9420,
9312,
5,
468,
9029,
1316,
963,
30,
727,
6081,
67,
2819,
273,
509,
12,
2890,
18,
8830,
6081,
18,
588,
67,
2819,
1435,
380,
365,
18,
14932,
9847,
13,
727,
6081,
67,
4210,
273,
509,
12,
2890,
18,
8830,
6081,
18,
588,
67,
4210,
1435,
380,
365,
18,
14932,
9847,
13,
468,
971,
365,
18,
14932,
9847,
411,
404,
16,
3159,
1122,
1427,
716,
4168,
1776,
19,
12357,
1382,
353,
9591,
468,
603,
326,
10648,
1316,
364,
8632,
13069,
90,
17110,
309,
365,
18,
14932,
9847,
411,
404,
30,
468,
2
] |
return ENVIRONMENT_CHANGED, test_time
|
return ENV_CHANGED, test_time
|
def runtest_inner(test, verbose, quiet, testdir=None, huntrleaks=False): test_support.unload(test) if not testdir: testdir = findtestdir() if verbose: capture_stdout = None else: capture_stdout = cStringIO.StringIO() test_time = 0.0 refleak = False # True if the test leaked references. try: save_stdout = sys.stdout try: if capture_stdout: sys.stdout = capture_stdout if test.startswith('test.'): abstest = test else: # Always import it from the test package abstest = 'test.' + test with saved_test_environment(test, verbose, quiet) as environment: start_time = time.time() the_package = __import__(abstest, globals(), locals(), []) the_module = getattr(the_package, test) # Old tests run to completion simply as a side-effect of # being imported. For tests based on unittest or doctest, # explicitly invoke their test_main() function (if it exists). indirect_test = getattr(the_module, "test_main", None) if indirect_test is not None: indirect_test() if huntrleaks: refleak = dash_R(the_module, test, indirect_test, huntrleaks) test_time = time.time() - start_time finally: sys.stdout = save_stdout except test_support.ResourceDenied, msg: if not quiet: print test, "skipped --", msg sys.stdout.flush() return RESOURCE_DENIED, test_time except unittest.SkipTest, msg: if not quiet: print test, "skipped --", msg sys.stdout.flush() return SKIPPED, test_time except KeyboardInterrupt: raise except test_support.TestFailed, msg: print "test", test, "failed --", msg sys.stdout.flush() return FAILED, test_time except: type, value = sys.exc_info()[:2] print "test", test, "crashed --", str(type) + ":", value sys.stdout.flush() if verbose: traceback.print_exc(file=sys.stdout) sys.stdout.flush() return FAILED, test_time else: if refleak: return FAILED, test_time if environment.changed: return ENVIRONMENT_CHANGED, test_time # Except in verbose mode, tests should not print anything if verbose or huntrleaks: return PASSED, test_time output = capture_stdout.getvalue() if not output: return PASSED, test_time print "test", test, "produced unexpected output:" print "*" * 70 print output print "*" * 70 sys.stdout.flush() return FAILED, test_time
|
85c82169d81c45b0969de66040d7c852f5f141d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/85c82169d81c45b0969de66040d7c852f5f141d4/regrtest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3813,
67,
7872,
12,
3813,
16,
3988,
16,
10902,
16,
1842,
1214,
33,
7036,
16,
366,
318,
313,
298,
581,
87,
33,
8381,
4672,
1842,
67,
13261,
18,
318,
945,
12,
3813,
13,
309,
486,
1842,
1214,
30,
1842,
1214,
273,
1104,
3813,
1214,
1435,
309,
3988,
30,
7477,
67,
10283,
273,
599,
469,
30,
7477,
67,
10283,
273,
276,
780,
4294,
18,
780,
4294,
1435,
225,
1842,
67,
957,
273,
374,
18,
20,
1278,
298,
581,
273,
1083,
225,
468,
1053,
309,
326,
1842,
884,
9477,
5351,
18,
775,
30,
1923,
67,
10283,
273,
2589,
18,
10283,
775,
30,
309,
7477,
67,
10283,
30,
2589,
18,
10283,
273,
7477,
67,
10283,
309,
1842,
18,
17514,
1918,
2668,
3813,
1093,
4672,
1223,
334,
395,
273,
1842,
469,
30,
468,
14178,
1930,
518,
628,
326,
1842,
2181,
1223,
334,
395,
273,
296,
3813,
1093,
397,
1842,
598,
5198,
67,
3813,
67,
10274,
12,
3813,
16,
3988,
16,
10902,
13,
487,
3330,
30,
787,
67,
957,
273,
813,
18,
957,
1435,
326,
67,
5610,
273,
1001,
5666,
972,
12,
378,
334,
395,
16,
10941,
9334,
8985,
9334,
5378,
13,
326,
67,
2978,
273,
3869,
12,
5787,
67,
5610,
16,
1842,
13,
468,
18613,
7434,
1086,
358,
8364,
8616,
487,
279,
4889,
17,
13867,
434,
468,
3832,
9101,
18,
225,
2457,
7434,
2511,
603,
2836,
3813,
578,
31263,
395,
16,
468,
8122,
4356,
3675,
1842,
67,
5254,
1435,
445,
261,
430,
518,
1704,
2934,
16807,
67,
3813,
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,
1086,
3813,
67,
7872,
12,
3813,
16,
3988,
16,
10902,
16,
1842,
1214,
33,
7036,
16,
366,
318,
313,
298,
581,
87,
33,
8381,
4672,
1842,
67,
13261,
18,
318,
945,
12,
3813,
13,
309,
486,
1842,
1214,
30,
1842,
1214,
273,
1104,
3813,
1214,
1435,
309,
3988,
30,
7477,
67,
10283,
273,
599,
469,
30,
7477,
67,
10283,
273,
276,
780,
4294,
18,
780,
4294,
1435,
225,
1842,
67,
957,
273,
374,
18,
20,
1278,
298,
581,
273,
1083,
225,
468,
1053,
309,
326,
1842,
884,
9477,
5351,
18,
775,
30,
1923,
67,
10283,
273,
2589,
18,
10283,
775,
30,
309,
7477,
67,
10283,
30,
2589,
18,
10283,
273,
7477,
67,
10283,
309,
1842,
18,
17514,
1918,
2
] |
group theory. Of course, G must be a group of low order.
|
group theory. Of course, `G` must be a group of low order. EXAMPLES:
|
def cayley_table(self, names="x"): """ Returns the multiplication table, or Cayley table, of the finite group G in the form of a matrix with symbolic coefficients. This function is useful for learning, teaching, and exploring elementary group theory. Of course, G must be a group of low order. As the last line below illustrates, the ordering used here in the first row is the same as in G.list(). EXAMPLES:: sage: G = PermutationGroup(['(1,2,3)', '(2,3)']) sage: G.cayley_table() [x0 x1 x2 x3 x4 x5] [x1 x0 x3 x2 x5 x4] [x2 x4 x0 x5 x1 x3] [x3 x5 x1 x4 x0 x2] [x4 x2 x5 x0 x3 x1] [x5 x3 x4 x1 x2 x0] sage: G.list()[3]*G.list()[3] == G.list()[4] True sage: G.cayley_table("y") [y0 y1 y2 y3 y4 y5] [y1 y0 y3 y2 y5 y4] [y2 y4 y0 y5 y1 y3] [y3 y5 y1 y4 y0 y2] [y4 y2 y5 y0 y3 y1] [y5 y3 y4 y1 y2 y0] sage: G.cayley_table(names="abcdef") [a b c d e f] [b a d c f e] [c e a f b d] [d f b e a c] [e c f a d b] [f d e b c a] """ G = self n = G.order() phi = G._gap_().RegularActionHomomorphism() gens = phi.Image().GeneratorsOfGroup() N = Integer(gens.Length()) nm = gens.name() gens = [PermutationGroupElement(gap.eval("%s[%s];"%(nm, i))) for i in range(1,N+1)] H = PermutationGroup(gens) nH = H.order() R,vars = PolynomialRing(RationalField(),names,nH).objgens() multiplication_table_G = sum([(H.list()[i]).matrix()*vars[i] for i in range(nH)]) MT = multiplication_table_G.rows() MT.sort() MT.reverse() MS = MatrixSpace(R,n,n) return MS(MT)
|
1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
528,
30678,
67,
2121,
12,
2890,
16,
1257,
1546,
92,
6,
4672,
3536,
2860,
326,
23066,
1014,
16,
578,
385,
528,
30678,
1014,
16,
434,
326,
25922,
1041,
611,
316,
326,
646,
434,
279,
3148,
598,
16754,
14229,
18,
1220,
445,
353,
5301,
364,
13753,
16,
6489,
497,
310,
16,
471,
22991,
6053,
930,
814,
1041,
326,
630,
18,
8031,
4362,
16,
1375,
43,
68,
1297,
506,
279,
1041,
434,
4587,
1353,
18,
225,
5675,
8900,
11386,
30,
225,
2970,
326,
1142,
980,
5712,
277,
2906,
27008,
815,
16,
326,
9543,
1399,
2674,
316,
326,
1122,
1027,
353,
326,
1967,
487,
316,
611,
18,
1098,
7675,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
12,
3292,
12,
21,
16,
22,
16,
23,
13,
2187,
7747,
22,
16,
23,
2506,
5717,
272,
410,
30,
611,
18,
71,
528,
30678,
67,
2121,
1435,
306,
92,
20,
619,
21,
619,
22,
619,
23,
619,
24,
619,
25,
65,
306,
92,
21,
619,
20,
619,
23,
619,
22,
619,
25,
619,
24,
65,
306,
92,
22,
619,
24,
619,
20,
619,
25,
619,
21,
619,
23,
65,
306,
92,
23,
619,
25,
619,
21,
619,
24,
619,
20,
619,
22,
65,
306,
92,
24,
619,
22,
619,
25,
619,
20,
619,
23,
619,
21,
65,
306,
92,
25,
619,
23,
619,
24,
619,
21,
619,
22,
619,
20,
65,
272,
410,
30,
611,
18,
1098,
1435,
63,
23,
5772,
43,
18,
1098,
1435,
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,
276,
528,
30678,
67,
2121,
12,
2890,
16,
1257,
1546,
92,
6,
4672,
3536,
2860,
326,
23066,
1014,
16,
578,
385,
528,
30678,
1014,
16,
434,
326,
25922,
1041,
611,
316,
326,
646,
434,
279,
3148,
598,
16754,
14229,
18,
1220,
445,
353,
5301,
364,
13753,
16,
6489,
497,
310,
16,
471,
22991,
6053,
930,
814,
1041,
326,
630,
18,
8031,
4362,
16,
1375,
43,
68,
1297,
506,
279,
1041,
434,
4587,
1353,
18,
225,
5675,
8900,
11386,
30,
225,
2970,
326,
1142,
980,
5712,
277,
2906,
27008,
815,
16,
326,
9543,
1399,
2674,
316,
326,
1122,
1027,
353,
326,
1967,
487,
316,
611,
18,
1098,
7675,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
2
] |
def _examine_raise(self, r, should_be_remote): tc = Failures() tc._examine_raise(r, should_be_remote)
|
def _examine_raise(self, r, should_be_remote): # delegate to the code in Failures(), above tc = Failures() tc._examine_raise(r, should_be_remote)
|
5ebf7776b3da378747b0706368a030e68866a6d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13646/5ebf7776b3da378747b0706368a030e68866a6d7/test_call.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
338,
301,
558,
67,
11628,
12,
2890,
16,
436,
16,
1410,
67,
2196,
67,
7222,
4672,
468,
7152,
358,
326,
981,
316,
8911,
1823,
9334,
5721,
1715,
273,
8911,
1823,
1435,
1715,
6315,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
338,
301,
558,
67,
11628,
12,
2890,
16,
436,
16,
1410,
67,
2196,
67,
7222,
4672,
468,
7152,
358,
326,
981,
316,
8911,
1823,
9334,
5721,
1715,
273,
8911,
1823,
1435,
1715,
6315,
338,
301,
558,
67,
11628,
12,
86,
16,
1410,
67,
2196,
67,
7222,
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
] |
|
if context.portal_type == 'PlumiVideoFolder':
|
if context.portal_type == 'Plumi Video Folder':
|
def __init__(self, context): """It would be much better not to count on the acquisition and old python script, and recode this part. """
|
719bfe5a229a0aa520daebf1dff0d84113ab32af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
819,
4672,
3536,
7193,
4102,
506,
9816,
7844,
486,
358,
1056,
603,
326,
1721,
22094,
471,
1592,
5790,
2728,
16,
471,
283,
710,
333,
1087,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Biopython will have each sequence on a single line, and each quality string on a single line (which is considered desirable for maximum compatibility). This code is also called if you use the .format("fastq-solexa") method of a SeqRecord.
|
Biopython will have each sequence on a single line, and each quality string on a single line (which is considered desirable for maximum compatibility). This code is also called if you use the .format("fastq-solexa") method of a SeqRecord.
|
def write_record(self, record): """Write a single QUAL record to the file.""" assert self._header_written assert not self._footer_written self._record_written = True
|
e56d79f2d97ef19f21b535c042077c194de886f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/e56d79f2d97ef19f21b535c042077c194de886f9/QualityIO.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
3366,
12,
2890,
16,
1409,
4672,
3536,
3067,
279,
2202,
10110,
1013,
1409,
358,
326,
585,
12123,
1815,
365,
6315,
3374,
67,
9748,
1815,
486,
365,
6315,
14723,
67,
9748,
365,
6315,
3366,
67,
9748,
273,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
14723,
67,
9748,
365,
6315,
3366,
67,
9748,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ErrorDialog((_("Failure writing to %s") % base),
|
ErrorDialog((_("Failure writing to %s") % base),
|
def calc_url(self): """ Creates a file for use with GoogleEarth and launches GoogleEarth if in system """ home_dir = os.path.expanduser("~") default_filename = 'GrampsPlacesForGoogleEarth' filename = os.path.join(home_dir, default_filename) if not _GOOGLEEARTH_OK: qd2 = QuestionDialog2( _("GoogleEarth not installed!"), (_("Create kmz/kml file ''%s''\n" "in user directory ''%s''?")\ % (default_filename, home_dir)), _("Yes"), _("No")) if not qd2.run(): return base = os.path.dirname(filename) # Check if directory exists if not os.path.exists(os.path.normpath(base)): ErrorDialog((_("Failure writing to %s") % base), _("Directory does not exist")) return
|
767a0ae51fb403854e86b60498675cea0c45c60e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1491/767a0ae51fb403854e86b60498675cea0c45c60e/GoogleEarthWriteKML.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
718,
12,
2890,
4672,
3536,
10210,
279,
585,
364,
999,
598,
6124,
41,
27076,
471,
8037,
281,
6124,
41,
27076,
309,
316,
2619,
3536,
6382,
67,
1214,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
7923,
805,
67,
3459,
273,
296,
20799,
25508,
24791,
1290,
9639,
41,
27076,
11,
1544,
273,
1140,
18,
803,
18,
5701,
12,
8712,
67,
1214,
16,
805,
67,
3459,
13,
309,
486,
389,
16387,
13369,
900,
9250,
2455,
67,
3141,
30,
1043,
72,
22,
273,
18267,
6353,
22,
12,
389,
2932,
9639,
41,
27076,
486,
5876,
4442,
3631,
261,
67,
2932,
1684,
18952,
94,
19,
79,
781,
585,
875,
9,
87,
6309,
64,
82,
6,
315,
267,
729,
1867,
875,
9,
87,
6309,
7225,
5153,
738,
261,
1886,
67,
3459,
16,
6382,
67,
1214,
13,
3631,
389,
2932,
22352,
6,
3631,
389,
2932,
2279,
6,
3719,
309,
486,
1043,
72,
22,
18,
2681,
13332,
327,
1026,
273,
1140,
18,
803,
18,
12287,
12,
3459,
13,
468,
2073,
309,
1867,
1704,
309,
486,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
7959,
803,
12,
1969,
3719,
30,
1068,
6353,
12443,
67,
2932,
5247,
7410,
358,
738,
87,
7923,
738,
1026,
3631,
389,
2932,
2853,
1552,
486,
1005,
6,
3719,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
718,
12,
2890,
4672,
3536,
10210,
279,
585,
364,
999,
598,
6124,
41,
27076,
471,
8037,
281,
6124,
41,
27076,
309,
316,
2619,
3536,
6382,
67,
1214,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
7923,
805,
67,
3459,
273,
296,
20799,
25508,
24791,
1290,
9639,
41,
27076,
11,
1544,
273,
1140,
18,
803,
18,
5701,
12,
8712,
67,
1214,
16,
805,
67,
3459,
13,
309,
486,
389,
16387,
13369,
900,
9250,
2455,
67,
3141,
30,
1043,
72,
22,
273,
18267,
6353,
22,
12,
389,
2932,
9639,
41,
27076,
486,
5876,
4442,
3631,
261,
67,
2932,
1684,
18952,
94,
19,
79,
781,
585,
875,
9,
87,
6309,
64,
82,
6,
315,
267,
729,
1867,
875,
2
] |
taskMgr.add(self.readerPollUntilEmpty, self.uniqueName("readerPollTask"), priority = self.taskPriority, taskChain = self.taskChain)
|
self.readerPollTaskObj = taskMgr.add( self.readerPollUntilEmpty, self.uniqueName("readerPollTask"), priority = self.taskPriority, taskChain = self.taskChain)
|
def startReaderPollTask(self): # Stop any tasks we are running now self.stopReaderPollTask() self.accept(CConnectionRepository.getOverflowEventName(), self.handleReaderOverflow) taskMgr.add(self.readerPollUntilEmpty, self.uniqueName("readerPollTask"), priority = self.taskPriority, taskChain = self.taskChain)
|
eaa2163cb0dc425fd86de0987e7e6f3bb69e0604 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/eaa2163cb0dc425fd86de0987e7e6f3bb69e0604/ConnectionRepository.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
2514,
19085,
2174,
12,
2890,
4672,
468,
5131,
1281,
4592,
732,
854,
3549,
2037,
365,
18,
5681,
2514,
19085,
2174,
1435,
365,
18,
9436,
12,
39,
1952,
3305,
18,
588,
15526,
24320,
9334,
365,
18,
4110,
2514,
15526,
13,
1562,
9455,
18,
1289,
12,
2890,
18,
10530,
19085,
9716,
1921,
16,
365,
18,
6270,
461,
2932,
10530,
19085,
2174,
6,
3631,
4394,
273,
365,
18,
4146,
8183,
16,
1562,
3893,
273,
365,
18,
4146,
3893,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
2514,
19085,
2174,
12,
2890,
4672,
468,
5131,
1281,
4592,
732,
854,
3549,
2037,
365,
18,
5681,
2514,
19085,
2174,
1435,
365,
18,
9436,
12,
39,
1952,
3305,
18,
588,
15526,
24320,
9334,
365,
18,
4110,
2514,
15526,
13,
1562,
9455,
18,
1289,
12,
2890,
18,
10530,
19085,
9716,
1921,
16,
365,
18,
6270,
461,
2932,
10530,
19085,
2174,
6,
3631,
4394,
273,
365,
18,
4146,
8183,
16,
1562,
3893,
273,
365,
18,
4146,
3893,
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
] |
if wikipedia.Page(site, target).exists():
|
if wikipedia.Page(self.importsite, target).exists():
|
def Import(self, target, project = 'w', crono = '1', namespace = '', prompt = True): """Import the page from the wiki. Requires administrator status. If prompt is True, asks the user if he wants to delete the page. """ # Fixing the crono value... if crono == True: crono = '1' elif crono == False: crono = '0' elif crono == '0': pass elif crono == '1': pass else: wikipedia.output(u'Crono value set wrongly.') wikipedia.stopme() # Fixing namespace's value. if namespace == '0': namespace == '' answer = 'y' if prompt: answer = wikipedia.inputChoice(u'Do you want to import %s?' % target, ['Yes', 'No'], ['y', 'N'], 'N') if answer in ['y', 'Y']: host = self.site().hostname() address = '/w/index.php?title=%s&action=submit' % self.urlname() # You need to be a sysop for the import. self.site().forceLogin(sysop = True) # Getting the token. token = self.site().getToken(self, sysop = True) # Defing the predata. predata = { 'action' : 'submit', 'source' : 'interwiki', # from what project do you want to import the page? 'interwiki' : project, # What is the page that you want to import? 'frompage' : target, # The entire history... or not? 'interwikiHistory' : crono, # What namespace do you want? 'namespace': '', } if self.site().hostname() in config.authenticate.keys(): predata['Content-type'] = 'application/x-www-form-urlencoded' predata['User-agent'] = useragent data = self.site().urlEncode(predata) response = urllib2.urlopen(urllib2.Request('http://' + self.site().hostname() + address, data)) data = u'' else: response, data = self.site().postForm(address, predata, sysop = True) if data: wikipedia.output(u'Page imported, checking...') if wikipedia.Page(site, target).exists(): wikipedia.output(u'Import success!') return True else: wikipedia.output(u'Import failed!') return False
|
fe27e687bf0271ca1ae39d0c531af78593d3f6d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/fe27e687bf0271ca1ae39d0c531af78593d3f6d9/pageimport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6164,
12,
2890,
16,
1018,
16,
1984,
273,
296,
91,
2187,
9998,
83,
273,
296,
21,
2187,
1981,
273,
10226,
6866,
273,
1053,
4672,
3536,
5010,
326,
1363,
628,
326,
9050,
18,
16412,
22330,
1267,
18,
971,
6866,
353,
1053,
16,
6827,
87,
326,
729,
309,
3904,
14805,
358,
1430,
326,
1363,
18,
3536,
468,
12139,
310,
326,
9998,
83,
460,
2777,
309,
9998,
83,
422,
1053,
30,
9998,
83,
273,
296,
21,
11,
1327,
9998,
83,
422,
1083,
30,
9998,
83,
273,
296,
20,
11,
1327,
9998,
83,
422,
296,
20,
4278,
1342,
1327,
9998,
83,
422,
296,
21,
4278,
1342,
469,
30,
21137,
18,
2844,
12,
89,
11,
18586,
83,
460,
444,
7194,
715,
1093,
13,
21137,
18,
5681,
3501,
1435,
468,
12139,
310,
1981,
1807,
460,
18,
309,
1981,
422,
296,
20,
4278,
1981,
422,
875,
5803,
273,
296,
93,
11,
309,
6866,
30,
5803,
273,
21137,
18,
2630,
10538,
12,
89,
11,
3244,
1846,
2545,
358,
1930,
738,
87,
4899,
738,
1018,
16,
10228,
22352,
2187,
296,
2279,
17337,
10228,
93,
2187,
296,
50,
17337,
296,
50,
6134,
309,
5803,
316,
10228,
93,
2187,
296,
61,
3546,
30,
1479,
273,
365,
18,
4256,
7675,
10358,
1435,
1758,
273,
1173,
91,
19,
1615,
18,
2684,
35,
2649,
5095,
87,
10,
1128,
33,
9297,
11,
738,
365,
18,
718,
529,
1435,
468,
4554,
1608,
358,
506,
279,
2589,
556,
364,
326,
1930,
18,
365,
18,
4256,
7675,
5734,
5358,
12,
9499,
556,
273,
1053,
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,
6164,
12,
2890,
16,
1018,
16,
1984,
273,
296,
91,
2187,
9998,
83,
273,
296,
21,
2187,
1981,
273,
10226,
6866,
273,
1053,
4672,
3536,
5010,
326,
1363,
628,
326,
9050,
18,
16412,
22330,
1267,
18,
971,
6866,
353,
1053,
16,
6827,
87,
326,
729,
309,
3904,
14805,
358,
1430,
326,
1363,
18,
3536,
468,
12139,
310,
326,
9998,
83,
460,
2777,
309,
9998,
83,
422,
1053,
30,
9998,
83,
273,
296,
21,
11,
1327,
9998,
83,
422,
1083,
30,
9998,
83,
273,
296,
20,
11,
1327,
9998,
83,
422,
296,
20,
4278,
1342,
1327,
9998,
83,
422,
296,
21,
4278,
1342,
469,
30,
21137,
18,
2844,
12,
89,
11,
18586,
83,
460,
444,
7194,
715,
1093,
13,
2
] |
to the shell (as with os.system()). If 'bufsize' is specified,
|
to the shell (as with os.system()). If 'bufsize' is specified,
|
def popen3(cmd, mode="t", bufsize=-1): """Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may be a sequence, in which case arguments will be passed directly to the program without shell intervention (as with os.spawnv()). If 'cmd' is a string it will be passed to the shell (as with os.system()). If 'bufsize' is specified, it sets the buffer size for the I/O pipes. The file objects (child_stdin, child_stdout, child_stderr) are returned. """ import popen2 stdout, stdin, stderr = popen2.popen3(cmd, bufsize) return stdin, stdout, stderr
|
a92757e6b27e6c7cb6fa02f29c9b1ad013296881 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/a92757e6b27e6c7cb6fa02f29c9b1ad013296881/javaos.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30925,
23,
12,
4172,
16,
1965,
1546,
88,
3113,
1681,
1467,
29711,
21,
4672,
3536,
5289,
326,
5972,
1296,
296,
4172,
11,
316,
279,
720,
17,
2567,
18,
225,
2755,
23160,
16,
296,
4172,
11,
2026,
506,
279,
3102,
16,
316,
1492,
648,
1775,
903,
506,
2275,
5122,
358,
326,
5402,
2887,
5972,
1554,
11111,
261,
345,
598,
1140,
18,
1752,
9533,
90,
1435,
2934,
225,
971,
296,
4172,
11,
353,
279,
533,
518,
903,
506,
2275,
358,
326,
5972,
261,
345,
598,
1140,
18,
4299,
1435,
2934,
225,
971,
296,
4385,
1467,
11,
353,
1269,
16,
518,
1678,
326,
1613,
963,
364,
326,
467,
19,
51,
16062,
18,
225,
1021,
585,
2184,
261,
3624,
67,
21772,
16,
1151,
67,
10283,
16,
1151,
67,
11241,
13,
854,
2106,
18,
3536,
1930,
30925,
22,
3909,
16,
8801,
16,
4514,
273,
30925,
22,
18,
84,
3190,
23,
12,
4172,
16,
1681,
1467,
13,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30925,
23,
12,
4172,
16,
1965,
1546,
88,
3113,
1681,
1467,
29711,
21,
4672,
3536,
5289,
326,
5972,
1296,
296,
4172,
11,
316,
279,
720,
17,
2567,
18,
225,
2755,
23160,
16,
296,
4172,
11,
2026,
506,
279,
3102,
16,
316,
1492,
648,
1775,
903,
506,
2275,
5122,
358,
326,
5402,
2887,
5972,
1554,
11111,
261,
345,
598,
1140,
18,
1752,
9533,
90,
1435,
2934,
225,
971,
296,
4172,
11,
353,
279,
533,
518,
903,
506,
2275,
358,
326,
5972,
261,
345,
598,
1140,
18,
4299,
1435,
2934,
225,
971,
296,
4385,
1467,
11,
353,
1269,
16,
518,
1678,
326,
1613,
963,
364,
326,
467,
19,
51,
16062,
18,
225,
1021,
585,
2184,
261,
3624,
67,
21772,
16,
2
] |
def __init__(self, dbname, dbuser = '', dbpasswd = ''):
|
def __init__(self, dbname, dbuser = '', dbpasswd = '', debug = False):
|
def __init__(self, dbname, dbuser = '', dbpasswd = ''): """ Open a connection to the state segment database.
|
0588560df8c27a55b6ad3828804d3f9f58d5e948 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/0588560df8c27a55b6ad3828804d3f9f58d5e948/statedb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
18448,
16,
1319,
1355,
273,
10226,
1319,
24002,
273,
10226,
1198,
273,
1083,
4672,
3536,
3502,
279,
1459,
358,
326,
919,
3267,
2063,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
18448,
16,
1319,
1355,
273,
10226,
1319,
24002,
273,
10226,
1198,
273,
1083,
4672,
3536,
3502,
279,
1459,
358,
326,
919,
3267,
2063,
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
] |
config = type('config', (object,), {'command_char': '!'})
|
config = {'command_char': '!'}
|
def test_privmsg_command_char(self): '''Calling bot.privmsg with custom command char''' # set up command char config _COMMAND_CHAR = ircbot.COMMAND_CHAR
|
db0c181a6701a891323882a8832849034e187da8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5759/db0c181a6701a891323882a8832849034e187da8/test_events.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11365,
3576,
67,
3076,
67,
3001,
12,
2890,
4672,
9163,
19677,
2512,
18,
11365,
3576,
598,
1679,
1296,
1149,
26418,
468,
444,
731,
1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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11365,
3576,
67,
3076,
67,
3001,
12,
2890,
4672,
9163,
19677,
2512,
18,
11365,
3576,
598,
1679,
1296,
1149,
26418,
468,
444,
731,
1296,
1149,
642,
389,
19104,
67,
7305,
273,
277,
1310,
4819,
18,
19104,
67,
7305,
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
] |
while 1: URL = "/w/index.php?title=Special:Log&type=newusers&user=&page=&limit=%d" % limit log = welcomesite.getUrl(URL) wikipedia.output(u"Loading latest " + str(limit) + u" new users from " + (wikipedia.getSite().hostname()) + u"...\n") parsed = parselog(log) for tablita in parsed: username = str(tablita[0]) UNT = wikipedia.Page(welcomesite, talk + username) baduser = False try: int(username) baduser = True except ValueError: pass for word in elenco: if word.lower() in username.lower(): baduser = True if baduser == True: running = True while running: if ask == True: wikipedia.output(u"%s hasn't got a valid nickname, what shall i do?" % username ) answer = wikipedia.input(u"[B]lock or [W]elcome?") for w in block: if w in answer:
|
try: while 1: if filter_wp == True: elencoaf = [' ano', ' anus', 'anal ', 'babies', 'baldracca', 'balle', 'bastardo', 'bestiali', 'bestiale', 'bastarda', 'b.i.t.c.h.', 'bitch', 'boobie', 'bordello', 'breast', 'cacata', 'cacca', 'cachapera', 'cagata', 'cane', 'cazz', 'cazzo', 'cazzata', 'chiavare', 'chiavata', 'chick', 'christ ', 'cristo', 'clitoride', 'coione', 'cojdioonear', 'cojones', 'cojo', 'coglione', 'coglioni', 'cornuto', 'cula', 'culatone', 'culattone', 'culo', 'deficiente', 'deficente', 'dio', 'die ', 'died ', 'ditalino', 'ejackulate', 'enculer', 'eroticunt', 'fanculo', 'fellatio', 'fica ', 'ficken', 'figa', 'sfiga', 'fottere', 'fotter', 'fottuto', 'fuck', 'f.u.c.k.', "funkyass"] elencogz = ['gay', 'gaysex', 'hentai.com', 'horne', 'horney', 'hot', 'virgin', 'hot', 'hotties', 'idiot', '@alice.it', 'incest', 'jesus', 'gesu', 'gesù', 'kazzo', 'kill', 'leccaculo', 'lesbian', 'lesbica', 'lesbo', 'masturbazione', 'masturbare', 'masturbo', 'merda', 'merdata', 'merdoso', 'mignotta', 'minchia', 'minkia', 'minchione', 'mona', 'nudo', 'nuda', 'nudi', 'oral', 'sex', 'orgasmso', 'porc', 'pompa', 'pompino', 'porno', 'puttana', 'puzza', 'puzzone', "racchia", 'sborone', 'sborrone', 'sborata', 'sborolata', 'sboro', 'scopata', 'scopare', 'scroto', 'scrotum', 'sega', 'sex', 'sesso', 'shit', 'shiz', 's.h.i.t.', 'sadomaso', 'sodomist', 'stronzata', 'stronzo', 'succhiamelo', 'succhiacazzi', 'testicol', 'troia', 'universetoday.net', 'vaffanculo', 'vagina', 'vibrator', "vacca", 'yiddiot', "zoccola"] elenco_others = ['@', ".com", ".sex", ".org", ".uk", ".en", ".it", "admin", "administrator", "amministratore", '@yahoo.com', '@alice.com', "amministratrice", "burocrate", "checkuser", "developer", "http://", "jimbo", 'jimmy wales', 'jymmy wales', 'jymbo wales', 'jimbo waIes', "mediawiki", "on wheals", "on wheal", "on wheel", "on wheels", "planante", "razinger", "sysop", "troll", "vandal", " v.f. ", "v. fighter", "vandal f.", "vandal fighter", 'wales jimmy', "wheels", 'willy wheels', "wales", "www."] badword_page = wikipedia.Page(lang, bad_page) if badword_page.exists(): wikipedia.output(u"\nLoading the bad words list from " + welcomesite.hostname() + u"...") text_bad = badword_page.get() list_loaded = badword_function(text_bad) else: wikipedia.output(u"\t\t>>>WARNING: The bad word page doesn't exist!<<<") list_loaded = list() elencovarie = elenco_others + list_loaded elif filter_wp == False: elencoaf = list() elencogz = list() elencovarie = list() elenco = elencoaf + elencogz + elencovarie if filter_wp == True: whitelist_default = ['emiliano'] whitelist_page = wikipedia.Page(lang, wtlpg) if whitelist_page.exists(): wikipedia.output(u"\nLoading the whitelist from " + welcomesite.hostname() + u"...") text_white = whitelist_page.get() list_white = badword_function(text_white) else: wikipedia.output(u"\t\t>>>WARNING: The whitelist's page doesn't exist!<<<") list_white = list() else: list_white = list() whitelist_default = list() whitelist = list_white + whitelist_default block = ("B", "b", "Blocco", "blocco", "block", "bloc", "Block", "Bloc", 'Report', 'report') say_hi = ("S", "s", "Saluto", "saluto", "Welcome", "welcome", 'w', 'W', 'say hi', 'Say hi', 'Hi', 'hi', 'h', 'hello', 'Hello') URL = "/w/index.php?title=Special:Log&type=newusers&user=&page=&limit=%d" % limit log = welcomesite.getUrl(URL) wikipedia.output(u"Loading latest " + str(limit) + u" new users from " + (welcomesite.hostname()) + u"...\n") parsed = parselog(log) if random == True: try: SignList = DefineSign(welcomesite, SignPage) except wikipedia.NoPage: wikipedia.output(u"The sign's list isn't available... using default sign...") random = False for tablita in parsed: if project == "wikinews": if lang == "it": logg = 'Wikinotizie:Benvenuto log' welcom = "{{subst:benvenuto|%s}}" sign = 'Tooby' elif project == 'wiktionaty': if lang == 'it': logg = 'Wikizionario:Benvenuto log' welcom = '{{Utente:Filnik/Benve|nome={{subst:PAGENAME}}}} %s' if random == True: if number_user + 1> len(SignList): number_user = 0 welcom = welcomer % SignList[number_user] else: welcom = welcomer % sign username = str(tablita[0]) UNT = wikipedia.Page(welcomesite, talk + username) baduser = False try: int(username) baduser = True except ValueError: pass ki = blocked(username, welcomesite) if ki == 'Blocked': baduser = True for word in elenco: if word.lower() in username.lower(): baduser = True for xy in whitelist: if xy.lower() in username.lower(): username.replace(xy, '') for word in elenco: if word.lower() in username.lower(): baduser = True else: baduser = False if baduser == True: running = True while running: if ask == True: wikipedia.output(u"%s hasn't got a valid nickname, what shall i do?" % username ) answer = wikipedia.input(u"[B]lock or [W]elcome?") for w in block: if w in answer: if not UNT.exists(): report(lang, rep_page, username, com, rep_text) running = False else: wikipedia.output(u'The discussion page of the bad-user already exist...') running = False for w in say_hi: if w in answer: baduser = False running = False elif ask == False: wikipedia.output(u"%s is possibly not a wanted username. It will be reported." % username) if not UNT.exists():
|
def report(lang, rep_page, username, com, rep): another_page = wikipedia.Page(lang, rep_page) if another_page.exists(): text_get = another_page.get() else: text_get = '' pos = 0 # The talk page includes "_" between the two names, in this way i replace them to " " regex = talk.replace('_', ' ') + username n = re.compile(regex, re.UNICODE) y = n.search(text_get, pos) if y == None: # Adding the log :) rep_text = rep % username another_page.put(text_get + rep_text, comment = com, minorEdit = True) wikipedia.output(u"...Reported...") else: pos = y.end() wikipedia.output(u"The user is already in the report page.")
|
dfe6e60e902823a8403f731ef0b42749b0157909 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/dfe6e60e902823a8403f731ef0b42749b0157909/welcome.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
4936,
16,
2071,
67,
2433,
16,
2718,
16,
532,
16,
2071,
4672,
4042,
67,
2433,
273,
21137,
18,
1964,
12,
4936,
16,
2071,
67,
2433,
13,
309,
4042,
67,
2433,
18,
1808,
13332,
977,
67,
588,
273,
4042,
67,
2433,
18,
588,
1435,
469,
30,
977,
67,
588,
273,
875,
949,
273,
374,
468,
1021,
26591,
1363,
6104,
8802,
3086,
326,
2795,
1257,
16,
316,
333,
4031,
277,
1453,
2182,
358,
315,
315,
3936,
273,
26591,
18,
2079,
2668,
67,
2187,
296,
8624,
397,
2718,
290,
273,
283,
18,
11100,
12,
7584,
16,
283,
18,
26642,
13,
677,
273,
290,
18,
3072,
12,
955,
67,
588,
16,
949,
13,
309,
677,
422,
599,
30,
468,
21240,
326,
613,
294,
13,
2071,
67,
955,
273,
2071,
738,
2718,
4042,
67,
2433,
18,
458,
12,
955,
67,
588,
397,
2071,
67,
955,
16,
2879,
273,
532,
16,
8439,
4666,
273,
1053,
13,
21137,
18,
2844,
12,
89,
6,
2777,
426,
1798,
7070,
13,
469,
30,
949,
273,
677,
18,
409,
1435,
21137,
18,
2844,
12,
89,
6,
1986,
729,
353,
1818,
316,
326,
2605,
1363,
1199,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
4936,
16,
2071,
67,
2433,
16,
2718,
16,
532,
16,
2071,
4672,
4042,
67,
2433,
273,
21137,
18,
1964,
12,
4936,
16,
2071,
67,
2433,
13,
309,
4042,
67,
2433,
18,
1808,
13332,
977,
67,
588,
273,
4042,
67,
2433,
18,
588,
1435,
469,
30,
977,
67,
588,
273,
875,
949,
273,
374,
468,
1021,
26591,
1363,
6104,
8802,
3086,
326,
2795,
1257,
16,
316,
333,
4031,
277,
1453,
2182,
358,
315,
315,
3936,
273,
26591,
18,
2079,
2668,
67,
2187,
296,
8624,
397,
2718,
290,
273,
283,
18,
11100,
12,
7584,
16,
283,
18,
26642,
13,
677,
273,
290,
18,
3072,
12,
955,
67,
588,
16,
949,
13,
309,
677,
422,
599,
30,
468,
21240,
2
] |
if self._top is None: return self._top.destroy() self._top = None
|
if self._root is None: return for m in sys.modules.keys(): if m not in self._old_modules: del sys.modules[m] self._root.destroy() self._root = None def add_module(self, name, check=0): if check: try: m = import_module(name) except: print >>sys.stderr, "Error importing module: %s" % name self._update_messages() self._root.bell() return self._module_list.insert('end', name) self._module_list.yview('end')
|
def destroy(self, *e): if self._top is None: return self._top.destroy() self._top = None
|
4cf6d74130c32443c10897614b39d1c2c512796c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/4cf6d74130c32443c10897614b39d1c2c512796c/gui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
16,
380,
73,
4672,
309,
365,
6315,
3669,
353,
599,
30,
327,
365,
6315,
3669,
18,
11662,
1435,
365,
6315,
3669,
273,
599,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
16,
380,
73,
4672,
309,
365,
6315,
3669,
353,
599,
30,
327,
365,
6315,
3669,
18,
11662,
1435,
365,
6315,
3669,
273,
599,
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
] |
def __init__(self, is_total=True): self.is_total = is_total
|
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
|
2de7dc9c2b01f64ae003edf0798f21745ad80d56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/2de7dc9c2b01f64ae003edf0798f21745ad80d56/process.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
9355,
12,
9355,
13,
294,
1446,
273,
1408,
364,
277,
316,
1048,
12,
9355,
4672,
1446,
1011,
315,
565,
315,
327,
1446,
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,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273,
1408,
364,
277,
316,
1048,
12,
9355,
4672,
1446,
1011,
315,
565,
315,
327,
1446,
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
] |
|
if elapsed > 5.0: print >> param.log, 'Slow SQL:', elapsed, args, kwargs
|
if param.debug: if elapsed > 5.0: print >> param.log, 'Slow SQL:', elapsed, args, kwargs print >> param.log, thread.get_ident(), time.time(), 'done'
|
def execute(self, *args, **kwargs): from pysqlite2 import dbapi2 as sqlite before = time.time() backoff = 0.1 done = False while not done: try: result = self.c.execute(*args, **kwargs) done = True except sqlite.OperationalError, e: print >> param.log, str(e) + ', sleeping for', backoff time.sleep(backoff) backoff = min(backoff * 2, 5.0) elapsed = time.time() - before if elapsed > 5.0: print >> param.log, 'Slow SQL:', elapsed, args, kwargs return result
|
f6424833c58f7002c124272cb8b55b3abac707fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/f6424833c58f7002c124272cb8b55b3abac707fa/singleton.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
628,
293,
5308,
1137,
22,
1930,
1319,
2425,
22,
487,
16184,
1865,
273,
813,
18,
957,
1435,
12260,
273,
374,
18,
21,
2731,
273,
1083,
1323,
486,
2731,
30,
775,
30,
563,
273,
365,
18,
71,
18,
8837,
30857,
1968,
16,
2826,
4333,
13,
2731,
273,
1053,
1335,
16184,
18,
2988,
287,
668,
16,
425,
30,
1172,
1671,
579,
18,
1330,
16,
609,
12,
73,
13,
397,
2265,
5329,
310,
364,
2187,
12260,
813,
18,
19607,
12,
823,
3674,
13,
12260,
273,
1131,
12,
823,
3674,
380,
576,
16,
1381,
18,
20,
13,
9613,
273,
813,
18,
957,
1435,
300,
1865,
309,
579,
18,
4148,
30,
309,
9613,
405,
1381,
18,
20,
30,
1172,
1671,
579,
18,
1330,
16,
296,
28733,
3063,
30,
2187,
9613,
16,
833,
16,
1205,
1172,
1671,
579,
18,
1330,
16,
2650,
18,
588,
67,
6392,
9334,
813,
18,
957,
9334,
296,
8734,
11,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
628,
293,
5308,
1137,
22,
1930,
1319,
2425,
22,
487,
16184,
1865,
273,
813,
18,
957,
1435,
12260,
273,
374,
18,
21,
2731,
273,
1083,
1323,
486,
2731,
30,
775,
30,
563,
273,
365,
18,
71,
18,
8837,
30857,
1968,
16,
2826,
4333,
13,
2731,
273,
1053,
1335,
16184,
18,
2988,
287,
668,
16,
425,
30,
1172,
1671,
579,
18,
1330,
16,
609,
12,
73,
13,
397,
2265,
5329,
310,
364,
2187,
12260,
813,
18,
19607,
12,
823,
3674,
13,
12260,
273,
1131,
12,
823,
3674,
380,
576,
16,
1381,
18,
20,
13,
9613,
273,
813,
18,
957,
1435,
300,
1865,
309,
579,
18,
4148,
30,
309,
9613,
2
] |
chapSecrets.items[client] = ('pptpd', secret, ip)
|
chapSecrets.items['pptpd'][client] = {'server': 'pptpd', 'client': client, 'secret': secret, 'ip': ip}
|
def _call(self, client, secret, ip = ''): chapSecrets = ChapSecrets() chapSecrets.items[client] = ('pptpd', secret, ip) chapSecrets.save() return A(None, 'Account successfully added')
|
71032fff4d9b51a3855c878834a988ac48a49726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/71032fff4d9b51a3855c878834a988ac48a49726/vpn.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
1004,
16,
4001,
16,
2359,
273,
875,
4672,
462,
438,
20815,
273,
1680,
438,
20815,
1435,
462,
438,
20815,
18,
3319,
3292,
84,
337,
22353,
3546,
63,
2625,
65,
273,
13666,
3567,
4278,
296,
84,
337,
22353,
2187,
296,
2625,
4278,
1004,
16,
296,
5875,
4278,
4001,
16,
296,
625,
4278,
2359,
97,
462,
438,
20815,
18,
5688,
1435,
327,
432,
12,
7036,
16,
296,
3032,
4985,
3096,
6134,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
1991,
12,
2890,
16,
1004,
16,
4001,
16,
2359,
273,
875,
4672,
462,
438,
20815,
273,
1680,
438,
20815,
1435,
462,
438,
20815,
18,
3319,
3292,
84,
337,
22353,
3546,
63,
2625,
65,
273,
13666,
3567,
4278,
296,
84,
337,
22353,
2187,
296,
2625,
4278,
1004,
16,
296,
5875,
4278,
4001,
16,
296,
625,
4278,
2359,
97,
462,
438,
20815,
18,
5688,
1435,
327,
432,
12,
7036,
16,
296,
3032,
4985,
3096,
6134,
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
] |
try: ignore = posix.fdopen except: raise AttributeError, 'dup() method unavailable'
|
if not hasattr(posix, 'fdopen'): raise AttributeError, 'dup() method unavailable'
|
def dup2(self, fd): import posix
|
748394e4dcbaa5fb305c797b846c0c7323c09f95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/748394e4dcbaa5fb305c797b846c0c7323c09f95/posixfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9417,
22,
12,
2890,
16,
5194,
4672,
1930,
16366,
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,
9417,
22,
12,
2890,
16,
5194,
4672,
1930,
16366,
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
] |
return self._operator(*new_ops)
|
is_constant = all(map(lambda x: isinstance(x, SymbolicConstant), new_ops)) if is_constant: return SymbolicConstant( self._operator(*map(lambda x: x._obj, new_ops)) ) else: return self._operator(*new_ops)
|
def _recursive_sub(self, kwds): """ EXAMPLES: sage: var('x, y, z, w') (x, y, z, w) sage: f = (x - x) + y^2 - z/z + (w^2-1)/(w+1); f y^2 + (w^2 - 1)/(w + 1) - 1 sage: f(y=10) (w^2 - 1)/(w + 1) + 99 sage: f(w=1,y=10) 99 sage: f(y=w,w=y) (y^2 - 1)/(y + 1) + w^2 - 1
|
8d7518bbb7da3058b8ec2ee8e10caf032d5510eb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8d7518bbb7da3058b8ec2ee8e10caf032d5510eb/calculus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10543,
67,
1717,
12,
2890,
16,
17149,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
569,
2668,
92,
16,
677,
16,
998,
16,
341,
6134,
261,
92,
16,
677,
16,
998,
16,
341,
13,
272,
410,
30,
284,
273,
261,
92,
300,
619,
13,
397,
677,
66,
22,
300,
998,
19,
94,
397,
261,
91,
66,
22,
17,
21,
13176,
12,
91,
15,
21,
1769,
284,
677,
66,
22,
397,
261,
91,
66,
22,
300,
404,
13176,
12,
91,
397,
404,
13,
300,
404,
272,
410,
30,
284,
12,
93,
33,
2163,
13,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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,
389,
10543,
67,
1717,
12,
2890,
16,
17149,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
569,
2668,
92,
16,
677,
16,
998,
16,
341,
6134,
261,
92,
16,
677,
16,
998,
16,
341,
13,
272,
410,
30,
284,
273,
261,
92,
300,
619,
13,
397,
677,
66,
22,
300,
998,
19,
94,
397,
261,
91,
66,
22,
17,
21,
13176,
12,
91,
15,
21,
1769,
284,
677,
66,
22,
397,
261,
91,
66,
22,
300,
404,
13176,
12,
91,
397,
404,
13,
300,
404,
272,
410,
30,
284,
12,
93,
33,
2163,
13,
261,
91,
66,
22,
300,
404,
13176,
12,
91,
397,
404,
13,
397,
14605,
272,
410,
30,
284,
12,
91,
33,
21,
16,
2
] |
def close(self):
|
def close(self):
|
def close(self):
|
f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580/binhex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cty.POINTER(cty.c_uint)],
|
cty.POINTER(cty.c_uint)],
|
def fl_popup_entry_set_subpopup(p1, p2): """ fl_popup_entry_set_subpopup(p1, p2) -> popup """ retval = _fl_popup_entry_set_subpopup(p1, p2) return retval
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
16086,
67,
4099,
67,
542,
67,
1717,
16086,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
16086,
67,
4099,
67,
542,
67,
1717,
16086,
12,
84,
21,
16,
293,
22,
13,
317,
10431,
3536,
225,
5221,
273,
389,
2242,
67,
16086,
67,
4099,
67,
542,
67,
1717,
16086,
12,
84,
21,
16,
293,
22,
13,
327,
5221,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 result[ 'OK' ]: return result result = gAccountingDB.loadPendingRecords()
|
def initializeDataStoreHandler( serviceInfo ): global gAccountingDB gAccountingDB = AccountingDB() gAccountingDB.autoCompactDB() result = gAccountingDB.markAllPendingRecordsAsNotTaken() if not result[ 'OK' ]: return result result = gAccountingDB.loadPendingRecords() if not result[ 'OK' ]: return result gThreadScheduler.addPeriodicTask( 60, gAccountingDB.loadPendingRecords ) return S_OK()
|
40294d2721f6386cbe907e9f1c8ff4f5bf48e045 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/40294d2721f6386cbe907e9f1c8ff4f5bf48e045/DataStoreHandler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
24977,
1503,
12,
1156,
966,
262,
30,
2552,
314,
3032,
310,
2290,
314,
3032,
310,
2290,
273,
6590,
310,
2290,
1435,
314,
3032,
310,
2290,
18,
6079,
16863,
2290,
1435,
563,
273,
314,
3032,
310,
2290,
18,
3355,
1595,
8579,
6499,
1463,
1248,
27486,
1435,
309,
486,
563,
63,
296,
3141,
11,
308,
30,
327,
563,
314,
3830,
11870,
18,
1289,
31461,
2174,
12,
4752,
16,
314,
3032,
310,
2290,
18,
945,
8579,
6499,
262,
327,
348,
67,
3141,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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499,
1463,
1248,
27486,
1435,
309,
486,
563,
63,
296,
3141,
11,
308,
30,
327,
563,
314,
3830,
11870,
18,
1289,
31461,
2174,
12,
4752,
16,
314,
3032,
310,
2290,
18,
945,
8579,
6499,
262,
327,
348,
67,
3141,
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
] |
|
def showMessageBox(self, s): s = str(s).strip()
|
def updateMessageBox(self, item): self.currentItem = item msg_box = self.msg_box s = str(item.data(32).toString())
|
def showMessageBox(self, s): s = str(s).strip() msgs = s.split('\n') if self.msg_box and self.msg_box.isVisible(): self.msg_box.close() msg_box = QtGui.QMessageBox(self.parent()) self.msg_box = msg_box if msgs[0] == "INFO": msg_box.setIcon(QtGui.QMessageBox.Information) msg_box.setWindowTitle("Information") elif msgs[0] == "WARNING": msg_box.setIcon(QtGui.QMessageBox.Warning) msg_box.setWindowTitle("Warning") elif msgs[0] == "CRITICAL": msg_box.setIcon(QtGui.QMessageBox.Critical) msg_box.setWindowTitle("Critical error") msg_box.setText(msgs[3]) text = "Time: %s\n Location: %s\n Message:\n%s" % \ (msgs[1], msgs[2], '\n'.join(msgs[3:])) msg_box.setInformativeText('\n'.join(msgs[4:])) msg_box.setStandardButtons(QtGui.QMessageBox.Ok) msg_box.setDefaultButton(QtGui.QMessageBox.Ok) msg_box.setDetailedText(text) msg_box.show()
|
037568dc5960fe0f55f627faf210c87f5ee28788 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/037568dc5960fe0f55f627faf210c87f5ee28788/debug.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
27647,
12,
2890,
16,
761,
4672,
365,
18,
2972,
1180,
273,
761,
1234,
67,
2147,
273,
365,
18,
3576,
67,
2147,
225,
272,
273,
609,
12,
1726,
18,
892,
12,
1578,
2934,
10492,
10756,
8733,
273,
272,
18,
4939,
2668,
64,
82,
6134,
309,
365,
18,
3576,
67,
2147,
471,
365,
18,
3576,
67,
2147,
18,
291,
6207,
13332,
365,
18,
3576,
67,
2147,
18,
4412,
1435,
1234,
67,
2147,
273,
23425,
18,
53,
27647,
12,
2890,
18,
2938,
10756,
365,
18,
3576,
67,
2147,
273,
1234,
67,
2147,
309,
8733,
63,
20,
65,
422,
315,
5923,
6877,
1234,
67,
2147,
18,
542,
5554,
12,
23310,
18070,
18,
53,
27647,
18,
5369,
13,
1234,
67,
2147,
18,
542,
3829,
4247,
2932,
5369,
7923,
1327,
8733,
63,
20,
65,
422,
315,
9511,
6877,
1234,
67,
2147,
18,
542,
5554,
12,
23310,
18070,
18,
53,
27647,
18,
6210,
13,
1234,
67,
2147,
18,
542,
3829,
4247,
2932,
6210,
7923,
1327,
8733,
63,
20,
65,
422,
315,
5093,
21377,
6877,
1234,
67,
2147,
18,
542,
5554,
12,
23310,
18070,
18,
53,
27647,
18,
30286,
13,
1234,
67,
2147,
18,
542,
3829,
4247,
2932,
30286,
555,
7923,
1234,
67,
2147,
18,
542,
1528,
12,
27439,
63,
23,
5717,
977,
273,
315,
950,
30,
738,
87,
64,
82,
7050,
30,
738,
87,
64,
82,
2350,
5581,
82,
9,
87,
6,
738,
521,
261,
27439,
63,
21,
6487,
8733,
63,
22,
6487,
2337,
82,
10332,
5701,
12,
27439,
63,
23,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
27647,
12,
2890,
16,
761,
4672,
365,
18,
2972,
1180,
273,
761,
1234,
67,
2147,
273,
365,
18,
3576,
67,
2147,
225,
272,
273,
609,
12,
1726,
18,
892,
12,
1578,
2934,
10492,
10756,
8733,
273,
272,
18,
4939,
2668,
64,
82,
6134,
309,
365,
18,
3576,
67,
2147,
471,
365,
18,
3576,
67,
2147,
18,
291,
6207,
13332,
365,
18,
3576,
67,
2147,
18,
4412,
1435,
1234,
67,
2147,
273,
23425,
18,
53,
27647,
12,
2890,
18,
2938,
10756,
365,
18,
3576,
67,
2147,
273,
1234,
67,
2147,
309,
8733,
63,
20,
65,
422,
315,
5923,
6877,
1234,
67,
2147,
18,
542,
5554,
12,
23310,
18070,
18,
53,
27647,
18,
5369,
13,
1234,
67,
2147,
18,
2
] |
return aValue * N_A def __convertSpeciesSize( self, aSize, aSpecies ): if ( aSpecies[6] != '' ): for aCompartment in self.Model.CompartmentList: if( aCompartment[0] == aSpecies[2] ): if( aCompartment[2] == 0 or aSpecies[8] == 1 ): print "Error : SpatialSizeUnits must not have a value if spatialDimensions on the compartment has a value of 0, or if the species's value of the units field of the species' compartment" sys.exit(1) return self.__convertSpeciesUnit( aSize, aSpecies[6] ) elif ( self.Model.CompartmentUnit[ aSpecies[2] ] != '' ): return self.__convertSpeciesUnit( aSize, self.Model.CompartmentUnit[ aSpecies[2] ] ) else: return aSize def __convertSpeciesUnit( self, aValue, anUnitID ): convertedValueList = [] for anUnitDefinition in self.Model.UnitDefinitionList: if ( anUnitDefinition[0] == anUnitID ): for anUnit in anUnitDefinition[2]: if( anUnit[0] == "mole" ): tmpValue = ( pow( aValue, anUnit[1] ) * pow( 10, anUnit[2] ) * anUnit[3] + anUnit[4] ) * N_A convertedValueList.append( tmpValue ) elif ( anUnit[0] == "item" or anUnit[0] == "litre" or anUnit[0] == "metre" ): tmpValue = ( pow( aValue, anUnit[1] ) * pow( 10, anUnit[2] ) * anUnit[3] + anUnit[4] ) convertedValueList.append( tmpValue ) else: print "Unit Error : SBML Importer isn't mounted ",anUnit[0]," Unit" sys.exit(1) if ( convertedValueList == [] ): if ( anUnitID == "mole" ): tmpValue = aValue * N_A convertedValueList.append( tmpValue ) else: print "Unit Error : SBML Importer isn't mounted ",anUnit[0]," Unit" sys.exit(1) return convertedValueList[0]
|
return 0
|
def __convertSpeciesValue( self, aValue, aSpecies ):
|
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6283,
1990,
606,
620,
12,
365,
16,
24406,
16,
279,
1990,
606,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6283,
1990,
606,
620,
12,
365,
16,
24406,
16,
279,
1990,
606,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_fl_set_text_clipping = cfuncproto(so_libforms, "fl_set_text_clipping", None, [FL_Coord, FL_Coord, FL_Coord, FL_Coord],
|
_fl_set_text_clipping = cfuncproto(so_libforms, "fl_set_text_clipping", None, [FL_Coord, FL_Coord, FL_Coord, FL_Coord],
|
def fl_unset_clipping(): """ fl_unset_clipping() """ _fl_unset_clipping()
|
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,
18579,
67,
14161,
1382,
13332,
3536,
1183,
67,
18579,
67,
14161,
1382,
1435,
3536,
225,
389,
2242,
67,
18579,
67,
14161,
1382,
1435,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18579,
67,
14161,
1382,
13332,
3536,
1183,
67,
18579,
67,
14161,
1382,
1435,
3536,
225,
389,
2242,
67,
18579,
67,
14161,
1382,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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<1>' + _(' at ') + '\g<2>', body)
|
'\g<1>' + atmark + '\g<2>', body)
|
def as_text(self): d = self.__dict__.copy() # We need to guarantee a valid From_ line, even if there are # bososities in the headers. if not d.get('fromdate', '').strip(): d['fromdate'] = time.ctime(time.time()) if not d.get('email', '').strip(): d['email'] = 'bogus@does.not.exist.com' if not d.get('datestr', '').strip(): d['datestr'] = time.ctime(time.time()) # headers = ['From %(email)s %(fromdate)s', 'From: %(email)s (%(author)s)', 'Date: %(datestr)s', 'Subject: %(subject)s'] if d['_in_reply_to']: headers.append('In-Reply-To: %(_in_reply_to)s') if d['_references']: headers.append('References: %(_references)s') if d['_message_id']: headers.append('Message-ID: %(_message_id)s') body = EMPTYSTRING.join(self.body) if isinstance(body, types.UnicodeType): body = body.encode(Utils.GetCharSet(self._lang), 'replace') if mm_cfg.ARCHIVER_OBSCURES_EMAILADDRS: otrans = i18n.get_translation() try: i18n.set_language(self._lang) body = re.sub(r'([-+,.\w]+)@([-+.\w]+)', '\g<1>' + _(' at ') + '\g<2>', body) finally: i18n.set_translation(otrans) return NL.join(headers) % d + '\n\n' + body + '\n'
|
2cba5e1afb047f68a965e126005f0ed670262dce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/2cba5e1afb047f68a965e126005f0ed670262dce/HyperArch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
955,
12,
2890,
4672,
302,
273,
365,
16186,
1576,
25648,
3530,
1435,
468,
1660,
1608,
358,
18779,
279,
923,
6338,
67,
980,
16,
5456,
309,
1915,
854,
468,
23904,
538,
1961,
316,
326,
1607,
18,
309,
486,
302,
18,
588,
2668,
2080,
712,
2187,
875,
2934,
6406,
13332,
302,
3292,
2080,
712,
3546,
273,
813,
18,
21261,
12,
957,
18,
957,
10756,
309,
486,
302,
18,
588,
2668,
3652,
2187,
875,
2934,
6406,
13332,
302,
3292,
3652,
3546,
273,
296,
70,
28774,
36,
20657,
18,
902,
18,
7398,
18,
832,
11,
309,
486,
302,
18,
588,
2668,
9683,
313,
2187,
875,
2934,
6406,
13332,
302,
3292,
9683,
313,
3546,
273,
813,
18,
21261,
12,
957,
18,
957,
10756,
468,
1607,
273,
10228,
1265,
8975,
3652,
13,
87,
225,
8975,
2080,
712,
13,
87,
2187,
296,
1265,
30,
8975,
3652,
13,
87,
6142,
12,
4161,
13,
87,
13,
2187,
296,
1626,
30,
8975,
9683,
313,
13,
87,
2187,
296,
6638,
30,
8975,
7857,
13,
87,
3546,
309,
302,
3292,
67,
267,
67,
10629,
67,
869,
3546,
30,
1607,
18,
6923,
2668,
382,
17,
7817,
17,
774,
30,
8975,
67,
267,
67,
10629,
67,
869,
13,
87,
6134,
309,
302,
3292,
67,
14353,
3546,
30,
1607,
18,
6923,
2668,
8221,
30,
8975,
67,
14353,
13,
87,
6134,
309,
302,
3292,
67,
2150,
67,
350,
3546,
30,
1607,
18,
6923,
2668,
1079,
17,
734,
30,
8975,
67,
2150,
67,
350,
13,
87,
6134,
1417,
273,
8984,
5804,
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,
487,
67,
955,
12,
2890,
4672,
302,
273,
365,
16186,
1576,
25648,
3530,
1435,
468,
1660,
1608,
358,
18779,
279,
923,
6338,
67,
980,
16,
5456,
309,
1915,
854,
468,
23904,
538,
1961,
316,
326,
1607,
18,
309,
486,
302,
18,
588,
2668,
2080,
712,
2187,
875,
2934,
6406,
13332,
302,
3292,
2080,
712,
3546,
273,
813,
18,
21261,
12,
957,
18,
957,
10756,
309,
486,
302,
18,
588,
2668,
3652,
2187,
875,
2934,
6406,
13332,
302,
3292,
3652,
3546,
273,
296,
70,
28774,
36,
20657,
18,
902,
18,
7398,
18,
832,
11,
309,
486,
302,
18,
588,
2668,
9683,
313,
2187,
875,
2934,
6406,
13332,
302,
3292,
9683,
313,
3546,
273,
813,
18,
21261,
12,
957,
18,
2
] |
old = sysconfig._config_vars.get('VERSION')
|
old = sysconfig.get_config_vars().get('VERSION')
|
def test_version_int(self): source = self.mkdtemp() target = self.mkdtemp() expected = self.write_sample_scripts(source)
|
139c6b0217feeef3cf1c20a9479eb3ecb13f8923 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/139c6b0217feeef3cf1c20a9479eb3ecb13f8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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1589,
67,
474,
12,
2890,
4672,
1084,
273,
365,
18,
24816,
72,
5814,
1435,
1018,
273,
365,
18,
24816,
72,
5814,
1435,
2665,
273,
365,
18,
2626,
67,
6358,
67,
12827,
12,
3168,
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
] |
self.stats = Stats(profile) self.stream = self.stats.stream else: self.stats = None self.stream = sys.stdout
|
self.do_read(profile)
|
def __init__(self, profile=None): cmd.Cmd.__init__(self) self.prompt = "% " if profile is not None: self.stats = Stats(profile) self.stream = self.stats.stream else: self.stats = None self.stream = sys.stdout
|
401c4c60c38ffdcfe94d253cbc3c890a8ec5830d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/401c4c60c38ffdcfe94d253cbc3c890a8ec5830d/pstats.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3042,
33,
7036,
4672,
1797,
18,
5931,
16186,
2738,
972,
12,
2890,
13,
365,
18,
13325,
273,
2213,
315,
309,
3042,
353,
486,
599,
30,
365,
18,
5296,
273,
11486,
12,
5040,
13,
365,
18,
3256,
273,
365,
18,
5296,
18,
3256,
469,
30,
365,
18,
5296,
273,
599,
365,
18,
3256,
273,
2589,
18,
10283,
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,
1001,
2738,
972,
12,
2890,
16,
3042,
33,
7036,
4672,
1797,
18,
5931,
16186,
2738,
972,
12,
2890,
13,
365,
18,
13325,
273,
2213,
315,
309,
3042,
353,
486,
599,
30,
365,
18,
5296,
273,
11486,
12,
5040,
13,
365,
18,
3256,
273,
365,
18,
5296,
18,
3256,
469,
30,
365,
18,
5296,
273,
599,
365,
18,
3256,
273,
2589,
18,
10283,
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
] |
if 0 <= idx < len(commandlist) and type(commandlist) == type(()) and \
|
if 0 <= idx < len(commandlist) and type(commandlist[idx]) == type(()) and \
|
def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfolder=1, id=ARGV_ID): d = GetNewDialog(id, -1) if not d: print "Can't get DLOG resource with id =", id return
|
0bb0a90b200ef40f812b70c2623c7062cd39f3b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bb0a90b200ef40f812b70c2623c7062cd39f3b3/EasyDialogs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4117,
90,
12,
3482,
1098,
33,
7036,
16,
1296,
1098,
33,
7036,
16,
527,
1673,
768,
33,
21,
16,
527,
2704,
768,
33,
21,
16,
527,
5609,
33,
21,
16,
612,
33,
10973,
58,
67,
734,
4672,
302,
273,
968,
1908,
6353,
12,
350,
16,
300,
21,
13,
309,
486,
302,
30,
1172,
315,
2568,
1404,
336,
463,
4842,
1058,
598,
612,
273,
3113,
612,
327,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4117,
90,
12,
3482,
1098,
33,
7036,
16,
1296,
1098,
33,
7036,
16,
527,
1673,
768,
33,
21,
16,
527,
2704,
768,
33,
21,
16,
527,
5609,
33,
21,
16,
612,
33,
10973,
58,
67,
734,
4672,
302,
273,
968,
1908,
6353,
12,
350,
16,
300,
21,
13,
309,
486,
302,
30,
1172,
315,
2568,
1404,
336,
463,
4842,
1058,
598,
612,
273,
3113,
612,
327,
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
] |
v[r+1] += 5
|
v[r+1] += 5*pow(2,self.num_rods-r-1)
|
def value(self): """ Return a string representing the value of each rod. """ string = '' v = [] for r in range(self.num_rods+1): # +1 for overflow v.append(0)
|
dc5d13b1350ad56d01274ef9c8209fa48f609a27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7608/dc5d13b1350ad56d01274ef9c8209fa48f609a27/abacus_window.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
460,
12,
2890,
4672,
3536,
2000,
279,
533,
5123,
326,
460,
434,
1517,
721,
72,
18,
3536,
533,
273,
875,
331,
273,
5378,
364,
436,
316,
1048,
12,
2890,
18,
2107,
67,
303,
2377,
15,
21,
4672,
468,
397,
21,
364,
9391,
331,
18,
6923,
12,
20,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
460,
12,
2890,
4672,
3536,
2000,
279,
533,
5123,
326,
460,
434,
1517,
721,
72,
18,
3536,
533,
273,
875,
331,
273,
5378,
364,
436,
316,
1048,
12,
2890,
18,
2107,
67,
303,
2377,
15,
21,
4672,
468,
397,
21,
364,
9391,
331,
18,
6923,
12,
20,
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
] |
FileThreadingTests)
|
FileThreadingTests, StdoutTests)
|
def test_main(): # Historically, these tests have been sloppy about removing TESTFN. # So get rid of it no matter what. try: run_unittest(AutoFileTests, OtherFileTests, FileSubclassTests, FileThreadingTests) finally: if os.path.exists(TESTFN): os.unlink(TESTFN)
|
32c1aa7769e5e7e0c1fbcdb13578bf86dd97adf9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/32c1aa7769e5e7e0c1fbcdb13578bf86dd97adf9/test_file.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
468,
13244,
280,
6478,
16,
4259,
7434,
1240,
2118,
30748,
2074,
2973,
9427,
22130,
19793,
18,
468,
6155,
336,
10911,
434,
518,
1158,
15177,
4121,
18,
775,
30,
1086,
67,
4873,
3813,
12,
4965,
812,
14650,
16,
4673,
812,
14650,
16,
1387,
1676,
1106,
14650,
16,
1387,
3830,
310,
14650,
16,
13973,
14650,
13,
3095,
30,
309,
1140,
18,
803,
18,
1808,
12,
16961,
19793,
4672,
1140,
18,
318,
1232,
12,
16961,
19793,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
468,
13244,
280,
6478,
16,
4259,
7434,
1240,
2118,
30748,
2074,
2973,
9427,
22130,
19793,
18,
468,
6155,
336,
10911,
434,
518,
1158,
15177,
4121,
18,
775,
30,
1086,
67,
4873,
3813,
12,
4965,
812,
14650,
16,
4673,
812,
14650,
16,
1387,
1676,
1106,
14650,
16,
1387,
3830,
310,
14650,
16,
13973,
14650,
13,
3095,
30,
309,
1140,
18,
803,
18,
1808,
12,
16961,
19793,
4672,
1140,
18,
318,
1232,
12,
16961,
19793,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: body = [output, extra] except NameError: body = [output]
|
body = [output]
|
def perform_modifyindextranslations(idxID, ln=cdslang, sel_type='', trans=[], confirm=-1, callback='yes'): """Modify the translations of a index sel_type - the nametype to modify trans - the translations in the same order as the languages from get_languages()""" output = '' subtitle = '' cdslangs = get_languages() if confirm in ["2", 2] and idxID: finresult = modify_translations(idxID, cdslangs, sel_type, trans, "idxINDEX") idx_dict = dict(get_def_name('', "idxINDEX")) if idxID and idx_dict.has_key(int(idxID)): idxID = int(idxID) subtitle = """<a name="2"></a>2. Modify translations for index.   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % weburl if type(trans) is str: trans = [trans] if sel_type == '': sel_type = get_idx_nametypes()[0][0] header = ['Language', 'Translation'] actions = [] types = get_idx_nametypes() if len(types) > 1: text = """ <span class="adminlabel">Name type</span> <select name="sel_type" class="admin_w200"> """ for (key, value) in types: text += """<option value="%s" %s>%s""" % (key, key == sel_type and 'selected="selected"' or '', value) trans_names = get_name(idxID, ln, key, "field") if trans_names and trans_names[0][0]: text += ": %s" % trans_names[0][0] text += "</option>" text += """</select>""" output += createhiddenform(action="modifyindextranslations#2", text=text, button="Select", idxID=idxID, ln=ln, confirm=0) if confirm in [-1, "-1", 0, "0"]: trans = [] for (key, value) in cdslangs: try: trans_names = get_name(idxID, key, sel_type, "idxINDEX") trans.append(trans_names[0][0]) except StandardError, e: trans.append('') for nr in range(0,len(cdslangs)): actions.append(["%s %s" % (cdslangs[nr][1], (cdslangs[nr][0]==cdslang and '<small>(def)</small>' or ''))]) actions[-1].append('<input type="text" name="trans" size="30" value="%s"/>' % trans[nr]) text = tupletotable(header=header, tuple=actions) output += createhiddenform(action="modifyindextranslations#2", text=text, button="Modify", idxID=idxID, sel_type=sel_type, ln=ln, confirm=2) if sel_type and len(trans): if confirm in ["2", 2]: output += write_outcome(finresult) try: body = [output, extra] except NameError: body = [output] if callback: return perform_editindex(idxID, ln, "perform_modifyindextranslations", addadminbox(subtitle, body)) else: return addadminbox(subtitle, body)
|
2bfebc745d97514fe63c0e385bb842bede8f697e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/2bfebc745d97514fe63c0e385bb842bede8f697e/bibindexadminlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
17042,
1615,
13457,
12,
3465,
734,
16,
7211,
33,
4315,
2069,
539,
16,
357,
67,
723,
2218,
2187,
906,
22850,
6487,
6932,
29711,
21,
16,
1348,
2218,
9707,
11,
4672,
3536,
11047,
326,
7863,
434,
279,
770,
357,
67,
723,
300,
326,
15135,
5872,
358,
5612,
906,
300,
326,
7863,
316,
326,
1967,
1353,
487,
326,
8191,
628,
336,
67,
14045,
1435,
8395,
225,
876,
273,
875,
20281,
273,
875,
7976,
2069,
539,
87,
273,
336,
67,
14045,
1435,
309,
6932,
316,
8247,
22,
3113,
576,
65,
471,
2067,
734,
30,
574,
2088,
273,
5612,
67,
13457,
12,
3465,
734,
16,
7976,
2069,
539,
87,
16,
357,
67,
723,
16,
906,
16,
315,
3465,
9199,
7923,
2067,
67,
1576,
273,
2065,
12,
588,
67,
536,
67,
529,
2668,
2187,
315,
3465,
9199,
6,
3719,
309,
2067,
734,
471,
2067,
67,
1576,
18,
5332,
67,
856,
12,
474,
12,
3465,
734,
3719,
30,
2067,
734,
273,
509,
12,
3465,
734,
13,
20281,
273,
3536,
32,
69,
508,
1546,
22,
13762,
69,
34,
22,
18,
9518,
7863,
364,
770,
18,
10,
10600,
10,
10600,
10,
10600,
32,
12019,
23224,
32,
69,
2077,
1546,
9704,
7343,
6,
3897,
11613,
87,
19,
3666,
19,
70,
495,
1615,
19,
12118,
18,
2620,
6441,
35,
1757,
69,
34,
65,
1757,
12019,
2984,
3660,
738,
3311,
718,
225,
309,
618,
12,
2338,
13,
353,
609,
30,
906,
273,
306,
2338,
65,
309,
357,
67,
723,
422,
875,
30,
357,
67,
723,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
17042,
1615,
13457,
12,
3465,
734,
16,
7211,
33,
4315,
2069,
539,
16,
357,
67,
723,
2218,
2187,
906,
22850,
6487,
6932,
29711,
21,
16,
1348,
2218,
9707,
11,
4672,
3536,
11047,
326,
7863,
434,
279,
770,
357,
67,
723,
300,
326,
15135,
5872,
358,
5612,
906,
300,
326,
7863,
316,
326,
1967,
1353,
487,
326,
8191,
628,
336,
67,
14045,
1435,
8395,
225,
876,
273,
875,
20281,
273,
875,
7976,
2069,
539,
87,
273,
336,
67,
14045,
1435,
309,
6932,
316,
8247,
22,
3113,
576,
65,
471,
2067,
734,
30,
574,
2088,
273,
5612,
67,
13457,
12,
3465,
734,
16,
7976,
2069,
539,
87,
16,
357,
67,
723,
16,
906,
16,
315,
3465,
9199,
7923,
2
] |
return redirect("/{0}/{1}".format(site,id))
|
if isjson is None: isjson = "" else: isjson = ".json?html=1" return redirect("/{0}/{1}{2}".format(site,id,isjson))
|
def replyer(x): a = x.group()[1:] i = find(Comment.id).filter_by(author=a).order_by(Comment.date).all() if i: reply.append(i[-1][0]) return i and '@<a href="/{0}/{1}/reply?{2}#new">{3}</a>'.\ format(site, id, i[-1][0], a)\ or "@{0}".format(a)
|
5dfc9066b0c5f4528900c74be2b95328dbce4fa9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11349/5dfc9066b0c5f4528900c74be2b95328dbce4fa9/server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4332,
264,
12,
92,
4672,
279,
273,
619,
18,
1655,
1435,
63,
21,
26894,
277,
273,
1104,
12,
4469,
18,
350,
2934,
2188,
67,
1637,
12,
4161,
33,
69,
2934,
1019,
67,
1637,
12,
4469,
18,
712,
2934,
454,
1435,
309,
277,
30,
4332,
18,
6923,
12,
77,
18919,
21,
6362,
20,
5717,
327,
277,
471,
4622,
32,
69,
3897,
1546,
4938,
20,
12862,
21,
4004,
10629,
35,
95,
22,
97,
7,
2704,
6441,
95,
23,
12863,
69,
1870,
8403,
740,
12,
4256,
16,
612,
16,
277,
18919,
21,
6362,
20,
6487,
279,
5153,
578,
8787,
95,
20,
1532,
18,
2139,
12,
69,
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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
12,
92,
4672,
279,
273,
619,
18,
1655,
1435,
63,
21,
26894,
277,
273,
1104,
12,
4469,
18,
350,
2934,
2188,
67,
1637,
12,
4161,
33,
69,
2934,
1019,
67,
1637,
12,
4469,
18,
712,
2934,
454,
1435,
309,
277,
30,
4332,
18,
6923,
12,
77,
18919,
21,
6362,
20,
5717,
327,
277,
471,
4622,
32,
69,
3897,
1546,
4938,
20,
12862,
21,
4004,
10629,
35,
95,
22,
97,
7,
2704,
6441,
95,
23,
12863,
69,
1870,
8403,
740,
12,
4256,
16,
612,
16,
277,
18919,
21,
6362,
20,
6487,
279,
5153,
578,
8787,
95,
20,
1532,
18,
2139,
12,
69,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
b.pack(side = LEFT)
|
b.pack(side=LEFT)
|
def build_toolbar(self): tbar = self.tbar canvas = self.canvas commands = self.commands label = TLabel(tbar, image = "toolbar_left") label.pack(side = LEFT)
|
5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
18849,
12,
2890,
4672,
268,
3215,
273,
365,
18,
88,
3215,
5953,
273,
365,
18,
15424,
4364,
273,
365,
18,
7847,
225,
1433,
273,
399,
2224,
12,
88,
3215,
16,
1316,
273,
315,
18849,
67,
4482,
7923,
1433,
18,
2920,
12,
5564,
273,
9686,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
18849,
12,
2890,
4672,
268,
3215,
273,
365,
18,
88,
3215,
5953,
273,
365,
18,
15424,
4364,
273,
365,
18,
7847,
225,
1433,
273,
399,
2224,
12,
88,
3215,
16,
1316,
273,
315,
18849,
67,
4482,
7923,
1433,
18,
2920,
12,
5564,
273,
9686,
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
] |
raise errors.OpExecError("DRBD device %s is degraded!" % name)
|
raise errors.OpExecError("DRBD device disk/%d is degraded!" % idx)
|
def _ExecD8Secondary(self, feedback_fn): """Replace the secondary node for drbd8.
|
d418ebfb87b39874d8ab5c5e0243201049c0b25f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/d418ebfb87b39874d8ab5c5e0243201049c0b25f/cmdlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1905,
40,
28,
14893,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
326,
9946,
756,
364,
5081,
16410,
28,
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,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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,
389,
1905,
40,
28,
14893,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
326,
9946,
756,
364,
5081,
16410,
28,
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
] |
self.difference.pprint()
|
if hasattr(self, 'difference'): self.difference.pprint()
|
def fail_test(self, *args, **kw): self.difference.pprint() TestCmd.fail_test(self, *args, **kw)
|
e76fd2da84ab55a4a79becf854695586db675a7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/e76fd2da84ab55a4a79becf854695586db675a7a/BoostBuild.py
|
[
1,
8585,
326,
22398,
316,
326,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
67,
3813,
12,
2890,
16,
380,
1968,
16,
2826,
9987,
4672,
309,
3859,
12,
2890,
16,
296,
23444,
11,
4672,
365,
18,
23444,
18,
84,
1188,
1435,
7766,
5931,
18,
6870,
67,
3813,
12,
2890,
16,
380,
1968,
16,
2826,
9987,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MakeVerbose = open(os.path.join(BootDir, "makeverbose.sh"), "wb")
|
def Boot(): global BuildLocal BuildLocal += " -boot -keep" Version = "1" Compile = ("gcc -gstabs+ " + ({ "SPARC32_LINUX" : "-m32 -munaligned-doubles", "SPARC64_LINUX" : "-m64 -munaligned-doubles", "LINUXLIBC6" : "-m32 -fPIC -mno-align-double", "AMD64_LINUX" : "-m64 -fPIC -mno-align-double" }.get(Target) or "")) Link = (Compile + " " + ({ "PPC32_OPENBSD" : "-lm -lpthread", "SPARC64_OPENBSD" : "-lm -lpthread" }.get(Target) or "")) Assemble = ("as " + ({ "SPARC32_LINUX" : "-32", "SPARC64_LINUX" : "-64", "LINUXLIBC6" : "--32", "AMD64_LINUX" : "--64" }.get(Target) or "")) BootDir = "/cm3-boot-POSIX-" + Target + "-" + Version P = [ "import-libs", "m3core", "libm3", "sysutils", "m3middle", "m3quake", "m3objfile", "m3linker", "m3back", "m3front", "cm3" ] if Target == "NT386": P += ["mklib"] #DoPackage(["", "realclean"] + P) or sys.exit(1) DoPackage(["", "buildlocal"] + P) or sys.exit(1) if os.path.isdir(BootDir): shutil.rmtree(BootDir) os.mkdir(BootDir) # # This would probably be a good use of XSL (xml style sheets) # Make = open(os.path.join(BootDir, "make.sh"), "wb") MakeVerbose = open(os.path.join(BootDir, "makeverbose.sh"), "wb") Makefile = open(os.path.join(BootDir, "Makefile"), "wb") Makefile.write("all: cm3\nAssemble=" + Assemble + "\nCompile=" + Compile + "\nLink=" + Link + "\n") for q in P: dir = GetPackagePath(q) for a in os.listdir(os.path.join(Root, dir, Config)): if (a.endswith(".ms") or a.endswith(".is") or a.endswith(".c")): CopyFile(os.path.join(Root, dir, Config, a), BootDir) Makefile.write("Objects += " + a + ".o\n" + a + ".o: " + a + "\n\t") if a.endswith(".c"): Make.write(Compile + " -c " + a + "\n") MakeVerbose.write("echo " + Compile + " -c " + a + "\n") MakeVerbose.write(Compile + " -C " + a + "\n") Makefile.write("$(Compile) -c " + a + "\n") else: Make.write(Assemble + " " + a + " -o " + a + ".o\n") MakeVerbose.write("echo " + Assemble + " " + a + " -o " + a + ".o\n") MakeVerbose.write(Assemble + " " + a + " -o " + a + ".o\n") Makefile.write("$(Assemble) " + a + " -o " + a + ".o\n") if a.endswith(".h"): CopyFile(os.path.join(Root, dir, Config, a), BootDir) Makefile.write("cm3: $(Objects)\n\t$(Link) -o cm3 *.o\n") Make.write(Link + " -o cm3 *.o\n") MakeVerbose.write("echo " + Link + " -o cm3 *.o\n") MakeVerbose.write(Link + " -o cm3 *.o\n") Make.close() Makefile.close() MakeVerbose.close() os.chdir("/") _MakeArchive(BootDir[1:])
|
e5dd2e590d47712e5f74eb2b94a7ba475d779485 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/e5dd2e590d47712e5f74eb2b94a7ba475d779485/pylib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26254,
13332,
225,
2552,
3998,
2042,
3998,
2042,
1011,
315,
300,
7137,
300,
10102,
6,
225,
4049,
273,
315,
21,
6,
225,
16143,
273,
7566,
75,
952,
300,
75,
334,
5113,
15,
315,
397,
10797,
315,
55,
2778,
39,
1578,
67,
20663,
57,
60,
6,
377,
294,
3701,
81,
1578,
300,
81,
318,
20677,
17,
2896,
19314,
3113,
315,
55,
2778,
39,
1105,
67,
20663,
57,
60,
6,
377,
294,
3701,
81,
1105,
300,
81,
318,
20677,
17,
2896,
19314,
3113,
315,
20663,
57,
60,
14484,
39,
26,
6,
3639,
294,
3701,
81,
1578,
300,
74,
20385,
300,
81,
2135,
17,
7989,
17,
9056,
3113,
315,
2192,
40,
1105,
67,
20663,
57,
60,
6,
4202,
294,
3701,
81,
1105,
300,
74,
20385,
300,
81,
2135,
17,
7989,
17,
9056,
6,
289,
18,
588,
12,
2326,
13,
578,
1408,
3719,
225,
4048,
273,
261,
9937,
397,
315,
315,
397,
10797,
315,
52,
3513,
1578,
67,
11437,
30780,
6,
377,
294,
3701,
25972,
300,
80,
2397,
896,
3113,
315,
55,
2778,
39,
1105,
67,
11437,
30780,
6,
282,
294,
3701,
25972,
300,
80,
2397,
896,
6,
289,
18,
588,
12,
2326,
13,
578,
1408,
3719,
225,
2970,
10045,
273,
7566,
345,
315,
397,
10797,
315,
55,
2778,
39,
1578,
67,
20663,
57,
60,
6,
377,
294,
3701,
1578,
3113,
315,
55,
2778,
39,
1105,
67,
20663,
57,
60,
6,
377,
294,
3701,
1105,
3113,
315,
20663,
57,
60,
14484,
39,
26,
6,
3639,
294,
5238,
1578,
3113,
315,
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,
26254,
13332,
225,
2552,
3998,
2042,
3998,
2042,
1011,
315,
300,
7137,
300,
10102,
6,
225,
4049,
273,
315,
21,
6,
225,
16143,
273,
7566,
75,
952,
300,
75,
334,
5113,
15,
315,
397,
10797,
315,
55,
2778,
39,
1578,
67,
20663,
57,
60,
6,
377,
294,
3701,
81,
1578,
300,
81,
318,
20677,
17,
2896,
19314,
3113,
315,
55,
2778,
39,
1105,
67,
20663,
57,
60,
6,
377,
294,
3701,
81,
1105,
300,
81,
318,
20677,
17,
2896,
19314,
3113,
315,
20663,
57,
60,
14484,
39,
26,
6,
3639,
294,
3701,
81,
1578,
300,
74,
20385,
300,
81,
2135,
17,
7989,
17,
9056,
3113,
315,
2192,
40,
1105,
67,
20663,
57,
60,
6,
4202,
294,
3701,
81,
2
] |
|
sage: sr = mq.SR(2,2,2,4)
|
sage: sr = mq.SR(2, 2, 2, 4)
|
def state_array(self, d=None): """ Convert the parameter to a state array.
|
26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
919,
67,
1126,
12,
2890,
16,
302,
33,
7036,
4672,
3536,
4037,
326,
1569,
358,
279,
919,
526,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
919,
67,
1126,
12,
2890,
16,
302,
33,
7036,
4672,
3536,
4037,
326,
1569,
358,
279,
919,
526,
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
] |
if (num_header == 2) : values = (site,vo,niceNum(njobs), niceNum(wall), niceNum(njobs-oldnjobs),niceNum(wall-oldwall)) else: values = (site,niceNum(njobs), niceNum(wall), niceNum(njobs-oldnjobs),niceNum(wall-oldwall))
|
printedvalues = [] for iheaders in range(0,num_header): printedvalues.append( key[iheaders] ) printedvalues.append( niceNum(njobs) ) printedvalues.append( niceNum(wall) ) printedvalues.append( niceNum(njobs-oldnjobs) ) printedvalues.append( niceNum(wall-oldwall) )
|
def GenericRange(what, range_end = datetime.date.today(), range_begin = None, output = "text"): factor = 3600 # Convert number of seconds to number of hours if (not range_begin or range_begin == None): range_begin = range_end + datetime.timedelta(days=-1) if (not range_end or range_end == None): range_end = range_begin + datetime.timedelta(days=+1) timediff = range_end - range_begin if (output != "None") : if (what.title != "") : print what.title % ( DateToString(range_begin,False), DateToString(range_end,False) ) if (what.headline != "") : print what.headline % ( DateToString(range_begin,False), DateToString(range_end,False) ) print what.lines[output] print " ", what.formats[output] % what.headers print what.lines[output] # First get the previous' range-length's information totalwall = 0 totaljobs = 0 oldValues = {} result = [] start = range_begin - timediff end = range_end - timediff lines = what.GetData(start,end) for i in range (0,len(lines)): val = lines[i].split('\t') offset = 0 site = val[0] if what.headers[0] == "VO": # "site" is really "VO": hack to harmonize Panda output if site != "unknown": site = string.lower(site) if site == "atlas": site = "usatlas" key = site vo = "" num_header = what.num_header; offset = num_header - 1; if (len(val)==4) : # Nasty hack to harmonize Panda output if what.headers[1] == "VO": if vo != "unknown": vo = string.lower(val[1]) if vo == "atlas": vo = "usatlas" else: vo = val[1] key = site + " " + vo elif (num_header == 2) : vo = val[1] key = site + " " + vo njobs= string.atoi( val[offset+1] ) wall = string.atof( val[offset+2] ) / factor totalwall = totalwall + wall totaljobs = totaljobs + njobs if (oldValues.has_key(key)): oldValues[key][0] += njobs oldValues[key][1] += wall else: oldValues[key] = [njobs,wall,site,vo] oldValues["total"] = (totaljobs, totalwall, "total","") # Then getting the current information and print it totalwall = 0 totaljobs = 0 start = range_begin end = range_end lines = what.GetData(start,end) num_header = 1; index = 0 printValues = {} for i in range (0,len(lines)): val = lines[i].split('\t') site = val[0] if what.headers[0] == "VO": # "site" is really "VO": hack to harmonize Panda output if site != "unknown": site = string.lower(site) if site == "atlas": site = "usatlas" key = site offset = 0 num_header = what.num_header; offset = num_header - 1; if (len(val)==4) : # Nasty hack to harmonize Panda output if what.headers[1] == "VO": if vo != "unknown": vo = string.lower(val[1]) if vo == "atlas": vo = "usatlas" else: vo = val[1] key = site + " " + vo elif (num_header == 2) : vo = val[1] key = site + " " + vo (oldnjobs,oldwall) = (0,0) if oldValues.has_key(key): (oldnjobs,oldwall,s,v) = oldValues[key] del oldValues[key] njobs= string.atoi( val[offset+1] ) wall = string.atof( val[offset+2] ) / factor totalwall = totalwall + wall totaljobs = totaljobs + njobs if printValues.has_key(key): printValues[key][0] += njobs printValues[key][1] += wall else: printValues[key] = [njobs,wall,oldnjobs,oldwall,site,vo] for key,(oldnjobs,oldwall,site,vo) in oldValues.iteritems(): if (key != "total") : printValues[key] = (0,0,oldnjobs,oldwall,site,vo) if (what.defaultSort): sortedValues = sortedDictValues(printValues) else: sortedValues = sortedDictValuesFunc(printValues,what.Sorting) for key,(njobs,wall,oldnjobs,oldwall,site,vo) in sortedValues: index = index + 1; if (num_header == 2) : values = (site,vo,niceNum(njobs), niceNum(wall), niceNum(njobs-oldnjobs),niceNum(wall-oldwall)) else: values = (site,niceNum(njobs), niceNum(wall), niceNum(njobs-oldnjobs),niceNum(wall-oldwall)) if (output != "None") : print "%3d " %(index), what.formats[output] % values result.append(values) (oldnjobs,oldwall,s,v) = oldValues["total"] if (output != "None") : print what.lines[output] if (num_header == 2) : print " ", what.formats[output] % \ (what.col1, what.col2, niceNum(totaljobs), niceNum(totalwall), niceNum(totaljobs-oldnjobs), niceNum(totalwall-oldwall)) else: print " ", what.formats[output] % \ (what.col1, niceNum(totaljobs), niceNum(totalwall), niceNum(totaljobs-oldnjobs), niceNum(totalwall-oldwall)) print what.lines[output] return result
|
840d5408521dcd3fd349c48313ce276b0ab91bb4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/840d5408521dcd3fd349c48313ce276b0ab91bb4/PSACCTReport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7928,
2655,
12,
23770,
16,
1048,
67,
409,
273,
3314,
18,
712,
18,
30064,
9334,
1048,
67,
10086,
273,
599,
16,
876,
273,
315,
955,
6,
4672,
5578,
273,
12396,
225,
468,
4037,
1300,
434,
3974,
358,
1300,
434,
7507,
225,
309,
261,
902,
1048,
67,
10086,
578,
1048,
67,
10086,
422,
599,
4672,
1048,
67,
10086,
273,
1048,
67,
409,
397,
3314,
18,
31295,
12,
9810,
29711,
21,
13,
309,
261,
902,
1048,
67,
409,
578,
1048,
67,
409,
422,
599,
4672,
1048,
67,
409,
273,
1048,
67,
10086,
397,
3314,
18,
31295,
12,
9810,
33,
15,
21,
13,
7491,
3048,
273,
1048,
67,
409,
300,
1048,
67,
10086,
225,
309,
261,
2844,
480,
315,
7036,
7923,
294,
309,
261,
23770,
18,
2649,
480,
1408,
13,
294,
1172,
4121,
18,
2649,
738,
261,
2167,
5808,
12,
3676,
67,
10086,
16,
8381,
3631,
2167,
5808,
12,
3676,
67,
409,
16,
8381,
13,
262,
309,
261,
23770,
18,
1978,
1369,
480,
1408,
13,
294,
1172,
4121,
18,
1978,
1369,
738,
261,
2167,
5808,
12,
3676,
67,
10086,
16,
8381,
3631,
2167,
5808,
12,
3676,
67,
409,
16,
8381,
13,
262,
1172,
4121,
18,
3548,
63,
2844,
65,
1172,
315,
565,
3104,
4121,
18,
11962,
63,
2844,
65,
738,
4121,
18,
2485,
1172,
4121,
18,
3548,
63,
2844,
65,
225,
468,
5783,
336,
326,
2416,
11,
1048,
17,
2469,
1807,
1779,
2078,
8019,
273,
374,
2078,
10088,
273,
374,
1592,
1972,
273,
2618,
563,
273,
5378,
225,
787,
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,
7928,
2655,
12,
23770,
16,
1048,
67,
409,
273,
3314,
18,
712,
18,
30064,
9334,
1048,
67,
10086,
273,
599,
16,
876,
273,
315,
955,
6,
4672,
5578,
273,
12396,
225,
468,
4037,
1300,
434,
3974,
358,
1300,
434,
7507,
225,
309,
261,
902,
1048,
67,
10086,
578,
1048,
67,
10086,
422,
599,
4672,
1048,
67,
10086,
273,
1048,
67,
409,
397,
3314,
18,
31295,
12,
9810,
29711,
21,
13,
309,
261,
902,
1048,
67,
409,
578,
1048,
67,
409,
422,
599,
4672,
1048,
67,
409,
273,
1048,
67,
10086,
397,
3314,
18,
31295,
12,
9810,
33,
15,
21,
13,
7491,
3048,
273,
1048,
67,
409,
300,
1048,
67,
10086,
225,
309,
261,
2844,
480,
315,
7036,
7923,
2
] |
if self.libs is not None: self.compiler.set_libraries (self.libs)
|
if self.libraries is not None: self.compiler.set_libraries (self.libraries)
|
if self.undef is not None: for macro in self.undef: self.compiler.undefine_macro (macro)
|
6bcd9d67d86304b3ce600152fbeea3894c7f4a62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6bcd9d67d86304b3ce600152fbeea3894c7f4a62/build_ext.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
365,
18,
318,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
365,
18,
318,
536,
353,
486,
599,
30,
364,
11522,
316,
365,
18,
318,
536,
30,
365,
18,
9576,
18,
318,
11255,
67,
26448,
261,
26448,
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
] |
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()
|
8ab1743d7f0fdb470742d8a7bc6f55e6cada7c10 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/8ab1743d7f0fdb470742d8a7bc6f55e6cada7c10/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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
if not patchset_id:
|
if not patchset_id and patchsets:
|
def _get_patchset_info(request, patchset_id): """ Returns a list of patchsets for the issue. Args: request: Django Request object. patchset_id: The id of the patchset that the caller is interested in. This is the one that we generate delta links to if they're not available. We can't generate for all patchsets because it would take too long on issues with many patchsets. Passing in None is equivalent to doing it for the last patchset. Returns: A 3-tuple of (issue, patchsets, HttpResponse). If HttpResponse is not None, further processing should stop and it should be returned. """ issue = request.issue patchsets = list(issue.patchset_set.order('created')) response = None if not patchset_id: patchset_id = patchsets[-1].key().id() if request.user: drafts = list(models.Comment.gql('WHERE ANCESTOR IS :1 AND draft = TRUE' ' AND author = :2', issue, request.user)) else: drafts = [] comments = list(models.Comment.gql('WHERE ANCESTOR IS :1 AND draft = FALSE', issue)) issue.draft_count = len(drafts) for c in drafts: c.ps_key = c.patch.patchset.key() patchset_id_mapping = {} # Maps from patchset id to its ordering number. for patchset in patchsets: patchset_id_mapping[patchset.key().id()] = len(patchset_id_mapping) + 1 patchset.n_drafts = sum(c.ps_key == patchset.key() for c in drafts) patchset.patches = None patchset.parsed_patches = None if patchset_id == patchset.key().id(): patchset.patches = list(patchset.patch_set.order('filename')) try: attempt = _clean_int(request.GET.get('attempt'), 0, 0) if attempt < 0: response = HttpResponse('Invalid parameter', status=404) break for patch in patchset.patches: pkey = patch.key() patch._num_comments = sum(c.parent_key() == pkey for c in comments) patch._num_drafts = sum(c.parent_key() == pkey for c in drafts) if not patch.delta_calculated: if attempt > 2: # Too many patchsets or files and we're not able to generate the # delta links. Instead of giving a 500, try to render the page # without them. patch.delta = [] else: # Compare each patch to the same file in earlier patchsets to see # if they differ, so that we can generate the delta patch urls. # We do this once and cache it after. It's specifically not done # on upload because we're already doing too much processing there. # NOTE: this function will clear out patchset.data to reduce # memory so don't ever call patchset.put() after calling it. patch.delta = _calculate_delta(patch, patchset_id, patchsets) patch.delta_calculated = True # A multi-entity put would be quicker, but it fails when the # patches have content that is large. App Engine throws # RequestTooLarge. This way, although not as efficient, allows # multiple refreshes on an issue to get things done, as opposed to # an all-or-nothing approach. patch.put() # Reduce memory usage: if this patchset has lots of added/removed # files (i.e. > 100) then we'll get MemoryError when rendering the # response. Each Patch entity is using a lot of memory if the files # are large, since it holds the entire contents. Call num_chunks and # num_drafts first though since they depend on text. patch.num_chunks patch.num_drafts patch.num_lines patch.text = None patch._lines = None patch.parsed_deltas = [] for delta in patch.delta: patch.parsed_deltas.append([patchset_id_mapping[delta], delta]) except DeadlineExceededError: logging.exception('DeadlineExceededError in _get_patchset_info') if attempt > 2: response = HttpResponse('DeadlineExceededError - create a new issue.') else: response = HttpResponseRedirect('%s?attempt=%d' % (request.path, attempt + 1)) break # Reduce memory usage (see above comment). for patchset in patchsets: patchset.parsed_patches = None return issue, patchsets, response
|
8b0ad0fb4e0310999c5da569d0daed26127b189d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/476/8b0ad0fb4e0310999c5da569d0daed26127b189d/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2272,
542,
67,
1376,
12,
2293,
16,
4729,
542,
67,
350,
4672,
3536,
2860,
279,
666,
434,
4729,
4424,
364,
326,
5672,
18,
225,
6634,
30,
590,
30,
18480,
1567,
733,
18,
4729,
542,
67,
350,
30,
1021,
612,
434,
326,
4729,
542,
716,
326,
4894,
353,
20506,
316,
18,
225,
1220,
353,
326,
1245,
716,
732,
2103,
3622,
4716,
358,
309,
2898,
4565,
486,
2319,
18,
225,
1660,
848,
1404,
2103,
364,
777,
4729,
4424,
2724,
518,
4102,
4862,
4885,
1525,
603,
8296,
598,
4906,
4729,
4424,
18,
225,
31741,
316,
599,
353,
7680,
358,
9957,
518,
364,
326,
1142,
4729,
542,
18,
225,
2860,
30,
432,
890,
17,
8052,
434,
261,
13882,
16,
4729,
4424,
16,
9476,
2934,
971,
9476,
353,
486,
599,
16,
9271,
4929,
1410,
2132,
471,
518,
1410,
506,
2106,
18,
3536,
5672,
273,
590,
18,
13882,
4729,
4424,
273,
666,
12,
13882,
18,
2272,
542,
67,
542,
18,
1019,
2668,
4824,
26112,
766,
273,
599,
309,
486,
4729,
542,
67,
350,
471,
4729,
4424,
30,
4729,
542,
67,
350,
273,
4729,
4424,
18919,
21,
8009,
856,
7675,
350,
1435,
225,
309,
590,
18,
1355,
30,
12246,
87,
273,
666,
12,
7665,
18,
4469,
18,
75,
1217,
2668,
12299,
8175,
1441,
882,
916,
4437,
294,
21,
4116,
12246,
273,
5383,
11,
296,
225,
4116,
2869,
273,
294,
22,
2187,
5672,
16,
590,
18,
1355,
3719,
469,
30,
12246,
87,
273,
5378,
5678,
273,
666,
12,
7665,
18,
4469,
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,
588,
67,
2272,
542,
67,
1376,
12,
2293,
16,
4729,
542,
67,
350,
4672,
3536,
2860,
279,
666,
434,
4729,
4424,
364,
326,
5672,
18,
225,
6634,
30,
590,
30,
18480,
1567,
733,
18,
4729,
542,
67,
350,
30,
1021,
612,
434,
326,
4729,
542,
716,
326,
4894,
353,
20506,
316,
18,
225,
1220,
353,
326,
1245,
716,
732,
2103,
3622,
4716,
358,
309,
2898,
4565,
486,
2319,
18,
225,
1660,
848,
1404,
2103,
364,
777,
4729,
4424,
2724,
518,
4102,
4862,
4885,
1525,
603,
8296,
598,
4906,
4729,
4424,
18,
225,
31741,
316,
599,
353,
7680,
358,
9957,
518,
364,
326,
1142,
4729,
542,
18,
225,
2860,
30,
432,
890,
17,
8052,
434,
261,
13882,
16,
2
] |
'name': fields.char('Description', size=64, select=1), 'user_id': fields.many2one('res.users', 'User', required=True, select=1),
|
'name': fields.char('Description', size=64, select=1, states={'confirm':[('readonly', True)], 'done':[('readonly', True)]}), 'user_id': fields.many2one('res.users', 'User', required=True, select=1, states={'confirm':[('readonly', True)], 'done':[('readonly', True)]}),
|
def sign_out(self, cr, uid, ids, context): if not self.browse(cr, uid, ids, context)[0].date_current == time.strftime('%Y-%m-%d'): raise osv.except_osv(_('Error !'), _('You can not sign out from an other date than today')) emp_obj = self.pool.get('hr.employee') emp_id = emp_obj.search(cr, uid, [('user_id', '=', uid)]) context['sheet_id']=ids[0] success = emp_obj.sign_out(cr, uid, emp_id, context=context) return True
|
3199d71f923a95f692c29f379ccabd7ed3665187 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/3199d71f923a95f692c29f379ccabd7ed3665187/hr_timesheet_sheet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1573,
67,
659,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
4672,
309,
486,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
25146,
20,
8009,
712,
67,
2972,
422,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
11,
4672,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
668,
401,
19899,
389,
2668,
6225,
848,
486,
1573,
596,
628,
392,
1308,
1509,
2353,
10074,
26112,
801,
84,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
351,
2817,
1340,
6134,
801,
84,
67,
350,
273,
801,
84,
67,
2603,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
1355,
67,
350,
2187,
15196,
2187,
4555,
13,
5717,
819,
3292,
8118,
67,
350,
3546,
33,
2232,
63,
20,
65,
2216,
273,
801,
84,
67,
2603,
18,
2977,
67,
659,
12,
3353,
16,
4555,
16,
801,
84,
67,
350,
16,
819,
33,
2472,
13,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1573,
67,
659,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
4672,
309,
486,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
25146,
20,
8009,
712,
67,
2972,
422,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
11,
4672,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
668,
401,
19899,
389,
2668,
6225,
848,
486,
1573,
596,
628,
392,
1308,
1509,
2353,
10074,
26112,
801,
84,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
351,
2817,
1340,
6134,
801,
84,
67,
350,
273,
801,
84,
67,
2603,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
1355,
67,
350,
2187,
15196,
2187,
4555,
13,
5717,
819,
2
] |
if self.author == "": self.author = self.email
|
if self.author == "": self.author = self.email
|
def __init__(self, message = None, sequence = 0, keepHeaders = []):
|
9ba95dd12bdffd75614117b4f4e772e8068f767b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/9ba95dd12bdffd75614117b4f4e772e8068f767b/pipermail.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
273,
599,
16,
3102,
273,
374,
16,
3455,
3121,
273,
5378,
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,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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
] |
def template_description(self): f = open(os.path.join(self.template_dir, 'description.txt'))
|
def template_description(self, dir): f = open(os.path.join(dir, 'description.txt'))
|
def template_description(self): f = open(os.path.join(self.template_dir, 'description.txt')) content = f.read().strip() f.close() return content
|
70b9f24913825d044637f53c0e835174337f6c02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/70b9f24913825d044637f53c0e835174337f6c02/app_setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1542,
67,
3384,
12,
2890,
16,
1577,
4672,
284,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
1214,
16,
296,
3384,
18,
5830,
26112,
913,
273,
284,
18,
896,
7675,
6406,
1435,
284,
18,
4412,
1435,
327,
913,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1542,
67,
3384,
12,
2890,
16,
1577,
4672,
284,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
1214,
16,
296,
3384,
18,
5830,
26112,
913,
273,
284,
18,
896,
7675,
6406,
1435,
284,
18,
4412,
1435,
327,
913,
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
] |
view = content_replacer.ContentMenuView(self.fpage, req)
|
view = content_replacer.ContentMenuView(self.folder, req)
|
def testCutObject(self): req = self.portal.REQUEST self.failIf(req.RESPONSE.cookies.has_key('__cp'), 'has cut cookie') view = content_replacer.ContentMenuView(self.fpage, req) result = view.cutObject() resh = req.RESPONSE.headers self.assertEqual(resh['status'], '200 OK') self.failUnless(req.RESPONSE.cookies.has_key('__cp'), 'no cut cookie')
|
c01f348b980345a36cd65be7267e7e1998a9d174 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12181/c01f348b980345a36cd65be7267e7e1998a9d174/test_menus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
15812,
921,
12,
2890,
4672,
1111,
273,
365,
18,
24386,
18,
5519,
365,
18,
6870,
2047,
12,
3658,
18,
14508,
18,
16240,
18,
5332,
67,
856,
2668,
972,
4057,
19899,
296,
5332,
6391,
3878,
6134,
225,
1476,
273,
913,
67,
26745,
10598,
18,
1350,
4599,
1767,
12,
2890,
18,
5609,
16,
1111,
13,
563,
273,
1476,
18,
5150,
921,
1435,
400,
76,
273,
1111,
18,
14508,
18,
2485,
365,
18,
11231,
5812,
12,
1955,
3292,
2327,
17337,
296,
6976,
7791,
6134,
365,
18,
6870,
984,
2656,
12,
3658,
18,
14508,
18,
16240,
18,
5332,
67,
856,
2668,
972,
4057,
19899,
296,
2135,
6391,
3878,
6134,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
15812,
921,
12,
2890,
4672,
1111,
273,
365,
18,
24386,
18,
5519,
365,
18,
6870,
2047,
12,
3658,
18,
14508,
18,
16240,
18,
5332,
67,
856,
2668,
972,
4057,
19899,
296,
5332,
6391,
3878,
6134,
225,
1476,
273,
913,
67,
26745,
10598,
18,
1350,
4599,
1767,
12,
2890,
18,
5609,
16,
1111,
13,
563,
273,
1476,
18,
5150,
921,
1435,
400,
76,
273,
1111,
18,
14508,
18,
2485,
365,
18,
11231,
5812,
12,
1955,
3292,
2327,
17337,
296,
6976,
7791,
6134,
365,
18,
6870,
984,
2656,
12,
3658,
18,
14508,
18,
16240,
18,
5332,
67,
856,
2668,
972,
4057,
19899,
296,
2135,
6391,
3878,
6134,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
parser.add_option("--attach", action="append", metavar="URL", dest="attach", default=defaults.get("attach", []),
|
parser.add_option("--attach", action="appendResetDefault", metavar="URL", dest="attach", default=defaults.get("attach", []),
|
def buildParser(self): usage = "%prog [options] [build | list]" description = self.DESCRIPTION version = """%%prog %s
|
27e19d3e17a57167ad70990e57f38206b50c1929 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/27e19d3e17a57167ad70990e57f38206b50c1929/cli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
2678,
12,
2890,
4672,
4084,
273,
2213,
14654,
306,
2116,
65,
306,
3510,
571,
666,
4279,
2477,
273,
365,
18,
15911,
1177,
273,
3536,
11438,
14654,
738,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
2678,
12,
2890,
4672,
4084,
273,
2213,
14654,
306,
2116,
65,
306,
3510,
571,
666,
4279,
2477,
273,
365,
18,
15911,
1177,
273,
3536,
11438,
14654,
738,
87,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(name,dtype,len,col)=self._read_meta(octf) if not dtype=='sq_string':
|
meta=self._read_meta(octf) if not meta['dtype']=='sq_string':
|
def _read_cellarray(self,octf,col,row): """Returns the next cellarray atribute in the octave file
|
cf7384197e5f6f81fbccf787ed8a8ba4e761f074 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12567/cf7384197e5f6f81fbccf787ed8a8ba4e761f074/h5_octave.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
3855,
1126,
12,
2890,
16,
13410,
74,
16,
1293,
16,
492,
4672,
3536,
1356,
326,
1024,
2484,
1126,
622,
1533,
624,
316,
326,
10844,
836,
585,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
3855,
1126,
12,
2890,
16,
13410,
74,
16,
1293,
16,
492,
4672,
3536,
1356,
326,
1024,
2484,
1126,
622,
1533,
624,
316,
326,
10844,
836,
585,
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
] |
po_files.append(options.output_file)
|
po_files.append(options.input_file)
|
def compile(self, argv): """Subcommand for compiling a message catalog to a MO file.
|
473c4f769c5d47350917fda3bd27915b11af15e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8909/473c4f769c5d47350917fda3bd27915b11af15e9/frontend.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
5261,
4672,
3536,
1676,
3076,
364,
1161,
4973,
279,
883,
6222,
358,
279,
16070,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
5261,
4672,
3536,
1676,
3076,
364,
1161,
4973,
279,
883,
6222,
358,
279,
16070,
585,
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
] |
path=fullpath
|
path=pathHelper(fullpath)
|
def isVersionControlled(url): fullpath=urlparse(url).path path=fullpath versioned=True filename=None if not os.path.exists(fullpath): return False if not os.path.isdir(fullpath): lastdash=fullpath.rfind('/') filename=fullpath[lastdash+1:] path=fullpath[:lastdash] try: wt = workingtree.WorkingTree.open(path) if filename is not None: versioned=wt.has_filename(filename) except: versioned=False print fullpath+" versioned? "+str(versioned) return versioned
|
bef2842cea9e3a9063eecbc84ddb5948dd93bea4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1699/bef2842cea9e3a9063eecbc84ddb5948dd93bea4/kdevbzr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
1444,
3367,
1259,
12,
718,
4672,
15170,
33,
718,
2670,
12,
718,
2934,
803,
589,
33,
803,
2276,
12,
2854,
803,
13,
17083,
33,
5510,
1544,
33,
7036,
309,
486,
1140,
18,
803,
18,
1808,
12,
2854,
803,
4672,
327,
1083,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
2854,
803,
4672,
1142,
21817,
33,
2854,
803,
18,
86,
4720,
2668,
2473,
13,
1544,
33,
2854,
803,
63,
2722,
21817,
15,
21,
26894,
589,
33,
2854,
803,
10531,
2722,
21817,
65,
225,
775,
30,
18201,
273,
5960,
3413,
18,
14836,
2471,
18,
3190,
12,
803,
13,
309,
1544,
353,
486,
599,
30,
17083,
33,
6046,
18,
5332,
67,
3459,
12,
3459,
13,
1335,
30,
17083,
33,
8381,
225,
1172,
15170,
9078,
17083,
35,
13773,
701,
12,
21415,
13,
327,
17083,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
1444,
3367,
1259,
12,
718,
4672,
15170,
33,
718,
2670,
12,
718,
2934,
803,
589,
33,
803,
2276,
12,
2854,
803,
13,
17083,
33,
5510,
1544,
33,
7036,
309,
486,
1140,
18,
803,
18,
1808,
12,
2854,
803,
4672,
327,
1083,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
2854,
803,
4672,
1142,
21817,
33,
2854,
803,
18,
86,
4720,
2668,
2473,
13,
1544,
33,
2854,
803,
63,
2722,
21817,
15,
21,
26894,
589,
33,
2854,
803,
10531,
2722,
21817,
65,
225,
775,
30,
18201,
273,
5960,
3413,
18,
14836,
2471,
18,
3190,
12,
803,
13,
309,
1544,
353,
486,
599,
30,
17083,
33,
6046,
18,
5332,
67,
3459,
12,
3459,
13,
1335,
30,
17083,
2
] |
vids+='and "'+dirs[i][f]+'"'
|
vids+=DV.l('and')+' "'+dirs[i][f]+'"'
|
def go(self,aborted=False): self.converting=-1 for i in range(len(self.videos)): if self.videos[i] not in self.thisvideo and self.meta[self.videos[i]]['status']!=DV.l('Success!'): self.converting=i break if self.converting!=-1 and not aborted: # Let's go for the actual conversion... self.meta[self.videos[self.converting]]['status']=DV.l('In progress...') self.list.SetStringItem(self.converting,ID_COL_VIDSTAT,DV.l('In progress...')) self.thisbatch=self.thisbatch+1 self.thread=DamnConverter(parent=self) self.thread.start() else: if not self.isclosing: self.SetStatusText(DV.l('DamnVid, waiting for instructions.')) if not aborted: message='Done.' if len(self.resultlist): message=DV.l('Done!')+'\n'+DV.l('All videos have been put into their respective output folders:')+'\n' dirs={} for i in self.resultlist: if not dirs.has_key(i[1]): dirs[i[1]]=[] dirs[i[1]].append(i[0]) self.resultlist=[] for i in dirs.iterkeys(): if len(dirs[i])==1: haveverb='s' vids='"'+dirs[i][0]+'"' else: haveverb='ve' vids='' for f in range(len(dirs[i])): if f==len(dirs[i])-1: vids+='and "'+dirs[i][f]+'"' else: vids+='"'+dirs[i][f]+'", ' message+='\n'+vids+' ha'+haveverb+' been put into '+DamnFriendlyDir(i)+'.' del haveverb,dirs,vids dlg=wx.MessageDialog(self,message,DV.l('Done!'),wx.OK|wx.ICON_INFORMATION) else: dlg=wx.MessageDialog(self,DV.l('Video conversion aborted.'),DV.l('Aborted'),wx.OK|wx.ICON_INFORMATION) dlg.SetIcon(DV.icon) dlg.ShowModal() dlg.Destroy() self.converting=-1 self.stopbutton.Disable() self.gobutton1.Enable() self.gauge1.SetValue(0.0)
|
bdef31eaa44cfde35914e466f856a3f40d245b38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/bdef31eaa44cfde35914e466f856a3f40d245b38/DamnVid.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
12,
2890,
16,
18623,
329,
33,
8381,
4672,
365,
18,
6283,
310,
29711,
21,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
6768,
538,
3719,
30,
309,
365,
18,
6768,
538,
63,
77,
65,
486,
316,
365,
18,
2211,
9115,
471,
365,
18,
3901,
63,
2890,
18,
6768,
538,
63,
77,
13563,
3292,
2327,
3546,
5,
33,
30199,
18,
80,
2668,
4510,
5124,
4672,
365,
18,
6283,
310,
33,
77,
898,
309,
365,
18,
6283,
310,
5,
29711,
21,
471,
486,
18166,
30,
468,
10559,
1807,
1960,
364,
326,
3214,
4105,
2777,
365,
18,
3901,
63,
2890,
18,
6768,
538,
63,
2890,
18,
6283,
310,
13563,
3292,
2327,
3546,
33,
30199,
18,
80,
2668,
382,
4007,
7821,
13,
365,
18,
1098,
18,
694,
780,
1180,
12,
2890,
18,
6283,
310,
16,
734,
67,
4935,
67,
15472,
28549,
16,
30199,
18,
80,
2668,
382,
4007,
7821,
3719,
365,
18,
2211,
5303,
33,
2890,
18,
2211,
5303,
15,
21,
365,
18,
5930,
33,
40,
301,
82,
5072,
12,
2938,
33,
2890,
13,
365,
18,
5930,
18,
1937,
1435,
469,
30,
309,
486,
365,
18,
291,
19506,
30,
365,
18,
20547,
1528,
12,
30199,
18,
80,
2668,
40,
301,
82,
58,
350,
16,
7336,
364,
12509,
1093,
3719,
309,
486,
18166,
30,
883,
2218,
7387,
1093,
309,
562,
12,
2890,
18,
2088,
1098,
4672,
883,
33,
30199,
18,
80,
2668,
7387,
5124,
13,
6797,
64,
82,
11,
15,
30199,
18,
80,
2668,
1595,
24752,
1240,
2118,
1378,
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,
1960,
12,
2890,
16,
18623,
329,
33,
8381,
4672,
365,
18,
6283,
310,
29711,
21,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
6768,
538,
3719,
30,
309,
365,
18,
6768,
538,
63,
77,
65,
486,
316,
365,
18,
2211,
9115,
471,
365,
18,
3901,
63,
2890,
18,
6768,
538,
63,
77,
13563,
3292,
2327,
3546,
5,
33,
30199,
18,
80,
2668,
4510,
5124,
4672,
365,
18,
6283,
310,
33,
77,
898,
309,
365,
18,
6283,
310,
5,
29711,
21,
471,
486,
18166,
30,
468,
10559,
1807,
1960,
364,
326,
3214,
4105,
2777,
365,
18,
3901,
63,
2890,
18,
6768,
538,
63,
2890,
18,
6283,
310,
13563,
3292,
2327,
3546,
33,
30199,
18,
80,
2668,
382,
4007,
2
] |
allowance = 1
|
allowance = True
|
def __init__(self, path, allowance): if path == '' and not allowance: # an empty value means allow all allowance = 1 self.path = urllib.quote(path) self.allowance = allowance
|
4f422b7384bdfcdd7c2a55e83aaf89d20e9979d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4f422b7384bdfcdd7c2a55e83aaf89d20e9979d1/robotparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
16,
1699,
1359,
4672,
309,
589,
422,
875,
471,
486,
1699,
1359,
30,
468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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
16,
1699,
1359,
4672,
309,
589,
422,
875,
471,
486,
1699,
1359,
30,
468,
392,
1008,
460,
4696,
1699,
777,
1699,
1359,
273,
1053,
365,
18,
803,
273,
11527,
18,
6889,
12,
803,
13,
365,
18,
5965,
1359,
273,
1699,
1359,
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
] |
self.assertEqual(m, t.__dict__[meth])
|
self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth])
|
def unop_test(self, a, res, expr="len(a)", meth="__len__"): d = {'a': a} self.assertEqual(eval(expr, d), res) t = type(a) m = getattr(t, meth)
|
4a0d8c36fabcd955e24a465c9276c005529fa702 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/4a0d8c36fabcd955e24a465c9276c005529fa702/test_descr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
556,
67,
3813,
12,
2890,
16,
279,
16,
400,
16,
3065,
1546,
1897,
12,
69,
2225,
16,
7917,
1546,
972,
1897,
14437,
4672,
302,
273,
13666,
69,
4278,
279,
97,
365,
18,
11231,
5812,
12,
8622,
12,
8638,
16,
302,
3631,
400,
13,
268,
273,
618,
12,
69,
13,
312,
273,
3869,
12,
88,
16,
7917,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
556,
67,
3813,
12,
2890,
16,
279,
16,
400,
16,
3065,
1546,
1897,
12,
69,
2225,
16,
7917,
1546,
972,
1897,
14437,
4672,
302,
273,
13666,
69,
4278,
279,
97,
365,
18,
11231,
5812,
12,
8622,
12,
8638,
16,
302,
3631,
400,
13,
268,
273,
618,
12,
69,
13,
312,
273,
3869,
12,
88,
16,
7917,
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
] |
self.capped = True
|
self.capped += True
|
def update(self, runningmaxrate, runningmaxi2rate, usedbytes, usedi2bytes, runningshare, rspec): """ Update byte counts and check if byte thresholds have been exceeded. If exceeded, cap to remaining bytes in limit over remaining time in period. Recalculate every time module runs. """ # Query Node Manager for max rate overrides self.updateSliceAttributes(rspec)
|
0c9f6590a6f97823553cc557e25cd6a381cb5adb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6995/0c9f6590a6f97823553cc557e25cd6a381cb5adb/bwmon.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
3549,
1896,
5141,
16,
3549,
1896,
77,
22,
5141,
16,
1399,
3890,
16,
1399,
77,
22,
3890,
16,
3549,
14419,
16,
436,
2793,
4672,
3536,
2315,
1160,
6880,
471,
866,
309,
1160,
19983,
1240,
2118,
12428,
18,
971,
12428,
16,
3523,
358,
4463,
1731,
316,
1800,
1879,
4463,
813,
316,
3879,
18,
868,
11162,
3614,
813,
1605,
7597,
18,
3536,
225,
468,
2770,
2029,
8558,
364,
943,
4993,
9515,
365,
18,
2725,
5959,
2498,
12,
86,
2793,
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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5141,
16,
1399,
3890,
16,
1399,
77,
22,
3890,
16,
3549,
14419,
16,
436,
2793,
4672,
3536,
2315,
1160,
6880,
471,
866,
309,
1160,
19983,
1240,
2118,
12428,
18,
971,
12428,
16,
3523,
358,
4463,
1731,
316,
1800,
1879,
4463,
813,
316,
3879,
18,
868,
11162,
3614,
813,
1605,
7597,
18,
3536,
225,
468,
2770,
2029,
8558,
364,
943,
4993,
9515,
365,
18,
2725,
5959,
2498,
12,
86,
2793,
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
] |
:rtype : The newly created VPC :return : A :class:`boto.vpc.vpc.VPC objectn
|
:rtype: The newly created VPC :return: A :class:`boto.vpc.vpc.VPC` object
|
def create_vpc(self, cidr_block): """ Create a new Virtual Private Cloud.
|
953eb471ca2be49c4f821f024a3e0a6347048a4f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/953eb471ca2be49c4f821f024a3e0a6347048a4f/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
25843,
12,
2890,
16,
15323,
67,
2629,
4672,
3536,
1788,
279,
394,
7269,
8726,
4396,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
25843,
12,
2890,
16,
15323,
67,
2629,
4672,
3536,
1788,
279,
394,
7269,
8726,
4396,
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
] |
cmd_text = 'cd ' + self.workdir + '; ' + command.command
|
cmd_text = 'cd ' + self.workdir + '; ' if command.errors_to > '': cmd_text += ' rm -f ' + command.errors_to + '; ' cmd_text = cmd_text + command.command
|
def make(self, name='all'): """ Runs the makefile specified target (defaulting to all) and records errors, results and other status flags against the document. If the document not been mirrored, this routine will not attempt to build it.
|
44b0ed1122649054bbe639cf33a5b7189a7f415c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/44b0ed1122649054bbe639cf33a5b7189a7f415c/Makefile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
2890,
16,
508,
2218,
454,
11,
4672,
3536,
1939,
87,
326,
1221,
768,
1269,
1018,
261,
1886,
310,
358,
777,
13,
471,
3853,
1334,
16,
1686,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
2890,
16,
508,
2218,
454,
11,
4672,
3536,
1939,
87,
326,
1221,
768,
1269,
1018,
261,
1886,
310,
358,
777,
13,
471,
3853,
1334,
16,
1686,
471,
1308,
1267,
2943,
5314,
326,
1668,
18,
225,
971,
326,
1668,
486,
2118,
312,
481,
23226,
16,
333,
12245,
903,
486,
4395,
358,
1361,
518,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if name[0] == '.':
|
if not name[0]:
|
def nametowidget(self, name): """Return the Tkinter instance of a widget identified by its Tcl name NAME.""" w = self if name[0] == '.': w = w._root() name = name[1:] while name: i = name.find('.') if i >= 0: name, tail = name[:i], name[i+1:] else: tail = '' w = w.children[name] name = tail return w
|
dc765bdeaa629d3498beebce9903ac93a3197ac4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/dc765bdeaa629d3498beebce9903ac93a3197ac4/Tkinter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15135,
278,
543,
2208,
12,
2890,
16,
508,
4672,
3536,
990,
326,
399,
79,
2761,
791,
434,
279,
3604,
9283,
635,
2097,
399,
830,
508,
6048,
12123,
341,
273,
365,
225,
309,
486,
508,
63,
20,
14542,
341,
273,
341,
6315,
3085,
1435,
508,
273,
508,
63,
21,
26894,
1323,
508,
30,
277,
273,
508,
18,
4720,
2668,
1093,
13,
309,
277,
1545,
374,
30,
508,
16,
5798,
273,
508,
10531,
77,
6487,
508,
63,
77,
15,
21,
26894,
469,
30,
5798,
273,
875,
341,
273,
341,
18,
5906,
63,
529,
65,
508,
273,
5798,
327,
341,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15135,
278,
543,
2208,
12,
2890,
16,
508,
4672,
3536,
990,
326,
399,
79,
2761,
791,
434,
279,
3604,
9283,
635,
2097,
399,
830,
508,
6048,
12123,
341,
273,
365,
225,
309,
486,
508,
63,
20,
14542,
341,
273,
341,
6315,
3085,
1435,
508,
273,
508,
63,
21,
26894,
1323,
508,
30,
277,
273,
508,
18,
4720,
2668,
1093,
13,
309,
277,
1545,
374,
30,
508,
16,
5798,
273,
508,
10531,
77,
6487,
508,
63,
77,
15,
21,
26894,
469,
30,
5798,
273,
875,
341,
273,
341,
18,
5906,
63,
529,
65,
508,
273,
5798,
327,
341,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
global verbose
|
def serializeNode(node, opts, rslt, enableBreaks=False, enableVerbose=False): global indent global result global pretty global verbose global breaks global afterLine global afterBreak global afterDoc global afterDivider global afterArea global options result = rslt
|
66942a31e30537eb739b144d8b46c3b613b2076a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/66942a31e30537eb739b144d8b46c3b613b2076a/Packer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4472,
907,
12,
2159,
16,
1500,
16,
22841,
16,
4237,
26806,
33,
8381,
16,
4237,
14489,
33,
8381,
4672,
2552,
3504,
2552,
563,
2552,
7517,
2552,
16217,
2552,
1839,
1670,
2552,
1839,
7634,
2552,
1839,
1759,
2552,
1839,
25558,
2552,
1839,
5484,
2552,
702,
225,
563,
273,
22841,
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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2552,
702,
225,
563,
273,
22841,
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
] |
|
if nodelist[2] != ':':
|
if len(nodelist) == 1 or nodelist[1] != ':':
|
def com_dictsetmaker(self, nodelist): # dictsetmaker: (test ':' test (',' test ':' value)* [',']) | (test (',' test)* [',']) items = [] if nodelist[2] != ':': # it's a set for i in range(1, len(nodelist), 2): items.append(self.com_node(nodelist[i])) return Set(items, lineno=items[0].lineno) else: # it's a dict for i in range(1, len(nodelist), 4): items.append((self.com_node(nodelist[i]), self.com_node(nodelist[i+2]))) return Dict(items, lineno=items[0][0].lineno)
|
e9248e006198c5e34d780e204d0ec1b68cd8a3ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e9248e006198c5e34d780e204d0ec1b68cd8a3ce/transformer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
532,
67,
1576,
542,
29261,
12,
2890,
16,
30068,
4672,
468,
2065,
542,
29261,
30,
261,
3813,
3921,
1842,
261,
17023,
1842,
3921,
460,
17653,
306,
2187,
19486,
571,
261,
3813,
261,
17023,
1842,
17653,
306,
2187,
19486,
1516,
273,
5378,
309,
562,
12,
82,
24221,
13,
422,
404,
578,
30068,
63,
21,
65,
480,
3921,
30,
468,
518,
1807,
279,
444,
364,
277,
316,
1048,
12,
21,
16,
562,
12,
82,
24221,
3631,
576,
4672,
1516,
18,
6923,
12,
2890,
18,
832,
67,
2159,
12,
82,
24221,
63,
77,
22643,
327,
1000,
12,
3319,
16,
7586,
33,
3319,
63,
20,
8009,
17782,
13,
469,
30,
468,
518,
1807,
279,
2065,
364,
277,
316,
1048,
12,
21,
16,
562,
12,
82,
24221,
3631,
1059,
4672,
1516,
18,
6923,
12443,
2890,
18,
832,
67,
2159,
12,
82,
24221,
63,
77,
65,
3631,
365,
18,
832,
67,
2159,
12,
82,
24221,
63,
77,
15,
22,
65,
20349,
327,
9696,
12,
3319,
16,
7586,
33,
3319,
63,
20,
6362,
20,
8009,
17782,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
532,
67,
1576,
542,
29261,
12,
2890,
16,
30068,
4672,
468,
2065,
542,
29261,
30,
261,
3813,
3921,
1842,
261,
17023,
1842,
3921,
460,
17653,
306,
2187,
19486,
571,
261,
3813,
261,
17023,
1842,
17653,
306,
2187,
19486,
1516,
273,
5378,
309,
562,
12,
82,
24221,
13,
422,
404,
578,
30068,
63,
21,
65,
480,
3921,
30,
468,
518,
1807,
279,
444,
364,
277,
316,
1048,
12,
21,
16,
562,
12,
82,
24221,
3631,
576,
4672,
1516,
18,
6923,
12,
2890,
18,
832,
67,
2159,
12,
82,
24221,
63,
77,
22643,
327,
1000,
12,
3319,
16,
7586,
33,
3319,
63,
20,
8009,
17782,
13,
469,
30,
468,
518,
1807,
279,
2065,
364,
277,
316,
1048,
12,
21,
16,
2
] |
return mpf(3.5), mpf(2.5)
|
return mpf(3.5).val, mpf(2.5).val
|
def __mpcval__(self): return mpf(3.5), mpf(2.5)
|
4280fac8c2c83aac55c2eaeedf2e4e7d116d560c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/4280fac8c2c83aac55c2eaeedf2e4e7d116d560c/test_convert.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1291,
71,
1125,
972,
12,
2890,
4672,
327,
6749,
74,
12,
23,
18,
25,
3631,
6749,
74,
12,
22,
18,
25,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1291,
71,
1125,
972,
12,
2890,
4672,
327,
6749,
74,
12,
23,
18,
25,
3631,
6749,
74,
12,
22,
18,
25,
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
] |
"""INPUT: hwv - a dominant weight in a weight lattice. L - the ambient lattice Produces the dictionary of multiplicities for the irreducible character
|
""" Returns the dictionary of multiplicities for the irreducible character
|
def irreducible_character_freudenthal(hwv, L, debug=False): """INPUT: hwv - a dominant weight in a weight lattice. L - the ambient lattice Produces the dictionary of multiplicities for the irreducible character with highest weight lamb. The weight multiplicities are computed by the Freudenthal multiplity formula. The algorithm is based on recursion relation that is stated, for example, in Humphrey's book on Lie Algebras. The multiplicities are invariant under the Weyl group, so to compute them it would be sufficient to compute them for the weights in the positive Weyl chamber. However after some testing it was found to be faster to compute every weight using the recursion, since the use of the Weyl group is expensive in its current implementation. """ rank = L.ct[1] VS = VectorSpace(QQ, L.n) rho = L.rho() mdict = {} current_layer = {tuple(hwv):1} while len(current_layer) > 0: next_layer = {} for mu in current_layer: if not current_layer[mu] == 0: mdict[mu] = current_layer[mu] for alpha in L.simple_roots(): next_layer[tuple(VS(mu)-alpha)] = None if debug: print next_layer for mu in next_layer: vmu = VS(mu) if next_layer[mu] == None: if debug: print " mu:", mu accum = 0 for alpha in L.positive_roots(): i = 1 while tuple(vmu+i*alpha) in mdict: if debug: print " ", vmu+i*alpha, print mdict[tuple(vmu + i*alpha)]*(vmu + i*alpha).inner_product(alpha) accum += mdict[tuple(vmu + i*alpha)]*(vmu + i*alpha).inner_product(alpha) i += 1 if accum == 0: next_layer[mu] = 0 else: next_layer[mu] = QQ(2*accum)/QQ((hwv+rho).inner_product(hwv+rho)-(vmu+rho).inner_product(vmu+rho)) current_layer = next_layer return mdict
|
da4d6149538661041003f964c0d06f212d52f0f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/da4d6149538661041003f964c0d06f212d52f0f5/weyl_characters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9482,
1118,
5286,
1523,
67,
11560,
67,
74,
266,
1100,
319,
22314,
12,
20701,
90,
16,
511,
16,
1198,
33,
8381,
4672,
3536,
2860,
326,
3880,
434,
3309,
1780,
1961,
364,
326,
9482,
1118,
5286,
1523,
3351,
598,
9742,
3119,
24707,
18,
225,
1021,
3119,
3309,
1780,
1961,
854,
8470,
635,
326,
478,
266,
1100,
319,
22314,
3309,
412,
560,
8013,
18,
1021,
4886,
353,
2511,
603,
13917,
2533,
716,
353,
28936,
16,
364,
3454,
16,
316,
670,
379,
844,
266,
93,
1807,
6978,
603,
511,
1385,
2262,
908,
2848,
345,
18,
1021,
3309,
1780,
1961,
854,
22514,
3613,
326,
678,
402,
80,
1041,
16,
1427,
358,
3671,
2182,
518,
4102,
506,
18662,
358,
3671,
2182,
364,
326,
5376,
316,
326,
6895,
678,
402,
80,
462,
301,
744,
18,
10724,
1839,
2690,
7769,
518,
1703,
1392,
358,
506,
12063,
358,
3671,
3614,
3119,
1450,
326,
13917,
16,
3241,
326,
999,
434,
326,
678,
402,
80,
1041,
353,
19326,
316,
2097,
783,
4471,
18,
3536,
6171,
273,
511,
18,
299,
63,
21,
65,
776,
55,
273,
5589,
3819,
12,
53,
53,
16,
511,
18,
82,
13,
10360,
273,
511,
18,
25603,
1435,
312,
1576,
273,
2618,
783,
67,
6363,
273,
288,
8052,
12,
20701,
90,
4672,
21,
97,
1323,
562,
12,
2972,
67,
6363,
13,
405,
374,
30,
1024,
67,
6363,
273,
2618,
364,
4129,
316,
783,
67,
6363,
30,
309,
486,
783,
67,
6363,
63,
13297,
65,
422,
374,
30,
312,
1576,
63,
13297,
65,
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,
9482,
1118,
5286,
1523,
67,
11560,
67,
74,
266,
1100,
319,
22314,
12,
20701,
90,
16,
511,
16,
1198,
33,
8381,
4672,
3536,
2860,
326,
3880,
434,
3309,
1780,
1961,
364,
326,
9482,
1118,
5286,
1523,
3351,
598,
9742,
3119,
24707,
18,
225,
1021,
3119,
3309,
1780,
1961,
854,
8470,
635,
326,
478,
266,
1100,
319,
22314,
3309,
412,
560,
8013,
18,
1021,
4886,
353,
2511,
603,
13917,
2533,
716,
353,
28936,
16,
364,
3454,
16,
316,
670,
379,
844,
266,
93,
1807,
6978,
603,
511,
1385,
2262,
908,
2848,
345,
18,
1021,
3309,
1780,
1961,
854,
22514,
3613,
326,
678,
402,
80,
1041,
16,
1427,
358,
3671,
2182,
518,
4102,
506,
18662,
358,
3671,
2182,
364,
326,
2
] |
post_multipart("%s:%d"%(server,port), "/upload", [], [('file', 'message.dat', data)])
|
if train_as is not None: which_text = "Train as %s" % (train_as,) post_multipart("%s:%d" % (server, port), "/train", [("which", which_text), ("text", "")], [("file", "message.dat", data)]) else: post_multipart("%s:%d" % (server,port), "/upload", [], [('file', 'message.dat', data)])
|
def main(argv): null = False server = "localhost" port = options["html_ui", "port"] prob = 1.0 try: opts, args = getopt.getopt(argv, "hns:p:r:o:", ["help", "null", "server=", "port=", "prob=", "option="]) except getopt.error: usage(globals(), locals()) sys.exit(1) for opt, arg in opts: if opt in ("-h", "--help"): usage(globals(), locals()) sys.exit(0) elif opt in ("-n", "--null"): null = True elif opt in ("-s", "--server"): server = arg elif opt in ("-p", "--port"): port = int(arg) elif opt in ("-r", "--prob"): n = float(arg) if n < 0.0 or n > 1.0: usage(globals(), locals()) sys.exit(1) prob = n elif opt in ('-o', '--option'): options.set_from_cmdline(arg, sys.stderr) if args: usage(globals(), locals()) sys.exit(1) data = sys.stdin.read() if not null: sys.stdout.write(data) if random.random() < prob: try: post_multipart("%s:%d"%(server,port), "/upload", [], [('file', 'message.dat', data)]) except: # not an error if the server isn't responding pass
|
6927bcdb9193e582528d87776752b0b0549e499e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/6927bcdb9193e582528d87776752b0b0549e499e/sb_upload.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
446,
273,
1083,
1438,
273,
315,
13014,
6,
1756,
273,
702,
9614,
2620,
67,
4881,
3113,
315,
655,
11929,
3137,
273,
404,
18,
20,
225,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
19485,
16,
315,
76,
2387,
30,
84,
30,
86,
30,
83,
2773,
16,
8247,
5201,
3113,
315,
2011,
3113,
315,
3567,
1546,
16,
315,
655,
1546,
16,
315,
7748,
1546,
16,
315,
3482,
1546,
5717,
1335,
336,
3838,
18,
1636,
30,
4084,
12,
16227,
9334,
8985,
10756,
2589,
18,
8593,
12,
21,
13,
225,
364,
2153,
16,
1501,
316,
1500,
30,
309,
2153,
316,
7566,
17,
76,
3113,
5238,
5201,
6,
4672,
4084,
12,
16227,
9334,
8985,
10756,
2589,
18,
8593,
12,
20,
13,
1327,
2153,
316,
7566,
17,
82,
3113,
5238,
2011,
6,
4672,
446,
273,
1053,
1327,
2153,
316,
7566,
17,
87,
3113,
5238,
3567,
6,
4672,
1438,
273,
1501,
1327,
2153,
316,
7566,
17,
84,
3113,
5238,
655,
6,
4672,
1756,
273,
509,
12,
3175,
13,
1327,
2153,
316,
7566,
17,
86,
3113,
5238,
7748,
6,
4672,
290,
273,
1431,
12,
3175,
13,
309,
290,
411,
374,
18,
20,
578,
290,
405,
404,
18,
20,
30,
4084,
12,
16227,
9334,
8985,
10756,
2589,
18,
8593,
12,
21,
13,
3137,
273,
290,
1327,
2153,
316,
7707,
17,
83,
2187,
3534,
3482,
11,
4672,
702,
18,
542,
67,
2080,
67,
4172,
1369,
12,
3175,
16,
2589,
18,
11241,
13,
225,
309,
833,
30,
4084,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
446,
273,
1083,
1438,
273,
315,
13014,
6,
1756,
273,
702,
9614,
2620,
67,
4881,
3113,
315,
655,
11929,
3137,
273,
404,
18,
20,
225,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
19485,
16,
315,
76,
2387,
30,
84,
30,
86,
30,
83,
2773,
16,
8247,
5201,
3113,
315,
2011,
3113,
315,
3567,
1546,
16,
315,
655,
1546,
16,
315,
7748,
1546,
16,
315,
3482,
1546,
5717,
1335,
336,
3838,
18,
1636,
30,
4084,
12,
16227,
9334,
8985,
10756,
2589,
18,
8593,
12,
21,
13,
225,
364,
2153,
16,
1501,
316,
1500,
30,
309,
2153,
316,
7566,
17,
76,
3113,
5238,
5201,
6,
4672,
4084,
12,
16227,
9334,
8985,
2
] |
restores = self.restores[:]
|
restores = [ (x[1][0], x[1][1], x[0], x[1][2], x[1][3]) for x in self.restores.iteritems() ]
|
def restoreFile(fileObj, contents, root, target, journal): if fileObj.hasContents and contents and not \ fileObj.flags.isConfig(): # config file sha1's are verified when they get inserted # into the config file cache d = sha.new() fileObj.restore(contents, root, target, journal=journal, digest = d) assert(d.digest() == fileObj.contents.sha1()) else: fileObj.restore(contents, root, target, journal=journal)
|
22f9a9101585ff5ecfc72cfcc17af08af913547a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/22f9a9101585ff5ecfc72cfcc17af08af913547a/update.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
812,
12,
768,
2675,
16,
2939,
16,
1365,
16,
1018,
16,
13001,
4672,
309,
585,
2675,
18,
5332,
6323,
471,
2939,
471,
486,
521,
585,
2675,
18,
7133,
18,
291,
809,
13332,
468,
642,
585,
6056,
21,
1807,
854,
13808,
1347,
2898,
336,
9564,
468,
1368,
326,
642,
585,
1247,
302,
273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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5217,
812,
12,
768,
2675,
16,
2939,
16,
1365,
16,
1018,
16,
13001,
4672,
309,
585,
2675,
18,
5332,
6323,
471,
2939,
471,
486,
521,
585,
2675,
18,
7133,
18,
291,
809,
13332,
468,
642,
585,
6056,
21,
1807,
854,
13808,
1347,
2898,
336,
9564,
468,
1368,
326,
642,
585,
1247,
302,
273,
6056,
18,
2704,
1435,
585,
2675,
18,
13991,
12,
3980,
16,
1365,
16,
1018,
16,
13001,
33,
22644,
16,
5403,
273,
302,
13,
1815,
12,
72,
18,
10171,
1435,
422,
585,
2675,
18,
3980,
18,
7819,
21,
10756,
469,
30,
585,
2675,
18,
13991,
12,
3980,
16,
1365,
16,
1018,
16,
13001,
33,
22644,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
locale.setlocale(locale.LC_ALL, loc)
|
enc = locale.getpreferredencoding() ln = locale._build_localename((loc, enc)) try: locale.setlocale(locale.LC_ALL, ln) except locale.Error: locale.setlocale(locale.LC_ALL, loc)
|
def resetlocale(): # locale.resetlocale is bugged with some locales. loc = locale.getdefaultlocale()[0] enc = locale.getpreferredencoding() ln = locale._build_localename((loc, enc)) try: locale.setlocale(locale.LC_ALL, ln) except locale.Error: locale.setlocale(locale.LC_ALL, loc)
|
e07e477337c76033a9c642cab3d579f0abfece11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/e07e477337c76033a9c642cab3d579f0abfece11/translate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
6339,
13332,
468,
2573,
18,
6208,
6339,
353,
7934,
2423,
598,
2690,
6922,
18,
1515,
273,
2573,
18,
588,
1886,
6339,
1435,
63,
20,
65,
2446,
273,
2573,
18,
588,
23616,
5999,
1435,
7211,
273,
2573,
6315,
3510,
67,
3729,
1069,
12443,
1829,
16,
2446,
3719,
775,
30,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
7211,
13,
1335,
2573,
18,
668,
30,
2446,
273,
2573,
18,
588,
23616,
5999,
1435,
7211,
273,
2573,
6315,
3510,
67,
3729,
1069,
12443,
1829,
16,
2446,
3719,
775,
30,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
7211,
13,
1335,
2573,
18,
668,
30,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
1515,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
6339,
13332,
468,
2573,
18,
6208,
6339,
353,
7934,
2423,
598,
2690,
6922,
18,
1515,
273,
2573,
18,
588,
1886,
6339,
1435,
63,
20,
65,
2446,
273,
2573,
18,
588,
23616,
5999,
1435,
7211,
273,
2573,
6315,
3510,
67,
3729,
1069,
12443,
1829,
16,
2446,
3719,
775,
30,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
7211,
13,
1335,
2573,
18,
668,
30,
2446,
273,
2573,
18,
588,
23616,
5999,
1435,
7211,
273,
2573,
6315,
3510,
67,
3729,
1069,
12443,
1829,
16,
2446,
3719,
775,
30,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
7211,
13,
1335,
2573,
18,
668,
30,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
2
] |
address = '127.0.0.1' port = 8811
|
address = config.get('server', 'address') port = config.getint('server', 'port')
|
def _create_socket(config): #address = config.get('server', 'address') #port = config.getint('server', 'port') address = '127.0.0.1' port = 8811 socket = gevent.socket.tcp_listener((address, port)) #if config.getbool('server', 'use_ssl'): if False: keyfile = config.get('ssl', 'keyfile') certfile = config.get('ssl', 'certfile') socket = gevent.ssl.SSLSocket(socket, keyfile, certfile) return socket
|
d5a1dc8be13364c1fc8a604fde88f5ffea0bd7ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/d5a1dc8be13364c1fc8a604fde88f5ffea0bd7ec/server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
7814,
12,
1425,
4672,
468,
2867,
273,
642,
18,
588,
2668,
3567,
2187,
296,
2867,
6134,
468,
655,
273,
642,
18,
588,
474,
2668,
3567,
2187,
296,
655,
6134,
1758,
273,
296,
14260,
18,
20,
18,
20,
18,
21,
11,
1756,
273,
24153,
2499,
2987,
273,
314,
2575,
18,
7814,
18,
14832,
67,
12757,
12443,
2867,
16,
1756,
3719,
468,
430,
642,
18,
588,
6430,
2668,
3567,
2187,
296,
1202,
67,
8157,
11,
4672,
309,
1083,
30,
28632,
273,
642,
18,
588,
2668,
8157,
2187,
296,
856,
768,
6134,
3320,
768,
273,
642,
18,
588,
2668,
8157,
2187,
296,
7593,
768,
6134,
2987,
273,
314,
2575,
18,
8157,
18,
1260,
25831,
12,
7814,
16,
28632,
16,
3320,
768,
13,
327,
2987,
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,
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0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
7814,
12,
1425,
4672,
468,
2867,
273,
642,
18,
588,
2668,
3567,
2187,
296,
2867,
6134,
468,
655,
273,
642,
18,
588,
474,
2668,
3567,
2187,
296,
655,
6134,
1758,
273,
296,
14260,
18,
20,
18,
20,
18,
21,
11,
1756,
273,
24153,
2499,
2987,
273,
314,
2575,
18,
7814,
18,
14832,
67,
12757,
12443,
2867,
16,
1756,
3719,
468,
430,
642,
18,
588,
6430,
2668,
3567,
2187,
296,
1202,
67,
8157,
11,
4672,
309,
1083,
30,
28632,
273,
642,
18,
588,
2668,
8157,
2187,
296,
856,
768,
6134,
3320,
768,
273,
642,
18,
588,
2668,
8157,
2187,
296,
7593,
768,
6134,
2987,
273,
314,
2575,
18,
8157,
18,
1260,
25831,
12,
7814,
16,
28632,
2
] |
def __exitfunc(self):
|
def _exitfunc(self):
|
def __exitfunc(self): self._Thread__stop() t = _pickSomeNonDaemonThread() if t: if __debug__: self._note("%s: waiting for other threads", self) while t: t.join() t = _pickSomeNonDaemonThread() if __debug__: self._note("%s: exiting", self) self._Thread__delete()
|
bea1c70144e4de97312e9d04dd4c90e549f79f2e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/bea1c70144e4de97312e9d04dd4c90e549f79f2e/threading.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8593,
644,
12,
2890,
4672,
365,
6315,
3830,
972,
5681,
1435,
268,
273,
389,
11503,
17358,
3989,
12858,
3830,
1435,
309,
268,
30,
309,
1001,
4148,
972,
30,
365,
6315,
7652,
27188,
87,
30,
7336,
364,
1308,
7403,
3113,
365,
13,
1323,
268,
30,
268,
18,
5701,
1435,
268,
273,
389,
11503,
17358,
3989,
12858,
3830,
1435,
309,
1001,
4148,
972,
30,
365,
6315,
7652,
27188,
87,
30,
15702,
3113,
365,
13,
365,
6315,
3830,
972,
3733,
1435,
2,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8593,
644,
12,
2890,
4672,
365,
6315,
3830,
972,
5681,
1435,
268,
273,
389,
11503,
17358,
3989,
12858,
3830,
1435,
309,
268,
30,
309,
1001,
4148,
972,
30,
365,
6315,
7652,
27188,
87,
30,
7336,
364,
1308,
7403,
3113,
365,
13,
1323,
268,
30,
268,
18,
5701,
1435,
268,
273,
389,
11503,
17358,
3989,
12858,
3830,
1435,
309,
1001,
4148,
972,
30,
365,
6315,
7652,
27188,
87,
30,
15702,
3113,
365,
13,
365,
6315,
3830,
972,
3733,
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
] |
xtext = ((x + xstep*i + 180)%360 - 180) if xText in ANGLES else (x + xstep*i)
|
xtext = ((x + xstep*i + 180)%360 - 180) if xText in ANGLES and x1 <= 180 else (x + xstep*i)
|
def Plot(self): """ Calculates and renders the plot """ #cache local variables x = self.x y = self.y x1 = self.x1 y1 = self.y1 xbin = self.xbin ybin = self.ybin xText = self.xText yText = self.yText height = self.height width = self.width bg_color = self.background_color hash_color = self.hash_color text_color = self.text_color
|
cd61e2ba9c8f4b03199719ac515a5b788657caa1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6163/cd61e2ba9c8f4b03199719ac515a5b788657caa1/ConfDistFuncs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15211,
12,
2890,
4672,
3536,
26128,
471,
19567,
326,
3207,
3536,
225,
468,
2493,
1191,
3152,
619,
273,
365,
18,
92,
677,
273,
365,
18,
93,
619,
21,
273,
365,
18,
92,
21,
677,
21,
273,
365,
18,
93,
21,
619,
4757,
273,
365,
18,
92,
4757,
677,
4757,
273,
365,
18,
93,
4757,
619,
1528,
273,
365,
18,
92,
1528,
677,
1528,
273,
365,
18,
93,
1528,
2072,
273,
365,
18,
4210,
1835,
273,
365,
18,
2819,
7611,
67,
3266,
273,
365,
18,
9342,
67,
3266,
1651,
67,
3266,
273,
365,
18,
2816,
67,
3266,
977,
67,
3266,
273,
365,
18,
955,
67,
3266,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15211,
12,
2890,
4672,
3536,
26128,
471,
19567,
326,
3207,
3536,
225,
468,
2493,
1191,
3152,
619,
273,
365,
18,
92,
677,
273,
365,
18,
93,
619,
21,
273,
365,
18,
92,
21,
677,
21,
273,
365,
18,
93,
21,
619,
4757,
273,
365,
18,
92,
4757,
677,
4757,
273,
365,
18,
93,
4757,
619,
1528,
273,
365,
18,
92,
1528,
677,
1528,
273,
365,
18,
93,
1528,
2072,
273,
365,
18,
4210,
1835,
273,
365,
18,
2819,
7611,
67,
3266,
273,
365,
18,
9342,
67,
3266,
1651,
67,
3266,
273,
365,
18,
2816,
67,
3266,
977,
67,
3266,
273,
365,
18,
955,
67,
3266,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
open(infile, 'w').write(input) infile.close()
|
tmp = open(infile, 'w') tmp.write(input) tmp.close()
|
def __init__(self, command, input=None, capturestderr=None): outfile = tempfile.mktemp() command = '( %s ) > %s' % (command, outfile) if input: infile = tempfile.mktemp() open(infile, 'w').write(input) infile.close() command = command + ' <' + infile if capturestderr: errfile = tempfile.mktemp() command = command + ' 2>' + errfile try: self.err = None self.errorlevel = os.system(command) >> 8 outfd = file(outfile, 'r') self.out = outfd.read() outfd.close() if capturestderr: errfd = file(errfile,'r') self.err = errfd.read() errfd.close() finally: if os.path.isfile(outfile): os.remove(outfile) if input and os.path.isfile(infile): os.remove(infile) if capturestderr and os.path.isfile(errfile): os.remove(errfile)
|
927a499d63d645d4e7161a531a4bb3e02af9957a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/927a499d63d645d4e7161a531a4bb3e02af9957a/util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1296,
16,
810,
33,
7036,
16,
7477,
11241,
33,
7036,
4672,
8756,
273,
13275,
18,
24816,
5814,
1435,
1296,
273,
7747,
738,
87,
262,
405,
738,
87,
11,
738,
261,
3076,
16,
8756,
13,
309,
810,
30,
14568,
273,
13275,
18,
24816,
5814,
1435,
1853,
273,
1696,
12,
267,
768,
16,
296,
91,
6134,
1853,
18,
2626,
12,
2630,
13,
1853,
18,
4412,
1435,
1296,
273,
1296,
397,
296,
411,
11,
397,
14568,
309,
7477,
11241,
30,
393,
768,
273,
13275,
18,
24816,
5814,
1435,
1296,
273,
1296,
397,
296,
576,
1870,
397,
393,
768,
775,
30,
365,
18,
370,
273,
599,
365,
18,
1636,
2815,
273,
1140,
18,
4299,
12,
3076,
13,
1671,
1725,
596,
8313,
273,
585,
12,
26050,
16,
296,
86,
6134,
365,
18,
659,
273,
596,
8313,
18,
896,
1435,
596,
8313,
18,
4412,
1435,
309,
7477,
11241,
30,
393,
8313,
273,
585,
12,
370,
768,
11189,
86,
6134,
365,
18,
370,
273,
393,
8313,
18,
896,
1435,
393,
8313,
18,
4412,
1435,
3095,
30,
309,
1140,
18,
803,
18,
291,
768,
12,
26050,
4672,
1140,
18,
4479,
12,
26050,
13,
309,
810,
471,
1140,
18,
803,
18,
291,
768,
12,
267,
768,
4672,
1140,
18,
4479,
12,
267,
768,
13,
309,
7477,
11241,
471,
1140,
18,
803,
18,
291,
768,
12,
370,
768,
4672,
1140,
18,
4479,
12,
370,
768,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1296,
16,
810,
33,
7036,
16,
7477,
11241,
33,
7036,
4672,
8756,
273,
13275,
18,
24816,
5814,
1435,
1296,
273,
7747,
738,
87,
262,
405,
738,
87,
11,
738,
261,
3076,
16,
8756,
13,
309,
810,
30,
14568,
273,
13275,
18,
24816,
5814,
1435,
1853,
273,
1696,
12,
267,
768,
16,
296,
91,
6134,
1853,
18,
2626,
12,
2630,
13,
1853,
18,
4412,
1435,
1296,
273,
1296,
397,
296,
411,
11,
397,
14568,
309,
7477,
11241,
30,
393,
768,
273,
13275,
18,
24816,
5814,
1435,
1296,
273,
1296,
397,
296,
576,
1870,
397,
393,
768,
775,
30,
365,
18,
370,
273,
599,
365,
18,
1636,
2815,
273,
1140,
18,
4299,
12,
3076,
2
] |
imageobj = eps.EpsImage(filename = sysfilename)
|
imageobj = eps.EpsImage(filename=sysfilename)
|
def CreateImage(self, sysfilename = None): if not sysfilename: filename, sysfilename=dialogman.getImportBMFilename(initialdir = config.preferences.dir_for_bitmap_import, initialfile = '')
|
5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
2040,
12,
2890,
16,
2589,
3459,
273,
599,
4672,
309,
486,
2589,
3459,
30,
1544,
16,
2589,
3459,
33,
12730,
4728,
18,
588,
5010,
38,
49,
5359,
12,
6769,
1214,
273,
642,
18,
23219,
18,
1214,
67,
1884,
67,
3682,
1458,
67,
5666,
16,
2172,
768,
273,
28707,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
2040,
12,
2890,
16,
2589,
3459,
273,
599,
4672,
309,
486,
2589,
3459,
30,
1544,
16,
2589,
3459,
33,
12730,
4728,
18,
588,
5010,
38,
49,
5359,
12,
6769,
1214,
273,
642,
18,
23219,
18,
1214,
67,
1884,
67,
3682,
1458,
67,
5666,
16,
2172,
768,
273,
28707,
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
] |
return self.stanza(search=kwargs.get('search', None), sortby=kwargs.get('sortby',None), authorid=kwargs.get('authorid',None),
|
want_mobile = self.MOBILE_UA.search(ua) is not None if self.opts.develop and not want_mobile: prints('User agent:', ua) if want_opds: return self.stanza(search=kwargs.get('search', None), sortby=kwargs.get('sortby',None), authorid=kwargs.get('authorid',None),
|
def index(self, **kwargs): 'The / URL' ua = cherrypy.request.headers.get('User-Agent', '').strip() want_opds = \ cherrypy.request.headers.get('Stanza-Device-Name', 919) != 919 or \ cherrypy.request.headers.get('Want-OPDS-Catalog', 919) != 919 or \ ua.startswith('Stanza') return self.stanza(search=kwargs.get('search', None), sortby=kwargs.get('sortby',None), authorid=kwargs.get('authorid',None), tagid=kwargs.get('tagid',None), seriesid=kwargs.get('seriesid',None), offset=kwargs.get('offset', 0)) if want_opds else self.static('index.html')
|
8a0aad39f90399dd78d3b444a9805483d92815d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/8a0aad39f90399dd78d3b444a9805483d92815d1/server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2890,
16,
2826,
4333,
4672,
296,
1986,
342,
1976,
11,
10165,
273,
462,
370,
28398,
18,
2293,
18,
2485,
18,
588,
2668,
1299,
17,
3630,
2187,
875,
2934,
6406,
1435,
2545,
67,
556,
2377,
273,
521,
462,
370,
28398,
18,
2293,
18,
2485,
18,
588,
2668,
510,
15214,
17,
3654,
17,
461,
2187,
2468,
3657,
13,
480,
2468,
3657,
578,
521,
462,
370,
28398,
18,
2293,
18,
2485,
18,
588,
2668,
59,
970,
17,
3665,
3948,
17,
9769,
2187,
2468,
3657,
13,
480,
2468,
3657,
578,
521,
10165,
18,
17514,
1918,
2668,
510,
15214,
6134,
282,
2545,
67,
18386,
273,
365,
18,
49,
29826,
67,
28203,
18,
3072,
12,
11886,
13,
353,
486,
599,
309,
365,
18,
4952,
18,
323,
8250,
471,
486,
2545,
67,
18386,
30,
14971,
2668,
1299,
4040,
30,
2187,
10165,
13,
225,
309,
2545,
67,
556,
2377,
30,
327,
365,
18,
541,
11939,
12,
3072,
33,
4333,
18,
588,
2668,
3072,
2187,
599,
3631,
1524,
1637,
33,
4333,
18,
588,
2668,
3804,
1637,
2187,
7036,
3631,
2869,
350,
33,
4333,
18,
588,
2668,
4161,
350,
2187,
7036,
3631,
1047,
350,
33,
4333,
18,
588,
2668,
2692,
350,
2187,
7036,
3631,
4166,
350,
33,
4333,
18,
588,
2668,
10222,
350,
2187,
7036,
3631,
1384,
33,
4333,
18,
588,
2668,
3348,
2187,
374,
3719,
309,
2545,
67,
556,
2377,
469,
365,
18,
3845,
2668,
1615,
18,
2620,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2890,
16,
2826,
4333,
4672,
296,
1986,
342,
1976,
11,
10165,
273,
462,
370,
28398,
18,
2293,
18,
2485,
18,
588,
2668,
1299,
17,
3630,
2187,
875,
2934,
6406,
1435,
2545,
67,
556,
2377,
273,
521,
462,
370,
28398,
18,
2293,
18,
2485,
18,
588,
2668,
510,
15214,
17,
3654,
17,
461,
2187,
2468,
3657,
13,
480,
2468,
3657,
578,
521,
462,
370,
28398,
18,
2293,
18,
2485,
18,
588,
2668,
59,
970,
17,
3665,
3948,
17,
9769,
2187,
2468,
3657,
13,
480,
2468,
3657,
578,
521,
10165,
18,
17514,
1918,
2668,
510,
15214,
6134,
282,
2545,
67,
18386,
273,
365,
18,
49,
29826,
67,
28203,
18,
3072,
12,
11886,
13,
353,
486,
599,
309,
365,
2
] |
if(log_file_str):
|
if (log_file_str):
|
def _get_config(self, config_data): """Get config data from module configuration""" log_file_str = config_data.get('log_file') if(log_file_str): self._log_file = log_file_str severity_str = config_data.get('log_severity') if(severity_str): self._severity = severity_str
|
153b6b2c6735f83b37f8d94c65310ce1d7df6263 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/153b6b2c6735f83b37f8d94c65310ce1d7df6263/log.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1425,
12,
2890,
16,
642,
67,
892,
4672,
3536,
967,
642,
501,
628,
1605,
1664,
8395,
225,
613,
67,
768,
67,
701,
273,
642,
67,
892,
18,
588,
2668,
1330,
67,
768,
6134,
309,
261,
1330,
67,
768,
67,
701,
4672,
365,
6315,
1330,
67,
768,
273,
613,
67,
768,
67,
701,
225,
11426,
67,
701,
273,
642,
67,
892,
18,
588,
2668,
1330,
67,
27341,
6134,
309,
12,
27341,
67,
701,
4672,
365,
6315,
27341,
273,
11426,
67,
701,
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,
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0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1425,
12,
2890,
16,
642,
67,
892,
4672,
3536,
967,
642,
501,
628,
1605,
1664,
8395,
225,
613,
67,
768,
67,
701,
273,
642,
67,
892,
18,
588,
2668,
1330,
67,
768,
6134,
309,
261,
1330,
67,
768,
67,
701,
4672,
365,
6315,
1330,
67,
768,
273,
613,
67,
768,
67,
701,
225,
11426,
67,
701,
273,
642,
67,
892,
18,
588,
2668,
1330,
67,
27341,
6134,
309,
12,
27341,
67,
701,
4672,
365,
6315,
27341,
273,
11426,
67,
701,
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
] |
res_dict['terminal_flag'] = True residues[res_old_id]['terminal_flag'] = True res_dict['chainIndex'] = newID res_dict['L2'] = calc_distance(N,CA) res_dict['L4'] = calc_distance(CA,C) res_dict['L5'] = calc_distance(C,O) res_dict['a3'] = calc_angle(N,CA,C) res_dict['a5'] = calc_angle(CA,C,O) if CB: res_dict['a2'] = calc_angle(N,CA,CB) res_dict['a4'] = calc_angle(CB,CA,C) res_dict['L3'] = calc_distance(CA,CB) res_dict['zeta'] = calc_dihedral(CA, N, C, CB) """ Calculate Bg - bfactor of the 4th atom in Chi1. """ try: atom_name = CHI_MAP[res.resname][0][3] res_dict['bg'] = res[atom_name].get_bfactor() except KeyError: pass """ Other B Averages Bm - Average of bfactors in main chain. Bm - Average of bfactors in side chain. """ main_chain = [] side_chain = [] for a in res.child_list: if a.name in ('N', 'CA', 'C', 'O','OXT'): main_chain.append(a.get_bfactor()) elif a.name in ('H'): continue else: side_chain.append(a.get_bfactor()) if main_chain != []: res_dict['bm'] = sum(main_chain)/len(main_chain) if side_chain != []: res_dict['bs'] = sum(side_chain)/len(side_chain) """ Calculate CHI values. The mappings for per peptide chi's are stored in a separate file and a function is used to calculate the chi based based on the peptide of this residue and the lists of atoms in the chi mappings. """ calc_chi(res, res_dict) if res_dict['chi1']: res_dict['chi'] = res_dict['chi1'] """ Reset for next pass. We save some relationships which span two atoms. """ res_old_id = res_id oldN = N oldCA = CA oldC = C oldO = O
|
oldN = None oldCA = None oldC = None if residues.has_key(res_id): del residues[res_id]
|
def parseWithBioPython(file, props, chains=None): """ Parse values from file that can be parsed using BioPython library @return a dict containing the properties that were processed """ chains = props['chains'] decompressedFile = None tmp = './tmp' pdb = './pdb' try: #create tmp workspace if os.path.exists(tmp): ownTempDir = False else: ownTempDir = True os.mkdir(tmp) #prep and open file decompressedFile = uncompress(file, pdb, tmp) if not decompressedFile: print 'ERROR: file not decompressed' else: structure = Bio.PDB.PDBParser().get_structure('pdbname', decompressedFile) # dssp can't do multiple models. if we ever need to, we'll have to # iterate through them dssp = Bio.PDB.DSSP(model=structure[0], pdb_file=decompressedFile, dssp='dsspcmbi') #iterate residues res_old_id = None oldN = None oldCA = None oldC = None for chain in structure[0]: chain_id = chain.get_id() # only process selected chains if chains and not chain_id in chains: print 'Skipping Chain: %s' % chain_id continue # construct structure for saving chain if not chain_id in props['chains']: residues = {} props['chains'][chain_id] = residues print 'PROCESSING CHAIN [%s]' % chain, len(chain) newID = 0 #for res in structure[0].get_residues(): for res in chain: newID += 1 terminal = False hetflag, res_id, icode = res.get_id() """ Exclude water residues Exclude any Residues that are missing _ANY_ of the mainchain atoms. Any atom could be missing """ all_mainchain = res.has_id('N') and res.has_id('CA') and res.has_id('C') and res.has_id('O') if hetflag != ' ' or not all_mainchain: #print 'discard', res_id if oldC: residues[res_old_id]['terminal_flag'] = True newID += 1 oldN = None oldCA = None oldC = None continue """ Create dictionary structure and initialize all values. All Values are required. Values that are not filled in will retain the NO_VALUE value. Store residue properties using OLD_ID as the key to ensure it is unique. We're including residues from all chains in the same dictionary and chainindex may have duplicates. """ try: res_dict = residues[res_id] except KeyError: # residue didn't exist yet res_dict = {} residues[res_id] = res_dict res_dict['oldID'] = res_id if not icode else '%s%s' % (res_id, icode) length_list = ['L1', 'L2', 'L3', 'L4', 'L5', 'L6', 'L7','bg','bs','bm'] angles_list = ['a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7'] dihedral_list = ['psi', 'ome', 'phi', 'zeta','chi1','chi2','chi3','chi4'] initialize_geometry(res_dict, length_list, 'length') initialize_geometry(res_dict, angles_list, 'angle') initialize_geometry(res_dict, dihedral_list, 'angle') """ Get Properties from DSSP and other per residue properties """ chain = res.get_parent().get_id() residue_dssp, secondary_structure, accessibility, relative_accessibility = dssp[(chain, res_id)] res_dict['chain_id'] = chain res_dict['ss'] = secondary_structure res_dict['aa'] = AA3to1[res.resname] res_dict['h_bond_energy'] = 0.00 """ Get Vectors for mainchain atoms and calculate geometric angles, dihedral angles, and lengths between them. """ N = res['N'].get_vector() CA = res['CA'].get_vector() C = res['C'].get_vector() CB = res['CB'].get_vector() if res.has_id('CB') else None O = res['O'].get_vector() if oldC: # determine if there are missing residues by calculating # the distance between the current residue and previous # residue. If the L1 distance is greater than 2.5 it # cannot possibly be the correct order of residues. L1 = calc_distance(oldC,N) if L1 < 2.5: # properties that span residues res_dict['a6'] = calc_angle(oldCA,oldC,N) res_dict['a7'] = calc_angle(oldO,oldC,N) residues[res_old_id]['psi'] = calc_dihedral(oldN,oldCA,oldC,N) residues[res_old_id]['ome'] = calc_dihedral(oldCA,oldC,N,CA) res_dict['a1'] = calc_angle(oldC,N,CA) res_dict['phi'] = calc_dihedral(oldC,N,CA,C) res_dict['L1'] = L1 terminal = False if terminal: # break in the chain, # 1) add terminal flags to both ends of the break so # the break can quickly be found. # 2) skip a number in the new style index. This allows # the break to be visible without checking the # terminal flag newID += 1 res_dict['terminal_flag'] = True residues[res_old_id]['terminal_flag'] = True # newID cannot be set until after we determine if it is terminal res_dict['chainIndex'] = newID res_dict['L2'] = calc_distance(N,CA) res_dict['L4'] = calc_distance(CA,C) res_dict['L5'] = calc_distance(C,O) res_dict['a3'] = calc_angle(N,CA,C) res_dict['a5'] = calc_angle(CA,C,O) if CB: res_dict['a2'] = calc_angle(N,CA,CB) res_dict['a4'] = calc_angle(CB,CA,C) res_dict['L3'] = calc_distance(CA,CB) res_dict['zeta'] = calc_dihedral(CA, N, C, CB) """ Calculate Bg - bfactor of the 4th atom in Chi1. """ try: atom_name = CHI_MAP[res.resname][0][3] res_dict['bg'] = res[atom_name].get_bfactor() except KeyError: # not all residues have chi pass """ Other B Averages Bm - Average of bfactors in main chain. Bm - Average of bfactors in side chain. """ main_chain = [] side_chain = [] for a in res.child_list: if a.name in ('N', 'CA', 'C', 'O','OXT'): main_chain.append(a.get_bfactor()) elif a.name in ('H'): continue else: side_chain.append(a.get_bfactor()) if main_chain != []: res_dict['bm'] = sum(main_chain)/len(main_chain) if side_chain != []: res_dict['bs'] = sum(side_chain)/len(side_chain) """ Calculate CHI values. The mappings for per peptide chi's are stored in a separate file and a function is used to calculate the chi based based on the peptide of this residue and the lists of atoms in the chi mappings. """ calc_chi(res, res_dict) if res_dict['chi1']: res_dict['chi'] = res_dict['chi1'] """ Reset for next pass. We save some relationships which span two atoms. """ res_old_id = res_id oldN = N oldCA = CA oldC = C oldO = O print 'Processed %s residues' % len(residues) finally: #clean up any files in tmp directory no matter what if decompressedFile and os.path.exists(decompressedFile): os.remove(decompressedFile) if ownTempDir and os.path.exists(tmp): os.removedirs(tmp) return props
|
b600ae9cea682b7a1ec000d1367d9fd15e63f3df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6163/b600ae9cea682b7a1ec000d1367d9fd15e63f3df/ProcessPDBTask.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1190,
38,
1594,
15774,
12,
768,
16,
3458,
16,
13070,
33,
7036,
4672,
3536,
2884,
924,
628,
585,
716,
848,
506,
2707,
1450,
21209,
15774,
5313,
632,
2463,
279,
2065,
4191,
326,
1790,
716,
4591,
5204,
3536,
13070,
273,
3458,
3292,
23060,
3546,
225,
443,
15385,
812,
273,
599,
1853,
273,
12871,
5645,
11,
10892,
273,
12871,
17414,
11,
225,
775,
30,
468,
2640,
1853,
6003,
309,
1140,
18,
803,
18,
1808,
12,
5645,
4672,
4953,
7185,
1621,
273,
1083,
469,
30,
4953,
7185,
1621,
273,
1053,
1140,
18,
26686,
12,
5645,
13,
225,
468,
19109,
471,
1696,
585,
443,
15385,
812,
273,
12704,
1028,
12,
768,
16,
10892,
16,
1853,
13,
225,
309,
486,
443,
15385,
812,
30,
1172,
296,
3589,
30,
585,
486,
443,
15385,
11,
469,
30,
225,
3695,
273,
21209,
18,
52,
2290,
18,
52,
2290,
2678,
7675,
588,
67,
7627,
2668,
17414,
529,
2187,
443,
15385,
812,
13,
225,
468,
302,
1049,
84,
848,
1404,
741,
3229,
3679,
18,
309,
732,
14103,
1608,
358,
16,
732,
5614,
1240,
358,
468,
7401,
3059,
2182,
302,
1049,
84,
273,
21209,
18,
52,
2290,
18,
40,
1260,
52,
12,
2284,
33,
7627,
63,
20,
6487,
10892,
67,
768,
33,
323,
15385,
812,
16,
302,
1049,
84,
2218,
72,
1049,
2436,
1627,
77,
6134,
225,
468,
18793,
25435,
400,
67,
1673,
67,
350,
273,
599,
1592,
50,
4202,
273,
599,
1592,
3587,
1377,
273,
599,
1592,
39,
4202,
273,
599,
225,
364,
2687,
316,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1190,
38,
1594,
15774,
12,
768,
16,
3458,
16,
13070,
33,
7036,
4672,
3536,
2884,
924,
628,
585,
716,
848,
506,
2707,
1450,
21209,
15774,
5313,
632,
2463,
279,
2065,
4191,
326,
1790,
716,
4591,
5204,
3536,
13070,
273,
3458,
3292,
23060,
3546,
225,
443,
15385,
812,
273,
599,
1853,
273,
12871,
5645,
11,
10892,
273,
12871,
17414,
11,
225,
775,
30,
468,
2640,
1853,
6003,
309,
1140,
18,
803,
18,
1808,
12,
5645,
4672,
4953,
7185,
1621,
273,
1083,
469,
30,
4953,
7185,
1621,
273,
1053,
1140,
18,
26686,
12,
5645,
13,
225,
468,
19109,
471,
1696,
585,
443,
15385,
812,
273,
12704,
1028,
12,
768,
16,
10892,
16,
1853,
13,
225,
309,
486,
443,
15385,
2
] |
return if (parents == (nullrev, nullrev) or len(cl.heads(cl.node(parents[0]))) > 1 and (parents[1] == nullrev or len(cl.heads(cl.node(parents[1]))) > 1)):
|
pass elif (parents == (nullrev, nullrev) or len(cl.heads(cl.node(parents[0]))) > 1 and (parents[1] == nullrev or len(cl.heads(cl.node(parents[1]))) > 1)):
|
def commitfunc(ui, repo, message, match, opts): return repo.commit(match.files(), message, opts['user'], opts['date'], match, force_editor=opts.get('force_editor'))
|
2211a41b10172dc69a0810ea6be8b6a48a3cb35d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/2211a41b10172dc69a0810ea6be8b6a48a3cb35d/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
644,
12,
4881,
16,
3538,
16,
883,
16,
845,
16,
1500,
4672,
327,
3538,
18,
7371,
12,
1916,
18,
2354,
9334,
883,
16,
1500,
3292,
1355,
17337,
1500,
3292,
712,
17337,
845,
16,
2944,
67,
9177,
33,
4952,
18,
588,
2668,
5734,
67,
9177,
26112,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
644,
12,
4881,
16,
3538,
16,
883,
16,
845,
16,
1500,
4672,
327,
3538,
18,
7371,
12,
1916,
18,
2354,
9334,
883,
16,
1500,
3292,
1355,
17337,
1500,
3292,
712,
17337,
845,
16,
2944,
67,
9177,
33,
4952,
18,
588,
2668,
5734,
67,
9177,
26112,
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
] |
self.window.add_accel_group(agr)
|
def init_accelerators(self): agr = gtk.AccelGroup() # Escape and Ctrl-W close the dialog. It's faster to call close # directly, rather than use the close button widget key, modifier = gtk.accelerator_parse('Escape') agr.connect_group(key, modifier, gtk.ACCEL_VISIBLE, self.close) key, modifier = gtk.accelerator_parse('<Control>w') agr.connect_group(key, modifier, gtk.ACCEL_VISIBLE, self.close) # Ctrl-N creates a new task key, modifier = gtk.accelerator_parse('<Control>n') agr.connect_group(key, modifier, gtk.ACCEL_VISIBLE, self.new_task) # Ctrl-Shift-N creates a new subtask insert_subtask = self.wTree.get_widget("insert_subtask") key, mod = gtk.accelerator_parse("<Control><Shift>n") insert_subtask.add_accelerator('clicked', agr, key, mod, gtk.ACCEL_VISIBLE) # Ctrl-D marks task as done mark_as_done_editor = self.wTree.get_widget('mark_as_done_editor') key, mod = gtk.accelerator_parse('<Control>d') mark_as_done_editor.add_accelerator('clicked', agr, key, mod, gtk.ACCEL_VISIBLE) # Ctrl-I marks task as dismissed dismiss_editor = self.wTree.get_widget('dismiss_editor') key, mod = gtk.accelerator_parse('<Control>i') dismiss_editor.add_accelerator('clicked', agr, key, mod, gtk.ACCEL_VISIBLE) self.window.add_accel_group(agr)
|
2f76328536e715633b22680f091ddfdc76adc245 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/2f76328536e715633b22680f091ddfdc76adc245/editor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
8981,
22990,
3062,
12,
2890,
4672,
1737,
86,
273,
22718,
18,
18019,
1114,
1435,
225,
468,
18025,
471,
30715,
17,
59,
1746,
326,
6176,
18,
2597,
1807,
12063,
358,
745,
1746,
468,
5122,
16,
9178,
2353,
999,
326,
1746,
3568,
3604,
498,
16,
9606,
273,
22718,
18,
30737,
7385,
67,
2670,
2668,
8448,
6134,
1737,
86,
18,
3612,
67,
1655,
12,
856,
16,
9606,
16,
22718,
18,
2226,
28746,
67,
29588,
16,
365,
18,
4412,
13,
225,
498,
16,
9606,
273,
22718,
18,
30737,
7385,
67,
2670,
2668,
32,
3367,
34,
91,
6134,
1737,
86,
18,
3612,
67,
1655,
12,
856,
16,
9606,
16,
22718,
18,
2226,
28746,
67,
29588,
16,
365,
18,
4412,
13,
225,
468,
30715,
17,
50,
3414,
279,
394,
1562,
498,
16,
9606,
273,
22718,
18,
30737,
7385,
67,
2670,
2668,
32,
3367,
34,
82,
6134,
1737,
86,
18,
3612,
67,
1655,
12,
856,
16,
9606,
16,
22718,
18,
2226,
28746,
67,
29588,
16,
365,
18,
2704,
67,
4146,
13,
225,
468,
30715,
17,
10544,
17,
50,
3414,
279,
394,
720,
4146,
2243,
67,
1717,
4146,
273,
365,
18,
91,
2471,
18,
588,
67,
6587,
2932,
6387,
67,
1717,
4146,
7923,
498,
16,
681,
4202,
273,
22718,
18,
30737,
7385,
67,
2670,
2932,
32,
3367,
4438,
10544,
34,
82,
7923,
2243,
67,
1717,
4146,
18,
1289,
67,
30737,
7385,
2668,
7475,
329,
2187,
1737,
86,
16,
498,
16,
681,
16,
22718,
18,
2226,
28746,
67,
29588,
13,
225,
468,
30715,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
8981,
22990,
3062,
12,
2890,
4672,
1737,
86,
273,
22718,
18,
18019,
1114,
1435,
225,
468,
18025,
471,
30715,
17,
59,
1746,
326,
6176,
18,
2597,
1807,
12063,
358,
745,
1746,
468,
5122,
16,
9178,
2353,
999,
326,
1746,
3568,
3604,
498,
16,
9606,
273,
22718,
18,
30737,
7385,
67,
2670,
2668,
8448,
6134,
1737,
86,
18,
3612,
67,
1655,
12,
856,
16,
9606,
16,
22718,
18,
2226,
28746,
67,
29588,
16,
365,
18,
4412,
13,
225,
498,
16,
9606,
273,
22718,
18,
30737,
7385,
67,
2670,
2668,
32,
3367,
34,
91,
6134,
1737,
86,
18,
3612,
67,
1655,
12,
856,
16,
9606,
16,
22718,
18,
2226,
28746,
67,
29588,
16,
365,
18,
4412,
13,
225,
2
] |
|
pass
|
pass
|
def setUp(self): self.testDir = os.path.join('.','TEST-JSONDUMP') self.testMoveTo = os.path.join('.','TEST-MOVETO') self.testMoveFrom = os.path.join('.','TEST-MOVEFROM') self.initKwargs = { 0:{}, 1:{'dateName':'DATE','indexName':'INDEX','jsonSuffix':'JS','dumpSuffix':'.DS',}, 2:{'jsonSuffix':'JS','dumpSuffix':'.DS',}, 3:{'dateName':'DATE','indexName':'INDEX',}, } self.data = { '0bba61c5-dfc3-43e7-87e6-8afda3564352': ('2007-10-25-05-04','webhead02','0b/ba/61/c5','2007/10/25/05/00/webhead02_0'), '0bba929f-8721-460c-8e70-a43c95d04ed2': ('2007-10-25-05-04','webhead02','0b/ba/92/9f','2007/10/25/05/00/webhead02_0'), '0b9ff107-8672-4aac-8b75-b2bd825c3d58': ('2008-12-25-05-00','webhead01','0b/9f/f1/07','2008/12/25/05/00/webhead01_0'), '22adfb61-f75b-11dc-b6be-001321b0783d': ('2008-12-25-05-01','webhead01','22/ad/fb/61','2008/12/25/05/00/webhead01_0'), 'b965de73-ae90-a935-1357-03ae102b893f': ('2008-12-25-05-04','webhead01','b9/65/de/73','2008/12/25/05/00/webhead01_0'), '0b781b88-ecbe-4cc4-893f-6bbbfd50e548': ('2008-12-25-05-05','webhead01','0b/78/1b/88','2008/12/25/05/05/webhead01_0'), '0b8344d6-9021-4db9-bf34-a15394f96ff5': ('2008-12-25-05-06','webhead01','0b/83/44/d6','2008/12/25/05/05/webhead01_0'), '0b94199b-b90b-4683-a38a-4114d3fd5253': ('2008-12-26-05-21','webhead01','0b/94/19/9b','2008/12/26/05/20/webhead01_0'), '0b9eedc3-9a79-4ce2-83eb-1559e5234fde': ('2008-12-26-05-24','webhead01','0b/9e/ed/c3','2008/12/26/05/20/webhead01_0'), '0b9fd6da-27e4-46aa-bef3-3deb9ef0d364': ('2008-12-26-05-25','webhead02','0b/9f/d6/da','2008/12/26/05/25/webhead02_0'), '0ba32a30-2476-4724-b825-de1727afa9cb': ('2008-11-25-05-00','webhead02','0b/a3/2a/30','2008/11/25/05/00/webhead02_0'), '0bad640f-5825-4d42-b96e-21b8b1d250df': ('2008-11-25-05-04','webhead02','0b/ad/64/0f','2008/11/25/05/00/webhead02_0'), '0bae7049-bbff-49f2-b408-7e9f41602507': ('2008-11-25-05-05','webhead02','0b/ae/70/49','2008/11/25/05/05/webhead02_0'), '0baf1b4d-dad3-4d35-ae7e-b9dcb217d27f': ('2008-11-25-05-06','webhead02','0b/af/1b/4d','2008/11/25/05/05/webhead02_0'), } self.badUuid = '66666666-6666-6666-6666-666666666666' self.toomany = { '23adfb61-f75b-11dc-b6be-001321b0783d': ('2008-12-25-05-01','webhead01','23/ad/fb/61','2008/12/25/05/00'), '24adfb61-f75b-11dc-b6be-001321b0783d': ('2008-12-25-05-01','webhead01','24/ad/fb/61','2008/12/25/05/00'), '25adfb61-f75b-11dc-b6be-001321b0783d': ('2008-12-25-05-02','webhead01','25/ad/fb/61','2008/12/25/05/00'), '26adfb61-f75b-11dc-b6be-001321b0783d': ('2008-12-25-05-02','webhead01','26/ad/fb/61','2008/12/25/05/00'), '27adfb61-f75b-11dc-b6be-001321b0783d': ('2008-12-25-05-03','webhead01','27/ad/fb/61','2008/12/25/05/00'), } self.evenmore = { '28adfb61-f75b-11dc-b6be-001321b0783d': ('2008-12-25-05-01','webhead01','28/ad/fb/61','2008/12/25/05/00'), '29adfb61-f75b-11dc-b6be-001321b0783d': ('2008-12-25-05-00','webhead01','29/ad/fb/61','2008/12/25/05/00'), }
|
ed01963605a55c3058bb30a099e58e433cc2eaa4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/ed01963605a55c3058bb30a099e58e433cc2eaa4/testJsonDumpStorage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
3813,
1621,
273,
1140,
18,
803,
18,
5701,
2668,
1093,
11189,
16961,
17,
2986,
40,
23942,
6134,
365,
18,
3813,
7607,
774,
273,
1140,
18,
803,
18,
5701,
2668,
1093,
11189,
16961,
17,
5980,
58,
1584,
51,
6134,
365,
18,
3813,
7607,
1265,
273,
1140,
18,
803,
18,
5701,
2668,
1093,
11189,
16961,
17,
16537,
11249,
6134,
365,
18,
2738,
47,
1112,
273,
225,
288,
374,
23950,
16,
404,
18611,
11,
712,
461,
11,
2497,
4594,
17023,
1615,
461,
11,
2497,
9199,
17023,
1977,
5791,
11,
2497,
6479,
17023,
8481,
5791,
11,
2497,
18,
3948,
2187,
5779,
576,
18611,
11,
1977,
5791,
11,
2497,
6479,
17023,
8481,
5791,
11,
2497,
18,
3948,
2187,
5779,
890,
18611,
11,
712,
461,
11,
2497,
4594,
17023,
1615,
461,
11,
2497,
9199,
2187,
5779,
289,
365,
18,
892,
273,
288,
296,
20,
9897,
69,
9498,
71,
25,
17,
2180,
71,
23,
17,
8942,
73,
27,
17,
11035,
73,
26,
17,
28,
1727,
2414,
4763,
1105,
4763,
22,
4278,
7707,
6976,
27,
17,
2163,
17,
2947,
17,
6260,
17,
3028,
17023,
4875,
1978,
3103,
17023,
20,
70,
19,
12124,
19,
9498,
19,
71,
25,
17023,
6976,
27,
19,
2163,
19,
2947,
19,
6260,
19,
713,
19,
4875,
1978,
3103,
67,
20,
19899,
296,
20,
9897,
69,
29,
5540,
74,
17,
11035,
5340,
17,
24,
4848,
71,
17,
28,
73,
7301,
17,
69,
8942,
71,
8778,
72,
3028,
329,
22,
4278,
7707,
6976,
27,
17,
2163,
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,
24292,
12,
2890,
4672,
365,
18,
3813,
1621,
273,
1140,
18,
803,
18,
5701,
2668,
1093,
11189,
16961,
17,
2986,
40,
23942,
6134,
365,
18,
3813,
7607,
774,
273,
1140,
18,
803,
18,
5701,
2668,
1093,
11189,
16961,
17,
5980,
58,
1584,
51,
6134,
365,
18,
3813,
7607,
1265,
273,
1140,
18,
803,
18,
5701,
2668,
1093,
11189,
16961,
17,
16537,
11249,
6134,
365,
18,
2738,
47,
1112,
273,
225,
288,
374,
23950,
16,
404,
18611,
11,
712,
461,
11,
2497,
4594,
17023,
1615,
461,
11,
2497,
9199,
17023,
1977,
5791,
11,
2497,
6479,
17023,
8481,
5791,
11,
2497,
18,
3948,
2187,
5779,
576,
18611,
11,
1977,
5791,
11,
2497,
6479,
17023,
8481,
5791,
11,
2497,
18,
3948,
2
] |
'old': {'datestamp': '%Y-%m-%d %H:%M UTC', 'generator': 1, 'no_random': 1, 'python_home': 'http://www.python.org', 'source_link': 1,
|
'old': {u'datestamp': u'%Y-%m-%d %H:%M UTC', u'generator': 1, u'no_random': 1, u'python_home': u'http://www.python.org', u'source_link': 1,
|
def fixpath(path): return os.path.abspath(os.path.join(*(path.split('/'))))
|
3a0d1b210e2668b53d2827ef58028d1c74689137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/3a0d1b210e2668b53d2827ef58028d1c74689137/test_settings.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
803,
12,
803,
4672,
327,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
21556,
803,
18,
4939,
2668,
2473,
3719,
3719,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2917,
803,
12,
803,
4672,
327,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
21556,
803,
18,
4939,
2668,
2473,
3719,
3719,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'''raise: data and variable name must have compatible sizes'''
|
'''raise: data and attribute name must have compatible sizes'''
|
def raise__init__4(self): '''raise: data and variable name must have compatible sizes''' data = self.numData names = ['a','b','c','d'] ArrayStore(data, names)
|
45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1002,
972,
2738,
972,
24,
12,
2890,
4672,
9163,
11628,
30,
501,
471,
1566,
508,
1297,
1240,
7318,
8453,
26418,
501,
273,
365,
18,
2107,
751,
1257,
273,
10228,
69,
17023,
70,
17023,
71,
17023,
72,
3546,
1510,
2257,
12,
892,
16,
1257,
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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628,
30,
501,
471,
1566,
508,
1297,
1240,
7318,
8453,
26418,
501,
273,
365,
18,
2107,
751,
1257,
273,
10228,
69,
17023,
70,
17023,
71,
17023,
72,
3546,
1510,
2257,
12,
892,
16,
1257,
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
] |
RR = ischema.ref_constraints TC = ischema.constraints C = ischema.column_constraints.alias('C') R = ischema.column_constraints.alias('R')
|
RR = self.uupercase_table(ischema.ref_constraints) TC = self.uupercase_table(ischema.constraints) C = self.uupercase_table(ischema.column_constraints).alias('C') R = self.uupercase_table(ischema.column_constraints).alias('R')
|
def reflecttable(self, connection, table): import sqlalchemy.databases.information_schema as ischema # Get base columns if table.schema is not None: current_schema = table.schema else: current_schema = self.get_default_schema_name()
|
facbaa3333a5ca24f1cd4d09e5f84b63d3faefe5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/facbaa3333a5ca24f1cd4d09e5f84b63d3faefe5/mssql.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3037,
2121,
12,
2890,
16,
1459,
16,
1014,
4672,
1930,
1847,
24182,
18,
3404,
19684,
18,
13117,
67,
4821,
487,
353,
1243,
225,
468,
968,
1026,
2168,
309,
1014,
18,
4821,
353,
486,
599,
30,
783,
67,
4821,
273,
1014,
18,
4821,
469,
30,
783,
67,
4821,
273,
365,
18,
588,
67,
1886,
67,
4821,
67,
529,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3037,
2121,
12,
2890,
16,
1459,
16,
1014,
4672,
1930,
1847,
24182,
18,
3404,
19684,
18,
13117,
67,
4821,
487,
353,
1243,
225,
468,
968,
1026,
2168,
309,
1014,
18,
4821,
353,
486,
599,
30,
783,
67,
4821,
273,
1014,
18,
4821,
469,
30,
783,
67,
4821,
273,
365,
18,
588,
67,
1886,
67,
4821,
67,
529,
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
] |
local_sdp.media.append(self._init_audio(audio_rtp))
|
local_sdp.media.append(self._init_audio(audio_rtp)) else: local_sdp.media[audio_sdp_index] = self._init_audio(audio_rtp)
|
def _add_audio_continue(self, audio_rtp, msrp_chat): self._lock.acquire() try: if self.state != "PROPOSING": return local_sdp = self._make_next_sdp(True, self.on_hold_by_local) audio_sdp_index = self._audio_sdp_index if audio_sdp_index == -1: audio_sdp_index = len(local_sdp.media) local_sdp.media.append(self._init_audio(audio_rtp)) if self.on_hold_by_local: local_sdp.media[audio_sdp_index].attributes.append(SDPAttribute("sendonly", "")) if audio_rtp.use_ice: local_sdp.connection.address = self.audio_transport.transport.local_rtp_address self._inv.set_offered_local_sdp(local_sdp) self._inv.send_reinvite() except SIPCoreError, e: self.proposed_audio = False self._cancel_media() self._change_state("ESTABLISHED") self.notification_center.post_notification("SCSessionRejectedStreamProposal", self, TimestampedNotificationData(proposer="local", reason=e.args[0])) finally: self._lock.release()
|
77ddd2188747de721405015a1e3ec8f962210f7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/77ddd2188747de721405015a1e3ec8f962210f7c/session.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
11509,
67,
17143,
12,
2890,
16,
7447,
67,
3797,
84,
16,
4086,
13832,
67,
10880,
4672,
365,
6315,
739,
18,
1077,
1039,
1435,
775,
30,
309,
365,
18,
2019,
480,
315,
3373,
7057,
1360,
6877,
327,
1191,
67,
6427,
84,
273,
365,
6315,
6540,
67,
4285,
67,
6427,
84,
12,
5510,
16,
365,
18,
265,
67,
21056,
67,
1637,
67,
3729,
13,
7447,
67,
6427,
84,
67,
1615,
273,
365,
6315,
11509,
67,
6427,
84,
67,
1615,
309,
7447,
67,
6427,
84,
67,
1615,
422,
300,
21,
30,
7447,
67,
6427,
84,
67,
1615,
273,
562,
12,
3729,
67,
6427,
84,
18,
5829,
13,
1191,
67,
6427,
84,
18,
5829,
18,
6923,
12,
2890,
6315,
2738,
67,
11509,
12,
11509,
67,
3797,
84,
3719,
469,
30,
1191,
67,
6427,
84,
18,
5829,
63,
11509,
67,
6427,
84,
67,
1615,
65,
273,
365,
6315,
2738,
67,
11509,
12,
11509,
67,
3797,
84,
13,
309,
365,
18,
265,
67,
21056,
67,
1637,
67,
3729,
30,
1191,
67,
6427,
84,
18,
5829,
63,
11509,
67,
6427,
84,
67,
1615,
8009,
4350,
18,
6923,
12,
55,
8640,
1499,
2932,
4661,
3700,
3113,
1408,
3719,
309,
7447,
67,
3797,
84,
18,
1202,
67,
1812,
30,
1191,
67,
6427,
84,
18,
4071,
18,
2867,
273,
365,
18,
11509,
67,
13049,
18,
13049,
18,
3729,
67,
3797,
84,
67,
2867,
365,
6315,
5768,
18,
542,
67,
23322,
329,
67,
3729,
67,
6427,
84,
12,
3729,
67,
6427,
84,
13,
365,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
11509,
67,
17143,
12,
2890,
16,
7447,
67,
3797,
84,
16,
4086,
13832,
67,
10880,
4672,
365,
6315,
739,
18,
1077,
1039,
1435,
775,
30,
309,
365,
18,
2019,
480,
315,
3373,
7057,
1360,
6877,
327,
1191,
67,
6427,
84,
273,
365,
6315,
6540,
67,
4285,
67,
6427,
84,
12,
5510,
16,
365,
18,
265,
67,
21056,
67,
1637,
67,
3729,
13,
7447,
67,
6427,
84,
67,
1615,
273,
365,
6315,
11509,
67,
6427,
84,
67,
1615,
309,
7447,
67,
6427,
84,
67,
1615,
422,
300,
21,
30,
7447,
67,
6427,
84,
67,
1615,
273,
562,
12,
3729,
67,
6427,
84,
18,
5829,
13,
1191,
67,
6427,
84,
18,
5829,
18,
6923,
12,
2890,
6315,
2
] |
elif node.nodeName in ModelGroup.GroupMemberTags(wxs):
|
elif ModelGroup.IsGroupMemberNode(node):
|
def __GetTerm (cls, wxs, context, node, scope): ref_attr = NodeAttribute(node, 'ref') if xsd.nodeIsNamed(node, 'group'): # 3.9.2 says use 3.8.2, which is ModelGroup. The group # inside a particle is a groupRef. If there is no group # with that name, this throws an exception as expected. if ref_attr is None: raise SchemaValidationError('group particle without reference') # Named groups can only appear at global scope, so no need # to use context here. group_decl = wxs.lookupGroup(ref_attr)
|
25939b2ff98f2edd2f1dc9410de2d46bf5d6cdce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/25939b2ff98f2edd2f1dc9410de2d46bf5d6cdce/structures.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
967,
4065,
261,
6429,
16,
7075,
87,
16,
819,
16,
756,
16,
2146,
4672,
1278,
67,
1747,
273,
2029,
1499,
12,
2159,
16,
296,
1734,
6134,
309,
14802,
18,
2159,
2520,
7604,
12,
2159,
16,
296,
1655,
11,
4672,
468,
890,
18,
29,
18,
22,
20185,
999,
890,
18,
28,
18,
22,
16,
1492,
353,
3164,
1114,
18,
225,
1021,
1041,
468,
4832,
279,
20036,
353,
279,
1041,
1957,
18,
225,
971,
1915,
353,
1158,
1041,
468,
598,
716,
508,
16,
333,
1216,
392,
1520,
487,
2665,
18,
309,
1278,
67,
1747,
353,
599,
30,
1002,
4611,
12101,
2668,
1655,
20036,
2887,
2114,
6134,
468,
9796,
3252,
848,
1338,
9788,
622,
2552,
2146,
16,
1427,
1158,
1608,
468,
358,
999,
819,
2674,
18,
1041,
67,
8840,
273,
7075,
87,
18,
8664,
1114,
12,
1734,
67,
1747,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
967,
4065,
261,
6429,
16,
7075,
87,
16,
819,
16,
756,
16,
2146,
4672,
1278,
67,
1747,
273,
2029,
1499,
12,
2159,
16,
296,
1734,
6134,
309,
14802,
18,
2159,
2520,
7604,
12,
2159,
16,
296,
1655,
11,
4672,
468,
890,
18,
29,
18,
22,
20185,
999,
890,
18,
28,
18,
22,
16,
1492,
353,
3164,
1114,
18,
225,
1021,
1041,
468,
4832,
279,
20036,
353,
279,
1041,
1957,
18,
225,
971,
1915,
353,
1158,
1041,
468,
598,
716,
508,
16,
333,
1216,
392,
1520,
487,
2665,
18,
309,
1278,
67,
1747,
353,
599,
30,
1002,
4611,
12101,
2668,
1655,
20036,
2887,
2114,
6134,
468,
9796,
3252,
848,
1338,
9788,
622,
2552,
2146,
16,
1427,
1158,
1608,
2
] |
port == arg
|
port = arg
|
def getContent(self, host, port, q): start_time = time.ctime(time.time()) if q.find("/search?") == 0: query = q else: query = ("""/search?q=%s&output=xml_no_dtd&client=default_frontend&""" """proxystylesheet=default_frontend&site=default_collection""" % (q)) try: s = """
|
51b3d2cd4410bc63a49153fce8f8e779060f6201 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6393/51b3d2cd4410bc63a49153fce8f8e779060f6201/load.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5154,
12,
2890,
16,
1479,
16,
1756,
16,
1043,
4672,
787,
67,
957,
273,
813,
18,
21261,
12,
957,
18,
957,
10756,
309,
1043,
18,
4720,
2932,
19,
3072,
7225,
13,
422,
374,
30,
843,
273,
1043,
469,
30,
843,
273,
261,
8395,
19,
3072,
35,
85,
5095,
87,
10,
2844,
33,
2902,
67,
2135,
67,
31834,
10,
2625,
33,
1886,
67,
19960,
10,
8395,
3536,
20314,
1094,
3872,
2963,
33,
1886,
67,
19960,
10,
4256,
33,
1886,
67,
5548,
8395,
738,
261,
85,
3719,
775,
30,
272,
273,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5154,
12,
2890,
16,
1479,
16,
1756,
16,
1043,
4672,
787,
67,
957,
273,
813,
18,
21261,
12,
957,
18,
957,
10756,
309,
1043,
18,
4720,
2932,
19,
3072,
7225,
13,
422,
374,
30,
843,
273,
1043,
469,
30,
843,
273,
261,
8395,
19,
3072,
35,
85,
5095,
87,
10,
2844,
33,
2902,
67,
2135,
67,
31834,
10,
2625,
33,
1886,
67,
19960,
10,
8395,
3536,
20314,
1094,
3872,
2963,
33,
1886,
67,
19960,
10,
4256,
33,
1886,
67,
5548,
8395,
738,
261,
85,
3719,
775,
30,
272,
273,
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
] |
coltype = ischema_names.get(coltype, MSString)
|
extra_1 = match.group(3) extra_2 = match.group(4) coltype = ischema_names.get(col_type, MSString) kw = {} if extra_1 is not None: kw[extra_1] = True if extra_2 is not None: kw[extra_2] = True
|
def reflecttable(self, connection, table): # to use information_schema: #ischema.reflecttable(self, table, ischema_names, use_mysql=True) c = connection.execute("describe " + table.name, {}) found_table = False while True: row = c.fetchone() if row is None: break #print "row! " + repr(row) if not found_table: tabletype, foreignkeyD = self.moretableinfo(connection, table=table) table.kwargs['mysql_engine'] = tabletype found_table = True
|
d4cbae66037338ea8f727cdaa6ce47844af2be0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/d4cbae66037338ea8f727cdaa6ce47844af2be0c/mysql.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3037,
2121,
12,
2890,
16,
1459,
16,
1014,
4672,
468,
358,
999,
1779,
67,
4821,
30,
468,
291,
1243,
18,
1734,
1582,
2121,
12,
2890,
16,
1014,
16,
353,
1243,
67,
1973,
16,
999,
67,
12527,
33,
5510,
13,
225,
276,
273,
1459,
18,
8837,
2932,
22748,
315,
397,
1014,
18,
529,
16,
2618,
13,
1392,
67,
2121,
273,
1083,
1323,
1053,
30,
1027,
273,
276,
18,
5754,
476,
1435,
309,
1027,
353,
599,
30,
898,
468,
1188,
315,
492,
5,
315,
397,
8480,
12,
492,
13,
309,
486,
1392,
67,
2121,
30,
11968,
388,
16,
5523,
856,
40,
273,
365,
18,
10161,
2121,
1376,
12,
4071,
16,
1014,
33,
2121,
13,
1014,
18,
4333,
3292,
12527,
67,
8944,
3546,
273,
11968,
388,
1392,
67,
2121,
273,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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353,
1243,
67,
1973,
16,
999,
67,
12527,
33,
5510,
13,
225,
276,
273,
1459,
18,
8837,
2932,
22748,
315,
397,
1014,
18,
529,
16,
2618,
13,
1392,
67,
2121,
273,
1083,
1323,
1053,
30,
1027,
273,
276,
18,
5754,
476,
1435,
309,
1027,
353,
599,
30,
898,
468,
1188,
315,
492,
5,
315,
397,
8480,
12,
492,
13,
309,
486,
1392,
67,
2121,
30,
11968,
388,
16,
5523,
856,
40,
273,
365,
18,
10161,
2121,
1376,
12,
4071,
16,
1014,
33,
2121,
13,
1014,
18,
4333,
3292,
12527,
67,
2
] |
self._addParameter(self.workflow,'InputSandbox','JDL',fileList,description)
|
self._addParameter( self.workflow, 'InputSandbox', 'JDL', fileList, description )
|
def setInputSandbox(self,files): """Helper function.
|
50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21687,
17881,
12,
2890,
16,
2354,
4672,
3536,
2276,
445,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21687,
17881,
12,
2890,
16,
2354,
4672,
3536,
2276,
445,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
if callback: master.connect(btn, SIGNAL("clicked()"), callback)
|
if value: cfront, cback, cfunc = connectControl(btn, master, value, None, "toggled(bool)", CallFront_toggleButton(btn), cfunc = callback and FunctionCallback(master, callback, widget=btn)) else: if callback: master.connect(btn, SIGNAL("clicked()"), callback)
|
def button(widget, master, label, callback = None, disabled=0, tooltip=None, debuggingEnabled = 1, width = None, toggleButton = False, value = ""): btn = QPushButton(label, widget) if width: btn.setFixedWidth(width) btn.setDisabled(disabled) if tooltip: QToolTip.add(btn, tooltip) if toggleButton: btn.setToggleButton(True) if callback: master.connect(btn, SIGNAL("clicked()"), callback) if debuggingEnabled: master._guiElements = getattr(master, "_guiElements", []) + [("button", btn, callback)] return btn
|
0eb6f11acef0b90e11c4bafb9e83aa44e09ea65b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0eb6f11acef0b90e11c4bafb9e83aa44e09ea65b/OWGUI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
12,
6587,
16,
4171,
16,
1433,
16,
1348,
273,
599,
16,
5673,
33,
20,
16,
11915,
33,
7036,
16,
10450,
1526,
273,
404,
16,
1835,
273,
599,
16,
10486,
3616,
273,
1083,
16,
460,
273,
1408,
4672,
10638,
273,
2238,
7621,
3616,
12,
1925,
16,
3604,
13,
309,
1835,
30,
10638,
18,
542,
7505,
2384,
12,
2819,
13,
10638,
18,
542,
8853,
12,
9278,
13,
309,
11915,
30,
2238,
29250,
18,
1289,
12,
11898,
16,
11915,
13,
225,
309,
10486,
3616,
30,
10638,
18,
542,
17986,
3616,
12,
5510,
13,
282,
309,
460,
30,
276,
10211,
16,
276,
823,
16,
276,
644,
273,
3077,
3367,
12,
11898,
16,
4171,
16,
460,
16,
599,
16,
315,
88,
23972,
1259,
12,
6430,
2225,
16,
3049,
9580,
67,
14401,
3616,
12,
11898,
3631,
276,
644,
273,
1348,
471,
4284,
2428,
12,
7525,
16,
1348,
16,
3604,
33,
11898,
3719,
469,
30,
309,
1348,
30,
4171,
18,
3612,
12,
11898,
16,
12057,
1013,
2932,
7475,
329,
10031,
3631,
1348,
13,
225,
309,
10450,
1526,
30,
4171,
6315,
20292,
3471,
273,
3869,
12,
7525,
16,
4192,
20292,
3471,
3113,
5378,
13,
397,
306,
2932,
5391,
3113,
10638,
16,
1348,
25887,
327,
10638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
12,
6587,
16,
4171,
16,
1433,
16,
1348,
273,
599,
16,
5673,
33,
20,
16,
11915,
33,
7036,
16,
10450,
1526,
273,
404,
16,
1835,
273,
599,
16,
10486,
3616,
273,
1083,
16,
460,
273,
1408,
4672,
10638,
273,
2238,
7621,
3616,
12,
1925,
16,
3604,
13,
309,
1835,
30,
10638,
18,
542,
7505,
2384,
12,
2819,
13,
10638,
18,
542,
8853,
12,
9278,
13,
309,
11915,
30,
2238,
29250,
18,
1289,
12,
11898,
16,
11915,
13,
225,
309,
10486,
3616,
30,
10638,
18,
542,
17986,
3616,
12,
5510,
13,
282,
309,
460,
30,
276,
10211,
16,
276,
823,
16,
276,
644,
273,
3077,
3367,
12,
11898,
16,
4171,
16,
460,
16,
599,
16,
315,
88,
23972,
2
] |
result.append(blend(color2, 1 - frac, frac))
|
result.append(blend(color2.RGB(), 1 - frac, frac))
|
def Sample(self, num): colors = self.colors max = num - 1.0 pos1, color1 = colors[0] pos2, color2 = colors[1] diff = float(pos2 - pos1) cur = 1 result = [] blend = color1.Blend for i in range(num): frac = i / max while frac > pos2: pos1 = pos2; color1 = color2 cur = cur + 1 pos2, color2 = colors[cur] diff = float(pos2 - pos1) blend = color1.Blend frac = (frac - pos1) / diff result.append(blend(color2, 1 - frac, frac)) return result
|
a64a665d8990fc6eee8a6940f8e3023d7ea545f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3127/a64a665d8990fc6eee8a6940f8e3023d7ea545f7/gradient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11474,
12,
2890,
16,
818,
4672,
5740,
273,
365,
18,
9724,
943,
273,
818,
300,
404,
18,
20,
949,
21,
16,
2036,
21,
273,
5740,
63,
20,
65,
949,
22,
16,
2036,
22,
273,
5740,
63,
21,
65,
3122,
273,
1431,
12,
917,
22,
300,
949,
21,
13,
662,
273,
404,
563,
273,
5378,
24052,
273,
2036,
21,
18,
4802,
409,
364,
277,
316,
1048,
12,
2107,
4672,
12445,
273,
277,
342,
943,
1323,
12445,
405,
949,
22,
30,
949,
21,
273,
949,
22,
31,
2036,
21,
273,
2036,
22,
662,
273,
662,
397,
404,
949,
22,
16,
2036,
22,
273,
5740,
63,
1397,
65,
3122,
273,
1431,
12,
917,
22,
300,
949,
21,
13,
24052,
273,
2036,
21,
18,
4802,
409,
12445,
273,
261,
22187,
300,
949,
21,
13,
342,
3122,
563,
18,
6923,
12,
3083,
409,
12,
3266,
22,
18,
11343,
9334,
404,
300,
12445,
16,
12445,
3719,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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5740,
63,
20,
65,
949,
22,
16,
2036,
22,
273,
5740,
63,
21,
65,
3122,
273,
1431,
12,
917,
22,
300,
949,
21,
13,
662,
273,
404,
563,
273,
5378,
24052,
273,
2036,
21,
18,
4802,
409,
364,
277,
316,
1048,
12,
2107,
4672,
12445,
273,
277,
342,
943,
1323,
12445,
405,
949,
22,
30,
949,
21,
273,
949,
22,
31,
2036,
21,
273,
2036,
22,
662,
273,
662,
397,
404,
949,
22,
16,
2036,
22,
273,
5740,
63,
1397,
65,
3122,
273,
1431,
12,
917,
22,
300,
949,
21,
13,
24052,
273,
2036,
2
] |
bzurl = config.get('bugzilla.url', 'https://bugzilla.redhat.com/xmlrpc.cgi') self.bzServer = bugzilla.Bugzilla(url=bzurl)
|
self.bzUrl = config.get('bugzilla.url', 'https://bugzilla.redhat.com/') self.bzQueryUrl = config.get('bugzilla.queryurl', self.bzUrl) self.bzServer = bugzilla.Bugzilla(url=self.bzQueryUrl + '/xmlrpc.cgi')
|
def __init__(self, appTitle=None): '''Create a Packages Controller.
|
ad6c182ae46a0123425ae9ead4ddb68cf71b59e7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/ad6c182ae46a0123425ae9ead4ddb68cf71b59e7/bugs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
595,
4247,
33,
7036,
4672,
9163,
1684,
279,
7930,
1023,
6629,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
595,
4247,
33,
7036,
4672,
9163,
1684,
279,
7930,
1023,
6629,
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
] |
return BytesOption.parse(self, optval)
|
return BytesOption.parse(self, s)
|
def parse(self, s): """Get a throttle option.
|
b4b2cbf877c4ba3be6a8507a50e9a97a03c59928 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/b4b2cbf877c4ba3be6a8507a50e9a97a03c59928/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
272,
4672,
3536,
967,
279,
18304,
1456,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
272,
4672,
3536,
967,
279,
18304,
1456,
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,
-100,
-100,
-100,
-100,
-100
] |
conn = urllib2.Request(url=connection, data=request)
|
print request.encode("utf-8") conn = urllib2.Request(url=connection, data=request.encode("utf-8"))
|
def _process_request(self, connection, request): """ Post the data and return the XML response """ conn = urllib2.Request(url=connection, data=request) f = urllib2.urlopen(conn) all_results = f.read() return(fromstring(all_results))
|
c2f830c0e9bb97cd14eb967332ada876240f1f78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/c2f830c0e9bb97cd14eb967332ada876240f1f78/shipper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
2293,
12,
2890,
16,
1459,
16,
590,
4672,
3536,
5616,
326,
501,
471,
327,
326,
3167,
766,
3536,
1172,
590,
18,
3015,
2932,
3158,
17,
28,
7923,
1487,
273,
11527,
22,
18,
691,
12,
718,
33,
4071,
16,
501,
33,
2293,
18,
3015,
2932,
3158,
17,
28,
6,
3719,
284,
273,
11527,
22,
18,
295,
18589,
12,
4646,
13,
777,
67,
4717,
273,
284,
18,
896,
1435,
327,
12,
2080,
1080,
12,
454,
67,
4717,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
2293,
12,
2890,
16,
1459,
16,
590,
4672,
3536,
5616,
326,
501,
471,
327,
326,
3167,
766,
3536,
1172,
590,
18,
3015,
2932,
3158,
17,
28,
7923,
1487,
273,
11527,
22,
18,
691,
12,
718,
33,
4071,
16,
501,
33,
2293,
18,
3015,
2932,
3158,
17,
28,
6,
3719,
284,
273,
11527,
22,
18,
295,
18589,
12,
4646,
13,
777,
67,
4717,
273,
284,
18,
896,
1435,
327,
12,
2080,
1080,
12,
454,
67,
4717,
3719,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.