rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
tuple (nickname, date_creation, body, id) if ranking disabled or tuple (nickname, date_creation, body, nb_votes_yes, nb_votes_total, star_score, title, id)
|
tuple (nickname, uid, date_creation, body, id) if ranking disabled or tuple (nickname, uid, date_creation, body, nb_votes_yes, nb_votes_total, star_score, title, id)
|
def query_retrieve_comments_or_remarks (recID, display_order='od', display_since='0000-00-00 00:00:00', ranking=0): """ Private function Retrieve tuple of comments or remarks from the database @param recID: record id @param display_order: hh = highest helpful score lh = lowest helpful score hs = highest star score ls = lowest star score od = oldest date nd = newest date @param display_since: datetime, e.g. 0000-00-00 00:00:00 @param ranking: boolean, enabled if reviews, disabled for comments @param full_reviews_p: boolean, filter out empty reviews (with score only) if False @return tuple of comment where comment is tuple (nickname, date_creation, body, id) if ranking disabled or tuple (nickname, date_creation, body, nb_votes_yes, nb_votes_total, star_score, title, id) Note: for the moment, if no nickname, will return email address up to '@' """ display_since = calculate_start_date(display_since) order_dict = { 'hh' : "cmt.nb_votes_yes/(cmt.nb_votes_total+1) DESC, cmt.date_creation DESC ", 'lh' : "cmt.nb_votes_yes/(cmt.nb_votes_total+1) ASC, cmt.date_creation ASC ", 'ls' : "cmt.star_score ASC, cmt.date_creation DESC ", 'hs' : "cmt.star_score DESC, cmt.date_creation DESC ", 'od' : "cmt.date_creation ASC ", 'nd' : "cmt.date_creation DESC " } # Ranking only done for comments and when allowed if ranking and recID > 0: try: display_order = order_dict[display_order] except: display_order = order_dict['od'] else: # in case of recID > 0 => external record => no ranking! ranking = 0 try: if display_order[-1] == 'd': display_order = order_dict[display_order] else: display_order = order_dict['od'] except: display_order = order_dict['od'] query = """SELECT user.nickname, cmt.id_user, DATE_FORMAT(cmt.date_creation, '%%Y-%%m-%%d %%H:%%i:%%s'), cmt.body, %(ranking)s cmt.id FROM %(table)s cmt LEFT JOIN user ON user.id=cmt.id_user WHERE %(id_bibrec)s=%(recID)i %(ranking_only)s %(display_since)s ORDER BY %(display_order)s""" params = { 'ranking' : ranking and ' cmt.nb_votes_yes, cmt.nb_votes_total, cmt.star_score, cmt.title, ' or '', 'ranking_only' : ranking and ' AND cmt.star_score>0 ' or ' AND cmt.star_score=0 ', 'id_bibrec' : recID > 0 and 'cmt.id_bibrec' or 'cmt.id_bibrec_or_bskEXTREC', 'table' : recID > 0 and 'cmtRECORDCOMMENT' or 'bskRECORDCOMMENT', 'recID' : recID, 'display_since' : display_since=='0000-00-00 00:00:00' and ' ' or 'AND cmt.date_creation>=\'%s\' ' % display_since, 'display_order' : display_order } res = run_sql(query % params) if res: return res return ()
|
3370e84783e1e46fe4601fa08bffbcf9fb555d0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3302/3370e84783e1e46fe4601fa08bffbcf9fb555d0f/webcomment.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
17466,
67,
9231,
67,
280,
67,
2764,
27943,
261,
3927,
734,
16,
2562,
67,
1019,
2218,
369,
2187,
2562,
67,
9256,
2218,
2787,
17,
713,
17,
713,
9631,
30,
713,
30,
713,
2187,
23087,
33,
20,
4672,
3536,
8726,
445,
10708,
3193,
434,
5678,
578,
849,
27943,
628,
326,
2063,
632,
891,
1950,
734,
30,
1409,
612,
632,
891,
2562,
67,
1019,
30,
282,
18629,
273,
9742,
28063,
4462,
29143,
273,
11981,
28063,
4462,
12670,
273,
9742,
10443,
4462,
7180,
273,
11981,
10443,
4462,
28541,
273,
17067,
1509,
5346,
273,
19824,
1509,
632,
891,
2562,
67,
9256,
30,
3314,
16,
425,
18,
75,
18,
374,
3784,
17,
713,
17,
713,
9631,
30,
713,
30,
713,
632,
891,
23087,
30,
1250,
16,
3696,
309,
283,
7061,
16,
5673,
364,
5678,
632,
891,
1983,
67,
266,
7061,
67,
84,
30,
1250,
16,
1034,
596,
1008,
283,
7061,
261,
1918,
4462,
1338,
13,
309,
1083,
632,
2463,
3193,
434,
2879,
1625,
2879,
353,
3193,
261,
17091,
529,
16,
4555,
16,
1509,
67,
17169,
16,
1417,
16,
612,
13,
309,
23087,
5673,
578,
3193,
261,
17091,
529,
16,
4555,
16,
1509,
67,
17169,
16,
1417,
16,
4264,
67,
27800,
67,
9707,
16,
4264,
67,
27800,
67,
4963,
16,
10443,
67,
6355,
16,
2077,
16,
612,
13,
3609,
30,
364,
326,
10382,
16,
309,
1158,
19570,
16,
903,
327,
2699,
1758,
731,
358,
9175,
3536,
2562,
67,
9256,
273,
4604,
67,
1937,
67,
712,
12,
5417,
67,
9256,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
17466,
67,
9231,
67,
280,
67,
2764,
27943,
261,
3927,
734,
16,
2562,
67,
1019,
2218,
369,
2187,
2562,
67,
9256,
2218,
2787,
17,
713,
17,
713,
9631,
30,
713,
30,
713,
2187,
23087,
33,
20,
4672,
3536,
8726,
445,
10708,
3193,
434,
5678,
578,
849,
27943,
628,
326,
2063,
632,
891,
1950,
734,
30,
1409,
612,
632,
891,
2562,
67,
1019,
30,
282,
18629,
273,
9742,
28063,
4462,
29143,
273,
11981,
28063,
4462,
12670,
273,
9742,
10443,
4462,
7180,
273,
11981,
10443,
4462,
28541,
273,
17067,
1509,
5346,
273,
19824,
1509,
632,
891,
2562,
67,
9256,
30,
3314,
16,
425,
18,
75,
18,
374,
3784,
17,
713,
17,
713,
9631,
30,
713,
30,
713,
632,
2
] |
self.observers_pool[entry] = obs
|
self.observer = obs
|
def on_buffer_changed (self, parent, buff): entry = self.parent.entries.selected is_sensitive = buff.get_language ().get_name () == "Python" self.script_execute.set_sensitive (is_sensitive) self.script_break.set_sensitive (is_sensitive) self.revert.set_sensitive (not entry.is_new)
|
2c59e354d475dccb3870b8c95c73a2cb87a83d75 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/2c59e354d475dccb3870b8c95c73a2cb87a83d75/edit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4106,
67,
6703,
261,
2890,
16,
982,
16,
6139,
4672,
1241,
273,
365,
18,
2938,
18,
8219,
18,
8109,
225,
353,
67,
23481,
273,
6139,
18,
588,
67,
4923,
1832,
18,
588,
67,
529,
1832,
422,
315,
15774,
6,
365,
18,
4263,
67,
8837,
18,
542,
67,
23481,
261,
291,
67,
23481,
13,
365,
18,
4263,
67,
8820,
18,
542,
67,
23481,
261,
291,
67,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
603,
67,
4106,
67,
6703,
261,
2890,
16,
982,
16,
6139,
4672,
1241,
273,
365,
18,
2938,
18,
8219,
18,
8109,
225,
353,
67,
23481,
273,
6139,
18,
588,
67,
4923,
1832,
18,
588,
67,
529,
1832,
422,
315,
15774,
6,
365,
18,
4263,
67,
8837,
18,
542,
67,
23481,
261,
291,
67,
23481,
13,
365,
18,
4263,
67,
8820,
18,
542,
67,
23481,
261,
291,
67,
23481,
13,
225,
365,
18,
266,
1097,
18,
542,
67,
23481,
261,
902,
1241,
18,
291,
67,
2704,
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
] |
child.setAttribute('string', gname)
|
child.setAttribute('string', gname.decode('utf-8'))
|
def __view_look_dom(self, cr, user, node, context=None): if not context: context={} result = False fields = {} childs = True if node.nodeType==node.ELEMENT_NODE and node.localName=='field': if node.hasAttribute('name'): attrs = {} try: if node.getAttribute('name') in self._columns: relation = self._columns[node.getAttribute('name')]._obj else: relation = self._inherit_fields[node.getAttribute('name')][2]._obj except: relation = False if relation: childs = False views = {} for f in node.childNodes: if f.nodeType==f.ELEMENT_NODE and f.localName in ('form','tree'): node.removeChild(f) xarch,xfields = self.pool.get(relation).__view_look_dom_arch(cr, user, f, context) views[str(f.localName)] = { 'arch': xarch, 'fields': xfields } attrs = {'views': views} fields[node.getAttribute('name')] = attrs
|
322fb8c986e67e591d44c6ecbbc1d51544677059 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/322fb8c986e67e591d44c6ecbbc1d51544677059/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1945,
67,
7330,
67,
9859,
12,
2890,
16,
4422,
16,
729,
16,
756,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
563,
273,
1083,
1466,
273,
2618,
21619,
273,
1053,
309,
756,
18,
2159,
559,
631,
2159,
18,
10976,
67,
8744,
471,
756,
18,
3729,
461,
18920,
1518,
4278,
309,
756,
18,
5332,
1499,
2668,
529,
11,
4672,
3422,
273,
2618,
775,
30,
309,
756,
18,
588,
1499,
2668,
529,
6134,
316,
365,
6315,
5112,
30,
2533,
273,
365,
6315,
5112,
63,
2159,
18,
588,
1499,
2668,
529,
6134,
65,
6315,
2603,
469,
30,
2533,
273,
365,
6315,
6018,
67,
2821,
63,
2159,
18,
588,
1499,
2668,
529,
6134,
6362,
22,
65,
6315,
2603,
1335,
30,
2533,
273,
1083,
309,
2533,
30,
21619,
273,
1083,
7361,
273,
2618,
364,
284,
316,
756,
18,
3624,
3205,
30,
309,
284,
18,
2159,
559,
631,
74,
18,
10976,
67,
8744,
471,
284,
18,
3729,
461,
316,
7707,
687,
17023,
3413,
11,
4672,
756,
18,
4479,
1763,
12,
74,
13,
619,
991,
16,
92,
2821,
273,
365,
18,
6011,
18,
588,
12,
5488,
2934,
972,
1945,
67,
7330,
67,
9859,
67,
991,
12,
3353,
16,
729,
16,
284,
16,
819,
13,
7361,
63,
701,
12,
74,
18,
3729,
461,
25887,
273,
288,
296,
991,
4278,
619,
991,
16,
296,
2821,
4278,
619,
2821,
289,
3422,
273,
13666,
7061,
4278,
7361,
97,
1466,
63,
2159,
18,
588,
1499,
2668,
529,
6134,
65,
273,
3422,
2,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1945,
67,
7330,
67,
9859,
12,
2890,
16,
4422,
16,
729,
16,
756,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
563,
273,
1083,
1466,
273,
2618,
21619,
273,
1053,
309,
756,
18,
2159,
559,
631,
2159,
18,
10976,
67,
8744,
471,
756,
18,
3729,
461,
18920,
1518,
4278,
309,
756,
18,
5332,
1499,
2668,
529,
11,
4672,
3422,
273,
2618,
775,
30,
309,
756,
18,
588,
1499,
2668,
529,
6134,
316,
365,
6315,
5112,
30,
2533,
273,
365,
6315,
5112,
63,
2159,
18,
588,
1499,
2668,
529,
6134,
65,
6315,
2603,
469,
30,
2533,
273,
365,
6315,
6018,
67,
2821,
63,
2159,
18,
588,
1499,
2668,
529,
6134,
6362,
22,
65,
6315,
2603,
2
] |
id = NewId()
|
id = wxNewId()
|
def __init__(self, parent, model): id = NewId() wxTreeCtrl.__init__(self, parent, id)#, style = wxTR_HAS_BUTTONS | wxSUNKEN_BORDER) EditorView.__init__(self, model, (('Goto line', self.OnGoto, self.gotoLineBmp, ''),), 0)
|
27be5de646bc06542b3054dc23f98aab9c2a51c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/27be5de646bc06542b3054dc23f98aab9c2a51c2/XMLView.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
938,
4672,
612,
273,
7075,
1908,
548,
1435,
7075,
2471,
12418,
16186,
2738,
972,
12,
2890,
16,
982,
16,
612,
13,
7,
16,
2154,
273,
7075,
4349,
67,
27765,
67,
20068,
55,
571,
7075,
55,
16141,
1157,
67,
38,
7954,
13,
18451,
1767,
16186,
2738,
972,
12,
2890,
16,
938,
16,
261,
2668,
43,
6302,
980,
2187,
365,
18,
1398,
43,
6302,
16,
365,
18,
75,
6302,
1670,
38,
1291,
16,
875,
3631,
3631,
374,
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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,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
938,
4672,
612,
273,
7075,
1908,
548,
1435,
7075,
2471,
12418,
16186,
2738,
972,
12,
2890,
16,
982,
16,
612,
13,
7,
16,
2154,
273,
7075,
4349,
67,
27765,
67,
20068,
55,
571,
7075,
55,
16141,
1157,
67,
38,
7954,
13,
18451,
1767,
16186,
2738,
972,
12,
2890,
16,
938,
16,
261,
2668,
43,
6302,
980,
2187,
365,
18,
1398,
43,
6302,
16,
365,
18,
75,
6302,
1670,
38,
1291,
16,
875,
3631,
3631,
374,
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
] |
jobRep == None
|
jobRep = None
|
def periodicUpdate(self, state): """ _periodicUpdate_
|
633e209b0e62cd97ddfafd1c6732dbf092d31892 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/633e209b0e62cd97ddfafd1c6732dbf092d31892/JobTimeout.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17478,
1891,
12,
2890,
16,
919,
4672,
3536,
389,
6908,
335,
1891,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17478,
1891,
12,
2890,
16,
919,
4672,
3536,
389,
6908,
335,
1891,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for a in fti[0]['actions']:
|
for a in fti['actions']:
|
def modify_fti(fti): fti[0]['name']='I18NLayer' fti[0]['filter_content_types']=1 # NOTE: we better hide the useless actions rather than delete them # to keep compatibilty with templates requesting them for a in fti[0]['actions']: if a['id'] in ('references', 'metadata'): a['visible'] = 0 return fti
|
f4e216508a631499af383387b4b88dcf700720d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/f4e216508a631499af383387b4b88dcf700720d7/I18NLayer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5612,
67,
1222,
77,
12,
1222,
77,
4672,
284,
9096,
63,
20,
23962,
529,
3546,
2218,
45,
2643,
50,
4576,
11,
284,
9096,
63,
20,
23962,
2188,
67,
1745,
67,
2352,
3546,
33,
21,
468,
5219,
30,
732,
7844,
6853,
326,
26967,
4209,
9178,
2353,
1430,
2182,
468,
4202,
358,
3455,
4796,
495,
330,
4098,
598,
5539,
18709,
2182,
364,
279,
316,
284,
9096,
3292,
4905,
3546,
30,
309,
279,
3292,
350,
3546,
316,
7707,
14353,
2187,
296,
4165,
11,
4672,
279,
3292,
8613,
3546,
273,
374,
327,
284,
9096,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5612,
67,
1222,
77,
12,
1222,
77,
4672,
284,
9096,
63,
20,
23962,
529,
3546,
2218,
45,
2643,
50,
4576,
11,
284,
9096,
63,
20,
23962,
2188,
67,
1745,
67,
2352,
3546,
33,
21,
468,
5219,
30,
732,
7844,
6853,
326,
26967,
4209,
9178,
2353,
1430,
2182,
468,
4202,
358,
3455,
4796,
495,
330,
4098,
598,
5539,
18709,
2182,
364,
279,
316,
284,
9096,
3292,
4905,
3546,
30,
309,
279,
3292,
350,
3546,
316,
7707,
14353,
2187,
296,
4165,
11,
4672,
279,
3292,
8613,
3546,
273,
374,
327,
284,
9096,
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
] |
res = self._query(req)
|
res = self._query( req )
|
def getProblematic(self): """ Get the next file to resolve """ req = "SELECT FileID,LFN,PFN,Size,SE,GUID,Prognosis FROM Problematics WHERE Status='New' ORDER BY LastUpdate ASC LIMIT 1;" res = self._query(req) if not res['OK']: return res if not res['Value'][0]: return S_OK() fileid,lfn,pfn,size,se,guid,prognosis = res['Value'][0] problematicDict = {'FileID':fileid,'LFN':lfn,'PFN':pfn,'Size':size,'SE':se,'GUID':guid,'Prognosis':prognosis} return S_OK(problematicDict)
|
c0ad35468416f798369c9462d5f8a11a19686a43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c0ad35468416f798369c9462d5f8a11a19686a43/DataIntegrityDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
70,
3269,
2126,
12,
2890,
4672,
3536,
968,
326,
1024,
585,
358,
2245,
3536,
1111,
273,
315,
4803,
1387,
734,
16,
9105,
50,
16,
52,
19793,
16,
1225,
16,
1090,
16,
17525,
16,
626,
1600,
538,
291,
4571,
21685,
270,
2102,
4852,
2685,
2218,
1908,
11,
10205,
6953,
6825,
1891,
8310,
13319,
404,
4868,
400,
273,
365,
6315,
2271,
12,
1111,
262,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
309,
486,
400,
3292,
620,
3546,
63,
20,
14542,
327,
348,
67,
3141,
1435,
585,
350,
16,
80,
4293,
16,
84,
4293,
16,
1467,
16,
307,
16,
14066,
16,
685,
1600,
538,
291,
273,
400,
3292,
620,
3546,
63,
20,
65,
6199,
2126,
5014,
273,
13666,
812,
734,
4278,
768,
350,
11189,
9105,
50,
4278,
80,
4293,
11189,
52,
19793,
4278,
84,
4293,
11189,
1225,
4278,
1467,
11189,
1090,
4278,
307,
11189,
17525,
4278,
14066,
11189,
626,
1600,
538,
291,
4278,
685,
1600,
538,
291,
97,
327,
348,
67,
3141,
12,
18968,
2126,
5014,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
70,
3269,
2126,
12,
2890,
4672,
3536,
968,
326,
1024,
585,
358,
2245,
3536,
1111,
273,
315,
4803,
1387,
734,
16,
9105,
50,
16,
52,
19793,
16,
1225,
16,
1090,
16,
17525,
16,
626,
1600,
538,
291,
4571,
21685,
270,
2102,
4852,
2685,
2218,
1908,
11,
10205,
6953,
6825,
1891,
8310,
13319,
404,
4868,
400,
273,
365,
6315,
2271,
12,
1111,
262,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
309,
486,
400,
3292,
620,
3546,
63,
20,
14542,
327,
348,
67,
3141,
1435,
585,
350,
16,
80,
4293,
16,
84,
4293,
16,
1467,
16,
307,
16,
14066,
16,
685,
1600,
538,
291,
273,
400,
3292,
620,
3546,
63,
20,
65,
6199,
2126,
5014,
273,
13666,
2
] |
self.subjectHeader(subject,subjectSuffix),
|
self.toencoded(self.subjectHeader(subject,subjectSuffix)),
|
def sendMailTo(self, recipients, text, REQUEST, subjectSuffix='', subject='', message_id=None, in_reply_to=None, to=None, exclude_address=None, ): """ Send a mail-out containing text to a list of email addresses.
|
bc610418ea59041ca844bb810fddfd1c7ad8fcb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5225/bc610418ea59041ca844bb810fddfd1c7ad8fcb0/Mail.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
6759,
774,
12,
2890,
16,
12045,
16,
977,
16,
12492,
16,
3221,
5791,
2218,
2187,
3221,
2218,
2187,
883,
67,
350,
33,
7036,
16,
316,
67,
10629,
67,
869,
33,
7036,
16,
358,
33,
7036,
16,
4433,
67,
2867,
33,
7036,
16,
262,
30,
3536,
2479,
279,
4791,
17,
659,
4191,
977,
358,
279,
666,
434,
2699,
6138,
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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,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
6759,
774,
12,
2890,
16,
12045,
16,
977,
16,
12492,
16,
3221,
5791,
2218,
2187,
3221,
2218,
2187,
883,
67,
350,
33,
7036,
16,
316,
67,
10629,
67,
869,
33,
7036,
16,
358,
33,
7036,
16,
4433,
67,
2867,
33,
7036,
16,
262,
30,
3536,
2479,
279,
4791,
17,
659,
4191,
977,
358,
279,
666,
434,
2699,
6138,
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
] |
self.groupInfo.compileGroups()
|
def doGroupSetup(self): """create the groups object that will store the comps metadata finds the repos with groups, gets their comps data and merge it into the group object""" self.log(3, 'Getting group metadata') reposWithGroups = [] for repo in self.repos.listGroupsEnabled(): if repo.repoXML is None: raise Errors.RepoError, "Repository '%s' not yet setup" % repo try: groupremote = repo.repoXML.groupLocation() except mdErrors.RepoMDError, e: pass else: reposWithGroups.append(repo) # now we know which repos actually have groups files.
|
c3671b686c4518492798d8620564c592073bd041 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/c3671b686c4518492798d8620564c592073bd041/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1114,
7365,
12,
2890,
4672,
3536,
2640,
326,
3252,
733,
716,
903,
1707,
326,
13979,
1982,
13094,
326,
13686,
598,
3252,
16,
5571,
3675,
13979,
501,
471,
2691,
518,
1368,
326,
1041,
733,
8395,
225,
365,
18,
1330,
12,
23,
16,
296,
19213,
1041,
1982,
6134,
13686,
1190,
3621,
273,
5378,
364,
3538,
316,
365,
18,
15564,
18,
1098,
3621,
1526,
13332,
309,
3538,
18,
7422,
4201,
353,
599,
30,
1002,
9372,
18,
8791,
668,
16,
315,
3305,
1995,
87,
11,
486,
4671,
3875,
6,
738,
3538,
775,
30,
1041,
7222,
273,
3538,
18,
7422,
4201,
18,
1655,
2735,
1435,
1335,
3481,
4229,
18,
8791,
6188,
668,
16,
425,
30,
1342,
469,
30,
13686,
1190,
3621,
18,
6923,
12,
7422,
13,
468,
2037,
732,
5055,
1492,
13686,
6013,
1240,
3252,
1390,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1114,
7365,
12,
2890,
4672,
3536,
2640,
326,
3252,
733,
716,
903,
1707,
326,
13979,
1982,
13094,
326,
13686,
598,
3252,
16,
5571,
3675,
13979,
501,
471,
2691,
518,
1368,
326,
1041,
733,
8395,
225,
365,
18,
1330,
12,
23,
16,
296,
19213,
1041,
1982,
6134,
13686,
1190,
3621,
273,
5378,
364,
3538,
316,
365,
18,
15564,
18,
1098,
3621,
1526,
13332,
309,
3538,
18,
7422,
4201,
353,
599,
30,
1002,
9372,
18,
8791,
668,
16,
315,
3305,
1995,
87,
11,
486,
4671,
3875,
6,
738,
3538,
775,
30,
1041,
7222,
273,
3538,
18,
7422,
4201,
18,
1655,
2735,
1435,
1335,
3481,
4229,
18,
8791,
6188,
668,
16,
425,
30,
1342,
469,
30,
13686,
1190,
3621,
18,
2
] |
|
dir : string
|
dir: string
|
def __init__(self, dir='.', template=None, speciespath=None, bin='excitingser', kpts=(1, 1, 1), **kwargs): """Exciting calculator object constructor Parameters ---------- dir : string directory in which to excecute exciting template :string Path to XSLT templat if it schould be used default: none bin :string Path or executable name of exciting default: ``excitingser`` kpts:integer list length 3 Number of kpoints **kwargs : dictionary like list of key value pairs to be converted into groundstate attributes """ self.dir = dir self.energy = None self.template = template if speciespath is None: self.speciespath = os.environ.get('EXCITING_SPECIES_PATH', './') self.converged = False self.excitingbinary = bin self.groundstate_attributes = kwargs if not 'ngridk' in kwargs.keys(): self.groundstate_attributes['ngridk'] = ' '.join(map(str, kpts))
|
9509213f6a9909cb0685e67f4bd0f8c6fcd33b63 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/9509213f6a9909cb0685e67f4bd0f8c6fcd33b63/exciting.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1577,
2218,
1093,
16,
1542,
33,
7036,
16,
12891,
803,
33,
7036,
16,
4158,
2218,
10075,
305,
310,
550,
2187,
417,
1092,
28657,
21,
16,
404,
16,
404,
3631,
2826,
4333,
4672,
3536,
29924,
305,
310,
15497,
733,
3885,
225,
7012,
12181,
1577,
30,
533,
1867,
316,
1492,
358,
431,
27832,
624,
3533,
305,
310,
1542,
294,
1080,
2666,
358,
20751,
13988,
270,
309,
518,
18551,
1006,
506,
1399,
805,
30,
6555,
4158,
294,
1080,
2666,
578,
9070,
508,
434,
3533,
305,
310,
805,
30,
12176,
10075,
305,
310,
550,
10335,
417,
1092,
30,
7745,
666,
769,
890,
3588,
434,
417,
4139,
2826,
4333,
294,
3880,
3007,
666,
434,
498,
460,
5574,
358,
506,
5970,
1368,
19209,
2019,
1677,
225,
3536,
365,
18,
1214,
273,
1577,
365,
18,
15358,
273,
599,
365,
18,
3202,
273,
1542,
309,
12891,
803,
353,
599,
30,
365,
18,
22657,
803,
273,
1140,
18,
28684,
18,
588,
2668,
2294,
39,
1285,
1360,
67,
23810,
7266,
3991,
67,
4211,
2187,
26544,
13,
365,
18,
591,
502,
2423,
273,
1083,
365,
18,
10075,
305,
310,
8578,
273,
4158,
365,
18,
2915,
2019,
67,
4350,
273,
1205,
309,
486,
296,
3368,
1691,
79,
11,
316,
1205,
18,
2452,
13332,
365,
18,
2915,
2019,
67,
4350,
3292,
3368,
1691,
79,
3546,
273,
296,
2418,
5701,
12,
1458,
12,
701,
16,
417,
1092,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1577,
2218,
1093,
16,
1542,
33,
7036,
16,
12891,
803,
33,
7036,
16,
4158,
2218,
10075,
305,
310,
550,
2187,
417,
1092,
28657,
21,
16,
404,
16,
404,
3631,
2826,
4333,
4672,
3536,
29924,
305,
310,
15497,
733,
3885,
225,
7012,
12181,
1577,
30,
533,
1867,
316,
1492,
358,
431,
27832,
624,
3533,
305,
310,
1542,
294,
1080,
2666,
358,
20751,
13988,
270,
309,
518,
18551,
1006,
506,
1399,
805,
30,
6555,
4158,
294,
1080,
2666,
578,
9070,
508,
434,
3533,
305,
310,
805,
30,
12176,
10075,
305,
310,
550,
10335,
417,
1092,
30,
7745,
666,
769,
890,
3588,
434,
417,
4139,
2826,
4333,
294,
3880,
3007,
666,
434,
498,
460,
5574,
2
] |
'instead', DeprecationWarning, 1)
|
'instead', DeprecationWarning, 2)
|
def error_body_response(error_code, message, __warn=True): """ Returns a standard HTML response page for an HTTP error. **Note:** Deprecated """ if __warn: warnings.warn( 'wsgilib.error_body_response is deprecated; use the ' 'wsgi_application method on an HTTPException object ' 'instead', DeprecationWarning, 1) return '''\
|
c950ee5341075bd9f6a6f9635614a79f7115207b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/c950ee5341075bd9f6a6f9635614a79f7115207b/response.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
67,
3432,
67,
2740,
12,
1636,
67,
710,
16,
883,
16,
1001,
8935,
33,
5510,
4672,
3536,
2860,
279,
4529,
3982,
766,
1363,
364,
392,
2239,
555,
18,
2826,
8067,
30,
636,
9336,
3536,
309,
1001,
8935,
30,
5599,
18,
8935,
12,
296,
91,
1055,
330,
495,
18,
1636,
67,
3432,
67,
2740,
353,
6849,
31,
999,
326,
296,
296,
28539,
67,
3685,
707,
603,
392,
2239,
503,
733,
296,
296,
8591,
684,
2187,
24041,
16,
576,
13,
327,
875,
8314,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
67,
3432,
67,
2740,
12,
1636,
67,
710,
16,
883,
16,
1001,
8935,
33,
5510,
4672,
3536,
2860,
279,
4529,
3982,
766,
1363,
364,
392,
2239,
555,
18,
2826,
8067,
30,
636,
9336,
3536,
309,
1001,
8935,
30,
5599,
18,
8935,
12,
296,
91,
1055,
330,
495,
18,
1636,
67,
3432,
67,
2740,
353,
6849,
31,
999,
326,
296,
296,
28539,
67,
3685,
707,
603,
392,
2239,
503,
733,
296,
296,
8591,
684,
2187,
24041,
16,
576,
13,
327,
875,
8314,
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
] |
print "timer %s got activated (%d)!" % (self.description, event)
|
print "[timer.py] timer %s got activated (%d)!" % (self.description, event)
|
def activate(self, event): print "timer %s got activated (%d)!" % (self.description, event)
|
79cf98c3e95f22d6fc72a066cbf2c573401c6bd9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/79cf98c3e95f22d6fc72a066cbf2c573401c6bd9/timer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
12,
2890,
16,
871,
4672,
1172,
315,
12542,
738,
87,
2363,
14892,
6142,
72,
13,
4442,
738,
261,
2890,
18,
3384,
16,
871,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
12,
2890,
16,
871,
4672,
1172,
315,
12542,
738,
87,
2363,
14892,
6142,
72,
13,
4442,
738,
261,
2890,
18,
3384,
16,
871,
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
] |
shutil.rmtree(self.cachedir[name]) shutil.rmtree(self.external_cachedir[name])
|
shutil.rmtree(self.__getCachedir(name)) shutil.rmtree(self.__getExternalCachedir(name))
|
def clear(self, uri=None, name=None): """Clears either the single given uri/file or the whole cache"""
|
f1788ab755a31dd25ee3c7a76fe58272c48c2489 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/f1788ab755a31dd25ee3c7a76fe58272c48c2489/cache.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
16,
2003,
33,
7036,
16,
508,
33,
7036,
4672,
3536,
18188,
3344,
326,
2202,
864,
2003,
19,
768,
578,
326,
7339,
1247,
8395,
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
] |
self.filter.setValue_forKey_(self.ci_point(x1, -y1), 'inputPoint0') self.filter.setValue_forKey_(self.ci_point(x2, -y2), 'inputPoint1')
|
if utils.getMajorOSVersion() < 9: self.filter.setValue_forKey_(self.ci_point(x1, -y1), 'inputPoint0') self.filter.setValue_forKey_(self.ci_point(x2, -y2), 'inputPoint1') else: self.filter.setValue_forKey_(self.ci_point(x1, -y1), 'inputPoint1') self.filter.setValue_forKey_(self.ci_point(x2, -y2), 'inputPoint0')
|
def __init__(self, x1, y1, x2, y2): self.filter = CIFilter.filterWithName_('CILinearGradient') # Make y negative because we want things to work in flipped # coordinates self.filter.setValue_forKey_(self.ci_point(x1, -y1), 'inputPoint0') self.filter.setValue_forKey_(self.ci_point(x2, -y2), 'inputPoint1')
|
8b1fa82aa09df5bc6870a1c83c6af8c7e12c11f9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/8b1fa82aa09df5bc6870a1c83c6af8c7e12c11f9/drawing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
619,
21,
16,
677,
21,
16,
619,
22,
16,
677,
22,
4672,
365,
18,
2188,
273,
17166,
1586,
18,
2188,
17557,
67,
2668,
7266,
15982,
15651,
6134,
468,
4344,
677,
6092,
2724,
732,
2545,
225,
9198,
358,
1440,
316,
28821,
468,
5513,
365,
18,
2188,
18,
542,
620,
67,
1884,
653,
67,
12,
2890,
18,
8450,
67,
1153,
12,
92,
21,
16,
300,
93,
21,
3631,
296,
2630,
2148,
20,
6134,
365,
18,
2188,
18,
542,
620,
67,
1884,
653,
67,
12,
2890,
18,
8450,
67,
1153,
12,
92,
22,
16,
300,
93,
22,
3631,
296,
2630,
2148,
21,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
619,
21,
16,
677,
21,
16,
619,
22,
16,
677,
22,
4672,
365,
18,
2188,
273,
17166,
1586,
18,
2188,
17557,
67,
2668,
7266,
15982,
15651,
6134,
468,
4344,
677,
6092,
2724,
732,
2545,
225,
9198,
358,
1440,
316,
28821,
468,
5513,
365,
18,
2188,
18,
542,
620,
67,
1884,
653,
67,
12,
2890,
18,
8450,
67,
1153,
12,
92,
21,
16,
300,
93,
21,
3631,
296,
2630,
2148,
20,
6134,
365,
18,
2188,
18,
542,
620,
67,
1884,
653,
67,
12,
2890,
18,
8450,
67,
1153,
12,
92,
22,
16,
300,
93,
22,
3631,
296,
2630,
2148,
21,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise ValueError, 'Position %d in menu already taken' % position
|
raise ValueError('Position %d in menu already taken' % position)
|
def addBootServiceEntry(self, position, entry): """ Add the ImagingEntry entry to our menu """ assert(type(position) == int and position > 0) if position in self.menuitems: raise ValueError, 'Position %d in menu already taken' % position self.menuitems[position] = ImagingBootServiceItem(entry)
|
bbaae7b36f275dec72165d897802dd83d79bdc9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/bbaae7b36f275dec72165d897802dd83d79bdc9c/menu.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
15817,
1179,
1622,
12,
2890,
16,
1754,
16,
1241,
4672,
3536,
1436,
326,
2221,
5755,
1622,
1241,
358,
3134,
3824,
3536,
1815,
12,
723,
12,
3276,
13,
422,
509,
471,
1754,
405,
374,
13,
309,
1754,
316,
365,
18,
5414,
3319,
30,
1002,
2068,
2668,
2555,
738,
72,
316,
3824,
1818,
9830,
11,
738,
1754,
13,
365,
18,
5414,
3319,
63,
3276,
65,
273,
2221,
5755,
15817,
1179,
1180,
12,
4099,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
15817,
1179,
1622,
12,
2890,
16,
1754,
16,
1241,
4672,
3536,
1436,
326,
2221,
5755,
1622,
1241,
358,
3134,
3824,
3536,
1815,
12,
723,
12,
3276,
13,
422,
509,
471,
1754,
405,
374,
13,
309,
1754,
316,
365,
18,
5414,
3319,
30,
1002,
2068,
2668,
2555,
738,
72,
316,
3824,
1818,
9830,
11,
738,
1754,
13,
365,
18,
5414,
3319,
63,
3276,
65,
273,
2221,
5755,
15817,
1179,
1180,
12,
4099,
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
] |
OUTPUT: - free ZZ-module of rank 4 embeded in an ambient QQ^4.
|
OUTPUT: free `\\ZZ`-module of rank 4 embeded in an ambient `\\QQ^4`.
|
def free_module(self): """ Return the free module associated to this quaternionic fractional ideal, viewed as a submodule of ``Q.free_module()``, where ``Q`` is the ambient quaternion algebra.
|
aa7c8c5c25a8f62637a37f480aa5f24e29d7fbee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/aa7c8c5c25a8f62637a37f480aa5f24e29d7fbee/quaternion_algebra.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4843,
67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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4843,
67,
2978,
12,
2890,
4672,
3536,
2000,
326,
4843,
1605,
3627,
358,
333,
26774,
335,
20462,
23349,
16,
1476,
329,
487,
279,
27314,
434,
12176,
53,
18,
9156,
67,
2978,
20338,
9191,
1625,
12176,
53,
10335,
353,
326,
13232,
1979,
26774,
524,
29087,
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
] |
entriesbygid = {}
|
def test_values(self): entries = grp.getgrall() entriesbyname = {} entriesbygid = {}
|
06d931f1984c46efd666d05ec8e64fecf08973b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/06d931f1984c46efd666d05ec8e64fecf08973b9/test_grp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2372,
12,
2890,
4672,
3222,
273,
14295,
18,
588,
3197,
454,
1435,
3222,
1637,
529,
273,
2618,
3222,
1637,
15780,
273,
2618,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2372,
12,
2890,
4672,
3222,
273,
14295,
18,
588,
3197,
454,
1435,
3222,
1637,
529,
273,
2618,
3222,
1637,
15780,
273,
2618,
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
] |
|
environment["INPUTLFCS"]+="lfc[%d]='%s';" % (j,lfc.strip()) environment["INPUTFILES"]+="lfn[%d]='%s';" %(j,inputfiles[j].strip())
|
environment["INPUTLFCS"]+="lfc[%d]='%s';" % (infilenr,lfc.strip()) environment["INPUTFILES"]+="lfn[%d]='%s';" %(infilenr,inputfiles[j].strip()) infilenr += 1
|
def prepare(self,app,appconfig,appmasterconfig,jobmasterconfig): """Prepare the job"""
|
88dc9e38da17ce82091ed0543bc649796d6491b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/88dc9e38da17ce82091ed0543bc649796d6491b4/AthenaMCLCGRTHandler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
12,
2890,
16,
2910,
16,
2910,
1425,
16,
2910,
7525,
1425,
16,
4688,
7525,
1425,
4672,
3536,
7543,
326,
1719,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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398,
316,
326,
981,
30,
1652,
2911,
12,
2890,
16,
2910,
16,
2910,
1425,
16,
2910,
7525,
1425,
16,
4688,
7525,
1425,
4672,
3536,
7543,
326,
1719,
8395,
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
] |
X = np.ma.array(data=X[:],mask=mask2)
|
X = np.ma.array(data=X[::stride,:,:],mask=mask2)
|
def getRateOfChange(t,X,p,varname): # differenetiate time along time axis dt = np.diff(t[:],axis=0) Xdim = X.ndim Xunits = X.units if Xdim == 1: X = X[:] dXp = np.diff(X) dXpdt = dX/dt elif Xdim == 3: if 'mask' in nc.variables.keys(): mask = np.array(nc.variables['mask'][:]) # (t,y,x) k = np.nonzero((mask==1) ^ (mask==2) ^ (mask==3)) mask2 = np.ones_like(mask) mask2[k] = 0 # use masked values (i.e. ignore ocean and ice-free land) X = np.ma.array(data=X[:],mask=mask2) else: X = np.array(X[:]) dX = np.diff(X,axis=0) nt,ny,nx = dX.shape dX = dX.reshape(nt,nx*ny) # convert (t,y,x) -> (t,y*x) so that np.nansum needs to be applied only once dXp = (np.nansum(dX**p,axis=1))**(1./p) dXpdt = dXp/dt else: print('error: dim n = %i of variable %s not supported, must be 1 or 3' % (Xdim, varname)) return dXpdt
|
3680dbc191f1604634d462b97f5dfb73b2437a05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7383/3680dbc191f1604634d462b97f5dfb73b2437a05/check_stationarity.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4170,
340,
951,
3043,
12,
88,
16,
60,
16,
84,
16,
1401,
529,
4672,
225,
468,
15221,
31034,
3840,
813,
7563,
813,
2654,
3681,
273,
1130,
18,
5413,
12,
88,
10531,
6487,
4890,
33,
20,
13,
225,
1139,
3509,
273,
1139,
18,
82,
3509,
1139,
7705,
273,
1139,
18,
7705,
225,
309,
1139,
3509,
422,
404,
30,
1139,
273,
1139,
10531,
65,
302,
60,
84,
273,
1130,
18,
5413,
12,
60,
13,
302,
60,
84,
7510,
273,
302,
60,
19,
7510,
1327,
1139,
3509,
422,
890,
30,
309,
296,
4455,
11,
316,
8194,
18,
7528,
18,
2452,
13332,
3066,
377,
273,
1130,
18,
1126,
12,
14202,
18,
7528,
3292,
4455,
3546,
10531,
5717,
468,
261,
88,
16,
93,
16,
92,
13,
417,
3639,
273,
1130,
18,
26449,
12443,
4455,
631,
21,
13,
3602,
261,
4455,
631,
22,
13,
3602,
261,
4455,
631,
23,
3719,
3066,
22,
565,
273,
1130,
18,
5322,
67,
5625,
12,
4455,
13,
3066,
22,
63,
79,
65,
273,
374,
468,
999,
13196,
924,
261,
77,
18,
73,
18,
2305,
320,
31393,
471,
277,
311,
17,
9156,
19193,
13,
1139,
273,
1130,
18,
2540,
18,
1126,
12,
892,
33,
60,
63,
2866,
27937,
16,
30,
16,
30,
6487,
4455,
33,
4455,
22,
13,
469,
30,
1139,
273,
1130,
18,
1126,
12,
60,
10531,
5717,
225,
302,
60,
273,
1130,
18,
5413,
12,
60,
16,
4890,
33,
20,
13,
9513,
16,
18538,
16,
16769,
273,
302,
60,
18,
4867,
302,
60,
273,
302,
60,
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,
4170,
340,
951,
3043,
12,
88,
16,
60,
16,
84,
16,
1401,
529,
4672,
225,
468,
15221,
31034,
3840,
813,
7563,
813,
2654,
3681,
273,
1130,
18,
5413,
12,
88,
10531,
6487,
4890,
33,
20,
13,
225,
1139,
3509,
273,
1139,
18,
82,
3509,
1139,
7705,
273,
1139,
18,
7705,
225,
309,
1139,
3509,
422,
404,
30,
1139,
273,
1139,
10531,
65,
302,
60,
84,
273,
1130,
18,
5413,
12,
60,
13,
302,
60,
84,
7510,
273,
302,
60,
19,
7510,
1327,
1139,
3509,
422,
890,
30,
309,
296,
4455,
11,
316,
8194,
18,
7528,
18,
2452,
13332,
3066,
377,
273,
1130,
18,
1126,
12,
14202,
18,
7528,
3292,
4455,
3546,
10531,
5717,
468,
261,
88,
16,
93,
2
] |
previous_completion = self.completions[cursel - 1] while cursel > 0 and selstart[:i] <= previous_completion: i += 1 if selstart == previous_completion: break
|
def _selection_changed(self): """Should be called when the selection of the Listbox has changed. Updates the Listbox display and calls _change_start.""" cursel = int(self.listbox.curselection()[0])
|
5eec54ba09f2e4c519a8e394f43366bed50de2e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/5eec54ba09f2e4c519a8e394f43366bed50de2e0/AutoCompleteWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10705,
67,
6703,
12,
2890,
4672,
3536,
14309,
506,
2566,
1347,
326,
4421,
434,
326,
987,
2147,
711,
3550,
18,
15419,
326,
987,
2147,
2562,
471,
4097,
389,
3427,
67,
1937,
12123,
662,
1786,
273,
509,
12,
2890,
18,
1098,
2147,
18,
1397,
10705,
1435,
63,
20,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
1937,
12123,
662,
1786,
273,
509,
12,
2890,
18,
1098,
2147,
18,
1397,
10705,
1435,
63,
20,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
messages = []
|
def __init__(self, *args): smtpd.SMTPServer.__init__(self, *args) self.messages = []
|
def close(self): pass
|
b8d6534fa6cce0507d0303d7ac7374aba2e3d179 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/b8d6534fa6cce0507d0303d7ac7374aba2e3d179/test_smtpd.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
1342,
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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,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
1342,
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
] |
p.prettyName = constants.__pretty_app_name__
|
if distribution == "debian": p.prettyName = constants.__pretty_app_name__ else: p.prettyName = "Google Voice protocol plugin for Conversations and Contacts"
|
def build_package(distribution): try: os.chdir(os.path.dirname(sys.argv[0])) except: pass py2deb.Py2deb.SECTIONS = py2deb.SECTIONS_BY_POLICY[distribution] p = py2deb.Py2deb(__appname__) p.prettyName = constants.__pretty_app_name__ p.description = __description__ p.bugTracker = "https://bugs.maemo.org/enter_bug.cgi?product=theonering" #p.upgradeDescription = __changelog__.split("\n\n", 1)[0] p.author = __author__ p.mail = __email__ p.license = "lgpl" p.section = { "debian": "comm", "diablo": "user/network", "fremantle": "user/network", "mer": "user/network", }[distribution] p.depends = ", ".join([ "python (>= 2.5) | python2.5", "python-dbus | python2.5-dbus", "python-gobject | python2.5-gobject", "python-telepathy | python2.5-telepathy", ]) p.depends += { "debian": "", "chinook": "", "diablo": ", account-plugin-haze", "fremantle": ", account-plugin-haze", "mer": "", }[distribution] p.arch = "all" p.urgency = "low" p.distribution = "diablo fremantle mer debian" p.repository = "extras" p.changelog = __changelog__ p.postinstall = __postinstall__ p.icon = { "debian": "26x26-theonering.png", "diablo": "26x26-theonering.png", "fremantle": "64x64-theonering.png", # Fremantle natively uses 48x48 "mer": "64x64-theonering.png", }[distribution] for relPath, files in unflatten_files(find_files(".")).iteritems(): fullPath = "/usr/lib/theonering" if relPath: fullPath += os.sep+relPath p[fullPath] = list( "|".join((oldName, newName)) for (oldName, newName) in files ) p["/usr/share/dbus-1/services"] = ["org.freedesktop.Telepathy.ConnectionManager.theonering.service"] if distribution in ("debian", ): p["/usr/share/mission-control/profiles"] = ["theonering.profile.%s|theonering.profile"% distribution] elif distribution in ("diablo", "fremantle", "mer"): p["/usr/share/osso-rtcom"] = ["theonering.profile.%s|theonering.profile"% distribution] p["/usr/lib/telepathy"] = ["telepathy-theonering"] p["/usr/share/telepathy/managers"] = ["theonering.manager"] p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-theonering.png|im-theonering.png"] if distribution == "debian": print p print p.generate( version="%s-%s" % (__version__, __build__), changelog=__changelog__, build=True, tar=False, changes=False, dsc=False, ) print "Building for %s finished" % distribution else: print p print p.generate( version="%s-%s" % (__version__, __build__), changelog=__changelog__, build=False, tar=True, changes=True, dsc=True, ) print "Building for %s finished" % distribution
|
3ad09ac2b2b09a6cc75cc594745a68ae997c9b5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13096/3ad09ac2b2b09a6cc75cc594745a68ae997c9b5d/builddeb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5610,
12,
16279,
4672,
775,
30,
1140,
18,
343,
1214,
12,
538,
18,
803,
18,
12287,
12,
9499,
18,
19485,
63,
20,
22643,
1335,
30,
1342,
225,
2395,
22,
31888,
18,
9413,
22,
31888,
18,
19082,
55,
273,
2395,
22,
31888,
18,
19082,
55,
67,
6486,
67,
26366,
63,
16279,
65,
293,
273,
2395,
22,
31888,
18,
9413,
22,
31888,
12,
972,
2910,
529,
972,
13,
309,
7006,
422,
315,
31888,
2779,
6877,
293,
18,
19073,
461,
273,
6810,
16186,
19073,
67,
2910,
67,
529,
972,
469,
30,
293,
18,
19073,
461,
273,
315,
9639,
23582,
1771,
1909,
364,
735,
20494,
471,
13329,
87,
6,
293,
18,
3384,
273,
1001,
3384,
972,
293,
18,
925,
8135,
273,
315,
4528,
2207,
19381,
18,
2540,
351,
83,
18,
3341,
19,
2328,
67,
925,
18,
19062,
35,
5896,
33,
5787,
31430,
310,
6,
468,
84,
18,
15097,
3291,
273,
1001,
24083,
12970,
25648,
4939,
31458,
82,
64,
82,
3113,
404,
25146,
20,
65,
293,
18,
4161,
273,
1001,
4161,
972,
293,
18,
4408,
273,
1001,
3652,
972,
293,
18,
12687,
273,
315,
23623,
412,
6,
293,
18,
3464,
273,
288,
315,
31888,
2779,
6877,
315,
5702,
3113,
315,
3211,
378,
383,
6877,
315,
1355,
19,
5185,
3113,
315,
74,
2764,
970,
298,
6877,
315,
1355,
19,
5185,
3113,
315,
6592,
6877,
315,
1355,
19,
5185,
3113,
289,
63,
16279,
65,
293,
18,
27360,
273,
3104,
3552,
5701,
3816,
315,
8103,
261,
34,
33,
576,
18,
25,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5610,
12,
16279,
4672,
775,
30,
1140,
18,
343,
1214,
12,
538,
18,
803,
18,
12287,
12,
9499,
18,
19485,
63,
20,
22643,
1335,
30,
1342,
225,
2395,
22,
31888,
18,
9413,
22,
31888,
18,
19082,
55,
273,
2395,
22,
31888,
18,
19082,
55,
67,
6486,
67,
26366,
63,
16279,
65,
293,
273,
2395,
22,
31888,
18,
9413,
22,
31888,
12,
972,
2910,
529,
972,
13,
309,
7006,
422,
315,
31888,
2779,
6877,
293,
18,
19073,
461,
273,
6810,
16186,
19073,
67,
2910,
67,
529,
972,
469,
30,
293,
18,
19073,
461,
273,
315,
9639,
23582,
1771,
1909,
364,
735,
20494,
471,
13329,
87,
6,
293,
18,
3384,
273,
1001,
3384,
972,
293,
18,
925,
8135,
2
] |
files.append(f)
|
files.append((f, f))
|
def _addResources(self): "Add Welcome/ReadMe/License files, .lproj folders and scripts."
|
9428c10ace2561d7e95b339d8627931d772c6212 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9428c10ace2561d7e95b339d8627931d772c6212/buildpkg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
3805,
12,
2890,
4672,
315,
986,
678,
16312,
19,
1994,
4667,
19,
13211,
1390,
16,
263,
80,
17995,
9907,
471,
8873,
1199,
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
] |
def __init__(data = None)
|
def __init__(data = None):
|
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 395) else quickfix.IntField.__init__(self, 395, data)
|
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
890,
8778,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
890,
8778,
16,
501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
890,
8778,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
890,
8778,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
INPUT::
|
INPUT:
|
def NStarGraph(self,n): r''' Returns the n-star graph. The vertices of the n-star graph are the set of permutations on n symbols. There is an edge between two vertices if their labels differ only in the first and one other position. INPUT:: - ``n`` EXAMPLES:: sage: g = graphs.NStarGraph(4) sage: g.plot() # long time REFERENCES: - S.B. Akers, D. Horel and B. Krishnamurthy, The star graph: An attractive alternative to the previous n-cube. In: Proc. Internat. Conf. on Parallel Processing (1987), pp. 393--400. AUTHORS: - Michael Yurko (2009-09-01)
|
8a1fde824a0f61c02dc074d7262b217e10a072d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/8a1fde824a0f61c02dc074d7262b217e10a072d2/graph_generators.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
423,
18379,
4137,
12,
2890,
16,
82,
4672,
436,
26418,
2860,
326,
290,
17,
10983,
2667,
18,
225,
1021,
6928,
434,
326,
290,
17,
10983,
2667,
854,
326,
444,
434,
26468,
603,
290,
7963,
18,
6149,
353,
392,
3591,
3086,
2795,
6928,
309,
3675,
3249,
15221,
1338,
316,
326,
1122,
471,
1245,
1308,
1754,
18,
225,
12943,
30,
225,
300,
225,
12176,
82,
10335,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
314,
273,
19422,
18,
50,
18379,
4137,
12,
24,
13,
272,
410,
30,
314,
18,
4032,
1435,
468,
1525,
813,
225,
22898,
55,
30,
225,
300,
348,
18,
38,
18,
432,
79,
414,
16,
463,
18,
670,
479,
80,
471,
605,
18,
1475,
86,
1468,
17808,
295,
451,
93,
16,
1021,
10443,
2667,
30,
1922,
622,
1575,
688,
10355,
358,
326,
2416,
290,
17,
21186,
18,
657,
30,
18470,
18,
31048,
270,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
423,
18379,
4137,
12,
2890,
16,
82,
4672,
436,
26418,
2860,
326,
290,
17,
10983,
2667,
18,
225,
1021,
6928,
434,
326,
290,
17,
10983,
2667,
854,
326,
444,
434,
26468,
603,
290,
7963,
18,
6149,
353,
392,
3591,
3086,
2795,
6928,
309,
3675,
3249,
15221,
1338,
316,
326,
1122,
471,
1245,
1308,
1754,
18,
225,
12943,
30,
225,
300,
225,
12176,
82,
10335,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
314,
273,
19422,
18,
50,
18379,
4137,
12,
24,
13,
272,
410,
30,
314,
18,
4032,
1435,
468,
1525,
813,
225,
22898,
55,
30,
225,
300,
348,
18,
38,
18,
432,
79,
414,
16,
463,
18,
670,
479,
80,
471,
605,
18,
1475,
86,
1468,
2
] |
assert notnull in ('Y', 'N'), notnull nullable = (notnull == 'Y')
|
assert nullable in ('Y', 'N'), nullable nullable = (nullable == 'Y')
|
def _get_column_info(conn): "Get a dictionary of (table, [list of column details]) tuples for all tables" # AJT 13.11.2001 - Note date is hard coded to '11'. Probably should special # case this in the documentation class to ignore the length of dates. stmt = """SELECT table_name, column_name, data_type, nullable, decode(default_length, NULL, 0, 1) hasdef, decode(data_type, 'DATE', 11, 'NUMBER', nvl(data_precision,38)||'.'||data_scale, data_length) data_length FROM user_tab_columns""" tables = {} for table, attr, typ, notnull, hasdef, length in _query(conn, stmt): t = tables.get(table, None) if not t: t = [] tables[table] = t # If notnull is not one of 'Y' or 'N' raise AssertionError assert notnull in ('Y', 'N'), notnull nullable = (notnull == 'Y') t.append((attr, typ, nullable, hasdef, length)) return tables
|
b0381eb0deed5317a5e4c83a4ecea7abc5e74dcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4243/b0381eb0deed5317a5e4c83a4ecea7abc5e74dcc/oraschema.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2827,
67,
1376,
12,
4646,
4672,
315,
967,
279,
3880,
434,
261,
2121,
16,
306,
1098,
434,
1057,
3189,
5717,
10384,
364,
777,
4606,
6,
468,
432,
46,
56,
5958,
18,
2499,
18,
6976,
21,
300,
3609,
1509,
353,
7877,
29512,
358,
296,
2499,
10332,
14610,
6906,
1410,
4582,
468,
648,
333,
316,
326,
7323,
667,
358,
2305,
326,
769,
434,
7811,
18,
3480,
273,
3536,
4803,
1014,
67,
529,
16,
1057,
67,
529,
16,
501,
67,
723,
16,
8413,
16,
2495,
12,
1886,
67,
2469,
16,
3206,
16,
374,
16,
404,
13,
711,
536,
16,
2495,
12,
892,
67,
723,
16,
296,
4594,
2187,
4648,
16,
296,
9931,
2187,
8779,
80,
12,
892,
67,
14548,
16,
7414,
14047,
16637,
1093,
20081,
892,
67,
5864,
16,
501,
67,
2469,
13,
501,
67,
2469,
4571,
282,
729,
67,
7032,
67,
5112,
8395,
4606,
273,
2618,
364,
1014,
16,
1604,
16,
3815,
16,
486,
2011,
16,
711,
536,
16,
769,
316,
389,
2271,
12,
4646,
16,
3480,
4672,
268,
273,
4606,
18,
588,
12,
2121,
16,
599,
13,
309,
486,
268,
30,
268,
273,
5378,
4606,
63,
2121,
65,
273,
268,
468,
971,
486,
2011,
353,
486,
1245,
434,
296,
61,
11,
578,
296,
50,
11,
1002,
12068,
1815,
8413,
316,
7707,
61,
2187,
296,
50,
19899,
8413,
8413,
273,
261,
20247,
422,
296,
61,
6134,
268,
18,
6923,
12443,
1747,
16,
3815,
16,
8413,
16,
711,
536,
16,
769,
3719,
327,
4606,
225,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2827,
67,
1376,
12,
4646,
4672,
315,
967,
279,
3880,
434,
261,
2121,
16,
306,
1098,
434,
1057,
3189,
5717,
10384,
364,
777,
4606,
6,
468,
432,
46,
56,
5958,
18,
2499,
18,
6976,
21,
300,
3609,
1509,
353,
7877,
29512,
358,
296,
2499,
10332,
14610,
6906,
1410,
4582,
468,
648,
333,
316,
326,
7323,
667,
358,
2305,
326,
769,
434,
7811,
18,
3480,
273,
3536,
4803,
1014,
67,
529,
16,
1057,
67,
529,
16,
501,
67,
723,
16,
8413,
16,
2495,
12,
1886,
67,
2469,
16,
3206,
16,
374,
16,
404,
13,
711,
536,
16,
2495,
12,
892,
67,
723,
16,
296,
4594,
2187,
4648,
16,
296,
9931,
2187,
8779,
80,
12,
892,
67,
2
] |
self.CondPrint('verbose', "Removing packages:" % self.pkgwork['remove'])
|
self.CondPrint('verbose', "Removing packages: %s" % self.pkgwork['remove'])
|
def HandleExtra(self): '''Deal with extra configuration detected''' if self.setup['remove'] in ['all', 'packages']: self.CondPrint('verbose', "Removing packages:" % self.pkgwork['remove']) system("apt-get remove %s" % " ".join(self.pkgwork['remove'])) else: self.CondPrint('verbose', "Need to remove packages:" % self.pkgwork['remove']) self.CondPrint('verbose', "Need to remove services:" % self.extra_services)
|
23a6162064eb317ba0bf45b821ea320df74b8f68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/23a6162064eb317ba0bf45b821ea320df74b8f68/Debian.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
7800,
12,
2890,
4672,
9163,
758,
287,
598,
2870,
1664,
8316,
26418,
309,
365,
18,
8401,
3292,
4479,
3546,
316,
10228,
454,
2187,
296,
10308,
3546,
30,
365,
18,
12441,
5108,
2668,
11369,
2187,
315,
18939,
5907,
30,
738,
87,
6,
738,
365,
18,
10657,
1252,
3292,
4479,
19486,
2619,
2932,
1657,
17,
588,
1206,
738,
87,
6,
738,
315,
3552,
5701,
12,
2890,
18,
10657,
1252,
3292,
4479,
3546,
3719,
469,
30,
365,
18,
12441,
5108,
2668,
11369,
2187,
315,
14112,
358,
1206,
5907,
2773,
738,
365,
18,
10657,
1252,
3292,
4479,
19486,
365,
18,
12441,
5108,
2668,
11369,
2187,
315,
14112,
358,
1206,
4028,
2773,
738,
365,
18,
7763,
67,
8387,
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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
9163,
758,
287,
598,
2870,
1664,
8316,
26418,
309,
365,
18,
8401,
3292,
4479,
3546,
316,
10228,
454,
2187,
296,
10308,
3546,
30,
365,
18,
12441,
5108,
2668,
11369,
2187,
315,
18939,
5907,
30,
738,
87,
6,
738,
365,
18,
10657,
1252,
3292,
4479,
19486,
2619,
2932,
1657,
17,
588,
1206,
738,
87,
6,
738,
315,
3552,
5701,
12,
2890,
18,
10657,
1252,
3292,
4479,
3546,
3719,
469,
30,
365,
18,
12441,
5108,
2668,
11369,
2187,
315,
14112,
358,
1206,
5907,
2773,
738,
365,
18,
10657,
1252,
3292,
4479,
19486,
365,
18,
12441,
5108,
2668,
11369,
2187,
315,
14112,
358,
1206,
4028,
2773,
738,
365,
18,
7763,
67,
8387,
13,
225,
2,
-100,
-100
] |
'SEQUENCEMETHODS': ('sequence-types', 'SEQUENCES SEQUENCEMETHODS2 '
|
'SEQUENCEMETHODS': ('sequence-types', 'SEQUENCES SEQUENCEMETHODS '
|
'METHODS': ('typesmethods', 'class def CLASSES TYPES'),
|
67c677240e4e4b8180d7767ca6afc0b30f7cec21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/67c677240e4e4b8180d7767ca6afc0b30f7cec21/pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
296,
25750,
4278,
7707,
2352,
5163,
2187,
296,
1106,
1652,
29859,
20230,
3463,
55,
19899,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
296,
25750,
4278,
7707,
2352,
5163,
2187,
296,
1106,
1652,
29859,
20230,
3463,
55,
19899,
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
] |
('Hide', gtk.STOCK_CLOSE, _('Hi_de'), "Escape", None,
|
('Hide', 'screen-hide', _('Hi_de'), "Escape", None,
|
def merge_menu(cls, uimanager): 'Merge new values with the uimanager.' global screen cls._actions = gtk.ActionGroup('screen') cls._actions.add_actions([ ('Present', gtk.STOCK_FULLSCREEN, _('_Present'), "F5", None, screen.show), ('Background', gtk.STOCK_CLEAR, _('Bac_kground'), None, None, screen.to_background), ('Logo', None, _('Lo_go'), "<Ctrl>g", None, screen.to_logo), ('Black Screen', None, _('_Black Screen'), "b", None, screen.to_black), ('Freeze', None, _('_Freeze'), None , None, screen.freeze), ('Hide', gtk.STOCK_CLOSE, _('Hi_de'), "Escape", None, screen.hide), ]) uimanager.insert_action_group(cls._actions, -1) uimanager.add_ui_from_string(""" <menubar name="MenuBar"> <menu action="Presentation"> <menuitem action="Present" position="bot" /> <menuitem action="Background" position="bot" /> <menuitem action="Logo" position="bot" /> <menuitem action="Black Screen" position="bot" /> <menuitem action="Freeze" position="bot" /> <menuitem action="Hide" position="bot" /> </menu> </menubar> """) # unmerge_menu not implemented, because we will never uninstall this as # a module. cls._actions.get_action("Background").set_sensitive(False) cls._actions.get_action("Logo").set_sensitive(False) cls._actions.get_action("Black Screen").set_sensitive(False) cls._actions.get_action("Freeze").set_sensitive(False) cls._actions.get_action("Hide").set_sensitive(False)
|
def195fbc59dc45ac51d9246f0090a00f2161242 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5029/def195fbc59dc45ac51d9246f0090a00f2161242/screen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
5414,
12,
6429,
16,
582,
381,
1063,
4672,
296,
6786,
394,
924,
598,
326,
582,
381,
1063,
1093,
2552,
5518,
2028,
6315,
4905,
273,
22718,
18,
1803,
1114,
2668,
9252,
6134,
2028,
6315,
4905,
18,
1289,
67,
4905,
3816,
7707,
6351,
2187,
22718,
18,
31487,
3507,
67,
18111,
27908,
16,
389,
2668,
67,
6351,
19899,
315,
42,
25,
3113,
599,
16,
5518,
18,
4500,
3631,
7707,
8199,
2187,
22718,
18,
31487,
3507,
67,
23181,
985,
16,
389,
2668,
38,
1077,
67,
79,
2915,
19899,
599,
16,
599,
16,
5518,
18,
869,
67,
9342,
3631,
7707,
26604,
2187,
599,
16,
389,
2668,
1504,
67,
3240,
19899,
3532,
12418,
34,
75,
3113,
599,
16,
5518,
18,
869,
67,
19882,
3631,
7707,
13155,
10146,
2187,
599,
16,
389,
2668,
67,
13155,
10146,
19899,
315,
70,
3113,
599,
16,
5518,
18,
869,
67,
11223,
3631,
7707,
9194,
8489,
2187,
599,
16,
389,
2668,
67,
9194,
8489,
19899,
599,
269,
599,
16,
5518,
18,
29631,
3631,
7707,
15690,
2187,
296,
9252,
17,
11248,
2187,
389,
2668,
25009,
67,
323,
19899,
315,
8448,
3113,
599,
16,
5518,
18,
11248,
3631,
308,
13,
225,
582,
381,
1063,
18,
6387,
67,
1128,
67,
1655,
12,
6429,
6315,
4905,
16,
300,
21,
13,
582,
381,
1063,
18,
1289,
67,
4881,
67,
2080,
67,
1080,
2932,
3660,
411,
27617,
373,
297,
508,
1546,
4599,
5190,
6441,
411,
5414,
1301,
1546,
6351,
367,
6441,
411,
5414,
1726,
1301,
1546,
6351,
6,
1754,
1546,
4819,
6,
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,
2691,
67,
5414,
12,
6429,
16,
582,
381,
1063,
4672,
296,
6786,
394,
924,
598,
326,
582,
381,
1063,
1093,
2552,
5518,
2028,
6315,
4905,
273,
22718,
18,
1803,
1114,
2668,
9252,
6134,
2028,
6315,
4905,
18,
1289,
67,
4905,
3816,
7707,
6351,
2187,
22718,
18,
31487,
3507,
67,
18111,
27908,
16,
389,
2668,
67,
6351,
19899,
315,
42,
25,
3113,
599,
16,
5518,
18,
4500,
3631,
7707,
8199,
2187,
22718,
18,
31487,
3507,
67,
23181,
985,
16,
389,
2668,
38,
1077,
67,
79,
2915,
19899,
599,
16,
599,
16,
5518,
18,
869,
67,
9342,
3631,
7707,
26604,
2187,
599,
16,
389,
2668,
1504,
67,
3240,
19899,
3532,
12418,
34,
75,
3113,
599,
16,
5518,
18,
869,
67,
2
] |
self.velocities = [0, 0, 0, velocity]
|
def __init__(self, world, location=(0,0),angle=135,velocity=1, hitpoints=20): actor.__init__(self) self.location = location self.angle = angle self.velocity = velocity self.velocities = [0, 0, 0, velocity] self.hitpoints = hitpoints self.world = world self.world.send((self.channel,"JOIN", properties(self.__class__.__name__, location=self.location, angle=self.angle, velocity=self.velocity, height=32,width=32,hitpoints=self.hitpoints)))
|
9efff3c46c5125e3a6f3f2a240cdcd3097710244 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13911/9efff3c46c5125e3a6f3f2a240cdcd3097710244/conceptologic_bots.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9117,
16,
2117,
28657,
20,
16,
20,
3631,
4341,
33,
26612,
16,
29418,
560,
33,
21,
16,
6800,
4139,
33,
3462,
4672,
8327,
16186,
2738,
972,
12,
2890,
13,
365,
18,
3562,
273,
2117,
365,
18,
4341,
273,
5291,
365,
18,
29418,
560,
273,
14767,
365,
18,
15989,
4139,
273,
6800,
4139,
365,
18,
18179,
273,
9117,
365,
18,
18179,
18,
4661,
12443,
2890,
18,
4327,
10837,
18800,
3113,
1790,
12,
2890,
16186,
1106,
972,
16186,
529,
972,
16,
2117,
33,
2890,
18,
3562,
16,
5291,
33,
2890,
18,
4341,
16,
14767,
33,
2890,
18,
29418,
560,
16,
2072,
33,
1578,
16,
2819,
33,
1578,
16,
15989,
4139,
33,
2890,
18,
15989,
4139,
20349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9117,
16,
2117,
28657,
20,
16,
20,
3631,
4341,
33,
26612,
16,
29418,
560,
33,
21,
16,
6800,
4139,
33,
3462,
4672,
8327,
16186,
2738,
972,
12,
2890,
13,
365,
18,
3562,
273,
2117,
365,
18,
4341,
273,
5291,
365,
18,
29418,
560,
273,
14767,
365,
18,
15989,
4139,
273,
6800,
4139,
365,
18,
18179,
273,
9117,
365,
18,
18179,
18,
4661,
12443,
2890,
18,
4327,
10837,
18800,
3113,
1790,
12,
2890,
16186,
1106,
972,
16186,
529,
972,
16,
2117,
33,
2890,
18,
3562,
16,
5291,
33,
2890,
18,
4341,
16,
14767,
33,
2890,
18,
29418,
560,
16,
2072,
33,
1578,
16,
2819,
33,
1578,
16,
15989,
4139,
33,
2890,
18,
15989,
2
] |
|
ogr_gml_6,
|
ogr_gml_7,
|
def ogr_gml_cleanup(): gdaltest.clean_tmp() return 'success'
|
d4adcd02adadcdbb956ebbb3d5ac842582f7aa6e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/d4adcd02adadcdbb956ebbb3d5ac842582f7aa6e/ogr_gml_read.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
320,
3197,
67,
19005,
67,
16732,
13332,
15551,
2390,
395,
18,
6200,
67,
5645,
1435,
327,
296,
4768,
11,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (objectPattern.search(line[i:]).group(1), line[:anc.end()].rfind(",") ) elif c=="return" or c =="(": a = objectPattern.search(line[i:]) if a: return a.group(1), line[:anc.end()].rfind("return") return "return", i else: if not objectPattern.search(line[i:]): return (line,-3) return objectPattern.search(line[i:]).group(1), -1
|
elif ob: if anc.group(2): return (ob.group(1), anc.start() + len(map( anc.group, (1,2,3) ) )) return (ob.group(1), anc.start() + len(map( anc.group, (1,2,3) ) ) ) elif c==",": kol = findMatchingCol(line,line[:anc.end()].rfind(",")) anchor = colAnchorPattern.search(line[:kol+1]) if anchor: if partOfAllowed(anchor.group(1)): return (0,-2) if ob: return (ob.group(1), line[:anc.end()].rfind(",") ) elif c=="return" or c =="(": if ob: return ob.group(1), line[:anc.end()].rfind("return") return "return", i elif ob: return ob.group(1), -1 return (line,-3)
|
def assigned(line,i): """ finds out if a message is attached to a variable, returns a tuple with variable and position, position will be -1 if attached to varible, -2 if attached to allowed message, if its attached to a colon the position of the colon will be returned, -3 means error""" anc = anchorPattern.search(line[:i+1]) # i+1 should be "[", or we are SOL if anc: kol = findMatchingCol(line,anc.start()) c = anc.group(3) if c =="=": if not anc.group(1): return (line, -3) return (anc.group(1), -1) elif c==":": if partOfAllowed(anc.group(1)): return (0,-2) else: if anc.group(2): # all this uglieness just because I can`t get end() to work return (objectPattern.search(line[i:]).group(1), \ anc.start() + len(anc.group(1)) + len(anc.group(2)) + len(anc.group(3)) ) return (objectPattern.search(line[i:]).group(1), \ anc.start() + len(anc.group(1)) + len(anc.group(3)) ) # yes group(2) should be omitted elif c==",": kol = findMatchingCol(line,line[:anc.end()].rfind(",")) anchor = colAnchorPattern.search(line[:kol+1]) if anchor: if partOfAllowed(anchor.group(1)): return (0,-2) return (objectPattern.search(line[i:]).group(1), line[:anc.end()].rfind(",") ) # Yes ugly elif c=="return" or c =="(": a = objectPattern.search(line[i:]) #Some people put parens around their return statements, if a: #this line is just for them return a.group(1), line[:anc.end()].rfind("return") return "return", i else: if not objectPattern.search(line[i:]): return (line,-3) # errorcode return objectPattern.search(line[i:]).group(1), -1
|
a0506c4402787aca4c10ba0d781b8058becc377d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2688/a0506c4402787aca4c10ba0d781b8058becc377d/hbalance.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6958,
12,
1369,
16,
77,
4672,
3536,
13094,
596,
309,
279,
883,
353,
7495,
358,
279,
2190,
16,
1135,
279,
3193,
598,
2190,
471,
1754,
16,
1754,
903,
506,
300,
21,
309,
7495,
358,
569,
1523,
16,
300,
22,
309,
7495,
358,
2935,
883,
16,
309,
2097,
7495,
358,
279,
13336,
326,
1754,
434,
326,
13336,
903,
506,
2106,
16,
300,
23,
4696,
555,
8395,
392,
71,
273,
6984,
3234,
18,
3072,
12,
1369,
10531,
77,
15,
21,
5717,
468,
277,
15,
21,
1410,
506,
5158,
3113,
578,
732,
854,
27175,
309,
392,
71,
30,
417,
355,
273,
1104,
9517,
914,
12,
1369,
16,
19292,
18,
1937,
10756,
276,
273,
392,
71,
18,
1655,
12,
23,
13,
309,
276,
422,
6,
1546,
30,
309,
486,
392,
71,
18,
1655,
12,
21,
4672,
327,
261,
1369,
16,
300,
23,
13,
327,
261,
19292,
18,
1655,
12,
21,
3631,
300,
21,
13,
1327,
276,
631,
15563,
30,
309,
1087,
951,
5042,
12,
19292,
18,
1655,
12,
21,
3719,
30,
327,
261,
20,
16,
17,
22,
13,
469,
30,
309,
392,
71,
18,
1655,
12,
22,
4672,
468,
777,
333,
19645,
549,
15681,
2537,
2724,
467,
848,
68,
88,
336,
679,
1435,
358,
1440,
327,
261,
1612,
3234,
18,
3072,
12,
1369,
63,
77,
26894,
2934,
1655,
12,
21,
3631,
521,
392,
71,
18,
1937,
1435,
397,
562,
12,
19292,
18,
1655,
12,
21,
3719,
397,
562,
12,
19292,
18,
1655,
12,
22,
3719,
397,
562,
12,
19292,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6958,
12,
1369,
16,
77,
4672,
3536,
13094,
596,
309,
279,
883,
353,
7495,
358,
279,
2190,
16,
1135,
279,
3193,
598,
2190,
471,
1754,
16,
1754,
903,
506,
300,
21,
309,
7495,
358,
569,
1523,
16,
300,
22,
309,
7495,
358,
2935,
883,
16,
309,
2097,
7495,
358,
279,
13336,
326,
1754,
434,
326,
13336,
903,
506,
2106,
16,
300,
23,
4696,
555,
8395,
392,
71,
273,
6984,
3234,
18,
3072,
12,
1369,
10531,
77,
15,
21,
5717,
468,
277,
15,
21,
1410,
506,
5158,
3113,
578,
732,
854,
27175,
309,
392,
71,
30,
417,
355,
273,
1104,
9517,
914,
12,
1369,
16,
19292,
18,
1937,
10756,
276,
273,
392,
71,
18,
1655,
12,
23,
13,
309,
2
] |
return output
|
if CONQUE_PYTHON_VERSION == 3: return output else: return output.encode(vim.eval('&encoding'), 'replace')
|
def read(self, timeout=1, set_cursor=True, return_output=False, update_buffer=True): # {{{ # read from subprocess output = self.proc.read(timeout) # and strip null chars output = output.replace(chr(0), '')
|
dc15d148f24d54dc0818a6b9fc3e5f2b77c26ff9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4294/dc15d148f24d54dc0818a6b9fc3e5f2b77c26ff9/conque.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
2021,
33,
21,
16,
444,
67,
9216,
33,
5510,
16,
327,
67,
2844,
33,
8381,
16,
1089,
67,
4106,
33,
5510,
4672,
468,
10179,
95,
468,
855,
628,
6652,
876,
273,
365,
18,
9381,
18,
896,
12,
4538,
13,
468,
471,
2569,
446,
5230,
876,
273,
876,
18,
2079,
12,
15182,
12,
20,
3631,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
4672,
468,
10179,
95,
468,
855,
628,
6652,
876,
273,
365,
18,
9381,
18,
896,
12,
4538,
13,
468,
471,
2569,
446,
5230,
876,
273,
876,
18,
2079,
12,
15182,
12,
20,
3631,
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
] |
default=default, target_language=target_language)
|
default=default)
|
def translate(self, msgid, domain, mapping=None, context=None, target_language=None, default=None): if context is None: context = self.contexts.get('context') return getGlobalTranslationService().translate( domain, msgid, mapping=mapping, context=context, default=default, target_language=target_language)
|
8e4a601784ce508f184b2829883cce3f8aaaf74a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8e4a601784ce508f184b2829883cce3f8aaaf74a/Expressions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
2890,
16,
24389,
16,
2461,
16,
2874,
33,
7036,
16,
819,
33,
7036,
16,
1018,
67,
4923,
33,
7036,
16,
805,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
365,
18,
18332,
18,
588,
2668,
2472,
6134,
327,
20591,
6717,
1179,
7675,
13929,
12,
2461,
16,
24389,
16,
2874,
33,
6770,
16,
819,
33,
2472,
16,
805,
33,
1886,
16,
1018,
67,
4923,
33,
3299,
67,
4923,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
2890,
16,
24389,
16,
2461,
16,
2874,
33,
7036,
16,
819,
33,
7036,
16,
1018,
67,
4923,
33,
7036,
16,
805,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
365,
18,
18332,
18,
588,
2668,
2472,
6134,
327,
20591,
6717,
1179,
7675,
13929,
12,
2461,
16,
24389,
16,
2874,
33,
6770,
16,
819,
33,
2472,
16,
805,
33,
1886,
16,
1018,
67,
4923,
33,
3299,
67,
4923,
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
] |
os.makedirs(destination)
|
os.makedirs(destination)
|
def updatePool(self, current): #Making directory structure in the pool if needed file_name = self.deb.split(os.sep)[-1] print "File name: %s"%file_name if current.isBinary(): dir = os.sep.join(current.get('Filename').split(os.sep)[:-1]) print "Dir: %s"%dir destination = os.sep.join([self.repo, dir]) else: destination = os.path.join(os.sep, self.repo, current.get('Directory')) print "Destination: %s"%destination try: os.makedirs(destination) os.chown(destination, os.getuid(), self.gid) os.chmod(destination, 0775)
|
b9da61ec041ae2b237b550c8d9c9fc3bc903254e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1007/b9da61ec041ae2b237b550c8d9c9fc3bc903254e/addpkg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
2864,
12,
2890,
16,
783,
4672,
468,
49,
6159,
1867,
3695,
316,
326,
2845,
309,
3577,
585,
67,
529,
273,
365,
18,
31888,
18,
4939,
12,
538,
18,
10814,
13,
18919,
21,
65,
1172,
315,
812,
508,
30,
738,
87,
28385,
768,
67,
529,
309,
783,
18,
291,
5905,
13332,
1577,
273,
1140,
18,
10814,
18,
5701,
12,
2972,
18,
588,
2668,
5359,
16063,
4939,
12,
538,
18,
10814,
13,
10531,
17,
21,
5717,
1172,
315,
1621,
30,
738,
87,
28385,
1214,
2929,
273,
1140,
18,
10814,
18,
5701,
3816,
2890,
18,
7422,
16,
1577,
5717,
469,
30,
2929,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
10814,
16,
365,
18,
7422,
16,
783,
18,
588,
2668,
2853,
26112,
1172,
315,
5683,
30,
738,
87,
28385,
10590,
225,
775,
30,
1140,
18,
81,
9477,
10539,
12,
10590,
13,
1140,
18,
343,
995,
12,
10590,
16,
1140,
18,
588,
1911,
9334,
365,
18,
15780,
13,
1140,
18,
343,
1711,
12,
10590,
16,
374,
27714,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
2864,
12,
2890,
16,
783,
4672,
468,
49,
6159,
1867,
3695,
316,
326,
2845,
309,
3577,
585,
67,
529,
273,
365,
18,
31888,
18,
4939,
12,
538,
18,
10814,
13,
18919,
21,
65,
1172,
315,
812,
508,
30,
738,
87,
28385,
768,
67,
529,
309,
783,
18,
291,
5905,
13332,
1577,
273,
1140,
18,
10814,
18,
5701,
12,
2972,
18,
588,
2668,
5359,
16063,
4939,
12,
538,
18,
10814,
13,
10531,
17,
21,
5717,
1172,
315,
1621,
30,
738,
87,
28385,
1214,
2929,
273,
1140,
18,
10814,
18,
5701,
3816,
2890,
18,
7422,
16,
1577,
5717,
469,
30,
2929,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
10814,
16,
365,
18,
7422,
16,
783,
18,
588,
2
] |
type = myconf.get("soundcombo%d" % no) if type == SOUND_BEEP:
|
soundtype = myconf.get("soundcombo%d" % no) if soundtype == SOUND_BEEP:
|
def on_game_started (handler, gmwidg, gamemodel): gameDic[gmwidg] = gamemodel # Make sure game dependent menu entries are sensitive for widget in ("save_game1", "save_game_as1", "properties1", "close1", "call_flag", "draw", "resign", "force_to_move", "rotate_board1", "side_panel1", "hint_mode", "spy_mode"): window[widget].set_property('sensitive', True) # Disable hint or spy menu, if they are disabled in preferences window["hint_mode"].set_sensitive(myconf.get("analyzer_check")) window["spy_mode"].set_sensitive(myconf.get("inv_analyzer_check")) # Bring playing window to the front window["window1"].present() # Play set-up sound if myconf.get("useSounds"): no = preferencesDialog.SoundTab.actionToKeyNo["gameIsSetup"] type = myconf.get("soundcombo%d" % no) if type == SOUND_BEEP: sys.stdout.write("\a") sys.stdout.flush() elif type == SOUND_URI: uri = myconf.get("sounduri%d" % no) gstreamer.playSound(uri) # Rotate to human player if myconf.get("autoRotate"): boardview = gmwidg.widgets["board"].view if boardview.model.players[1].__type__ == LOCAL and \ boardview.model.players[0].__type__ != LOCAL: boardview.rotation = math.pi # Connect stuff gmwidg.widgets["sidepanel"].connect("hide", \ lambda w: window["side_panel1"].set_active(False)) if gamemodel.timemodel != None: gmwidg.widgets["ccalign"].show() else: gmwidg.widgets["ccalign"].hide() for player in gamemodel.players: player.connect("dead", engineDead, gmwidg) setMode(gmwidg, HINT, window["hint_mode"].get_active()) setMode(gmwidg, SPY, window["spy_mode"].get_active()) def game_loaded (gamemodel, uri): if type(uri) in (str, unicode): s = "%s: %s" % (_("Loaded game"), str(uri)) else: s = _("Loaded game") gmwidg.status(s) gamemodel.connect("game_loaded", game_loaded) def game_saved (gamemodel, uri): gmwidg.status("%s: %s" % (_("Saved game"), str(uri)), True) gamemodel.connect("game_saved", game_saved) def game_ended (gamemodel, reason): m1 = { DRAW: _("The game ended in a draw"), WHITEWON: _("White player won the game"), BLACKWON: _("Black player won the game"), KILLED: _("The game has been killed"), ADJOURNED: _("The game has been adjourned"), ABORTED: _("The game has been aborted"), }[gamemodel.status] m2 = { DRAW_INSUFFICIENT: _("caused by insufficient material"), DRAW_REPITITION: _("as the same position was repeated three" + \ " times in a row"), DRAW_50MOVES: _("as the last 50 moves brought nothing new"), DRAW_CALLFLAG: _("as both players ran out of time"), DRAW_STALEMATE: _("because of stalemate"), DRAW_AGREE: _("as the players agreed to"), DRAW_ADJUDICATION: _("as decided by an admin"), DRAW_LENGTH: _("as game exceed the max length"), WON_RESIGN: _("as opponent resigned"), WON_CALLFLAG: _("as opponent ran out of time"), WON_MATE: _("on a mate"), WON_DISCONNECTION: _("as opponent disconnected"), WON_ADJUDICATION: _("as decided by an admin"), ADJOURNED_LOST_CONNECTION: _("as a player lost connection"), ADJOURNED_AGREEMENT: _("as the players agreed to"), ADJOURNED_SERVER_SHUTDOWN: _("as the server was shut down"), ABORTED_ADJUDICATION: _("as decided by an admin"), ABORTED_AGREEMENT: _("as the players agreed to"), ABORTED_COURTESY: _("courtesy by a player"), ABORTED_EARLY: _("in the early phase of the game"), ABORTED_SERVER_SHUTDOWN: _("as the server was shut down"), UNKNOWN_REASON: _("by no known reason") }[reason] gmwidg.status("%s %s" % (m1,m2)) gamemodel.connect("game_ended", game_ended) def draw_sent (gamemodel, player): if player.__type__ == LOCAL: gmwidg.status(_("You sent a draw offer")) gamemodel.connect("draw_sent", draw_sent) def flag_call_error (gamemodel, player, error): if player.__type__ == LOCAL: if error == NO_TIME_SETTINGS: gmwidg.status(_("You can't call flag in a game without" + \ " time settings")) elif error == NOT_OUT_OF_TIME: gmwidg.status(_("You can't call flag when your opponent" + \ " is not out of time")) gamemodel.connect("flag_call_error", flag_call_error)
|
779d24c2d6ffd77e941227e22632e8456fe2ec1e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/779d24c2d6ffd77e941227e22632e8456fe2ec1e/Main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
13957,
67,
14561,
261,
4176,
16,
14125,
30902,
75,
16,
7920,
2284,
4672,
225,
7920,
40,
335,
63,
23336,
30902,
75,
65,
273,
7920,
2284,
225,
468,
4344,
3071,
7920,
10460,
3824,
3222,
854,
16692,
364,
3604,
316,
7566,
5688,
67,
13957,
21,
3113,
315,
5688,
67,
13957,
67,
345,
21,
3113,
315,
4738,
21,
3113,
315,
4412,
21,
3113,
315,
1991,
67,
6420,
3113,
315,
9446,
3113,
315,
455,
724,
3113,
315,
5734,
67,
869,
67,
8501,
3113,
315,
20342,
67,
3752,
21,
3113,
315,
5564,
67,
13916,
21,
3113,
315,
11317,
67,
3188,
3113,
315,
30884,
67,
3188,
6,
4672,
2742,
63,
6587,
8009,
542,
67,
4468,
2668,
23481,
2187,
1053,
13,
225,
468,
10639,
7380,
578,
21459,
3824,
16,
309,
2898,
854,
5673,
316,
12750,
2742,
9614,
11317,
67,
3188,
6,
8009,
542,
67,
23481,
12,
4811,
3923,
18,
588,
2932,
13647,
67,
1893,
6,
3719,
2742,
9614,
30884,
67,
3188,
6,
8009,
542,
67,
23481,
12,
4811,
3923,
18,
588,
2932,
5768,
67,
13647,
67,
1893,
6,
3719,
225,
468,
605,
8022,
23982,
2742,
358,
326,
6641,
2742,
9614,
5668,
21,
6,
8009,
6706,
1435,
225,
468,
19592,
444,
17,
416,
14190,
309,
3399,
3923,
18,
588,
2932,
1202,
55,
9284,
6,
4672,
1158,
273,
12750,
6353,
18,
24331,
5661,
18,
1128,
774,
653,
2279,
9614,
13957,
2520,
7365,
11929,
14190,
723,
273,
3399,
3923,
18,
588,
2932,
29671,
25053,
9,
72,
6,
738,
1158,
13,
309,
14190,
723,
422,
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,
603,
67,
13957,
67,
14561,
261,
4176,
16,
14125,
30902,
75,
16,
7920,
2284,
4672,
225,
7920,
40,
335,
63,
23336,
30902,
75,
65,
273,
7920,
2284,
225,
468,
4344,
3071,
7920,
10460,
3824,
3222,
854,
16692,
364,
3604,
316,
7566,
5688,
67,
13957,
21,
3113,
315,
5688,
67,
13957,
67,
345,
21,
3113,
315,
4738,
21,
3113,
315,
4412,
21,
3113,
315,
1991,
67,
6420,
3113,
315,
9446,
3113,
315,
455,
724,
3113,
315,
5734,
67,
869,
67,
8501,
3113,
315,
20342,
67,
3752,
21,
3113,
315,
5564,
67,
13916,
21,
3113,
315,
11317,
67,
3188,
3113,
315,
30884,
67,
3188,
6,
4672,
2742,
63,
6587,
8009,
542,
67,
4468,
2668,
23481,
2187,
1053,
13,
225,
468,
2
] |
<separator name="FM2"/> <menuitem action="Preferences"/>
|
<separator name="FM2"/> <menuitem action="Preferences"/>
|
def __init__(self): try: gettext.install('mirage', '/usr/share/locale', unicode=1) except: gettext.install('mirage', '/usr/local/share/locale', unicode=1) # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit
|
f4fb8573b027b21956ca815c0edbf66e6ae6e39e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/f4fb8573b027b21956ca815c0edbf66e6ae6e39e/mirage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
225,
775,
30,
24972,
18,
5425,
2668,
81,
481,
410,
2187,
1173,
13640,
19,
14419,
19,
6339,
2187,
5252,
33,
21,
13,
1335,
30,
24972,
18,
5425,
2668,
81,
481,
410,
2187,
1173,
13640,
19,
3729,
19,
14419,
19,
6339,
2187,
5252,
33,
21,
13,
225,
468,
5245,
365,
18,
3190,
67,
3188,
67,
26416,
273,
374,
365,
18,
3190,
67,
3188,
67,
7216,
273,
404,
365,
18,
3190,
67,
3188,
67,
21,
869,
21,
273,
576,
365,
18,
3190,
67,
3188,
67,
2722,
273,
890,
365,
18,
1896,
67,
14932,
9847,
273,
1381,
4202,
468,
1381,
619,
365,
18,
14932,
9847,
67,
1884,
67,
14932,
67,
869,
67,
7216,
365,
18,
1154,
67,
14932,
9847,
273,
374,
18,
21,
377,
468,
374,
18,
21,
619,
365,
18,
14932,
9847,
67,
1884,
67,
14932,
67,
869,
67,
7216,
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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,
2187,
1173,
13640,
19,
3729,
19,
14419,
19,
6339,
2187,
5252,
33,
21,
13,
225,
468,
5245,
365,
18,
3190,
67,
3188,
67,
26416,
273,
374,
365,
18,
3190,
67,
3188,
67,
7216,
273,
404,
365,
18,
3190,
67,
3188,
67,
21,
869,
21,
273,
576,
365,
18,
3190,
67,
3188,
67,
2722,
273,
890,
365,
18,
1896,
67,
14932,
9847,
273,
1381,
4202,
468,
1381,
619,
365,
18,
14932,
9847,
67,
1884,
67,
14932,
67,
869,
67,
7216,
365,
18,
2
] |
- B -- positive integer - var -- string (default: 'q') OUTPUT: - power series
|
- ``B`` -- positive integer - ``var`` -- string (default: 'q') OUTPUT: power series
|
def theta_series(self, B, var='q'): """ Return normalized theta series of self, as a power series over `\\mathbf{Z}` in the variable ``var``, which is 'q' by default.
|
1fe7e945a5e69662d3b79300c558387c31fea323 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1fe7e945a5e69662d3b79300c558387c31fea323/quaternion_algebra.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7338,
67,
10222,
12,
2890,
16,
605,
16,
569,
2218,
85,
11,
4672,
3536,
2000,
5640,
7338,
4166,
434,
365,
16,
487,
279,
7212,
4166,
1879,
1375,
1695,
15949,
17156,
95,
62,
11760,
316,
326,
2190,
12176,
1401,
68,
9191,
1492,
353,
296,
85,
11,
635,
805,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7338,
67,
10222,
12,
2890,
16,
605,
16,
569,
2218,
85,
11,
4672,
3536,
2000,
5640,
7338,
4166,
434,
365,
16,
487,
279,
7212,
4166,
1879,
1375,
1695,
15949,
17156,
95,
62,
11760,
316,
326,
2190,
12176,
1401,
68,
9191,
1492,
353,
296,
85,
11,
635,
805,
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
] |
try: os.unlink(outfile) except OSError, e: if e.errno != errno.ENOENT: raise
|
def _findLib_gcc(name): expr = '[^\(\)\s]*lib%s\.[^\(\)\s]*' % name fdout, ccout = tempfile.mkstemp() os.close(fdout) cmd = 'if type gcc &>/dev/null; then CC=gcc; else CC=cc; fi;' \ '$CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name try: fdout, outfile = tempfile.mkstemp() os.close(fdout) fd = os.popen(cmd) trace = fd.read() err = fd.close() finally: try: os.unlink(outfile) except OSError, e: if e.errno != errno.ENOENT: raise try: os.unlink(ccout) except OSError, e: if e.errno != errno.ENOENT: raise res = re.search(expr, trace) if not res: return None return res.group(0)
|
d059e7b42301856ea006ec4a11b0953a65c2b6c8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/d059e7b42301856ea006ec4a11b0953a65c2b6c8/util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
5664,
67,
75,
952,
12,
529,
4672,
3065,
273,
5271,
17134,
4713,
5153,
87,
5772,
2941,
9,
87,
5834,
15441,
4713,
5153,
87,
65,
4035,
738,
508,
5194,
659,
16,
4946,
659,
273,
13275,
18,
24816,
19781,
84,
1435,
1140,
18,
4412,
12,
8313,
659,
13,
1797,
273,
296,
430,
618,
314,
952,
473,
16893,
5206,
19,
2011,
31,
1508,
16525,
33,
75,
952,
31,
469,
16525,
33,
952,
31,
7314,
4359,
521,
3365,
6743,
300,
59,
80,
16,
17,
88,
300,
83,
296,
397,
4946,
659,
397,
296,
576,
22393,
21,
300,
80,
11,
397,
508,
775,
30,
5194,
659,
16,
8756,
273,
225,
13275,
18,
24816,
19781,
84,
1435,
1140,
18,
4412,
12,
8313,
659,
13,
5194,
273,
1140,
18,
84,
3190,
12,
4172,
13,
2606,
273,
5194,
18,
896,
1435,
393,
273,
5194,
18,
4412,
1435,
3095,
30,
775,
30,
1140,
18,
318,
1232,
12,
952,
659,
13,
1335,
10002,
16,
425,
30,
309,
425,
18,
19088,
480,
8402,
18,
1157,
51,
2222,
30,
1002,
400,
273,
283,
18,
3072,
12,
8638,
16,
2606,
13,
309,
486,
400,
30,
327,
599,
327,
400,
18,
1655,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4720,
5664,
67,
75,
952,
12,
529,
4672,
3065,
273,
5271,
17134,
4713,
5153,
87,
5772,
2941,
9,
87,
5834,
15441,
4713,
5153,
87,
65,
4035,
738,
508,
5194,
659,
16,
4946,
659,
273,
13275,
18,
24816,
19781,
84,
1435,
1140,
18,
4412,
12,
8313,
659,
13,
1797,
273,
296,
430,
618,
314,
952,
473,
16893,
5206,
19,
2011,
31,
1508,
16525,
33,
75,
952,
31,
469,
16525,
33,
952,
31,
7314,
4359,
521,
3365,
6743,
300,
59,
80,
16,
17,
88,
300,
83,
296,
397,
4946,
659,
397,
296,
576,
22393,
21,
300,
80,
11,
397,
508,
775,
30,
5194,
659,
16,
8756,
273,
225,
13275,
18,
24816,
19781,
84,
1435,
1140,
18,
4412,
12,
8313,
2
] |
|
if wrap and isinstance(result, mu.ndarray):
|
if wrap:
|
def _wrapit(obj, method, *args, **kwds): try: wrap = obj.__array_wrap__ except AttributeError: wrap = None result = getattr(asarray(obj),method)(*args, **kwds) if wrap and isinstance(result, mu.ndarray): if not isinstance(result, mu.ndarray): result = asarray(result) result = wrap(result) return result
|
1f0d060bdf6a5cd18d6f301c22cff0f0d482eed4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/1f0d060bdf6a5cd18d6f301c22cff0f0d482eed4/fromnumeric.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4113,
305,
12,
2603,
16,
707,
16,
380,
1968,
16,
2826,
25577,
4672,
775,
30,
2193,
273,
1081,
16186,
1126,
67,
4113,
972,
1335,
6394,
30,
2193,
273,
599,
563,
273,
3869,
12,
345,
1126,
12,
2603,
3631,
2039,
21433,
14,
1968,
16,
2826,
25577,
13,
309,
2193,
30,
309,
486,
1549,
12,
2088,
16,
4129,
18,
25681,
4672,
563,
273,
10455,
12,
2088,
13,
563,
273,
2193,
12,
2088,
13,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4113,
305,
12,
2603,
16,
707,
16,
380,
1968,
16,
2826,
25577,
4672,
775,
30,
2193,
273,
1081,
16186,
1126,
67,
4113,
972,
1335,
6394,
30,
2193,
273,
599,
563,
273,
3869,
12,
345,
1126,
12,
2603,
3631,
2039,
21433,
14,
1968,
16,
2826,
25577,
13,
309,
2193,
30,
309,
486,
1549,
12,
2088,
16,
4129,
18,
25681,
4672,
563,
273,
10455,
12,
2088,
13,
563,
273,
2193,
12,
2088,
13,
327,
563,
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
] |
rec_res_id = int(rec_line_data[0]['value'].split(',')[1]) or False pay_res_id = int(pay_line_data[0]['value'].split(',')[1]) or False
|
rec_res_id = rec_line_data and int(rec_line_data[0]['value'].split(',')[1]) or False pay_res_id = pay_line_data and int(pay_line_data[0]['value'].split(',')[1]) or False
|
def onchange_partner_id(self, cr, uid, ids, type, partner_id,date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False): invoice_addr_id = False contact_addr_id = False partner_payment_term = False acc_id = False bank_id = False fiscal_position = False
|
c66cef4dd50c425fa5ff69ef0659035f516a463d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/c66cef4dd50c425fa5ff69ef0659035f516a463d/multi_company_account.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
618,
16,
19170,
67,
350,
16,
712,
67,
16119,
33,
8381,
16,
5184,
67,
6408,
33,
8381,
16,
19170,
67,
10546,
67,
350,
33,
8381,
16,
9395,
67,
350,
33,
8381,
4672,
9179,
67,
4793,
67,
350,
273,
1083,
5388,
67,
4793,
67,
350,
273,
1083,
19170,
67,
9261,
67,
6408,
273,
1083,
4078,
67,
350,
273,
1083,
11218,
67,
350,
273,
1083,
15324,
771,
67,
3276,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
618,
16,
19170,
67,
350,
16,
712,
67,
16119,
33,
8381,
16,
5184,
67,
6408,
33,
8381,
16,
19170,
67,
10546,
67,
350,
33,
8381,
16,
9395,
67,
350,
33,
8381,
4672,
9179,
67,
4793,
67,
350,
273,
1083,
5388,
67,
4793,
67,
350,
273,
1083,
19170,
67,
9261,
67,
6408,
273,
1083,
4078,
67,
350,
273,
1083,
11218,
67,
350,
273,
1083,
15324,
771,
67,
3276,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(<InterfaceClass zope.app.container.interfaces.IAdding>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>, 'Add an X'), <function handler>, ('registerAdapter', <zope.app.publisher.browser.menumeta.MenuItemFactory object>, (<InterfaceClass zope.app.container.interfaces.IAdding>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>, 'Add an X', ''), {}), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>), {}), (None, <function provideInterface>, ('', <InterfaceClass zope.app.container.interfaces.IAdding>),
|
(<InterfaceClass zope.browser.interfaces.IAdding>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>, 'Add an X'), <function handler>, ('registerAdapter', <zope.app.publisher.browser.menumeta.MenuItemFactory object>, (<InterfaceClass zope.browser.interfaces.IAdding>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>, 'Add an X', ''), {}), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>), {}), (None, <function provideInterface>, ('', <InterfaceClass zope.browser.interfaces.IAdding>),
|
def test_w_factory_icon_extra_order(): """ >>> context = Context() >>> addMenuItem(context, factory="x.y.z", title="Add an X", ... permission="zope.ManageContent", description="blah blah", ... filter="context/foo", icon=u'/@@/icon.png', extra='Extra', ... order=99) >>> context ((('adapter', (<InterfaceClass zope.app.container.interfaces.IAdding>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>, 'Add an X'), <function handler>, ('registerAdapter', <zope.app.publisher.browser.menumeta.MenuItemFactory object>, (<InterfaceClass zope.app.container.interfaces.IAdding>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>, 'Add an X', ''), {}), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>), {}), (None, <function provideInterface>, ('', <InterfaceClass zope.app.container.interfaces.IAdding>), {}), (None, <function provideInterface>, ('', <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), {})) """
|
fbba0f8152d0bc2c5300c11c00b233b98debb605 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9523/fbba0f8152d0bc2c5300c11c00b233b98debb605/test_addMenuItem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
91,
67,
6848,
67,
3950,
67,
7763,
67,
1019,
13332,
3536,
4080,
819,
273,
1772,
1435,
4080,
527,
12958,
12,
2472,
16,
3272,
1546,
92,
18,
93,
18,
94,
3113,
2077,
1546,
986,
392,
1139,
3113,
1372,
2398,
4132,
1546,
94,
1306,
18,
21258,
1350,
3113,
2477,
1546,
3083,
9795,
2811,
9795,
3113,
1372,
2398,
1034,
1546,
2472,
19,
11351,
3113,
4126,
33,
89,
11,
19,
30989,
19,
3950,
18,
6446,
2187,
2870,
2218,
7800,
2187,
1372,
2398,
1353,
33,
2733,
13,
4080,
819,
14015,
2668,
10204,
2187,
261,
32,
1358,
797,
998,
1306,
18,
11213,
18,
15898,
18,
45,
13962,
20401,
411,
1358,
797,
998,
1306,
18,
26018,
18,
15898,
18,
11213,
18,
734,
73,
643,
9132,
4576,
34,
3631,
411,
1358,
797,
998,
1306,
18,
2910,
18,
26018,
18,
15898,
18,
11213,
18,
986,
4599,
20401,
296,
986,
392,
1139,
19899,
411,
915,
1838,
20401,
7707,
4861,
4216,
2187,
411,
94,
1306,
18,
2910,
18,
26018,
18,
11213,
18,
81,
7924,
1066,
18,
12958,
1733,
733,
20401,
261,
32,
1358,
797,
998,
1306,
18,
11213,
18,
15898,
18,
45,
13962,
20401,
411,
1358,
797,
998,
1306,
18,
26018,
18,
15898,
18,
11213,
18,
734,
73,
643,
9132,
4576,
34,
3631,
411,
1358,
797,
998,
1306,
18,
2910,
18,
26018,
18,
15898,
18,
11213,
18,
986,
4599,
20401,
296,
986,
392,
1139,
2187,
875,
3631,
2618,
3631,
261,
7036,
16,
411,
915,
5615,
1358,
20401,
7707,
2187,
411,
1358,
797,
998,
1306,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
91,
67,
6848,
67,
3950,
67,
7763,
67,
1019,
13332,
3536,
4080,
819,
273,
1772,
1435,
4080,
527,
12958,
12,
2472,
16,
3272,
1546,
92,
18,
93,
18,
94,
3113,
2077,
1546,
986,
392,
1139,
3113,
1372,
2398,
4132,
1546,
94,
1306,
18,
21258,
1350,
3113,
2477,
1546,
3083,
9795,
2811,
9795,
3113,
1372,
2398,
1034,
1546,
2472,
19,
11351,
3113,
4126,
33,
89,
11,
19,
30989,
19,
3950,
18,
6446,
2187,
2870,
2218,
7800,
2187,
1372,
2398,
1353,
33,
2733,
13,
4080,
819,
14015,
2668,
10204,
2187,
261,
32,
1358,
797,
998,
1306,
18,
11213,
18,
15898,
18,
45,
13962,
20401,
411,
1358,
797,
998,
1306,
18,
26018,
18,
15898,
18,
11213,
18,
734,
73,
2
] |
The Version of Objects is not put into consideration.
|
The version of Objects is not put into consideration.
|
def __cmp__(self, other): """Called by comparison operations.
|
beeb5ca0480c8d1ae505244beb56772f807ba70e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14367/beeb5ca0480c8d1ae505244beb56772f807ba70e/IPy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
3536,
8185,
635,
5826,
5295,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
3536,
8185,
635,
5826,
5295,
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
] |
FIXME: bad symbol names again, e.g. SCORE_LIST is *not* a list of scores. Humph. """ from invenio.search_engine import print_record
|
RECID_SCORE_LIST is a list of (recID1, score1), (recID2, score2), etc. """ from invenio.search_engine import print_record, record_public_p recID_score_list_to_be_printed = [] nb_records_to_be_printed = 0 nb_records_seen = 0 while nb_records_to_be_printed < 5 and nb_records_seen < len(recID_score_list) and nb_records_seen < 50: (recID, score) = recID_score_list[nb_records_seen] nb_records_seen += 1 if record_public_p(recID): nb_records_to_be_printed += 1 recID_score_list_to_be_printed.append([recID,score])
|
def tmpl_print_record_list_for_similarity_boxen(self, title, score_list, ln=cdslang): """Print list of records in the "hs" (HTML Similarity) format for similarity boxes. FIXME: bad symbol names again, e.g. SCORE_LIST is *not* a list of scores. Humph. """
|
04027ca40f5975c6fd8e4a2fa7992c0cc600604a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/04027ca40f5975c6fd8e4a2fa7992c0cc600604a/websearch_templates.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1188,
67,
3366,
67,
1098,
67,
1884,
67,
22985,
560,
67,
2147,
275,
12,
2890,
16,
2077,
16,
4462,
67,
1098,
16,
7211,
33,
4315,
2069,
539,
4672,
3536,
5108,
666,
434,
3853,
316,
326,
315,
4487,
6,
261,
4870,
22967,
560,
13,
740,
364,
16416,
14356,
18,
9852,
30,
5570,
3273,
1257,
3382,
16,
425,
18,
75,
18,
348,
15715,
67,
7085,
353,
380,
902,
14,
279,
666,
434,
8474,
18,
225,
670,
379,
844,
18,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1188,
67,
3366,
67,
1098,
67,
1884,
67,
22985,
560,
67,
2147,
275,
12,
2890,
16,
2077,
16,
4462,
67,
1098,
16,
7211,
33,
4315,
2069,
539,
4672,
3536,
5108,
666,
434,
3853,
316,
326,
315,
4487,
6,
261,
4870,
22967,
560,
13,
740,
364,
16416,
14356,
18,
9852,
30,
5570,
3273,
1257,
3382,
16,
425,
18,
75,
18,
348,
15715,
67,
7085,
353,
380,
902,
14,
279,
666,
434,
8474,
18,
225,
670,
379,
844,
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
] |
value = escape_tex(value)
|
value = escape_tex(value, self.commandprefix)
|
def format(self, tokensource, outfile): # TODO: add support for background colors enc = self.encoding
|
d2123e2a5017c6dee8256d0903afe494ebc6c2bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6148/d2123e2a5017c6dee8256d0903afe494ebc6c2bc/latex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
2430,
552,
16,
8756,
4672,
468,
2660,
30,
527,
2865,
364,
5412,
5740,
2446,
273,
365,
18,
5999,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
2430,
552,
16,
8756,
4672,
468,
2660,
30,
527,
2865,
364,
5412,
5740,
2446,
273,
365,
18,
5999,
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.io = self._IO() self.oi = self._IO()
|
self.io = type.__new__(type, "IOnamespace",(),{}) self.oi = type.__new__(type, "IOnamespace",(),{}) self.cmdin = ObjectPipe() self.cmdout = ObjectPipe()
|
def __init__(self, *args, **kargs): self.running = False self.breakpointed = None self.breakpoints = set() self.debug_level=0 self.init_args=args self.init_kargs=kargs self.io = self._IO() self.oi = self._IO() self.ioin = {} self.ioout = {} for n in self.ionames: self.ioin[n] = ioin = ObjectPipe() self.ioout[n] = ioout = ObjectPipe() ioin.ioname = n ioout.ioname = n setattr(self.io, n, self._IO_wrapper(ioout,ioin)) setattr(self.oi, n, self._IO_wrapper(ioin,ioout)) self.parse_args(*args, **kargs)
|
0d01db6641eeeb9aa67937be073aa8ef54c9e1c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/0d01db6641eeeb9aa67937be073aa8ef54c9e1c0/automaton.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
365,
18,
8704,
273,
1083,
365,
18,
8820,
1153,
329,
273,
599,
365,
18,
8820,
4139,
273,
444,
1435,
365,
18,
4148,
67,
2815,
33,
20,
365,
18,
2738,
67,
1968,
33,
1968,
365,
18,
2738,
67,
79,
1968,
33,
79,
1968,
365,
18,
1594,
273,
618,
16186,
2704,
972,
12,
723,
16,
315,
45,
1398,
753,
909,
3113,
9334,
2916,
13,
365,
18,
11359,
273,
618,
16186,
2704,
972,
12,
723,
16,
315,
45,
1398,
753,
909,
3113,
9334,
2916,
13,
365,
18,
4172,
267,
273,
1033,
11546,
1435,
365,
18,
4172,
659,
273,
1033,
11546,
1435,
365,
18,
77,
885,
273,
2618,
365,
18,
1594,
659,
273,
2618,
364,
290,
316,
365,
18,
285,
753,
30,
365,
18,
77,
885,
63,
82,
65,
273,
277,
885,
273,
1033,
11546,
1435,
365,
18,
1594,
659,
63,
82,
65,
273,
2527,
659,
273,
1033,
11546,
1435,
277,
885,
18,
285,
339,
273,
290,
2527,
659,
18,
285,
339,
273,
290,
9241,
12,
2890,
18,
1594,
16,
290,
16,
365,
6315,
4294,
67,
8376,
12,
1594,
659,
16,
77,
885,
3719,
9241,
12,
2890,
18,
11359,
16,
290,
16,
365,
6315,
4294,
67,
8376,
12,
77,
885,
16,
1594,
659,
3719,
225,
365,
18,
2670,
67,
1968,
30857,
1968,
16,
2826,
79,
1968,
13,
2,
0,
0,
0,
0,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
79,
1968,
33,
79,
1968,
365,
18,
1594,
273,
618,
16186,
2704,
972,
12,
723,
16,
315,
45,
1398,
753,
909,
3113,
9334,
2916,
13,
365,
18,
11359,
273,
618,
16186,
2704,
972,
12,
723,
16,
315,
45,
1398,
753,
909,
3113,
9334,
2916,
13,
365,
18,
4172,
267,
273,
1033,
11546,
1435,
365,
18,
4172,
659,
273,
1033,
11546,
1435,
365,
18,
77,
885,
273,
2618,
365,
2
] |
self.type = type;
|
self.type = "package";
|
def __init__(self,name = "",type = "package"): self.name = name; self.type = type;
|
b53942f263a55f85a77d04b9126525cca8cd1697 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/886/b53942f263a55f85a77d04b9126525cca8cd1697/asModel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
529,
273,
23453,
723,
273,
315,
5610,
6,
4672,
365,
18,
529,
273,
508,
31,
365,
18,
723,
273,
618,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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31,
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
] |
from SAP.Alignment import Clustalw2 as plugin
|
exec("from SAP.Alignment import %s as plugin" % optionParser.options.alignment)
|
def _resultProducer(self, jobID, abortEvent, inputFiles):
|
8580b7738d83cc7118185711d0bd7c3a7f9b5029 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8542/8580b7738d83cc7118185711d0bd7c3a7f9b5029/GUI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2088,
12140,
12,
2890,
16,
28913,
16,
6263,
1133,
16,
810,
2697,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2088,
12140,
12,
2890,
16,
28913,
16,
6263,
1133,
16,
810,
2697,
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
] |
assert first == second assert res == "repr return"
|
assert_equal(first,second) assert_equal(res,"repr return")
|
def __repr__(self): return "repr return"
|
267b08d9c3e7613c126729a179f4503c91625e9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7416/267b08d9c3e7613c126729a179f4503c91625e9c/test_scxx_object.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
315,
12715,
327,
6,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
315,
12715,
327,
6,
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
] |
for files in os.listdir("./"): if splitext(files)[1] == ".a": shared = splitext(files)[0]+ ".so"
|
for filen in os.listdir("./"): if splitext(filen)[1] == ".a": shared = splitext(filen)[0]+ ".so"
|
def progress(blocks, blocksize, total): ESC = chr(27); sys.stdout.write(ESC + '[2K' + ESC+'[G') text = " %i of %i bytes (%.0f percent) complete" % (blocks*blocksize, total, float(blocks*blocksize*100)/total) sys.stdout.write(text + '\x08'*len(text)) sys.stdout.flush()
|
69e63582c2b3c6baabf63890dbd9bdebdfd6ca2c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5491/69e63582c2b3c6baabf63890dbd9bdebdfd6ca2c/getbuildtest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4007,
12,
7996,
16,
18440,
16,
2078,
4672,
512,
2312,
273,
4513,
12,
5324,
1769,
2589,
18,
10283,
18,
2626,
12,
41,
2312,
397,
5271,
22,
47,
11,
397,
512,
2312,
6797,
63,
43,
6134,
977,
273,
315,
738,
77,
434,
738,
77,
1731,
6142,
18,
20,
74,
5551,
13,
3912,
6,
738,
261,
7996,
14,
2629,
1467,
16,
2078,
16,
1431,
12,
7996,
14,
2629,
1467,
14,
6625,
13176,
4963,
13,
2589,
18,
10283,
18,
2626,
12,
955,
397,
2337,
92,
6840,
11,
14,
1897,
12,
955,
3719,
2589,
18,
10283,
18,
11330,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4007,
12,
7996,
16,
18440,
16,
2078,
4672,
512,
2312,
273,
4513,
12,
5324,
1769,
2589,
18,
10283,
18,
2626,
12,
41,
2312,
397,
5271,
22,
47,
11,
397,
512,
2312,
6797,
63,
43,
6134,
977,
273,
315,
738,
77,
434,
738,
77,
1731,
6142,
18,
20,
74,
5551,
13,
3912,
6,
738,
261,
7996,
14,
2629,
1467,
16,
2078,
16,
1431,
12,
7996,
14,
2629,
1467,
14,
6625,
13176,
4963,
13,
2589,
18,
10283,
18,
2626,
12,
955,
397,
2337,
92,
6840,
11,
14,
1897,
12,
955,
3719,
2589,
18,
10283,
18,
11330,
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
] |
"""
|
"""
|
def fl_read_pixmapfile(win, file, w, h, shape_mask, hotx, hoty, tran): """ fl_read_pixmapfile(win, file, w, h, shape_mask, hotx, hoty, tran) -> pixmap """ retval = _fl_read_pixmapfile(win, file, w, h, shape_mask, hotx, hoty, tran) 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,
67,
896,
67,
14861,
1458,
768,
12,
8082,
16,
585,
16,
341,
16,
366,
16,
2179,
67,
4455,
16,
12811,
92,
16,
12811,
93,
16,
13637,
4672,
3536,
1183,
67,
896,
67,
14861,
1458,
768,
12,
8082,
16,
585,
16,
341,
16,
366,
16,
2179,
67,
4455,
16,
12811,
92,
16,
12811,
93,
16,
13637,
13,
317,
11871,
1458,
3536,
225,
5221,
273,
389,
2242,
67,
896,
67,
14861,
1458,
768,
12,
8082,
16,
585,
16,
341,
16,
366,
16,
2179,
67,
4455,
16,
12811,
92,
16,
12811,
93,
16,
13637,
13,
327,
5221,
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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341,
16,
366,
16,
2179,
67,
4455,
16,
12811,
92,
16,
12811,
93,
16,
13637,
13,
317,
11871,
1458,
3536,
225,
5221,
273,
389,
2242,
67,
896,
67,
14861,
1458,
768,
12,
8082,
16,
585,
16,
341,
16,
366,
16,
2179,
67,
4455,
16,
12811,
92,
16,
12811,
93,
16,
13637,
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
] |
self.assertEquals(compat.TryToRoman(1), "I") self.assertEquals(compat.TryToRoman(4), "IV") self.assertEquals(compat.TryToRoman(5), "V")
|
self.assertEquals(compat.TryToRoman(1), 1) self.assertEquals(compat.TryToRoman(4), 4) self.assertEquals(compat.TryToRoman(5), 5)
|
def testAFewIntegers(self): self.assertEquals(compat.TryToRoman(0), 0) self.assertEquals(compat.TryToRoman(1), "I") self.assertEquals(compat.TryToRoman(4), "IV") self.assertEquals(compat.TryToRoman(5), "V")
|
855bffd2c91ade0dc0ca91549030d9617a36b545 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/855bffd2c91ade0dc0ca91549030d9617a36b545/ganeti.compat_unittest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6799,
359,
382,
736,
6215,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
16239,
18,
7833,
774,
54,
362,
304,
12,
20,
3631,
374,
13,
365,
18,
11231,
8867,
12,
16239,
18,
7833,
774,
54,
362,
304,
12,
21,
3631,
315,
45,
7923,
365,
18,
11231,
8867,
12,
16239,
18,
7833,
774,
54,
362,
304,
12,
24,
3631,
315,
8188,
7923,
365,
18,
11231,
8867,
12,
16239,
18,
7833,
774,
54,
362,
304,
12,
25,
3631,
315,
58,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6799,
359,
382,
736,
6215,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
16239,
18,
7833,
774,
54,
362,
304,
12,
20,
3631,
374,
13,
365,
18,
11231,
8867,
12,
16239,
18,
7833,
774,
54,
362,
304,
12,
21,
3631,
315,
45,
7923,
365,
18,
11231,
8867,
12,
16239,
18,
7833,
774,
54,
362,
304,
12,
24,
3631,
315,
8188,
7923,
365,
18,
11231,
8867,
12,
16239,
18,
7833,
774,
54,
362,
304,
12,
25,
3631,
315,
58,
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
] |
x,y = self.button.window.get_origin() b_alloc = self.button.get_allocation() w,h = self.popup.get_size() if self.globals.orient == "h": if self.globals.settings['popup_align'] == 'left': x = b_alloc.x + x if self.globals.settings['popup_align'] == 'center': x = b_alloc.x + x + (b_alloc.width/2)-(w/2) if self.globals.settings['popup_align'] == 'right': x = b_alloc.x + x + b_alloc.width - w y = b_alloc.y + y-offset if x+(w)>self.screen.get_width(): x=self.screen.get_width()-w if x<0: x = 0 if y-h >= 0: self.popup.move(x,y-h) else: self.popup.move(x,y+b_alloc.height+(offset*2)) else: x = b_alloc.x + x y = b_alloc.y + y if y+h>self.screen.get_height(): y=self.screen.get_height()-h if x+w >= self.screen.get_width(): self.popup.move(x - w - offset,y) else: self.popup.move(x + b_alloc.width + offset,y)
|
def show_list(self): # Move popup to it's right spot and show it. offset = 3
|
130383c31d0ecbfe5398b6217c24fc9765d20706 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/130383c31d0ecbfe5398b6217c24fc9765d20706/groupbutton.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1098,
12,
2890,
4672,
468,
9933,
10431,
358,
518,
1807,
2145,
16463,
471,
2405,
518,
18,
1384,
273,
890,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1098,
12,
2890,
4672,
468,
9933,
10431,
358,
518,
1807,
2145,
16463,
471,
2405,
518,
18,
1384,
273,
890,
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
] |
|
for b, attrs in self.baselists[1:]]
|
for b, attrs in baselists]
|
def baseTables(self, item): return [fillSlots(item, baseName=self.baseName(b), baseTable=ChildTable(self.docgetter, self.ob, self.has_lineno_col(), sorted(attrs, key=lambda o:-o.privacyClass))) for b, attrs in self.baselists[1:]]
|
69734251f72c450e0a5185b60c060e3e79f35c71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5471/69734251f72c450e0a5185b60c060e3e79f35c71/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
6905,
12,
2890,
16,
761,
4672,
327,
306,
5935,
16266,
12,
1726,
16,
16162,
33,
2890,
18,
1969,
461,
12,
70,
3631,
1026,
1388,
33,
1763,
1388,
12,
2890,
18,
2434,
11990,
16,
365,
18,
947,
16,
365,
18,
5332,
67,
17782,
67,
1293,
9334,
3115,
12,
7039,
16,
498,
33,
14661,
320,
30,
17,
83,
18,
14427,
797,
20349,
364,
324,
16,
3422,
316,
365,
18,
9157,
292,
1486,
63,
21,
30,
13563,
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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
70,
3631,
1026,
1388,
33,
1763,
1388,
12,
2890,
18,
2434,
11990,
16,
365,
18,
947,
16,
365,
18,
5332,
67,
17782,
67,
1293,
9334,
3115,
12,
7039,
16,
498,
33,
14661,
320,
30,
17,
83,
18,
14427,
797,
20349,
364,
324,
16,
3422,
316,
365,
18,
9157,
292,
1486,
63,
21,
30,
13563,
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
] |
oounter_sngl = 0.0
|
counter_sngl = 0.0
|
def getTriggersWithinEpsilon(self, candidate, epsilon, epsilon_ball_type = "version2"):
|
ec394acae7e9e8b7a99e6f955f16345d3457a7cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/ec394acae7e9e8b7a99e6f955f16345d3457a7cf/CoincInspiralUtils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15114,
18949,
29889,
10327,
12,
2890,
16,
5500,
16,
12263,
16,
12263,
67,
19067,
67,
723,
273,
315,
1589,
22,
6,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15114,
18949,
29889,
10327,
12,
2890,
16,
5500,
16,
12263,
16,
12263,
67,
19067,
67,
723,
273,
315,
1589,
22,
6,
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
] |
if (PkgSelected(opts,"FMOD")): cmd = cmd + ' thirdparty/win-libs-vc7/fmod/lib/fmod.lib'
|
if (ldef!=0): cmd = cmd + ' /DEF:"' + ldef + '"'
|
a996ac16ff952120272d0fdfc857572952160b6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/a996ac16ff952120272d0fdfc857572952160b6f/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
80,
536,
5,
33,
20,
4672,
1797,
273,
1797,
397,
296,
342,
12904,
2773,
11,
397,
328,
536,
397,
4754,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
80,
536,
5,
33,
20,
4672,
1797,
273,
1797,
397,
296,
342,
12904,
2773,
11,
397,
328,
536,
397,
4754,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if (True or (not RUNTIME and not RTDIST)):
|
if (not RUNTIME and not RTDIST):
|
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n"
|
5e46cc511c37818a66a1f84ca15aeb35aac41d05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/5e46cc511c37818a66a1f84ca15aeb35aac41d05/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
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
] |
oparser = OptionParser() oparser.add_option('-s', '--search-dir', dest='search', help='Search path to find missing schema elements', metavar='Paths', action='append')
|
usage = 'usage: %prog -n <namespace> [options] <MOF file> ...' oparser = OptionParser(usage=usage) oparser.add_option('-s', '--search', dest='search', help='Search path to find missing schema elements. This option can be present multiple times.', metavar='Path', action='append')
|
def _build(): yacc.yacc(optimize=_optimize, tabmodule=_tabmodule) lex.lex(optimize=_optimize, lextab=_lextab)
|
b57e4134d5c4d753ca79d65a4ed90aec65ad0ee7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10648/b57e4134d5c4d753ca79d65a4ed90aec65ad0ee7/mof_compiler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
13332,
677,
8981,
18,
93,
8981,
12,
29155,
33,
67,
29155,
16,
3246,
2978,
33,
67,
7032,
2978,
13,
5275,
18,
4149,
12,
29155,
33,
67,
29155,
16,
5275,
7032,
33,
67,
4149,
7032,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
13332,
677,
8981,
18,
93,
8981,
12,
29155,
33,
67,
29155,
16,
3246,
2978,
33,
67,
7032,
2978,
13,
5275,
18,
4149,
12,
29155,
33,
67,
29155,
16,
5275,
7032,
33,
67,
4149,
7032,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
filename = frame.f_globals.get("__file__", None) if filename is None: filename = frame.f_code.co_filename
|
(filename, lineno, funcname, context, lineindex,) = inspect.getframeinfo(frame) bname = self.pathtobasename.get(filename) if bname is None: bname = self.pathtobasename.setdefault(filename, os.path.basename(filename))
|
def trace(self, frame, why, arg): if why == 'line': # something is fishy about getting the file name filename = frame.f_globals.get("__file__", None) if filename is None: filename = frame.f_code.co_filename try: modulename = frame.f_globals["__name__"] except KeyError: # PyRun_String() for example # XXX what to do? modulename = None
|
a30eacf45815c14b480972c5097677fac83ed4c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a30eacf45815c14b480972c5097677fac83ed4c0/trace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
12,
2890,
16,
2623,
16,
11598,
16,
1501,
4672,
309,
11598,
422,
296,
1369,
4278,
468,
5943,
353,
284,
1468,
93,
2973,
8742,
326,
585,
508,
282,
261,
3459,
16,
7586,
16,
1326,
529,
16,
819,
16,
980,
1615,
16,
13,
273,
5334,
18,
588,
3789,
1376,
12,
3789,
13,
565,
324,
529,
273,
365,
18,
803,
869,
13909,
18,
588,
12,
3459,
13,
309,
324,
529,
353,
599,
30,
225,
324,
529,
273,
365,
18,
803,
869,
13909,
18,
542,
1886,
12,
3459,
16,
1140,
18,
803,
18,
13909,
12,
3459,
3719,
775,
30,
31961,
273,
2623,
18,
74,
67,
16227,
9614,
972,
529,
972,
11929,
1335,
4999,
30,
468,
4707,
1997,
67,
780,
1435,
364,
3454,
468,
11329,
4121,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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,
2606,
12,
2890,
16,
2623,
16,
11598,
16,
1501,
4672,
309,
11598,
422,
296,
1369,
4278,
468,
5943,
353,
284,
1468,
93,
2973,
8742,
326,
585,
508,
282,
261,
3459,
16,
7586,
16,
1326,
529,
16,
819,
16,
980,
1615,
16,
13,
273,
5334,
18,
588,
3789,
1376,
12,
3789,
13,
565,
324,
529,
273,
365,
18,
803,
869,
13909,
18,
588,
12,
3459,
13,
309,
324,
529,
353,
599,
30,
225,
324,
529,
273,
365,
18,
803,
869,
13909,
18,
542,
1886,
12,
3459,
16,
1140,
18,
803,
18,
13909,
12,
3459,
3719,
775,
30,
31961,
273,
2623,
18,
74,
67,
16227,
9614,
972,
529,
972,
11929,
1335,
4999,
30,
468,
4707,
1997,
67,
780,
1435,
364,
2
] |
libraries = ["curvesntl", "g0nntl", "jcntl", "rankntl", "ntl", "gmp", "gmpxx", "stdc++", "m", "pari"])
|
depends = ["sage/libs/mwrank/wrap.h"], libraries = ["curvesntl", "g0nntl", "jcntl", "rankntl", "ntl", "gmp", "gmpxx", "stdc++", "m", "pari"])
|
def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
|
697d48ce28ff4d12606adf26a8fb095216c31678 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/697d48ce28ff4d12606adf26a8fb095216c31678/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,
3712,
327,
1083,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
21,
4672,
327,
1083,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
22,
4672,
327,
1053,
309,
1140,
18,
803,
18,
588,
10838,
12,
768,
22,
13,
411,
1140,
18,
803,
18,
588,
10838,
12,
768,
21,
4672,
327,
1053,
327,
1083,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,
3712,
327,
1083,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
21,
4672,
327,
1083,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
22,
4672,
327,
1053,
309,
1140,
18,
803,
18,
588,
10838,
12,
768,
22,
13,
411,
1140,
18,
803,
18,
588,
10838,
12,
768,
21,
4672,
327,
1053,
327,
1083,
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
] |
extra = "\n" if hasattr(self, "creator"): extra += " C: Deferred was created:\n C:" extra += "".join(self.creator).rstrip().replace("\n","\n C:") extra += "\n" if hasattr(self, "invoker"): extra += " I: First Invoker was:\n I:" extra += "".join(self.invoker).rstrip().replace("\n","\n I:") extra += "\n"
|
extra = "\n" + self._debugInfo()
|
def _startRunCallbacks(self, result): if self.called: if not self.debug: raise AlreadyCalledError extra = "\n" if hasattr(self, "creator"): extra += " C: Deferred was created:\n C:" extra += "".join(self.creator).rstrip().replace("\n","\n C:") extra += "\n" if hasattr(self, "invoker"): extra += " I: First Invoker was:\n I:" extra += "".join(self.invoker).rstrip().replace("\n","\n I:") extra += "\n" raise AlreadyCalledError(extra) if self.debug: self.invoker = traceback.format_stack()[:-2] self.called = True self.result = result if self.timeoutCall: try: self.timeoutCall.cancel() except: pass # Avoid reference cycles, because this object defines __del__ del self.timeoutCall self._runCallbacks()
|
8749328cf2f7db2e959d7b65920eaf229b7c9e56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8749328cf2f7db2e959d7b65920eaf229b7c9e56/defer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1937,
1997,
10617,
12,
2890,
16,
563,
4672,
309,
365,
18,
11777,
30,
309,
486,
365,
18,
4148,
30,
1002,
17009,
8185,
668,
2870,
273,
1548,
82,
6,
397,
365,
6315,
4148,
966,
1435,
1002,
17009,
8185,
668,
12,
7763,
13,
309,
365,
18,
4148,
30,
365,
18,
5768,
601,
264,
273,
10820,
18,
2139,
67,
3772,
1435,
10531,
17,
22,
65,
365,
18,
11777,
273,
1053,
365,
18,
2088,
273,
563,
309,
365,
18,
4538,
1477,
30,
775,
30,
365,
18,
4538,
1477,
18,
10996,
1435,
1335,
30,
1342,
468,
17843,
2114,
15139,
16,
2724,
333,
733,
11164,
1001,
3771,
972,
1464,
365,
18,
4538,
1477,
365,
6315,
2681,
10617,
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,
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30,
1652,
389,
1937,
1997,
10617,
12,
2890,
16,
563,
4672,
309,
365,
18,
11777,
30,
309,
486,
365,
18,
4148,
30,
1002,
17009,
8185,
668,
2870,
273,
1548,
82,
6,
397,
365,
6315,
4148,
966,
1435,
1002,
17009,
8185,
668,
12,
7763,
13,
309,
365,
18,
4148,
30,
365,
18,
5768,
601,
264,
273,
10820,
18,
2139,
67,
3772,
1435,
10531,
17,
22,
65,
365,
18,
11777,
273,
1053,
365,
18,
2088,
273,
563,
309,
365,
18,
4538,
1477,
30,
775,
30,
365,
18,
4538,
1477,
18,
10996,
1435,
1335,
30,
1342,
468,
17843,
2114,
15139,
16,
2724,
333,
733,
11164,
1001,
3771,
972,
1464,
365,
18,
4538,
1477,
365,
6315,
2681,
10617,
1435,
2,
-100,
-100,
-100,
-100,
-100
] |
def _get_cash_open_box_lines(self, cr, uid, ids, context={}):
|
def _get_cash_open_box_lines(self, cr, uid, context={}):
|
def _get_cash_open_box_lines(self, cr, uid, ids, context={}): res = [] curr = [1, 2, 5, 10, 20, 50, 100, 500] for rs in curr: dct = { 'pieces':rs, 'number':0 } res.append(dct) return res
|
4fd67b69c6b0fc3ce35920df8e8fdc664e1fbc7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/4fd67b69c6b0fc3ce35920df8e8fdc664e1fbc7b/account_cash_statement.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
71,
961,
67,
3190,
67,
2147,
67,
3548,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
400,
273,
5378,
4306,
273,
306,
21,
16,
576,
16,
1381,
16,
1728,
16,
4200,
16,
6437,
16,
2130,
16,
6604,
65,
364,
3597,
316,
4306,
30,
18253,
273,
288,
296,
31016,
4278,
5453,
16,
296,
2696,
4278,
20,
289,
400,
18,
6923,
12,
72,
299,
13,
327,
400,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
71,
961,
67,
3190,
67,
2147,
67,
3548,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
400,
273,
5378,
4306,
273,
306,
21,
16,
576,
16,
1381,
16,
1728,
16,
4200,
16,
6437,
16,
2130,
16,
6604,
65,
364,
3597,
316,
4306,
30,
18253,
273,
288,
296,
31016,
4278,
5453,
16,
296,
2696,
4278,
20,
289,
400,
18,
6923,
12,
72,
299,
13,
327,
400,
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
] |
Column('address_id', Integer, Sequence('address1_id_seq'), primary_key=True), Column('user_id', Integer, ForeignKey(user1.c.user_id), nullable=False),
|
Column('address_id', Integer, Sequence('address1_id_seq', optional=True), primary_key=True), Column('user_id', Integer, ForeignKey(user1.c.user_id), nullable=False),
|
def setUpAll(self): global user1, user2, address1, address2, metadata, ctx metadata = MetaData(testbase.db) ctx = SessionContext(create_session) user1 = Table('user1', metadata, Column('user_id', Integer, Sequence('user1_id_seq'), primary_key=True), Column('name', String(60), nullable=False) ) user2 = Table('user2', metadata, Column('user_id', Integer, Sequence('user2_id_seq'), primary_key=True), Column('name', String(60), nullable=False) ) address1 = Table('address1', metadata, Column('address_id', Integer, Sequence('address1_id_seq'), primary_key=True), Column('user_id', Integer, ForeignKey(user1.c.user_id), nullable=False), Column('email', String(100), nullable=False) ) address2 = Table('address2', metadata, Column('address_id', Integer, Sequence('address2_id_seq'), primary_key=True), Column('user_id', Integer, ForeignKey(user2.c.user_id), nullable=False), Column('email', String(100), nullable=False) ) metadata.create_all()
|
9db4d1f8f547ac436991e2be40e00c5feee0ac20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/9db4d1f8f547ac436991e2be40e00c5feee0ac20/entity.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
1595,
12,
2890,
4672,
2552,
729,
21,
16,
729,
22,
16,
1758,
21,
16,
1758,
22,
16,
1982,
16,
1103,
1982,
273,
27512,
12,
3813,
1969,
18,
1966,
13,
1103,
273,
3877,
1042,
12,
2640,
67,
3184,
13,
225,
729,
21,
273,
3555,
2668,
1355,
21,
2187,
1982,
16,
4753,
2668,
1355,
67,
350,
2187,
2144,
16,
8370,
2668,
1355,
21,
67,
350,
67,
5436,
19899,
3354,
67,
856,
33,
5510,
3631,
4753,
2668,
529,
2187,
514,
12,
4848,
3631,
8413,
33,
8381,
13,
262,
729,
22,
273,
3555,
2668,
1355,
22,
2187,
1982,
16,
4753,
2668,
1355,
67,
350,
2187,
2144,
16,
8370,
2668,
1355,
22,
67,
350,
67,
5436,
19899,
3354,
67,
856,
33,
5510,
3631,
4753,
2668,
529,
2187,
514,
12,
4848,
3631,
8413,
33,
8381,
13,
262,
1758,
21,
273,
3555,
2668,
2867,
21,
2187,
1982,
16,
4753,
2668,
2867,
67,
350,
2187,
2144,
16,
8370,
2668,
2867,
21,
67,
350,
67,
5436,
2187,
3129,
33,
5510,
3631,
3354,
67,
856,
33,
5510,
3631,
4753,
2668,
1355,
67,
350,
2187,
2144,
16,
24039,
12,
1355,
21,
18,
71,
18,
1355,
67,
350,
3631,
8413,
33,
8381,
3631,
4753,
2668,
3652,
2187,
514,
12,
6625,
3631,
8413,
33,
8381,
13,
262,
1758,
22,
273,
3555,
2668,
2867,
22,
2187,
1982,
16,
4753,
2668,
2867,
67,
350,
2187,
2144,
16,
8370,
2668,
2867,
22,
67,
350,
67,
5436,
19899,
3354,
67,
856,
33,
5510,
3631,
4753,
2668,
1355,
67,
350,
2187,
2144,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
1595,
12,
2890,
4672,
2552,
729,
21,
16,
729,
22,
16,
1758,
21,
16,
1758,
22,
16,
1982,
16,
1103,
1982,
273,
27512,
12,
3813,
1969,
18,
1966,
13,
1103,
273,
3877,
1042,
12,
2640,
67,
3184,
13,
225,
729,
21,
273,
3555,
2668,
1355,
21,
2187,
1982,
16,
4753,
2668,
1355,
67,
350,
2187,
2144,
16,
8370,
2668,
1355,
21,
67,
350,
67,
5436,
19899,
3354,
67,
856,
33,
5510,
3631,
4753,
2668,
529,
2187,
514,
12,
4848,
3631,
8413,
33,
8381,
13,
262,
729,
22,
273,
3555,
2668,
1355,
22,
2187,
1982,
16,
4753,
2668,
1355,
67,
350,
2187,
2144,
16,
8370,
2668,
1355,
22,
67,
350,
67,
5436,
19899,
3354,
67,
856,
33,
5510,
2
] |
logger.Error("file storage directory '%s' is not under base file" " storage directory '%s'" % (file_storage_dir, base_file_storage_dir))
|
logging.error("file storage directory '%s' is not under base file" " storage directory '%s'", file_storage_dir, base_file_storage_dir)
|
def _TransformFileStorageDir(file_storage_dir): """Checks whether given file_storage_dir is valid. Checks wheter the given file_storage_dir is within the cluster-wide default file_storage_dir stored in SimpleStore. Only paths under that directory are allowed. Args: file_storage_dir: string with path Returns: normalized file_storage_dir (string) if valid, None otherwise """ file_storage_dir = os.path.normpath(file_storage_dir) base_file_storage_dir = ssconf.SimpleStore().GetFileStorageDir() if (not os.path.commonprefix([file_storage_dir, base_file_storage_dir]) == base_file_storage_dir): logger.Error("file storage directory '%s' is not under base file" " storage directory '%s'" % (file_storage_dir, base_file_storage_dir)) return None return file_storage_dir
|
18682bca5711b7b492aeb3cd3a550087f1413e0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/18682bca5711b7b492aeb3cd3a550087f1413e0b/backend.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4059,
812,
3245,
1621,
12,
768,
67,
5697,
67,
1214,
4672,
3536,
4081,
2856,
864,
585,
67,
5697,
67,
1214,
353,
923,
18,
225,
13074,
600,
847,
326,
864,
585,
67,
5697,
67,
1214,
353,
3470,
326,
2855,
17,
26767,
805,
585,
67,
5697,
67,
1214,
4041,
316,
4477,
2257,
18,
5098,
2953,
3613,
716,
1867,
854,
2935,
18,
225,
6634,
30,
585,
67,
5697,
67,
1214,
30,
533,
598,
589,
225,
2860,
30,
5640,
585,
67,
5697,
67,
1214,
261,
1080,
13,
309,
923,
16,
599,
3541,
225,
3536,
585,
67,
5697,
67,
1214,
273,
1140,
18,
803,
18,
7959,
803,
12,
768,
67,
5697,
67,
1214,
13,
1026,
67,
768,
67,
5697,
67,
1214,
273,
5202,
3923,
18,
5784,
2257,
7675,
967,
812,
3245,
1621,
1435,
309,
261,
902,
1140,
18,
803,
18,
6054,
3239,
3816,
768,
67,
5697,
67,
1214,
16,
1026,
67,
768,
67,
5697,
67,
1214,
5717,
422,
1026,
67,
768,
67,
5697,
67,
1214,
4672,
2907,
18,
1636,
2932,
768,
2502,
1867,
1995,
87,
11,
353,
486,
3613,
1026,
585,
6,
315,
2502,
1867,
1995,
87,
11,
3113,
585,
67,
5697,
67,
1214,
16,
1026,
67,
768,
67,
5697,
67,
1214,
13,
327,
599,
327,
585,
67,
5697,
67,
1214,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4059,
812,
3245,
1621,
12,
768,
67,
5697,
67,
1214,
4672,
3536,
4081,
2856,
864,
585,
67,
5697,
67,
1214,
353,
923,
18,
225,
13074,
600,
847,
326,
864,
585,
67,
5697,
67,
1214,
353,
3470,
326,
2855,
17,
26767,
805,
585,
67,
5697,
67,
1214,
4041,
316,
4477,
2257,
18,
5098,
2953,
3613,
716,
1867,
854,
2935,
18,
225,
6634,
30,
585,
67,
5697,
67,
1214,
30,
533,
598,
589,
225,
2860,
30,
5640,
585,
67,
5697,
67,
1214,
261,
1080,
13,
309,
923,
16,
599,
3541,
225,
3536,
585,
67,
5697,
67,
1214,
273,
1140,
18,
803,
18,
7959,
803,
12,
768,
67,
5697,
67,
1214,
13,
1026,
67,
768,
67,
5697,
67,
1214,
273,
2
] |
class BaseBrowserMenuService(object):
|
class BaseBrowserMenuService:
|
def getMenuItems(self, object=None): """See zope.app.interfaces.publisher.browser.IMenuItem""" results = [] if object is None: for items in self.registry._reg.values(): results += items else: for items in self.registry.getAllForObject(object): results += items return results
|
c0e5114084467d1a0fbfb483fbda7b2a9d796888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/c0e5114084467d1a0fbfb483fbda7b2a9d796888/globalbrowsermenuservice.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25877,
3126,
12,
2890,
16,
733,
33,
7036,
4672,
3536,
9704,
998,
1306,
18,
2910,
18,
15898,
18,
26018,
18,
11213,
18,
3445,
2104,
1180,
8395,
1686,
273,
5378,
309,
733,
353,
599,
30,
364,
1516,
316,
365,
18,
9893,
6315,
1574,
18,
2372,
13332,
1686,
1011,
1516,
469,
30,
364,
1516,
316,
365,
18,
9893,
18,
588,
1595,
1290,
921,
12,
1612,
4672,
1686,
1011,
1516,
327,
1686,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25877,
3126,
12,
2890,
16,
733,
33,
7036,
4672,
3536,
9704,
998,
1306,
18,
2910,
18,
15898,
18,
26018,
18,
11213,
18,
3445,
2104,
1180,
8395,
1686,
273,
5378,
309,
733,
353,
599,
30,
364,
1516,
316,
365,
18,
9893,
6315,
1574,
18,
2372,
13332,
1686,
1011,
1516,
469,
30,
364,
1516,
316,
365,
18,
9893,
18,
588,
1595,
1290,
921,
12,
1612,
4672,
1686,
1011,
1516,
327,
1686,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def review-index(self):
|
def review_index(self):
|
def review-index(self): c.person = c.signed_in_person # hack for bug#34, don't show miniconfs to reviewers # Jiri: unless they're also organisers... if 'organiser' in [r.name for r in c.signed_in_person.roles]: c.proposal_types = self.dbsession.query(ProposalType).all() else: c.proposal_types = self.dbsession.query(ProposalType).filter(ProposalType.c.name <> 'Miniconf').all()
|
caddf969c03c3def355651ca95e0549f3d711ace /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12856/caddf969c03c3def355651ca95e0549f3d711ace/proposal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10725,
67,
1615,
12,
2890,
4672,
276,
18,
12479,
273,
276,
18,
5679,
67,
267,
67,
12479,
468,
11769,
364,
7934,
7,
5026,
16,
2727,
1404,
2405,
1131,
3950,
2556,
358,
10725,
414,
468,
804,
25096,
30,
3308,
2898,
4565,
2546,
15501,
291,
414,
2777,
309,
296,
22543,
15914,
11,
316,
306,
86,
18,
529,
364,
436,
316,
276,
18,
5679,
67,
267,
67,
12479,
18,
7774,
14542,
276,
18,
685,
8016,
67,
2352,
273,
365,
18,
1966,
3184,
18,
2271,
12,
14592,
559,
2934,
454,
1435,
469,
30,
276,
18,
685,
8016,
67,
2352,
273,
365,
18,
1966,
3184,
18,
2271,
12,
14592,
559,
2934,
2188,
12,
14592,
559,
18,
71,
18,
529,
2813,
296,
2930,
3950,
74,
16063,
454,
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,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18,
12479,
273,
276,
18,
5679,
67,
267,
67,
12479,
468,
11769,
364,
7934,
7,
5026,
16,
2727,
1404,
2405,
1131,
3950,
2556,
358,
10725,
414,
468,
804,
25096,
30,
3308,
2898,
4565,
2546,
15501,
291,
414,
2777,
309,
296,
22543,
15914,
11,
316,
306,
86,
18,
529,
364,
436,
316,
276,
18,
5679,
67,
267,
67,
12479,
18,
7774,
14542,
276,
18,
685,
8016,
67,
2352,
273,
365,
18,
1966,
3184,
18,
2271,
12,
14592,
559,
2934,
454,
1435,
469,
30,
276,
18,
685,
8016,
67,
2352,
273,
365,
18,
1966,
3184,
18,
2271,
12,
14592,
559,
2934,
2188,
12,
14592,
559,
18,
71,
18,
529,
2813,
296,
2930,
3950,
2
] |
if hasattr(self.reference_class, "_manager"): manager = self.reference_class._manager else: manager = obj._manager value = manager.get_object(self.reference_class, value)
|
value = self.reference_class(value)
|
def __get__(self, obj, objtype): if obj: value = getattr(obj, self.slot_name) if value == self.default_value(): return value # If the value is still the UUID for the referenced object, we need to create # the object now that is the attribute has actually been accessed. This lazy # instantiation saves unnecessary roundtrips to SimpleDB if isinstance(value, str) or isinstance(value, unicode): # This is some minor handling to allow us to use the base "Model" class # as our reference class. If we do so, we're going to assume we're using # our own class's manager to fetch objects if hasattr(self.reference_class, "_manager"): manager = self.reference_class._manager else: manager = obj._manager value = manager.get_object(self.reference_class, value) setattr(obj, self.name, value) return value
|
eed33b6050fc7b959f63f3cf77c85563db3a80dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/eed33b6050fc7b959f63f3cf77c85563db3a80dd/property.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
972,
12,
2890,
16,
1081,
16,
1081,
723,
4672,
309,
1081,
30,
460,
273,
3869,
12,
2603,
16,
365,
18,
14194,
67,
529,
13,
309,
460,
422,
365,
18,
1886,
67,
1132,
13332,
327,
460,
468,
971,
326,
460,
353,
4859,
326,
5866,
364,
326,
8042,
733,
16,
732,
1608,
358,
752,
468,
326,
733,
2037,
716,
353,
326,
1566,
711,
6013,
2118,
15539,
18,
225,
1220,
7962,
468,
28380,
14649,
19908,
3643,
313,
7146,
358,
4477,
2290,
309,
1549,
12,
1132,
16,
609,
13,
578,
1549,
12,
1132,
16,
5252,
4672,
468,
1220,
353,
2690,
8439,
5057,
358,
1699,
584,
358,
999,
326,
1026,
315,
1488,
6,
667,
468,
487,
3134,
2114,
667,
18,
971,
732,
741,
1427,
16,
732,
4565,
8554,
358,
6750,
732,
4565,
1450,
468,
3134,
4953,
667,
1807,
3301,
358,
2158,
2184,
309,
3859,
12,
2890,
18,
6180,
67,
1106,
16,
4192,
4181,
6,
4672,
3301,
273,
365,
18,
6180,
67,
1106,
6315,
4181,
469,
30,
3301,
273,
1081,
6315,
4181,
460,
273,
3301,
18,
588,
67,
1612,
12,
2890,
18,
6180,
67,
1106,
16,
460,
13,
9241,
12,
2603,
16,
365,
18,
529,
16,
460,
13,
327,
460,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
972,
12,
2890,
16,
1081,
16,
1081,
723,
4672,
309,
1081,
30,
460,
273,
3869,
12,
2603,
16,
365,
18,
14194,
67,
529,
13,
309,
460,
422,
365,
18,
1886,
67,
1132,
13332,
327,
460,
468,
971,
326,
460,
353,
4859,
326,
5866,
364,
326,
8042,
733,
16,
732,
1608,
358,
752,
468,
326,
733,
2037,
716,
353,
326,
1566,
711,
6013,
2118,
15539,
18,
225,
1220,
7962,
468,
28380,
14649,
19908,
3643,
313,
7146,
358,
4477,
2290,
309,
1549,
12,
1132,
16,
609,
13,
578,
1549,
12,
1132,
16,
5252,
4672,
468,
1220,
353,
2690,
8439,
5057,
358,
1699,
584,
358,
999,
326,
1026,
315,
1488,
6,
667,
468,
487,
3134,
2114,
667,
18,
971,
2
] |
if typ is list or typ is tuple: if typ is list:
|
if issubclass(typ, list) or issubclass(typ, tuple): if issubclass(typ, list):
|
def _format(self, object, stream, indent, allowance, context, level): level = level + 1 objid = _id(object) if objid in context: stream.write(_recursion(object)) self._recursive = True self._readable = False return rep = self._repr(object, context, level - 1) typ = _type(object) sepLines = _len(rep) > (self._width - 1 - indent - allowance) write = stream.write
|
905bb8041dd625c67d815f5f826f1c442064aa1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/905bb8041dd625c67d815f5f826f1c442064aa1d/pprint.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
12,
2890,
16,
733,
16,
1407,
16,
3504,
16,
1699,
1359,
16,
819,
16,
1801,
4672,
1801,
273,
1801,
397,
404,
1081,
350,
273,
389,
350,
12,
1612,
13,
309,
1081,
350,
316,
819,
30,
1407,
18,
2626,
24899,
31347,
12,
1612,
3719,
365,
6315,
10543,
273,
1053,
365,
6315,
11018,
273,
1083,
327,
2071,
273,
365,
6315,
12715,
12,
1612,
16,
819,
16,
1801,
300,
404,
13,
3815,
273,
389,
723,
12,
1612,
13,
5478,
5763,
273,
389,
1897,
12,
14462,
13,
405,
261,
2890,
6315,
2819,
300,
404,
300,
3504,
300,
1699,
1359,
13,
1045,
273,
1407,
18,
2626,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
12,
2890,
16,
733,
16,
1407,
16,
3504,
16,
1699,
1359,
16,
819,
16,
1801,
4672,
1801,
273,
1801,
397,
404,
1081,
350,
273,
389,
350,
12,
1612,
13,
309,
1081,
350,
316,
819,
30,
1407,
18,
2626,
24899,
31347,
12,
1612,
3719,
365,
6315,
10543,
273,
1053,
365,
6315,
11018,
273,
1083,
327,
2071,
273,
365,
6315,
12715,
12,
1612,
16,
819,
16,
1801,
300,
404,
13,
3815,
273,
389,
723,
12,
1612,
13,
5478,
5763,
273,
389,
1897,
12,
14462,
13,
405,
261,
2890,
6315,
2819,
300,
404,
300,
3504,
300,
1699,
1359,
13,
1045,
273,
1407,
18,
2626,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super(Account, self).write(cr, uid,ids, vals, context)
|
super(account_account, self).write(cr, uid,ids, vals, context)
|
def write(self, cr, uid, ids, vals, context=None, check=True, update_check=True): res_temp={} if vals.has_key('name'): if not vals.has_key('company_id'): vals['company_id']=self.browse(cr,uid,ids)[0].company_id.id name=self.search(cr,uid,[('name','ilike',vals['name']),('company_id','=',vals['company_id'])]) if name: raise osv.except_osv('Error', 'Same Account Name is Already present !') if vals.has_key('user_type'): obj=self.pool.get('account.account.type').browse(cr,uid,vals['user_type']) if obj.code in ('asset','expense'): vals['type1'] = 'dr' elif obj.code in ('income','liability') : vals['type1'] = 'cr' else: vals['type1'] = 'none' super(Account, self).write(cr, uid,ids, vals, context) if vals.has_key('open_bal'): self_obj= self.browse(cr,uid,ids) move_pool=self.pool.get('account.move') if vals: for obj in self_obj: flg=0 if obj.journal_id and obj.journal_id.type == 'situation': move=move_pool.search(cr,uid,[('journal_id','=',obj.journal_id.id)]) if move: move_obj=move_pool.browse(cr,uid,move[0]) move=move[0] else: name = self.pool.get('ir.sequence').get_id(cr, uid, obj.journal_id.sequence_id.id) move_data = {'name': name, 'journal_id': obj.journal_id.id} move=self.pool.get('account.move').create(cr,uid,move_data) move_obj=move_pool.browse(cr,uid,move) move_line_data={'name':obj.journal_id.name, 'debit':obj.debit or 0.0, 'credit':obj.credit or 0.0, 'account_id':obj.id, 'move_id':move, 'journal_id':obj.journal_id.id, 'period_id':move_obj.period_id.id, } if obj.type1: if obj.type1 == 'dr': move_line_data['debit'] = obj.open_bal elif obj.type1 == 'cr': move_line_data['credit'] = obj.open_bal if move_obj and move: for move_line in move_obj.line_id: if move_line.account_id.id == obj.id: if move_line_data['debit'] == 0.0 and move_line_data['credit']== 0.0: self.pool.get('account.move.line').unlink(cr,uid,[move_line.id]) else: self.pool.get('account.move.line').write(cr,uid,[move_line.id],move_line_data) flg=1 if not flg: self.pool.get('account.move.line').create(cr,uid,move_line_data) return True
|
76bd09b11c05370bced5371ae8dda46aff02223d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/76bd09b11c05370bced5371ae8dda46aff02223d/account.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5773,
16,
819,
33,
7036,
16,
866,
33,
5510,
16,
1089,
67,
1893,
33,
5510,
4672,
400,
67,
5814,
12938,
309,
5773,
18,
5332,
67,
856,
2668,
529,
11,
4672,
309,
486,
5773,
18,
5332,
67,
856,
2668,
16840,
67,
350,
11,
4672,
5773,
3292,
16840,
67,
350,
3546,
33,
2890,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
25146,
20,
8009,
16840,
67,
350,
18,
350,
508,
33,
2890,
18,
3072,
12,
3353,
16,
1911,
16,
63,
2668,
529,
17023,
330,
2547,
2187,
4524,
3292,
529,
3546,
3631,
2668,
16840,
67,
350,
17023,
33,
2187,
4524,
3292,
16840,
67,
350,
19486,
5717,
309,
508,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
2668,
668,
2187,
296,
8650,
6590,
1770,
353,
17009,
3430,
401,
6134,
309,
5773,
18,
5332,
67,
856,
2668,
1355,
67,
723,
11,
4672,
1081,
33,
2890,
18,
6011,
18,
588,
2668,
4631,
18,
4631,
18,
723,
16063,
25731,
12,
3353,
16,
1911,
16,
4524,
3292,
1355,
67,
723,
19486,
309,
1081,
18,
710,
316,
7707,
9406,
17023,
338,
1907,
307,
11,
4672,
5773,
3292,
723,
21,
3546,
273,
296,
3069,
11,
1327,
1081,
18,
710,
316,
7707,
267,
5624,
17023,
549,
2967,
6134,
294,
5773,
3292,
723,
21,
3546,
273,
296,
3353,
11,
469,
30,
5773,
3292,
723,
21,
3546,
273,
296,
6102,
11,
2240,
12,
4631,
67,
4631,
16,
365,
2934,
2626,
12,
3353,
16,
4555,
16,
2232,
16,
5773,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5773,
16,
819,
33,
7036,
16,
866,
33,
5510,
16,
1089,
67,
1893,
33,
5510,
4672,
400,
67,
5814,
12938,
309,
5773,
18,
5332,
67,
856,
2668,
529,
11,
4672,
309,
486,
5773,
18,
5332,
67,
856,
2668,
16840,
67,
350,
11,
4672,
5773,
3292,
16840,
67,
350,
3546,
33,
2890,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
25146,
20,
8009,
16840,
67,
350,
18,
350,
508,
33,
2890,
18,
3072,
12,
3353,
16,
1911,
16,
63,
2668,
529,
17023,
330,
2547,
2187,
4524,
3292,
529,
3546,
3631,
2668,
16840,
67,
350,
17023,
33,
2187,
4524,
3292,
16840,
67,
350,
19486,
5717,
309,
508,
30,
1002,
1140,
2
] |
cr.execute("SELECT crm_case.user_id, 'busy' as status \ FROM crm_meeting meeting, crm_case \ WHERE meeting.inherit_case_id = crm_case.id \ and crm_case.date <= %s and crm_case.date_deadline >= %s and crm_case.user_id = ANY(%s) and meeting.show_as = %s",
|
cr.execute("SELECT m.user_id, 'busy' as status \ FROM crm_meeting m\ where m.date <= %s and m.date_deadline >= %s \ and m.user_id = ANY(%s) and m.show_as = %s",
|
def _get_user_avail(self, cr, uid, ids, context=None): current_datetime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') res = super(res_users, self)._get_user_avail(cr, uid, ids, context) cr.execute("SELECT crm_case.user_id, 'busy' as status \ FROM crm_meeting meeting, crm_case \ WHERE meeting.inherit_case_id = crm_case.id \ and crm_case.date <= %s and crm_case.date_deadline >= %s and crm_case.user_id = ANY(%s) and meeting.show_as = %s", (current_datetime, current_datetime , ids, 'busy')) result = cr.dictfetchall() for user_data in result: user_id = user_data['user_id'] status = user_data['status'] res.update({user_id:status}) return res
|
7314cc0c9bbccb251ea85689068e11d75a553b57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/7314cc0c9bbccb251ea85689068e11d75a553b57/crm_meeting.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1355,
67,
842,
671,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
783,
67,
6585,
273,
3314,
18,
6585,
18,
3338,
7675,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6134,
400,
273,
2240,
12,
455,
67,
5577,
16,
365,
2934,
67,
588,
67,
1355,
67,
842,
671,
12,
3353,
16,
4555,
16,
3258,
16,
819,
13,
4422,
18,
8837,
2932,
4803,
312,
18,
1355,
67,
350,
16,
296,
9274,
93,
11,
487,
1267,
521,
4571,
4422,
81,
67,
3501,
21747,
312,
64,
1625,
312,
18,
712,
1648,
738,
87,
471,
312,
18,
712,
67,
22097,
1369,
1545,
738,
87,
521,
471,
312,
18,
1355,
67,
350,
273,
16743,
9275,
87,
13,
471,
312,
18,
4500,
67,
345,
273,
738,
87,
3113,
261,
2972,
67,
6585,
16,
783,
67,
6585,
269,
3258,
16,
296,
9274,
93,
26112,
563,
273,
4422,
18,
1576,
5754,
454,
1435,
364,
729,
67,
892,
316,
563,
30,
729,
67,
350,
273,
729,
67,
892,
3292,
1355,
67,
350,
3546,
1267,
273,
729,
67,
892,
3292,
2327,
3546,
400,
18,
2725,
12590,
1355,
67,
350,
30,
2327,
6792,
327,
400,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1355,
67,
842,
671,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
783,
67,
6585,
273,
3314,
18,
6585,
18,
3338,
7675,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6134,
400,
273,
2240,
12,
455,
67,
5577,
16,
365,
2934,
67,
588,
67,
1355,
67,
842,
671,
12,
3353,
16,
4555,
16,
3258,
16,
819,
13,
4422,
18,
8837,
2932,
4803,
312,
18,
1355,
67,
350,
16,
296,
9274,
93,
11,
487,
1267,
521,
4571,
4422,
81,
67,
3501,
21747,
312,
64,
1625,
312,
18,
712,
1648,
738,
87,
471,
312,
18,
712,
67,
22097,
1369,
1545,
738,
87,
521,
471,
312,
18,
2
] |
print >> r, kid print >> r, "" r.close() f.close()
|
print >> roster, kid print >> roster, "" roster.close() persons.close()
|
def createPersons(): """Create a randomly generated persons.csv in the current directory. Format of the file: id, surname, name, groups, dob, comments where groups is a space separated list of groups this pupils is a member of """ f = open("persons.csv", "w") r = open("roster.txt", "w") names = sets.Set() subNames = subjects.keys() subNames.extend(subjects.keys()) team = 1 kids = [] for i in range(nr_pupils): year = i / (nr_pupils/years) + 1 groups = ["%s%d" % (subj, year) for subj in subjects.keys()] birthday = random_date(datetime.date(pupil_age_end - year + 1, 1, 1), datetime.date(pupil_age_end - year + 2, 1, 1)) for counter in range(20): surname, name = random_name() full = "%s %s" % (name, surname) if full not in names: break names.add(full) kids.append(full) groups_str = 'year%s %s' % (year, 'pupils') print >> f, '"","%s","%s","%s","%s",""' % (surname, name, groups_str, birthday) for count in range(0, nr_teachers): period = count if count > 3: team = 2 period = period - 4 students = kids[31:] else: students = kids[:30] for counter in range(20): surname, name = random_name() full = "%s %s" % (name, surname) if full not in names: break names.add(full) birthday = random_date(datetime.date(teacher_age_start, 1, 1), datetime.date(teacher_age_end, 1, 1)) print >> f, '"","%s","%s","%s teachers","%s",""' % (surname, name, subNames[count], birthday) timetable[count][period] = '%s %s | %s %s' % (\ subjects[subNames[count]], team, name, surname) print >> r, '%s %s' % (\ subjects[subNames[count]], team) for kid in students: print >> r, kid print >> r, "" r.close() f.close()
|
a1ba8dcd482f9a6a93ef17ceb8b89a53fa72b1ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/a1ba8dcd482f9a6a93ef17ceb8b89a53fa72b1ab/datagen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
8346,
87,
13332,
3536,
1684,
279,
20153,
4374,
6175,
87,
18,
6715,
316,
326,
783,
1867,
18,
225,
4077,
434,
326,
585,
30,
612,
16,
17007,
16,
508,
16,
3252,
16,
741,
70,
16,
5678,
1625,
3252,
353,
279,
3476,
8936,
666,
434,
3252,
333,
293,
416,
14573,
353,
279,
3140,
434,
3536,
284,
273,
1696,
2932,
12479,
87,
18,
6715,
3113,
315,
91,
7923,
436,
273,
1696,
2932,
303,
8190,
18,
5830,
3113,
315,
91,
7923,
1257,
273,
1678,
18,
694,
1435,
720,
1557,
273,
16782,
18,
2452,
1435,
720,
1557,
18,
14313,
12,
7857,
87,
18,
2452,
10756,
5927,
273,
404,
417,
2232,
273,
5378,
225,
364,
277,
316,
1048,
12,
11611,
67,
84,
416,
14573,
4672,
3286,
273,
277,
342,
261,
11611,
67,
84,
416,
14573,
19,
29391,
13,
397,
404,
3252,
273,
8247,
9,
87,
9,
72,
6,
738,
261,
1717,
78,
16,
3286,
13,
364,
15333,
316,
16782,
18,
2452,
1435,
65,
29950,
273,
2744,
67,
712,
12,
6585,
18,
712,
12,
84,
416,
330,
67,
410,
67,
409,
300,
3286,
397,
404,
16,
404,
16,
404,
3631,
3314,
18,
712,
12,
84,
416,
330,
67,
410,
67,
409,
300,
3286,
397,
576,
16,
404,
16,
404,
3719,
225,
364,
3895,
316,
1048,
12,
3462,
4672,
17007,
16,
508,
273,
2744,
67,
529,
1435,
1983,
273,
2213,
87,
738,
87,
6,
738,
261,
529,
16,
17007,
13,
309,
1983,
486,
316,
1257,
30,
898,
225,
1257,
18,
1289,
12,
2854,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
8346,
87,
13332,
3536,
1684,
279,
20153,
4374,
6175,
87,
18,
6715,
316,
326,
783,
1867,
18,
225,
4077,
434,
326,
585,
30,
612,
16,
17007,
16,
508,
16,
3252,
16,
741,
70,
16,
5678,
1625,
3252,
353,
279,
3476,
8936,
666,
434,
3252,
333,
293,
416,
14573,
353,
279,
3140,
434,
3536,
284,
273,
1696,
2932,
12479,
87,
18,
6715,
3113,
315,
91,
7923,
436,
273,
1696,
2932,
303,
8190,
18,
5830,
3113,
315,
91,
7923,
1257,
273,
1678,
18,
694,
1435,
720,
1557,
273,
16782,
18,
2452,
1435,
720,
1557,
18,
14313,
12,
7857,
87,
18,
2452,
10756,
5927,
273,
404,
417,
2232,
273,
5378,
225,
364,
277,
316,
1048,
12,
11611,
67,
84,
416,
2
] |
winfo.download_count += 1 / len(words)
|
winfo.download_count += 1.0 / len(words)
|
def _updateDownloadStatistics(self, document, words): cursor = self._cnx.cursor() document.download_count = max(0, document.download_count) + 1 document.commit(cursor, update=True) db_document_id = document.db_document_id scores = {} wordInfo = {} for word in words: scores[word] = DocumentScore.selectOrInsertWhere(cursor, db_document_id=db_document_id, word=word)[0] wordInfo[word] = Word.selectOrInsertWhere(cursor, word=word)[0]
|
2de3f2496194fc24ba18f8b6b269e4b4dfd7d393 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/2de3f2496194fc24ba18f8b6b269e4b4dfd7d393/querier.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
7109,
8569,
12,
2890,
16,
1668,
16,
4511,
4672,
3347,
273,
365,
6315,
10305,
92,
18,
9216,
1435,
1668,
18,
7813,
67,
1883,
273,
943,
12,
20,
16,
1668,
18,
7813,
67,
1883,
13,
397,
404,
1668,
18,
7371,
12,
9216,
16,
1089,
33,
5510,
13,
1319,
67,
5457,
67,
350,
273,
1668,
18,
1966,
67,
5457,
67,
350,
8474,
273,
2618,
2076,
966,
273,
2618,
364,
2076,
316,
4511,
30,
8474,
63,
1095,
65,
273,
4319,
7295,
18,
4025,
1162,
4600,
5262,
12,
9216,
16,
1319,
67,
5457,
67,
350,
33,
1966,
67,
5457,
67,
350,
16,
2076,
33,
1095,
25146,
20,
65,
2076,
966,
63,
1095,
65,
273,
9926,
18,
4025,
1162,
4600,
5262,
12,
9216,
16,
2076,
33,
1095,
25146,
20,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7109,
8569,
12,
2890,
16,
1668,
16,
4511,
4672,
3347,
273,
365,
6315,
10305,
92,
18,
9216,
1435,
1668,
18,
7813,
67,
1883,
273,
943,
12,
20,
16,
1668,
18,
7813,
67,
1883,
13,
397,
404,
1668,
18,
7371,
12,
9216,
16,
1089,
33,
5510,
13,
1319,
67,
5457,
67,
350,
273,
1668,
18,
1966,
67,
5457,
67,
350,
8474,
273,
2618,
2076,
966,
273,
2618,
364,
2076,
316,
4511,
30,
8474,
63,
1095,
65,
273,
4319,
7295,
18,
4025,
1162,
4600,
5262,
12,
9216,
16,
1319,
67,
5457,
67,
350,
33,
1966,
67,
5457,
67,
350,
16,
2076,
33,
1095,
25146,
20,
65,
2076,
966,
63,
1095,
65,
273,
9926,
18,
4025,
1162,
4600,
5262,
2
] |
cr.execute('ALTER TABLE "%s" DROP COLUMN "%s"'% (self._table, k))
|
cr.execute('ALTER TABLE "%s" DROP COLUMN "%s" CASCADE'% (self._table, k))
|
f_pg_def = res[0]
|
44bd42aabd71dc0826925a1d97110f8329652c26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/44bd42aabd71dc0826925a1d97110f8329652c26/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
284,
67,
8365,
67,
536,
273,
400,
63,
20,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
284,
67,
8365,
67,
536,
273,
400,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
l = f.split(os.sep) l.remove(dir) aname = os.sep.join(l)
|
aname = f.replace(dir, '').lstrip(os.sep)
|
def main(argv): try: opts, args = getopt(argv, "hd:", ["help", "dir="]) except GetoptError: usage() return -1 dir = None for opt, arg in opts: if opt in ("-h", "--help"): usage() return 0 elif opt in ("-d", "--dir"): dir = arg else: print >> sys.stderr, 'Unknown argument: ' + opt return -1 if dir is None: usage() return -1 if not os.path.isdir(dir): print >> sys.stderr, dir + ' is not a directory' return -1 zname = dir + os.extsep + 'zip' z = ZipFile(zname, 'w', ZIP_DEFLATED) files = Walk(dir, 1) for f in files: if f.find('.svn') < 0: if f.startswith(dir): l = f.split(os.sep) l.remove(dir) aname = os.sep.join(l) z.write(f, aname) z.close() return 0
|
ab98e0e97b71b04175aa12625815bc950ad0945d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9643/ab98e0e97b71b04175aa12625815bc950ad0945d/zipdir.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
775,
30,
1500,
16,
833,
273,
336,
3838,
12,
19485,
16,
315,
22057,
2773,
16,
8247,
5201,
3113,
315,
1214,
1546,
5717,
1335,
968,
3838,
668,
30,
4084,
1435,
327,
300,
21,
225,
1577,
273,
599,
225,
364,
2153,
16,
1501,
316,
1500,
30,
309,
2153,
316,
7566,
17,
76,
3113,
5238,
5201,
6,
4672,
4084,
1435,
327,
374,
1327,
2153,
316,
7566,
17,
72,
3113,
5238,
1214,
6,
4672,
1577,
273,
1501,
469,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
4874,
1237,
30,
296,
397,
2153,
327,
300,
21,
225,
309,
1577,
353,
599,
30,
4084,
1435,
327,
300,
21,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
1214,
4672,
1172,
1671,
2589,
18,
11241,
16,
1577,
397,
296,
353,
486,
279,
1867,
11,
327,
300,
21,
225,
998,
529,
273,
1577,
397,
1140,
18,
408,
10814,
397,
296,
4450,
11,
998,
273,
18364,
12,
94,
529,
16,
296,
91,
2187,
18277,
67,
12904,
48,
6344,
13,
225,
1390,
273,
7564,
12,
1214,
16,
404,
13,
364,
284,
316,
1390,
30,
309,
284,
18,
4720,
2668,
18,
31505,
6134,
411,
374,
30,
309,
284,
18,
17514,
1918,
12,
1214,
4672,
392,
339,
273,
284,
18,
2079,
12,
1214,
16,
875,
2934,
80,
6406,
12,
538,
18,
10814,
13,
998,
18,
2626,
12,
74,
16,
392,
339,
13,
225,
998,
18,
4412,
1435,
225,
327,
374,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
775,
30,
1500,
16,
833,
273,
336,
3838,
12,
19485,
16,
315,
22057,
2773,
16,
8247,
5201,
3113,
315,
1214,
1546,
5717,
1335,
968,
3838,
668,
30,
4084,
1435,
327,
300,
21,
225,
1577,
273,
599,
225,
364,
2153,
16,
1501,
316,
1500,
30,
309,
2153,
316,
7566,
17,
76,
3113,
5238,
5201,
6,
4672,
4084,
1435,
327,
374,
1327,
2153,
316,
7566,
17,
72,
3113,
5238,
1214,
6,
4672,
1577,
273,
1501,
469,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
4874,
1237,
30,
296,
397,
2153,
327,
300,
21,
225,
309,
1577,
353,
599,
30,
4084,
1435,
327,
300,
21,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
1214,
4672,
2
] |
sys.exit(False)
|
sys.exit(1)
|
def searchseries(t, opts, series_season_ep): global SID series_name='' if opts.configure != "" and override.has_key(series_season_ep[0].lower()): series_name=override[series_season_ep[0].lower()][0] # Override series name else: series_name=series_season_ep[0] # Leave the series name alone try: # Search for the series or series & season or series & season & episode if len(series_season_ep)>1: if len(series_season_ep)>2: # series & season & episode seriesfound=search_for_series(t, series_name)[ int(series_season_ep[1]) ][ int(series_season_ep[2]) ] else: seriesfound=search_for_series(t, series_name)[ int(series_season_ep[1]) ] # series & season else: seriesfound=search_for_series(t, series_name) # Series only except tvdb_shownotfound: # No such show found. # Use the show-name from the files name, and None as the ep name sys.stderr.write("! Warning: Series (%s) not found\n" % ( series_name ) ) sys.exit(False) except (tvdb_seasonnotfound, tvdb_episodenotfound, tvdb_attributenotfound): # The season, episode or name wasn't found, but the show was. # Use the corrected show-name, but no episode name. if len(series_season_ep)>2: sys.stderr.write("! Warning: For Series (%s), season (%s) or Episode (%s) not found \n" % ( series_name, series_season_ep[1], series_season_ep[2] ) ) else: sys.stderr.write("! Warning: For Series (%s), season (%s) not found \n" % ( series_name, series_season_ep[1] ) ) sys.exit(False) except tvdb_error, errormsg: # Error communicating with thetvdb.com if SID == True: # Maybe the digits were a series name (e.g. 90210) SID = False return searchseries(t, opts, series_season_ep) sys.stderr.write( "! Warning: Error contacting www.thetvdb.com:\n%s\n" % (errormsg) ) sys.exit(False) except tvdb_userabort, errormsg: # User aborted selection (q or ^c) print "\n", errormsg sys.exit(False) else: if opts.raw==True: print "="*20 print "Raw Series Data:\n" if len(series_season_ep)>1: print t[ series_name ][ int(series_season_ep[1]) ] else: print t[ series_name ] print "="*20 return(seriesfound)
|
5be61520a0a3d60abf11f719e6c9c43d73baab36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/5be61520a0a3d60abf11f719e6c9c43d73baab36/ttvdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
10222,
12,
88,
16,
1500,
16,
4166,
67,
30321,
67,
881,
4672,
2552,
23150,
4166,
67,
529,
2218,
11,
309,
1500,
18,
14895,
480,
1408,
471,
3849,
18,
5332,
67,
856,
12,
10222,
67,
30321,
67,
881,
63,
20,
8009,
8167,
1435,
4672,
4166,
67,
529,
33,
10601,
63,
10222,
67,
30321,
67,
881,
63,
20,
8009,
8167,
1435,
6362,
20,
65,
468,
1439,
4166,
508,
469,
30,
4166,
67,
529,
33,
10222,
67,
30321,
67,
881,
63,
20,
65,
468,
21131,
326,
4166,
508,
24068,
775,
30,
468,
5167,
364,
326,
4166,
578,
4166,
473,
15874,
578,
4166,
473,
15874,
473,
17054,
309,
562,
12,
10222,
67,
30321,
67,
881,
13,
34,
21,
30,
309,
562,
12,
10222,
67,
30321,
67,
881,
13,
34,
22,
30,
468,
4166,
473,
15874,
473,
17054,
4166,
7015,
33,
3072,
67,
1884,
67,
10222,
12,
88,
16,
4166,
67,
529,
25146,
509,
12,
10222,
67,
30321,
67,
881,
63,
21,
5717,
308,
63,
509,
12,
10222,
67,
30321,
67,
881,
63,
22,
5717,
308,
469,
30,
4166,
7015,
33,
3072,
67,
1884,
67,
10222,
12,
88,
16,
4166,
67,
529,
25146,
509,
12,
10222,
67,
30321,
67,
881,
63,
21,
5717,
308,
468,
4166,
473,
15874,
469,
30,
4166,
7015,
33,
3072,
67,
1884,
67,
10222,
12,
88,
16,
4166,
67,
529,
13,
468,
9225,
1338,
1335,
13521,
1966,
67,
4500,
902,
7015,
30,
468,
2631,
4123,
2405,
1392,
18,
468,
2672,
326,
2405,
17,
529,
628,
326,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
10222,
12,
88,
16,
1500,
16,
4166,
67,
30321,
67,
881,
4672,
2552,
23150,
4166,
67,
529,
2218,
11,
309,
1500,
18,
14895,
480,
1408,
471,
3849,
18,
5332,
67,
856,
12,
10222,
67,
30321,
67,
881,
63,
20,
8009,
8167,
1435,
4672,
4166,
67,
529,
33,
10601,
63,
10222,
67,
30321,
67,
881,
63,
20,
8009,
8167,
1435,
6362,
20,
65,
468,
1439,
4166,
508,
469,
30,
4166,
67,
529,
33,
10222,
67,
30321,
67,
881,
63,
20,
65,
468,
21131,
326,
4166,
508,
24068,
775,
30,
468,
5167,
364,
326,
4166,
578,
4166,
473,
15874,
578,
4166,
473,
15874,
473,
17054,
309,
562,
12,
10222,
67,
30321,
67,
881,
13,
34,
21,
30,
309,
562,
2
] |
def getPartners(self, linkName): ''' gets the list of partners (in case of a binary relation) or list of lists of partners (in case of a higher-arity relation) for the given link name ''' return self.partners.get(linkName, [])
|
def getPartners(self, linkName): ''' gets the list of partners (in case of a binary relation) or list of lists of partners (in case of a higher-arity relation) for the given link name ''' return self.partners.get(linkName, [])
|
def getPartners(self, linkName): ''' gets the list of partners (in case of a binary relation) or list of lists of partners (in case of a higher-arity relation) for the given link name ''' return self.partners.get(linkName, []) def name(self): return "%s%d" % (self.objtype, self.guid) def hasLink(self, link): if not link.relationName in self.links: return False return link in self.links[link.relationName]
|
feb2b56b0b93d2bb82943112d2997585b142cc89 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10261/feb2b56b0b93d2bb82943112d2997585b142cc89/datagen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13657,
9646,
12,
2890,
16,
1692,
461,
4672,
9163,
5571,
326,
666,
434,
1087,
9646,
261,
267,
648,
434,
279,
3112,
2533,
13,
578,
666,
434,
6035,
434,
1087,
9646,
261,
267,
648,
434,
279,
10478,
17,
20498,
2533,
13,
364,
326,
864,
1692,
508,
9163,
327,
365,
18,
2680,
9646,
18,
588,
12,
1232,
461,
16,
5378,
13,
225,
1652,
508,
12,
2890,
4672,
327,
2213,
87,
9,
72,
6,
738,
261,
2890,
18,
2603,
723,
16,
365,
18,
14066,
13,
225,
1652,
711,
2098,
12,
2890,
16,
1692,
4672,
309,
486,
1692,
18,
5488,
461,
316,
365,
18,
7135,
30,
327,
1083,
327,
1692,
316,
365,
18,
7135,
63,
1232,
18,
5488,
461,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13657,
9646,
12,
2890,
16,
1692,
461,
4672,
9163,
5571,
326,
666,
434,
1087,
9646,
261,
267,
648,
434,
279,
3112,
2533,
13,
578,
666,
434,
6035,
434,
1087,
9646,
261,
267,
648,
434,
279,
10478,
17,
20498,
2533,
13,
364,
326,
864,
1692,
508,
9163,
327,
365,
18,
2680,
9646,
18,
588,
12,
1232,
461,
16,
5378,
13,
225,
1652,
508,
12,
2890,
4672,
327,
2213,
87,
9,
72,
6,
738,
261,
2890,
18,
2603,
723,
16,
365,
18,
14066,
13,
225,
1652,
711,
2098,
12,
2890,
16,
1692,
4672,
309,
486,
1692,
18,
5488,
461,
316,
365,
18,
7135,
30,
327,
1083,
327,
1692,
316,
365,
18,
7135,
63,
1232,
18,
5488,
461,
65,
225,
2,
-100
] |
def togglemsg(self, irc, msg, args): """takes no arguments Enable/Disable private mssages from the bot """ user = self.check_auth(irc, msg, args) if not user: return if capab(user, 'botmsg'): user.removeCapability('botmsg') irc.reply("Disabled") else: user.addCapability('botmsg') irc.reply("Enabled") togglemsg = wrap(togglemsg)
|
def togglemsg(self, irc, msg, args): """takes no arguments Enable/Disable private mssages from the bot """ user = self.check_auth(irc, msg, args) if not user: return if capab(user, 'botmsg'): user.removeCapability('botmsg') irc.reply("Disabled") else: user.addCapability('botmsg') irc.reply("Enabled")
|
353e8a3cb6570f78f25b8d8c4070231630fbefe3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3106/353e8a3cb6570f78f25b8d8c4070231630fbefe3/plugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
3576,
12,
2890,
16,
277,
1310,
16,
1234,
16,
833,
4672,
3536,
88,
3223,
1158,
1775,
9677,
19,
11879,
3238,
312,
1049,
1023,
628,
326,
2512,
3536,
729,
273,
365,
18,
1893,
67,
1944,
12,
481,
71,
16,
1234,
16,
833,
13,
309,
486,
729,
30,
327,
309,
3523,
378,
12,
1355,
16,
296,
4819,
3576,
11,
4672,
729,
18,
4479,
17035,
2668,
4819,
3576,
6134,
277,
1310,
18,
10629,
2932,
8853,
7923,
469,
30,
729,
18,
1289,
17035,
2668,
4819,
3576,
6134,
277,
1310,
18,
10629,
2932,
1526,
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,
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19,
11879,
3238,
312,
1049,
1023,
628,
326,
2512,
3536,
729,
273,
365,
18,
1893,
67,
1944,
12,
481,
71,
16,
1234,
16,
833,
13,
309,
486,
729,
30,
327,
309,
3523,
378,
12,
1355,
16,
296,
4819,
3576,
11,
4672,
729,
18,
4479,
17035,
2668,
4819,
3576,
6134,
277,
1310,
18,
10629,
2932,
8853,
7923,
469,
30,
729,
18,
1289,
17035,
2668,
4819,
3576,
6134,
277,
1310,
18,
10629,
2932,
1526,
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
] |
|
raise error, "illegal character in group name"
|
raise error, "bad character in group name"
|
def parse_template(source, pattern): # parse 're' replacement string into list of literals and # group references s = Tokenizer(source) p = [] a = p.append while 1: this = s.get() if this is None: break # end of replacement string if this and this[0] == "\\": # group if this == "\\g": name = "" if s.match("<"): while 1: char = s.get() if char is None: raise error, "unterminated group name" if char == ">": break name = name + char if not name: raise error, "bad group name" try: index = int(name) except ValueError: if not isname(name): raise error, "illegal character in group name" try: index = pattern.groupindex[name] except KeyError: raise IndexError, "unknown group name" a((MARK, index)) elif len(this) > 1 and this[1] in DIGITS: code = None while 1: group = _group(this, pattern.groups+1) if group: if (s.next not in DIGITS or not _group(this + s.next, pattern.groups+1)): code = MARK, int(group) break elif s.next in OCTDIGITS: this = this + s.get() else: break if not code: this = this[1:] code = LITERAL, int(this[-6:], 8) & 0xff a(code) else: try: a(ESCAPES[this]) except KeyError: for c in this: a((LITERAL, ord(c))) else: a((LITERAL, ord(this))) return p
|
9f35412d2de02eca39105b8e038352389fa2caa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9f35412d2de02eca39105b8e038352389fa2caa3/sre_parse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3202,
12,
3168,
16,
1936,
4672,
468,
1109,
296,
266,
11,
6060,
533,
1368,
666,
434,
18228,
471,
468,
1041,
5351,
272,
273,
26702,
12,
3168,
13,
293,
273,
5378,
279,
273,
293,
18,
6923,
1323,
404,
30,
333,
273,
272,
18,
588,
1435,
309,
333,
353,
599,
30,
898,
468,
679,
434,
6060,
533,
309,
333,
471,
333,
63,
20,
65,
422,
14520,
30,
468,
1041,
309,
333,
422,
8422,
75,
6877,
508,
273,
1408,
309,
272,
18,
1916,
2932,
32,
6,
4672,
1323,
404,
30,
1149,
273,
272,
18,
588,
1435,
309,
1149,
353,
599,
30,
1002,
555,
16,
315,
318,
29133,
1041,
508,
6,
309,
1149,
422,
14675,
30,
898,
508,
273,
508,
397,
1149,
309,
486,
508,
30,
1002,
555,
16,
315,
8759,
1041,
508,
6,
775,
30,
770,
273,
509,
12,
529,
13,
1335,
2068,
30,
309,
486,
353,
529,
12,
529,
4672,
1002,
555,
16,
315,
8759,
3351,
316,
1041,
508,
6,
775,
30,
770,
273,
1936,
18,
1655,
1615,
63,
529,
65,
1335,
4999,
30,
1002,
10195,
16,
315,
8172,
1041,
508,
6,
279,
12443,
12693,
16,
770,
3719,
1327,
562,
12,
2211,
13,
405,
404,
471,
333,
63,
21,
65,
316,
24313,
10158,
30,
981,
273,
599,
1323,
404,
30,
1041,
273,
389,
1655,
12,
2211,
16,
1936,
18,
4650,
15,
21,
13,
309,
1041,
30,
309,
261,
87,
18,
4285,
486,
316,
24313,
10158,
578,
486,
389,
1655,
12,
2211,
397,
272,
18,
4285,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3202,
12,
3168,
16,
1936,
4672,
468,
1109,
296,
266,
11,
6060,
533,
1368,
666,
434,
18228,
471,
468,
1041,
5351,
272,
273,
26702,
12,
3168,
13,
293,
273,
5378,
279,
273,
293,
18,
6923,
1323,
404,
30,
333,
273,
272,
18,
588,
1435,
309,
333,
353,
599,
30,
898,
468,
679,
434,
6060,
533,
309,
333,
471,
333,
63,
20,
65,
422,
14520,
30,
468,
1041,
309,
333,
422,
8422,
75,
6877,
508,
273,
1408,
309,
272,
18,
1916,
2932,
32,
6,
4672,
1323,
404,
30,
1149,
273,
272,
18,
588,
1435,
309,
1149,
353,
599,
30,
1002,
555,
16,
315,
318,
29133,
1041,
508,
6,
309,
1149,
422,
14675,
30,
898,
508,
273,
508,
2
] |
cpu_nanny_cmd = "..\python ..\win_cpu_nanny.py "+str(os.getpid())+" "+str(cpuallowed)+" "+str(frequency)
|
if os.path.exists('..\python') or os.path.exists('..\python.exe'): pythonpath = '..\python' else: pythonpath = 'python' nannypath = 'win_cpu_nanny.py' cpu_nanny_cmd = pythonpath+" "+nannypath+" "+str(os.getpid())+" "+str(cpuallowed)+" "+str(frequency)
|
def monitor_cpu_disk_and_mem(cpuallowed, diskallowed, memallowed): if ostype == 'Linux' or ostype == 'Darwin': # The frequency constant here seems to effect the "burstiness" of the # cpu use but not the overall amount. do_forked_monitor(.1, cpuallowed, diskallowed, memallowed) elif ostype == 'Windows': frequency = .2 # start the CPU nanny and tell them our pid and limit... # NOTE: hardcoding the fact that python is in our parent directory... cpu_nanny_cmd = "..\python ..\win_cpu_nanny.py "+str(os.getpid())+" "+str(cpuallowed)+" "+str(frequency) # need to set the cwd so that we know where to find it. Let's assume it's # in the same directory we are in nannydir = os.path.dirname(sys.argv[0]) # fix it if there is no dir... if nannydir == '': nannydir="." # execute the nanny... junkprocessinfo = subprocess.Popen(cpu_nanny_cmd, cwd=nannydir) # our nanny should outlive us, so it's okay to leave it alone... # now we set up a memory / disk thread nanny... WindowsNannyThread(frequency,diskallowed, memallowed).start() else: raise UnsupportedSystemException, "Unsupported system type: '"+osrealtype+"' (alias: "+ostype+")"
|
cefc226bbac5154c7332bc4b6c61905aeee3a642 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7272/cefc226bbac5154c7332bc4b6c61905aeee3a642/nonportable.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6438,
67,
11447,
67,
10863,
67,
464,
67,
3917,
12,
4057,
1462,
3788,
16,
4234,
8151,
16,
1663,
8151,
4672,
225,
309,
320,
27273,
422,
296,
19475,
11,
578,
320,
27273,
422,
296,
40,
19992,
4278,
468,
1021,
8670,
5381,
2674,
12001,
358,
5426,
326,
315,
70,
18593,
6336,
6,
434,
326,
468,
8326,
999,
1496,
486,
326,
13914,
3844,
18,
741,
67,
23335,
329,
67,
10259,
10604,
21,
16,
3283,
1462,
3788,
16,
4234,
8151,
16,
1663,
8151,
13,
225,
1327,
320,
27273,
422,
296,
10399,
4278,
8670,
273,
263,
22,
225,
468,
787,
326,
12154,
290,
1072,
93,
471,
9276,
2182,
3134,
4231,
471,
1800,
2777,
468,
5219,
30,
7877,
2014,
326,
5410,
716,
5790,
353,
316,
3134,
982,
1867,
2777,
309,
1140,
18,
803,
18,
1808,
2668,
838,
64,
8103,
6134,
578,
1140,
18,
803,
18,
1808,
2668,
838,
64,
8103,
18,
14880,
11,
4672,
5790,
803,
273,
11597,
64,
8103,
11,
469,
30,
5790,
803,
273,
296,
8103,
11,
565,
290,
1072,
93,
803,
273,
296,
8082,
67,
11447,
67,
82,
1072,
93,
18,
2074,
11,
225,
8326,
67,
82,
1072,
93,
67,
4172,
273,
5790,
803,
9078,
13773,
82,
1072,
93,
803,
9078,
13773,
701,
12,
538,
18,
588,
6610,
10756,
9078,
13773,
701,
12,
4057,
1462,
3788,
13,
9078,
13773,
701,
12,
14092,
13,
468,
1608,
358,
444,
326,
7239,
1427,
716,
732,
5055,
1625,
358,
1104,
518,
18,
282,
10559,
1807,
6750,
518,
1807,
468,
316,
326,
1967,
1867,
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,
6438,
67,
11447,
67,
10863,
67,
464,
67,
3917,
12,
4057,
1462,
3788,
16,
4234,
8151,
16,
1663,
8151,
4672,
225,
309,
320,
27273,
422,
296,
19475,
11,
578,
320,
27273,
422,
296,
40,
19992,
4278,
468,
1021,
8670,
5381,
2674,
12001,
358,
5426,
326,
315,
70,
18593,
6336,
6,
434,
326,
468,
8326,
999,
1496,
486,
326,
13914,
3844,
18,
741,
67,
23335,
329,
67,
10259,
10604,
21,
16,
3283,
1462,
3788,
16,
4234,
8151,
16,
1663,
8151,
13,
225,
1327,
320,
27273,
422,
296,
10399,
4278,
8670,
273,
263,
22,
225,
468,
787,
326,
12154,
290,
1072,
93,
471,
9276,
2182,
3134,
4231,
471,
1800,
2777,
468,
5219,
30,
7877,
2014,
326,
5410,
716,
5790,
353,
2
] |
regexGrepResult=re.compile("^\\([a-zA-Z]:[^(]*\\)(\\([0-9]+\\))")
|
regexGrep=re.compile(r"^([a-zA-Z]:[^(]*)\(([0-9]+)\)")
|
def __radd__(self, other): if type(other) == type(self) or type(other) == type([]): return other.dirs + self.dirs
|
11b6c25c5efdee5ce0fd0395e20e030ba15d1cf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/11b6c25c5efdee5ce0fd0395e20e030ba15d1cf8/sgrepmd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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
354,
449,
972,
12,
2890,
16,
1308,
4672,
309,
618,
12,
3011,
13,
422,
618,
12,
2890,
13,
578,
618,
12,
3011,
13,
422,
618,
3816,
65,
4672,
327,
1308,
18,
8291,
397,
365,
18,
8291,
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
] |
rval += scoring_scheme.table[ord(a),ord(b)]
|
rval += scoring_scheme._get_score((ord(a),ord(b))
|
def score_texts( scoring_scheme, text1, text2 ): rval = 0 last_gap_a = last_gap_b = False for i in range( len( text1 ) ): a = text1[i] b = text2[i] # Ignore gap/gap pair if a == scoring_scheme.gap1 and b == scoring_scheme.gap2: continue # Gap in first species elif a == scoring_scheme.gap1: rval -= scoring_scheme.gap_extend if not last_gap_a: rval -= scoring_scheme.gap_open last_gap_a = True last_gap_b = False # Gap in second species elif b == scoring_scheme.gap2: rval -= scoring_scheme.gap_extend if not last_gap_b: rval -= scoring_scheme.gap_open last_gap_a = False last_gap_b = True # Aligned base else: rval += scoring_scheme.table[ord(a),ord(b)] last_gap_a = last_gap_b = False return rval
|
c5b541a2761dd71a22571dc1ffd9f0392aa18aef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2104/c5b541a2761dd71a22571dc1ffd9f0392aa18aef/score.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4462,
67,
26256,
12,
22958,
67,
9068,
16,
977,
21,
16,
977,
22,
262,
30,
14267,
273,
374,
1142,
67,
14048,
67,
69,
273,
1142,
67,
14048,
67,
70,
273,
1083,
364,
277,
316,
1048,
12,
562,
12,
977,
21,
262,
262,
30,
279,
273,
977,
21,
63,
77,
65,
324,
273,
977,
22,
63,
77,
65,
468,
8049,
9300,
19,
14048,
3082,
309,
279,
422,
22958,
67,
9068,
18,
14048,
21,
471,
324,
422,
22958,
67,
9068,
18,
14048,
22,
30,
1324,
468,
611,
438,
316,
1122,
12891,
1327,
279,
422,
22958,
67,
9068,
18,
14048,
21,
30,
14267,
3947,
22958,
67,
9068,
18,
14048,
67,
14313,
309,
486,
1142,
67,
14048,
67,
69,
30,
14267,
3947,
22958,
67,
9068,
18,
14048,
67,
3190,
1142,
67,
14048,
67,
69,
273,
1053,
1142,
67,
14048,
67,
70,
273,
1083,
468,
611,
438,
316,
2205,
12891,
1327,
324,
422,
22958,
67,
9068,
18,
14048,
22,
30,
14267,
3947,
22958,
67,
9068,
18,
14048,
67,
14313,
309,
486,
1142,
67,
14048,
67,
70,
30,
14267,
3947,
22958,
67,
9068,
18,
14048,
67,
3190,
1142,
67,
14048,
67,
69,
273,
1083,
1142,
67,
14048,
67,
70,
273,
1053,
468,
19317,
329,
1026,
469,
30,
14267,
1011,
22958,
67,
9068,
6315,
588,
67,
6355,
12443,
517,
12,
69,
3631,
517,
12,
70,
3719,
1142,
67,
14048,
67,
69,
273,
1142,
67,
14048,
67,
70,
273,
1083,
327,
14267,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4462,
67,
26256,
12,
22958,
67,
9068,
16,
977,
21,
16,
977,
22,
262,
30,
14267,
273,
374,
1142,
67,
14048,
67,
69,
273,
1142,
67,
14048,
67,
70,
273,
1083,
364,
277,
316,
1048,
12,
562,
12,
977,
21,
262,
262,
30,
279,
273,
977,
21,
63,
77,
65,
324,
273,
977,
22,
63,
77,
65,
468,
8049,
9300,
19,
14048,
3082,
309,
279,
422,
22958,
67,
9068,
18,
14048,
21,
471,
324,
422,
22958,
67,
9068,
18,
14048,
22,
30,
1324,
468,
611,
438,
316,
1122,
12891,
1327,
279,
422,
22958,
67,
9068,
18,
14048,
21,
30,
14267,
3947,
22958,
67,
9068,
18,
14048,
67,
14313,
309,
486,
1142,
67,
14048,
67,
69,
30,
14267,
3947,
2
] |
if self.GetFoldLevel(lineNum) & stc.STC_FOLDLEVELHEADERFLAG: expanding = not self.GetFoldExpanded(lineNum) break;
|
if self.GetFoldLevel(lineNum) & stc.STC_FOLDLEVELHEADERFLAG: expanding = not self.GetFoldExpanded(lineNum) break;
|
def FoldAll(self): lineCount = self.GetLineCount() expanding = True
|
6e7c1acfc086ff235aa5d3b9a6ee2e0376359bce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2947/6e7c1acfc086ff235aa5d3b9a6ee2e0376359bce/editorTextControl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
478,
1673,
1595,
12,
2890,
4672,
980,
1380,
273,
365,
18,
967,
1670,
1380,
1435,
31283,
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,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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,
478,
1673,
1595,
12,
2890,
4672,
980,
1380,
273,
365,
18,
967,
1670,
1380,
1435,
31283,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'AND (( planned_date <= %s AND planned_date >= %s ) '\ 'OR planned_date IS NULL)) '\
|
'AND ( planned_date <= %s AND planned_date >= %s '\ ')) '\
|
def products_by_location(self, cursor, user, location_ids, product_ids=None, with_childs=False, skip_zero=True, context=None): """ Compute for each location and product the stock quantity in the default uom of the product.
|
4ec9e17a1a2764f8ea2f273f6195da4f595db87c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/4ec9e17a1a2764f8ea2f273f6195da4f595db87c/product.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10406,
67,
1637,
67,
3562,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
2232,
16,
3017,
67,
2232,
33,
7036,
16,
598,
67,
3624,
87,
33,
8381,
16,
2488,
67,
7124,
33,
5510,
16,
819,
33,
7036,
4672,
3536,
8155,
364,
1517,
2117,
471,
3017,
326,
12480,
10457,
316,
326,
805,
582,
362,
434,
326,
3017,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10406,
67,
1637,
67,
3562,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
2232,
16,
3017,
67,
2232,
33,
7036,
16,
598,
67,
3624,
87,
33,
8381,
16,
2488,
67,
7124,
33,
5510,
16,
819,
33,
7036,
4672,
3536,
8155,
364,
1517,
2117,
471,
3017,
326,
12480,
10457,
316,
326,
805,
582,
362,
434,
326,
3017,
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
] |
opts, args = getopt.getopt(sys.argv[1:], 'vbchef:wad:m:rl', ['extmod', 'nobounds', 'nowrap', 'flags=', 'dir=', 'makefile=', 'random', 'long', 'msvc'])
|
opts, args = getopt.getopt(sys.argv[1:], 'vbchef:wad:m:rl', ['help', 'extmod', 'nobounds', 'nowrap', 'flags=', 'dir=', 'makefile=', 'random', 'long', 'msvc', 'ann'])
|
def main(): setgx(newgx()) print '*** SHED SKIN Python-to-C++ Compiler 0.6 ***' print 'Copyright 2005-2010 Mark Dufour; License GNU GPL version 3 (See LICENSE)' print # --- some checks major, minor = sys.version_info[:2] if (major, minor) not in [(2, 4), (2, 5), (2, 6)]: print '*ERROR* Shed Skin is not compatible with this version of Python' sys.exit(1) if sys.platform == 'win32' and os.path.isdir('c:/mingw'): print '*ERROR* please rename or remove c:/mingw, as it conflicts with Shed Skin' sys.exit() # --- command-line options try: opts, args = getopt.getopt(sys.argv[1:], 'vbchef:wad:m:rl', ['extmod', 'nobounds', 'nowrap', 'flags=', 'dir=', 'makefile=', 'random', 'long', 'msvc']) except getopt.GetoptError: usage() for o, a in opts: if o in ['-h', '--help']: usage() if o in ['-b', '--nobounds']: getgx().bounds_checking = False if o in ['-e', '--extmod']: getgx().extension_module = True if o in ['-a', '--ann']: getgx().annotation = True if o in ['-d', '--dir']: getgx().output_dir = a if o in ['-l', '--long']: getgx().longlong = True if o in ['-w', '--nowrap']: getgx().wrap_around_check = False if o in ['-r', '--random']: getgx().fast_random = True if o in ['-m', '--makefile']: getgx().makefile_name = a if o in ['-v', '--msvc']: getgx().msvc = True if o in ['-f', '--flags']: if not os.path.isfile(a): print "*ERROR* no such file: '%s'" % a sys.exit(1) getgx().flags = a # --- argument if len(args) != 1: usage() name = args[0] if not name.endswith('.py'): name += '.py' if not os.path.isfile(name): print "*ERROR* no such file: '%s'" % name sys.exit(1) getgx().main_mod = name[:-3] # --- analyze & annotate infer.analyze(name) annotate.annotate() cpp.generate_code()
|
feaf10eca454291e7f24b25be689e6fd92387639 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6661/feaf10eca454291e7f24b25be689e6fd92387639/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
444,
75,
92,
12,
2704,
75,
92,
10756,
225,
1172,
296,
14465,
6122,
2056,
12038,
706,
6600,
17,
869,
17,
39,
9904,
12972,
374,
18,
26,
18852,
11,
1172,
296,
2951,
4083,
4044,
25,
17,
6734,
20,
6622,
463,
696,
477,
31,
16832,
611,
50,
57,
4948,
48,
1177,
890,
261,
9704,
511,
2871,
23396,
2506,
1172,
225,
468,
9948,
2690,
4271,
7888,
16,
8439,
273,
2589,
18,
1589,
67,
1376,
10531,
22,
65,
309,
261,
14019,
16,
8439,
13,
486,
316,
306,
12,
22,
16,
1059,
3631,
261,
22,
16,
1381,
3631,
261,
22,
16,
1666,
13,
14542,
1172,
14609,
3589,
14,
2638,
329,
10362,
267,
353,
486,
7318,
598,
333,
1177,
434,
6600,
11,
2589,
18,
8593,
12,
21,
13,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
11,
471,
1140,
18,
803,
18,
291,
1214,
2668,
71,
27824,
11987,
91,
11,
4672,
1172,
14609,
3589,
14,
9582,
6472,
578,
1206,
276,
27824,
11987,
91,
16,
487,
518,
14450,
598,
2638,
329,
10362,
267,
11,
2589,
18,
8593,
1435,
225,
468,
9948,
1296,
17,
1369,
702,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
90,
70,
343,
10241,
30,
91,
361,
30,
81,
30,
1321,
2187,
10228,
5201,
2187,
296,
408,
1711,
2187,
296,
82,
947,
9284,
2187,
296,
3338,
1266,
2187,
296,
7133,
33,
2187,
296,
1214,
33,
2187,
296,
6540,
768,
33,
2187,
296,
9188,
2187,
296,
5748,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
444,
75,
92,
12,
2704,
75,
92,
10756,
225,
1172,
296,
14465,
6122,
2056,
12038,
706,
6600,
17,
869,
17,
39,
9904,
12972,
374,
18,
26,
18852,
11,
1172,
296,
2951,
4083,
4044,
25,
17,
6734,
20,
6622,
463,
696,
477,
31,
16832,
611,
50,
57,
4948,
48,
1177,
890,
261,
9704,
511,
2871,
23396,
2506,
1172,
225,
468,
9948,
2690,
4271,
7888,
16,
8439,
273,
2589,
18,
1589,
67,
1376,
10531,
22,
65,
309,
261,
14019,
16,
8439,
13,
486,
316,
306,
12,
22,
16,
1059,
3631,
261,
22,
16,
1381,
3631,
261,
22,
16,
1666,
13,
14542,
1172,
14609,
3589,
14,
2638,
329,
10362,
267,
353,
486,
7318,
598,
333,
1177,
434,
6600,
11,
2
] |
the_rawaddr, = struct.unpack("I",inet_aton(the_addr))
|
the_rawaddr = atol(the_addr)
|
def ifchange(self, iff, addr): self.invalidate_cache() the_addr,the_msk = (addr.split("/")+["32"])[:2] the_msk = itom(int(the_msk)) the_rawaddr, = struct.unpack("I",inet_aton(the_addr)) the_net = the_rawaddr & the_msk for i in range(len(self.routes)): net,msk,gw,iface,addr = self.routes[i] if iface != iff: continue if gw == '0.0.0.0': self.routes[i] = (the_net,the_msk,gw,iface,the_addr) else: self.routes[i] = (net,msk,gw,iface,the_addr) for i in arp_cache.keys(): del(arp_cache[i])
|
8a76ff8623a08e548c2606be508514d068938a13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7311/8a76ff8623a08e548c2606be508514d068938a13/scapy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
309,
3427,
12,
2890,
16,
21437,
16,
3091,
4672,
365,
18,
5387,
340,
67,
2493,
1435,
326,
67,
4793,
16,
5787,
67,
959,
79,
273,
261,
4793,
18,
4939,
2932,
4898,
27921,
9614,
1578,
6,
5717,
10531,
22,
65,
326,
67,
959,
79,
273,
518,
362,
12,
474,
12,
5787,
67,
959,
79,
3719,
326,
67,
1899,
4793,
273,
26322,
12,
5787,
67,
4793,
13,
326,
67,
2758,
273,
326,
67,
1899,
4793,
473,
326,
67,
959,
79,
282,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
10854,
3719,
30,
2901,
16,
959,
79,
16,
28500,
16,
31479,
16,
4793,
273,
365,
18,
10854,
63,
77,
65,
309,
9751,
480,
21437,
30,
1324,
309,
14662,
422,
296,
20,
18,
20,
18,
20,
18,
20,
4278,
365,
18,
10854,
63,
77,
65,
273,
261,
5787,
67,
2758,
16,
5787,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
309,
3427,
12,
2890,
16,
21437,
16,
3091,
4672,
365,
18,
5387,
340,
67,
2493,
1435,
326,
67,
4793,
16,
5787,
67,
959,
79,
273,
261,
4793,
18,
4939,
2932,
4898,
27921,
9614,
1578,
6,
5717,
10531,
22,
65,
326,
67,
959,
79,
273,
518,
362,
12,
474,
12,
5787,
67,
959,
79,
3719,
326,
67,
1899,
4793,
273,
26322,
12,
5787,
67,
4793,
13,
326,
67,
2758,
273,
326,
67,
1899,
4793,
473,
326,
67,
959,
79,
282,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
10854,
3719,
30,
2901,
16,
959,
79,
16,
28500,
16,
31479,
16,
4793,
273,
365,
18,
10854,
63,
77,
65,
309,
9751,
480,
21437,
30,
1324,
309,
14662,
422,
296,
2
] |
authors.add(t.author)
|
authors[t.author.nickname()] = t.modified
|
def get(self):
|
18b8d6b1d4a62ef4780d2ba5842dcc2d3ad15066 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7716/18b8d6b1d4a62ef4780d2ba5842dcc2d3ad15066/index.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
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
] |
%s -wid %s %s > /tmp/mplayer.log 2>&1' %(cmd_pipe, editlist, xid, media_file) but_frame = Frame(root_frame)
|
%s -wid %s %s ' %(cmd_pipe, editlist, xid, media_file)
|
def exit_mplayer(): # send bogus edl command so mplayer sends last edl_mark send_command('edl_mark') # send quit and destroy frame send_command('quit') container.frame.destroy() # need a sleep to make sure mplayer gives up its data time.sleep(1) f = open(editlist) c = f.read() f.close() # convert text from opened file to HH:MM:SS times = [ float(t) for t in shlex.split(c) if not t == '0' ] # remove bogus edl_mark times.pop(-1) # insert mandatory 1st chapter times.insert(0, 0.0) chapters = [] for t in times: chapters.append(time.strftime('%H:%M:%S', time.gmtime(t))) time_codes = "'%s'" %','.join(chapters) print '-chapters %s' %time_codes
|
c5f7e6b8a9a7745fd9188485d42c7137ae9ae749 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4675/c5f7e6b8a9a7745fd9188485d42c7137ae9ae749/appcontainer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2427,
67,
81,
14872,
13332,
468,
1366,
324,
28774,
1675,
80,
1296,
1427,
312,
14872,
9573,
1142,
1675,
80,
67,
3355,
1366,
67,
3076,
2668,
329,
80,
67,
3355,
6134,
468,
1366,
9706,
471,
5546,
2623,
1366,
67,
3076,
2668,
27176,
6134,
1478,
18,
3789,
18,
11662,
1435,
468,
1608,
279,
5329,
358,
1221,
3071,
312,
14872,
14758,
731,
2097,
501,
813,
18,
19607,
12,
21,
13,
284,
273,
1696,
12,
4619,
1098,
13,
276,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
468,
1765,
977,
628,
10191,
585,
358,
20842,
30,
8206,
30,
1260,
4124,
273,
306,
1431,
12,
88,
13,
364,
268,
316,
27180,
18,
4939,
12,
71,
13,
309,
486,
268,
422,
296,
20,
11,
308,
468,
1206,
324,
28774,
1675,
80,
67,
3355,
4124,
18,
5120,
19236,
21,
13,
468,
2243,
11791,
404,
334,
23580,
4124,
18,
6387,
12,
20,
16,
374,
18,
20,
13,
462,
1657,
414,
273,
5378,
364,
268,
316,
4124,
30,
462,
1657,
414,
18,
6923,
12,
957,
18,
701,
9982,
29909,
44,
5319,
49,
5319,
55,
2187,
813,
18,
75,
10838,
12,
88,
20349,
813,
67,
7000,
273,
22288,
87,
4970,
738,
2187,
10332,
5701,
12,
343,
1657,
414,
13,
1172,
2400,
343,
1657,
414,
738,
87,
11,
738,
957,
67,
7000,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2427,
67,
81,
14872,
13332,
468,
1366,
324,
28774,
1675,
80,
1296,
1427,
312,
14872,
9573,
1142,
1675,
80,
67,
3355,
1366,
67,
3076,
2668,
329,
80,
67,
3355,
6134,
468,
1366,
9706,
471,
5546,
2623,
1366,
67,
3076,
2668,
27176,
6134,
1478,
18,
3789,
18,
11662,
1435,
468,
1608,
279,
5329,
358,
1221,
3071,
312,
14872,
14758,
731,
2097,
501,
813,
18,
19607,
12,
21,
13,
284,
273,
1696,
12,
4619,
1098,
13,
276,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
468,
1765,
977,
628,
10191,
585,
358,
20842,
30,
8206,
30,
1260,
4124,
273,
306,
1431,
12,
88,
13,
364,
268,
316,
27180,
18,
4939,
12,
71,
13,
309,
486,
268,
422,
296,
20,
2
] |
gc.set_stroke_color(self.edge_color_) gc.set_line_width(self.line_width) gc.set_line_dash(self.line_style_) gc.draw_rect((x,y,width,height)) gc.restore_state()
|
try: gc.set_stroke_color(self.edge_color_) gc.set_line_width(self.line_width) gc.set_fill_color(self.face_color_) if hasattr(self, 'line_style_'): gc.set_line_dash(self.line_style_) gc.draw_rect((x,y,width,height)) finally: gc.restore_state()
|
def _render_icon(self, gc, x, y, width, height): """ Renders a representation of this plot as an icon into the box defined by the parameters.
|
93b4e8dca35577dc3e930c223868f68c5459a731 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/93b4e8dca35577dc3e930c223868f68c5459a731/polygon_plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
3950,
12,
2890,
16,
8859,
16,
619,
16,
677,
16,
1835,
16,
2072,
4672,
3536,
534,
10130,
279,
4335,
434,
333,
3207,
487,
392,
4126,
1368,
326,
3919,
2553,
635,
326,
1472,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
3950,
12,
2890,
16,
8859,
16,
619,
16,
677,
16,
1835,
16,
2072,
4672,
3536,
534,
10130,
279,
4335,
434,
333,
3207,
487,
392,
4126,
1368,
326,
3919,
2553,
635,
326,
1472,
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
] |
if (point[2] % 2 == 0): site_hex = [point[0],point[1],point[2]*.5] else: site_hex = [point[0]+1/3.,point[1]+2/3.,point[2]*.5] site_frac = hex_to_frac_matrix * matrix.col(site_hex) if (float_asu_buffer.is_inside(site_frac)): sites_frac.append(site_frac)
|
site_hex = matrix.col(hex_box.min) \ + matrix.col(hex_indices_as_site(point)) site_frac = hex_to_frac_matrix * site_hex if (1 and float_asu_buffer.is_inside(site_frac)): sites_frac.append(str(point), site_frac) elif (not options.strictly_inside and options.no_buffer): if (0): sites_around = labeled_sites() else: sites_around = None for offset in [(1,0,0),(1,1,0),(0,1,0),(-1,0,0),(-1,-1,0),(0,-1,0), (0,0,1),(-1,-1,1),(0,-1,1), (0,0,-1),(-1,-1,-1),(0,-1,-1)]: offset_hex = hex_indices_as_site(offset, layer=point[2]) offset_frac = hex_to_frac_matrix * matrix.col(offset_hex) other_site_frac = site_frac + offset_frac if (sites_around is not None): sites_around.append(str(offset), other_site_frac) elif (0 or float_asu_buffer.is_inside(other_site_frac)): sites_frac.append(str(point), site_frac) break if (sites_around is not None): if (0): return sites_around else: sites_frac.extend(sites_around)
|
def hcp_fill_box(unit_cell, point_distance, rational_asu, continuous_shift_flags): assert point_distance > 0 hex_box = hexagonal_box( unit_cell=unit_cell, vertices_frac=rational_asu.volume_vertices(), point_distance=point_distance) box_grid = [iceil(abs(b-e))+1 for b,e in zip(hex_box.min, hex_box.max)] box_origin = [-1,-1,-1] for i,f in zip(count(), continuous_shift_flags): if (f): box_grid[i] = 0 box_origin[i] = 0 print "box_grid:", box_grid float_asu_buffer = rational_asu.add_buffer( unit_cell=unit_cell, thickness=(1+1/2.*math.sqrt(3))*point_distance) for facet in float_asu_buffer.facets(): print facet.n, facet.c hex_to_frac_matrix = ( matrix.sqr(unit_cell.fractionalization_matrix()) * matrix.sqr(hex_box.hexagonal_cell.orthogonalization_matrix())) sites_frac = flex.vec3_double() for point in flex.nested_loop(begin=box_origin, end=box_grid, open_range=00000): if (point[2] % 2 == 0): site_hex = [point[0],point[1],point[2]*.5] else: site_hex = [point[0]+1/3.,point[1]+2/3.,point[2]*.5] site_frac = hex_to_frac_matrix * matrix.col(site_hex) if (float_asu_buffer.is_inside(site_frac)): sites_frac.append(site_frac) return sites_frac
|
da9cd37ebaff485fe1725b6c4c3cf1b79565c741 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/da9cd37ebaff485fe1725b6c4c3cf1b79565c741/close_packing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
4057,
67,
5935,
67,
2147,
12,
4873,
67,
3855,
16,
1634,
67,
8969,
16,
436,
8371,
67,
345,
89,
16,
17235,
67,
4012,
67,
7133,
4672,
1815,
1634,
67,
8969,
405,
374,
3827,
67,
2147,
273,
3827,
346,
9528,
67,
2147,
12,
2836,
67,
3855,
33,
4873,
67,
3855,
16,
6928,
67,
22187,
33,
7034,
287,
67,
345,
89,
18,
9491,
67,
17476,
9334,
1634,
67,
8969,
33,
1153,
67,
8969,
13,
3919,
67,
5222,
273,
306,
1812,
330,
12,
5113,
12,
70,
17,
73,
3719,
15,
21,
364,
324,
16,
73,
316,
3144,
12,
7118,
67,
2147,
18,
1154,
16,
3827,
67,
2147,
18,
1896,
25887,
3919,
67,
10012,
273,
23059,
21,
16,
17,
21,
16,
17,
21,
65,
364,
277,
16,
74,
316,
3144,
12,
1883,
9334,
17235,
67,
4012,
67,
7133,
4672,
309,
261,
74,
4672,
3919,
67,
5222,
63,
77,
65,
273,
374,
3919,
67,
10012,
63,
77,
65,
273,
374,
1172,
315,
2147,
67,
5222,
2773,
16,
3919,
67,
5222,
1431,
67,
345,
89,
67,
4106,
273,
436,
8371,
67,
345,
89,
18,
1289,
67,
4106,
12,
2836,
67,
3855,
33,
4873,
67,
3855,
16,
27199,
28657,
21,
15,
21,
19,
22,
4509,
15949,
18,
24492,
12,
23,
3719,
14,
1153,
67,
8969,
13,
364,
11082,
316,
1431,
67,
345,
89,
67,
4106,
18,
11639,
2413,
13332,
1172,
11082,
18,
82,
16,
11082,
18,
71,
3827,
67,
869,
67,
22187,
67,
5667,
273,
261,
3148,
18,
11410,
86,
12,
4873,
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,
366,
4057,
67,
5935,
67,
2147,
12,
4873,
67,
3855,
16,
1634,
67,
8969,
16,
436,
8371,
67,
345,
89,
16,
17235,
67,
4012,
67,
7133,
4672,
1815,
1634,
67,
8969,
405,
374,
3827,
67,
2147,
273,
3827,
346,
9528,
67,
2147,
12,
2836,
67,
3855,
33,
4873,
67,
3855,
16,
6928,
67,
22187,
33,
7034,
287,
67,
345,
89,
18,
9491,
67,
17476,
9334,
1634,
67,
8969,
33,
1153,
67,
8969,
13,
3919,
67,
5222,
273,
306,
1812,
330,
12,
5113,
12,
70,
17,
73,
3719,
15,
21,
364,
324,
16,
73,
316,
3144,
12,
7118,
67,
2147,
18,
1154,
16,
3827,
67,
2147,
18,
1896,
25887,
3919,
67,
10012,
273,
23059,
21,
16,
17,
21,
16,
2
] |
@param coords: Coordinates the telescope has been pointed to @type coords: L{Position}
|
def pointVerify (self): """ Checks telescope pointing
|
465f38d63439f53dc4de381756d79da238f7ead6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/977/465f38d63439f53dc4de381756d79da238f7ead6/pointverify.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1634,
8097,
261,
2890,
4672,
3536,
13074,
20666,
742,
1306,
17022,
2,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1634,
8097,
261,
2890,
4672,
3536,
13074,
20666,
742,
1306,
17022,
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 not csv.startswith('id,summary,'):
|
if not csv.startswith('\xef\xbb\xbfid,summary,'):
|
def runTest(self): """Download ticket in CSV format""" summary = random_sentence(5) ticketid = self._tester.create_ticket(summary) self._tester.go_to_ticket(ticketid) tc.follow('Comma-delimited Text') csv = b.get_html() if not csv.startswith('id,summary,'): raise AssertionError('Bad CSV format')
|
b5742d59dbcbc0022430747b7533f467829bade7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/b5742d59dbcbc0022430747b7533f467829bade7/functional.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
4709,
12,
2890,
4672,
3536,
7109,
9322,
316,
10381,
740,
8395,
4916,
273,
2744,
67,
19335,
12,
25,
13,
9322,
350,
273,
365,
6315,
1078,
387,
18,
2640,
67,
16282,
12,
7687,
13,
365,
6315,
1078,
387,
18,
3240,
67,
869,
67,
16282,
12,
16282,
350,
13,
1715,
18,
14641,
2668,
15594,
17,
3771,
1038,
329,
3867,
6134,
6101,
273,
324,
18,
588,
67,
2620,
1435,
309,
486,
6101,
18,
17514,
1918,
2668,
64,
30773,
64,
6114,
70,
64,
6114,
27268,
16,
7687,
11189,
4672,
1002,
12068,
2668,
6434,
10381,
740,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
4709,
12,
2890,
4672,
3536,
7109,
9322,
316,
10381,
740,
8395,
4916,
273,
2744,
67,
19335,
12,
25,
13,
9322,
350,
273,
365,
6315,
1078,
387,
18,
2640,
67,
16282,
12,
7687,
13,
365,
6315,
1078,
387,
18,
3240,
67,
869,
67,
16282,
12,
16282,
350,
13,
1715,
18,
14641,
2668,
15594,
17,
3771,
1038,
329,
3867,
6134,
6101,
273,
324,
18,
588,
67,
2620,
1435,
309,
486,
6101,
18,
17514,
1918,
2668,
64,
30773,
64,
6114,
70,
64,
6114,
27268,
16,
7687,
11189,
4672,
1002,
12068,
2668,
6434,
10381,
740,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise SGMLParserError('neither < nor & ??')
|
raise SGMLParseError('neither < nor & ??')
|
def goahead(self, end): rawdata = self.rawdata i = 0 n = len(rawdata) while i < n: if self.nomoretags: self.handle_data(rawdata[i:n]) i = n break match = interesting.search(rawdata, i) if match: j = match.start(0) else: j = n if i < j: self.handle_data(rawdata[i:j]) i = j if i == n: break if rawdata[i] == '<': if starttagopen.match(rawdata, i): if self.literal: self.handle_data(rawdata[i]) i = i+1 continue k = self.parse_starttag(i) if k < 0: break i = k continue if endtagopen.match(rawdata, i): k = self.parse_endtag(i) if k < 0: break i = k self.literal = 0 continue if commentopen.match(rawdata, i): if self.literal: self.handle_data(rawdata[i]) i = i+1 continue k = self.parse_comment(i) if k < 0: break i = i+k continue if piopen.match(rawdata, i): if self.literal: self.handle_data(rawdata[i]) i = i+1 continue k = self.parse_pi(i) if k < 0: break i = i+k continue match = special.match(rawdata, i) if match: if self.literal: self.handle_data(rawdata[i]) i = i+1 continue # This is some sort of declaration; in "HTML as # deployed," this should only be the document type # declaration ("<!DOCTYPE html...>"). k = self.parse_declaration(i) if k < 0: break i = k continue elif rawdata[i] == '&': match = charref.match(rawdata, i) if match: name = match.group(1) self.handle_charref(name) i = match.end(0) if rawdata[i-1] != ';': i = i-1 continue match = entityref.match(rawdata, i) if match: name = match.group(1) self.handle_entityref(name) i = match.end(0) if rawdata[i-1] != ';': i = i-1 continue else: raise SGMLParserError('neither < nor & ??') # We get here only if incomplete matches but # nothing else match = incomplete.match(rawdata, i) if not match: self.handle_data(rawdata[i]) i = i+1 continue j = match.end(0) if j == n: break # Really incomplete self.handle_data(rawdata[i:j]) i = j # end while if end and i < n: self.handle_data(rawdata[i:n]) i = n self.rawdata = rawdata[i:] # XXX if end: check for empty stack
|
6bd5463a190c4f06c0a94b8b20437db070dc40a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6bd5463a190c4f06c0a94b8b20437db070dc40a9/sgmllib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
11617,
12,
2890,
16,
679,
4672,
1831,
892,
273,
365,
18,
1899,
892,
277,
273,
374,
290,
273,
562,
12,
1899,
892,
13,
1323,
277,
411,
290,
30,
309,
365,
18,
12306,
479,
4156,
30,
365,
18,
4110,
67,
892,
12,
1899,
892,
63,
77,
30,
82,
5717,
277,
273,
290,
898,
845,
273,
26122,
18,
3072,
12,
1899,
892,
16,
277,
13,
309,
845,
30,
525,
273,
845,
18,
1937,
12,
20,
13,
469,
30,
525,
273,
290,
309,
277,
411,
525,
30,
365,
18,
4110,
67,
892,
12,
1899,
892,
63,
77,
30,
78,
5717,
277,
273,
525,
309,
277,
422,
290,
30,
898,
309,
1831,
892,
63,
77,
65,
422,
2368,
4278,
309,
787,
2692,
3190,
18,
1916,
12,
1899,
892,
16,
277,
4672,
309,
365,
18,
13107,
30,
365,
18,
4110,
67,
892,
12,
1899,
892,
63,
77,
5717,
277,
273,
277,
15,
21,
1324,
417,
273,
365,
18,
2670,
67,
1937,
2692,
12,
77,
13,
309,
417,
411,
374,
30,
898,
277,
273,
417,
1324,
309,
679,
2692,
3190,
18,
1916,
12,
1899,
892,
16,
277,
4672,
417,
273,
365,
18,
2670,
67,
409,
2692,
12,
77,
13,
309,
417,
411,
374,
30,
898,
277,
273,
225,
417,
365,
18,
13107,
273,
374,
1324,
309,
2879,
3190,
18,
1916,
12,
1899,
892,
16,
277,
4672,
309,
365,
18,
13107,
30,
365,
18,
4110,
67,
892,
12,
1899,
892,
63,
77,
5717,
277,
273,
277,
15,
21,
1324,
417,
273,
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,
1960,
11617,
12,
2890,
16,
679,
4672,
1831,
892,
273,
365,
18,
1899,
892,
277,
273,
374,
290,
273,
562,
12,
1899,
892,
13,
1323,
277,
411,
290,
30,
309,
365,
18,
12306,
479,
4156,
30,
365,
18,
4110,
67,
892,
12,
1899,
892,
63,
77,
30,
82,
5717,
277,
273,
290,
898,
845,
273,
26122,
18,
3072,
12,
1899,
892,
16,
277,
13,
309,
845,
30,
525,
273,
845,
18,
1937,
12,
20,
13,
469,
30,
525,
273,
290,
309,
277,
411,
525,
30,
365,
18,
4110,
67,
892,
12,
1899,
892,
63,
77,
30,
78,
5717,
277,
273,
525,
309,
277,
422,
290,
30,
898,
309,
1831,
892,
63,
77,
65,
422,
2368,
4278,
309,
787,
2
] |
self.show(name, headers['title'], text, 1) print '<P><A HREF="faq.py?req=roulette">Show another one</A>'
|
self.show(name, headers['title'], text) print "<P>Use `Reload' to show another one."
|
def do_roulette(self):
|
100083995825129d5be5b69522070aa1f452e089 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/100083995825129d5be5b69522070aa1f452e089/faqmain.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
303,
332,
7637,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
allMigrated = matchingFiles+mismatchingFiles gMonitor.addMark("MigratedFiles%s" % se,len(allMigrated)) gMonitor.addMark("TotalMigratedFiles%s" % se,len(allMigrated))
|
allMigrated = matchingFiles + mismatchingFiles gMonitor.addMark( "MigratedFiles%s" % se, len( allMigrated ) ) gMonitor.addMark( "TotalMigratedFiles%s" % se, len( allMigrated ) )
|
def __updateMigrationAccounting(self,se,migratingFiles,matchingFiles,mismatchingFiles,assumedEndTime,previousMonitorTime): """ Create accounting messages for the overall throughput observed and the total migration time for the files """ allMigrated = matchingFiles+mismatchingFiles gMonitor.addMark("MigratedFiles%s" % se,len(allMigrated)) gMonitor.addMark("TotalMigratedFiles%s" % se,len(allMigrated)) lfnFileID = {} sizesToObtain = [] for fileID in allMigrated: if not migratingFiles[fileID]['Size']: lfn = migratingFiles[fileID]['LFN'] sizesToObtain.append(lfn) lfnFileID[lfn] = fileID if sizesToObtain: res = self.ReplicaManager.getCatalogFileSize(sizesToObtain) if not res['OK']: gLogger.error("[%s] __updateMigrationAccounting: Failed to obtain file sizes" % se) return res for lfn,error in res['Value']['Failed'].items(): gLogger.error("[%s] __updateAccounting: Failed to get file size" % se,"%s %s" % (lfn,error)) migratingFiles[lfnFileID[lfn]]['Size'] = 0 for lfn,size in res['Value']['Successful'].items(): migratingFiles[lfnFileID[lfn]]['Size'] = size totalSize = 0 for fileID in allMigrated: size = migratingFiles[fileID]['Size'] totalSize += size submitTime = migratingFiles[fileID]['SubmitTime'] timeDiff = submitTime-assumedEndTime migrationTime = (timeDiff.days * 86400) + (timeDiff.seconds) + (timeDiff.microseconds/1000000.0) gMonitor.addMark("MigrationTime%s" % se,migrationTime) gDataStoreClient.addRegister(self.__initialiseAccountingObject('MigrationTime', se, submitTime, assumedEndTime, size)) gDataStoreClient.addRegister(self.__initialiseAccountingObject('MigrationThroughput', se, previousMonitorTime, assumedEndTime, size)) oDataOperation = self.__initialiseAccountingObject('MigrationSuccess', se, submitTime, assumedEndTime, size) if fileID in mismatchingFiles: oDataOperation.setValueByKey('TransferOK',0) oDataOperation.setValueByKey('FinalStatus','Failed') gDataStoreClient.addRegister(oDataOperation) gMonitor.addMark("TotalMigratedSize%s" % se,totalSize) gMonitor.addMark("ChecksumMismatches%s" % se,len(mismatchingFiles)) gMonitor.addMark("TotalChecksumMismatches%s" % se,len(mismatchingFiles)) gMonitor.addMark("ChecksumMatches%s" % se,len(matchingFiles)) gMonitor.addMark("TotalChecksumMatches%s" % se,len(matchingFiles)) if allMigrated: gLogger.info('[%s] __updateMigrationAccounting: Attempting to send accounting message...' % se) return gDataStoreClient.commit() return S_OK()
|
d0365a9152f6e7105162edd475d5401448bfdaed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d0365a9152f6e7105162edd475d5401448bfdaed/MigrationMonitoringAgent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
10224,
3032,
310,
12,
2890,
16,
307,
16,
81,
2757,
1776,
2697,
16,
16271,
2697,
16,
11173,
16271,
2697,
16,
428,
379,
329,
25255,
16,
11515,
7187,
950,
4672,
3536,
1788,
2236,
310,
2743,
364,
326,
13914,
24677,
12117,
471,
326,
2078,
6333,
813,
364,
326,
1390,
3536,
777,
25483,
690,
273,
3607,
2697,
397,
13484,
310,
2697,
314,
7187,
18,
1289,
3882,
12,
315,
25483,
690,
2697,
9,
87,
6,
738,
695,
16,
562,
12,
777,
25483,
690,
262,
262,
314,
7187,
18,
1289,
3882,
12,
315,
5269,
25483,
690,
2697,
9,
87,
6,
738,
695,
16,
562,
12,
777,
25483,
690,
262,
262,
328,
4293,
812,
734,
273,
2618,
8453,
774,
20019,
273,
5378,
364,
585,
734,
316,
777,
25483,
690,
30,
309,
486,
4196,
1776,
2697,
63,
768,
734,
23962,
1225,
3546,
30,
328,
4293,
273,
4196,
1776,
2697,
63,
768,
734,
23962,
9105,
50,
3546,
8453,
774,
20019,
18,
6923,
12,
80,
4293,
13,
328,
4293,
812,
734,
63,
80,
4293,
65,
273,
585,
734,
309,
8453,
774,
20019,
30,
400,
273,
365,
18,
14222,
1318,
18,
588,
9769,
15100,
12,
11914,
774,
20019,
13,
309,
486,
400,
3292,
3141,
3546,
30,
314,
3328,
18,
1636,
2932,
14451,
87,
65,
1001,
2725,
10224,
3032,
310,
30,
11175,
358,
7161,
585,
8453,
6,
738,
695,
13,
327,
400,
364,
328,
4293,
16,
1636,
316,
400,
3292,
620,
21712,
2925,
29489,
3319,
13332,
314,
3328,
18,
1636,
2932,
14451,
87,
65,
1001,
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,
2725,
10224,
3032,
310,
12,
2890,
16,
307,
16,
81,
2757,
1776,
2697,
16,
16271,
2697,
16,
11173,
16271,
2697,
16,
428,
379,
329,
25255,
16,
11515,
7187,
950,
4672,
3536,
1788,
2236,
310,
2743,
364,
326,
13914,
24677,
12117,
471,
326,
2078,
6333,
813,
364,
326,
1390,
3536,
777,
25483,
690,
273,
3607,
2697,
397,
13484,
310,
2697,
314,
7187,
18,
1289,
3882,
12,
315,
25483,
690,
2697,
9,
87,
6,
738,
695,
16,
562,
12,
777,
25483,
690,
262,
262,
314,
7187,
18,
1289,
3882,
12,
315,
5269,
25483,
690,
2697,
9,
87,
6,
738,
695,
16,
562,
12,
777,
25483,
690,
262,
262,
328,
4293,
812,
734,
273,
2618,
8453,
774,
20019,
273,
5378,
2
] |
if '__init__.py' in getattr(module, '__file__', ''):
|
f = getattr(module, '__file__', '') if (('__init__.py' in f) or ('__init__$py' in f)):
|
def caller_package(level=2, caller_module=caller_module): # caller_module in arglist for tests module = caller_module(level+1) if '__init__.py' in getattr(module, '__file__', ''): # empty at >>> # Module is a package return module # Go up one level to get package package_name = module.__name__.rsplit('.', 1)[0] return sys.modules[package_name]
|
bfee0aa99963ec88ccb9cdf0b41f40e72ee371e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/bfee0aa99963ec88ccb9cdf0b41f40e72ee371e4/path.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4894,
67,
5610,
12,
2815,
33,
22,
16,
4894,
67,
2978,
33,
16140,
67,
2978,
4672,
468,
4894,
67,
2978,
316,
31805,
364,
7434,
1605,
273,
4894,
67,
2978,
12,
2815,
15,
21,
13,
284,
273,
3869,
12,
2978,
16,
4940,
768,
972,
2187,
28707,
309,
261,
2668,
972,
2738,
25648,
2074,
11,
316,
284,
13,
578,
7707,
972,
2738,
972,
8,
2074,
11,
316,
284,
3719,
30,
468,
1008,
622,
4080,
468,
5924,
353,
279,
2181,
327,
1605,
468,
4220,
731,
1245,
1801,
358,
336,
2181,
2181,
67,
529,
273,
1605,
16186,
529,
25648,
86,
4939,
2668,
1093,
16,
404,
25146,
20,
65,
327,
2589,
18,
6400,
63,
5610,
67,
529,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4894,
67,
5610,
12,
2815,
33,
22,
16,
4894,
67,
2978,
33,
16140,
67,
2978,
4672,
468,
4894,
67,
2978,
316,
31805,
364,
7434,
1605,
273,
4894,
67,
2978,
12,
2815,
15,
21,
13,
284,
273,
3869,
12,
2978,
16,
4940,
768,
972,
2187,
28707,
309,
261,
2668,
972,
2738,
25648,
2074,
11,
316,
284,
13,
578,
7707,
972,
2738,
972,
8,
2074,
11,
316,
284,
3719,
30,
468,
1008,
622,
4080,
468,
5924,
353,
279,
2181,
327,
1605,
468,
4220,
731,
1245,
1801,
358,
336,
2181,
2181,
67,
529,
273,
1605,
16186,
529,
25648,
86,
4939,
2668,
1093,
16,
404,
25146,
20,
65,
327,
2589,
18,
6400,
63,
5610,
67,
529,
65,
225,
2,
-100,
-100,
-100,
-100
] |
else: self.conn.os.unlink(self.path)
|
else: try: self.conn.os.unlink(self.path) except OSError, error: if error.errno == errno.EPERM: self.chmod(0700) self.conn.os.unlink(self.path) else: raise
|
def delete(self): """Delete file at self.path. Recursively deletes directories.""" log.Log("Deleting %s" % self.path, 7) if self.isdir(): try: self.rmdir() except os.error: if Globals.fsync_directories: self.fsync() self.conn.shutil.rmtree(self.path) else: self.conn.os.unlink(self.path) self.setdata()
|
0a8b0f8a9cf3f84cea82cbcde5e324a8a255990a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6202/0a8b0f8a9cf3f84cea82cbcde5e324a8a255990a/rpath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
4672,
3536,
2613,
585,
622,
365,
18,
803,
18,
225,
31362,
9792,
6402,
12123,
613,
18,
1343,
2932,
20433,
738,
87,
6,
738,
365,
18,
803,
16,
2371,
13,
309,
365,
18,
291,
1214,
13332,
775,
30,
365,
18,
8864,
1214,
1435,
1335,
1140,
18,
1636,
30,
309,
18901,
1031,
18,
2556,
1209,
67,
15121,
30,
365,
18,
2556,
1209,
1435,
365,
18,
4646,
18,
674,
1367,
18,
86,
17371,
12,
2890,
18,
803,
13,
469,
30,
775,
30,
365,
18,
4646,
18,
538,
18,
318,
1232,
12,
2890,
18,
803,
13,
1335,
10002,
16,
555,
30,
309,
555,
18,
19088,
422,
8402,
18,
41,
3194,
49,
30,
282,
365,
18,
343,
1711,
12,
8642,
713,
13,
365,
18,
4646,
18,
538,
18,
318,
1232,
12,
2890,
18,
803,
13,
469,
30,
1002,
225,
365,
18,
542,
892,
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,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2613,
585,
622,
365,
18,
803,
18,
225,
31362,
9792,
6402,
12123,
613,
18,
1343,
2932,
20433,
738,
87,
6,
738,
365,
18,
803,
16,
2371,
13,
309,
365,
18,
291,
1214,
13332,
775,
30,
365,
18,
8864,
1214,
1435,
1335,
1140,
18,
1636,
30,
309,
18901,
1031,
18,
2556,
1209,
67,
15121,
30,
365,
18,
2556,
1209,
1435,
365,
18,
4646,
18,
674,
1367,
18,
86,
17371,
12,
2890,
18,
803,
13,
469,
30,
775,
30,
365,
18,
4646,
18,
538,
18,
318,
1232,
12,
2890,
18,
803,
13,
1335,
10002,
16,
555,
30,
309,
555,
18,
19088,
422,
8402,
18,
41,
3194,
49,
30,
282,
365,
18,
343,
1711,
12,
8642,
2
] |
gc = GraphicsContext((100,100), "rgba32")
|
gc = GraphicsContextSystem((100,100), "rgba32")
|
def test_creation(self): """ Simply create and destroy multiple objects. This silly test crashed when we transitioned from Numeric 23.1 to 23.8. That problem is fixed now. """ for i in range(10): gc = GraphicsContext((100,100), "rgba32") del gc
|
d874f92883c45f38256ab8f27844437665b46485 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/d874f92883c45f38256ab8f27844437665b46485/test_graphics_context_system.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17169,
12,
2890,
4672,
3536,
9587,
1283,
752,
471,
5546,
3229,
2184,
18,
225,
1220,
17714,
715,
1842,
4422,
13912,
1347,
732,
6007,
329,
628,
16980,
10213,
18,
21,
358,
10213,
18,
28,
18,
12466,
6199,
353,
5499,
2037,
18,
3536,
364,
277,
316,
1048,
12,
2163,
4672,
8859,
273,
16830,
1042,
3163,
12443,
6625,
16,
6625,
3631,
315,
26198,
1578,
7923,
1464,
8859,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17169,
12,
2890,
4672,
3536,
9587,
1283,
752,
471,
5546,
3229,
2184,
18,
225,
1220,
17714,
715,
1842,
4422,
13912,
1347,
732,
6007,
329,
628,
16980,
10213,
18,
21,
358,
10213,
18,
28,
18,
12466,
6199,
353,
5499,
2037,
18,
3536,
364,
277,
316,
1048,
12,
2163,
4672,
8859,
273,
16830,
1042,
3163,
12443,
6625,
16,
6625,
3631,
315,
26198,
1578,
7923,
1464,
8859,
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
] |
confidence = ((tDist(len(resultList)) * standard_error(resultList) / meanRes) * 100)
|
if meanRes==0: confidence = 0 else: confidence = ((tDist(len(resultList)) * standard_error(resultList) / meanRes) * 100)
|
def socketlog(msg): if logresults: if globs['socketlog']=='': file="socketlog-%s.txt" % globs['vmversion'] ctr=0 while os.path.exists(file): ctr+=1 file="socketlog-%s-%s.txt" % (globs['vmversion'],ctr) globs['socketlog']=file alltext='' try: alltext=open(globs['socketlog']).read() except: print("creating new socket log file %s" % globs['socketlog']) alltext+="%s\n" % msg open(globs['socketlog'],'w').write(alltext) s = socket(AF_INET, SOCK_STREAM) # create a TCP socket s.connect((serverHost, serverPort)) # connect to server on the port s.send("%s;exit\r\n" % msg) # send the data data = s.recv(1024) #print('Sent: %s' % msg) #print('Received: %s \n\n' % data) s.shutdown(SHUT_RDWR) s.close()
|
580818689c2232e12a959654af2627b7641723d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13395/580818689c2232e12a959654af2627b7641723d1/runtests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2987,
1330,
12,
3576,
4672,
309,
613,
4717,
30,
309,
4715,
87,
3292,
7814,
1330,
3546,
18920,
4278,
585,
1546,
7814,
1330,
6456,
87,
18,
5830,
6,
738,
4715,
87,
3292,
3489,
1589,
3546,
14629,
33,
20,
1323,
1140,
18,
803,
18,
1808,
12,
768,
4672,
14629,
15,
33,
21,
585,
1546,
7814,
1330,
6456,
87,
6456,
87,
18,
5830,
6,
738,
261,
10581,
87,
3292,
3489,
1589,
17337,
5735,
13,
4715,
87,
3292,
7814,
1330,
3546,
33,
768,
777,
955,
2218,
11,
775,
30,
777,
955,
33,
3190,
12,
10581,
87,
3292,
7814,
1330,
3546,
2934,
896,
1435,
1335,
30,
1172,
2932,
23799,
394,
2987,
613,
585,
738,
87,
6,
738,
4715,
87,
3292,
7814,
1330,
19486,
777,
955,
15,
11613,
87,
64,
82,
6,
738,
1234,
1696,
12,
10581,
87,
3292,
7814,
1330,
3546,
11189,
91,
16063,
2626,
12,
454,
955,
13,
272,
273,
2987,
12,
6799,
67,
18819,
16,
20834,
67,
13693,
13,
565,
468,
752,
279,
9911,
2987,
272,
18,
3612,
12443,
3567,
2594,
16,
1438,
2617,
3719,
468,
3077,
358,
1438,
603,
326,
1756,
272,
18,
4661,
27188,
87,
31,
8593,
64,
86,
64,
82,
6,
738,
1234,
13,
540,
468,
1366,
326,
501,
501,
273,
272,
18,
18334,
12,
2163,
3247,
13,
468,
1188,
2668,
7828,
30,
738,
87,
11,
738,
1234,
13,
468,
1188,
2668,
8872,
30,
738,
87,
521,
82,
64,
82,
11,
738,
501,
13,
272,
18,
15132,
12,
2664,
1693,
67,
20403,
7181,
13,
272,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2987,
1330,
12,
3576,
4672,
309,
613,
4717,
30,
309,
4715,
87,
3292,
7814,
1330,
3546,
18920,
4278,
585,
1546,
7814,
1330,
6456,
87,
18,
5830,
6,
738,
4715,
87,
3292,
3489,
1589,
3546,
14629,
33,
20,
1323,
1140,
18,
803,
18,
1808,
12,
768,
4672,
14629,
15,
33,
21,
585,
1546,
7814,
1330,
6456,
87,
6456,
87,
18,
5830,
6,
738,
261,
10581,
87,
3292,
3489,
1589,
17337,
5735,
13,
4715,
87,
3292,
7814,
1330,
3546,
33,
768,
777,
955,
2218,
11,
775,
30,
777,
955,
33,
3190,
12,
10581,
87,
3292,
7814,
1330,
3546,
2934,
896,
1435,
1335,
30,
1172,
2932,
23799,
394,
2987,
613,
585,
738,
87,
6,
738,
4715,
87,
3292,
7814,
1330,
19486,
2
] |
sage: networkx_plot(C._nxg, pos=C.get_pos(), edge_colors=edge_colors, vertex_labels=False, vertex_size=0)
|
sage: networkx_plot(C.networkx_graph(), pos=C.get_pos(), edge_colors=edge_colors, vertex_labels=False, vertex_size=0)
|
def networkx_plot(graph, pos=None, vertex_labels=True, vertex_size=300, vertex_colors=None, edge_colors=None, graph_border=False, scaling_term=0.05, draw_edges=True): """ Creates a graphics object ready to display a NetworkX graph. INPUT: graph -- a NetworkX graph pos -- an optional positioning dictionary: for example, the spring layout from NetworkX for the 5-cycle is { 0: [-0.91679746, 0.88169588,], 1: [ 0.47294849, 1.125 ,], 2: [ 1.125 ,-0.12867615,], 3: [ 0.12743933,-1.125 ,], 4: [-1.125 ,-0.50118505,] } vertex_labels -- determines whether labels for nodes are plotted vertex_size -- node size vertex_colors -- a dictionary specifying node colors: each key is a color recognized by matplotlib, and each entry is a list of vertices. edge_colors -- a dictionary specifying edge colors: each key is a color recognized by matplotlib, and each entry is a list of edges. scaling_term -- default is 0.05. if nodes are getting chopped off, increase; if graph is too small, decrease. should be positive, but values much bigger than 1/8 won't be useful unless the nodes are huge EXAMPLES: sage: import networkx sage: D = networkx.dodecahedral_graph() sage: networkx_plot(D) sage: import networkx sage: from math import sin, cos, pi sage: P = networkx.petersen_graph() sage: d = {'#FF0000':[0,5], '#FF9900':[1,6], '#FFFF00':[2,7], '#00FF00':[3,8], '#0000FF':[4,9]} sage: pos_dict = {} sage: for i in range(5): ... x = float(cos(pi/2 + ((2*pi)/5)*i)) ... y = float(sin(pi/2 + ((2*pi)/5)*i)) ... pos_dict[i] = [x,y] ... sage: for i in range(10)[5:]: ... x = float(0.5*cos(pi/2 + ((2*pi)/5)*i)) ... y = float(0.5*sin(pi/2 + ((2*pi)/5)*i)) ... pos_dict[i] = [x,y] ... sage: networkx_plot(graph=P, vertex_colors=d, pos=pos_dict) sage: C = graphs.CubeGraph(5) sage: from sage.plot.plot import rainbow sage: R = rainbow(5) sage: edge_colors = {} sage: for i in range(5): ... edge_colors[R[i]] = [] sage: for u,v,l in C.edges(): ... for i in range(5): ... if u[i] != v[i]: ... edge_colors[R[i]].append((u,v,l)) sage: networkx_plot(C._nxg, pos=C.get_pos(), edge_colors=edge_colors, vertex_labels=False, vertex_size=0) """ g = Graphics() NGP = GraphicPrimitive_NetworkXGraph(graph, pos=pos, vertex_labels=vertex_labels, \ vertex_size=vertex_size, vertex_colors=vertex_colors, edge_colors=edge_colors, \ scaling_term=scaling_term, draw_edges=draw_edges) g._Graphics__objects.append(NGP) xmin = NGP._xmin xmax = NGP._xmax ymin = NGP._ymin ymax = NGP._ymax g.axes_range(xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax) if graph_border: from sage.plot.plot import line dx = (xmax - xmin)/10 dy = (ymax - ymin)/10 border = (line([( xmin - dx, ymin - dy), ( xmin - dx, ymax + dy ), ( xmax + dx, ymax + dy ), ( xmax + dx, ymin - dy ), ( xmin - dx, ymin - dy )], thickness=1.3)) border.axes_range(xmin = (xmin - dx), xmax = (xmax + dx), ymin = (ymin - dy), ymax = (ymax + dy)) g = g + border g.axes(False) return g
|
bcde0e71ffdaed23a7cdc31a30070fb5e77f085b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/bcde0e71ffdaed23a7cdc31a30070fb5e77f085b/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2483,
92,
67,
4032,
12,
4660,
16,
949,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
5253,
67,
1467,
33,
19249,
16,
5253,
67,
9724,
33,
7036,
16,
3591,
67,
9724,
33,
7036,
16,
2667,
67,
8815,
33,
8381,
16,
10612,
67,
6408,
33,
20,
18,
6260,
16,
3724,
67,
8746,
33,
5510,
4672,
3536,
10210,
279,
17313,
733,
5695,
358,
2562,
279,
5128,
60,
2667,
18,
225,
12943,
30,
2667,
1493,
279,
5128,
60,
2667,
949,
1493,
392,
3129,
1754,
310,
3880,
30,
364,
3454,
16,
326,
25974,
3511,
628,
5128,
60,
364,
326,
1381,
17,
13946,
353,
288,
282,
374,
30,
23059,
20,
18,
29,
2313,
7235,
5608,
26,
16,
374,
18,
5482,
2313,
8778,
5482,
16,
6487,
404,
30,
306,
374,
18,
9462,
5540,
24,
5193,
29,
16,
404,
18,
18473,
377,
269,
6487,
576,
30,
306,
404,
18,
18473,
377,
269,
17,
20,
18,
2138,
5292,
6669,
3600,
16,
6487,
890,
30,
306,
374,
18,
2138,
5608,
5520,
3707,
16,
17,
21,
18,
18473,
377,
269,
6487,
1059,
30,
23059,
21,
18,
18473,
377,
269,
17,
20,
18,
9172,
2643,
3361,
25,
16,
65,
282,
289,
5253,
67,
5336,
1493,
12949,
2856,
3249,
364,
2199,
854,
3207,
2344,
5253,
67,
1467,
1493,
756,
963,
5253,
67,
9724,
1493,
279,
3880,
13664,
756,
5740,
30,
1517,
498,
353,
279,
2036,
16332,
635,
13892,
16,
471,
1517,
1241,
353,
279,
666,
434,
6928,
18,
3591,
67,
9724,
1493,
279,
3880,
13664,
3591,
5740,
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,
2483,
92,
67,
4032,
12,
4660,
16,
949,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
5253,
67,
1467,
33,
19249,
16,
5253,
67,
9724,
33,
7036,
16,
3591,
67,
9724,
33,
7036,
16,
2667,
67,
8815,
33,
8381,
16,
10612,
67,
6408,
33,
20,
18,
6260,
16,
3724,
67,
8746,
33,
5510,
4672,
3536,
10210,
279,
17313,
733,
5695,
358,
2562,
279,
5128,
60,
2667,
18,
225,
12943,
30,
2667,
1493,
279,
5128,
60,
2667,
949,
1493,
392,
3129,
1754,
310,
3880,
30,
364,
3454,
16,
326,
25974,
3511,
628,
5128,
60,
364,
326,
1381,
17,
13946,
353,
288,
282,
374,
30,
23059,
20,
18,
29,
2313,
7235,
5608,
26,
16,
374,
18,
5482,
2313,
8778,
2
] |
self.reset() def reset(self):
|
def __init__(self, parent, widths=[-1, 150]): self.parent = parent self.widths = widths self.cancel_label = _("Cancel") self.text = [' ' for w in self.widths] self.reset()
|
e58018fce6aa22afcff35404d27189910b30e9af /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/e58018fce6aa22afcff35404d27189910b30e9af/controls.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
15801,
33,
18919,
21,
16,
18478,
65,
4672,
365,
18,
2938,
273,
982,
365,
18,
17043,
273,
15801,
225,
365,
18,
10996,
67,
1925,
273,
389,
2932,
6691,
7923,
365,
18,
955,
273,
10228,
296,
364,
341,
316,
365,
18,
17043,
65,
365,
18,
6208,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
15801,
33,
18919,
21,
16,
18478,
65,
4672,
365,
18,
2938,
273,
982,
365,
18,
17043,
273,
15801,
225,
365,
18,
10996,
67,
1925,
273,
389,
2932,
6691,
7923,
365,
18,
955,
273,
10228,
296,
364,
341,
316,
365,
18,
17043,
65,
365,
18,
6208,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.