rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
value = self.palette[self.line[x + 1]] pixels[offset + i] = value | pixels[offset + i] = self.palette[self.line[x + i]] | def draw_pixels_line(self): self.update_palette() pixels = self.driver.get_pixels() offset = self.line_y * self.driver.get_width() for x in range(SPRITE_SIZE, GAMEBOY_SCREEN_WIDTH+SPRITE_SIZE, 4): for i in range(0,4): value = self.palette[self.line[x + 1]] pixels[offset + i] = value offset += 4 | 46dd179f42b4af1070a0c4f8671b98e578711938 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/46dd179f42b4af1070a0c4f8671b98e578711938/video.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
21084,
67,
1369,
12,
2890,
4672,
365,
18,
2725,
67,
26474,
1435,
8948,
273,
365,
18,
7407,
18,
588,
67,
21084,
1435,
1384,
273,
365,
18,
1369,
67,
93,
380,
365,
18,
7407,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
21084,
67,
1369,
12,
2890,
4672,
365,
18,
2725,
67,
26474,
1435,
8948,
273,
365,
18,
7407,
18,
588,
67,
21084,
1435,
1384,
273,
365,
18,
1369,
67,
93,
380,
365,
18,
7407,
1... |
def wget(url, optMap, maxDepth=100): | def wget(self, url, fileRoot, optMap, maxDepth=20): | def wget(url, optMap, maxDepth=100): if optMap['saveTo']: savePath = optMap['saveTo'] else: savePath = os.curdir if not 'recursive' in optMap or not optMap['recursive']: maxDepth = 0 | 9d1220abfbcbc31806deb9a0809fb045a329b4e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/9d1220abfbcbc31806deb9a0809fb045a329b4e4/Wget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
588,
12,
2890,
16,
880,
16,
585,
2375,
16,
2153,
863,
16,
22074,
33,
3462,
4672,
309,
2153,
863,
3292,
5688,
774,
3546,
30,
1923,
743,
273,
2153,
863,
3292,
5688,
774,
3546,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
341,
588,
12,
2890,
16,
880,
16,
585,
2375,
16,
2153,
863,
16,
22074,
33,
3462,
4672,
309,
2153,
863,
3292,
5688,
774,
3546,
30,
1923,
743,
273,
2153,
863,
3292,
5688,
774,
3546,
469,
... |
mediafile=os.path.join(recordingpath, file.attributes["filename"].value) | mediafile = os.path.join(recordingpath, file.attributes["filename"].value) | def processFile(file, folder): """Process a single video/recording file ready for burning.""" write( "*************************************************************") write( "Processing file " + file.attributes["filename"].value + " of type " + file.attributes["type"].value) write( "************************************... | 0ccb616ed01f564244cbf19b355de0d969368ff7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/0ccb616ed01f564244cbf19b355de0d969368ff7/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
812,
12,
768,
16,
3009,
4672,
3536,
2227,
279,
2202,
6191,
19,
3366,
310,
585,
5695,
364,
18305,
310,
12123,
225,
1045,
12,
315,
5021,
19482,
1007,
7388,
13,
1045,
12,
315,
7798,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
812,
12,
768,
16,
3009,
4672,
3536,
2227,
279,
2202,
6191,
19,
3366,
310,
585,
5695,
364,
18305,
310,
12123,
225,
1045,
12,
315,
5021,
19482,
1007,
7388,
13,
1045,
12,
315,
7798,
... |
if self.homesize: | if self.home_mb: | def forward(self): if self.expert.get_active(): mainWindow.goto('manualPart') return | 2f74cfb88502c7fe6ae7fb78ca644ae3d1b628f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2375/2f74cfb88502c7fe6ae7fb78ca644ae3d1b628f1/partitions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5104,
12,
2890,
4672,
309,
365,
18,
338,
672,
18,
588,
67,
3535,
13332,
2774,
3829,
18,
75,
6302,
2668,
19840,
1988,
6134,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5104,
12,
2890,
4672,
309,
365,
18,
338,
672,
18,
588,
67,
3535,
13332,
2774,
3829,
18,
75,
6302,
2668,
19840,
1988,
6134,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
app = QApplication([]) | QApplication([]) | def main(args=sys.argv): app = QApplication([]) from calibre.library.database2 import LibraryDatabase2 d = SchedulerDialog(LibraryDatabase2('/home/kovid/documents/library')) d.exec_() return 0 | f02c3619185f1b38e215c4f49dfa188eace05a5a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/f02c3619185f1b38e215c4f49dfa188eace05a5a/scheduler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
33,
9499,
18,
19485,
4672,
2238,
3208,
3816,
5717,
628,
26139,
266,
18,
12083,
18,
6231,
22,
1930,
18694,
4254,
22,
302,
273,
12620,
6353,
12,
9313,
4254,
22,
2668,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
33,
9499,
18,
19485,
4672,
2238,
3208,
3816,
5717,
628,
26139,
266,
18,
12083,
18,
6231,
22,
1930,
18694,
4254,
22,
302,
273,
12620,
6353,
12,
9313,
4254,
22,
2668,
19,
... |
header="""<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr class="pageboxlefttop"><td><small>""", \ | header="""<table class="navtrailbox"><tr><td width="15"> </td><td class="navtrailboxbody"><small>""", \ | def create_navtrail(cc=cdsname, as=0, header="""<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr class="pageboxlefttop"><td><small>""", \ prolog="", \ separator=">", \ epilog="", \ footer="> Search Results</small></td></tr></table>", exclude_root=0): """Creates navigation trail, i.e. links to an... | 03e310531e299959e23e689e2221361a7aa1e6d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/03e310531e299959e23e689e2221361a7aa1e6d6/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
11589,
15565,
12,
952,
33,
71,
2377,
529,
16,
487,
33,
20,
16,
1446,
1546,
3660,
32,
2121,
667,
1546,
11589,
15565,
2147,
14050,
313,
4438,
4465,
1835,
1546,
3600,
6441,
10,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11589,
15565,
12,
952,
33,
71,
2377,
529,
16,
487,
33,
20,
16,
1446,
1546,
3660,
32,
2121,
667,
1546,
11589,
15565,
2147,
14050,
313,
4438,
4465,
1835,
1546,
3600,
6441,
10,
1... |
and os.path.isfile(self.picDir+'/originals-backup/'+fileName)==False: shutil.copyfile(self.picDir+'/'+fileName, self.picDir+'/originals-backup/'+fileName) | and os.path.isfile(backupFolder+fileName)==False: shutil.copyfile(self.picDir+'/'+fileName,backupFolder+fileName) | def sync(): if self.dirEntry.GetValue()!="" and self.gpxEntry.GetValue!="": wx.CallAfter(self.consolePrint,"\n------\n"+_("Beginning synchronization with ")\ +_("UTC Offset =")+self.utcEntry.GetValue()+\ _(" hours and maximum time difference = ")+self.timerangeEntry.GetValue() +_(" seconds")+"\n") else: pass geo=GpicS... | 3c2effd3d8f2bcc6460d7bab8b2669859c3dd119 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11453/3c2effd3d8f2bcc6460d7bab8b2669859c3dd119/gpicsync-GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
13332,
309,
365,
18,
1214,
1622,
18,
967,
620,
1435,
5,
1546,
6,
471,
365,
18,
75,
4430,
1622,
18,
967,
620,
5,
1546,
6877,
7075,
18,
1477,
4436,
12,
2890,
18,
8698,
5108,
1083... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3792,
13332,
309,
365,
18,
1214,
1622,
18,
967,
620,
1435,
5,
1546,
6,
471,
365,
18,
75,
4430,
1622,
18,
967,
620,
5,
1546,
6877,
7075,
18,
1477,
4436,
12,
2890,
18,
8698,
5108,
1083... |
def hangup(self, *args): return _tinyWRAP.CallSession_hangup(self, *args) def reject(self, *args): return _tinyWRAP.CallSession_reject(self, *args) | def hangup(self, *args): return _tinyWRAP.CallSession_hangup(self, *args) | 5a446dc5431ef2708d3b137a144d856c9994dd9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5606/5a446dc5431ef2708d3b137a144d856c9994dd9d/tinyWRAP.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25733,
416,
12,
2890,
16,
380,
1968,
4672,
327,
389,
88,
11652,
27664,
18,
1477,
2157,
67,
76,
539,
416,
12,
2890,
16,
380,
1968,
13,
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,
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,
25733,
416,
12,
2890,
16,
380,
1968,
4672,
327,
389,
88,
11652,
27664,
18,
1477,
2157,
67,
76,
539,
416,
12,
2890,
16,
380,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
if TiersOfATLAS.getSiteProperty(sitename,'alternateName')==dq2alternatename and (TiersOfATLAS.getSiteProperty(sitename,'srm').startswith('token:ATLASMCDISK') or TiersOfATLAS.getSiteProperty(sitename,'srm').startswith('token:ATLASDATADISK') or TiersOfATLAS.getSiteProperty(sitename,'srm').startswith('token:ATLASSCRATCHDI... | if TiersOfATLAS.getSiteProperty(sitename,'alternateName')==dq2alternatename and \ (TiersOfATLAS.getSiteProperty(sitename,'srm').startswith('token:ATLASMCDISK') or \ TiersOfATLAS.getSiteProperty(sitename,'srm').startswith('token:ATLASDATADISK') or \ TiersOfATLAS.getSiteProperty(sitename,'srm').startswith('token:ATLASSCR... | def register_datasets_details(datasets,outdata): reglines=[] for line in outdata: try: #[dataset,lfn,guid,siteID]=line.split(",") [dataset,lfn,guid,size,md5sum,siteID]=line.split(",") except ValueError: continue size = long(size) adler32='ad:'+md5sum if len(md5sum)==32: adler32='md5:'+md5sum siteID=siteID.strip() # r... | f69a3e4f091a5ea6291a3cb7cb3e729582fe27b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/f69a3e4f091a5ea6291a3cb7cb3e729582fe27b3/ganga-stage-in-out-dq2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
21125,
67,
6395,
12,
21125,
16,
659,
892,
4672,
225,
960,
3548,
33,
8526,
364,
980,
316,
596,
892,
30,
775,
30,
468,
63,
8682,
16,
80,
4293,
16,
14066,
16,
4256,
734,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
21125,
67,
6395,
12,
21125,
16,
659,
892,
4672,
225,
960,
3548,
33,
8526,
364,
980,
316,
596,
892,
30,
775,
30,
468,
63,
8682,
16,
80,
4293,
16,
14066,
16,
4256,
734,
65,
... |
if len(output) > MAX_OUTPUT: | if len(output) > MAX_OUTPUT or output.count('\n') > MAX_OUTPUT_LINES: | def set_output_text(self, output, html, sage=None): if output.count('<?__SAGE__TEXT>') > 1: html = '<h3><font color="red">WARNING: multiple @interacts in one cell disabled (not yet implemented).</font></h3>' output = '' | 536defed9991ab25d12c0dee015df85826c17e4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/536defed9991ab25d12c0dee015df85826c17e4d/cell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2844,
67,
955,
12,
2890,
16,
876,
16,
1729,
16,
272,
410,
33,
7036,
4672,
309,
876,
18,
1883,
2668,
12880,
972,
55,
2833,
972,
5151,
1870,
13,
405,
404,
30,
1729,
273,
2368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2844,
67,
955,
12,
2890,
16,
876,
16,
1729,
16,
272,
410,
33,
7036,
4672,
309,
876,
18,
1883,
2668,
12880,
972,
55,
2833,
972,
5151,
1870,
13,
405,
404,
30,
1729,
273,
2368,... |
p = Process('python', [__file__, '--module', fqname,], dead_callback) | p = Process(sys.executable, [__file__, '--module', fqname,], dead_callback) | def wrap_module(fqname, dead_callback = None): """ | dc680acc35f57558409253533bedbd88085dce6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/dc680acc35f57558409253533bedbd88085dce6b/saranwrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
2978,
12,
19206,
529,
16,
8363,
67,
3394,
273,
599,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2193,
67,
2978,
12,
19206,
529,
16,
8363,
67,
3394,
273,
599,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def help(self, s): """ EXAMPLES: sage: maxima.help('gcd') | def _command_runner(self, command, s, redirect=True): """ Run \code{command} in a new Maxima session and return its output as an \code{AsciiArtString}. If redirect is set to False, then the output of the command is not returned as a string. Instead, it behaves like os.system. This is used for interactive things like... | def help(self, s): """ EXAMPLES: sage: maxima.help('gcd') #not tested -- Function: gcd (<p_1>, <p_2>, <x_1>, ...) ... """ if sage.server.support.EMBEDDED_MODE: os.system('maxima --very-quiet -r "describe(%s); "< /dev/null'%s) else: os.system('maxima --very-quiet -r "describe(%s);"'%s) | 2c088a25d1c542d35c9c6ca1ede6f04d7439c16e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c088a25d1c542d35c9c6ca1ede6f04d7439c16e/maxima.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3076,
67,
18156,
12,
2890,
16,
1296,
16,
272,
16,
3136,
33,
5510,
4672,
3536,
1939,
521,
710,
95,
3076,
97,
316,
279,
394,
4238,
13888,
1339,
471,
327,
2097,
876,
487,
392,
521,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3076,
67,
18156,
12,
2890,
16,
1296,
16,
272,
16,
3136,
33,
5510,
4672,
3536,
1939,
521,
710,
95,
3076,
97,
316,
279,
394,
4238,
13888,
1339,
471,
327,
2097,
876,
487,
392,
521,
... |
print "Could not find message (%s); perhaps it was " + \ "deleted from the POP3Proxy cache or the IMAP " + \ | print "Could not find message (%s); perhaps it was " \ "deleted from the POP3Proxy cache or the IMAP " \ | def train_cached_message(self, id, isSpam): if not self.train_message_in_pop3proxy_cache(id, isSpam) and \ not self.train_message_on_imap_server(id, isSpam): print "Could not find message (%s); perhaps it was " + \ "deleted from the POP3Proxy cache or the IMAP " + \ "server. This means that no training was done." % (i... | 9d55c9b9573845bb2d39c7455908fa900cac61c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/9d55c9b9573845bb2d39c7455908fa900cac61c6/smtpproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4691,
67,
7097,
67,
2150,
12,
2890,
16,
612,
16,
353,
3389,
301,
4672,
309,
486,
365,
18,
9754,
67,
2150,
67,
267,
67,
5120,
23,
5656,
67,
2493,
12,
350,
16,
353,
3389,
301,
13,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4691,
67,
7097,
67,
2150,
12,
2890,
16,
612,
16,
353,
3389,
301,
4672,
309,
486,
365,
18,
9754,
67,
2150,
67,
267,
67,
5120,
23,
5656,
67,
2493,
12,
350,
16,
353,
3389,
301,
13,
47... |
def deleteTaskQueue( self, tqId, connObj = False ): | def deleteTaskQueue( self, tqId, tqOwnerDN = False, tqOwnerGroup = False, connObj = False ): | def deleteTaskQueue( self, tqId, connObj = False ): """ Try to delete a task queue even if it has jobs """ self.log.info( "Deleting TQ %s" % tqId ) if not connObj: retVal = self._getConnection() if not retVal[ 'OK' ]: return S_ERROR( "Can't insert job: %s" % retVal[ 'Message' ] ) connObj = retVal[ 'Value' ] sqlCmd = "D... | 2dd586e522aba814548b98441e2917cc3dcd65d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/2dd586e522aba814548b98441e2917cc3dcd65d0/TaskQueueDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
2174,
3183,
12,
365,
16,
20061,
548,
16,
20061,
5541,
8609,
273,
1083,
16,
20061,
5541,
1114,
273,
1083,
16,
1487,
2675,
273,
1083,
262,
30,
3536,
6161,
358,
1430,
279,
1562,
2389,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
2174,
3183,
12,
365,
16,
20061,
548,
16,
20061,
5541,
8609,
273,
1083,
16,
20061,
5541,
1114,
273,
1083,
16,
1487,
2675,
273,
1083,
262,
30,
3536,
6161,
358,
1430,
279,
1562,
2389,... |
stream = self._open() StreamHandler.__init__(self, stream) | StreamHandler.__init__(self, self._open()) | def __init__(self, filename, mode='a', encoding=None, delay=0): """ Open the specified file and use it as the stream for logging. """ #keep the absolute path, otherwise derived classes which use this #may come a cropper when the current directory changes if codecs is None: encoding = None self.baseFilename = os.path.ab... | 6c2c9aaaa8d082581e1f6a8438b57be39afd8543 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/6c2c9aaaa8d082581e1f6a8438b57be39afd8543/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
1965,
2218,
69,
2187,
2688,
33,
7036,
16,
4624,
33,
20,
4672,
3536,
3502,
326,
1269,
585,
471,
999,
518,
487,
326,
1407,
364,
2907,
18,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
1965,
2218,
69,
2187,
2688,
33,
7036,
16,
4624,
33,
20,
4672,
3536,
3502,
326,
1269,
585,
471,
999,
518,
487,
326,
1407,
364,
2907,
18,
3536,
... |
"-m", path.join(localeSrcDir, "merged"), | "-m", mergeDir), | def compareLocales(repo, locale, l10nRepoDir, localeSrcDir, l10nIni, revision="default", merge=True): mercurial(repo, "compare-locales") update("compare-locales", revision=revision) run_cmd(["python", path.join("compare-locales", "scripts", "compare-locales"), "-m", path.join(localeSrcDir, "merged"), l10nIni, l10nRepoD... | 8f821f274d137dc8928fe88ec05692dea08ce628 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/8f821f274d137dc8928fe88ec05692dea08ce628/l10n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
13310,
12,
7422,
16,
2573,
16,
328,
2163,
82,
8791,
1621,
16,
2573,
7740,
1621,
16,
328,
2163,
82,
22129,
16,
6350,
1546,
1886,
3113,
2691,
33,
5510,
4672,
4045,
1397,
649,
12,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3400,
13310,
12,
7422,
16,
2573,
16,
328,
2163,
82,
8791,
1621,
16,
2573,
7740,
1621,
16,
328,
2163,
82,
22129,
16,
6350,
1546,
1886,
3113,
2691,
33,
5510,
4672,
4045,
1397,
649,
12,
7... |
def test_default_configuration__debug(self): self.assertConfiguration('Debug', 'Debug') def test_default_configuration__deployment(self): self.assertConfiguration('Deployment', 'Release') def test_default_configuration__development(self): self.assertConfiguration('Development', 'Debug') def test_default_configuratio... | with codecs.open(configuration_path, "r", "utf-8") as fh: return fh.read().rstrip() | def test_default_configuration__debug(self): self.assertConfiguration('Debug', 'Debug') | 25feeb24a1118a6fb28d036358303ac956f0d038 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/25feeb24a1118a6fb28d036358303ac956f0d038/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1886,
67,
7025,
972,
4148,
12,
2890,
4672,
365,
18,
11231,
1750,
2668,
2829,
2187,
296,
2829,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1886,
67,
7025,
972,
4148,
12,
2890,
4672,
365,
18,
11231,
1750,
2668,
2829,
2187,
296,
2829,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
dstStart = self.GetDSTStartTime( dt.year ) dstEnd = self.GetDSTEndTime( dt.year ) | dstStart = self.GetDSTStartTime(dt.year) dstEnd = self.GetDSTEndTime(dt.year) | def _inDaylightSavings( self, dt ): try: dstStart = self.GetDSTStartTime( dt.year ) dstEnd = self.GetDSTEndTime( dt.year ) if dstStart < dstEnd: inDaylightSavings = dstStart <= dt.replace( tzinfo=None ) < dstEnd else: # in the southern hemisphere, daylight savings time # typically ends before it begins in a given yea... | 59648a863c896e2f14363d0c28a25b3865360d9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/59648a863c896e2f14363d0c28a25b3865360d9a/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
267,
4245,
5099,
55,
27497,
12,
365,
16,
3681,
262,
30,
775,
30,
3046,
1685,
273,
365,
18,
967,
40,
882,
13649,
12,
7510,
18,
6874,
13,
3046,
1638,
273,
365,
18,
967,
40,
882,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
267,
4245,
5099,
55,
27497,
12,
365,
16,
3681,
262,
30,
775,
30,
3046,
1685,
273,
365,
18,
967,
40,
882,
13649,
12,
7510,
18,
6874,
13,
3046,
1638,
273,
365,
18,
967,
40,
882,
... |
canvas = Player.loadCanvasString( | self.canvas = Player.loadCanvasString( | def testIllegalSamples(): canvas = Player.loadCanvasString( """<canvas id="brokencanvas" width="160" height="120" multisamplesamples="42"/>""") | feec5de27d64b6b5087b68045f5c9f750db97be3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/feec5de27d64b6b5087b68045f5c9f750db97be3/OffscreenTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12195,
13239,
13332,
365,
18,
15424,
273,
19185,
18,
945,
12971,
780,
12,
3536,
32,
15424,
612,
1546,
25402,
1331,
304,
4423,
6,
1835,
1546,
16874,
6,
2072,
1546,
22343,
6,
22945,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
12195,
13239,
13332,
365,
18,
15424,
273,
19185,
18,
945,
12971,
780,
12,
3536,
32,
15424,
612,
1546,
25402,
1331,
304,
4423,
6,
1835,
1546,
16874,
6,
2072,
1546,
22343,
6,
22945,
... |
def closing(self, node): s = u'' | def closing(s, node): r = u'' | def closing(self, node): s = u'' # for loop if node.parent.type == "loop" and node.parent.get("loopType") == "FOR": s += write(";") | 01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7647,
12,
87,
16,
756,
4672,
436,
273,
582,
6309,
468,
364,
2798,
309,
756,
18,
2938,
18,
723,
422,
315,
6498,
6,
471,
756,
18,
2938,
18,
588,
2932,
6498,
559,
7923,
422,
315,
7473,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7647,
12,
87,
16,
756,
4672,
436,
273,
582,
6309,
468,
364,
2798,
309,
756,
18,
2938,
18,
723,
422,
315,
6498,
6,
471,
756,
18,
2938,
18,
588,
2932,
6498,
559,
7923,
422,
315,
7473,
... |
for bin_filename in sorted(glob.glob("tracks/atom.pos.bond.df.cumul.bin.???????")): | for bin_filename in sorted(glob.glob("tracks/atom.bond.pos.df.cumul.bin.???????")): | def test_df(self): self.from_xyz("thf01", "pos") self.from_cp2k_ener("thf01") self.execute("tr-ic-psf", ['tracks/atom.pos', 'bond', '1,2,3,4', '5,6,7,8,9,10,11,12', os.path.join(input_dir, "thf01/init.psf")]) # ordinary df, no error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["1.0*A"... | 180dc223c0ef9ebaa3b178bd709e0cacd8e29052 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11050/180dc223c0ef9ebaa3b178bd709e0cacd8e29052/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2180,
12,
2890,
4672,
365,
18,
2080,
67,
17177,
2932,
451,
74,
1611,
3113,
315,
917,
7923,
365,
18,
2080,
67,
4057,
22,
79,
67,
708,
2932,
451,
74,
1611,
7923,
365,
18,
883... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2180,
12,
2890,
4672,
365,
18,
2080,
67,
17177,
2932,
451,
74,
1611,
3113,
315,
917,
7923,
365,
18,
2080,
67,
4057,
22,
79,
67,
708,
2932,
451,
74,
1611,
7923,
365,
18,
883... |
field = fields[i] if prefix and not prefix[0] in field: | if field[len(prefix)]=='id': data_res_id = _get_id(model_name, line[i], current_module, 'id') | def process_liness(self, datas, prefix, current_module, model_name, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = [] data_id = False data_res_id = False is_xml_id = False is_db_id = False ir_model_data_obj = self.pool.get('ir.model.data') # # Import normal fields # for i in... | efd0cb9412db0c0bcc806b9b089c26c097a70bff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/efd0cb9412db0c0bcc806b9b089c26c097a70bff/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
420... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
420... |
When ``add_static_view`` is called with a ``name`` argument that represents a simple view name, as it is above, subsequent calls to :func:`pyramid.url.static_url` with paths that start with the ``path`` argument passed to ``add_static_view`` will generate a URL something like ``http://<Pyramid app URL>/images/logo.png`... | When ``add_static_view`` is called with a ``name`` argument that represents a URL prefix, as it is above, subsequent calls to :func:`pyramid.url.static_url` with paths that start with the ``path`` argument passed to ``add_static_view`` will generate a URL something like ``http://<Pyramid app URL>/images/logo.png``, whi... | def add_static_view(self, name, path, **kw): """ Add a view used to render static assets such as images and CSS files. | 781f9e02e0433a77e78f07f28e5b7d2064e73af4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/781f9e02e0433a77e78f07f28e5b7d2064e73af4/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3845,
67,
1945,
12,
2890,
16,
508,
16,
589,
16,
2826,
9987,
4672,
3536,
1436,
279,
1476,
1399,
358,
1743,
760,
7176,
4123,
487,
4602,
471,
6765,
1390,
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,
527,
67,
3845,
67,
1945,
12,
2890,
16,
508,
16,
589,
16,
2826,
9987,
4672,
3536,
1436,
279,
1476,
1399,
358,
1743,
760,
7176,
4123,
487,
4602,
471,
6765,
1390,
18,
2,
-100,
-100,
-100,... |
domains=get_children_as(elem, 'domain', cls.to_domain)) @classmethod def to_events(cls, elem): | domains=get_children_as(elem, 'domain', self.domain)) def events(self, elem): | def to_domain_architecture(cls, elem): return Tree.DomainArchitecture( length=int(elem.get('length')), domains=get_children_as(elem, 'domain', cls.to_domain)) | 5f38465441061de22d67bc9df2281f70d7ac37ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/5f38465441061de22d67bc9df2281f70d7ac37ce/PhyloXMLIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
4308,
67,
991,
18123,
12,
6429,
16,
3659,
4672,
327,
4902,
18,
3748,
12269,
18123,
12,
769,
33,
474,
12,
10037,
18,
588,
2668,
2469,
6134,
3631,
10128,
33,
588,
67,
5906,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
4308,
67,
991,
18123,
12,
6429,
16,
3659,
4672,
327,
4902,
18,
3748,
12269,
18123,
12,
769,
33,
474,
12,
10037,
18,
588,
2668,
2469,
6134,
3631,
10128,
33,
588,
67,
5906,
67,
... |
mode = "algebraic" | assert mode != "auto" | def detwin_data(self, mode=None): #determine how to detwin if mode is None: mode = "auto" if mode == "auto": if self.twin_fraction_object.twin_fraction > self.detwin_switch_twin_fraction: mode = "proportional" if self.twin_fraction_object.twin_fraction > 1.0 - self.detwin_switch_twin_fraction: mode = "algebraic" else: ... | d9e1b5978bb9c8c42bcdd141609af787d3fd46f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/d9e1b5978bb9c8c42bcdd141609af787d3fd46f8/twin_f_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3023,
8082,
67,
892,
12,
2890,
16,
1965,
33,
7036,
4672,
468,
24661,
3661,
358,
3023,
8082,
309,
1965,
353,
599,
30,
1965,
273,
315,
6079,
6,
309,
1965,
422,
315,
6079,
6877,
309,
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,
3023,
8082,
67,
892,
12,
2890,
16,
1965,
33,
7036,
4672,
468,
24661,
3661,
358,
3023,
8082,
309,
1965,
353,
599,
30,
1965,
273,
315,
6079,
6,
309,
1965,
422,
315,
6079,
6877,
309,
365,... |
"(%d dicts in current context outside" | "(%d dicts in current context outside " | def parse(self, file, list, restricted=False, prev_indent=-1): """ Read and parse lines from file until a line with an indent level lower than or equal to prev_indent is encountered. | bc08a57e881bd13f6d8149adf4df3a00e4e98a33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/bc08a57e881bd13f6d8149adf4df3a00e4e98a33/kvm_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
585,
16,
666,
16,
15693,
33,
8381,
16,
2807,
67,
9355,
29711,
21,
4672,
3536,
2720,
471,
1109,
2362,
628,
585,
3180,
279,
980,
598,
392,
3504,
1801,
2612,
2353,
578... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
12,
2890,
16,
585,
16,
666,
16,
15693,
33,
8381,
16,
2807,
67,
9355,
29711,
21,
4672,
3536,
2720,
471,
1109,
2362,
628,
585,
3180,
279,
980,
598,
392,
3504,
1801,
2612,
2353,
578... |
If no input arguments are given, then all of scipy's subpackages are imported. | If no input arguments are given, then all of scipy's subpackages are imported. | def __call__(self,*packages, **options): """Load one or more packages into parent package top-level namespace. | 633def1ab34f1ae885deb388904aff075f37438c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/633def1ab34f1ae885deb388904aff075f37438c/_import_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
14,
10308,
16,
2826,
2116,
4672,
3536,
2563,
1245,
578,
1898,
5907,
1368,
982,
2181,
1760,
17,
2815,
1981,
18,
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,
1001,
1991,
972,
12,
2890,
16,
14,
10308,
16,
2826,
2116,
4672,
3536,
2563,
1245,
578,
1898,
5907,
1368,
982,
2181,
1760,
17,
2815,
1981,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def usage(): gLogger.info( '%s DIRACSiteName GridSiteName CE [CE ... ]' % Script.scriptName ) gLogger.info( ' Type "%s --help" for the available options and syntax' % Script.scriptName ) DIRAC.exit( -1 ) | def usage(): gLogger.info( '%s DIRACSiteName GridSiteName CE [CE ... ]' % Script.scriptName ) gLogger.info( ' Type "%s --help" for the available options and syntax' % Script.scriptName ) DIRAC.exit( -1 ) | 5481841ba5e14a6a4877c6636ea0136d0c239082 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5481841ba5e14a6a4877c6636ea0136d0c239082/dirac-admin-add-site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
314,
3328,
18,
1376,
12,
1995,
87,
18544,
2226,
4956,
461,
7145,
4956,
461,
29538,
306,
1441,
1372,
308,
11,
738,
7739,
18,
4263,
461,
262,
314,
3328,
18,
1376,
12,
296,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4084,
13332,
314,
3328,
18,
1376,
12,
1995,
87,
18544,
2226,
4956,
461,
7145,
4956,
461,
29538,
306,
1441,
1372,
308,
11,
738,
7739,
18,
4263,
461,
262,
314,
3328,
18,
1376,
12,
296,
1... | |
newRolloverAt = self.rolloverAt + (daysToWait * (60 * 60 * 24)) if not utc: | newRolloverAt = result + (daysToWait * (60 * 60 * 24)) if not self.utc: | def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=0, utc=0): BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay) self.when = string.upper(when) self.backupCount = backupCount self.utc = utc # Calculate the real rollover interval, which is just the number of # seconds ... | bc20391009fb64938bbc72bbec690c7d7fa6cad2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/bc20391009fb64938bbc72bbec690c7d7fa6cad2/handlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
1347,
2218,
76,
2187,
3673,
33,
21,
16,
5114,
1380,
33,
20,
16,
2688,
33,
7036,
16,
4624,
33,
20,
16,
9439,
33,
20,
4672,
3360,
8570,
1776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1544,
16,
1347,
2218,
76,
2187,
3673,
33,
21,
16,
5114,
1380,
33,
20,
16,
2688,
33,
7036,
16,
4624,
33,
20,
16,
9439,
33,
20,
4672,
3360,
8570,
1776,
... |
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): set_prev_to_none = False set_next_to_none = False if use_preloadimg_next == True and self.preloading_images == True: if self.image_modified == False and self.image_zoomed == False:... | def load_new_image_stop_now(self): try: gobject.source_remove(self.load_when_idle) except: pass try: gobject.source_remove(self.preload_when_idle) except: pass try: gobject.source_remove(self.preload_when_idle2) except: pass def load_new_image(self, check_prev_last, use_current_pixbuf_original, reset_cursor, perform_o... | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2704,
67,
2730,
12,
2890,
16,
999,
67,
1484,
945,
6081,
67,
4285,
16,
999,
67,
1484,
945,
6081,
67,
10001,
16,
999,
67,
2972,
67,
14861,
4385,
67,
8830,
16,
2715,
67,
9216,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2704,
67,
2730,
12,
2890,
16,
999,
67,
1484,
945,
6081,
67,
4285,
16,
999,
67,
1484,
945,
6081,
67,
10001,
16,
999,
67,
2972,
67,
14861,
4385,
67,
8830,
16,
2715,
67,
9216,... |
os.chown(staticFolder, 2, 2) | def main(): args = sys.argv[1:] if len(args) != 2: print 'usage: ./staticReports.py catalina.home reportsURL(form: http://gratiaxxx:8881/gratia-reporting)' sys.exit(1) config = ConfigParser() catalinaHome = args[0] birtURL = args[1] propertiesFile = os.path.join(catalinaHome,'gratia/service-configuration.properties') c... | bd8fee3a8e73460895880d487b175b389ff58b36 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/bd8fee3a8e73460895880d487b175b389ff58b36/staticReports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
562,
12,
1968,
13,
480,
576,
30,
1172,
296,
9167,
30,
263,
19,
3845,
18631,
18,
2074,
276,
3145,
15314,
18,
8712,
10557,
178... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
562,
12,
1968,
13,
480,
576,
30,
1172,
296,
9167,
30,
263,
19,
3845,
18631,
18,
2074,
276,
3145,
15314,
18,
8712,
10557,
178... | |
elif self.type == "nic_pf": | elif self.type == "pf": | def get_devs(self, count): """ Check out all devices' PCI IDs according to their name. | 768a29d5a3809bcb3c37771b2fc1bfe20fae6ad3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/768a29d5a3809bcb3c37771b2fc1bfe20fae6ad3/kvm_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5206,
87,
12,
2890,
16,
1056,
4672,
3536,
2073,
596,
777,
7166,
11,
453,
7266,
7115,
4888,
358,
3675,
508,
18,
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,
336,
67,
5206,
87,
12,
2890,
16,
1056,
4672,
3536,
2073,
596,
777,
7166,
11,
453,
7266,
7115,
4888,
358,
3675,
508,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
cls.widgets["enterGameNotationSidePanel"].realize() cls.widgets["enterGameNotationFrame"].set_size_request(223, cls.widgets["enterGameNotationSidePanel"].get_allocation().height-4) | def callback (widget, allocation): cls.widgets["enterGameNotationFrame"].set_size_request( 223, allocation.height-4) cls.widgets["enterGameNotationSidePanel"].connect_after("size-allocate", callback) | def _init (cls): cls.widgets["enterGameNotationSidePanel"].realize() cls.widgets["enterGameNotationFrame"].set_size_request(223, cls.widgets["enterGameNotationSidePanel"].get_allocation().height-4) flags = [] if isInstalled(): path = gettext.find("pychess") else: path = gettext.find("pychess", localedir=addDataPrefix(... | aa28f0fa00d027f2b8ec326c29e319d1a7bcf683 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/aa28f0fa00d027f2b8ec326c29e319d1a7bcf683/newGameDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
261,
6429,
4672,
1652,
1348,
261,
6587,
16,
13481,
4672,
2028,
18,
18148,
9614,
2328,
12496,
14818,
3219,
6,
8009,
542,
67,
1467,
67,
2293,
12,
576,
4366,
16,
13481,
18,
4210,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
261,
6429,
4672,
1652,
1348,
261,
6587,
16,
13481,
4672,
2028,
18,
18148,
9614,
2328,
12496,
14818,
3219,
6,
8009,
542,
67,
1467,
67,
2293,
12,
576,
4366,
16,
13481,
18,
4210,... |
self.overlap[base+j,i+base] = k self.overlap[i+base,base+j] = k | self.aooverlaps[base+j,i+base] = k self.aooverlaps[i+base,base+j] = k | def parse(self): """Extract information from the logfile.""" inputfile = open(self.filename,"r") for line in inputfile: if line[1:8]=="NAtoms=": | 47c8821cc88c71efe3af04aace14c00a4fd2b2e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/47c8821cc88c71efe3af04aace14c00a4fd2b2e5/g03parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
1696,
12,
2890,
18,
3459,
10837,
86,
7923,
364,
980,
316,
810,
768,
30,
225,
309,
980,
63,
21,
30,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
1696,
12,
2890,
18,
3459,
10837,
86,
7923,
364,
980,
316,
810,
768,
30,
225,
309,
980,
63,
21,
30,
28,
... |
aT.translateXBy_yBy_(0, -yP) | aT.translateXBy_yBy_(-xP, yA - yP) | def drawRectRightToLeft_(self, rect): self._alternateRects = {} # draw the background bounds = self.bounds() self._backgroundColor.set() NSRectFill(bounds) # create some reusable values scale = self._scale descender = self._descender upm = self._upm scaledBuffer = self._buffer * (1.0 / scale) scrollWidth = bounds.size[... | 5a673ffbd30b8726db9034e60dcc25f5cfad6edf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8848/5a673ffbd30b8726db9034e60dcc25f5cfad6edf/glyphLineView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
6120,
4726,
774,
3910,
67,
12,
2890,
16,
4917,
4672,
365,
6315,
16025,
340,
6120,
87,
273,
2618,
468,
3724,
326,
5412,
4972,
273,
365,
18,
10576,
1435,
365,
6315,
9342,
2957,
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,
3724,
6120,
4726,
774,
3910,
67,
12,
2890,
16,
4917,
4672,
365,
6315,
16025,
340,
6120,
87,
273,
2618,
468,
3724,
326,
5412,
4972,
273,
365,
18,
10576,
1435,
365,
6315,
9342,
2957,
18,
... |
weight = lambda x : 1 | weight = lambda x: 1 | def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``. | 1ce3f98f3b3a6c76baa509a4ebc0110ea7853d74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1ce3f98f3b3a6c76baa509a4ebc0110ea7853d74/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... |
if not isdir(dir): return [] | def _walk(dir): if not isdir(dir): return [] | 1689f8028505d7e99fe60ec779020436e8ec8b1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10616/1689f8028505d7e99fe60ec779020436e8ec8b1a/dirindex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11348,
12,
1214,
4672,
309,
486,
9783,
12,
1214,
4672,
327,
5378,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11348,
12,
1214,
4672,
309,
486,
9783,
12,
1214,
4672,
327,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
assert key in self.add.cache del self.add.cache[key] assert key not in self.add.cache def testDelItemDiskCache(self): | assert key in self.add del self.add[key] assert key not in self.add def testDirectCall(self): """ tests directly calling the cache object using __call__ """ | def testDelItemDiskCached(self): """ test delitem for classes using the DiskCached decorator """ result = self.add(12,13) | 2355828a58c7929e11ae58a88a6ffb902ba065ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6604/2355828a58c7929e11ae58a88a6ffb902ba065ba/cache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2837,
1180,
6247,
9839,
12,
2890,
4672,
3536,
1842,
1464,
1726,
364,
3318,
1450,
326,
12951,
9839,
7367,
3536,
563,
273,
365,
18,
1289,
12,
2138,
16,
3437,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2837,
1180,
6247,
9839,
12,
2890,
4672,
3536,
1842,
1464,
1726,
364,
3318,
1450,
326,
12951,
9839,
7367,
3536,
563,
273,
365,
18,
1289,
12,
2138,
16,
3437,
13,
2,
-100,
-100,
-100,... |
recordingbin = gst.Bin("recording bin") | recordingbin = gst.Bin("recordingbin_%d" % recbin) | def Record(self): """ Start recording all selected instruments. """ | 46970e1abeb0ad7d743bc61c0813c5f81db421bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10033/46970e1abeb0ad7d743bc61c0813c5f81db421bd/Project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5059,
12,
2890,
4672,
3536,
3603,
14949,
777,
3170,
29555,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5059,
12,
2890,
4672,
3536,
3603,
14949,
777,
3170,
29555,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
apply(self.tk.call, (self._w, 'header', 'create', col) + self._options(cnf, kw)) | apply(self.tk.call, (self._w, 'header', 'create', col) + self._options(cnf, kw)) | def header_create(self, col, cnf={}, **kw): | 22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1446,
67,
2640,
12,
2890,
16,
645,
16,
23118,
28793,
2826,
9987,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1446,
67,
2640,
12,
2890,
16,
645,
16,
23118,
28793,
2826,
9987,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._install(prvpkg, cs, lk, _pending, depth) if _pending: self._pending(cs, lk, _pending, depth) | self._install(prvpkg, cs, lk, None, depth) | def _pending(self, changeset, locked, pending, depth=0): #print "[%03d] _pending()" % depth #depth += 1 | fa863c9ad9e8fb247c36224ac1e88ebd00689a16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/fa863c9ad9e8fb247c36224ac1e88ebd00689a16/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9561,
12,
2890,
16,
22463,
16,
8586,
16,
4634,
16,
3598,
33,
20,
4672,
468,
1188,
30048,
4630,
72,
65,
389,
9561,
10031,
738,
3598,
468,
5979,
1011,
404,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9561,
12,
2890,
16,
22463,
16,
8586,
16,
4634,
16,
3598,
33,
20,
4672,
468,
1188,
30048,
4630,
72,
65,
389,
9561,
10031,
738,
3598,
468,
5979,
1011,
404,
2,
-100,
-100,
-100,
-100... |
"""retrieve(url) returns (filename, None) for a local object | """retrieve(url) returns (filename, headers) for a local object | def retrieve(self, url, filename=None, reporthook=None, data=None): """retrieve(url) returns (filename, None) for a local object or (tempfilename, headers) for a remote object.""" url = unwrap(toBytes(url)) if self.tempcache and url in self.tempcache: return self.tempcache[url] type, url1 = splittype(url) if filename i... | acc72d20d70537407eefb66520ee199806098095 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/acc72d20d70537407eefb66520ee199806098095/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4614,
12,
2890,
16,
880,
16,
1544,
33,
7036,
16,
2071,
7825,
1184,
33,
7036,
16,
501,
33,
7036,
4672,
3536,
17466,
12,
718,
13,
1135,
261,
3459,
16,
1607,
13,
364,
279,
1191,
733,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4614,
12,
2890,
16,
880,
16,
1544,
33,
7036,
16,
2071,
7825,
1184,
33,
7036,
16,
501,
33,
7036,
4672,
3536,
17466,
12,
718,
13,
1135,
261,
3459,
16,
1607,
13,
364,
279,
1191,
733,
57... |
class LocalTimer(event_wrapper): def __init__(self, cb, args, kwargs): self.tpl = cb, args, kwargs self.greenlet = api.getcurrent() def __call__(self): if self.greenlet: cb, args, kwargs = self.tpl cb(*args, **kwargs) | def cancel(self): if self.impl is not None: self.impl.delete() self.impl = None | c728f1c908af8a79377310e7dad92816ae1ae4f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/c728f1c908af8a79377310e7dad92816ae1ae4f1/libevent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3755,
12,
2890,
4672,
309,
365,
18,
11299,
353,
486,
599,
30,
365,
18,
11299,
18,
3733,
1435,
365,
18,
11299,
273,
599,
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,
3755,
12,
2890,
4672,
309,
365,
18,
11299,
353,
486,
599,
30,
365,
18,
11299,
18,
3733,
1435,
365,
18,
11299,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
p = pexpect.spawn('/bin/ls -l') | p = spawn('/bin/ls -l') | def test_expect (self): the_old_way = commands.getoutput('/bin/ls -l') | 4d560d5c243ab16b138e72073de4258709a62bde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/4d560d5c243ab16b138e72073de4258709a62bde/qa.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12339,
261,
2890,
4672,
326,
67,
1673,
67,
1888,
273,
4364,
18,
588,
2844,
2668,
19,
4757,
19,
3251,
300,
80,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12339,
261,
2890,
4672,
326,
67,
1673,
67,
1888,
273,
4364,
18,
588,
2844,
2668,
19,
4757,
19,
3251,
300,
80,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return win32com.client.dynamic.Dispatch(ob, "ADSI_object", ADSIDispatch) | name = "Dispatch wrapper around %r" % ob return win32com.client.dynamic.Dispatch(ob, name, ADSIDispatch) | def _get_good_ret(ob, # Named arguments used internally resultCLSID = None): assert resultCLSID is None, "Now have type info for ADSI objects - fix me!" # See if the object supports IDispatch if hasattr(ob, "Invoke"): import win32com.client.dynamic return win32com.client.dynamic.Dispatch(ob, "ADSI_object", ADSIDispatch... | 6075c2eeaa0f3d187fad28b31e10c80226e47b01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/6075c2eeaa0f3d187fad28b31e10c80226e47b01/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
19747,
67,
1349,
12,
947,
16,
468,
9796,
1775,
1399,
12963,
563,
39,
3045,
734,
273,
599,
4672,
1815,
563,
39,
3045,
734,
353,
599,
16,
315,
8674,
1240,
618,
1123,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
19747,
67,
1349,
12,
947,
16,
468,
9796,
1775,
1399,
12963,
563,
39,
3045,
734,
273,
599,
4672,
1815,
563,
39,
3045,
734,
353,
599,
16,
315,
8674,
1240,
618,
1123,
364,
... |
self.wID = NewId() | self.wID = wxNewId() | def __init__(self, propEditor, value): self.propEditor = propEditor self.editorCtrl = None self.wID = NewId() self.value = value | 244dec2af59e613ef58de47f2df2891911ad586c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/244dec2af59e613ef58de47f2df2891911ad586c/InspectorEditorControls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2270,
6946,
16,
460,
4672,
365,
18,
5986,
6946,
273,
2270,
6946,
365,
18,
9177,
12418,
273,
599,
365,
18,
91,
734,
273,
7075,
1908,
548,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2270,
6946,
16,
460,
4672,
365,
18,
5986,
6946,
273,
2270,
6946,
365,
18,
9177,
12418,
273,
599,
365,
18,
91,
734,
273,
7075,
1908,
548,
1435,
365,
18,
... |
res.append( (exename, run_richards(exe, 2), run_pystone(exe, 20000)) ) res.append( ('python %s' % sys.version.split()[0], ref_rich, ref_stone) ) | mtime = os.path.getmtime(exe) size = os.path.getsize(exe) key = md5.new(file(exe,'rb').read()).digest() if key in prior: print 'skipped', exename resdic[key] = prior[key][:2] + (exename, mtime, size) else: resdic[key] = (run_richards(exe, 2), run_pystone(exe, 20000), exename, mtime, size) prior[key] = resdic[key] save_... | def main(): import win32con, win32process curr = win32process.GetCurrentProcess() prio = win32con.HIGH_PRIORITY_CLASS win32process.SetPriorityClass(curr, prio) # unfortunately, the above doesn't help, because the process priority # is not inherited by child process. We also cannot import WIn32 extensions # right now, s... | 1349b2b7e249cdce30bf175cd17bffc4fb1b0bbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/1349b2b7e249cdce30bf175cd17bffc4fb1b0bbf/bench-windows.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1930,
5657,
1578,
591,
16,
5657,
1578,
2567,
4306,
273,
5657,
1578,
2567,
18,
967,
3935,
2227,
1435,
14705,
83,
273,
5657,
1578,
591,
18,
29996,
67,
19804,
67,
5237,
5657,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1930,
5657,
1578,
591,
16,
5657,
1578,
2567,
4306,
273,
5657,
1578,
2567,
18,
967,
3935,
2227,
1435,
14705,
83,
273,
5657,
1578,
591,
18,
29996,
67,
19804,
67,
5237,
5657,
1... |
return self.do_process() | return self.do_process(request) | def __call__(self, environ, start_response): if environ['PATH_INFO'].startswith(self.auth_prefix): self.environ = environ self.start = start_response self.body = [] self.base_url = request.construct_url(environ, with_path_info=False, with_query_string=False) path = re.sub(self.auth_prefix, '', environ['PATH_INFO']) se... | 3613973e0dba8bc750646a30918b4dc7828ea1b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/3613973e0dba8bc750646a30918b4dc7828ea1b1/open_id.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
5473,
3292,
4211,
67,
5923,
29489,
17514,
1918,
12,
2890,
18,
1944,
67,
3239,
4672,
365,
18,
28684,
273,
5473,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
5473,
3292,
4211,
67,
5923,
29489,
17514,
1918,
12,
2890,
18,
1944,
67,
3239,
4672,
365,
18,
28684,
273,
5473,
365,
1... |
if milestones[0] == '---': trac.setMilestoneList(milestones, 'value') else: trac.setMilestoneList([], '') print print '6. retrieving bugs...' sql = "SELECT * FROM bugs " if PRODUCTS: sql += " WHERE %s" % productFilter('product', PRODUCTS) sql += " ORDER BY bug_id" | trac.setMilestoneList(milestones, 'value') print "\n6. Retrieving bugs..." sql = """SELECT DISTINCT b.*, c.name AS component, p.name AS product FROM bugs AS b, components AS c, products AS p """ sql += " WHERE (" + makeWhereClause('p.name', PRODUCTS) sql += ") AND b.product_id = p.id" sql += " AND b.component_id = c.i... | def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla if BZ_VERSION == '2.11': print 'Using Buzvilla v%s schema.' % BZ_VERSION activityFields['removed'] = 'oldvalue' activityFields['added'] = 'newvalue' # init Bugzilla environment print "B... | d0a718cdc641402f4871e728629c7ce1e81b3158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d0a718cdc641402f4871e728629c7ce1e81b3158/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
24899,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
16,
389,
3074,
16,
389,
5734,
4672,
5728,
2314,
273,
2286,
12233,
1435,
225,
468,
2236,
364,
12156,
5244,
434,
7934,
15990... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24899,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
16,
389,
3074,
16,
389,
5734,
4672,
5728,
2314,
273,
2286,
12233,
1435,
225,
468,
2236,
364,
12156,
5244,
434,
7934,
15990... |
args = deepcopy(args) | args = deepcopy(args, memo) | def _reconstruct(x, info, deep): if isinstance(info, str): return x assert isinstance(info, tuple) n = len(info) assert n in (2, 3) callable, args = info[:2] if n > 2: state = info[2] else: state = {} if deep: args = deepcopy(args) y = callable(*args) if state: if deep: state = deepcopy(state) y.__dict__.update(state) ... | 1e91c1444a9c8b8b58310cffbe4252698527a31e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1e91c1444a9c8b8b58310cffbe4252698527a31e/copy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
266,
10062,
12,
92,
16,
1123,
16,
4608,
4672,
309,
1549,
12,
1376,
16,
609,
4672,
327,
619,
1815,
1549,
12,
1376,
16,
3193,
13,
290,
273,
562,
12,
1376,
13,
1815,
290,
316,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
266,
10062,
12,
92,
16,
1123,
16,
4608,
4672,
309,
1549,
12,
1376,
16,
609,
4672,
327,
619,
1815,
1549,
12,
1376,
16,
3193,
13,
290,
273,
562,
12,
1376,
13,
1815,
290,
316,
261,... |
super(Package, self).save_as(self, filename, change_url, serializer, erase) | super(Package, self).save_as(filename, change_url, serializer, erase) | def save_as(self, filename, change_url=False, serializer=None, erase=False): self.modified = datetime.now().isoformat() super(Package, self).save_as(self, filename, change_url, serializer, erase) | 196f87c713cf788f52d6f3b3efa021c871936518 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11977/196f87c713cf788f52d6f3b3efa021c871936518/package.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
345,
12,
2890,
16,
1544,
16,
2549,
67,
718,
33,
8381,
16,
6340,
33,
7036,
16,
22038,
33,
8381,
4672,
365,
18,
7342,
273,
3314,
18,
3338,
7675,
9699,
2139,
1435,
2240,
12,
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,
1923,
67,
345,
12,
2890,
16,
1544,
16,
2549,
67,
718,
33,
8381,
16,
6340,
33,
7036,
16,
22038,
33,
8381,
4672,
365,
18,
7342,
273,
3314,
18,
3338,
7675,
9699,
2139,
1435,
2240,
12,
2... |
P.axis('off') | plt.axis('off') | def plotgrid(ax, grid, mode='k-'): P.axis('off') for b in grid: ax.plot(b.x, b.y, mode) | e9d82bbc4a98399d2df9e6423312d38dffca7d73 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12843/e9d82bbc4a98399d2df9e6423312d38dffca7d73/gridoverlap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
5222,
12,
651,
16,
3068,
16,
1965,
2218,
79,
6627,
4672,
5451,
18,
4890,
2668,
3674,
6134,
364,
324,
316,
3068,
30,
1740,
18,
4032,
12,
70,
18,
92,
16,
324,
18,
93,
16,
1965,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3207,
5222,
12,
651,
16,
3068,
16,
1965,
2218,
79,
6627,
4672,
5451,
18,
4890,
2668,
3674,
6134,
364,
324,
316,
3068,
30,
1740,
18,
4032,
12,
70,
18,
92,
16,
324,
18,
93,
16,
1965,
... |
shutil.copyfile( xsl_path( "master.css" ), os.path.join( output_dir, "master.css" ) ) | shutil.copyfile( xsl_path( 'html/master.css' ) , os.path.join( output_dir, 'master.css' ) ) | def make_result_pages( test_results_file , expected_results_file , failures_markup_file , source , run_date , comment_file , results_dir , result_prefix , xslt_proc_name , reports ): log( "Producing the reports..." ) __log__ = 1 output_dir = os.path.join( results_dir, result_prefix ) if not os.path.exists( output_dir ... | 032bc19415907e1c169b60349b3cd5a706b5789e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/032bc19415907e1c169b60349b3cd5a706b5789e/report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2088,
67,
7267,
12,
1842,
67,
4717,
67,
768,
269,
2665,
67,
4717,
67,
768,
269,
11720,
67,
15056,
67,
768,
269,
1084,
269,
1086,
67,
712,
269,
2879,
67,
768,
269,
1686,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2088,
67,
7267,
12,
1842,
67,
4717,
67,
768,
269,
2665,
67,
4717,
67,
768,
269,
11720,
67,
15056,
67,
768,
269,
1084,
269,
1086,
67,
712,
269,
2879,
67,
768,
269,
1686,
67,... |
w = self._element_class(self, x, coerce, copy) | def __call__(self, x, coerce=True, copy=True, check=True): """ Create an element of this free module. | 54687a9b1a57106d790e4681b1dd1d3df02bd381 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/54687a9b1a57106d790e4681b1dd1d3df02bd381/free_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
12270,
33,
5510,
16,
1610,
33,
5510,
16,
866,
33,
5510,
4672,
3536,
1788,
392,
930,
434,
333,
4843,
1605,
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,
1001,
1991,
972,
12,
2890,
16,
619,
16,
12270,
33,
5510,
16,
1610,
33,
5510,
16,
866,
33,
5510,
4672,
3536,
1788,
392,
930,
434,
333,
4843,
1605,
18,
2,
-100,
-100,
-100,
-100,
-100,
... | |
fi = self.f.items() | fi = iter(self.f.items()) | def test_iteritems_while_modifying_values(self): if not hasattr(self.f, 'iteritems'): return | bebe92afbfefc0eeabc2b045a8111bd8eb85aa2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/bebe92afbfefc0eeabc2b045a8111bd8eb85aa2c/test_bsddb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2165,
3319,
67,
17523,
67,
17042,
310,
67,
2372,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
18,
74,
16,
296,
2165,
3319,
11,
4672,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2165,
3319,
67,
17523,
67,
17042,
310,
67,
2372,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
18,
74,
16,
296,
2165,
3319,
11,
4672,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return apply(dialog_type, (self.root, name, title, self.app_icon), kw) | return apply(self.dialog_thread, (dialog_type, name, title), kw) | def getGenericOpenFilename(self, title, filetypes, **kw): name=app.config.name kw['filetypes']=filetypes dialog_type=self.get_dialog_type(OPENMODE) return apply(dialog_type, (self.root, name, title, self.app_icon), kw) | d94e4b2a21b431b74dc95d014dc78d280ad6fef1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3123/d94e4b2a21b431b74dc95d014dc78d280ad6fef1/dialogmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20135,
3678,
5359,
12,
2890,
16,
2077,
16,
661,
15180,
16,
2826,
9987,
4672,
508,
33,
2910,
18,
1425,
18,
529,
5323,
3292,
7540,
15180,
3546,
33,
7540,
15180,
6176,
67,
723,
33,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20135,
3678,
5359,
12,
2890,
16,
2077,
16,
661,
15180,
16,
2826,
9987,
4672,
508,
33,
2910,
18,
1425,
18,
529,
5323,
3292,
7540,
15180,
3546,
33,
7540,
15180,
6176,
67,
723,
33,
2890,
... |
flist = FileList(root) MultiEditorWindow.__init__(self, flist, None, None) | flist = PyShellFileList(root) PyShellEditorWindow.__init__(self, flist, None, None) | def __init__(self, flist=None): self.interp = ModifiedInterpreter(self) if flist is None: root = Tk() fixwordbreaks(root) root.withdraw() flist = FileList(root) | 5af7a72d8bc0b7308e2342bdd97bda6d0d190222 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5af7a72d8bc0b7308e2342bdd97bda6d0d190222/PyShell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
1098,
33,
7036,
4672,
365,
18,
24940,
273,
21154,
30010,
12,
2890,
13,
309,
284,
1098,
353,
599,
30,
1365,
273,
399,
79,
1435,
2917,
1095,
29292,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
1098,
33,
7036,
4672,
365,
18,
24940,
273,
21154,
30010,
12,
2890,
13,
309,
284,
1098,
353,
599,
30,
1365,
273,
399,
79,
1435,
2917,
1095,
29292,
12... |
self.longTypes = set(('MGEF','ACTI','LIGH','WTHR','CONT','DOOR')) | self.longTypes = set(('MGEF','ACTI','LIGH','WTHR','CONT','DOOR','EXPL','IPCT','PROJ')) | def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self... | 9f15c51061f64e0bb6ed81499308cf6c07cf48d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/9f15c51061f64e0bb6ed81499308cf6c07cf48d9/bosh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
7332,
812,
12,
2890,
16,
2272,
812,
16,
945,
1739,
87,
4672,
3536,
7543,
358,
1640,
1269,
4729,
681,
18,
4826,
4186,
854,
2566,
1839,
333,
12123,
12042,
264,
18,
2738,
7332,
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,
1208,
7332,
812,
12,
2890,
16,
2272,
812,
16,
945,
1739,
87,
4672,
3536,
7543,
358,
1640,
1269,
4729,
681,
18,
4826,
4186,
854,
2566,
1839,
333,
12123,
12042,
264,
18,
2738,
7332,
812,
... |
dbg = "changed" | action = "changed" | def trace (message): if classname == trace_type and peer_object_id in trace_ids: message_verbose('TRACE>>'+message) | be959d0158ffaff6d50158269f03ba7f2c1da56f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/be959d0158ffaff6d50158269f03ba7f2c1da56f/RefreshPeer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
261,
2150,
4672,
309,
7479,
422,
2606,
67,
723,
471,
4261,
67,
1612,
67,
350,
316,
2606,
67,
2232,
30,
883,
67,
11369,
2668,
23827,
34,
1870,
15,
2150,
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,
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,
2606,
261,
2150,
4672,
309,
7479,
422,
2606,
67,
723,
471,
4261,
67,
1612,
67,
350,
316,
2606,
67,
2232,
30,
883,
67,
11369,
2668,
23827,
34,
1870,
15,
2150,
13,
2,
-100,
-100,
-100,
... |
SnglInspiralUtils.slideTriggersOnRingWithVector(coinc_table, shift_vector, rings) full_coinc_table.extend(CoincInspiralUtils.coincInspiralTable(coinc_table,coinc_stat)) | if coinc_table: SnglInspiralUtils.slideTriggersOnRingWithVector(coinc_table, shift_vector, rings) full_coinc_table.extend(CoincInspiralUtils.coincInspiralTable(coinc_table,coinc_stat)) | def get_slide_coincs_from_cache(cachefile, pattern, match, verb, coinc_stat): full_coinc_table = [] cache = cachefile.sieve(description=pattern, exact_match=match) found, missed = cache.checkfilesexist() files = found.pfnlist() if not len(files): print >>sys.stderr, "cache contains no files with " + pattern + " descrip... | aed93675e7c21fd160552ea2c618ccd4bbc4f44f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/aed93675e7c21fd160552ea2c618ccd4bbc4f44f/pylal_ihope_to_randomforest_input.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26371,
67,
12645,
2143,
67,
2080,
67,
2493,
12,
2493,
768,
16,
1936,
16,
845,
16,
6405,
16,
13170,
71,
67,
5642,
4672,
1983,
67,
12645,
71,
67,
2121,
273,
5378,
1247,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26371,
67,
12645,
2143,
67,
2080,
67,
2493,
12,
2493,
768,
16,
1936,
16,
845,
16,
6405,
16,
13170,
71,
67,
5642,
4672,
1983,
67,
12645,
71,
67,
2121,
273,
5378,
1247,
273,
1... |
simu.step( [ | simu.evolve( [ | def testRecIntensity(self): 'Testing recombination intensity' if AlleleType() == 'binary': a1, a2 = 0, 1 else: a1, a2 = 1, 2 pop = population(10000, loci=[2,3,2], lociPos=[0,1,0,2,4,0,4] ) InitByValue(pop, value=[a1]*7+[a2]*7) simu = simulator(pop, randomMating()) simu.step( [ stat( haploFreq = [[0,1], [2,3], [3,4], [4... | baf037833eb6d8e211103acc78e7dc0ee60aed65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/baf037833eb6d8e211103acc78e7dc0ee60aed65/test_14_recombination.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5650,
27786,
12,
2890,
4672,
296,
22218,
283,
9301,
1735,
16551,
11,
309,
4826,
6516,
559,
1435,
422,
296,
8578,
4278,
279,
21,
16,
279,
22,
273,
374,
16,
404,
469,
30,
279,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5650,
27786,
12,
2890,
4672,
296,
22218,
283,
9301,
1735,
16551,
11,
309,
4826,
6516,
559,
1435,
422,
296,
8578,
4278,
279,
21,
16,
279,
22,
273,
374,
16,
404,
469,
30,
279,
21,
... |
self.archive.checkpoint( cptype = 'end_cmd' ) self.remake_UI_menuitems() | self.checkpoint( cptype = 'end_cmd' ) | def undo_checkpoint_after_command(self, begin_retval): assert begin_retval in [False, True], "begin_retval should not be %r" % (begin_retval,) if begin_retval: # this means [as of 060123] that debug pref for undo checkpointing is enabled if undo_archive.debug_undo2: env.history.message(" debug_undo2: end_cmd_checkpoin... | 14610f45a63a322f0c889782e4d4f8d3fb0ca33f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/14610f45a63a322f0c889782e4d4f8d3fb0ca33f/undo_manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15436,
67,
25414,
67,
5205,
67,
3076,
12,
2890,
16,
2376,
67,
18341,
4672,
1815,
2376,
67,
18341,
316,
306,
8381,
16,
1053,
6487,
315,
10086,
67,
18341,
1410,
486,
506,
738,
86,
6,
738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15436,
67,
25414,
67,
5205,
67,
3076,
12,
2890,
16,
2376,
67,
18341,
4672,
1815,
2376,
67,
18341,
316,
306,
8381,
16,
1053,
6487,
315,
10086,
67,
18341,
1410,
486,
506,
738,
86,
6,
738... |
sage: slider([1..10], None, None, 3, 'alpha') Slider: alpha [1--|3|---10] The elements of the list can be anything: sage: slider([1, 'x', 'abc', 2/3], None, None, 'x', 'alpha') Slider: alpha [1--|x|---2/3] | sage: range_slider([1..10], None, None, (3,7), 'alpha') Range Slider: alpha [1--|3==7|---10] | def __init__(self, vmin, vmax=None, step_size=1, default=None, label=None, display_value=True): r""" An interactive slider control, which can be used in conjunction with the interact command. | 84810e20828637dc0c5b540b9d08853b9f0c31da /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/84810e20828637dc0c5b540b9d08853b9f0c31da/interact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
17501,
16,
17831,
33,
7036,
16,
2235,
67,
1467,
33,
21,
16,
805,
33,
7036,
16,
1433,
33,
7036,
16,
2562,
67,
1132,
33,
5510,
4672,
436,
8395,
1922,
126... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
17501,
16,
17831,
33,
7036,
16,
2235,
67,
1467,
33,
21,
16,
805,
33,
7036,
16,
1433,
33,
7036,
16,
2562,
67,
1132,
33,
5510,
4672,
436,
8395,
1922,
126... |
self.tree = gtk.glade.XML(find_path("arkadas.glade")) | self.tree = gtk.glade.XML(find_path(os.path.join("arkadas", "arkadas.glade"))) | def __init__(self): gtk.window_set_default_icon_name("address-book") self.tree = gtk.glade.XML(find_path("arkadas.glade")) | 5834dcbeccd319d07bf05dd1612868286771ce25 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/5834dcbeccd319d07bf05dd1612868286771ce25/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
5668,
67,
542,
67,
1886,
67,
3950,
67,
529,
2932,
2867,
17,
3618,
7923,
365,
18,
3413,
273,
22718,
18,
7043,
2486,
18,
4201,
12,
4720,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
5668,
67,
542,
67,
1886,
67,
3950,
67,
529,
2932,
2867,
17,
3618,
7923,
365,
18,
3413,
273,
22718,
18,
7043,
2486,
18,
4201,
12,
4720,
67,
... |
debug(repr(auth)) | def authenticate(self, anon=True): """ Authenticate to the server """ if anon: try: self.client.auth(None, "", self.resource) return True except TypeError: self.handler.emit('error', msg=_('Error: Could not \ authenticate. Please make sure the server you chose \ (%s) supports anonymous authentication' % (config.get('se... | 124b7ebf49d088815c893af62000008f3910db43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/124b7ebf49d088815c893af62000008f3910db43/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8929,
12,
2890,
16,
30637,
33,
5510,
4672,
3536,
26644,
358,
326,
1438,
3536,
309,
30637,
30,
775,
30,
365,
18,
2625,
18,
1944,
12,
7036,
16,
23453,
365,
18,
3146,
13,
327,
1053,
1335,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8929,
12,
2890,
16,
30637,
33,
5510,
4672,
3536,
26644,
358,
326,
1438,
3536,
309,
30637,
30,
775,
30,
365,
18,
2625,
18,
1944,
12,
7036,
16,
23453,
365,
18,
3146,
13,
327,
1053,
1335,... | |
def __init__(self, external_fd={}, *args, **kargs): | def __init__(self, *args, **kargs): external_fd = kargs.pop("external_fd",{}) | def __init__(self, external_fd={}, *args, **kargs): self.started = thread.allocate_lock() self.threadid = None self.breakpointed = None self.breakpoints = set() self.interception_points = set() self.intercepted_packet = None self.debug_level=0 self.init_args=args self.init_kargs=kargs self.io = type.__new__(type, "IOna... | 3f60225a2a77d7aba1acb6c4854304a9a5f40b3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/3f60225a2a77d7aba1acb6c4854304a9a5f40b3e/automaton.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
3903,
67,
8313,
273,
25916,
18,
5120,
2932,
9375,
67,
8313,
3113,
2916,
13,
365,
18,
14561,
273,
2650,
18,
16247,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
3903,
67,
8313,
273,
25916,
18,
5120,
2932,
9375,
67,
8313,
3113,
2916,
13,
365,
18,
14561,
273,
2650,
18,
16247,
67... |
node['refuri'] = self.fix_fragment(m) | node['refuri'] = self.fix_fragment(m.group(1), m.group(2)) | def fix_ids(self, tree): """Replace colons with hyphens in href and id attributes. Some readers crash because they interpret the part as a transport protocol specification. """ for node in tree.traverse(nodes.reference): if 'refuri' in node: m = _refuri_re.match(node['refuri']) if m: node['refuri'] = self.fix_fragment(... | e76daad195e3ac6a45ae9fd27a6d086118c396b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/e76daad195e3ac6a45ae9fd27a6d086118c396b3/epub.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
2232,
12,
2890,
16,
2151,
4672,
3536,
5729,
645,
7008,
598,
4855,
28776,
316,
3897,
471,
612,
1677,
18,
10548,
16527,
17053,
2724,
2898,
10634,
326,
1087,
487,
279,
4736,
1771,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
2232,
12,
2890,
16,
2151,
4672,
3536,
5729,
645,
7008,
598,
4855,
28776,
316,
3897,
471,
612,
1677,
18,
10548,
16527,
17053,
2724,
2898,
10634,
326,
1087,
487,
279,
4736,
1771,
... |
def _StartInstanceDisks(cfg, instance, force): | def _StartInstanceDisks(lu, instance, force): | def _StartInstanceDisks(cfg, instance, force): """Start the disks of an instance. """ disks_ok, dummy = _AssembleInstanceDisks(instance, cfg, ignore_secondaries=force) if not disks_ok: _ShutdownInstanceDisks(instance, cfg) if force is not None and not force: logger.Error("If the message above refers to a secondary nod... | b9bddb6bdf7ac5841c732845ce0122c64bb026b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/b9bddb6bdf7ac5841c732845ce0122c64bb026b1/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1685,
1442,
22021,
12,
28832,
16,
791,
16,
2944,
4672,
3536,
1685,
326,
17164,
434,
392,
791,
18,
225,
3536,
17164,
67,
601,
16,
9609,
273,
389,
1463,
10045,
1442,
22021,
12,
1336,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1685,
1442,
22021,
12,
28832,
16,
791,
16,
2944,
4672,
3536,
1685,
326,
17164,
434,
392,
791,
18,
225,
3536,
17164,
67,
601,
16,
9609,
273,
389,
1463,
10045,
1442,
22021,
12,
1336,
... |
return namespace['config'] | return namespace | def readconfig(): """Read a configuration file, if it doesn't exist create it.""" configname = sys.argv[0] + '.config' if not os.path.exists(configname): confstr = """config = [ ("^.*\.cp$", ":unweave-src"), ("^.*\.h$", ":unweave-include"), | c83e7d15600dd57cc3f38f6ce85ee52b5f633816 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c83e7d15600dd57cc3f38f6ce85ee52b5f633816/unweave.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1425,
13332,
3536,
1994,
279,
1664,
585,
16,
309,
518,
3302,
1404,
1005,
752,
518,
12123,
642,
529,
273,
2589,
18,
19485,
63,
20,
65,
397,
2418,
1425,
11,
309,
486,
1140,
18,
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,
855,
1425,
13332,
3536,
1994,
279,
1664,
585,
16,
309,
518,
3302,
1404,
1005,
752,
518,
12123,
642,
529,
273,
2589,
18,
19485,
63,
20,
65,
397,
2418,
1425,
11,
309,
486,
1140,
18,
803,... |
Format file %s because the program cannot convert the header field \ DataType into an integer.""" % filename) | Format file %s because the program can only open edf data if the \ DataType field is set to "UnsignedLong" or "UnsignedShort". \ This is to say that the program can only read ESRF Data that is stored as 2 or 4 byte integers.""" % filename) | def __init__(self,filename): | 8e8550b948a5fdf7a95090ce286048c2e73f06d7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8973/8e8550b948a5fdf7a95090ce286048c2e73f06d7/ESRF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3459,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3459,
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... |
self.contents = self.buffer | self.contents.append(self.buffer) | def found_terminator(self): #print "Received:", repr(self.buffer) self.contents = self.buffer self.buffer = "" self.close() | 9347fd3b7b57e7415ecff64950d99accfc0f5198 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/9347fd3b7b57e7415ecff64950d99accfc0f5198/test_asynchat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1392,
67,
9505,
639,
12,
2890,
4672,
468,
1188,
315,
8872,
2773,
16,
8480,
12,
2890,
18,
4106,
13,
2890,
18,
3980,
18,
6923,
12,
2890,
18,
4106,
13,
365,
18,
4106,
273,
1408,
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,
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,
1392,
67,
9505,
639,
12,
2890,
4672,
468,
1188,
315,
8872,
2773,
16,
8480,
12,
2890,
18,
4106,
13,
2890,
18,
3980,
18,
6923,
12,
2890,
18,
4106,
13,
365,
18,
4106,
273,
1408,
365,
18... |
'filters': {'group_updates': False} }), | 'group_updates': False, 'filters': {'group_updates': False} }), | def _sort(a,b): return cmp(int(b['version']), int(a['version'])) | 9e1d7d7d0a399642a67a2d5a7f25942bd3532146 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12732/9e1d7d7d0a399642a67a2d5a7f25942bd3532146/root.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3804,
12,
69,
16,
70,
4672,
327,
9411,
12,
474,
12,
70,
3292,
1589,
3546,
3631,
509,
12,
69,
3292,
1589,
3546,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
3804,
12,
69,
16,
70,
4672,
327,
9411,
12,
474,
12,
70,
3292,
1589,
3546,
3631,
509,
12,
69,
3292,
1589,
3546,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if hasattr(res, 'section'): | if hasattr(res, 'section_id'): | def email_forward(self, cr, uid, model, res_ids, msg, email_error=False, context=None): """Sends an email to all people following the thread @param res_id: Id of the record of OpenObject model created from the email message @param msg: email.message.Message to forward @param email_error: Default Email address in case o... | ff0e181c263e871d5c1c3ae10c06c6a7a3f7da7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ff0e181c263e871d5c1c3ae10c06c6a7a3f7da7b/mail_gateway.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2699,
67,
11565,
12,
2890,
16,
4422,
16,
4555,
16,
938,
16,
400,
67,
2232,
16,
1234,
16,
2699,
67,
1636,
33,
8381,
16,
819,
33,
7036,
4672,
3536,
10501,
392,
2699,
358,
777,
16951,
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,
2699,
67,
11565,
12,
2890,
16,
4422,
16,
4555,
16,
938,
16,
400,
67,
2232,
16,
1234,
16,
2699,
67,
1636,
33,
8381,
16,
819,
33,
7036,
4672,
3536,
10501,
392,
2699,
358,
777,
16951,
3... |
'%s commit -m "%s" ..\\Menu\\images\\header.gif' % (CVS, VERSION). | '%s commit -m "%s" ..\\Menu\\images\\header.gif' % (CVS, VERSION), | def confirm(question): print question if raw_input() != 'y': sys.exit(2) | bf79a2c47c9fa7705ae87215e4ea52d5152bfa6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7064/bf79a2c47c9fa7705ae87215e4ea52d5152bfa6f/release.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6932,
12,
4173,
4672,
1172,
5073,
309,
1831,
67,
2630,
1435,
480,
296,
93,
4278,
2589,
18,
8593,
12,
22,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6932,
12,
4173,
4672,
1172,
5073,
309,
1831,
67,
2630,
1435,
480,
296,
93,
4278,
2589,
18,
8593,
12,
22,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.out.append( '\\begin{verbatim}' ) self.verbatim = 1 | self.visit_literal_block(node) | def visit_doctest_block(self, node): self.out.append( '\\begin{verbatim}' ) self.verbatim = 1 | 318db562568679951d3a657174991c17a02397f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/318db562568679951d3a657174991c17a02397f7/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2896,
299,
395,
67,
2629,
12,
2890,
16,
756,
4672,
365,
18,
659,
18,
6923,
12,
3718,
10086,
95,
16629,
22204,
1713,
262,
365,
18,
16629,
22204,
273,
404,
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,
3757,
67,
2896,
299,
395,
67,
2629,
12,
2890,
16,
756,
4672,
365,
18,
659,
18,
6923,
12,
3718,
10086,
95,
16629,
22204,
1713,
262,
365,
18,
16629,
22204,
273,
404,
2,
-100,
-100,
-100,... |
if not self.file_browser.set_active_dir(self.active_dir): | if not self.file_browser.check_active_dir(self.active_dir): | def __init__(self, rootdir=None, startdir=None): | 6f9f2c0f8d93d8b9b366e6ac9e4d614dd02826f9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/735/6f9f2c0f8d93d8b9b366e6ac9e4d614dd02826f9/pyrenamer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1365,
1214,
33,
7036,
16,
787,
1214,
33,
7036,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1365,
1214,
33,
7036,
16,
787,
1214,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
except: | except KeyError: | def _resume_populate(self): '''Gather a group of TwitterUsers. Tries to choose a highly interconnected group. Picks up where a previous _populate() call stopped''' while self._node_pool and len(self._community_members) < self._max_population: #choose person on list with highest interconnection #first 0 at end of line i... | c33cd1bf5ff4b97d6c7130c212b3535e6d40e41c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14113/c33cd1bf5ff4b97d6c7130c212b3535e6d40e41c/populate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
25158,
67,
19936,
12,
2890,
4672,
9163,
26092,
279,
1041,
434,
19551,
6588,
18,
10000,
281,
358,
9876,
279,
3551,
715,
1554,
8537,
1041,
18,
453,
20642,
731,
1625,
279,
2416,
389,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25158,
67,
19936,
12,
2890,
4672,
9163,
26092,
279,
1041,
434,
19551,
6588,
18,
10000,
281,
358,
9876,
279,
3551,
715,
1554,
8537,
1041,
18,
453,
20642,
731,
1625,
279,
2416,
389,
1... |
u'...' | '...' | def test_testfile(): r""" | b1a9f2772ba21f268a8164908714e5a106be50d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/b1a9f2772ba21f268a8164908714e5a106be50d1/test_doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3813,
768,
13332,
436,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3813,
768,
13332,
436,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
print "vfs_read_directory", handle, file_info, context | print "vfs_read_directory", handle, context | def vfs_read_directory(self, handle, file_info, context): print "vfs_read_directory", handle, file_info, context handle.read_dir(file_info) | d9972c47e5ea086a6442f92d1a8b4286d89ab02b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2587/d9972c47e5ea086a6442f92d1a8b4286d89ab02b/bluetooth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20682,
67,
896,
67,
5149,
12,
2890,
16,
1640,
16,
585,
67,
1376,
16,
819,
4672,
1172,
315,
90,
2556,
67,
896,
67,
5149,
3113,
1640,
16,
819,
1640,
18,
896,
67,
1214,
12,
768,
67,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20682,
67,
896,
67,
5149,
12,
2890,
16,
1640,
16,
585,
67,
1376,
16,
819,
4672,
1172,
315,
90,
2556,
67,
896,
67,
5149,
3113,
1640,
16,
819,
1640,
18,
896,
67,
1214,
12,
768,
67,
1... |
return (SVNNOWORKINGFOLDER); | return (SVNNOWORKINGFOLDER, ""); | def testWorkingFolder(location, url): client = pysvn.Client() try: if path.isdir(location): locationUrl = client.info(location).url; if url==locationUrl: return (SVNURLSAME); else: return (SVNURLDIFF, locationurl); elif path.exists(location): return (SVNWORKINGFOLDERISFILE); else: return (SVNNOWORKINGFOLDER); except py... | d6f14dbf990e7be58d6013fcf94ded9e07f52cd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4259/d6f14dbf990e7be58d6013fcf94ded9e07f52cd0/svn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
14836,
3899,
12,
3562,
16,
880,
4672,
1004,
273,
21027,
25031,
18,
1227,
1435,
775,
30,
309,
589,
18,
291,
1214,
12,
3562,
4672,
2117,
1489,
273,
1004,
18,
1376,
12,
3562,
2934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14836,
3899,
12,
3562,
16,
880,
4672,
1004,
273,
21027,
25031,
18,
1227,
1435,
775,
30,
309,
589,
18,
291,
1214,
12,
3562,
4672,
2117,
1489,
273,
1004,
18,
1376,
12,
3562,
2934,
... |
def nooutput(*args): pass | def shortDescription(self): return "Doctest: " + self._dt_test.name | cbc966784c40379a497d47f64c6966c873b21087 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cbc966784c40379a497d47f64c6966c873b21087/doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3025,
3291,
12,
2890,
4672,
327,
315,
3244,
299,
395,
30,
315,
397,
365,
6315,
7510,
67,
3813,
18,
529,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3025,
3291,
12,
2890,
4672,
327,
315,
3244,
299,
395,
30,
315,
397,
365,
6315,
7510,
67,
3813,
18,
529,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
Returns a string describing self. EXAMPLES: We explicitly construct the alternating group on four | Returns a string describing ``self``. EXAMPLES: We explicitly construct the alternating group on four | def _repr_(self): r""" Returns a string describing self. EXAMPLES: We explicitly construct the alternating group on four elements. Note that the ``AlternatingGroup`` class has its own representation string. :: sage: A4 = PermutationGroup([[(1,2,3)],[(2,3,4)]]); A4 Permutation Group with generators [(2,3,4), (1,2,3)]... | 1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
436,
8395,
2860,
279,
533,
16868,
12176,
2890,
68,
8338,
225,
5675,
8900,
11386,
30,
225,
1660,
8122,
4872,
326,
6416,
1776,
1041,
603,
12792,
2186,
18,
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,
12715,
67,
12,
2890,
4672,
436,
8395,
2860,
279,
533,
16868,
12176,
2890,
68,
8338,
225,
5675,
8900,
11386,
30,
225,
1660,
8122,
4872,
326,
6416,
1776,
1041,
603,
12792,
2186,
18,
3... |
return self.childFactories[name] class LivePageChildDispatcher(object): """ LivePageChildDispatcher handles dispatching child requests to other LivePage subclasses by persisting their LivePageFactory instances on the parent factory. """ liveChildren = {} def childFactory(self, ctx, name): if name in self.liveChildren... | return self.childFactories[name] class XULPage(athena.LivePage): | def getChildFactory(self, name, LivePageClass, FactoryClass=athena.LivePageFactory, *args, **kwargs): if not name in self.childFactories: self.childFactories[name] = FactoryClass(LivePageClass, *args, **kwargs) return self.childFactories[name] | c1087228d9acc5fc96b564b09c303103dd246aee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2333/c1087228d9acc5fc96b564b09c303103dd246aee/xul.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8154,
1733,
12,
2890,
16,
508,
16,
21559,
1964,
797,
16,
7822,
797,
33,
421,
24457,
18,
12328,
1964,
1733,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
486,
508,
316,
365,
18,
3624,
19271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8154,
1733,
12,
2890,
16,
508,
16,
21559,
1964,
797,
16,
7822,
797,
33,
421,
24457,
18,
12328,
1964,
1733,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
486,
508,
316,
365,
18,
3624,
19271... |
if BASEmatch(key) >= 0 and other.has_key('URL'): | if key[:1]=='B' and BASEmatch(key) >= 0 and other.has_key('URL'): | def __getitem__(self,key, URLmatch=regex.compile('URL[0-9]$').match, BASEmatch=regex.compile('BASE[0-9]$').match, ): | 6e60c63abb35f639b7efc369be01caf096484aa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/6e60c63abb35f639b7efc369be01caf096484aa1/Publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
856,
16,
1976,
1916,
33,
7584,
18,
11100,
2668,
1785,
63,
20,
17,
29,
65,
9227,
2934,
1916,
16,
10250,
1916,
33,
7584,
18,
11100,
2668,
8369,
63,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
856,
16,
1976,
1916,
33,
7584,
18,
11100,
2668,
1785,
63,
20,
17,
29,
65,
9227,
2934,
1916,
16,
10250,
1916,
33,
7584,
18,
11100,
2668,
8369,
63,
20,
... |
listString = listString + "*[[%s]] -- [[%s]]\n" % (article.title(), article.toggleTalkPage().title()) | listString = listString + "*[[%s]] -- [[%s|talk]]\n" % (article.title(), article.toggleTalkPage().title()) | def run(self): listOfArticles = self.cat.articlesList() if self.subCats: listOfArticles += self.cat.subcategoriesList() if self.editSummary: wikipedia.setAction(self.editSummary) else: wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), self.listify_msg) % (self.cat.title(), len(listOfArticles))) | 096f685d863e7a47029b7095b4d07374284c24e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/096f685d863e7a47029b7095b4d07374284c24e2/category.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
24692,
19001,
273,
365,
18,
2574,
18,
16462,
682,
1435,
309,
365,
18,
1717,
39,
2323,
30,
24692,
19001,
1011,
365,
18,
2574,
18,
1717,
8995,
682,
1435,
309,
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,
1086,
12,
2890,
4672,
24692,
19001,
273,
365,
18,
2574,
18,
16462,
682,
1435,
309,
365,
18,
1717,
39,
2323,
30,
24692,
19001,
1011,
365,
18,
2574,
18,
1717,
8995,
682,
1435,
309,
365,
... |
return np.abs(fft.fft(self.ma, n) / fft.fft(self.ar, n))[n//2-1:] | hw = fft.fft(self.ma, n) / fft.fft(self.ar, n) w = fft.fftfreq(n) wslice = slice(n//2-1, None, None) return (np.abs(hw)**2)[wslice], w[wslice] | def spddirect(self, n): #size = s1+s2-1 #abs looks wrong return np.abs(fft.fft(self.ma, n) / fft.fft(self.ar, n))[n//2-1:] | 684b683042373c8b8942d6959a27ab65aeed7ee5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/684b683042373c8b8942d6959a27ab65aeed7ee5/fftarma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1694,
449,
867,
12,
2890,
16,
290,
4672,
468,
1467,
273,
272,
21,
15,
87,
22,
17,
21,
468,
5113,
10192,
7194,
327,
1130,
18,
5113,
12,
25174,
18,
25174,
12,
2890,
18,
2540,
16,
290,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1694,
449,
867,
12,
2890,
16,
290,
4672,
468,
1467,
273,
272,
21,
15,
87,
22,
17,
21,
468,
5113,
10192,
7194,
327,
1130,
18,
5113,
12,
25174,
18,
25174,
12,
2890,
18,
2540,
16,
290,
... |
if self.closed: raise ValueError, "I/O operation on closed file" | _complain_ifclosed(self.closed) | def seek(self, pos, mode = 0): if self.closed: raise ValueError, "I/O operation on closed file" if self.buflist: self.buf += ''.join(self.buflist) self.buflist = [] if mode == 1: pos += self.pos elif mode == 2: pos += self.len self.pos = max(0, pos) | 9e62ff287bf9e4c39fb9654b0bb0f3c9b523d459 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9e62ff287bf9e4c39fb9654b0bb0f3c9b523d459/StringIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6520,
12,
2890,
16,
949,
16,
1965,
273,
374,
4672,
389,
832,
7446,
67,
430,
12204,
12,
2890,
18,
12204,
13,
309,
365,
18,
4385,
1098,
30,
365,
18,
4385,
1011,
875,
18,
5701,
12,
2890... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6520,
12,
2890,
16,
949,
16,
1965,
273,
374,
4672,
389,
832,
7446,
67,
430,
12204,
12,
2890,
18,
12204,
13,
309,
365,
18,
4385,
1098,
30,
365,
18,
4385,
1011,
875,
18,
5701,
12,
2890... |
for notificationObject in snmpTrapOid.getObjects(): | for notificationObject in snmpTrapVal.getObjects(): | def sendNotification( self, snmpEngine, notificationTarget, notificationName, additionalVarBinds=None, contextName='' ): # 3.3 ( notifyTag, notifyType ) = config.getNotificationInfo( snmpEngine, notificationTarget ) contextMibInstrumCtl = self.__context.getMibInstrum( contextName ) for targetAddrName in config.getTarge... | beac2b8a85446ea9e67020370cf82edea825ab65 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/beac2b8a85446ea9e67020370cf82edea825ab65/ntforg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4386,
12,
365,
16,
15366,
4410,
16,
3851,
2326,
16,
3851,
461,
16,
3312,
1537,
17856,
33,
7036,
16,
819,
461,
2218,
11,
262,
30,
468,
890,
18,
23,
261,
5066,
1805,
16,
5066,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4386,
12,
365,
16,
15366,
4410,
16,
3851,
2326,
16,
3851,
461,
16,
3312,
1537,
17856,
33,
7036,
16,
819,
461,
2218,
11,
262,
30,
468,
890,
18,
23,
261,
5066,
1805,
16,
5066,
55... |
default_setup_args = [ '--tests-pattern', '^tests$', '--at-level', '1', '--ignore', '.svn', '--ignore', 'CVS', '--ignore', '{arch}', '--ignore', '.arch-ids', '--ignore', '_darcs', '--test-file-pattern', '^test', '--suite-name', 'test_suite', ] | def merge_options(options, defaults): odict = options.__dict__ for name, value in defaults.__dict__.items(): if (value is not None) and (odict[name] is None): odict[name] = value | d7279b410b19b1663e2cdd24c2dbea97a7cc284e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10007/d7279b410b19b1663e2cdd24c2dbea97a7cc284e/options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
2116,
12,
2116,
16,
3467,
4672,
320,
1576,
273,
702,
16186,
1576,
972,
364,
508,
16,
460,
316,
3467,
16186,
1576,
25648,
3319,
13332,
309,
261,
1132,
353,
486,
599,
13,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
2116,
12,
2116,
16,
3467,
4672,
320,
1576,
273,
702,
16186,
1576,
972,
364,
508,
16,
460,
316,
3467,
16186,
1576,
25648,
3319,
13332,
309,
261,
1132,
353,
486,
599,
13,
471,
... | |
def view_diff_for_path(self, url, revision_number, sidebyside=False): | def view_diff_for_path(self, url, latest_revision_number, earliest_revision_number=None, sidebyside=False): | def view_diff_for_path(self, url, revision_number, sidebyside=False): from rabbitvcs.ui.diff import SVNDiff | 254cf90c673c32fc3faafcde068598e8de07eeee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/254cf90c673c32fc3faafcde068598e8de07eeee/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
67,
5413,
67,
1884,
67,
803,
12,
2890,
16,
880,
16,
4891,
67,
13057,
67,
2696,
16,
20674,
67,
13057,
67,
2696,
33,
7036,
16,
4889,
1637,
5564,
33,
8381,
4672,
628,
767,
70,
368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1476,
67,
5413,
67,
1884,
67,
803,
12,
2890,
16,
880,
16,
4891,
67,
13057,
67,
2696,
16,
20674,
67,
13057,
67,
2696,
33,
7036,
16,
4889,
1637,
5564,
33,
8381,
4672,
628,
767,
70,
368... |
self._imagedata.width, self._imagedata.height, 1, 4, backend.TEXTURE_RGB_FLAG_BGR) | width, height, width*4, 4, backend.TEXTURE_RGB_FLAG_BGR) | def _candy_render(self): """ Render the widget """ if self._obj is None: self._obj = backend.Texture() self._obj.show() self._obj.set_size(self.inner_width, self.inner_height) if 'size' in self._sync_properties or self.__keep_aspect: width, height = self.inner_width, self.inner_height if self.__keep_aspect and self._im... | 4468d1b4d54f683178f0f586c66b92a153ff17ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11702/4468d1b4d54f683178f0f586c66b92a153ff17ab/image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
71,
464,
93,
67,
5902,
12,
2890,
4672,
3536,
6987,
326,
3604,
3536,
309,
365,
6315,
2603,
353,
599,
30,
365,
6315,
2603,
273,
4221,
18,
10967,
1435,
365,
6315,
2603,
18,
4500,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
464,
93,
67,
5902,
12,
2890,
4672,
3536,
6987,
326,
3604,
3536,
309,
365,
6315,
2603,
353,
599,
30,
365,
6315,
2603,
273,
4221,
18,
10967,
1435,
365,
6315,
2603,
18,
4500,
143... |
class DbInvocation(db.Model): who = db.ReferenceProperty(DbUser) | class AppEngineDbInvocation(db.Model): who = db.ReferenceProperty(AppEngineDbUser) | def __init__(self): bulkloader.Exporter.__init__(self, 'DbUser', [ ('__key__', lambda x: x.to_path()[1], None), ('email', str, None) ]) | f52986380d28d283aa7e99a55fe860d0af45b9b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10256/f52986380d28d283aa7e99a55fe860d0af45b9b6/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
8280,
6714,
18,
22305,
16186,
2738,
972,
12,
2890,
16,
296,
4331,
1299,
2187,
306,
7707,
972,
856,
972,
2187,
3195,
619,
30,
619,
18,
869,
67,
803,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
4672,
8280,
6714,
18,
22305,
16186,
2738,
972,
12,
2890,
16,
296,
4331,
1299,
2187,
306,
7707,
972,
856,
972,
2187,
3195,
619,
30,
619,
18,
869,
67,
803,
143... |
""" @param *args: For Positional Argument @param **args: For Keyword Argument """ | """ @param *args: For Positional Argument @param **args: For Keyword Argument """ | def _datatypes_get(self, *args, **argv): | 1dc268e357fe6ce10746aa6f778e8fad1db095de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1dc268e357fe6ce10746aa6f778e8fad1db095de/olap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3404,
13373,
67,
588,
12,
2890,
16,
380,
1968,
16,
2826,
19485,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3404,
13373,
67,
588,
12,
2890,
16,
380,
1968,
16,
2826,
19485,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def table_clicked(obj, it, *args, **kwargs): | def table_clicked(obj, it): | def table_clicked(obj, it, *args, **kwargs): win = elementary.Window("table", elementary.ELM_WIN_BASIC) win.title_set("Table") win.autodel_set(True) bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bg.show() tb = elementary.Table(win) win.... | ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1014,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
2121,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
1388,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1014,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
2121,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
1388,
... |
- [1] Sampo Niskanen and Patric R. J. Östergård, "Cliquer User's Guide, Version 1.0," Communications Laboratory, Helsinki University of Technology, Espoo, Finland, Tech. Rep. T48, 2003. | .. [NisOst2003] Sampo Niskanen and Patric R. J. Ostergard, "Cliquer User's Guide, Version 1.0," Communications Laboratory, Helsinki University of Technology, Espoo, Finland, Tech. Rep. T48, 2003. | def cliques_maximum(self): """ Returns the list of all maximum cliques, with each clique represented by a list of vertices. A clique is an induced complete subgraph, and a maximum clique is one of maximal order. | 1644d37e4f8e20b5c9168d90a5d10b62d68e496b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1644d37e4f8e20b5c9168d90a5d10b62d68e496b/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
15724,
12,
2890,
4672,
3536,
2860,
326,
666,
434,
777,
4207,
4942,
29896,
16,
598,
1517,
31380,
10584,
635,
279,
666,
434,
6928,
18,
432,
31380,
353,
392,
1547,
26372,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
15724,
12,
2890,
4672,
3536,
2860,
326,
666,
434,
777,
4207,
4942,
29896,
16,
598,
1517,
31380,
10584,
635,
279,
666,
434,
6928,
18,
432,
31380,
353,
392,
1547,
26372,
3... |
ymin = self.axisScaleDiv(yAxis).lBound() ymax = self.axisScaleDiv(yAxis).hBound() | if QWT_VERSION < 0x050200: ymin = self.axisScaleDiv(yAxis).lBound() ymax = self.axisScaleDiv(yAxis).hBound() else: ymin = self.axisScaleDiv(yAxis).lowerBound() ymax = self.axisScaleDiv(yAxis).upperBound() | def gracePlot(self, saveall="", pause=0.2): """Clone the plot into Grace for very high quality hard copy output. | 6f03bbbb422c60c614fe1273bf968db3efcf71df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5650/6f03bbbb422c60c614fe1273bf968db3efcf71df/qplt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13658,
11532,
12,
2890,
16,
1923,
454,
1546,
3113,
11722,
33,
20,
18,
22,
4672,
3536,
10930,
326,
3207,
1368,
611,
9963,
364,
8572,
3551,
9312,
7877,
1610,
876,
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,
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,
13658,
11532,
12,
2890,
16,
1923,
454,
1546,
3113,
11722,
33,
20,
18,
22,
4672,
3536,
10930,
326,
3207,
1368,
611,
9963,
364,
8572,
3551,
9312,
7877,
1610,
876,
18,
2,
-100,
-100,
-100,
... |
raise CfgFileException, ('basefile', self.name) | raise CfgFileException, ('basefile', name) | def GetConfigFile(self, entry, metadata): name = entry.attrib['name'] filedata = "" # first find basefile try: basefile = filter(lambda x:x.Applies(metadata), self.basefiles)[0] except IndexError: raise CfgFileException, ('basefile', self.name) filedata += basefile.data | 853220b7567cb814567d38bf7d0924fd4ebd2d1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/853220b7567cb814567d38bf7d0924fd4ebd2d1c/cfg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
13705,
12,
2890,
16,
1241,
16,
1982,
4672,
508,
273,
1241,
18,
14588,
3292,
529,
3546,
585,
892,
273,
1408,
468,
1122,
1104,
1026,
768,
775,
30,
1026,
768,
273,
1034,
12,
14661,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
13705,
12,
2890,
16,
1241,
16,
1982,
4672,
508,
273,
1241,
18,
14588,
3292,
529,
3546,
585,
892,
273,
1408,
468,
1122,
1104,
1026,
768,
775,
30,
1026,
768,
273,
1034,
12,
14661,
6... |
self.active_desktop.add_client(client) | self.add_client(client) def add_client(self, client): """ add a client. if the window as a _NET_WM_DESKTOP example, respect it, otherwise place it on the active desktop. """ desktop = self.active_desktop reply = client.window.get_property('_NET_WM_DESKTOP', 'CARDINAL').reply() if reply.exists: desktop_idx = reply.val... | def on_new_client(self, screen, client): #data = ClientData(self.active_desktop, client) #...attach_data_to(client, data) self.active_desktop.add_client(client) # TODO: focus it? self.active_desktop.rearrange() | a3dd52e8142bf465fe2f898277e402fc2adecbe1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/a3dd52e8142bf465fe2f898277e402fc2adecbe1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
2704,
67,
2625,
12,
2890,
16,
5518,
16,
1004,
4672,
468,
892,
273,
2445,
751,
12,
2890,
18,
3535,
67,
31949,
16,
1004,
13,
468,
2777,
7331,
67,
892,
67,
869,
12,
2625,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
2704,
67,
2625,
12,
2890,
16,
5518,
16,
1004,
4672,
468,
892,
273,
2445,
751,
12,
2890,
18,
3535,
67,
31949,
16,
1004,
13,
468,
2777,
7331,
67,
892,
67,
869,
12,
2625,
16,
... |
path.Transform(Scale(self.fontsize/1024000.0)) | path.Transform(Scale(2*self.fontsize/102400.0)) | def GetPaths(self, text): self.init_face() # convert glyph data into bezier polygons print self.fontfile paths = [] offset = i = 0 for i in text: print "character:", i thisIndex = self.enc_vector[ord(i)] glyph = ft2.Glyph(self.face, thisIndex, 1) for contour in glyph.outline: print "contour" # rotate contour so that it... | 58b028ec2c5d983aabe55ea14ba6cbd1606c4a85 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3123/58b028ec2c5d983aabe55ea14ba6cbd1606c4a85/font.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4466,
12,
2890,
16,
977,
4672,
365,
18,
2738,
67,
865,
1435,
468,
1765,
9440,
501,
1368,
29368,
17294,
1172,
365,
18,
5776,
768,
2953,
273,
5378,
1384,
273,
277,
273,
374,
364,
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,
968,
4466,
12,
2890,
16,
977,
4672,
365,
18,
2738,
67,
865,
1435,
468,
1765,
9440,
501,
1368,
29368,
17294,
1172,
365,
18,
5776,
768,
2953,
273,
5378,
1384,
273,
277,
273,
374,
364,
27... |
test_support.run_unittest(ProxyAuthTests) test_support.run_unittest(TestUrlopen) | test_support.run_unittest(ProxyAuthTests, TestUrlopen) | def test_main(): # We will NOT depend on the network resource flag # (Lib/test/regrtest.py -u network) since all tests here are only # localhost. However, if this is a bad rationale, then uncomment # the next line. #test_support.requires("network") test_support.run_unittest(ProxyAuthTests) test_support.run_unittest(T... | 687287dc4c0a16cd88f8d63dab0e06fd15e5b096 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/687287dc4c0a16cd88f8d63dab0e06fd15e5b096/test_urllib2_localnet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
468,
1660,
903,
4269,
2447,
603,
326,
2483,
1058,
2982,
468,
261,
5664,
19,
3813,
19,
1574,
3797,
395,
18,
2074,
300,
89,
2483,
13,
3241,
777,
7434,
2674,
854,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5254,
13332,
468,
1660,
903,
4269,
2447,
603,
326,
2483,
1058,
2982,
468,
261,
5664,
19,
3813,
19,
1574,
3797,
395,
18,
2074,
300,
89,
2483,
13,
3241,
777,
7434,
2674,
854,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.