rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if node.label() != self.liveWire.endNodeLabel(): if self.liveWire.setEndNodeLabel(node.label()): pathEdges = [dart.edge() for dart in self.liveWire.pathDarts()] | if node.label() != self._liveWire.endNodeLabel(): if self._liveWire.setEndNodeLabel(node.label()): pathEdges = [dart.edge() for dart in self._liveWire.pathDarts()] | def mouseMoved(self, x, y): """It the live wire is active, it's end node is set to the nearest node and the display (overlay) is updated. Else, the nearest node is chosen as start node and highlighted.""" | 65254bc446b7c353066fe806e0424030a38d558d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/65254bc446b7c353066fe806e0424030a38d558d/tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
25317,
12,
2890,
16,
619,
16,
677,
4672,
3536,
7193,
326,
8429,
6636,
353,
2695,
16,
518,
1807,
679,
756,
353,
444,
358,
326,
11431,
756,
471,
326,
2562,
261,
17312,
13,
353,
352... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7644,
25317,
12,
2890,
16,
619,
16,
677,
4672,
3536,
7193,
326,
8429,
6636,
353,
2695,
16,
518,
1807,
679,
756,
353,
444,
358,
326,
11431,
756,
471,
326,
2562,
261,
17312,
13,
353,
352... |
feed = self.doclist.GetDocumentListFeed(uri) | feed = self.client.GetDocumentListFeed(uri) | def testGetDocumentsListFeed(self): self.assert_(isinstance(self.feed, gdata.docs.DocumentListFeed)) uri = 'http://docs.google.com/feeds/documents/private/full/?max-results=1' | 76de6e666a2dc6ba3f703b89b870266619bcabd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10620/76de6e666a2dc6ba3f703b89b870266619bcabd4/service_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
967,
12922,
682,
8141,
12,
2890,
4672,
365,
18,
11231,
67,
12,
291,
1336,
12,
2890,
18,
7848,
16,
314,
892,
18,
8532,
18,
2519,
682,
8141,
3719,
2003,
273,
296,
2505,
2207,
8532,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
12922,
682,
8141,
12,
2890,
4672,
365,
18,
11231,
67,
12,
291,
1336,
12,
2890,
18,
7848,
16,
314,
892,
18,
8532,
18,
2519,
682,
8141,
3719,
2003,
273,
296,
2505,
2207,
8532,... |
"python:portal.portal_membership.getAuthenticatedMember().has_role('Member')", | "python:portal.portal_membership.getAuthenticatedMember().has_role('Employee')", | def configureUserActions(portal): # add an action to the persnal bar for project management actionTool = getToolByName(portal, 'portal_membership', None) actionTool_actions = actionTool._cloneActions() actionDefined=0 for a in actionTool_actions: if a.id in ['time_registration',]: a.visible = 1 actionDefined = 1 action... | 0e134bb1cf58e139fa42ddbccae0d044406b7854 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10431/0e134bb1cf58e139fa42ddbccae0d044406b7854/Install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
1299,
6100,
12,
24386,
4672,
468,
527,
392,
1301,
358,
326,
13508,
82,
287,
4653,
364,
1984,
11803,
1301,
6364,
273,
336,
6364,
5911,
12,
24386,
16,
296,
24386,
67,
19679,
2187,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5068,
1299,
6100,
12,
24386,
4672,
468,
527,
392,
1301,
358,
326,
13508,
82,
287,
4653,
364,
1984,
11803,
1301,
6364,
273,
336,
6364,
5911,
12,
24386,
16,
296,
24386,
67,
19679,
2187,
59... |
'cc.licenserdf', 'i18n'), | 'cc.licenserdf', 'i18n/i18n/'), | def makeOpts(): """Define an option parser and return it.""" usage = """usage: %prog <action> <jurisdiction> [options] | a5e0611b85186de095d36ce206772fbd43cb2201 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4330/a5e0611b85186de095d36ce206772fbd43cb2201/jurisdiction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
5476,
13332,
3536,
11644,
392,
1456,
2082,
471,
327,
518,
12123,
225,
4084,
273,
3536,
9167,
30,
738,
14654,
411,
1128,
34,
411,
78,
23510,
72,
2228,
34,
306,
2116,
65,
225,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
5476,
13332,
3536,
11644,
392,
1456,
2082,
471,
327,
518,
12123,
225,
4084,
273,
3536,
9167,
30,
738,
14654,
411,
1128,
34,
411,
78,
23510,
72,
2228,
34,
306,
2116,
65,
225,
2,
-... |
(Same as self.group_id().) Return the ID code of this group, which | (Same as ``self.group_id()``.) Return the ID code of this group, which | def id(self): """ (Same as self.group_id().) Return the ID code of this group, which is a list of two integers. Requires "optional" database_gap-4.4.x package. EXAMPLES:: sage: G = PermutationGroup([[(1,2,3),(4,5)], [(1,2)]]) sage: G.group_id() # optional - database_gap [12, 4] """ return self.group_id() | f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
12,
2890,
4672,
3536,
261,
8650,
487,
12176,
2890,
18,
1655,
67,
350,
20338,
8338,
13,
2000,
326,
1599,
981,
434,
333,
1041,
16,
1492,
353,
279,
666,
434,
2795,
12321,
18,
16412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
612,
12,
2890,
4672,
3536,
261,
8650,
487,
12176,
2890,
18,
1655,
67,
350,
20338,
8338,
13,
2000,
326,
1599,
981,
434,
333,
1041,
16,
1492,
353,
279,
666,
434,
2795,
12321,
18,
16412,
... |
if str(bulkInfo[self.status]) == 'A' : | if str(bulkInfo[self.status]) == 'Aborted' : | def checkJobsBulk( self, task, jobIds, parentIds ): """ check a list of provided job parent ids """ | d4d786f2041b6a9ee48b640174442b3263fa1d20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/d4d786f2041b6a9ee48b640174442b3263fa1d20/GLiteLBQuery.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
7276,
13112,
12,
365,
16,
1562,
16,
1719,
2673,
16,
982,
2673,
262,
30,
3536,
866,
279,
666,
434,
2112,
1719,
982,
3258,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
866,
7276,
13112,
12,
365,
16,
1562,
16,
1719,
2673,
16,
982,
2673,
262,
30,
3536,
866,
279,
666,
434,
2112,
1719,
982,
3258,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
res = self.wmsClient.getJobPrimarySummary(int(wmsID)) | res = self.jobMonitoringClient.getJobPrimarySummary(int(wmsID)) | def updateTransformationReservedTasks(self,taskDicts): taskNames = [] for taskDict in taskDicts: transID = taskDict['TransformationID'] taskID = taskDict['JobID'] taskName = str(transID).zfill(8)+'_'+str(taskID).zfill(8) taskNames.append(taskName) res = self.wmsClient.getJobs({'JobName':taskNames}) if not ['OK']: self.... | 83b9db9976066289db9fe646975e00b42ef78b0a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/83b9db9976066289db9fe646975e00b42ef78b0a/TaskManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
15292,
10435,
6685,
12,
2890,
16,
4146,
5014,
87,
4672,
1562,
1557,
273,
5378,
364,
1562,
5014,
316,
1562,
5014,
87,
30,
906,
734,
273,
1562,
5014,
3292,
15292,
734,
3546,
29772,
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,
1089,
15292,
10435,
6685,
12,
2890,
16,
4146,
5014,
87,
4672,
1562,
1557,
273,
5378,
364,
1562,
5014,
316,
1562,
5014,
87,
30,
906,
734,
273,
1562,
5014,
3292,
15292,
734,
3546,
29772,
2... |
def GetHashLong(id, idx): | def GetHashLong(hashid, idx): | def GetHashLong(id, idx): raise DeprecatedIDCError, "Use python pickles instead." | 4f22943d42ee1d5013421d280b3bd776bee83fb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3410/4f22943d42ee1d5013421d280b3bd776bee83fb9/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2310,
3708,
12,
2816,
350,
16,
2067,
4672,
1002,
9336,
734,
39,
668,
16,
315,
3727,
5790,
6002,
1040,
3560,
1199,
225,
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,
968,
2310,
3708,
12,
2816,
350,
16,
2067,
4672,
1002,
9336,
734,
39,
668,
16,
315,
3727,
5790,
6002,
1040,
3560,
1199,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
gMonitor.addMark('RemoveFileFail',len(lfns)) | gMonitor.addMark( 'RemoveFileFail', len( lfns ) ) | def executeRequest(self): ################################################ # Get a request from request DB gMonitor.addMark( "Iteration", 1 ) res = self.RequestDBClient.getRequest('removal') if not res['OK']: gLogger.info("RemovalAgent.execute: Failed to get request from database.") return S_OK() elif not res['Value']:... | 639c184ef75c7730d44d5168750f1731c63bf98b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/639c184ef75c7730d44d5168750f1731c63bf98b/RemovalAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
691,
12,
2890,
4672,
19709,
26487,
13151,
468,
968,
279,
590,
628,
590,
2383,
314,
7187,
18,
1289,
3882,
12,
315,
10795,
3113,
404,
262,
400,
273,
365,
18,
691,
2290,
1227,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
691,
12,
2890,
4672,
19709,
26487,
13151,
468,
968,
279,
590,
628,
590,
2383,
314,
7187,
18,
1289,
3882,
12,
315,
10795,
3113,
404,
262,
400,
273,
365,
18,
691,
2290,
1227,
18,
5... |
self.display.text = str(self.X) self.resetInput = True | def operate(self, sender=None): if self.op == None: self.X = float(self.display.text) else: if self.op == '+': self.X = self.X + float(self.display.text) elif self.op == '-': self.X = self.X - float(self.display.text) elif self.op == '*': self.X = self.X * float(self.display.text) elif self.op == '/': self.X = self.X /... | 536f973b2acbe2a540c88d66603ea789ae894cfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2750/536f973b2acbe2a540c88d66603ea789ae894cfa/calculator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20829,
12,
2890,
16,
5793,
33,
7036,
4672,
309,
365,
18,
556,
422,
599,
30,
365,
18,
60,
273,
1431,
12,
2890,
18,
5417,
18,
955,
13,
469,
30,
309,
365,
18,
556,
422,
15126,
4278,
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,
20829,
12,
2890,
16,
5793,
33,
7036,
4672,
309,
365,
18,
556,
422,
599,
30,
365,
18,
60,
273,
1431,
12,
2890,
18,
5417,
18,
955,
13,
469,
30,
309,
365,
18,
556,
422,
15126,
4278,
3... | |
self._lock.notify() | self._pool_to_worker.notify() | def AddTask(self, *args): """Adds a task to the queue. | 53b1d12b5b5f675bc88c087d1832727190254aa1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/53b1d12b5b5f675bc88c087d1832727190254aa1/workerpool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
2174,
12,
2890,
16,
380,
1968,
4672,
3536,
3655,
279,
1562,
358,
326,
2389,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
2174,
12,
2890,
16,
380,
1968,
4672,
3536,
3655,
279,
1562,
358,
326,
2389,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
else: try: backref[ 'post_update'] = r[ 'post_update' ] except KeyError: pass | else: for p in 'post_update remote_side'.split(): try: backref[ p] = r[p] except KeyError: pass | def append( self, *args, **kwargs): item = self._data_appender( *args,**kwargs) self._InstrumentedList__setrecord( item) #private __setrecord; was _before_ _data_appender | c6e6d29d58cddba0507d81952616e2383ac5d243 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10808/c6e6d29d58cddba0507d81952616e2383ac5d243/relation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
365,
16,
380,
1968,
16,
2826,
4333,
4672,
761,
273,
365,
6315,
892,
67,
6923,
264,
12,
380,
1968,
16,
636,
4333,
13,
365,
6315,
19228,
18073,
972,
542,
3366,
12,
761,
13,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
365,
16,
380,
1968,
16,
2826,
4333,
4672,
761,
273,
365,
6315,
892,
67,
6923,
264,
12,
380,
1968,
16,
636,
4333,
13,
365,
6315,
19228,
18073,
972,
542,
3366,
12,
761,
13,
56... |
exclude_dirs=[], exclude_files=[], license=False, directive_vars={}): | exclude_dirs=[], exclude_files=[], directive_vars={}): | def export(src, dst, process_directives=True, keywords={}, exclude_dirs=[], exclude_files=[], license=False, directive_vars={}): """ Build from a directory to a directory. src: Source dir to build from dst: destination directory to build to process_directives: if true, process <!-- command.. directives in html/xml fil... | 37b54849deb6bdf7c00d651f2ae8c531736d4cef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10922/37b54849deb6bdf7c00d651f2ae8c531736d4cef/dfbuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
4816,
16,
3046,
16,
1207,
67,
30850,
33,
5510,
16,
7093,
28793,
4433,
67,
8291,
22850,
6487,
4433,
67,
2354,
22850,
6487,
8655,
67,
4699,
12938,
4672,
3536,
3998,
628,
279,
186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3359,
12,
4816,
16,
3046,
16,
1207,
67,
30850,
33,
5510,
16,
7093,
28793,
4433,
67,
8291,
22850,
6487,
4433,
67,
2354,
22850,
6487,
8655,
67,
4699,
12938,
4672,
3536,
3998,
628,
279,
186... |
msg = email.MIMEMultipart.MIMEMultipart() msg['Subject'] = '[PATCH 0 of %d] %s' % ( | subj = '[PATCH 0 of %d] %s' % ( | def getaddrs(opt, prpt, default = None): addrs = opts[opt] or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs if a.strip()] | e4dda3bf616ac422138217021ce114b3e3a79465 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/e4dda3bf616ac422138217021ce114b3e3a79465/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23305,
12,
3838,
16,
846,
337,
16,
805,
273,
599,
4672,
11755,
273,
1500,
63,
3838,
65,
578,
261,
4881,
18,
1425,
2668,
3652,
2187,
2153,
13,
578,
5915,
18,
1425,
2668,
2272,
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,
336,
23305,
12,
3838,
16,
846,
337,
16,
805,
273,
599,
4672,
11755,
273,
1500,
63,
3838,
65,
578,
261,
4881,
18,
1425,
2668,
3652,
2187,
2153,
13,
578,
5915,
18,
1425,
2668,
2272,
70,
... |
detach(args, 'network-detach', 'vif') | arg_check(args, 'network-detach', 2, 3) detach(args, 'vif') | def xm_network_detach(args): if serverType == SERVER_XEN_API: arg_check(args, "xm_network_detach", 2, 3) dom = args[0] devid = args[1] vif_refs = server.xenapi.VM.get_VIFs(get_single_vm(dom)) vif_refs = [vif_ref for vif_ref in vif_refs if server.xenapi.VIF.\ get_runtime_properties(vif_ref)["handle"] == devid] if len(vi... | 3702773d22470cd8c4d222b36e0e9aeab5fb6174 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/3702773d22470cd8c4d222b36e0e9aeab5fb6174/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25179,
67,
5185,
67,
8238,
497,
12,
1968,
4672,
309,
1438,
559,
422,
15061,
67,
60,
1157,
67,
2557,
30,
1501,
67,
1893,
12,
1968,
16,
315,
92,
81,
67,
5185,
67,
8238,
497,
3113,
576,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25179,
67,
5185,
67,
8238,
497,
12,
1968,
4672,
309,
1438,
559,
422,
15061,
67,
60,
1157,
67,
2557,
30,
1501,
67,
1893,
12,
1968,
16,
315,
92,
81,
67,
5185,
67,
8238,
497,
3113,
576,... |
- ``childs``: a function returning a list (or iterable) | - ``children``: a function returning a list (or iterable) | def search_forest_iterator(roots, childs): """ INPUT: - ``roots``: a list (or iterable) - ``childs``: a function returning a list (or iterable) Returns an iterator on the nodes of the forest having the given roots, and where ``child(x)`` returns the childs of the node ``x`` of the forest. EXAMPLES:: sage: from sag... | 0c5cb94bdc0dba9150cb164c00100196aa13fa7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0c5cb94bdc0dba9150cb164c00100196aa13fa7e/backtrack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
1405,
334,
67,
9838,
12,
22078,
16,
21619,
4672,
3536,
12943,
30,
225,
300,
12176,
22078,
10335,
30,
279,
666,
261,
280,
6087,
13,
225,
300,
12176,
5906,
10335,
30,
279,
445,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
1405,
334,
67,
9838,
12,
22078,
16,
21619,
4672,
3536,
12943,
30,
225,
300,
12176,
22078,
10335,
30,
279,
666,
261,
280,
6087,
13,
225,
300,
12176,
5906,
10335,
30,
279,
445,
... |
self.__env = environment() | self.__env = environment | def __init__(self, bosstype, mainloop, mainstop): self.__mainloop = mainloop self.__mainstop = mainstop self.__env = environment() self.__boss = bosstype(application=self, env=self.__env) self.boss = self.__boss | 8b6f6f9c243b0cd905fa6cd45577be2cf1989411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/8b6f6f9c243b0cd905fa6cd45577be2cf1989411/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23904,
27273,
16,
2774,
6498,
16,
2774,
5681,
4672,
365,
16186,
5254,
6498,
273,
2774,
6498,
365,
16186,
5254,
5681,
273,
2774,
5681,
365,
16186,
3074,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23904,
27273,
16,
2774,
6498,
16,
2774,
5681,
4672,
365,
16186,
5254,
6498,
273,
2774,
6498,
365,
16186,
5254,
5681,
273,
2774,
5681,
365,
16186,
3074,
273,
... |
command = "mupkern -P e", | command = "mupkern -P e -U SAGE=TRUE", | def __init__(self, maxread=1000, script_subdirectory="", server=None, server_tmpdir=None, logfile=None): """ Create an instance of the MuPAD interpreter. | 92797139c61d6fef4d37c572e10f34ce623445f3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/92797139c61d6fef4d37c572e10f34ce623445f3/mupad.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
943,
896,
33,
18088,
16,
2728,
67,
1717,
5149,
1546,
3113,
1438,
33,
7036,
16,
1438,
67,
5645,
1214,
33,
7036,
16,
15204,
33,
7036,
4672,
3536,
1788,
392... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
943,
896,
33,
18088,
16,
2728,
67,
1717,
5149,
1546,
3113,
1438,
33,
7036,
16,
1438,
67,
5645,
1214,
33,
7036,
16,
15204,
33,
7036,
4672,
3536,
1788,
392... |
y = rowpos + cellstyle.bottomPadding+n*leading | y = rowpos + cellstyle.bottomPadding+n*leading-fontsize | def _drawCell(self, cellval, cellstyle, (colpos, rowpos), (colwidth, rowheight)): #print "cellstyle is ", repr(cellstyle), id(cellstyle) if self._curcellstyle is not cellstyle: cur = self._curcellstyle if cur is None or cellstyle.color != cur.color: #print "setting cell color to %s" % `cellstyle.color` self.canv.setFil... | 05bfe223624d1df66401c7f78a6ac81f78006d39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/05bfe223624d1df66401c7f78a6ac81f78006d39/tables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
4020,
12,
2890,
16,
2484,
1125,
16,
2484,
4060,
16,
261,
1293,
917,
16,
1027,
917,
3631,
261,
1293,
2819,
16,
1027,
4210,
3719,
30,
468,
1188,
315,
3855,
4060,
353,
3104,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9446,
4020,
12,
2890,
16,
2484,
1125,
16,
2484,
4060,
16,
261,
1293,
917,
16,
1027,
917,
3631,
261,
1293,
2819,
16,
1027,
4210,
3719,
30,
468,
1188,
315,
3855,
4060,
353,
3104,
84... |
(-0.440242867236, -0.567868371314, -0.695493875393) | (...0.440242867..., ...0.567868371..., ...0.695493875...) | def __call__(self, x, coerce=True, copy=True, check=True): r""" Create an element of this free module from x. | bbbbc10a89ee8b11acc8a239dfce4771061bb6f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/bbbbc10a89ee8b11acc8a239dfce4771061bb6f6/free_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
12270,
33,
5510,
16,
1610,
33,
5510,
16,
866,
33,
5510,
4672,
436,
8395,
1788,
392,
930,
434,
333,
4843,
1605,
628,
619,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
12270,
33,
5510,
16,
1610,
33,
5510,
16,
866,
33,
5510,
4672,
436,
8395,
1788,
392,
930,
434,
333,
4843,
1605,
628,
619,
18,
2,
-100,
-100,
-1... |
def RoadTest(*args): return _micropolisengine.Micropolis_RoadTest(*args) | def RoadTest(*args): return _micropolisengine.Micropolis_RoadTest(*args) | b5b685557b485425648d051d7e3d94c4147e2076 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12485/b5b685557b485425648d051d7e3d94c4147e2076/micropolisengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25097,
4709,
30857,
1968,
4672,
327,
389,
27593,
1764,
355,
291,
8944,
18,
49,
335,
1764,
355,
291,
67,
54,
6189,
4709,
30857,
1968,
13,
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,
0,
0,
0,
0,
0,
0,
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,
25097,
4709,
30857,
1968,
4672,
327,
389,
27593,
1764,
355,
291,
8944,
18,
49,
335,
1764,
355,
291,
67,
54,
6189,
4709,
30857,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
installed.append(po) | dinst[po.pkgtup] = po; installed = dinst.values() | def doPackageLists(self, pkgnarrow='all'): """generates lists of packages, un-reduced, based on pkgnarrow option""" ygh = misc.GenericHolder() installed = [] available = [] updates = [] obsoletes = [] obsoletesTuples = [] recent = [] extras = [] | 1c8afd1b9302973702ee075866a8ceba344bb829 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/1c8afd1b9302973702ee075866a8ceba344bb829/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2261,
7432,
12,
2890,
16,
2365,
1600,
7815,
2218,
454,
11,
4672,
3536,
3441,
815,
6035,
434,
5907,
16,
640,
17,
1118,
26372,
16,
2511,
603,
2365,
1600,
7815,
1456,
8395,
225,
677,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2261,
7432,
12,
2890,
16,
2365,
1600,
7815,
2218,
454,
11,
4672,
3536,
3441,
815,
6035,
434,
5907,
16,
640,
17,
1118,
26372,
16,
2511,
603,
2365,
1600,
7815,
1456,
8395,
225,
677,
... |
selfreader_job = proc.spawn_link_exception(self._reader) | proc.spawn(self._reader) | def __init__(self, msrpsession): self.msrpsession = msrpsession selfreader_job = proc.spawn_link_exception(self._reader) | 09686f1abc38fa85767d85488004b0b1b42e0ac7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/09686f1abc38fa85767d85488004b0b1b42e0ac7/sip_im_session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4086,
86,
1121,
893,
4672,
365,
18,
959,
86,
1121,
893,
273,
4086,
86,
1121,
893,
365,
10530,
67,
4688,
273,
5418,
18,
1752,
9533,
67,
1232,
67,
4064,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4086,
86,
1121,
893,
4672,
365,
18,
959,
86,
1121,
893,
273,
4086,
86,
1121,
893,
365,
10530,
67,
4688,
273,
5418,
18,
1752,
9533,
67,
1232,
67,
4064,
... |
if index not in self.tabrows[-1]: for row in range(len(self.tabrows) - 2, -1, -1): if index in self.tabrows[row]: saverow = self.tabrows[row] self.tabrows[row] = self.tabrows[-1] self.tabrows[-1] = saverow | if index not in self.tabrows[self.currows[-1]]: for row in range(0, len(self.tabrows)): if index in self.tabrows[self.currows[row]]: saverow = self.currows[row] self.currows[row] = self.currows[-1] self.currows[-1] = saverow | def setCurrentTab(self, tab): if not tab or self.count() == 0: return if isinstance(tab, int): tab = self.tab(tab) if tab == self.currentTab(): return; index = self.indexOf(tab.identifier()) if index not in self.tabrows[-1]: for row in range(len(self.tabrows) - 2, -1, -1): if index in self.tabrows[row]: saverow = self.... | 76d9ea2f2340e175f4f7bdb5d591f85dd51e962a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/76d9ea2f2340e175f4f7bdb5d591f85dd51e962a/MultiTabBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12589,
5661,
12,
2890,
16,
3246,
4672,
309,
486,
3246,
578,
365,
18,
1883,
1435,
422,
374,
30,
327,
309,
1549,
12,
7032,
16,
509,
4672,
3246,
273,
365,
18,
7032,
12,
7032,
13,
309,
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,
12589,
5661,
12,
2890,
16,
3246,
4672,
309,
486,
3246,
578,
365,
18,
1883,
1435,
422,
374,
30,
327,
309,
1549,
12,
7032,
16,
509,
4672,
3246,
273,
365,
18,
7032,
12,
7032,
13,
309,
3... |
if len(activePlayers) < 2: bettingFinished = True break | def run(self): bettingFinished = False # Whether to re-open betting when a shorty goes all-in # and caps the betting reOpenBetting = False # Betting Round is closed. bettingClosed = False | 6b37284f853a674723743852db7cd69122794534 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14397/6b37284f853a674723743852db7cd69122794534/rotator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2701,
1787,
10577,
273,
1083,
468,
17403,
358,
283,
17,
3190,
2701,
1787,
1347,
279,
3025,
93,
13998,
777,
17,
267,
468,
471,
15788,
326,
2701,
1787,
283,
3678,
38,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2701,
1787,
10577,
273,
1083,
468,
17403,
358,
283,
17,
3190,
2701,
1787,
1347,
279,
3025,
93,
13998,
777,
17,
267,
468,
471,
15788,
326,
2701,
1787,
283,
3678,
38,... | |
return _node_id( node ) == 'contents' | return _node_class( node ) == 'contents' | def _is_toc_node( node ): return _node_id( node ) == 'contents' | 594566144131a9ea678d1f59e8605fef59589a0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5620/594566144131a9ea678d1f59e8605fef59589a0f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
67,
1391,
67,
2159,
12,
756,
262,
30,
327,
389,
2159,
67,
1106,
12,
756,
262,
422,
296,
3980,
11,
282,
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,
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,
389,
291,
67,
1391,
67,
2159,
12,
756,
262,
30,
327,
389,
2159,
67,
1106,
12,
756,
262,
422,
296,
3980,
11,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.body.append('\\\\\n') | if self.table is not None: self.body.append('\\newline\n') else: self.body.append('\\\\\n') | def depart_line(self, node): if self._line_start == len(self.body): # no output in this line -- add a nonbreaking space, else the # \\ command will give an error self.body.append('~') self.body.append('\\\\\n') | ab597c6a7e018776c4a65b0adcb4de272215aaa9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7032/ab597c6a7e018776c4a65b0adcb4de272215aaa9/latexwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
1369,
12,
2890,
16,
756,
4672,
309,
365,
6315,
1369,
67,
1937,
422,
562,
12,
2890,
18,
3432,
4672,
468,
1158,
876,
316,
333,
980,
1493,
527,
279,
1661,
8820,
310,
3476,
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,
26000,
67,
1369,
12,
2890,
16,
756,
4672,
309,
365,
6315,
1369,
67,
1937,
422,
562,
12,
2890,
18,
3432,
4672,
468,
1158,
876,
316,
333,
980,
1493,
527,
279,
1661,
8820,
310,
3476,
16,
... |
if root == p: | if osRoot == p: | def installPackage(self, appRunner): """ Mounts the package and sets up system paths so it becomes available for use. """ | 022851586674b662bcca0d3ad1f3f42ff84a052f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/022851586674b662bcca0d3ad1f3f42ff84a052f/PackageInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
2261,
12,
2890,
16,
595,
9709,
4672,
3536,
13076,
87,
326,
2181,
471,
1678,
731,
2619,
2953,
1427,
518,
12724,
2319,
364,
999,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
3799,
2261,
12,
2890,
16,
595,
9709,
4672,
3536,
13076,
87,
326,
2181,
471,
1678,
731,
2619,
2953,
1427,
518,
12724,
2319,
364,
999,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pixbuf = gtk.gdk.pixbuf_new_from_file(shared.IMG_DIR + icon_image_standalone) | pixbuf = gtk.gdk.pixbuf_new_from_file(shared.IMG_DIR + shared.icon_image_standalone) | def generate_icon(self, data): print_debug("generate_icon() ip=%s hostname=%s"%(data['ip'], data['hostname']) ) iconview=gtk.IconView() model = gtk.ListStore(str, str, gtk.gdk.Pixbuf) if data['standalone']: pixbuf = gtk.gdk.pixbuf_new_from_file(shared.IMG_DIR + icon_image_standalone) else: pixbuf = gtk.gdk.pixbuf_new_... | 507088534c6c0551cc3509bdb25d7bb0b65d7fd1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13520/507088534c6c0551cc3509bdb25d7bb0b65d7fd1/TcosClassView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
3950,
12,
2890,
16,
501,
4672,
1172,
67,
4148,
2932,
7163,
67,
3950,
1435,
2359,
5095,
87,
5199,
5095,
87,
6,
17105,
892,
3292,
625,
17337,
501,
3292,
10358,
19486,
262,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
3950,
12,
2890,
16,
501,
4672,
1172,
67,
4148,
2932,
7163,
67,
3950,
1435,
2359,
5095,
87,
5199,
5095,
87,
6,
17105,
892,
3292,
625,
17337,
501,
3292,
10358,
19486,
262,
225,
... |
if seq not in self.wait_queue: | if seq not in self._wait_queue: | def handle_packet(self, packet): # FIXME: loads() could raise an exception if trying to unpickle an # unknown object (like an exception). (seq, packet_type, data) = cPickle.loads(packet) if packet_type[:3] == "REP": _debug(1, "-> REPLY: seq=%d, type=%s, data=%d" % (seq, packet_type, len(packet))) if seq not in self.wai... | 3ba78ab154465b2ff0620e0ded429951a6f040f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/3ba78ab154465b2ff0620e0ded429951a6f040f0/ipc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
11482,
12,
2890,
16,
4414,
4672,
468,
9852,
30,
6277,
1435,
3377,
1002,
392,
1520,
309,
8374,
358,
640,
20847,
392,
468,
5917,
733,
261,
5625,
392,
1520,
2934,
261,
5436,
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,
1640,
67,
11482,
12,
2890,
16,
4414,
4672,
468,
9852,
30,
6277,
1435,
3377,
1002,
392,
1520,
309,
8374,
358,
640,
20847,
392,
468,
5917,
733,
261,
5625,
392,
1520,
2934,
261,
5436,
16,
... |
while step < len(code): op = ord(code[step]) | while step < len(co.co_code): op = ord(co.co_code[step]) | def getargs(co): """Get information about the arguments accepted by a code object. Three things are returned: (args, varargs, varkw), where 'args' is a list of argument names (possibly containing nested lists), and 'varargs' and 'varkw' are the names of the * and ** arguments or None.""" if not iscode(co): raise Type... | bc5fbd9f8c1a271557846d7aa7a428ae25f901e8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/bc5fbd9f8c1a271557846d7aa7a428ae25f901e8/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1968,
12,
2894,
4672,
3536,
967,
1779,
2973,
326,
1775,
8494,
635,
279,
981,
733,
18,
225,
935,
992,
9198,
854,
2106,
30,
261,
1968,
16,
19732,
16,
569,
9987,
3631,
1625,
296,
196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1968,
12,
2894,
4672,
3536,
967,
1779,
2973,
326,
1775,
8494,
635,
279,
981,
733,
18,
225,
935,
992,
9198,
854,
2106,
30,
261,
1968,
16,
19732,
16,
569,
9987,
3631,
1625,
296,
196... |
time_started, info = self.worker_tracker[worker.thread_id] | def kill_hung_threads(self): """ Tries to kill any hung threads """ if not self.kill_thread_limit: # No killing should occur return now = time.time() max_time = 0 total_time = 0 idle_workers = 0 starting_workers = 0 working_workers = 0 killed_workers = 0 for worker in self.workers: if not hasattr(worker, 'thread_id'): ... | a6f337f03524970069ede4c30bff37817e79d4f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11400/a6f337f03524970069ede4c30bff37817e79d4f2/httpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
76,
20651,
67,
12495,
12,
2890,
4672,
3536,
10000,
281,
358,
8673,
1281,
366,
20651,
7403,
3536,
309,
486,
365,
18,
16418,
67,
5930,
67,
3595,
30,
468,
2631,
417,
5789,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8673,
67,
76,
20651,
67,
12495,
12,
2890,
4672,
3536,
10000,
281,
358,
8673,
1281,
366,
20651,
7403,
3536,
309,
486,
365,
18,
16418,
67,
5930,
67,
3595,
30,
468,
2631,
417,
5789,
1410,
... | |
quantity, uom_id = 0.0, product2uom[line.product.id] | def complete_lines(self, cursor, user, ids, context=None): ''' Complete or update the inventories | 9e27d1d321ded9cf2ad2493cbd9b6ff38a9bad6a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9298/9e27d1d321ded9cf2ad2493cbd9b6ff38a9bad6a/inventory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3912,
67,
3548,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
9163,
14575,
578,
1089,
326,
316,
616,
2401,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
3912,
67,
3548,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
9163,
14575,
578,
1089,
326,
316,
616,
2401,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
for tc in _types_callback: tc(klass, package) | def registerType(klass, package=None): if not package: package = _guessPackage(klass.__module__) ## registering a class results in classgen doing its thing ## Set up accessor/mutators and sane meta/portal_type generateClass(klass) data = { 'klass' : klass, 'name' : klass.meta_type, 'portal_type': klass.portal_type, ... | b9ae4b1f416be2a606a7ac40b22a9cbe66f10590 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/b9ae4b1f416be2a606a7ac40b22a9cbe66f10590/ArchetypeTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
559,
12,
22626,
16,
2181,
33,
7036,
4672,
309,
486,
2181,
30,
2181,
273,
389,
20885,
2261,
12,
22626,
16186,
2978,
972,
13,
225,
7541,
22845,
279,
667,
1686,
316,
667,
4507,
9957,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
559,
12,
22626,
16,
2181,
33,
7036,
4672,
309,
486,
2181,
30,
2181,
273,
389,
20885,
2261,
12,
22626,
16186,
2978,
972,
13,
225,
7541,
22845,
279,
667,
1686,
316,
667,
4507,
9957,
... | |
True | True | def has_element(self, item): """ Returns boolean value of "item in self" - however *ignores* parentage. EXAMPLES:: sage: G = CyclicPermutationGroup(4) sage: gens = G.gens() sage: H = DihedralGroup(4) sage: g = G([(1,2,3,4)]); g (1,2,3,4) sage: G.has_element(g) True sage: h = H([(1,2),(3,4)]); h (1,2)(3,4) sage: G.has... | 895e1ae73086b953ed8633605c018ded03126ea2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/895e1ae73086b953ed8633605c018ded03126ea2/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
2956,
12,
2890,
16,
761,
4672,
3536,
2860,
1250,
460,
434,
315,
1726,
316,
365,
6,
300,
14025,
380,
724,
3485,
14,
982,
410,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
711,
67,
2956,
12,
2890,
16,
761,
4672,
3536,
2860,
1250,
460,
434,
315,
1726,
316,
365,
6,
300,
14025,
380,
724,
3485,
14,
982,
410,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
... |
('strtofr', [Mpfr, ctypes.c_char_p, ctypes.POINTER(ctypes.c_char_p), | ('strtofr', [IMpfr, ctypes.c_char_p, ctypes.POINTER(ctypes.c_char_p), | def error_on_failure(result, func, args): if result: raise ValueError("call failed") return result | b450c0023d8375a0580fdd1ed0db290a5d5cd85a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7048/b450c0023d8375a0580fdd1ed0db290a5d5cd85a/pympfr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
67,
265,
67,
12251,
12,
2088,
16,
1326,
16,
833,
4672,
309,
563,
30,
1002,
2068,
2932,
1991,
2535,
7923,
327,
563,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
67,
265,
67,
12251,
12,
2088,
16,
1326,
16,
833,
4672,
309,
563,
30,
1002,
2068,
2932,
1991,
2535,
7923,
327,
563,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
print ' '*_colwidth, | weeks.append('') | def prcal(year): """Print a year's calendar.""" header = weekheader(2) format3c('', `year`, '') for q in range(January, January+12, 3): print format3c(month_name[q], month_name[q+1], month_name[q+2]) format3c(header, header, header) data = [] height = 0 for month in range(q, q+3): cal = monthcalendar(year, month) if le... | ad3bc44d52b9b9c1f1c7449d0991138fed5fe978 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ad3bc44d52b9b9c1f1c7449d0991138fed5fe978/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
771,
12,
6874,
4672,
3536,
5108,
279,
3286,
1807,
5686,
12123,
1446,
273,
4860,
3374,
12,
22,
13,
740,
23,
71,
2668,
2187,
1375,
6874,
9191,
28707,
364,
1043,
316,
1048,
12,
46,
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,
846,
771,
12,
6874,
4672,
3536,
5108,
279,
3286,
1807,
5686,
12123,
1446,
273,
4860,
3374,
12,
22,
13,
740,
23,
71,
2668,
2187,
1375,
6874,
9191,
28707,
364,
1043,
316,
1048,
12,
46,
3... |
def get_table_style(style_css, attributes, start, stop): | def _get_table_style(style_css, start, stop): | def get_table_style(style_css, attributes, start, stop): table_style = [] # bufferize the border border_css_buffer = {} border_css = {} for key, value in style_css.iteritems(): if key.startswith('border'): border_value = compute_table_border(key, value) if border_value: border_css_buffer[key] = border_value elif key.s... | 2d260b4ad17a5a4e60f9024a9ed933dc5dd6cbe8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/2d260b4ad17a5a4e60f9024a9ed933dc5dd6cbe8/style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
389,
588,
67,
2121,
67,
4060,
12,
4060,
67,
5212,
16,
787,
16,
2132,
4672,
1014,
67,
4060,
273,
5378,
468,
1613,
554,
326,
5795,
5795,
67,
5212,
67,
4106,
273,
2618,
5795,
67,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
389,
588,
67,
2121,
67,
4060,
12,
4060,
67,
5212,
16,
787,
16,
2132,
4672,
1014,
67,
4060,
273,
5378,
468,
1613,
554,
326,
5795,
5795,
67,
5212,
67,
4106,
273,
2618,
5795,
67,
5... |
self._long_text.encode('ascii', 'replace')) | long_text) | def _Handle(self, output_stream, input_stream, may_prompt=True): """Writes this result to the output stream. | e562878c22c88e363eba556716d55e692c2056e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/e562878c22c88e363eba556716d55e692c2056e7/presubmit_support.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3259,
12,
2890,
16,
876,
67,
3256,
16,
810,
67,
3256,
16,
2026,
67,
13325,
33,
5510,
4672,
3536,
8368,
333,
563,
358,
326,
876,
1407,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3259,
12,
2890,
16,
876,
67,
3256,
16,
810,
67,
3256,
16,
2026,
67,
13325,
33,
5510,
4672,
3536,
8368,
333,
563,
358,
326,
876,
1407,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
wc.log.debug(wc.LOG_DNS, "got DNS response %s", response) | def process_read (self): if not self.callback: self.close() # Assume that the entire answer comes in one packet if self.tcp: if len(self.recv_buffer) < 2: return header = self.recv_buffer[:2] (l,) = struct.unpack("!H", header) if len(self.recv_buffer) < 2+l: return self.read(2) # header wire = self.read(l) try: self.so... | 384651e9b114042a1232a3d9263caae3a28b34ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/384651e9b114042a1232a3d9263caae3a28b34ab/dns_lookups.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
896,
261,
2890,
4672,
309,
486,
365,
18,
3394,
30,
365,
18,
4412,
1435,
468,
15983,
716,
326,
7278,
5803,
14535,
316,
1245,
4414,
309,
365,
18,
14832,
30,
309,
562,
12,
2890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
67,
896,
261,
2890,
4672,
309,
486,
365,
18,
3394,
30,
365,
18,
4412,
1435,
468,
15983,
716,
326,
7278,
5803,
14535,
316,
1245,
4414,
309,
365,
18,
14832,
30,
309,
562,
12,
2890,... | |
Polynomial_generic_dense.__init__(self, parent, x, check, is_gen, absprec) | Polynomial_generic_dense.__init__(self, parent, x, check, is_gen, absprec=absprec) | def __init__(self, parent, x=None, check=True, is_gen = False, construct=False, absprec=None): Polynomial_generic_dense.__init__(self, parent, x, check, is_gen, absprec) | cde45bb2459e778b4717f1b6c82e568ea5a12e4c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/cde45bb2459e778b4717f1b6c82e568ea5a12e4c/polynomial_element_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
33,
7036,
16,
866,
33,
5510,
16,
353,
67,
4507,
273,
1083,
16,
4872,
33,
8381,
16,
2417,
4036,
33,
7036,
4672,
6730,
13602,
67,
13540,
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
33,
7036,
16,
866,
33,
5510,
16,
353,
67,
4507,
273,
1083,
16,
4872,
33,
8381,
16,
2417,
4036,
33,
7036,
4672,
6730,
13602,
67,
13540,
67... |
pull_url='%s/scripts-main'%SAGE_INCOMING_SERVER, push_url='%s/scripts-main'%SAGE_OUTGOING_SERVER, | pull_url='%s/scripts-main/'%SAGE_INCOMING_SERVER, push_url='%s/scripts-main/'%SAGE_OUTGOING_SERVER, | def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' Sage repository, unless push_url() is changed in a setup file). | 7677a49973736ce02dd6f25c078244b30623f42c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7677a49973736ce02dd6f25c078244b30623f42c/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... |
self.navigation_root_url = self.portal_state.navigation_root_url() | def update(self): super(PathBarViewlet, self).update() | e01722ec5e31137589ad5aff4cde6548c5998235 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12185/e01722ec5e31137589ad5aff4cde6548c5998235/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
2240,
12,
743,
5190,
1767,
1810,
16,
365,
2934,
2725,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
2240,
12,
743,
5190,
1767,
1810,
16,
365,
2934,
2725,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
""" if (not dirname): self.find_and_register_packages() else : self.load_directory(dirname) | If verbose is False, don't print any output """ if(not verbose): sysout = sys.stdout sys.stdout = open(os.devnull, 'w') try: if (not dirname): self.find_and_register_packages() else : self.load_directory(dirname) finally: if(not verbose): sys.stdout.close() sys.stdout = sysout | def init(self, dirname=None): """ Initialize package manager If dirname is None, find wralea files on the system else load directory """ | 08e0221992eac2787b5d06e45ff651f8132f2c6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/08e0221992eac2787b5d06e45ff651f8132f2c6a/pkgmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4283,
33,
7036,
4672,
3536,
9190,
2181,
3301,
971,
4283,
353,
599,
16,
1104,
12408,
5349,
69,
1390,
603,
326,
2619,
469,
1262,
1867,
3536,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
1208,
12,
2890,
16,
4283,
33,
7036,
4672,
3536,
9190,
2181,
3301,
971,
4283,
353,
599,
16,
1104,
12408,
5349,
69,
1390,
603,
326,
2619,
469,
1262,
1867,
3536,
2,
-100,
-100,
-100,
-100,
... |
str1 = cur_root.toString() pos1 = str1.find("FROM BOUQUET") | str1 = cur_root and cur_root.toString() pos1 = str1 and str1.find("FROM BOUQUET") or -1 | def addBouquet(self, bName, services): serviceHandler = eServiceCenter.getInstance() mutableBouquetList = serviceHandler.list(self.bouquet_root).startEdit() if mutableBouquetList: if self.mode == MODE_TV: bName += " (TV)" str = '1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET \"userbouquet.%s.tv\" ORDER BY bouquet'%(self.... | c88273c34d261ad897dbb507dbaf5c9cb38f741f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/c88273c34d261ad897dbb507dbaf5c9cb38f741f/ChannelSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
38,
1395,
28357,
12,
2890,
16,
324,
461,
16,
4028,
4672,
1156,
1503,
273,
425,
1179,
8449,
18,
588,
1442,
1435,
16074,
38,
1395,
28357,
682,
273,
1156,
1503,
18,
1098,
12,
2890,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
38,
1395,
28357,
12,
2890,
16,
324,
461,
16,
4028,
4672,
1156,
1503,
273,
425,
1179,
8449,
18,
588,
1442,
1435,
16074,
38,
1395,
28357,
682,
273,
1156,
1503,
18,
1098,
12,
2890,
1... |
if not isinstance(list[i], str)] | if not isinstance(list[i], basestring)] | def columnize(self, list, displaywidth=80): """Display a list of strings as a compact set of columns. | 143dd520766a5fdcce68c762f389a23c1008fec9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/143dd520766a5fdcce68c762f389a23c1008fec9/cmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1057,
554,
12,
2890,
16,
666,
16,
2562,
2819,
33,
3672,
4672,
3536,
4236,
279,
666,
434,
2064,
487,
279,
6739,
444,
434,
2168,
18,
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,
1057,
554,
12,
2890,
16,
666,
16,
2562,
2819,
33,
3672,
4672,
3536,
4236,
279,
666,
434,
2064,
487,
279,
6739,
444,
434,
2168,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
str += I+'<TH CLASS="navbar"> '+\ '<A CLASS="navbar" HREF="'+`uid.module()`+'.html">'+\ 'Module</A> </TH>\n' | str += I+'<th class="navbar"> ' str += '<a class="navbar" href="'+`uid.module()`+'.html">' str += 'Module</a> </th>\n' | def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') str += '<TABLE CLASS="navbar" BORDER="0" WIDTH="100%"' str += ' CELLPADDING="0" BGCOLOR="#a0c0ff" CELLSPACING="0">\n' str += ' <TR>\n' str += ' <TD WIDTH="100%">\n' str += ' <TA... | 1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
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,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
67,
... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 501) else quickfix.StringField.__init__(self, 501, 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,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
1611,
13,
469,
9549,
904,
18,
780,
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,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
1611,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... |
if line == '\n' or line == '': | if line == '\n' or not line: | def _install_message(self, message): """Write message contents and return (start, stop).""" start = self._file.tell() if isinstance(message, BabylMessage): special_labels = [] labels = [] for label in message.get_labels(): if label in self._special_labels: special_labels.append(label) else: labels.append(label) self._f... | d373ead37954e8a4f6d449fdc08084eb0c428c76 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d373ead37954e8a4f6d449fdc08084eb0c428c76/mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
67,
2150,
12,
2890,
16,
883,
4672,
3536,
3067,
883,
2939,
471,
327,
261,
1937,
16,
2132,
13,
12123,
787,
273,
365,
6315,
768,
18,
88,
1165,
1435,
309,
1549,
12,
2150,
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,
389,
5425,
67,
2150,
12,
2890,
16,
883,
4672,
3536,
3067,
883,
2939,
471,
327,
261,
1937,
16,
2132,
13,
12123,
787,
273,
365,
6315,
768,
18,
88,
1165,
1435,
309,
1549,
12,
2150,
16,
... |
space.wrap(convert_from_regdata(databuf, retDataSize[0], retType[0])), | convert_from_regdata(space, databuf, retDataSize[0], retType[0]), | def EnumValue(space, w_hkey, index): """tuple = EnumValue(key, index) - Enumerates values of an open registry key. | 65a0cb4fb5ecc10e2f370ba1c4260d41630090c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/65a0cb4fb5ecc10e2f370ba1c4260d41630090c7/interp_winreg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6057,
620,
12,
2981,
16,
341,
67,
76,
856,
16,
770,
4672,
3536,
8052,
273,
6057,
620,
12,
856,
16,
770,
13,
300,
6057,
264,
815,
924,
434,
392,
1696,
4023,
498,
18,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6057,
620,
12,
2981,
16,
341,
67,
76,
856,
16,
770,
4672,
3536,
8052,
273,
6057,
620,
12,
856,
16,
770,
13,
300,
6057,
264,
815,
924,
434,
392,
1696,
4023,
498,
18,
2,
-100,
-100,
... |
id = idaapi.add_frame(func, lvsize, frregs, argsize) if not id: | frameid = idaapi.add_frame(func, lvsize, frregs, argsize) if not frameid: | def MakeFrame(ea, lvsize, frregs, argsize): """ Make function frame @param ea: any address belonging to the function @param lvsize: size of function local variables @param frregs: size of saved registers @param argsize: size of function arguments @return: ID of function frame or -1 If the function did not have a fram... | 244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
3219,
12,
24852,
16,
5362,
1467,
16,
3812,
266,
564,
16,
833,
554,
4672,
3536,
4344,
445,
2623,
225,
632,
891,
24164,
30,
1281,
1758,
17622,
358,
326,
445,
632,
891,
5362,
1467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4344,
3219,
12,
24852,
16,
5362,
1467,
16,
3812,
266,
564,
16,
833,
554,
4672,
3536,
4344,
445,
2623,
225,
632,
891,
24164,
30,
1281,
1758,
17622,
358,
326,
445,
632,
891,
5362,
1467,
... |
cover = amazon.searchByKeyword('%s %s' % (artist,album) , product_line="music") | cover = amazon.searchByKeyword(search_string , product_line="music") | def cover_search_file(self, arg=None, menuw=None): """ search imdb for this item """ import amazon | eb2d9ec3b72b6a3ab66bd58d8190aeee919eb939 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/eb2d9ec3b72b6a3ab66bd58d8190aeee919eb939/coversearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5590,
67,
3072,
67,
768,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
3536,
1623,
709,
1966,
364,
333,
761,
3536,
1930,
3750,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
5590,
67,
3072,
67,
768,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
3536,
1623,
709,
1966,
364,
333,
761,
3536,
1930,
3750,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if self.fs.cwd == '/': self.respond('250 "/" is the current directory.') else: self.fs.cdup() self.respond('257 "%s" is the current directory.' %self.fs.cwd) self.log('OK CWD "%s"' %self.fs.cwd) | "Go to parent directory" self.ftp_CWD('..') | def ftp_CDUP(self, line): if self.fs.cwd == '/': self.respond('250 "/" is the current directory.') else: self.fs.cdup() self.respond('257 "%s" is the current directory.' %self.fs.cwd) self.log('OK CWD "%s"' %self.fs.cwd) | c9b8903e72d3357d1308af9cb7394f14ea28a0cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/c9b8903e72d3357d1308af9cb7394f14ea28a0cc/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
10160,
3079,
12,
2890,
16,
980,
4672,
309,
365,
18,
2556,
18,
11089,
422,
2023,
30,
365,
18,
17863,
2668,
26520,
4016,
353,
326,
783,
1867,
1093,
13,
469,
30,
365,
18,
2556,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13487,
67,
10160,
3079,
12,
2890,
16,
980,
4672,
309,
365,
18,
2556,
18,
11089,
422,
2023,
30,
365,
18,
17863,
2668,
26520,
4016,
353,
326,
783,
1867,
1093,
13,
469,
30,
365,
18,
2556,... |
def removeImage(self, image, put = False, summary = None): return self.replaceImage(image, put, summary) | def removeImage(self, image, put = False, summary = None, safe = True): return self.replaceImage(image, None, put, summary, safe) | def removeImage(self, image, put = False, summary = None): return self.replaceImage(image, put, summary) | 2cfa671af86a6441ff07f27921c256cc09d5a701 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/2cfa671af86a6441ff07f27921c256cc09d5a701/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
2040,
12,
2890,
16,
1316,
16,
1378,
273,
1083,
16,
4916,
273,
599,
16,
4183,
273,
1053,
4672,
327,
365,
18,
2079,
2040,
12,
2730,
16,
599,
16,
1378,
16,
4916,
16,
4183,
13,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
2040,
12,
2890,
16,
1316,
16,
1378,
273,
1083,
16,
4916,
273,
599,
16,
4183,
273,
1053,
4672,
327,
365,
18,
2079,
2040,
12,
2730,
16,
599,
16,
1378,
16,
4916,
16,
4183,
13,
225... |
this = apply(_quickfix.new_AccruedInterestRate, args) | this = _quickfix.new_AccruedInterestRate(*args) | def __init__(self, *args): this = apply(_quickfix.new_AccruedInterestRate, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8973,
86,
5957,
29281,
4727,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8973,
86,
5957,
29281,
4727,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
... |
self.set_stdout_file('logs/stopp-$(macrogpsstarttime)-$(macrogpsendtime)-$(cluster)-$(process).out') self.set_stderr_file('logs/stopp-$(macrogpsstarttime)-$(macrogpsendtime)-$(cluster)-$(process).err') | self.set_stdout_file('logs/stopp-$(cluster)-$(process).out') self.set_stderr_file('logs/stopp-$(cluster)-$(process).err') | def __init__(self,cp): """ @param cp: ConfigParser object from which options are read. """ self.__executable = cp.get('condor','stopp') self.__universe = cp.get('condor','universe') pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp) | 2383291e929e4bc5aa807e1f3eec3bbb6211f98e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/2383291e929e4bc5aa807e1f3eec3bbb6211f98e/stochastic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4057,
4672,
3536,
632,
891,
3283,
30,
25076,
733,
628,
1492,
702,
854,
855,
18,
3536,
365,
16186,
17751,
273,
3283,
18,
588,
2668,
10013,
280,
17023,
5681,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4057,
4672,
3536,
632,
891,
3283,
30,
25076,
733,
628,
1492,
702,
854,
855,
18,
3536,
365,
16186,
17751,
273,
3283,
18,
588,
2668,
10013,
280,
17023,
5681,... |
out.write(ins.read(size)) | out.write(ins.read(5)) ssWidth,delim1,ssHeight,delim2 = unpack('=IcIc',10) pack('=IcIc',ssWidth,delim1,ssHeight,delim2) out.write(ins.read(size-15)) out.write(ins.read(3*ssWidth*ssHeight)) out.write(ins.read(5)) | def pack(format,*args): out.write(struct.pack(format,*args)) | 6a02625d5f2d736dbd19ab9b5f1a55b0691055f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6682/6a02625d5f2d736dbd19ab9b5f1a55b0691055f7/bosh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
12,
2139,
16,
14,
1968,
4672,
596,
18,
2626,
12,
1697,
18,
2920,
12,
2139,
16,
14,
1968,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
12,
2139,
16,
14,
1968,
4672,
596,
18,
2626,
12,
1697,
18,
2920,
12,
2139,
16,
14,
1968,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
user = request.user | user = getuser(request) | def upgrades(request,planet_id,action='none',upgrade='-1'): user = request.user curplanet = get_object_or_404(Planet,id=int(planet_id)) if curplanet.owner == user: if action=="start": newupgrade = PlanetUpgrade() newupgrade.start(curplanet,int(upgrade)) if action=="scrap": scrapupgrade = PlanetUpgrade.objects.get(plane... | 87c0cba9784e2600f6a5c8cb52dd3eda8d84d243 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2020/87c0cba9784e2600f6a5c8cb52dd3eda8d84d243/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28844,
12,
2293,
16,
7088,
278,
67,
350,
16,
1128,
2218,
6102,
2187,
15097,
2218,
17,
21,
11,
4672,
729,
273,
336,
1355,
12,
2293,
13,
662,
7088,
278,
273,
336,
67,
1612,
67,
280,
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,
28844,
12,
2293,
16,
7088,
278,
67,
350,
16,
1128,
2218,
6102,
2187,
15097,
2218,
17,
21,
11,
4672,
729,
273,
336,
1355,
12,
2293,
13,
662,
7088,
278,
273,
336,
67,
1612,
67,
280,
67... |
self.assy.w.history.message(self.getinfo()) | if self.assy: self.assy.w.history.message(self.getinfo()) | def pick(self): """select the Jig""" self.assy.w.history.message(self.getinfo()) if not self.picked: #bruce 050131 added this condition (maybe good for history.message too?) Node.pick(self) #bruce 050131 for Alpha: using Node.pick self.normcolor = self.color # bug if this is done twice in a row! [bruce 050131 maybe fix... | c4bea2e8f67584ae8759f64407531178c46516aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c4bea2e8f67584ae8759f64407531178c46516aa/jigs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6002,
12,
2890,
4672,
3536,
4025,
326,
804,
360,
8395,
309,
365,
18,
428,
93,
30,
365,
18,
428,
93,
18,
91,
18,
8189,
18,
2150,
12,
2890,
18,
22281,
10756,
309,
486,
365,
18,
11503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6002,
12,
2890,
4672,
3536,
4025,
326,
804,
360,
8395,
309,
365,
18,
428,
93,
30,
365,
18,
428,
93,
18,
91,
18,
8189,
18,
2150,
12,
2890,
18,
22281,
10756,
309,
486,
365,
18,
11503,
... |
manifesturl = manifesturl + alternate_id | manifesturl = manifesturl + urllib2.quote(alternate_id) | def getPrimaryManifest(alternate_id): """ Gets the client manifest from the server """ global errors manifest = "" managedinstallprefs = munkicommon.prefs() manifesturl = managedinstallprefs['ManifestURL'] clientidentifier = managedinstallprefs.get('ClientIdentifier','') if not manifesturl.endswith('?') and not manife... | 6ca682ec52a2a3b804566ebaf67e1666efdd5a94 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6241/6ca682ec52a2a3b804566ebaf67e1666efdd5a94/updatecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11398,
9121,
12,
16025,
340,
67,
350,
4672,
3536,
11881,
326,
1004,
5643,
628,
326,
1438,
3536,
2552,
1334,
5643,
273,
1408,
7016,
5425,
1484,
2556,
273,
312,
1683,
335,
362,
2586,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11398,
9121,
12,
16025,
340,
67,
350,
4672,
3536,
11881,
326,
1004,
5643,
628,
326,
1438,
3536,
2552,
1334,
5643,
273,
1408,
7016,
5425,
1484,
2556,
273,
312,
1683,
335,
362,
2586,
18,
1... |
component = Component(self.__env, name) | component = Component(self.env_open(), name) | def _do_component_rename(self, name, newname): component = Component(self.__env, name) component.name = newname component.update() | 132f03448459e7c8907500129479bb5f6c5bc47a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/132f03448459e7c8907500129479bb5f6c5bc47a/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
4652,
67,
18539,
12,
2890,
16,
508,
16,
26722,
4672,
1794,
273,
5435,
12,
2890,
18,
3074,
67,
3190,
9334,
508,
13,
1794,
18,
529,
273,
26722,
1794,
18,
2725,
1435,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
67,
4652,
67,
18539,
12,
2890,
16,
508,
16,
26722,
4672,
1794,
273,
5435,
12,
2890,
18,
3074,
67,
3190,
9334,
508,
13,
1794,
18,
529,
273,
26722,
1794,
18,
2725,
1435,
2,
... |
self.cal.append('') | self.cal_days.append('') | def SetCal(self, year, month): self.InitValues() # reset initial values | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
3005,
12,
2890,
16,
3286,
16,
3138,
4672,
365,
18,
2570,
1972,
1435,
4202,
468,
2715,
2172,
924,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1000,
3005,
12,
2890,
16,
3286,
16,
3138,
4672,
365,
18,
2570,
1972,
1435,
4202,
468,
2715,
2172,
924,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
file.Write(" GLint location = %s(%s, name_str.c_str());\n" % | file.Write(" *location = %s(%s, name_str.c_str());\n" % | def WriteImmediateServiceImplementation(self, func, file): """Overrriden from TypeHandler.""" file.Write( "parse_error::ParseError GLES2DecoderImpl::Handle%s(\n" % func.name) file.Write( " unsigned int arg_count, const gles2::%s& c) {\n" % func.name) last_arg = func.GetLastOriginalArg() | 6b5cc7aeca6761c88c0f98b0e54990becbe32177 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/6b5cc7aeca6761c88c0f98b0e54990becbe32177/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1179,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
12,
315,
2670,
67,
1636,
2866,
21004,
611,
11386,
22,
7975,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2598,
22651,
1179,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
12,
315,
2670,
67,
1636,
2866,
21004,
611,
11386,
22,
7975,
28... |
super_index = line_index | def line_index_to_top (self, line_index): | 9f861d2f394f3af1067b299d5e87f62ebb289a8e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12310/9f861d2f394f3af1067b299d5e87f62ebb289a8e/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
67,
1615,
67,
869,
67,
3669,
261,
2890,
16,
980,
67,
1615,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
67,
1615,
67,
869,
67,
3669,
261,
2890,
16,
980,
67,
1615,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
if errwrite is not None: pass elif stderr is None or stderr == PIPE: | if errwrite is None: _, errwrite = CreatePipe(None, 0) elif stderr == PIPE: | def _get_handles(self, stdin, stdout, stderr): """Construct and return tupel with IO objects: p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite """ if stdin is None and stdout is None and stderr is None: return (None, None, None, None, None, None) | 5920088074f1699bb896f233dab1a098f65692fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/5920088074f1699bb896f233dab1a098f65692fe/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
24111,
12,
2890,
16,
8801,
16,
3909,
16,
4514,
4672,
3536,
7249,
471,
327,
15822,
292,
598,
1665,
2184,
30,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24111,
12,
2890,
16,
8801,
16,
3909,
16,
4514,
4672,
3536,
7249,
471,
327,
15822,
292,
598,
1665,
2184,
30,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
... |
self.currSelEnd = QPoint(x,y) | self.currSelEnd = QRect(x, y, 1, 1) | def UpdateSel(self, x, y): self.currSelEnd = QPoint(x,y) | a33bbf6907f2e84b961c7aadc4d138664d7d1b60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/a33bbf6907f2e84b961c7aadc4d138664d7d1b60/OWDistanceMap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
1877,
12,
2890,
16,
619,
16,
677,
4672,
365,
18,
17016,
1877,
1638,
273,
2238,
2148,
12,
92,
16,
93,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2315,
1877,
12,
2890,
16,
619,
16,
677,
4672,
365,
18,
17016,
1877,
1638,
273,
2238,
2148,
12,
92,
16,
93,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if not names: raise Exception("RenderPage called with empty names param") generator_url = "file:" + urllib.pathname2url(_generator_html) generator_url += "?" + ",".join(names) originals = {} for name in names: input_file = _base_dir + "/" + name + ".html" if (os.path.isfile(input_file)): originals[name] = open(inp... | if not name: raise Exception("RenderPage called with empty name") generator_url = "file:" + urllib.pathname2url(_generator_html) + "?" + name input_file = _base_dir + "/" + name + ".html" original = None if (os.path.isfile(input_file)): original = open(input_file, 'rb').read() os.remove(input_file) shutil.copy(_pag... | def RenderPages(names, test_shell): """ Calls test_shell --layout-tests .../generator.html?<names> and writes the results to .../docs/<name>.html """ if not names: raise Exception("RenderPage called with empty names param") generator_url = "file:" + urllib.pathname2url(_generator_html) generator_url += "?" + ",".join(... | 416261c9a80c52eb9d5047727bbce605a485cf1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/416261c9a80c52eb9d5047727bbce605a485cf1c/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6987,
5716,
12,
1973,
16,
1842,
67,
10304,
4672,
3536,
23665,
1842,
67,
10304,
1493,
6741,
17,
16341,
1372,
19,
8812,
18,
2620,
35,
32,
1973,
34,
471,
7262,
326,
1686,
358,
1372,
19,
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,
6987,
5716,
12,
1973,
16,
1842,
67,
10304,
4672,
3536,
23665,
1842,
67,
10304,
1493,
6741,
17,
16341,
1372,
19,
8812,
18,
2620,
35,
32,
1973,
34,
471,
7262,
326,
1686,
358,
1372,
19,
8... |
bootList += (bootloader,) | bootList.append(bootloader) | def bootElement(bootDict): """ Creates a libvirt <os> element, a child of L{domain element <domainElement>}, that describes the operating system boot protocol for the Virtual Machine, specifically values to enable booting from the BIOS. @param bootDict: dictionary of boot arguments @type bootDict: dictionary @note: b... | f6c4ee20d191329103e90ea864f14e2fab886b83 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/f6c4ee20d191329103e90ea864f14e2fab886b83/OvfLibvirt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4835,
1046,
12,
7137,
5014,
4672,
3536,
10210,
279,
16388,
411,
538,
34,
930,
16,
279,
1151,
434,
511,
95,
4308,
930,
411,
4308,
1046,
34,
5779,
716,
19605,
326,
16929,
2619,
4835,
1771,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4835,
1046,
12,
7137,
5014,
4672,
3536,
10210,
279,
16388,
411,
538,
34,
930,
16,
279,
1151,
434,
511,
95,
4308,
930,
411,
4308,
1046,
34,
5779,
716,
19605,
326,
16929,
2619,
4835,
1771,... |
self.table.hideColumn(0) | self.table.show() | def setTable(self): """defines the attribute/predictions table and paints its contents""" if self.data==None: return | 63e34d56e155a4f1aba288f36a71868771294735 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/63e34d56e155a4f1aba288f36a71868771294735/OWPredictions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30146,
12,
2890,
4672,
3536,
536,
1465,
326,
1566,
19,
25499,
1014,
471,
12574,
87,
2097,
2939,
8395,
309,
365,
18,
892,
631,
7036,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
30146,
12,
2890,
4672,
3536,
536,
1465,
326,
1566,
19,
25499,
1014,
471,
12574,
87,
2097,
2939,
8395,
309,
365,
18,
892,
631,
7036,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
value = _EmptyClass() value.__class__ = klass else: | try: value = _EmptyClass() value.__class__ = klass except RuntimeError: pass if not instantiated: | def load_inst(self): k = self.marker() args = tuple(self.stack[k+1:]) del self.stack[k:] module = self.readline()[:-1] name = self.readline()[:-1] klass = self.find_class(module, name) | 18acbe9164b1760b898437cf24b5488bd6a8d845 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/18acbe9164b1760b898437cf24b5488bd6a8d845/pickle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
8591,
12,
2890,
4672,
417,
273,
365,
18,
11145,
1435,
833,
273,
3193,
12,
2890,
18,
3772,
63,
79,
15,
21,
30,
5717,
1464,
365,
18,
3772,
63,
79,
26894,
1605,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
8591,
12,
2890,
4672,
417,
273,
365,
18,
11145,
1435,
833,
273,
3193,
12,
2890,
18,
3772,
63,
79,
15,
21,
30,
5717,
1464,
365,
18,
3772,
63,
79,
26894,
1605,
273,
365,
18,
... |
def _lines(self, account_id, date1, date2): lineobj = self.pool.get('account.analytic.line') line_ids = lineobj.search(self.cr, self.uid, [('account_id','=',account_id), ('date','>=',date1), ('date','<=',date2)]) result = {} for line in lineobj.browse(self.cr, self.uid, line_ids): if line.general_account_id.id not in r... | for r in res: if r['balance'] > 0: r['debit'] = r['balance'] r['credit'] = 0.0 elif r['balance'] < 0: r['debit'] = 0.0 r['credit'] = -r['balance'] else: r['debit'] = 0.0 r['credit'] = 0.0 return res | def _lines(self, account_id, date1, date2): lineobj = self.pool.get('account.analytic.line') line_ids = lineobj.search(self.cr, self.uid, [('account_id','=',account_id), ('date','>=',date1), ('date','<=',date2)]) result = {} for line in lineobj.browse(self.cr, self.uid, line_ids): if line.general_account_id.id not in r... | 72f3ca8aa3d8c0857889e5ed6e0fb08e8b43eb98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/72f3ca8aa3d8c0857889e5ed6e0fb08e8b43eb98/cost_ledger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3548,
12,
2890,
16,
2236,
67,
350,
16,
1509,
21,
16,
1509,
22,
4672,
980,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
304,
7834,
335,
18,
1369,
6134,
980,
67,
2232,
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,
3548,
12,
2890,
16,
2236,
67,
350,
16,
1509,
21,
16,
1509,
22,
4672,
980,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
304,
7834,
335,
18,
1369,
6134,
980,
67,
2232,
273,
... |
cline = cline + " -OUTPUT=" + self.output_type | cline = cline + " -OUTPUT=%s" % self.output_type | def __str__(self): """Write out the command line as a string.""" cline = self.command + " " + self.sequence_file | fbc9d0feeaf2175a11334f5254a38cd6dc48be65 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/fbc9d0feeaf2175a11334f5254a38cd6dc48be65/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
3536,
3067,
596,
326,
1296,
980,
487,
279,
533,
12123,
927,
558,
273,
365,
18,
3076,
397,
315,
315,
397,
365,
18,
6178,
67,
768,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
972,
12,
2890,
4672,
3536,
3067,
596,
326,
1296,
980,
487,
279,
533,
12123,
927,
558,
273,
365,
18,
3076,
397,
315,
315,
397,
365,
18,
6178,
67,
768,
2,
-100,
-100,
-100,
... |
new_dir.children.append(k) | new_dir.children.append(v) | def normalise(self): """ Normalise the heirarchy into one with a single root. We do this by taking each root in turn and removing a component, creating a directory in the process. If the resulting root is in roots, we add it to the children of that root and eliminate it from the map. | 9bf07a2221b160efc14cb9a4db22e3f4253c4fb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4427/9bf07a2221b160efc14cb9a4db22e3f4253c4fb4/cpiofile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25475,
12,
2890,
4672,
3536,
8769,
784,
326,
3904,
481,
991,
93,
1368,
1245,
598,
279,
2202,
1365,
18,
225,
1660,
741,
333,
635,
13763,
1517,
1365,
316,
7005,
471,
9427,
279,
1794,
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,
25475,
12,
2890,
4672,
3536,
8769,
784,
326,
3904,
481,
991,
93,
1368,
1245,
598,
279,
2202,
1365,
18,
225,
1660,
741,
333,
635,
13763,
1517,
1365,
316,
7005,
471,
9427,
279,
1794,
16,
... |
def setUp(self): | def setUp(self): | def _test_currency(self, value, out, **format_opts): self.assertEqual(locale.currency(value, **format_opts), out) | 8f0660e995b251c398fc5954f4432db05346d492 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/8f0660e995b251c398fc5954f4432db05346d492/test_locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
7095,
12,
2890,
16,
460,
16,
596,
16,
2826,
2139,
67,
4952,
4672,
365,
18,
11231,
5812,
12,
6339,
18,
7095,
12,
1132,
16,
2826,
2139,
67,
4952,
3631,
596,
13,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
67,
7095,
12,
2890,
16,
460,
16,
596,
16,
2826,
2139,
67,
4952,
4672,
365,
18,
11231,
5812,
12,
6339,
18,
7095,
12,
1132,
16,
2826,
2139,
67,
4952,
3631,
596,
13,
2,
-100,... |
while self.running: try: | try: while self.running: | def start(self): """ Starts polling the backends for incoming messages, and blocks until a KeyboardInterrupt or SystemExit is raised, or Router.stop is called. """ | 67f5dd94b97dd233a45322dfcb992cfa84a25ae6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/67f5dd94b97dd233a45322dfcb992cfa84a25ae6/router.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
3536,
30620,
13708,
326,
18015,
364,
6935,
2743,
16,
471,
4398,
3180,
279,
19424,
578,
25454,
353,
11531,
16,
578,
9703,
18,
5681,
353,
2566,
18,
3536,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
3536,
30620,
13708,
326,
18015,
364,
6935,
2743,
16,
471,
4398,
3180,
279,
19424,
578,
25454,
353,
11531,
16,
578,
9703,
18,
5681,
353,
2566,
18,
3536,
2,
-100,
-100... |
raise POSKeyError("No blob file", oid, serial) | raise POSException.POSKeyError("No blob file", oid, serial) | def loadBlob(self, oid, serial): | 9c75c305c1e5993889088ed88c76b0b9d0de63c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10048/9c75c305c1e5993889088ed88c76b0b9d0de63c0/ClientStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
9405,
12,
2890,
16,
7764,
16,
2734,
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... | [
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,
1652,
1262,
9405,
12,
2890,
16,
7764,
16,
2734,
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,... |
admin = self.console.storage.getClient(clients.Client(id=w.adminId)) admin.console = self.console if admin.maxLevel <= client.maxLevel: | admin = None try: admin = self.console.storage.getClient(clients.Client(id=w.adminId)) admin.console = self.console except: pass if admin is None or admin.maxLevel <= client.maxLevel: | def clearAll(self, sclient, client=None): for w in sclient.warnings: admin = self.console.storage.getClient(clients.Client(id=w.adminId)) # client object needs console to get groups admin.console = self.console if admin.maxLevel <= client.maxLevel: w.inactive = 1 self.console.storage.setClientPenalty(w) | 0980313b466c7e612220ea76890f688fa3f2a2f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/0980313b466c7e612220ea76890f688fa3f2a2f6/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29453,
12,
2890,
16,
888,
676,
16,
1004,
33,
7036,
4672,
364,
341,
316,
888,
676,
18,
12103,
30,
3981,
273,
365,
18,
8698,
18,
5697,
18,
588,
1227,
12,
16931,
18,
1227,
12,
350,
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,
29453,
12,
2890,
16,
888,
676,
16,
1004,
33,
7036,
4672,
364,
341,
316,
888,
676,
18,
12103,
30,
3981,
273,
365,
18,
8698,
18,
5697,
18,
588,
1227,
12,
16931,
18,
1227,
12,
350,
33,
... |
max_idx[0] = numpy.asarray(numpy.argmax(x, axis), dtype='int32') | max_idx[0] = numpy.asarray(numpy.argmax(x, axis), dtype='int32').view( numpy.int32) | def perform(self, node, (x, axis), (max, max_idx)): max[0] = numpy.asarray(numpy.max(x, axis)) max_idx[0] = numpy.asarray(numpy.argmax(x, axis), dtype='int32') | f609448164bdbb4e1cd0115f3f30beb35dd01a46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/f609448164bdbb4e1cd0115f3f30beb35dd01a46/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
12,
2890,
16,
756,
16,
261,
92,
16,
2654,
3631,
261,
1896,
16,
943,
67,
3465,
3719,
30,
943,
63,
20,
65,
273,
3972,
18,
345,
1126,
12,
15974,
18,
1896,
12,
92,
16,
2654,
3719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
12,
2890,
16,
756,
16,
261,
92,
16,
2654,
3631,
261,
1896,
16,
943,
67,
3465,
3719,
30,
943,
63,
20,
65,
273,
3972,
18,
345,
1126,
12,
15974,
18,
1896,
12,
92,
16,
2654,
3719... |
self.cursor += 1 | self.cursor += 1 | def GetId(self): if self.cursor == len(self.ids): new_id = wx.NewId() self.ids.append(new_id) else: new_id = self.ids[self.cursor] self.cursor += 1 return new_id | 2eaa3ab07d5dd95c60428e4bd5594c873f684dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/2eaa3ab07d5dd95c60428e4bd5594c873f684dd5/wxutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31857,
12,
2890,
4672,
309,
365,
18,
9216,
422,
562,
12,
2890,
18,
2232,
4672,
394,
67,
350,
273,
7075,
18,
1908,
548,
1435,
365,
18,
2232,
18,
6923,
12,
2704,
67,
350,
13,
469,
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,
31857,
12,
2890,
4672,
309,
365,
18,
9216,
422,
562,
12,
2890,
18,
2232,
4672,
394,
67,
350,
273,
7075,
18,
1908,
548,
1435,
365,
18,
2232,
18,
6923,
12,
2704,
67,
350,
13,
469,
30,
... |
sql.append("\nWHERE " + " AND ".join(clauses)) | sql.append(" AND ".join(clauses)) if cached_ids: if clauses: sql.append(" OR ") sql.append("id in (%s)" % (','.join( [str(id) for id in cached_ids]))) | def get_constraint_sql(name, value, mode, neg): if name not in custom_fields: name = 't.' + name else: name = name + '.value' value = value[len(mode) + neg:] | 3cf7e7336ed76e06678c3d00546ce7d95a23a053 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/3cf7e7336ed76e06678c3d00546ce7d95a23a053/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13364,
67,
4669,
12,
529,
16,
460,
16,
1965,
16,
4251,
4672,
309,
508,
486,
316,
1679,
67,
2821,
30,
508,
273,
296,
88,
1093,
397,
508,
469,
30,
508,
273,
508,
397,
2418,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
13364,
67,
4669,
12,
529,
16,
460,
16,
1965,
16,
4251,
4672,
309,
508,
486,
316,
1679,
67,
2821,
30,
508,
273,
296,
88,
1093,
397,
508,
469,
30,
508,
273,
508,
397,
2418,
... |
self.main.xmlrpc.DBus("sendfiles", _("Teacher"), server, open ) | self.main.xmlrpc.DBus("sendfiles", "%s %s %s" %(_("Teacher"), server, open) ) | def send_external(self, filenames): if self.main.classview.ismultiple(): if not self.get_all_clients(): return elif not self.get_client(): return # action sent by vidal_joshur at gva dot es # send files # search for connected users if len(self.connected_users) == 0 or self.connected_users[0] == shared.NO_LOGIN_MSG: sha... | 4c8b460e1e727762b6a3b10431823d1d6b889789 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13520/4c8b460e1e727762b6a3b10431823d1d6b889789/sendfiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
9375,
12,
2890,
16,
9066,
4672,
309,
365,
18,
5254,
18,
1106,
1945,
18,
291,
9622,
13332,
309,
486,
365,
18,
588,
67,
454,
67,
16931,
13332,
327,
1327,
486,
365,
18,
588,
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,
1366,
67,
9375,
12,
2890,
16,
9066,
4672,
309,
365,
18,
5254,
18,
1106,
1945,
18,
291,
9622,
13332,
309,
486,
365,
18,
588,
67,
454,
67,
16931,
13332,
327,
1327,
486,
365,
18,
588,
6... |
return not self.is_on_page(pages.LoginPage) or self.is_logging | return not self.is_on_page(pages.LoginPage) or self.page.is_logged() | def is_logged(self): return not self.is_on_page(pages.LoginPage) or self.is_logging | d03bd479813247de7d1770b23f9fc4db93a6df8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/d03bd479813247de7d1770b23f9fc4db93a6df8e/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
19385,
12,
2890,
4672,
327,
486,
365,
18,
291,
67,
265,
67,
2433,
12,
7267,
18,
5358,
1964,
13,
578,
365,
18,
291,
67,
11167,
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,
353,
67,
19385,
12,
2890,
4672,
327,
486,
365,
18,
291,
67,
265,
67,
2433,
12,
7267,
18,
5358,
1964,
13,
578,
365,
18,
291,
67,
11167,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_RIGHT, TA_JUSTIFY | def draw(self): from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_RIGHT, TA_JUSTIFY style = self.style lines = self.lines rightIndent = style.rightIndent leftIndent = style.leftIndent leading = style.leading font = style.fontName size = style.fontSize alignment = style.alignment firstindent = style.firstLineIndent... | a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7/para.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
2154,
273,
365,
18,
4060,
2362,
273,
365,
18,
3548,
2145,
7790,
273,
2154,
18,
4083,
7790,
2002,
7790,
273,
2154,
18,
4482,
7790,
7676,
273,
2154,
18,
27200,
3512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
12,
2890,
4672,
2154,
273,
365,
18,
4060,
2362,
273,
365,
18,
3548,
2145,
7790,
273,
2154,
18,
4083,
7790,
2002,
7790,
273,
2154,
18,
4482,
7790,
7676,
273,
2154,
18,
27200,
3512,
... | |
zip file will be named 'base_dir' + ".zip". Uses either the InfoZIP "zip" utility (if installed and found on the default search path) or the "zipfile" Python module (if available). If neither tool is available, raises DistutilsExecError. Returns the name of the output zip file. | zip file will be named 'base_dir' + ".zip". Uses either the "zipfile" Python module (if available) or the InfoZIP "zip" utility (if installed and found on the default search path). If neither tool is available, raises DistutilsExecError. Returns the name of the output zip file. | def make_zipfile (base_name, base_dir, verbose=0, dry_run=0): """Create a zip file from all the files under 'base_dir'. The output zip file will be named 'base_dir' + ".zip". Uses either the InfoZIP "zip" utility (if installed and found on the default search path) or the "zipfile" Python module (if available). If ne... | cbfcb6dd959f4bc0079a4504d9fe6a502d153bac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/cbfcb6dd959f4bc0079a4504d9fe6a502d153bac/archive_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
4450,
768,
261,
1969,
67,
529,
16,
1026,
67,
1214,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
4672,
3536,
1684,
279,
3144,
585,
628,
777,
326,
1390,
3613,
296,
1969,
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,
1221,
67,
4450,
768,
261,
1969,
67,
529,
16,
1026,
67,
1214,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
4672,
3536,
1684,
279,
3144,
585,
628,
777,
326,
1390,
3613,
296,
1969,
67... |
"title": category + "AFFE!!!" | "title": library + " " + version + " " + variant | def getDemoData(self, category, item): demoDict = { "name": item + ".html", "nr": item.capitalize(), "tags": [ category #TODO: get more tags ], "title": category + "AFFE!!!" } | af45795645c936e589ff222ecc4bcbe944e80256 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/af45795645c936e589ff222ecc4bcbe944e80256/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
351,
83,
751,
12,
2890,
16,
3150,
16,
761,
4672,
21477,
5014,
273,
288,
315,
529,
6877,
761,
397,
3552,
2620,
3113,
315,
11611,
6877,
761,
18,
5909,
7053,
554,
9334,
315,
4156,
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,
2343,
351,
83,
751,
12,
2890,
16,
3150,
16,
761,
4672,
21477,
5014,
273,
288,
315,
529,
6877,
761,
397,
3552,
2620,
3113,
315,
11611,
6877,
761,
18,
5909,
7053,
554,
9334,
315,
4156,
6... |
self.membernames = [] | def __init__(self, name=None, mode="r", fileobj=None): """Open an (uncompressed) tar archive `name'. `mode' is either 'r' to read from an existing archive, 'a' to append data to an existing file or 'w' to create a new file overwriting an existing one. `mode' defaults to 'r'. If `fileobj' is given, it is used for readin... | f3c5611fef7cbd2ac8f0bf4e44bf11fe210817be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f3c5611fef7cbd2ac8f0bf4e44bf11fe210817be/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
4672,
3536,
3678,
392,
261,
551,
362,
10906,
13,
8232,
5052,
1375,
529,
10332,
1375,
3188,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
33,
7036,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
4672,
3536,
3678,
392,
261,
551,
362,
10906,
13,
8232,
5052,
1375,
529,
10332,
1375,
3188,
11,
... | |
val = self._exml.find(util.nspath('TransactionResponse/TransactionSummary', namespaces['csw'])) | val = self._exml.find(util.nspath('TransactionSummary', namespaces['csw'])) | def _parsetransactionsummary(self): val = self._exml.find(util.nspath('TransactionResponse/TransactionSummary', namespaces['csw'])) if val is not None: id = val.attrib.get('requestId') self.results['requestid'] = util.testXMLValue(id, True) ts = val.find(util.nspath('totalInserted', namespaces['csw'])) self.results['in... | 71fc78ef0795d82250b17d79eb6b817ce5864632 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11708/71fc78ef0795d82250b17d79eb6b817ce5864632/csw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1065,
542,
28001,
1128,
7687,
12,
2890,
4672,
1244,
273,
365,
6315,
338,
781,
18,
4720,
12,
1367,
18,
2387,
803,
2668,
3342,
4733,
2187,
7728,
3292,
2143,
91,
3546,
3719,
309,
1244,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1065,
542,
28001,
1128,
7687,
12,
2890,
4672,
1244,
273,
365,
6315,
338,
781,
18,
4720,
12,
1367,
18,
2387,
803,
2668,
3342,
4733,
2187,
7728,
3292,
2143,
91,
3546,
3719,
309,
1244,... |
def _createRepoPackage(self, name, version='1', release='0', epoch='0', arch='noarch'): | def repoPackage(self, name, version='1', release='0', epoch='0', arch='noarch'): | def _createRepoPackage(self, name, version='1', release='0', epoch='0', arch='noarch'): po = FakePackage(name, version, release, epoch, arch, repo=self.xrepo) self.xsack.addPackage(po) return po | f29fddfeba059aed51f7896bf712a7e74ea6c59d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/f29fddfeba059aed51f7896bf712a7e74ea6c59d/skipbroken-tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3538,
2261,
12,
2890,
16,
508,
16,
1177,
2218,
21,
2187,
3992,
2218,
20,
2187,
7632,
2218,
20,
2187,
6637,
2218,
2135,
991,
11,
4672,
8275,
273,
11551,
2261,
12,
529,
16,
1177,
16,
399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3538,
2261,
12,
2890,
16,
508,
16,
1177,
2218,
21,
2187,
3992,
2218,
20,
2187,
7632,
2218,
20,
2187,
6637,
2218,
2135,
991,
11,
4672,
8275,
273,
11551,
2261,
12,
529,
16,
1177,
16,
399... |
def setComponentList(self, l, key): | def setComponentList(self, l): | def setComponentList(self, l, key): """Remove all components, set them to `l`""" if self.hasTickets(): raise Exception("Will not modify database with existing tickets!") c = self.db().cursor() c.execute("""DELETE FROM component""") for comp in l: print "inserting component ", comp[key] c.execute("""INSERT INTO compone... | bdf7574edc4cb2b55e7db1424e146142fbbbc08d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/bdf7574edc4cb2b55e7db1424e146142fbbbc08d/sourceforge2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1841,
682,
12,
2890,
16,
328,
4672,
3536,
3288,
777,
4085,
16,
444,
2182,
358,
1375,
80,
68,
8395,
309,
365,
18,
5332,
6264,
2413,
13332,
1002,
1185,
2932,
13670,
486,
5612,
2063,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1841,
682,
12,
2890,
16,
328,
4672,
3536,
3288,
777,
4085,
16,
444,
2182,
358,
1375,
80,
68,
8395,
309,
365,
18,
5332,
6264,
2413,
13332,
1002,
1185,
2932,
13670,
486,
5612,
2063,
... |
memcache.set('view-project-data', data, time=CacheTimeout) | memcache.set(cache_key, data, time=CacheTimeout) | def list(self, additional_data={}): data = memcache.get('view-project-data') admin = users.is_current_user_admin() if admin or not data: projects = Project.all().order('category').order('name') if not admin: projects = projects.filter('approved =', True) projects = list(projects) | 37fc8fce2775705d708d213121f8400e489bf195 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5761/37fc8fce2775705d708d213121f8400e489bf195/package.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
3312,
67,
892,
12938,
4672,
501,
273,
20549,
18,
588,
2668,
1945,
17,
4406,
17,
892,
6134,
3981,
273,
3677,
18,
291,
67,
2972,
67,
1355,
67,
3666,
1435,
309,
3981,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
3312,
67,
892,
12938,
4672,
501,
273,
20549,
18,
588,
2668,
1945,
17,
4406,
17,
892,
6134,
3981,
273,
3677,
18,
291,
67,
2972,
67,
1355,
67,
3666,
1435,
309,
3981,
... |
req = Mock(Request, method='POST', path_info='/build/test', | req = Mock(Request, method='POST', cgi_location='', path_info='/build/test', redirect=redirect, hdf=HDFWrapper(), | def redirect(url): redirected_to.append(url) raise RequestDone | 31d623021a4051055a44ec529f842c01a8d178ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4547/31d623021a4051055a44ec529f842c01a8d178ba/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
12,
718,
4672,
21808,
67,
869,
18,
6923,
12,
718,
13,
1002,
1567,
7387,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
12,
718,
4672,
21808,
67,
869,
18,
6923,
12,
718,
13,
1002,
1567,
7387,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if inscription.site and inscription.site.nom in day_lines: site_line = day_lines[inscription.site.nom] | if inscription.site and inscription.site in day_lines: site_line = day_lines[inscription.site] | def UpdateContents(self): if "Week-end" in creche.feries: self.count = 5 else: self.count = 7 first_monday = getFirstMonday() lines = [] for week_day in range(self.count): date = first_monday + datetime.timedelta(self.semaine * 7 + week_day) if date in creche.jours_fermeture: continue day_lines = {} if len(creche.si... | ac44a714b4be066ac3c008cb0ede5d964f935313 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8291/ac44a714b4be066ac3c008cb0ede5d964f935313/panel_releves.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
6323,
12,
2890,
4672,
309,
315,
6630,
17,
409,
6,
316,
1519,
18706,
18,
586,
606,
30,
365,
18,
1883,
273,
1381,
469,
30,
365,
18,
1883,
273,
2371,
225,
1122,
67,
81,
28612,
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,
2315,
6323,
12,
2890,
4672,
309,
315,
6630,
17,
409,
6,
316,
1519,
18706,
18,
586,
606,
30,
365,
18,
1883,
273,
1381,
469,
30,
365,
18,
1883,
273,
2371,
225,
1122,
67,
81,
28612,
273... |
a2 = Table('addresses', meta2, | a2 = Table('addresses', meta2, | def test_override_existing_fkcols(self): """test that you can override columns and specify new foreign keys to other reflected tables, on columns which *do* already have that foreign key, and that the FK is not duped. """ meta = MetaData(testbase.db) users = Table('users', meta, Column('id', Integer, primary_key=True)... | 35ff8ed25e8a03b36461fbe09d0530bb1164ce82 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/35ff8ed25e8a03b36461fbe09d0530bb1164ce82/reflection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
10601,
67,
11711,
67,
23120,
6842,
12,
2890,
4672,
3536,
3813,
716,
1846,
848,
3849,
2168,
471,
4800,
394,
5523,
1311,
358,
1308,
21591,
4606,
16,
603,
2168,
1492,
380,
2896,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10601,
67,
11711,
67,
23120,
6842,
12,
2890,
4672,
3536,
3813,
716,
1846,
848,
3849,
2168,
471,
4800,
394,
5523,
1311,
358,
1308,
21591,
4606,
16,
603,
2168,
1492,
380,
2896,
1... |
self._post_handlers = [ | post_handlers = [ | def __init__(self, request, client_address, socket_server): self._connect_handlers = [ self.RedirectConnectHandler, self.ServerAuthConnectHandler, self.DefaultConnectResponseHandler] self._get_handlers = [ self.NoCacheMaxAgeTimeHandler, self.NoCacheTimeHandler, self.CacheTimeHandler, self.CacheExpiresHandler, self.Cach... | a358fd8076527132d37e0262823abe3807da16b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/a358fd8076527132d37e0262823abe3807da16b8/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
16,
1004,
67,
2867,
16,
2987,
67,
3567,
4672,
365,
6315,
3612,
67,
11046,
273,
306,
365,
18,
5961,
5215,
1503,
16,
365,
18,
2081,
1730,
5215,
1503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
590,
16,
1004,
67,
2867,
16,
2987,
67,
3567,
4672,
365,
6315,
3612,
67,
11046,
273,
306,
365,
18,
5961,
5215,
1503,
16,
365,
18,
2081,
1730,
5215,
1503,
... |
y = (0.5 * p['V0'] * exp(-p['kappa'] * (r / beta - p['s0'])) * ksi / p['gamma2'] * theta) | y = (0.5 * p1['V0'] * exp(-p2['kappa'] * (r / beta - p2['s0'])) * ksi / p1['gamma2'] * theta) | def interact1(self, a1, a2, d, r, p, ksi): x = exp(acut * (r - p['rc'])) theta = 1.0 / (1.0 + x) y = (0.5 * p['V0'] * exp(-p['kappa'] * (r / beta - p['s0'])) * ksi / p['gamma2'] * theta) self.energy -= y f = y * (p['kappa'] / beta + acut * theta * x) * d / r self.forces[a1] += f self.forces[a2] -= f self.sigma1[a1] += ... | 1d1e9034a00e074335b5193cf30cd09bb456808c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/1d1e9034a00e074335b5193cf30cd09bb456808c/emt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16592,
21,
12,
2890,
16,
279,
21,
16,
279,
22,
16,
302,
16,
436,
16,
293,
16,
417,
7722,
4672,
619,
273,
1329,
12,
1077,
322,
380,
261,
86,
300,
293,
3292,
1310,
3546,
3719,
7338,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16592,
21,
12,
2890,
16,
279,
21,
16,
279,
22,
16,
302,
16,
436,
16,
293,
16,
417,
7722,
4672,
619,
273,
1329,
12,
1077,
322,
380,
261,
86,
300,
293,
3292,
1310,
3546,
3719,
7338,
... |
"""returns an invalid value and expected parse result by index.""" | """overridden from Argument.""" | def GetInvalidArg(self, offset, index): """returns an invalid value and expected parse result by index.""" return ("-1", "kNoError", "GL_INVALID_VALUE") | 51330b3a08d845da9815b843e020833e62577828 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/51330b3a08d845da9815b843e020833e62577828/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1941,
4117,
12,
2890,
16,
1384,
16,
770,
4672,
3536,
83,
1107,
2794,
628,
5067,
12123,
327,
7566,
17,
21,
3113,
315,
79,
2279,
668,
3113,
315,
11261,
67,
9347,
67,
4051,
7923,
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,
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,
968,
1941,
4117,
12,
2890,
16,
1384,
16,
770,
4672,
3536,
83,
1107,
2794,
628,
5067,
12123,
327,
7566,
17,
21,
3113,
315,
79,
2279,
668,
3113,
315,
11261,
67,
9347,
67,
4051,
7923,
2,
... |
print "<tv generator-info-name=\"Script by Bart Heremans, fixes,testing and debuging by den_RDC\">" | print "<tv generator-info-name=\"Script by Bart Heremans and den_RDC\">" | def main(): try: opts, args = getopt.getopt(sys.argv[1:], "hd:", ["help", "days="]) except getopt.GetoptError: # print help information and exit: usage() sys.exit(2) dagen = 2 for o, a in opts: if o in ("-h", "--help"): print "help" usage() sys.exit() if o in ("-d", "--days"): dagen = int(a) print "<?xml version=\"1.0... | 9392fbfdf763574a03e1401669d97418d30dd72e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/9392fbfdf763574a03e1401669d97418d30dd72e/xml_tv_be.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
22057,
2773,
16,
8247,
5201,
3113,
315,
9810,
1546,
5717,
1335,
336... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
22057,
2773,
16,
8247,
5201,
3113,
315,
9810,
1546,
5717,
1335,
336... |
A wrapper around methods or functions wich automatically print the correct | A wrapper around methods or functions which automatically print the correct | sage: def bar(): | 1d78cf8d98d4fe595d10148b4d6738e63873a04e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/1d78cf8d98d4fe595d10148b4d6738e63873a04e/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
4653,
13332,
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,
272,
410,
30,
1652,
4653,
13332,
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,
-1... |
if user.is_superuser: return True | if permission >= 3: return False if user.is_superuser or user.is_staff: return True | def __has_permission(self, user, pref, permission): if permission == None or permission <= -1: return True | 3bbe1b315cee2f8c8161a63eb2bf5543e0655652 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11563/3bbe1b315cee2f8c8161a63eb2bf5543e0655652/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5332,
67,
9827,
12,
2890,
16,
729,
16,
11307,
16,
4132,
4672,
309,
4132,
422,
599,
578,
4132,
1648,
300,
21,
30,
327,
1053,
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,
1001,
5332,
67,
9827,
12,
2890,
16,
729,
16,
11307,
16,
4132,
4672,
309,
4132,
422,
599,
578,
4132,
1648,
300,
21,
30,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
"""The last child of this node. If ther is no such node | """The last child of this node. If there is no such node | def getLastChild(self): """The last child of this node. If ther is no such node this returns None.""" return None | 92d9f9e74555de20766dc34c52e48dbeb52376d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/92d9f9e74555de20766dc34c52e48dbeb52376d2/ZDOM.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7595,
1763,
12,
2890,
4672,
3536,
1986,
1142,
1151,
434,
333,
756,
18,
971,
1915,
353,
1158,
4123,
756,
333,
1135,
599,
12123,
327,
599,
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,
0,
0,
0,
0,
0,
0,
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,
7595,
1763,
12,
2890,
4672,
3536,
1986,
1142,
1151,
434,
333,
756,
18,
971,
1915,
353,
1158,
4123,
756,
333,
1135,
599,
12123,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.