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... | 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,
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,
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,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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.getAttr... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
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,
... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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[... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
70... |
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.Re... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
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,
... | |
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 e... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
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,... |
'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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
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,
-1... |
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,
16,
2003,
33,
7036,
16,
508,
33,
7036,
4672,
3536,
18188,
3344,
326,
2202,
864,
2003,
19,
768,
578,
326,
7339,
1247,
8395,
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,
0,
0,
0,
0,
0,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
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,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-... | |
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
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... | 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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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... | |
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,
... | [
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,
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,
-... |
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?pro... | 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,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
31... |
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,
3805,
12,
2890,
4672,
315,
986,
678,
16312,
19,
1994,
4667,
19,
13211,
1390,
16,
263,
80,
17995,
9907,
471,
8873,
1199,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
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 t... | 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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1... |
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, decod... | 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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
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,
1... |
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.pk... | 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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1... |
'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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
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,
... |
('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'... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
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__.__na... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
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,
... | |
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,
1652,
320,
3197,
67,
19005,
67,
16732,
13332,
15551,
2390,
395,
18,
6200,
67,
5645,
1435,
327,
296,
4768,
11,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-1... |
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:]).... | 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(... | 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[... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
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,
1... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
2890,
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,
... |
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 =... | 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,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
3... |
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[wi... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
<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_z... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
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,... |
- 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,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3... |
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(... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
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,
... | |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
(<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>, (<Interfac... | (<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... | 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 ((('ad... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
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,
... |
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_record... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
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... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
... |
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,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
9... |
""" | """ | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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.se... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
-1... | |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
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,
... |
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
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... | [
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... | |
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,
64,
82,
6,
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,
0,
0,
0,
0,
0,
0,
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,
... |
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,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
7... |
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? mod... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
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... |
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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:\... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
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,
... |
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', m... | 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,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26... |
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: normali... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
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,
... |
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,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
3... |
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(Pro... | 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,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
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,
8... |
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 round... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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 ... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
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... |
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: ra... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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 =... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
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,... |
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 = s... | 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,
567... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567... |
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(curs... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
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,
... |
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,
... | [
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... | [
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,... |
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() re... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
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,
... |
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 o... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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 l... | 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,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
27... |
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(t... | 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,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
19... | |
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... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
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... | 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,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
199... |
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/sgrepmdi.py | [
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
... |
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_ex... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
... |
'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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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 wit... | 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,
404... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
404... |
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 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
... | [
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... | [
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,
-1... |
%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 ... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,... |
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_... | 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... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
@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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
... | |
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,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
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,
36... |
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 start... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
303,
332,
7637,
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,
... |
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" % s... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
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 ... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
29... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
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,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.