rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
render.DrawTabX(self, dc, self._pagesInfoVec[tabIdx].GetXRect(), tabIdx, self._nTabXButtonStatus) | self.Refresh() | def OnMouseMove(self, event): """ Handles the wx.EVT_MOTION for L{PageContainer}. """ | 3a0b1f421ffd09b66f7f6a99913173fbe0ebb517 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12725/3a0b1f421ffd09b66f7f6a99913173fbe0ebb517/flatnotebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
9186,
7607,
12,
2890,
16,
871,
4672,
3536,
27020,
326,
7075,
18,
24427,
56,
67,
49,
1974,
1146,
364,
511,
95,
1964,
2170,
5496,
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,
2755,
9186,
7607,
12,
2890,
16,
871,
4672,
3536,
27020,
326,
7075,
18,
24427,
56,
67,
49,
1974,
1146,
364,
511,
95,
1964,
2170,
5496,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
agent = Agent(self, bankKey, obj.label) | agent = Agent(self, obj.agentBank, obj.label) | def _updateAgent(self, obj): bankKey = "%d.%d" % (obj.brokerBank, obj.agentBank) if obj._deleteTime == 0: if bankKey not in self.agents: agent = Agent(self, bankKey, obj.label) self.agents[bankKey] = agent if self.session.console != None: self.session.console.newAgent(agent) else: agent = self.agents.pop(bankKey, None)... | 0d08ba902f6f1345e2b0a283cf6e677e5be4b47d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/197/0d08ba902f6f1345e2b0a283cf6e677e5be4b47d/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
3630,
12,
2890,
16,
1081,
4672,
11218,
653,
273,
2213,
72,
7866,
72,
6,
738,
261,
2603,
18,
21722,
16040,
16,
1081,
18,
5629,
16040,
13,
309,
1081,
6315,
3733,
950,
422,
374... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
3630,
12,
2890,
16,
1081,
4672,
11218,
653,
273,
2213,
72,
7866,
72,
6,
738,
261,
2603,
18,
21722,
16040,
16,
1081,
18,
5629,
16040,
13,
309,
1081,
6315,
3733,
950,
422,
374... |
self._updateRegisteration(fd) | self._updateRegistration(fd) | def addWriter(self, writer, writes=writes, selectables=selectables): """Add a FileDescriptor for notification of data available to write. """ fd = writer.fileno() if not writes.has_key(fd): selectables[fd] = writer writes[fd] = 1 self._updateRegisteration(fd) | f8f4cce658115ffd1811a37759775bcb2c3a9b99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f8f4cce658115ffd1811a37759775bcb2c3a9b99/pollreactor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2289,
12,
2890,
16,
2633,
16,
7262,
33,
13284,
16,
2027,
1538,
33,
4025,
1538,
4672,
3536,
986,
279,
1387,
3187,
364,
3851,
434,
501,
2319,
358,
1045,
18,
3536,
5194,
273,
2633,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2289,
12,
2890,
16,
2633,
16,
7262,
33,
13284,
16,
2027,
1538,
33,
4025,
1538,
4672,
3536,
986,
279,
1387,
3187,
364,
3851,
434,
501,
2319,
358,
1045,
18,
3536,
5194,
273,
2633,
1... |
eventlisttmp = eventlisttmp + ['1',unicode(self.ParseEventValue(event), 'latin-1')] | eventlisttmp = eventlisttmp + ['1',myutils.to_unicode(self.ParseEventValue(event))] | def run(self): '''This is the main workhorse function. Keeps popping events off the queue, and processing them, until program quits ''' ## line format: ## date; time (1 minute resolution); fullapppath; hwnd; username; window title; eventdata ## ## if we are logging keystroke count, that field becomes the penultimate fi... | 6cc681747db54c819352ad7345b0858ccd3ec88c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3638/6cc681747db54c819352ad7345b0858ccd3ec88c/logwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
9163,
2503,
353,
326,
2774,
1440,
76,
23035,
445,
18,
10498,
87,
1843,
1382,
2641,
3397,
326,
2389,
16,
471,
4929,
2182,
16,
3180,
5402,
719,
1282,
9163,
7541,
980,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
9163,
2503,
353,
326,
2774,
1440,
76,
23035,
445,
18,
10498,
87,
1843,
1382,
2641,
3397,
326,
2389,
16,
471,
4929,
2182,
16,
3180,
5402,
719,
1282,
9163,
7541,
980,... |
get_starter_file_name() + '" >> "' + prog_path + \ '/cron_log.txt"' + ' 2>> "' + prog_path + \ '/cron_log.txt"' + os.linesep | get_starter_file_name() + '" >> /dev/null 2>&1' | def setup_startup(prog_path): """ <Purpose> Sets up seattle to run at startup on the current computer. On Windows, this means adding a script to the startup folder, while on Unix systems it means adding a line to the crontab. <Arguments> prog_path: The path to the directory where the seattle files are located. <Excep... | b1784f9160f423fa65cf93b3344757c06ce7b045 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/b1784f9160f423fa65cf93b3344757c06ce7b045/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
23939,
12,
14654,
67,
803,
4672,
3536,
411,
10262,
4150,
34,
11511,
731,
695,
4558,
298,
358,
1086,
622,
11850,
603,
326,
783,
26579,
18,
2755,
8202,
16,
333,
4696,
6534,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
23939,
12,
14654,
67,
803,
4672,
3536,
411,
10262,
4150,
34,
11511,
731,
695,
4558,
298,
358,
1086,
622,
11850,
603,
326,
783,
26579,
18,
2755,
8202,
16,
333,
4696,
6534,
279,
... |
insert_data = [ [7, 'jack', datetime.datetime(2005, 11, 10, 0, 0), datetime.date(2005,11,10), datetime.time(12,20,2)], [8, 'roy', datetime.datetime(2005, 11, 10, 11, 52, 35), datetime.date(2005,10,10), datetime.time(0,0,0)], [9, 'foo', datetime.datetime(2005, 11, 10, 11, 52, 35, 54839), datetime.date(1970,4,1), dateti... | insert_data = [ [7, 'jack', datetime.datetime(2005, 11, 10, 0, 0), datetime.date(2005,11,10), datetime.time(12,20,2)], [8, 'roy', datetime.datetime(2005, 11, 10, 11, 52, 35), datetime.date(2005,10,10), datetime.time(0,0,0)], [9, 'foo', datetime.datetime(2005, 11, 10, 11, 52, 35, 54839), datetime.date(1970,4,1), dateti... | def setUpAll(self): global users_with_date, insert_data | ec6d7b39003f244b4acc7352f5973c910053e17f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/ec6d7b39003f244b4acc7352f5973c910053e17f/testtypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
1595,
12,
2890,
4672,
2552,
3677,
67,
1918,
67,
712,
16,
2243,
67,
892,
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,
24292,
1595,
12,
2890,
4672,
2552,
3677,
67,
1918,
67,
712,
16,
2243,
67,
892,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
os.system("nosetests --with-nosexunit --source-folder=src --where=test/springpythontest --xml-report-folder=%s" % dir) | os.system("nosetests --with-nosexunit --source-folder=src --where=test/springpythontest --xml-report-folder=%s checkin" % dir) | def test(dir): if not os.path.exists(dir): os.makedirs(dir) os.system("nosetests --with-nosexunit --source-folder=src --where=test/springpythontest --xml-report-folder=%s" % dir) | 6f45fa77cc268f5d236c3bfe6bff81d5ad93b7c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/6f45fa77cc268f5d236c3bfe6bff81d5ad93b7c1/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
1214,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
1214,
4672,
1140,
18,
81,
9477,
10539,
12,
1214,
13,
1140,
18,
4299,
2932,
18050,
278,
25563,
1493,
1918,
17,
2135,
20909,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
1214,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
1214,
4672,
1140,
18,
81,
9477,
10539,
12,
1214,
13,
1140,
18,
4299,
2932,
18050,
278,
25563,
1493,
1918,
17,
2135,
20909,
... |
assert i.attrib['tag'].isdigit() | if tag == 'FMT': continue if not tag.isdigit(): non_digit = True else: if tag[0] != '9' and non_digit: raise BadSubtag | def read_fields(self, want): want = set(want) | 0c93cd75ae1c28849653cff8b0b07bcba3f9d91c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/0c93cd75ae1c28849653cff8b0b07bcba3f9d91c/marc_xml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2821,
12,
2890,
16,
2545,
4672,
2545,
273,
444,
12,
17369,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
855,
67,
2821,
12,
2890,
16,
2545,
4672,
2545,
273,
444,
12,
17369,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
res = self.__putFile(srcFile,destFile,0) if os.path.exists(srcFile): os.remove(srcFile) self.__executeOperation(destFile,'removeFile') | res = self.__putFile( srcFile, destFile, 0 ) if os.path.exists( srcFile ): os.remove( srcFile ) self.__executeOperation( destFile, 'removeFile' ) | def __makeDir(self,path): srcFile = '%s/%s' % (os.getcwd(),'dirac_directory') dfile = open(srcFile,'w') dfile.write(" ") dfile.close() destFile = '%s/%s' % (path,'dirac_directory.%s' % time.time()) directoryDict = {destFile:srcFile} res = self.__putFile(srcFile,destFile,0) if os.path.exists(srcFile): os.remove(srcFile)... | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6540,
1621,
12,
2890,
16,
803,
4672,
24672,
273,
1995,
87,
5258,
87,
11,
738,
261,
538,
18,
588,
11089,
9334,
11,
3211,
8836,
67,
5149,
6134,
302,
768,
273,
1696,
12,
4816,
812,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6540,
1621,
12,
2890,
16,
803,
4672,
24672,
273,
1995,
87,
5258,
87,
11,
738,
261,
538,
18,
588,
11089,
9334,
11,
3211,
8836,
67,
5149,
6134,
302,
768,
273,
1696,
12,
4816,
812,
... |
bot = SandboxBot(hours, no_repeat) | bot = SandboxBot(hours, no_repeat, delay) | def main(): hours = 1 no_repeat = True for arg in wikipedia.handleArgs(): if arg.startswith('-hours:'): hours = float(arg[7:]) no_repeat = False else: wikipedia.showHelp('clean_sandbox') return bot = SandboxBot(hours, no_repeat) bot.run() | 5af2f5a9221ce111d4be71621dc4061ff47e919e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5af2f5a9221ce111d4be71621dc4061ff47e919e/clean_sandbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
7507,
273,
404,
1158,
67,
9374,
273,
1053,
364,
1501,
316,
21137,
18,
4110,
2615,
13332,
309,
1501,
18,
17514,
1918,
2668,
17,
16814,
2497,
4672,
7507,
273,
1431,
12,
3175,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7507,
273,
404,
1158,
67,
9374,
273,
1053,
364,
1501,
316,
21137,
18,
4110,
2615,
13332,
309,
1501,
18,
17514,
1918,
2668,
17,
16814,
2497,
4672,
7507,
273,
1431,
12,
3175,
... |
condorJobfile = os.path.join(self.localStagingDir, self.workflow+".condor") | condorJobfile = os.path.join(self.localStagingDir, shortName+".condor") | def writeCondorFile(self, pipelinePolicy): self.logger.log(Log.DEBUG, "VanillaWorkflowConfigurator:writeCondorFile") | 9fabc637352b9a9dd98720e19642c13ae2362a78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6549/9fabc637352b9a9dd98720e19642c13ae2362a78/VanillaCondorWorkflowConfigurator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12441,
280,
812,
12,
2890,
16,
5873,
2582,
4672,
365,
18,
4901,
18,
1330,
12,
1343,
18,
9394,
16,
315,
58,
26476,
8484,
17182,
30,
2626,
12441,
280,
812,
7923,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12441,
280,
812,
12,
2890,
16,
5873,
2582,
4672,
365,
18,
4901,
18,
1330,
12,
1343,
18,
9394,
16,
315,
58,
26476,
8484,
17182,
30,
2626,
12441,
280,
812,
7923,
2,
-100,
-100,
-10... |
def __init__(self, dag, job, cp, opts, time, ifo, p_nodes=[], type="ht", variety="fg"): | def __init__(self, dag, job, cp, opts, time, ifo, frame_cache, p_nodes=[], type="ht", variety="fg"): | def __init__(self, dag, job, cp, opts, time, ifo, p_nodes=[], type="ht", variety="fg"): """ """ pipeline.CondorDAGNode.__init__(self,job) | 2869ef397c55840877c2be60eb9ece759794479d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/2869ef397c55840877c2be60eb9ece759794479d/stfu_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
22940,
16,
1719,
16,
3283,
16,
1500,
16,
813,
16,
21479,
16,
2623,
67,
2493,
16,
293,
67,
4690,
22850,
6487,
618,
1546,
647,
3113,
1394,
14369,
1546,
213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22940,
16,
1719,
16,
3283,
16,
1500,
16,
813,
16,
21479,
16,
2623,
67,
2493,
16,
293,
67,
4690,
22850,
6487,
618,
1546,
647,
3113,
1394,
14369,
1546,
213... |
for line in gdb_output.splitlines(): if line.startswith('$1'): self.assertTrue(re.match(r'\$1 = Frame 0x[0-9a-f]+, for file <string>, line 3, in foo \(\)', line), 'Unexpected gdb representation: %r\n%s' % (line, gdb_output)) return self.fail('Did not find expected line beginning with $1') | self.assertTrue(re.match(r'.*\s+\$1 =\s+Frame 0x[0-9a-f]+, for file <string>, line 3, in foo \(\)\s+.*', gdb_output, re.DOTALL), 'Unexpected gdb representation: %r\n%s' % (gdb_output, gdb_output)) | def foo(a, b, c): pass | 9362d7b9455f0d54064561e221047077a1c94d81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/9362d7b9455f0d54064561e221047077a1c94d81/test_gdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8431,
12,
69,
16,
324,
16,
276,
4672,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8431,
12,
69,
16,
324,
16,
276,
4672,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if self.text != "": | if self.text != "" and model.get_value(it, column).startswith(self.complete): | def search_func(self, model, column, key, it): if self.mod: cp_text = key else: cp_text = self.text + key self.complete = cp_text if model.get_path(model.get_iter_first()) == model.get_path(it): self.found = False if model.get_value(it, column).startswith(cp_text): self.found = True if model.iter_next(it) is None and n... | 609d3b2f4044112b0b4ef84717924b2174df81ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/609d3b2f4044112b0b4ef84717924b2174df81ac/edit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
644,
12,
2890,
16,
938,
16,
1057,
16,
498,
16,
518,
4672,
309,
365,
18,
1711,
30,
3283,
67,
955,
273,
498,
469,
30,
3283,
67,
955,
273,
365,
18,
955,
397,
498,
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,
1623,
67,
644,
12,
2890,
16,
938,
16,
1057,
16,
498,
16,
518,
4672,
309,
365,
18,
1711,
30,
3283,
67,
955,
273,
498,
469,
30,
3283,
67,
955,
273,
365,
18,
955,
397,
498,
365,
18,
... |
table:style-name="table-default.cell-A1"> | table:style-name="table-default.cell-A4"> | def test_table_footer(self): html = """<html xmlns="http://www.w3.org/1999/xhtml"> <table> <tfoot> <tr> <td>Cell1</td> <td>Cell2</td> </tr> </tfoot> <tr> <td>Cell3</td> <td>Cell4</td> </tr> </table> </html> """ odt = xhtml2odt(html) # remove namespaces odt = re.sub('(xmlns:[a-z0-9=:".-]+\s+)*', '', str(odt)) # remove c... | 9cd87a34e72c7238b1b710177511eae4bd213897 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/9cd87a34e72c7238b1b710177511eae4bd213897/test_tables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2121,
67,
14723,
12,
2890,
4672,
1729,
273,
3536,
32,
2620,
12302,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
6441,
411,
2121,
34,
411,
88,
10923... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2121,
67,
14723,
12,
2890,
4672,
1729,
273,
3536,
32,
2620,
12302,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
6441,
411,
2121,
34,
411,
88,
10923... |
assert gc.collect() > 0 | if gc.collect() == 0: raise TestFailed | def test_instance(): class A: pass a = A() a.a = a gc.collect() del a assert gc.collect() > 0 | e3aa6f872c7d08b44faf5e6c53625eda81d38bd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e3aa6f872c7d08b44faf5e6c53625eda81d38bd1/test_gc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1336,
13332,
667,
432,
30,
1342,
279,
273,
432,
1435,
279,
18,
69,
273,
279,
8859,
18,
14676,
1435,
1464,
279,
309,
8859,
18,
14676,
1435,
422,
374,
30,
1002,
7766,
2925,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1336,
13332,
667,
432,
30,
1342,
279,
273,
432,
1435,
279,
18,
69,
273,
279,
8859,
18,
14676,
1435,
1464,
279,
309,
8859,
18,
14676,
1435,
422,
374,
30,
1002,
7766,
2925,
225... |
return self._qexp | if prec is None: return self._qexp elif prec > self.prec(): raise ValueError else: return self._qexp.add_bigoh(prec) | def qexp(self): r""" Return the q-expansion of self, to as high precision as it is known. | 3585551616e64b7ecefd90f53b929dc9de8efd18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3585551616e64b7ecefd90f53b929dc9de8efd18/genus0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
2749,
12,
2890,
4672,
436,
8395,
2000,
326,
1043,
17,
2749,
12162,
434,
365,
16,
358,
487,
3551,
6039,
487,
518,
353,
4846,
18,
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,
1043,
2749,
12,
2890,
4672,
436,
8395,
2000,
326,
1043,
17,
2749,
12162,
434,
365,
16,
358,
487,
3551,
6039,
487,
518,
353,
4846,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sub.__parent = self | sub.__parent = wkref(self) | def __setitem__( self, k, v ): if isinstance(v,ParseResultsWithOffset): self.__tokdict[k] = self.__tokdict.get(k,list()) + [v] sub = v[0] elif isinstance(k,int): self.__toklist[k] = v sub = v else: self.__tokdict[k] = self.__tokdict.get(k,list()) + [(v,0)] sub = v if isinstance(sub,ParseResults): sub.__parent = self | 3ffe2cb437e5c5ef179a32d974b9041a6bc31b6a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12364/3ffe2cb437e5c5ef179a32d974b9041a6bc31b6a/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
365,
16,
417,
16,
331,
262,
30,
309,
1549,
12,
90,
16,
3201,
3447,
1190,
2335,
4672,
365,
16186,
17692,
1576,
63,
79,
65,
273,
365,
16186,
17692,
1576,
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,
1001,
542,
1726,
972,
12,
365,
16,
417,
16,
331,
262,
30,
309,
1549,
12,
90,
16,
3201,
3447,
1190,
2335,
4672,
365,
16186,
17692,
1576,
63,
79,
65,
273,
365,
16186,
17692,
1576,
18,
... |
print >>sys.stderr, """\ the output will contain "%s" and should be usable. * "backslashreplace" (for other output formats, Python 2.3+); look for "%s" in the output.""" % ( data.encode('ascii', 'xmlcharrefreplace'), data.encode('ascii', 'backslashreplace')) | sys.stderr.write( ' the output will contain "%s" and should be usable.\n' '* "backslashreplace" (for other output formats, Python 2.3+);\n' ' look for "%s" in the output.\n' % (data.encode('ascii', 'xmlcharrefreplace'), data.encode('ascii', 'backslashreplace'))) | def report_UnicodeError(self, error): print >>sys.stderr, '%s: %s' % (error.__class__.__name__, error) | 9227369877d31f35c47c4ad0bee70ce68f3ba2ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/9227369877d31f35c47c4ad0bee70ce68f3ba2ee/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
16532,
668,
12,
2890,
16,
555,
4672,
1172,
1671,
9499,
18,
11241,
16,
1995,
87,
30,
738,
87,
11,
738,
261,
1636,
16186,
1106,
972,
16186,
529,
972,
16,
555,
13,
2,
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,
2605,
67,
16532,
668,
12,
2890,
16,
555,
4672,
1172,
1671,
9499,
18,
11241,
16,
1995,
87,
30,
738,
87,
11,
738,
261,
1636,
16186,
1106,
972,
16186,
529,
972,
16,
555,
13,
2,
-100,
-1... |
pre.appendChild(doc.createTextNode(self.getBody())) | pre.appendChild(doc.createTextNode(self.getBody())) | def toXHTML(self): """ Print a message into XHTML+RDFa format """ #root nodes doc = getDOMImplementation().createDocument(None, 'html', None) root = doc.documentElement root.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml') root.setAttribute('xmlns:sioc', str(SIOC)) root.setAttribute('xmlns:foaf', str(FOAF)) root.... | 8193f8a0c5095160f9997eedc83a82f8b0d21cf2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2232/8193f8a0c5095160f9997eedc83a82f8b0d21cf2/message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
60,
4870,
12,
2890,
4672,
3536,
3038,
279,
883,
1368,
30551,
15,
30137,
69,
740,
3536,
225,
468,
3085,
2199,
997,
273,
2343,
1872,
13621,
7675,
2640,
2519,
12,
7036,
16,
296,
2620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
358,
60,
4870,
12,
2890,
4672,
3536,
3038,
279,
883,
1368,
30551,
15,
30137,
69,
740,
3536,
225,
468,
3085,
2199,
997,
273,
2343,
1872,
13621,
7675,
2640,
2519,
12,
7036,
16,
296,
2620,
... |
for set1 in self.sets + []: | for set1 in self.sets + [[]]: | def test_ascii_bit_dump(self): """intbitset - ascii bit dump""" for set1 in self.sets + []: tot = 0 count = 0 for bit in intbitset(set1).strbits(): if bit == '0': self.failIf(count in set1) elif bit == '1': self.failIf(count not in set1) tot += 1 else: self.fail() count += 1 self.assertEqual(tot, len(set1)) | d4a1d7e3f52dbeaebf8d74a7a99b4870caa65e1a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/d4a1d7e3f52dbeaebf8d74a7a99b4870caa65e1a/intbitset_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9184,
67,
3682,
67,
8481,
12,
2890,
4672,
3536,
474,
3682,
542,
300,
11384,
2831,
4657,
8395,
364,
444,
21,
316,
365,
18,
4424,
397,
306,
8526,
14542,
9997,
273,
374,
1056,
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,
1842,
67,
9184,
67,
3682,
67,
8481,
12,
2890,
4672,
3536,
474,
3682,
542,
300,
11384,
2831,
4657,
8395,
364,
444,
21,
316,
365,
18,
4424,
397,
306,
8526,
14542,
9997,
273,
374,
1056,
2... |
if root.level == 30: | if not root.level: | def output(text, decoder=None, newline=True, toStdout=False, level=INFO): """Output a message to the user via the userinterface. Works like print, but uses the encoding used by the user's console (console_encoding in the configuration file) instead of ASCII. If decoder is None, text should be a unicode string. Otherwi... | e715a9c4076536e56293f775a8d59b683a3d5432 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9005/e715a9c4076536e56293f775a8d59b683a3d5432/bot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
12,
955,
16,
8320,
33,
7036,
16,
9472,
33,
5510,
16,
358,
27334,
33,
8381,
16,
1801,
33,
5923,
4672,
3536,
1447,
279,
883,
358,
326,
729,
3970,
326,
729,
5831,
18,
225,
4147,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
876,
12,
955,
16,
8320,
33,
7036,
16,
9472,
33,
5510,
16,
358,
27334,
33,
8381,
16,
1801,
33,
5923,
4672,
3536,
1447,
279,
883,
358,
326,
729,
3970,
326,
729,
5831,
18,
225,
4147,
87... |
sizer2 = wx.BoxSizer(wx.VERTICAL) | def modval(self, event): dialog = wx.Dialog(None, -1, "Set Light Values", size=wx.Size(300, 300)) self.dialog = dialog sizer = wx.BoxSizer(wx.VERTICAL) sizer2 = wx.BoxSizer(wx.VERTICAL) self.values = scrolled.ScrolledPanel(dialog, -1, size=wx.Size(300, 200)) box = wx.BoxSizer(wx.HORIZONTAL) label = wx.StaticText(self.... | e4a495f473299f3234d1d57514918996b249814d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/e4a495f473299f3234d1d57514918996b249814d/_control.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
681,
1125,
12,
2890,
16,
871,
4672,
6176,
273,
7075,
18,
6353,
12,
7036,
16,
300,
21,
16,
315,
694,
15992,
6876,
3113,
963,
33,
27226,
18,
1225,
12,
19249,
16,
11631,
3719,
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,
681,
1125,
12,
2890,
16,
871,
4672,
6176,
273,
7075,
18,
6353,
12,
7036,
16,
300,
21,
16,
315,
694,
15992,
6876,
3113,
963,
33,
27226,
18,
1225,
12,
19249,
16,
11631,
3719,
365,
18,
... | |
assert res == self.main.im_func(1, 10) | assert res == main(1, 10) | def test_tl_2(self): res = self.meta_interp(self.main.im_func, [1, 10], listops=True, backendopt=True) assert res == self.main.im_func(1, 10) self.check_loops({'int_sub':1, 'int_le':1, 'int_is_true':1, 'guard_false':1, 'jump':1}) | e59b5cc5e71c3b11feca4a3c33171e5eb96d4282 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/e59b5cc5e71c3b11feca4a3c33171e5eb96d4282/test_tl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6172,
67,
22,
12,
2890,
4672,
400,
273,
365,
18,
3901,
67,
24940,
12,
2890,
18,
5254,
18,
381,
67,
644,
16,
306,
21,
16,
1728,
6487,
666,
4473,
33,
5510,
16,
4221,
3838,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6172,
67,
22,
12,
2890,
4672,
400,
273,
365,
18,
3901,
67,
24940,
12,
2890,
18,
5254,
18,
381,
67,
644,
16,
306,
21,
16,
1728,
6487,
666,
4473,
33,
5510,
16,
4221,
3838,
... |
else | else: | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 680) else quickfix.IntField.__init__(self, 680, 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,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
3672,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
3672,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
27... |
if (version == TAL_VERSION and isinstance(program[1], tuple) and | if (version == TAL_VERSION and isinstance_(program[1], tuple) and | def getProgramMode(program): version = getProgramVersion(program) if (version == TAL_VERSION and isinstance(program[1], tuple) and len(program[1]) == 2): opcode, mode = program[1] if opcode == "mode": return mode return None | d2ed77fafe9c3762d19dfd9ae43938d2aebc7bbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9834/d2ed77fafe9c3762d19dfd9ae43938d2aebc7bbf/taldefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
3295,
2309,
12,
12890,
4672,
1177,
273,
3570,
3295,
1444,
12,
12890,
13,
309,
261,
1589,
422,
399,
1013,
67,
5757,
471,
1549,
67,
12,
12890,
63,
21,
6487,
3193,
13,
471,
562,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
3295,
2309,
12,
12890,
4672,
1177,
273,
3570,
3295,
1444,
12,
12890,
13,
309,
261,
1589,
422,
399,
1013,
67,
5757,
471,
1549,
67,
12,
12890,
63,
21,
6487,
3193,
13,
471,
562,
12,... |
namedRepl[n] = v[0] | if v[0] != name: namedRepl[name] = [v[0], v[2]] | def process(self, text): # keys are ref groups # values are a dict where : # keys are ref content # values are [name, [list of full ref matches]] foundRefs = {} foundRefNames = [] # Replace key by value namedRepl = {} | cf52d53ad4531135e73ebcbe3e028663a00bb7b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/cf52d53ad4531135e73ebcbe3e028663a00bb7b1/reflinks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
977,
4672,
468,
1311,
854,
1278,
3252,
468,
924,
854,
279,
2065,
1625,
294,
468,
282,
1311,
854,
1278,
913,
468,
282,
924,
854,
306,
529,
16,
306,
1098,
434,
1983,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
977,
4672,
468,
1311,
854,
1278,
3252,
468,
924,
854,
279,
2065,
1625,
294,
468,
282,
1311,
854,
1278,
913,
468,
282,
924,
854,
306,
529,
16,
306,
1098,
434,
1983,
... |
jobid = self.client.SubmitJob(jdl) raise 'problem' | jobid = self.client.submitJob(jdl) | def _sendJob(self,jdl): """Internal function. Still to check proxy timeleft and VO eligibility etc. | 28afabf46f73fd75c169cf165ffc6c0a14ea9785 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/28afabf46f73fd75c169cf165ffc6c0a14ea9785/Dirac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
2278,
12,
2890,
16,
78,
5761,
4672,
3536,
3061,
445,
18,
934,
737,
358,
866,
2889,
1658,
6516,
1222,
471,
776,
51,
415,
360,
3628,
5527,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
2278,
12,
2890,
16,
78,
5761,
4672,
3536,
3061,
445,
18,
934,
737,
358,
866,
2889,
1658,
6516,
1222,
471,
776,
51,
415,
360,
3628,
5527,
18,
2,
-100,
-100,
-100,
-100,
-100,... |
print (" reinitializing sub-commands: %s" % command.get_sub_commands()) | def reinitialize_command (self, command, reinit_subcommands=0): """Reinitializes a command to the state it was in when first returned by 'get_command_obj()': ie., initialized but not yet finalized. This provides the opportunity to sneak option values in programmatically, overriding or supplementing user-supplied value... | 7c04d132f40e66010904dda5acf76c7e6460cdac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7c04d132f40e66010904dda5acf76c7e6460cdac/dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
11160,
67,
3076,
261,
2890,
16,
1296,
16,
283,
2738,
67,
1717,
7847,
33,
20,
4672,
3536,
426,
6769,
3128,
279,
1296,
358,
326,
919,
518,
1703,
316,
1347,
1122,
2106,
635,
296,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
283,
11160,
67,
3076,
261,
2890,
16,
1296,
16,
283,
2738,
67,
1717,
7847,
33,
20,
4672,
3536,
426,
6769,
3128,
279,
1296,
358,
326,
919,
518,
1703,
316,
1347,
1122,
2106,
635,
296,
588... | |
html = HtmlWindow() | def do_reload(self, _b): if len(history) == 0: return url = history[-1] del history[-1] self.load_url(html, url) | 9e12cbf33c71c37ace3ba407711b86950816a6ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12352/9e12cbf33c71c37ace3ba407711b86950816a6ae/gtkhtml_demo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
17517,
12,
2890,
16,
389,
70,
4672,
309,
562,
12,
8189,
13,
422,
374,
30,
327,
880,
273,
4927,
18919,
21,
65,
1464,
4927,
18919,
21,
65,
365,
18,
945,
67,
718,
12,
2620,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
17517,
12,
2890,
16,
389,
70,
4672,
309,
562,
12,
8189,
13,
422,
374,
30,
327,
880,
273,
4927,
18919,
21,
65,
1464,
4927,
18919,
21,
65,
365,
18,
945,
67,
718,
12,
2620,
1... | |
OWGUI.tableItem(table, i,j, str(data[i][key]), backColor = bgColor) | item = OWGUI.tableItem(table, i,j, data[i][key].native(), backColor = bgColor) item.setData(OrangeValueRole, QVariant(str(data[i][key]))) | def setTable(self, table, data): if data==None: return qApp.setOverrideCursor(Qt.WaitCursor) vars = data.domain.variables m = data.domain.getmetas(False) ml = [(k, m[k]) for k in m] ml.sort(lambda x,y: cmp(y[0], x[0])) metas = [x[1] for x in ml] metaKeys = [x[0] for x in ml] | d0badfbd529c7a9f22acebcbff6c708d89b17725 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/d0badfbd529c7a9f22acebcbff6c708d89b17725/OWDataTable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30146,
12,
2890,
16,
1014,
16,
501,
4672,
309,
501,
631,
7036,
30,
327,
1043,
3371,
18,
542,
6618,
6688,
12,
23310,
18,
5480,
6688,
13,
4153,
273,
501,
18,
4308,
18,
7528,
312,
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,
30146,
12,
2890,
16,
1014,
16,
501,
4672,
309,
501,
631,
7036,
30,
327,
1043,
3371,
18,
542,
6618,
6688,
12,
23310,
18,
5480,
6688,
13,
4153,
273,
501,
18,
4308,
18,
7528,
312,
273,
... |
rule.pattern(10),)) \ | rule.pattern(10), rule.pattern(11), rule.pattern(12),)) \ | def fc_forall_None(rule, arg_patterns, arg_context): engine = rule.rule_base.engine patterns = rule.goal_arg_patterns() if len(arg_patterns) == len(patterns): context = contexts.bc_context(rule) try: if all(itertools.imap(lambda pat, arg: pat.match_pattern(context, context, arg, arg_context), patterns, arg_patterns)): ... | bd4e660a9ed69b909bf026a87883b9b1a9562934 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14714/bd4e660a9ed69b909bf026a87883b9b1a9562934/compiler_bc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
67,
1884,
454,
67,
7036,
12,
5345,
16,
1501,
67,
13317,
16,
1501,
67,
2472,
4672,
4073,
273,
1720,
18,
5345,
67,
1969,
18,
8944,
6884,
273,
1720,
18,
27354,
67,
3175,
67,
13317,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8036,
67,
1884,
454,
67,
7036,
12,
5345,
16,
1501,
67,
13317,
16,
1501,
67,
2472,
4672,
4073,
273,
1720,
18,
5345,
67,
1969,
18,
8944,
6884,
273,
1720,
18,
27354,
67,
3175,
67,
13317,
... |
'price_unit': grid.get_price(cr, uid, grid.id, order, dt, context), 'date_planned': dt, | 'price_unit': grid.get_price(cr, uid, grid.id, order, time.strftime('%Y-%m-%d'), context), | def _delivery_set(self, cr, uid, data, context): order_obj = pooler.get_pool(cr.dbname).get('sale.order') line_obj = pooler.get_pool(cr.dbname).get('sale.order.line') order_objs = order_obj.browse(cr, uid, data['ids'], context) for order in order_objs: dt = time.strftime('%Y-%m-%d') grid_id = pooler.get_pool(cr.dbnam... | 9f3c56f8692ac07a44361962672017669a0baa6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/9f3c56f8692ac07a44361962672017669a0baa6b/delivery_sale_order.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15703,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
1353,
67,
2603,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
87,
5349,
18,
1019... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15703,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
1353,
67,
2603,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
87,
5349,
18,
1019... |
self.videofile.Enable(sel) | self.videofile.Enable(sel) | def onUpdateFormat(self, event): """ Created: 26.04.2005, KP Description: Update the gui based on the selected output format """ sel = self.formatMenu.GetSelection() if sel: self.outputFormatLbl.SetLabel("Video Codec:") else: self.outputFormatLbl.SetLabel("Image Format:") self.delFramesBox.Enable(sel) self.qualitySli... | ed5ed7160382ea536c275802dc74ac0d3b7a7ac2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/ed5ed7160382ea536c275802dc74ac0d3b7a7ac2/VideoGeneration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27728,
1630,
12,
2890,
16,
871,
4672,
3536,
12953,
30,
10659,
18,
3028,
18,
6976,
25,
16,
1475,
52,
6507,
30,
2315,
326,
13238,
2511,
603,
326,
3170,
876,
740,
3536,
357,
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,
27728,
1630,
12,
2890,
16,
871,
4672,
3536,
12953,
30,
10659,
18,
3028,
18,
6976,
25,
16,
1475,
52,
6507,
30,
2315,
326,
13238,
2511,
603,
326,
3170,
876,
740,
3536,
357,
273,
365,
18,... |
event.arg and hasattr(self.current_item,'type'): | event.arg and self.current_item and hasattr(self.current_item,'type'): | def eventhandler(self, event, menuw=None): """ Handle playlist specific events """ | 164039cc45d1cb0e4afbdf9eb7743be169b440aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/164039cc45d1cb0e4afbdf9eb7743be169b440aa/playlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
4176,
12,
2890,
16,
871,
16,
3824,
91,
33,
7036,
4672,
3536,
5004,
16428,
2923,
2641,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
4176,
12,
2890,
16,
871,
16,
3824,
91,
33,
7036,
4672,
3536,
5004,
16428,
2923,
2641,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
rledata = binascii.rlecode_hqx(self.data) self.ofp.write(rledata) | rledata = binascii.rlecode_hqx(self.data) self.ofp.write(rledata) | def close(self): | a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
""" String Variable Input 0 : The stored value Ouput 0 : Transmit the stored value """ | """String Variable :param : The stored value :returns: Transmit the stored value """ | def __call__(self, inputs): """ inputs is the list of input values """ res = float(inputs[0]) self.set_caption('%.1e'%res) return ( res, ) | f78cad0f6ee07e911240d784cd94a6972a31d06b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4914/f78cad0f6ee07e911240d784cd94a6972a31d06b/data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
4540,
4672,
3536,
4540,
353,
326,
666,
434,
810,
924,
3536,
400,
273,
1431,
12,
10029,
63,
20,
5717,
365,
18,
542,
67,
15386,
29909,
18,
21,
73,
11,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4540,
4672,
3536,
4540,
353,
326,
666,
434,
810,
924,
3536,
400,
273,
1431,
12,
10029,
63,
20,
5717,
365,
18,
542,
67,
15386,
29909,
18,
21,
73,
11,
9,... |
raise Errors.HeaderParseError( "Not a header, not a continuation: ``%s''"%line) | firstbodyline = line break | def _parseheaders(self, container, fp): # Parse the headers, returning a list of header/value pairs. None as # the header means the Unix-From header. lastheader = '' lastvalue = [] lineno = 0 while True: # Don't strip the line before we test for the end condition, # because whitespace-only header lines are RFC complia... | fd75ad1c4ab511c4bd028c66a273ed9117440b57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fd75ad1c4ab511c4bd028c66a273ed9117440b57/Parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
2485,
12,
2890,
16,
1478,
16,
4253,
4672,
468,
2884,
326,
1607,
16,
5785,
279,
666,
434,
1446,
19,
1132,
5574,
18,
225,
599,
487,
468,
326,
1446,
4696,
326,
9480,
17,
1265,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2670,
2485,
12,
2890,
16,
1478,
16,
4253,
4672,
468,
2884,
326,
1607,
16,
5785,
279,
666,
434,
1446,
19,
1132,
5574,
18,
225,
599,
487,
468,
326,
1446,
4696,
326,
9480,
17,
1265,
... |
def _arrow(self, xmin, ymin, xmax, ymax, options): | def _arrow(self, xtail, ytail, xhead, yhead, options): | def _arrow(self, xmin, ymin, xmax, ymax, options): """ Add an arrow with given bounding box to this graphics object. | 20fed398d25002f78f9edd13592206eb593b0a5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/20fed398d25002f78f9edd13592206eb593b0a5f/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7815,
12,
2890,
16,
619,
13101,
16,
677,
13101,
16,
619,
1978,
16,
677,
1978,
16,
702,
4672,
3536,
1436,
392,
12274,
598,
864,
7552,
3919,
358,
333,
17313,
733,
18,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7815,
12,
2890,
16,
619,
13101,
16,
677,
13101,
16,
619,
1978,
16,
677,
1978,
16,
702,
4672,
3536,
1436,
392,
12274,
598,
864,
7552,
3919,
358,
333,
17313,
733,
18,
2,
-100,
-100,... |
readlist = fileinfo[myfilehandle]['fobj'].readlines(*args) | try: readlist = fileinfo[myfilehandle]['fobj'].readlines(*args) except KeyError: raise ValueError("Invalid file object (probably closed).") | def readlines(self,*args): # prevent TOCTOU race with client changing my filehandle myfilehandle = self.filehandle restrictions.assertisallowed('file.readlines',*args) | 822c8eb85bfbea98d079fe696f6d57d97031ab7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/822c8eb85bfbea98d079fe696f6d57d97031ab7b/emulfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17546,
12,
2890,
16,
14,
1968,
4672,
468,
5309,
8493,
1268,
26556,
17996,
598,
1004,
12770,
3399,
585,
4110,
3399,
768,
4110,
273,
365,
18,
768,
4110,
17499,
18,
11231,
291,
8151,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17546,
12,
2890,
16,
14,
1968,
4672,
468,
5309,
8493,
1268,
26556,
17996,
598,
1004,
12770,
3399,
585,
4110,
3399,
768,
4110,
273,
365,
18,
768,
4110,
17499,
18,
11231,
291,
8151,
2668,
... |
We create a curve and a point over QQbar:: | We create a curve and a point over QQbar (see | def EllipticCurve(x=None, y=None, j=None): r""" There are several ways to construct an elliptic curve: .. math:: y^2 + a_1 xy + a_3 y = x^3 + a_2 x^2 + a_4 x + a_6. - EllipticCurve([a1,a2,a3,a4,a6]): Elliptic curve with given a-invariants. The invariants are coerced into the parent of the first element. If all are i... | 4f4b859014d732aca8a4a622165d9952e7b10a70 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/4f4b859014d732aca8a4a622165d9952e7b10a70/constructor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10426,
549,
21507,
9423,
12,
92,
33,
7036,
16,
677,
33,
7036,
16,
525,
33,
7036,
4672,
436,
8395,
6149,
854,
11392,
16226,
358,
4872,
392,
415,
549,
21507,
8882,
30,
225,
6116,
4233,
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,
10426,
549,
21507,
9423,
12,
92,
33,
7036,
16,
677,
33,
7036,
16,
525,
33,
7036,
4672,
436,
8395,
6149,
854,
11392,
16226,
358,
4872,
392,
415,
549,
21507,
8882,
30,
225,
6116,
4233,
2... |
def submitter_list(request, template_name='datagrid/datagrid.html'): | def submitter_list(request, template_name='reviews/datagrid.html'): | def submitter_list(request, template_name='datagrid/datagrid.html'): """ Displays a list of all users. """ return SubmitterDataGrid(request).render_to_response(template_name) | 6f4a0165391879a5d504e61e7331d7c6a1359d77 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/6f4a0165391879a5d504e61e7331d7c6a1359d77/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
387,
67,
1098,
12,
2293,
16,
1542,
67,
529,
2218,
266,
7061,
19,
3404,
22239,
18,
2620,
11,
4672,
3536,
9311,
87,
279,
666,
434,
777,
3677,
18,
3536,
327,
17320,
387,
751,
6313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4879,
387,
67,
1098,
12,
2293,
16,
1542,
67,
529,
2218,
266,
7061,
19,
3404,
22239,
18,
2620,
11,
4672,
3536,
9311,
87,
279,
666,
434,
777,
3677,
18,
3536,
327,
17320,
387,
751,
6313,
... |
if g.isAbsolute(): | if g.isAbsolute() or len(f.getPath()) == 0: | def join(path, *args): """Join two or more pathname components, inserting os.sep as needed""" f = File(path) for a in args: g = File(a) if g.isAbsolute(): f = g else: f = File(f, a) return f.getPath() | 4cd1e3bba25d73bc04f43d775102b030d037637f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/4cd1e3bba25d73bc04f43d775102b030d037637f/javapath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1233,
12,
803,
16,
380,
1968,
4672,
3536,
4572,
2795,
578,
1898,
9806,
4085,
16,
21079,
1140,
18,
10814,
487,
3577,
8395,
284,
273,
1387,
12,
803,
13,
364,
279,
316,
833,
30,
314,
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,
1233,
12,
803,
16,
380,
1968,
4672,
3536,
4572,
2795,
578,
1898,
9806,
4085,
16,
21079,
1140,
18,
10814,
487,
3577,
8395,
284,
273,
1387,
12,
803,
13,
364,
279,
316,
833,
30,
314,
273,... |
class GzipDecodedResponse(gzip.GzipFile): | class GzipDecodedResponse(gzip.GzipFile if gzip else object): | def gzip_decode(data): """gzip encoded data -> unencoded data Decode data using the gzip content encoding as described in RFC 1952 """ if not gzip: raise NotImplementedError f = BytesIO(data) gzf = gzip.GzipFile(mode="rb", fileobj=f) try: decoded = gzf.read() except IOError: raise ValueError("invalid data") f.close() ... | 9ab0731f76cf685bb9d8cfa41951a0fe1ab8ab43 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/9ab0731f76cf685bb9d8cfa41951a0fe1ab8ab43/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10331,
67,
3922,
12,
892,
4672,
3536,
17380,
3749,
501,
317,
640,
10787,
501,
225,
6209,
501,
1450,
326,
10331,
913,
2688,
487,
11893,
316,
8372,
5342,
9401,
3536,
309,
486,
10331,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10331,
67,
3922,
12,
892,
4672,
3536,
17380,
3749,
501,
317,
640,
10787,
501,
225,
6209,
501,
1450,
326,
10331,
913,
2688,
487,
11893,
316,
8372,
5342,
9401,
3536,
309,
486,
10331,
30,
1... |
flight_pos = re.sub(".[tT][xX][tT]$",".kml", flight_log_name) match = re.match(".log$",flight_log_name) | flight_pos = re.sub("\.[tT][xX][tT]$",".kml", flight_log_name) match = re.match("\.log$",flight_log_name) | def create_kmz(flight_log_dir,flight_log_name): flight_log = os.path.join(flight_log_dir, flight_log_name) match = re.match(".[tT][xX][tT]$",flight_log_name) # match a .txt file if match : #flight telelemetry file must end in .txt or .TXT for this to work flight_pos = re.sub(".[tT][xX][tT]$",".kml", flight_log_name) ma... | ffedcf48c142046974fd4ccb31a5aa8f25f4ddc5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6667/ffedcf48c142046974fd4ccb31a5aa8f25f4ddc5/uav_log_to_kml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
18353,
94,
12,
19131,
67,
1330,
67,
1214,
16,
19131,
67,
1330,
67,
529,
4672,
25187,
67,
1330,
273,
1140,
18,
803,
18,
5701,
12,
19131,
67,
1330,
67,
1214,
16,
25187,
67,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
18353,
94,
12,
19131,
67,
1330,
67,
1214,
16,
19131,
67,
1330,
67,
529,
4672,
25187,
67,
1330,
273,
1140,
18,
803,
18,
5701,
12,
19131,
67,
1330,
67,
1214,
16,
25187,
67,
13... |
if DEBUG: logger.debug("...removing from trash (%s)", self.trash.getItemDisplayName().encode('ascii', 'replace')) | def add(self, item): """ Add an item to the collection. """ if DEBUG: logger.debug("Adding %s to %s...", item.getItemDisplayName().encode('ascii', 'replace'), self.getItemDisplayName().encode('ascii', 'replace')) self.inclusions.add(item) | ffbafa2c10bbb63bff531dba7da53521f8e95bf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/ffbafa2c10bbb63bff531dba7da53521f8e95bf8/collections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
761,
4672,
3536,
1436,
392,
761,
358,
326,
1849,
18,
3536,
309,
6369,
30,
1194,
18,
4148,
2932,
13962,
738,
87,
358,
738,
87,
7070,
16,
761,
18,
588,
1180,
20524,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
761,
4672,
3536,
1436,
392,
761,
358,
326,
1849,
18,
3536,
309,
6369,
30,
1194,
18,
4148,
2932,
13962,
738,
87,
358,
738,
87,
7070,
16,
761,
18,
588,
1180,
20524,
... | |
command = 'tfreezer -r ' + self.username | command = 'tfreezer -d 3 -r ' + self.username global debug_level | def restore_external_tar(self): #CONNECT WITH THE SERVER if self.hostname == 'localhost': print _("Localhost external restoration not permitted to avoid loops") return roothome = pwd.getpwuid(0).pw_dir try: pkey = paramiko.DSSKey.from_private_key_file(roothome + '/'+ID_DSA_PATH,"") ssh = paramiko.SSHClient() try: ssh... | c1fca65b2e188e83381632c559cb70bb9b3433f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6139/c1fca65b2e188e83381632c559cb70bb9b3433f6/TFuser_frozen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
67,
9375,
67,
11718,
12,
2890,
4672,
468,
11032,
13601,
12786,
15061,
225,
309,
365,
18,
10358,
422,
296,
13014,
4278,
1172,
389,
2932,
2042,
2564,
3903,
3127,
22226,
486,
15498,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5217,
67,
9375,
67,
11718,
12,
2890,
4672,
468,
11032,
13601,
12786,
15061,
225,
309,
365,
18,
10358,
422,
296,
13014,
4278,
1172,
389,
2932,
2042,
2564,
3903,
3127,
22226,
486,
15498,
358... |
self.assert_(msg.get_sequences() == ['unseen', 'flagged']) | self.assertEqual(msg.get_sequences(), ['unseen', 'flagged']) | def test_sequences(self): # Get, set, join, and leave sequences msg = mailbox.MHMessage(_sample_message) self.assertEqual(msg.get_sequences(), []) msg.set_sequences(['foobar']) self.assertEqual(msg.get_sequences(), ['foobar']) msg.set_sequences([]) self.assertEqual(msg.get_sequences(), []) msg.add_sequence('unseen') se... | 7731c36bc6f787ca91b8429603fe004822f1f2d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/7731c36bc6f787ca91b8429603fe004822f1f2d8/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
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,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
... |
__version__)) | __version__), dir=os.environ.get('CALIBRE_TEMP_DIR', None)) | def base_dir(): global _base_dir if _base_dir is None: td = os.environ.get('CALIBRE_WORKER_TEMP_DIR', None) if td is not None: try: td = cPickle.loads(binascii.unhexlify(td)) except: td = None if td and os.path.exists(td): _base_dir = td else: _base_dir = tempfile.mkdtemp(prefix='%s_%s_tmp_'%(__appname__, __version__))... | 60558691303d249328a025a8fb30a6c4e58910cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/60558691303d249328a025a8fb30a6c4e58910cf/ptempfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
1214,
13332,
2552,
389,
1969,
67,
1214,
309,
389,
1969,
67,
1214,
353,
599,
30,
6655,
273,
1140,
18,
28684,
18,
588,
2668,
7913,
13450,
862,
67,
10566,
654,
67,
10258,
67,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
1214,
13332,
2552,
389,
1969,
67,
1214,
309,
389,
1969,
67,
1214,
353,
599,
30,
6655,
273,
1140,
18,
28684,
18,
588,
2668,
7913,
13450,
862,
67,
10566,
654,
67,
10258,
67,
45... |
context.move_to(pixxFM_left + 1, pixyFM_left + pixyFADEMARKER_HEIGHT - 1) | context.move_to(pixxFM_left + 1, pixyFM_left + self._PIXY_FADEMARKER_HEIGHT - 1) | def OnDraw(self, widget, event): """ This function blits the waveform data onto the screen, and then draws the play cursor over it. """ c = self.cachedDrawArea e = event.area #check if the expose area is within the already cached rectangle if e.x < c.x or (e.x + e.width > c.x + c.width) or self.redrawWaveform: self.Dr... | e365371eaeb7fba1c7c274012de019f596548adb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e365371eaeb7fba1c7c274012de019f596548adb/EventViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
6493,
12,
2890,
16,
3604,
16,
871,
4672,
3536,
1220,
445,
2811,
1282,
326,
31511,
501,
10170,
326,
5518,
16,
471,
1508,
30013,
326,
6599,
3347,
1879,
518,
18,
3536,
276,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
6493,
12,
2890,
16,
3604,
16,
871,
4672,
3536,
1220,
445,
2811,
1282,
326,
31511,
501,
10170,
326,
5518,
16,
471,
1508,
30013,
326,
6599,
3347,
1879,
518,
18,
3536,
276,
273,
365,
... |
eval("%s(%s)" % (colType.__name__, header[col])) except: | colType(header[col]) except ValueError, TypeError: | def seval(item): """ Strips parens from item prior to calling eval in an attempt to make it safer """ return eval(item.replace('(', '').replace(')', '')) | 6ea653a6b2a8bbfc133116d87ed74132f74ed63f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6ea653a6b2a8bbfc133116d87ed74132f74ed63f/csv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
695,
1125,
12,
1726,
4672,
3536,
3978,
7146,
30821,
628,
761,
6432,
358,
4440,
5302,
316,
392,
4395,
358,
1221,
518,
7864,
586,
3536,
327,
5302,
12,
1726,
18,
2079,
2668,
12,
2187,
875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
695,
1125,
12,
1726,
4672,
3536,
3978,
7146,
30821,
628,
761,
6432,
358,
4440,
5302,
316,
392,
4395,
358,
1221,
518,
7864,
586,
3536,
327,
5302,
12,
1726,
18,
2079,
2668,
12,
2187,
875,
... |
errorWindow(_(callback(e))) | errorWindow(callback(e)) | def handle_gui_exception(e, callback, logMsg = None, showMsg = True): if logMsg: log.error(logMsg) log.exception(e) if showMsg: if isinstance(e, socket_error): errorWindow(_('network error, unable to connect to server')) elif isinstance(e, SSL.SSLError): errorWindow(_('Unable to verify server\'s identity: %s' % str(e)... | 03630209bf66698f2290e925c11809c0bbbe676b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/03630209bf66698f2290e925c11809c0bbbe676b/managergui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
20292,
67,
4064,
12,
73,
16,
1348,
16,
613,
3332,
273,
599,
16,
2405,
3332,
273,
1053,
4672,
309,
613,
3332,
30,
613,
18,
1636,
12,
1330,
3332,
13,
613,
18,
4064,
12,
73,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20292,
67,
4064,
12,
73,
16,
1348,
16,
613,
3332,
273,
599,
16,
2405,
3332,
273,
1053,
4672,
309,
613,
3332,
30,
613,
18,
1636,
12,
1330,
3332,
13,
613,
18,
4064,
12,
73,
... |
PACKAGE_BLOCK = LCURL + ZeroOrMore( IMPORT_DEFINITION ^ BASE_BLOCK ^ CLASS_DEFINITION ^ INTERFACE_DEFINITION) + RCURL PACKAGE_DEFINITION = PACKAGE + Optional( QUALIFIED_IDENTIFIER ) + PACKAGE_BLOCK PROGRAM = ZeroOrMore( COMMENTS ^ PACKAGE_DEFINITION ) | PACKAGE_BLOCK = LCURL + ZeroOrMore( IMPORT_DEFINITION ^ BASE_BLOCK ) + (CLASS_DEFINITION ^ INTERFACE_DEFINITION) + RCURL PACKAGE_DEFINITION = (PACKAGE + Optional( QUALIFIED_IDENTIFIER("name") ) ).setParseAction(parseASPackage) + PACKAGE_BLOCK PROGRAM = ZeroOrMore( COMMENTS ) + PACKAGE_DEFINITION | def locate(pattern, root=os.getcwd()): for path, dirs, files in os.walk(root): for filename in [os.path.abspath(os.path.join(path, filename)) for filename in files if fnmatch.fnmatch(filename, pattern)]: yield filename | bb9f063b2a1938147bc2fabe31d90194b87492bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/886/bb9f063b2a1938147bc2fabe31d90194b87492bf/asGrammar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10627,
12,
4951,
16,
1365,
33,
538,
18,
588,
11089,
1435,
4672,
364,
589,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
3085,
4672,
364,
1544,
316,
306,
538,
18,
803,
18,
5113,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10627,
12,
4951,
16,
1365,
33,
538,
18,
588,
11089,
1435,
4672,
364,
589,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
3085,
4672,
364,
1544,
316,
306,
538,
18,
803,
18,
5113,
803,
... |
print( '%s\t%s' % (domain_to_scan, ifcmgkernel_scan_url( domain_to_scan ) ) ) | print( '%s\t%s' % (ifcmgkernel_scan_url( domain_to_scan ), domain_to_scan ) ) | def spider_on_url( domain_to_scan, pages_to_scan, verbose ): if pages_to_scan == 0: print( '%s\t%s' % (domain_to_scan, ifcmgkernel_scan_url( domain_to_scan ) ) ) else: s = Spider(domain_to_scan, pages_to_scan ) while s.done == False: r = s.run() if r is not None: if verbose: print r else: print '%d\t%s' % ( r.category,... | 7811a32811f22745ac5347d81f5f408e49452c94 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4021/7811a32811f22745ac5347d81f5f408e49452c94/ifcmgtool_spider.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28022,
67,
265,
67,
718,
12,
2461,
67,
869,
67,
9871,
16,
4689,
67,
869,
67,
9871,
16,
3988,
262,
30,
309,
4689,
67,
869,
67,
9871,
422,
374,
30,
1172,
12,
1995,
87,
64,
88,
9,
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,
28022,
67,
265,
67,
718,
12,
2461,
67,
869,
67,
9871,
16,
4689,
67,
869,
67,
9871,
16,
3988,
262,
30,
309,
4689,
67,
869,
67,
9871,
422,
374,
30,
1172,
12,
1995,
87,
64,
88,
9,
8... |
return self.cursor.execute("SELECT MAX(ROWID) FROM %s" % self.dbtablename).fetchone()[0] | self.cursor.execute("SELECT MAX(ROWID) FROM %s" % self.dbtablename) return self.cursor.fetchone()[0] | def maxrowid(self): return self.cursor.execute("SELECT MAX(ROWID) FROM %s" % self.dbtablename).fetchone()[0] | b8545b74150cfe31e029f12509877cab82e33719 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/b8545b74150cfe31e029f12509877cab82e33719/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
492,
350,
12,
2890,
4672,
327,
365,
18,
9216,
18,
8837,
2932,
4803,
4552,
12,
11226,
734,
13,
4571,
738,
87,
6,
738,
365,
18,
1966,
7032,
14724,
2934,
5754,
476,
1435,
63,
20,
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,
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,
943,
492,
350,
12,
2890,
4672,
327,
365,
18,
9216,
18,
8837,
2932,
4803,
4552,
12,
11226,
734,
13,
4571,
738,
87,
6,
738,
365,
18,
1966,
7032,
14724,
2934,
5754,
476,
1435,
63,
20,
6... |
""" % ("LK%d (%s)" % (idx, k['key']), k['desc'], authors) | """ % ("LK%d (%s)" % (idx, k['key']), authors, k['desc']) | def gencode(k): idx = k['idx'] df = codepat % idx print "Generating %s..." % df f = file(df,'w') print >>f, """ | 7eb95f11b60100968c8a402cf6878cdc6303147c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3118/7eb95f11b60100968c8a402cf6878cdc6303147c/ll-generate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
3015,
12,
79,
4672,
2067,
273,
417,
3292,
3465,
3546,
3013,
273,
981,
16330,
738,
2067,
1172,
315,
21755,
738,
87,
7070,
738,
3013,
284,
273,
585,
12,
2180,
11189,
91,
6134,
1172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
3015,
12,
79,
4672,
2067,
273,
417,
3292,
3465,
3546,
3013,
273,
981,
16330,
738,
2067,
1172,
315,
21755,
738,
87,
7070,
738,
3013,
284,
273,
585,
12,
2180,
11189,
91,
6134,
1172,
... |
if default!=None and str(default) != 'django.db.models.fields.NOT_PROVIDED': output.extend( self.get_add_column_sql( table_name, col_name, col_type, True, unique, primary_key, default ) ) output.extend( [ self.style.SQL_KEYWORD('UPDATE'), self.style.SQL_TABLE(self.connection.ops.quote_name(table_name)), self.style.SQ... | if default==None or str(default) == 'django.db.models.fields.NOT_PROVIDED': default = '' output.extend( self.get_add_column_sql( table_name, col_name, col_type, True, unique, primary_key, default ) ) output.append( ' '.join( [ self.style.SQL_KEYWORD('UPDATE'), self.style.SQL_TABLE(self.connection.ops.quote_name(table... | def get_add_column_sql( self, table_name, col_name, col_type, null, unique, primary_key, f_default ): output = [] field_output = [] if not null: if default!=None and str(default) != 'django.db.models.fields.NOT_PROVIDED': # since we can't add a null column and then change it after we've set all the default values, # ad... | 752a5180af1947be683ecae3a679becba2f396b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8472/752a5180af1947be683ecae3a679becba2f396b1/sqlite3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1289,
67,
2827,
67,
4669,
12,
365,
16,
1014,
67,
529,
16,
645,
67,
529,
16,
645,
67,
723,
16,
446,
16,
3089,
16,
3354,
67,
856,
16,
284,
67,
1886,
262,
30,
876,
273,
537... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
1289,
67,
2827,
67,
4669,
12,
365,
16,
1014,
67,
529,
16,
645,
67,
529,
16,
645,
67,
723,
16,
446,
16,
3089,
16,
3354,
67,
856,
16,
284,
67,
1886,
262,
30,
876,
273,
537... |
for i in range(len(document.body)): document.body[i] = document.body[i].replace('\\newpage', '\\begin_inset Newpage newpage\n\\end_inset') document.body[i] = document.body[i].replace('\\pagebreak', '\\begin_inset Newpage pagebreak\n\\end_inset') document.body[i] = document.body[i].replace('\\clearpage', '\\begin_inset ... | i = 0 while True: i = find_token(document.body, '\\newpage', i) if i == -1: break document.body[i:i+1] = ['\\begin_inset Newpage newpage', '\\end_inset'] i = 0 while True: i = find_token(document.body, '\\pagebreak', i) if i == -1: break document.body[i:i+1] = ['\\begin_inset Newpage pagebreak', '\\end_inset'] i = 0 wh... | def convert_pagebreaks(document): ' Convert inline Newpage insets to new format ' for i in range(len(document.body)): document.body[i] = document.body[i].replace('\\newpage', '\\begin_inset Newpage newpage\n\\end_inset') document.body[i] = document.body[i].replace('\\pagebreak', '\\begin_inset Newpage pagebreak\n\\end_... | e8ffafef998e17f0024b9646dc6adfde3af7ce03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/e8ffafef998e17f0024b9646dc6adfde3af7ce03/lyx_1_6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
2433,
29292,
12,
5457,
4672,
296,
4037,
6370,
1166,
2433,
23576,
358,
394,
740,
296,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
2433,
29292,
12,
5457,
4672,
296,
4037,
6370,
1166,
2433,
23576,
358,
394,
740,
296,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
27... |
cmd = Popen(run, shell=True, universal_newlines=True, | shell = platform.system() == 'Windows' cmd = Popen(run, shell=shell, universal_newlines=True, | def _compile(self, debug=False): run = ['sass', '-C', '-t', 'expanded', '-E', 'utf-8'] if debug: run.append('--line-numbers') if SASS_DEBUG_INFO: run.append('--debug-info') run.extend(self.path_args) cmd = Popen(run, shell=True, universal_newlines=True, stdin=PIPE, stdout=PIPE, stderr=PIPE) output, error = cmd.communic... | 3d924e0f5eae548af5cf2552e16c5da038ff31f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11828/3d924e0f5eae548af5cf2552e16c5da038ff31f2/sass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11100,
12,
2890,
16,
1198,
33,
8381,
4672,
1086,
273,
10228,
87,
428,
2187,
2400,
39,
2187,
2400,
88,
2187,
296,
17336,
2187,
2400,
41,
2187,
296,
3158,
17,
28,
3546,
309,
1198,
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,
389,
11100,
12,
2890,
16,
1198,
33,
8381,
4672,
1086,
273,
10228,
87,
428,
2187,
2400,
39,
2187,
2400,
88,
2187,
296,
17336,
2187,
2400,
41,
2187,
296,
3158,
17,
28,
3546,
309,
1198,
3... |
self.args['command'].append("port=%s"%(self.args['port'])) | self.args['command'].append("port=%s"%(self.args['port'])) if self.args['netport']: self.args['command'].append("net_port=%s"%(self.args['netport'])) | def start(self): self.args['command']=["make","drop-db"] if self.args['dbname']: self.args['command'].append("database=%s"%(self.args['dbname'])) if self.args['port']: self.args['command'].append("port=%s"%(self.args['port'])) cmd = LoggedRemoteCommand("shell",self.args) self.startCommand(cmd) | b7db641b141dca8b63d6ec23f4f477a0d6c864a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12355/b7db641b141dca8b63d6ec23f4f477a0d6c864a3/buildstep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
365,
18,
1968,
3292,
3076,
3546,
33,
9614,
6540,
15937,
7285,
17,
1966,
11929,
309,
365,
18,
1968,
3292,
20979,
3546,
30,
365,
18,
1968,
3292,
3076,
29489,
6923,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
365,
18,
1968,
3292,
3076,
3546,
33,
9614,
6540,
15937,
7285,
17,
1966,
11929,
309,
365,
18,
1968,
3292,
20979,
3546,
30,
365,
18,
1968,
3292,
3076,
29489,
6923,
293... |
arch.set_promisc(self.ins, i, 0) | set_promisc(self.ins, i, 0) | def close(self): if self.closed: return self.closed=1 if self.promisc: for i in self.iff: arch.set_promisc(self.ins, i, 0) SuperSocket.close(self) | 14c74c45cca1c3048391b67bd41fd3df4f699bde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7311/14c74c45cca1c3048391b67bd41fd3df4f699bde/linux.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
365,
18,
12204,
30,
327,
365,
18,
12204,
33,
21,
309,
365,
18,
17401,
291,
71,
30,
364,
277,
316,
365,
18,
3048,
30,
444,
67,
17401,
291,
71,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
365,
18,
12204,
30,
327,
365,
18,
12204,
33,
21,
309,
365,
18,
17401,
291,
71,
30,
364,
277,
316,
365,
18,
3048,
30,
444,
67,
17401,
291,
71,
12,
2890,
1... |
walname = self.last_restart_point(srcname) | if lstname == None: lstname = self.last_restart_point(srcname) self.log.debug("calculated restart point: %s" % lstname) else: self.log.debug("using supplied restart point: %s" % lstname) | def slave_xrestore_unsafe(self, srcname, dstpath, parent_pid): srcdir = self.cf.get("completed_wals") partdir = self.cf.get("partial_wals") pausefile = os.path.join(srcdir, "PAUSE") stopfile = os.path.join(srcdir, "STOP") prgrfile = os.path.join(srcdir, "PROGRESS") srcfile = os.path.join(srcdir, srcname) partfile = os.... | 5c30a274a6945a32dc53e7725ba74053bda74e5e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14597/5c30a274a6945a32dc53e7725ba74053bda74e5e/walmgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11735,
67,
92,
13991,
67,
318,
4626,
12,
2890,
16,
1705,
529,
16,
3046,
803,
16,
982,
67,
6610,
4672,
1705,
1214,
273,
365,
18,
8522,
18,
588,
2932,
13615,
67,
91,
1031,
7923,
1087,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11735,
67,
92,
13991,
67,
318,
4626,
12,
2890,
16,
1705,
529,
16,
3046,
803,
16,
982,
67,
6610,
4672,
1705,
1214,
273,
365,
18,
8522,
18,
588,
2932,
13615,
67,
91,
1031,
7923,
1087,
... |
if 0 and isinstance(mod, model.Module) and fromname in mod.contents: | if isinstance(mod, model.Module) and fromname in mod.contents: | def visitFrom(self, node): modname = self.builder.expandModname(node.modname) name2fullname = self.builder.current._name2fullname for fromname, asname in node.names: if fromname == '*': self.builder.warning("import *", modname) if modname not in self.system.allobjects: return mod = self.system.allobjects[modname] if is... | 9bb3a6288d25e47112367fa143fd703418bbf415 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5471/9bb3a6288d25e47112367fa143fd703418bbf415/astbuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
1265,
12,
2890,
16,
756,
4672,
16037,
273,
365,
18,
9574,
18,
12320,
1739,
529,
12,
2159,
18,
1711,
529,
13,
508,
22,
21885,
273,
365,
18,
9574,
18,
2972,
6315,
529,
22,
21885,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
1265,
12,
2890,
16,
756,
4672,
16037,
273,
365,
18,
9574,
18,
12320,
1739,
529,
12,
2159,
18,
1711,
529,
13,
508,
22,
21885,
273,
365,
18,
9574,
18,
2972,
6315,
529,
22,
21885,
... |
tokentype, token, start, end, line = g.next() | tokentype, token = g.next()[0:2] | def _getname(g): # Helper to get a dotted name, return a pair (name, token) where # name is the dotted name, or None if there was no dotted name, # and token is the next input token. parts = [] tokentype, token, start, end, line = g.next() if tokentype != NAME and token != '*': return (None, token) parts.append(token) ... | 63d2bd0c0f14b0ec86d5455858d3bf941cb273f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/63d2bd0c0f14b0ec86d5455858d3bf941cb273f5/pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
529,
12,
75,
4672,
468,
9705,
358,
336,
279,
20965,
508,
16,
327,
279,
3082,
261,
529,
16,
1147,
13,
1625,
468,
508,
353,
326,
20965,
508,
16,
578,
599,
309,
1915,
1703,
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,
389,
588,
529,
12,
75,
4672,
468,
9705,
358,
336,
279,
20965,
508,
16,
327,
279,
3082,
261,
529,
16,
1147,
13,
1625,
468,
508,
353,
326,
20965,
508,
16,
578,
599,
309,
1915,
1703,
11... |
""" | """ | def _child_compute(self, cr, uid, ids, name, arg, context={}): """ @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param ids: the ID of mrp.production object @param name: @param arg: | e3cd823031c382369be6fdc654dc96aea91a478c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e3cd823031c382369be6fdc654dc96aea91a478c/mrp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
9200,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
3536,
632,
891,
365,
30,
1021,
733,
4407,
18,
632,
891,
4422,
30,
432,
2063,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3624,
67,
9200,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
3536,
632,
891,
365,
30,
1021,
733,
4407,
18,
632,
891,
4422,
30,
432,
2063,
334... |
class SessionGenerator(Asynchronizer, Exceptionable): | class SessionGenerator(_Asynchronizer, _Exceptionable): | def __checkResponseStatus(self, xml_dom): """Checks the response for errors and raises one if any exists.""" doc = xml_dom e = doc.getElementsByTagName('lfm')[0] if e.getAttribute('status') == STATUS_OK: return STATUS_OK else: e = doc.getElementsByTagName('error')[0] status = e.getAttribute('code') details = e.firstC... | 903c9b1622fe56617e5099f20abdc69f2090f8e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/903c9b1622fe56617e5099f20abdc69f2090f8e0/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
1064,
1482,
12,
2890,
16,
2025,
67,
9859,
4672,
3536,
4081,
326,
766,
364,
1334,
471,
14183,
1245,
309,
1281,
1704,
12123,
225,
997,
273,
2025,
67,
9859,
425,
273,
997,
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,
1001,
1893,
1064,
1482,
12,
2890,
16,
2025,
67,
9859,
4672,
3536,
4081,
326,
766,
364,
1334,
471,
14183,
1245,
309,
1281,
1704,
12123,
225,
997,
273,
2025,
67,
9859,
425,
273,
997,
18,
... |
_fl_addto_selected_xevent = cfuncproto(so_libforms, "fl_addto_selected_xevent", cty.c_long, [Window, cty.c_long], | _fl_addto_selected_xevent = cfuncproto(so_libforms, "fl_addto_selected_xevent", cty.c_long, [Window, cty.c_long], | def fl_set_idle_callback(py_callback, user_data): """ fl_set_idle_callback(py_callback, user_data) -> event callback """ c_callback = FL_APPEVENT_CB(py_callback) _cfunc_refs[get_rand_dictkey()] = c_callback retval = _fl_set_idle_callback(c_callback, user_data) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
20390,
67,
3394,
12,
2074,
67,
3394,
16,
729,
67,
892,
4672,
3536,
1183,
67,
542,
67,
20390,
67,
3394,
12,
2074,
67,
3394,
16,
729,
67,
892,
13,
317,
871,
1348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
20390,
67,
3394,
12,
2074,
67,
3394,
16,
729,
67,
892,
4672,
3536,
1183,
67,
542,
67,
20390,
67,
3394,
12,
2074,
67,
3394,
16,
729,
67,
892,
13,
317,
871,
1348,
... |
def _err(f): | def _err(fail): | def _err(f): f.close() os.unlink(tmpfile.path) return f | aa24aef849a0b055d35c79338e0d3deb78d86971 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13646/aa24aef849a0b055d35c79338e0d3deb78d86971/services.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
370,
12,
6870,
4672,
284,
18,
4412,
1435,
1140,
18,
318,
1232,
12,
5645,
768,
18,
803,
13,
327,
284,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
370,
12,
6870,
4672,
284,
18,
4412,
1435,
1140,
18,
318,
1232,
12,
5645,
768,
18,
803,
13,
327,
284,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
res = self.checkArgumentFormat(path) | res = self.checkArgumentFormat( path ) | def getFile(self,path,localPath=False): """ Get a local copy in the current directory of a physical file specified by its path """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
12,
2890,
16,
803,
16,
3729,
743,
33,
8381,
4672,
3536,
968,
279,
1191,
1610,
316,
326,
783,
1867,
434,
279,
11640,
585,
1269,
635,
2097,
589,
3536,
400,
273,
365,
18,
1893,
1379... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6034,
12,
2890,
16,
803,
16,
3729,
743,
33,
8381,
4672,
3536,
968,
279,
1191,
1610,
316,
326,
783,
1867,
434,
279,
11640,
585,
1269,
635,
2097,
589,
3536,
400,
273,
365,
18,
1893,
1379... |
b.pack(side = TOP) | b.pack(side=TOP) | def build_tools(self): tframe = self.tframe canvas = self.canvas fr=TFrame(tframe, style='FlatFrame', borderwidth=12) fr.pack(side = TOP, fill = X) label = TLabel(fr, style='FlatLabel') label.pack(side = TOP, fill = X) label = TLabel(tframe, style='HLine') label.pack(side = TOP, fill = X) | 5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
6642,
12,
2890,
4672,
3253,
1474,
273,
365,
18,
88,
3789,
5953,
273,
365,
18,
15424,
225,
3812,
33,
56,
3219,
12,
88,
3789,
16,
2154,
2218,
16384,
3219,
2187,
5795,
2819,
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,
1361,
67,
6642,
12,
2890,
4672,
3253,
1474,
273,
365,
18,
88,
3789,
5953,
273,
365,
18,
15424,
225,
3812,
33,
56,
3219,
12,
88,
3789,
16,
2154,
2218,
16384,
3219,
2187,
5795,
2819,
33,... |
''' | """ | def view_check(self): ''' Raise the Unauthorised exception if the user's not permitted to view this class. ''' if not self.is_view_ok(): raise Unauthorised("view", self._classname, translator=self._client.translator) | 16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
67,
1893,
12,
2890,
4672,
3536,
20539,
326,
1351,
4161,
5918,
1520,
309,
326,
729,
1807,
486,
15498,
358,
1476,
333,
667,
18,
3536,
309,
486,
365,
18,
291,
67,
1945,
67,
601,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1476,
67,
1893,
12,
2890,
4672,
3536,
20539,
326,
1351,
4161,
5918,
1520,
309,
326,
729,
1807,
486,
15498,
358,
1476,
333,
667,
18,
3536,
309,
486,
365,
18,
291,
67,
1945,
67,
601,
133... |
'wrapper': ConditionalTalesModifier, | 'wrapper': ConditionalModifier, | def afterRetrieveModifier(self, obj, repo_clone, preserve=()): """If we find any LargeFilePlaceHolders, replace them with the values from the current working copy. If the values are missing from the working copy, remove them from the retrieved object.""" # Search for fields stored via AnnotationStorage annotations = g... | b94a74b17dc5f9c6f32e3160f727174152d8b0a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11952/b94a74b17dc5f9c6f32e3160f727174152d8b0a2/StandardModifiers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
5767,
9829,
12,
2890,
16,
1081,
16,
3538,
67,
14056,
16,
9420,
33,
1435,
4672,
3536,
2047,
732,
1104,
1281,
16236,
908,
812,
6029,
27003,
16,
1453,
2182,
598,
326,
924,
628,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1839,
5767,
9829,
12,
2890,
16,
1081,
16,
3538,
67,
14056,
16,
9420,
33,
1435,
4672,
3536,
2047,
732,
1104,
1281,
16236,
908,
812,
6029,
27003,
16,
1453,
2182,
598,
326,
924,
628,
326,
... |
sent_to_link += '<a href="write?msg_to=%s&ln=%s">%s</a>'% (to, ln, to_display) | sent_to_link += '<a href="write?msg_to=%s&ln=%s">%s</a>'% (to, ln, cgi.escape(to_display)) | def tmpl_display_msg(self, msg_id="", msg_from_id="", msg_from_nickname="", msg_sent_to="", msg_sent_to_group="", msg_subject="", msg_body="", msg_sent_date="", msg_received_date=datetext_default, ln=cdslang): """ Displays a given message @param msg_id: id of the message @param msg_from_id: id of user who sent the mess... | a8deb2f53ded0267fd0976f6b7e5c5db401c5b0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2876/a8deb2f53ded0267fd0976f6b7e5c5db401c5b0b/webmessage_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
5417,
67,
3576,
12,
2890,
16,
1234,
67,
350,
1546,
3113,
1234,
67,
2080,
67,
350,
1546,
3113,
1234,
67,
2080,
67,
17091,
529,
1546,
3113,
1234,
67,
7569,
67,
869,
1546,
3113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
5417,
67,
3576,
12,
2890,
16,
1234,
67,
350,
1546,
3113,
1234,
67,
2080,
67,
350,
1546,
3113,
1234,
67,
2080,
67,
17091,
529,
1546,
3113,
1234,
67,
7569,
67,
869,
1546,
3113... |
anAttribute = self.theSimulator.getEntityPropertyAttributes(aFullPN) | anAttributeList = self.theSimulator.getEntityPropertyAttributes(aFullPN) | def __savePropertyList( self, anEml, anEntityTypeString,\ aSystemPath, anIDList ): | 1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67/Session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5688,
1396,
682,
12,
365,
16,
392,
41,
781,
16,
392,
22562,
780,
17211,
279,
3163,
743,
16,
392,
24583,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
5688,
1396,
682,
12,
365,
16,
392,
41,
781,
16,
392,
22562,
780,
17211,
279,
3163,
743,
16,
392,
24583,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
sub_key = OpenKey(key, "sub_key", 0, KEY_ALL_ACCESS) | sub_key = OpenKey(key, subkeystr, 0, KEY_ALL_ACCESS) | def DeleteTestData(self, root_key): key = OpenKey(root_key, test_key_name, 0, KEY_ALL_ACCESS) sub_key = OpenKey(key, "sub_key", 0, KEY_ALL_ACCESS) # It is not necessary to delete the values before deleting # the key (although subkeys must not exist). We delete them # manually just to prove we can :-) for value_name, v... | f82d9b52fae475a132a21d1b7174730f17b735de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f82d9b52fae475a132a21d1b7174730f17b735de/test_winreg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2504,
4709,
751,
12,
2890,
16,
1365,
67,
856,
4672,
498,
273,
3502,
653,
12,
3085,
67,
856,
16,
1842,
67,
856,
67,
529,
16,
374,
16,
5311,
67,
4685,
67,
13204,
13,
720,
67,
856,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2504,
4709,
751,
12,
2890,
16,
1365,
67,
856,
4672,
498,
273,
3502,
653,
12,
3085,
67,
856,
16,
1842,
67,
856,
67,
529,
16,
374,
16,
5311,
67,
4685,
67,
13204,
13,
720,
67,
856,
27... |
self.dragState.HandleDragEnd(runHandler=False) self.dragState = None | def OnMouseEvent(self, event): """ Handles mouse events, calls overridable methods related to: 1. Selecting an item 2. Dragging/moving an item 3. Resizing an item """ # ignore entering and leaving events if (event.Entering() or event.Leaving()): event.Skip() return | 90692531d20746f1b2f4c14b6b5de2355c7412cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/90692531d20746f1b2f4c14b6b5de2355c7412cd/CollectionCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
9186,
1133,
12,
2890,
16,
871,
4672,
3536,
27020,
7644,
2641,
16,
4097,
5713,
27621,
2590,
3746,
358,
30,
404,
18,
6766,
310,
392,
761,
576,
18,
28425,
1998,
19,
81,
13767,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
9186,
1133,
12,
2890,
16,
871,
4672,
3536,
27020,
7644,
2641,
16,
4097,
5713,
27621,
2590,
3746,
358,
30,
404,
18,
6766,
310,
392,
761,
576,
18,
28425,
1998,
19,
81,
13767,
392,
... | |
print sys.stderr, "WARNING: PPrinter bug. Is theano ticket | def __call__(self, *args): print sys.stderr, "WARNING: PPrinter bug. Is theano ticket #249 fixed yet?" if len(args) == 1: return self.process(*args) elif len(args) == 2 and isinstance(args[1], (PrinterState, dict)): return self.process(*args) elif len(args) > 2: return self.process_graph(*args) else: raise TypeError('N... | c0b770a152441710858c6e5a17d44c09de724fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/c0b770a152441710858c6e5a17d44c09de724fd4/printing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
4672,
468,
3247,
29,
5499,
4671,
7225,
309,
562,
12,
1968,
13,
422,
404,
30,
327,
365,
18,
2567,
30857,
1968,
13,
1327,
562,
12,
1968,
13,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
16,
380,
1968,
4672,
468,
3247,
29,
5499,
4671,
7225,
309,
562,
12,
1968,
13,
422,
404,
30,
327,
365,
18,
2567,
30857,
1968,
13,
1327,
562,
12,
1968,
13,
4... | |
- ``k`` -- an integer - ``prec`` -- (default: 10) a positive integer - ``cusp_only`` -- bool (default: False) - ``var`` -- string (default: 'q' | - ``k`` -- an integer - ``prec`` -- (default: 10) a positive integer - ``cusp_only`` -- bool (default: False) - ``var`` -- string (default: 'q' | def victor_miller_basis(k, prec=10, cusp_only=False, var='q'): r""" Compute and return the Victor-Miller basis for modular forms of weight k and level 1 to precision $O(q^prec)$. if ``cusp_only`` is True, return only a basis for the cuspidal subspace. INPUT: - ``k`` -- an integer - ``prec`` -- (default: 10) a posit... | 2321956881b47b95cdccb07d5eb127ed8d839f8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2321956881b47b95cdccb07d5eb127ed8d839f8c/vm_basis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28873,
280,
67,
81,
24462,
67,
23774,
12,
79,
16,
13382,
33,
2163,
16,
27964,
84,
67,
3700,
33,
8381,
16,
569,
2218,
85,
11,
4672,
436,
8395,
8155,
471,
327,
326,
776,
933,
280,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28873,
280,
67,
81,
24462,
67,
23774,
12,
79,
16,
13382,
33,
2163,
16,
27964,
84,
67,
3700,
33,
8381,
16,
569,
2218,
85,
11,
4672,
436,
8395,
8155,
471,
327,
326,
776,
933,
280,
17,
... |
html.write("<tr class=form><td class=whiteborder colspan=%d>" % colspan) | html.write("<tr class=form><td class=whiteborder>") | def show_view(view, show_heading = False, show_buttons = True, show_footer = True): # Parse display options display_options = html.var("display_options", "") # assume all missing options as active (upper case) for c in "HTBFCEOZRSIX": if c not in display_options and c.lower() not in display_options: display_options += ... | 5988dc68b2c4439ac451c483e6643ca4800ad36f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/5988dc68b2c4439ac451c483e6643ca4800ad36f/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1945,
12,
1945,
16,
2405,
67,
19948,
273,
1083,
16,
2405,
67,
16016,
273,
1053,
16,
2405,
67,
14723,
273,
1053,
4672,
468,
2884,
2562,
702,
2562,
67,
2116,
273,
1729,
18,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2405,
67,
1945,
12,
1945,
16,
2405,
67,
19948,
273,
1083,
16,
2405,
67,
16016,
273,
1053,
16,
2405,
67,
14723,
273,
1053,
4672,
468,
2884,
2562,
702,
2562,
67,
2116,
273,
1729,
18,
140... |
if e.errno == errno.ECHILD: return | def wait(self, child_pid): """Wait for child_pid to finish, ignoring EINTR.""" while True: try: os.waitpid(child_pid, 0) return except OSError as e: if e.errno == errno.ECHILD: return if e.errno != errno.EINTR: raise | b0b24642f4bc7647e209adcba4b1fc8348302f3d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/b0b24642f4bc7647e209adcba4b1fc8348302f3d/test_signal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
12,
2890,
16,
1151,
67,
6610,
4672,
3536,
5480,
364,
1151,
67,
6610,
358,
4076,
16,
14398,
512,
3217,
54,
12123,
1323,
1053,
30,
775,
30,
1140,
18,
7048,
6610,
12,
3624,
67,
6610... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2529,
12,
2890,
16,
1151,
67,
6610,
4672,
3536,
5480,
364,
1151,
67,
6610,
358,
4076,
16,
14398,
512,
3217,
54,
12123,
1323,
1053,
30,
775,
30,
1140,
18,
7048,
6610,
12,
3624,
67,
6610... | |
[Fractional ideal (7/2*a - 81/2), | [Fractional ideal (-a), Fractional ideal (7/2*a - 81/2), | def kodaira_symbol(self, P, proof = None): r""" Returns the Kodaira Symbol of this elliptic curve at the prime `P`. | c60d7dbafd779fe009a5246532e3a8695cf3cce8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c60d7dbafd779fe009a5246532e3a8695cf3cce8/ell_number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
417,
369,
10658,
354,
67,
7175,
12,
2890,
16,
453,
16,
14601,
273,
599,
4672,
436,
8395,
2860,
326,
1475,
369,
10658,
354,
8565,
434,
333,
415,
549,
21507,
8882,
622,
326,
17014,
1375,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
417,
369,
10658,
354,
67,
7175,
12,
2890,
16,
453,
16,
14601,
273,
599,
4672,
436,
8395,
2860,
326,
1475,
369,
10658,
354,
8565,
434,
333,
415,
549,
21507,
8882,
622,
326,
17014,
1375,
... |
model.PackageListing.id).execute().rowcount | model.PackageListing.id).execute().rowcount | def index(self): if identity.current.anonymous: own = 'need to be logged in' else: own = model.PackageListing.query.filter_by(owner=fasid).count() # most packages owned in DEVEL collection top_owners_select = sqlalchemy.select( [func.count(model.PackageListing.owner).label('numpkgs'), model.PackageListing.owner], and_... | 9632e88aef7435300565e923e2057e435e2b7f8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/9632e88aef7435300565e923e2057e435e2b7f8d/stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2890,
4672,
309,
4215,
18,
2972,
18,
19070,
30,
4953,
273,
296,
14891,
358,
506,
7545,
316,
11,
469,
30,
4953,
273,
938,
18,
2261,
19081,
18,
2271,
18,
2188,
67,
1637,
12,
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,
770,
12,
2890,
4672,
309,
4215,
18,
2972,
18,
19070,
30,
4953,
273,
296,
14891,
358,
506,
7545,
316,
11,
469,
30,
4953,
273,
938,
18,
2261,
19081,
18,
2271,
18,
2188,
67,
1637,
12,
8... |
PsynthLabelString = 'Psynth: %+.3f' % self.dicts[self.stPt]['Pres'] | PsynthLabelString = 'Psynth: %+.3fs' % self.dicts[self.stPt]['Pres'] | def drawPsynthLabel(self): if not self.dicts[self.stPt].has_key('Psynth'): return PsynthLabelString = 'Psynth: %+.3f' % self.dicts[self.stPt]['Pres'] self.PsynthLabel = self.axs[0].text(self.dicts[self.stPt]['Psynth'], 1 - 0.08 * len(self.axs), ' ' + PsynthLabelString, transform = self.trans[0], color=self.dictPhaseCo... | e3cbfd70f9175004acca4efdf96cb210893ee944 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/e3cbfd70f9175004acca4efdf96cb210893ee944/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
52,
11982,
451,
2224,
12,
2890,
4672,
309,
486,
365,
18,
16287,
63,
2890,
18,
334,
16484,
8009,
5332,
67,
856,
2668,
52,
11982,
451,
11,
4672,
327,
453,
11982,
451,
2224,
780,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
52,
11982,
451,
2224,
12,
2890,
4672,
309,
486,
365,
18,
16287,
63,
2890,
18,
334,
16484,
8009,
5332,
67,
856,
2668,
52,
11982,
451,
11,
4672,
327,
453,
11982,
451,
2224,
780,
27... |
FL_Coord, STRING], | FL_Coord, STRING], | def fl_create_select(p1, p2, p3, p4, p5, p6): """ fl_create_select(p1, p2, p3, p4, p5, p6) -> object """ retval = _fl_create_select(p1, p2, p3, p4, p5, p6) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
4025,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
4672,
3536,
1183,
67,
2640,
67,
4025,
12,
84,
21,
16,
293,
22,
16,
293,
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,
1183,
67,
2640,
67,
4025,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
4672,
3536,
1183,
67,
2640,
67,
4025,
12,
84,
21,
16,
293,
22,
16,
293,
2... |
elif isinstance(d, (tuple,list)): | elif isinstance(d, (tuple, list)): | def polynomial_system(self, P=None, K=None): """ Return a MPolynomialSystem for self for a given plaintext-key pair. | e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
67,
4299,
12,
2890,
16,
453,
33,
7036,
16,
1475,
33,
7036,
4672,
3536,
2000,
279,
490,
5850,
13602,
3163,
364,
365,
364,
279,
864,
11917,
17,
856,
3082,
18,
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,
16991,
67,
4299,
12,
2890,
16,
453,
33,
7036,
16,
1475,
33,
7036,
4672,
3536,
2000,
279,
490,
5850,
13602,
3163,
364,
365,
364,
279,
864,
11917,
17,
856,
3082,
18,
2,
-100,
-100,
-100,... |
timeTup=time.strptime(sStart, '%m/%d-%H:%M:%S %Y') wallClock=time.mktime(timeTup) wallClock = time.mktime(time.localtime())-wallClock | timeTup = time.strptime( sStart, '%m/%d-%H:%M:%S %Y' ) wallClock = time.mktime( timeTup ) wallClock = time.mktime( time.localtime() ) - wallClock | def getResourceUsage(self): """Returns a dictionary containing CPUConsumed, CPULimit, WallClockConsumed and WallClockLimit for current slot. All values returned in seconds. """ if not self.bin: return S_ERROR('Could not determine bin directory for LSF') | b590345882082ff68315923d410c01c4d6437735 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b590345882082ff68315923d410c01c4d6437735/LSFTimeLeft.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5070,
5357,
12,
2890,
4672,
3536,
1356,
279,
3880,
4191,
12154,
20554,
16,
5181,
1506,
1038,
16,
678,
454,
14027,
20554,
471,
678,
454,
14027,
3039,
364,
783,
4694,
18,
225,
4826,
924,
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,
5070,
5357,
12,
2890,
4672,
3536,
1356,
279,
3880,
4191,
12154,
20554,
16,
5181,
1506,
1038,
16,
678,
454,
14027,
20554,
471,
678,
454,
14027,
3039,
364,
783,
4694,
18,
225,
4826,
924,
2... |
super(LeaderManager, self).__init__() | self.__init__() | def reset(self): ''' Resets the LeaderManager for a clean start of GunGame. ''' # Call the __init__ to reset the LeaderManager instance super(LeaderManager, self).__init__() | 176c453398b76f3d9316ea7ba2cc15f2ef8ba1c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4555/176c453398b76f3d9316ea7ba2cc15f2ef8ba1c2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
9163,
1124,
2413,
326,
26048,
1318,
364,
279,
2721,
787,
434,
611,
318,
12496,
18,
9163,
468,
3049,
326,
1001,
2738,
972,
358,
2715,
326,
26048,
1318,
791,
2240,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
9163,
1124,
2413,
326,
26048,
1318,
364,
279,
2721,
787,
434,
611,
318,
12496,
18,
9163,
468,
3049,
326,
1001,
2738,
972,
358,
2715,
326,
26048,
1318,
791,
2240,
12... |
r1 = dataregion.DataRegion(0, 9, self.testData) | r1 = dataregion.DataRegion(0, 10, self.testData) | def testInstanciation(self): r1 = dataregion.DataRegion(0, 9, self.testData) self.assertEqual(len(r1), len(self.testData)) | a99f0b07bf212c9310a7d9405127369573f6271c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/a99f0b07bf212c9310a7d9405127369573f6271c/dataregion_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
382,
27866,
7072,
12,
2890,
4672,
436,
21,
273,
501,
6858,
18,
751,
5165,
12,
20,
16,
1728,
16,
365,
18,
3813,
751,
13,
365,
18,
11231,
5812,
12,
1897,
12,
86,
21,
3631,
562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
382,
27866,
7072,
12,
2890,
4672,
436,
21,
273,
501,
6858,
18,
751,
5165,
12,
20,
16,
1728,
16,
365,
18,
3813,
751,
13,
365,
18,
11231,
5812,
12,
1897,
12,
86,
21,
3631,
562,
... |
%(z)s = %(x)s %% %(y)s; | %(z)s = %(x_mod_y)s; | def c_code(self, node, name, (x, y), (z, ), sub): """ We want the result to have the same sign as python, not the other implementaiton of mod. """ #raise NotImplementedError("Unlike Python, C's modulo returns negative modulo on negative dividend (to implement)") return """ | e06004c8a7c2d70dd7df24bcbcc3b37ae6accc37 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/e06004c8a7c2d70dd7df24bcbcc3b37ae6accc37/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
12,
2890,
16,
756,
16,
508,
16,
261,
92,
16,
677,
3631,
261,
94,
16,
262,
16,
720,
4672,
3536,
1660,
2545,
326,
563,
358,
1240,
326,
1967,
1573,
487,
5790,
16,
486,
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,
276,
67,
710,
12,
2890,
16,
756,
16,
508,
16,
261,
92,
16,
677,
3631,
261,
94,
16,
262,
16,
720,
4672,
3536,
1660,
2545,
326,
563,
358,
1240,
326,
1967,
1573,
487,
5790,
16,
486,
3... |
else: | elif menu.choices: | def GetDisplayStyle(self, menu=None): """ return current display style """ if menu: if menu.force_skin_layout != -1: return menu.force_skin_layout else: different = 0 last = menu.choices[ 0 ].image for i in menu.choices: if last != i.image: different = 1 break last = i.image if not different: if menu and menu.skin_set... | fa12e4536552005caa317559ba3e3324261012fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/fa12e4536552005caa317559ba3e3324261012fd/skin_main1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4236,
2885,
12,
2890,
16,
3824,
33,
7036,
4672,
3536,
327,
783,
2562,
2154,
3536,
309,
3824,
30,
309,
225,
3824,
18,
5734,
67,
7771,
267,
67,
6741,
480,
300,
21,
30,
327,
3824,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4236,
2885,
12,
2890,
16,
3824,
33,
7036,
4672,
3536,
327,
783,
2562,
2154,
3536,
309,
3824,
30,
309,
225,
3824,
18,
5734,
67,
7771,
267,
67,
6741,
480,
300,
21,
30,
327,
3824,
... |
extra_link_args=['-framework', 'QuickTime']) ) | extra_link_args=['-framework', 'QuickTime', '-framework', 'Carbon']) ) | def detect_modules(self): # Ensure that /usr/local is always used if '/usr/local/lib' not in self.compiler.library_dirs: self.compiler.library_dirs.insert(0, '/usr/local/lib') if '/usr/local/include' not in self.compiler.include_dirs: self.compiler.include_dirs.insert(0, '/usr/local/include' ) | 5d17da08d106d09e9e5babe3488bc842be1d1f52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5d17da08d106d09e9e5babe3488bc842be1d1f52/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
309,
1173,
13640,
19,
3729,
19,
2941,
11,
486,
316,
365,
18,
9576,
18,
12083,
67,
8291,
30,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
309,
1173,
13640,
19,
3729,
19,
2941,
11,
486,
316,
365,
18,
9576,
18,
12083,
67,
8291,
30,
365,
... |
os.remove(pdf) | def test0(self): "Test if pythonpoint.pdf can be created from pythonpoint.xml." | 80a5af4bd2a4641790bf438f53554e192f536b89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/80a5af4bd2a4641790bf438f53554e192f536b89/test_tools_pythonpoint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
20,
12,
2890,
4672,
315,
4709,
309,
5790,
1153,
18,
7699,
848,
506,
2522,
628,
5790,
1153,
18,
2902,
1199,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
20,
12,
2890,
4672,
315,
4709,
309,
5790,
1153,
18,
7699,
848,
506,
2522,
628,
5790,
1153,
18,
2902,
1199,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
def generateBootCode(self, parts, packages, boot, variants, settings, bootCode, globalCodes, format=False): | def generateBootCode(self, parts, packages, boot, variants, settings, bootCode, globalCodes, version="source", format=False): | def generateBootCode(self, parts, packages, boot, variants, settings, bootCode, globalCodes, format=False): # returns the Javascript code for the initial ("boot") script as a string | f6109300a0b30f21f4b185d7f9d00da2c39d5bd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/f6109300a0b30f21f4b185d7f9d00da2c39d5bd2/CodeGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
15817,
1085,
12,
2890,
16,
2140,
16,
5907,
16,
4835,
16,
12935,
16,
1947,
16,
4835,
1085,
16,
2552,
6295,
16,
1177,
1546,
3168,
3113,
740,
33,
8381,
4672,
468,
1135,
326,
22326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
15817,
1085,
12,
2890,
16,
2140,
16,
5907,
16,
4835,
16,
12935,
16,
1947,
16,
4835,
1085,
16,
2552,
6295,
16,
1177,
1546,
3168,
3113,
740,
33,
8381,
4672,
468,
1135,
326,
22326,
... |
'staff': v.status==STAFF, | 'administrateur': v.status>COACH, | def add_echeance(request): """View: adds a deadline for user/group and course/module. """ # récup visiteur v = request.session['v'] if request.method == 'POST': if 'c' in request.POST: # dernière étape, recup des valeurs et sauvegarde de l'échéance g = Groupe.objects.get(id=request.POST['g']) uf = {} if request.POST['u... | 5622003147f995391ac97c1031fcc18f24ef8d30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11552/5622003147f995391ac97c1031fcc18f24ef8d30/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
8987,
73,
1359,
12,
2293,
4672,
3536,
1767,
30,
4831,
279,
14096,
364,
729,
19,
1655,
471,
4362,
19,
2978,
18,
3536,
468,
436,
132,
107,
71,
416,
2281,
1137,
295,
331,
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,
527,
67,
8987,
73,
1359,
12,
2293,
4672,
3536,
1767,
30,
4831,
279,
14096,
364,
729,
19,
1655,
471,
4362,
19,
2978,
18,
3536,
468,
436,
132,
107,
71,
416,
2281,
1137,
295,
331,
273,
... |
for i in range(ctrl.GetItemCount()): ctrl.SetItemState(i, 0, SEL_FOC) | if not (ctrl.GetWindowStyleFlag() & wxLC_SINGLE_SEL): for i in range(ctrl.GetItemCount()): ctrl.SetItemState(i, 0, SEL_FOC) | def selectBeforePopup(event): """Ensures the item the mouse is pointing at is selected before a popup. Works with both single-select and multi-select lists.""" ctrl = event.GetEventObject() if isinstance(ctrl, wxListCtrl): n, flags = ctrl.HitTest(event.GetPosition()) if n >= 0: if not ctrl.GetItemState(n, wxLIST_STATE... | dd4ceed1882eba033a58d7f24c2e696c72944b0f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd4ceed1882eba033a58d7f24c2e696c72944b0f/Utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
4649,
13770,
12,
2575,
4672,
3536,
19869,
326,
761,
326,
7644,
353,
17022,
622,
353,
3170,
1865,
279,
10431,
18,
225,
4147,
87,
598,
3937,
2202,
17,
4025,
471,
3309,
17,
4025,
6035... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2027,
4649,
13770,
12,
2575,
4672,
3536,
19869,
326,
761,
326,
7644,
353,
17022,
622,
353,
3170,
1865,
279,
10431,
18,
225,
4147,
87,
598,
3937,
2202,
17,
4025,
471,
3309,
17,
4025,
6035... |
self.options["%s.downloads-tarball" % self.program].append(value) | program.get("downloads-tarball").append(value) | def handleOption(self, sec, opt, value): if sec in self.options: # Mirrors or lists to handle | e3d00bde989431745d3c2d68912693a977e97fa9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2406/e3d00bde989431745d3c2d68912693a977e97fa9/xmlreport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1895,
12,
2890,
16,
1428,
16,
2153,
16,
460,
4672,
309,
1428,
316,
365,
18,
2116,
30,
468,
490,
27026,
578,
6035,
358,
1640,
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,
1640,
1895,
12,
2890,
16,
1428,
16,
2153,
16,
460,
4672,
309,
1428,
316,
365,
18,
2116,
30,
468,
490,
27026,
578,
6035,
358,
1640,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
sage: S == loads(dumps(S)) True | sage: TestSuite(S).run() | def unrank(self, r): """ Returns the subset of s that has rank k. EXAMPLES:: sage: Subsets(3,2).unrank(0) {1, 2} sage: Subsets([2,4,5],2).unrank(0) {2, 4} """ | 1a44ccc23f867ab08fe6b0234354f39b5f210df8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1a44ccc23f867ab08fe6b0234354f39b5f210df8/subset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
11500,
12,
2890,
16,
436,
4672,
3536,
2860,
326,
7931,
434,
272,
716,
711,
6171,
417,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
2592,
4424,
12,
23,
16,
22,
2934,
318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
11500,
12,
2890,
16,
436,
4672,
3536,
2860,
326,
7931,
434,
272,
716,
711,
6171,
417,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
2592,
4424,
12,
23,
16,
22,
2934,
318,
... |
output.write(" got: %s\n" % (self.eval_nuninst(nuninst, "/" in pkg and self.nuninst_orig or None))) output.write(" * %s: %s\n" % (arch, ", ".join(sorted(broken)))) | output.write(" got: %s\n" % (self.eval_nuninst(nuninst, "/" in pkg and nuninst_comp or None))) output.write(" * %s: %s\n" % (arch, ", ".join(sorted([b for b in broken if b not in nuninst_comp[arch]])))) | def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst() | ffeddc471d8a477df144d4e513c8a8dae814240b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/ffeddc471d8a477df144d4e513c8a8dae814240b/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
876,
4672,
2870,
273,
5378,
290,
318,
8591,
67,
2919,
273,
365,
18,
588,
67,
82,
318,
8591,
1435,
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,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
876,
4672,
2870,
273,
5378,
290,
318,
8591,
67,
2919,
273,
365,
18,
588,
67,
82,
318,
8591,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def __gt__(self,other): | def __gt__(self,other): | def __gt__(self,other): raise NotImplementedError('Subclasses of Variable must implement __gt__',self.__class__.__name__) | 8963a02fce2adfaa5a561e13a296f58d5647b16e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/8963a02fce2adfaa5a561e13a296f58d5647b16e/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4521,
972,
12,
2890,
16,
3011,
4672,
1002,
11206,
2668,
1676,
4701,
434,
7110,
1297,
2348,
1001,
4521,
972,
2187,
2890,
16186,
1106,
972,
16186,
529,
972,
13,
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,
0,
0,
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,
4521,
972,
12,
2890,
16,
3011,
4672,
1002,
11206,
2668,
1676,
4701,
434,
7110,
1297,
2348,
1001,
4521,
972,
2187,
2890,
16186,
1106,
972,
16186,
529,
972,
13,
2,
-100,
-100,
-100,
... |
from ComputedAttribute import ComputedAttribute | def maintemplate(self, REQUEST=None): """ Return the standard or plone main_template, unevaluated. | 825ff76e6fd5d7e5eff1e567f301967d56ff6e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/825ff76e6fd5d7e5eff1e567f301967d56ff6e21/Views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11566,
29761,
12,
2890,
16,
12492,
33,
7036,
4672,
3536,
2000,
326,
4529,
578,
886,
476,
2774,
67,
3202,
16,
640,
14168,
690,
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,
0,
0,
0,
0,
0,
0,
0,
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,
11566,
29761,
12,
2890,
16,
12492,
33,
7036,
4672,
3536,
2000,
326,
4529,
578,
886,
476,
2774,
67,
3202,
16,
640,
14168,
690,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.