rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
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,
18,
588,
67,
2819,
1435,
364,
619,
316,
1048,
12,
3118,
54,
5398,
67,
4574,
16,
611,
1642,
5315,
61,
67,
27908,
67,
10023,
15,
3118,
54,
5398,
67,
4574,
16,
1059,
4672,
364,
277,
316,
1048,
12,
20,
16,
24,
4672,
8948,
63,
3348,
397,
277,
65,
273,
365,
18,
26474,
63,
2890,
18,
1369,
63,
92,
397,
277,
13563,
1384,
1011,
1059,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
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,
18,
588,
67,
2819,
1435,
364,
619,
316,
1048,
12,
3118,
54,
5398,
67,
4574,
16,
611,
1642,
5315,
61,
67,
27908,
67,
10023,
15,
3118,
54,
5398,
67,
4574,
16,
1059,
4672,
364,
277,
316,
1048,
12,
20,
16,
24,
4672,
8948,
63,
3348,
397,
277,
65,
273,
365,
18,
26474,
63,
2890,
18,
1369,
63,
92,
397,
277,
13563,
1384,
1011,
1059,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
30,
1923,
743,
273,
1140,
18,
1397,
1214,
309,
486,
296,
10543,
11,
316,
2153,
863,
578,
486,
2153,
863,
3292,
10543,
3546,
30,
22074,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
30,
1923,
743,
273,
1140,
18,
1397,
1214,
309,
486,
296,
10543,
11,
316,
2153,
863,
578,
486,
2153,
863,
3292,
10543,
3546,
30,
22074,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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( "*************************************************************") #As part of this routine we need to pre-process the video this MAY mean: #1. removing commercials/cleaning up mpeg2 stream #2. encoding to mpeg2 (if its an avi for instance or isn't DVD compatible) #3. selecting audio track to use and encoding audio from mp2 into ac3 #4. de-multiplexing into video and audio steams) mediafile="" if file.attributes["type"].value=="recording": mediafile=os.path.join(recordingpath, file.attributes["filename"].value) elif file.attributes["type"].value=="video": mediafile=os.path.join(videopath, file.attributes["filename"].value) elif file.attributes["type"].value=="file": mediafile=file.attributes["filename"].value else: fatalError("Unknown type of video file it must be 'recording', 'video' or 'file'.") #Get the XML containing information about this item infoDOM = xml.dom.minidom.parse( os.path.join(folder,"info.xml") ) #Error out if its the wrong XML if infoDOM.documentElement.tagName != "fileinfo": fatalError("The info.xml file (%s) doesn't look right" % os.path.join(folder,"info.xml")) #If this is an mpeg2 myth recording and there is a cut list available and the user wants to use it #run mythtranscode to cut out commercials etc if file.attributes["type"].value == "recording": #can only use mythtranscode to cut commercials on mpeg2 files write("File type is '%s'" % getFileType(folder)) write("Video codec is '%s'" % getVideoCodec(folder)) if string.lower(getVideoCodec(folder)) == "mpeg2video": if file.attributes["usecutlist"].value == "1" and getText(infoDOM.getElementsByTagName("hascutlist")[0]) == "yes": write("File has a cut list - attempting to run mythtrancode to remove unwanted segments") chanid = getText(infoDOM.getElementsByTagName("chanid")[0]) starttime = getText(infoDOM.getElementsByTagName("starttime")[0]) if runMythtranscode(chanid, starttime, os.path.join(folder,'tmp'), True): mediafile = os.path.join(folder,'tmp') else: write("Failed to run mythtranscode to remove unwanted segments") else: #does the user always want to run recordings through mythtranscode? #may help to fix any errors in the file if alwaysRunMythtranscode == True or (getFileType(folder) == "mpegts" and isFileOkayForDVD(folder)): write("Attempting to run mythtranscode --mpeg2 to fix any errors") chanid = getText(infoDOM.getElementsByTagName("chanid")[0]) starttime = getText(infoDOM.getElementsByTagName("starttime")[0]) if runMythtranscode(chanid, starttime, os.path.join(folder, 'newfile.mpg'), False): mediafile = os.path.join(folder, 'newfile.mpg') else: write("Failed to run mythtrancode to fix any errors") #do we need to re-encode the file to make it DVD compliant? if not isFileOkayForDVD(folder): #we need to re-encode the file, make sure we get the right video/audio streams #would be good if we could also split the file at the same time getStreamInformation(mediafile, os.path.join(folder, "streaminfo.xml")) #choose which streams we need video, audio1, audio2 = selectStreams(folder) #choose which aspect ratio we should use aspectratio = selectAspectRatio(folder) write("File is not DVD compliant - Re-encoding audio and video") #do the re-encode encodeVideoToMPEG2(mediafile, os.path.join(folder, "newfile2.mpg"), video, audio1, audio2, aspectratio) mediafile = os.path.join(folder, 'newfile2.mpg') #remove an intermediate file if os.path.exists(os.path.join(folder, "newfile1.mpg")): os.remove(os.path.join(folder,'newfile1.mpg')) # the file is now DVD compliant split it into video and audio parts # find out what streams we have available now getStreamInformation(mediafile, os.path.join(folder, "streaminfo.xml")) # choose which streams we need video, audio1, audio2 = selectStreams(folder) # now attempt to split the source file into video and audio parts write("Splitting MPEG stream into audio and video parts") deMultiplexMPEG2File(folder, mediafile, video, audio1, audio2) if os.path.exists(os.path.join(folder, "newfile2.mpg")): os.remove(os.path.join(folder,'newfile2.mpg')) # we now have a video stream and one or more audio streams # check if we need to convert any of the audio streams to ac3 processAudio(folder) #do a quick sense check before we continue... assert doesFileExist(os.path.join(folder,'stream.mv2')) assert doesFileExist(os.path.join(folder,'stream0.ac3')) #assert doesFileExist(os.path.join(folder,'stream1.ac3')) extractVideoFrame(os.path.join(folder,"stream.mv2"), os.path.join(folder,"thumbnail.jpg"), 0) write( "*************************************************************") write( "Finished processing file " + file.attributes["filename"].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,
585,
315,
397,
585,
18,
4350,
9614,
3459,
6,
8009,
1132,
397,
315,
434,
618,
315,
397,
585,
18,
4350,
9614,
723,
6,
8009,
1132,
13,
1045,
12,
315,
5021,
19482,
1007,
7388,
13,
225,
468,
1463,
1087,
434,
333,
12245,
732,
1608,
358,
675,
17,
2567,
326,
6191,
333,
490,
5255,
3722,
30,
468,
21,
18,
9427,
1543,
12610,
649,
87,
19,
6200,
310,
731,
312,
9001,
22,
1407,
468,
22,
18,
2688,
358,
312,
9001,
22,
261,
430,
2097,
392,
279,
522,
364,
791,
578,
5177,
1404,
463,
21544,
7318,
13,
468,
23,
18,
24674,
7447,
3298,
358,
999,
471,
2688,
7447,
628,
6749,
22,
1368,
1721,
23,
468,
24,
18,
443,
17,
9622,
92,
310,
1368,
6191,
471,
7447,
384,
3820,
87,
13,
225,
3539,
768,
1546,
6,
225,
309,
585,
18,
4350,
9614,
723,
6,
8009,
1132,
31713,
3366,
310,
6877,
3539,
768,
273,
1140,
18,
803,
18,
5701,
12,
3366,
310,
803,
16,
585,
18,
4350,
9614,
3459,
6,
8009,
1132,
13,
1327,
585,
18,
4350,
9614,
723,
6,
8009,
1132,
31713,
9115,
6877,
3539,
768,
33,
538,
18,
803,
18,
5701,
12,
6768,
556,
421,
16,
585,
18,
4350,
9614,
3459,
6,
8009,
1132,
13,
1327,
585,
18,
4350,
9614,
723,
6,
8009,
1132,
31713,
768,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
585,
315,
397,
585,
18,
4350,
9614,
3459,
6,
8009,
1132,
397,
315,
434,
618,
315,
397,
585,
18,
4350,
9614,
723,
6,
8009,
1132,
13,
1045,
12,
315,
5021,
19482,
1007,
7388,
13,
225,
468,
1463,
1087,
434,
333,
12245,
732,
1608,
358,
675,
17,
2567,
326,
6191,
333,
490,
5255,
3722,
30,
468,
21,
18,
9427,
1543,
12610,
649,
87,
19,
6200,
310,
731,
312,
9001,
22,
1407,
468,
22,
18,
2688,
358,
312,
9001,
22,
261,
430,
2097,
392,
279,
522,
2
] |
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
8712,
19,
28179,
1246,
19,
24795,
19,
12083,
26112,
302,
18,
4177,
67,
1435,
327,
374,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
8712,
19,
28179,
1246,
19,
24795,
19,
12083,
26112,
302,
18,
4177,
67,
1435,
327,
374,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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 ancestors of the 'cc' collection. If as==1, then links to Advanced Search interfaces; otherwise Simple Search. """ # firstly, display navtrail prologue: navtrail = header # first, display list of ancestors: for dad in get_coll_ancestors(cc): if dad != cdsname: navtrail += """%s <a class="navtrail" href="%s/?c=%s&as=%d">%s</a> %s %s """ % \ (prolog, weburl, urllib.quote_plus(dad), as, dad, epilog, separator) else: # hide cdsname for aesthetical reasons navtrail += """%s <a class="navtrail" href="%s/?as=%d">%s</a> %s %s """ % \ (prolog, weburl, as, dad, epilog, separator) # then print cc: if cc != cdsname or not exclude_root: navtrail += """%s <a class="navtrail" href="%s/?c=%s&as=%d">%s</a> %s""" % (prolog, weburl, urllib.quote_plus(cc), as, cc, epilog) # last, print navtrail epilogue: navtrail += footer return navtrail
|
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,
10600,
27922,
4465,
4438,
4465,
667,
1546,
11589,
15565,
2147,
3432,
14050,
12019,
2984,
6,
3113,
521,
450,
1330,
1546,
3113,
521,
4182,
1546,
10,
4521,
31,
3113,
521,
5529,
21947,
1546,
3113,
521,
9860,
1546,
10,
4521,
31,
5167,
10351,
1757,
12019,
4695,
4465,
4695,
313,
4695,
2121,
2984,
16,
4433,
67,
3085,
33,
20,
4672,
3536,
2729,
10394,
15569,
16,
277,
18,
73,
18,
4716,
358,
14322,
434,
326,
296,
952,
11,
1849,
18,
971,
487,
631,
21,
16,
1508,
4716,
358,
27451,
5167,
7349,
31,
3541,
4477,
5167,
18,
3536,
468,
1122,
715,
16,
2562,
8775,
15565,
450,
1330,
344,
30,
8775,
15565,
273,
1446,
468,
1122,
16,
2562,
666,
434,
14322,
30,
364,
302,
361,
316,
336,
67,
12910,
67,
304,
11116,
12,
952,
4672,
309,
302,
361,
480,
19697,
529,
30,
8775,
15565,
1011,
3536,
9,
87,
411,
69,
667,
1546,
11589,
15565,
6,
3897,
11613,
87,
23239,
71,
5095,
87,
10,
345,
5095,
72,
24038,
87,
1757,
69,
34,
738,
87,
738,
87,
3536,
738,
521,
261,
685,
1330,
16,
3311,
718,
16,
11527,
18,
6889,
67,
10103,
12,
72,
361,
3631,
487,
16,
302,
361,
16,
5529,
21947,
16,
4182,
13,
469,
30,
468,
6853,
19697,
529,
364,
279,
395,
76,
278,
1706,
14000,
8775,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
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,
10600,
27922,
4465,
4438,
4465,
667,
1546,
11589,
15565,
2147,
3432,
14050,
12019,
2984,
6,
3113,
521,
450,
1330,
1546,
3113,
521,
4182,
1546,
10,
4521,
31,
3113,
521,
5529,
21947,
1546,
3113,
521,
9860,
1546,
10,
4521,
31,
5167,
10351,
1757,
12019,
4695,
4465,
4695,
313,
4695,
2121,
2984,
16,
4433,
67,
3085,
33,
20,
4672,
3536,
2729,
10394,
15569,
16,
277,
18,
73,
18,
4716,
358,
14322,
434,
326,
296,
952,
11,
1849,
18,
971,
487,
631,
21,
16,
1508,
4716,
358,
2
] |
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=GpicSync(gpxFile=self.gpxFile,tcam_l=self.tcam_l,tgps_l=self.tgps_l, UTCoffset=self.utcOffset,dateProcess=dateProcess,timerange=int(self.timerangeEntry.GetValue()), backup=False,interpolation=self.interpolation) if self.backupCheck.GetValue()==True: wx.CallAfter(self.consolePrint,"\n"+ _("Creating an 'originals-backup' folder.")+"\n") try: os.mkdir(self.picDir+'/originals-backup') except: print "Couldn't create the backup folder, it maybe already exist"
|
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,
10837,
64,
82,
13093,
64,
82,
6,
15,
67,
2932,
8149,
2093,
24488,
598,
315,
5153,
397,
67,
2932,
11471,
9874,
273,
7923,
15,
2890,
18,
17892,
1622,
18,
967,
620,
1435,
16971,
389,
2932,
7507,
471,
4207,
813,
7114,
273,
9369,
15,
2890,
18,
12542,
726,
1622,
18,
967,
620,
1435,
397,
67,
2932,
3974,
7923,
9078,
64,
82,
7923,
225,
469,
30,
1342,
7856,
33,
43,
20003,
4047,
12,
75,
4430,
812,
33,
2890,
18,
75,
4430,
812,
16,
5111,
301,
67,
80,
33,
2890,
18,
5111,
301,
67,
80,
16,
88,
75,
1121,
67,
80,
33,
2890,
18,
88,
75,
1121,
67,
80,
16,
9951,
3348,
33,
2890,
18,
17892,
2335,
16,
712,
2227,
33,
712,
2227,
16,
12542,
726,
33,
474,
12,
2890,
18,
12542,
726,
1622,
18,
967,
620,
1435,
3631,
5114,
33,
8381,
16,
18676,
367,
33,
2890,
18,
18676,
367,
13,
225,
309,
365,
18,
9572,
1564,
18,
967,
620,
1435,
631,
5510,
30,
7075,
18,
1477,
4436,
12,
2890,
18,
8698,
5108,
10837,
64,
82,
6,
15,
389,
2932,
11092,
392,
296,
10012,
1031,
17,
9572,
11,
3009,
1199,
13,
9078,
64,
82,
7923,
775,
30,
1140,
18,
26686,
12,
2890,
18,
20003,
1621,
6797,
19,
10012,
1031,
17,
9572,
6134,
1335,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
10837,
64,
82,
13093,
64,
82,
6,
15,
67,
2932,
8149,
2093,
24488,
598,
315,
5153,
397,
67,
2932,
11471,
9874,
273,
7923,
15,
2890,
18,
17892,
1622,
18,
967,
620,
1435,
16971,
389,
2932,
7507,
471,
4207,
813,
7114,
273,
9369,
15,
2890,
18,
12542,
726,
1622,
18,
967,
620,
1435,
397,
67,
2932,
3974,
7923,
9078,
64,
82,
7923,
225,
469,
30,
1342,
7856,
33,
43,
20003,
4047,
12,
75,
4430,
812,
33,
2890,
18,
75,
4430,
812,
16,
5111,
301,
2
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if 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:ATLASSCRATCHDISK')) and (TiersOfATLAS.getSiteProperty(sitename,'seinfo')):
|
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:ATLASSCRATCHDISK') or \ TiersOfATLAS.getSiteProperty(sitename,'srm').startswith('token:T2ATLASMCDISK') or \ TiersOfATLAS.getSiteProperty(sitename,'srm').startswith('token:T2ATLASDATADISK') or \ TiersOfATLAS.getSiteProperty(sitename,'srm').startswith('token:T2ATLASSCRATCHDISK')) and \ (TiersOfATLAS.getSiteProperty(sitename,'seinfo')):
|
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() # remove \n from last component regline=dataset+","+siteID if regline in reglines: print "Registration of %s in %s already done, skipping" % (dataset,siteID) #continue else: reglines.append(regline) print "Registering dataset %s in %s" % (dataset,siteID) # use another version of register_dataset_location, as the "secure" one does not allow to keep track of datafiles saved in the fall-back site (CERNCAF) try: dq2_lock.acquire() try: content = dq2.listDatasets(dataset) except: content = {} finally: dq2_lock.release() # Register new dataset if content=={}: try: dq2_lock.acquire() try: datasetinfo = dq2.registerNewDataset(dataset) except (DQDatasetExistsException,Exception), Value: print 'Error registering new dataset %s: %s' %(dataset,Value) finally: dq2_lock.release() else: print "Dataset %s already registered." % dataset # Register dataset location attempt = 0 while attempt < 3: time.sleep(30) location = register_dataset_location(dataset, siteID) if siteID in location: break else: attempt = attempt + 1 register_file_in_dataset(dataset,[lfn],[guid],[size],[adler32]) return
|
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,
33,
1369,
18,
4939,
2932,
16,
7923,
306,
8682,
16,
80,
4293,
16,
14066,
16,
1467,
16,
1264,
25,
1364,
16,
4256,
734,
65,
33,
1369,
18,
4939,
2932,
16,
7923,
1335,
2068,
30,
1324,
963,
273,
1525,
12,
1467,
13,
1261,
749,
1578,
2218,
361,
2497,
15,
1264,
25,
1364,
309,
562,
12,
1264,
25,
1364,
13,
631,
1578,
30,
1261,
749,
1578,
2218,
1264,
25,
2497,
15,
1264,
25,
1364,
225,
2834,
734,
33,
4256,
734,
18,
6406,
1435,
468,
1206,
521,
82,
628,
1142,
1794,
960,
1369,
33,
8682,
15,
15937,
15,
4256,
734,
309,
960,
1369,
316,
960,
3548,
30,
1172,
315,
7843,
434,
738,
87,
316,
738,
87,
1818,
2731,
16,
14195,
6,
738,
261,
8682,
16,
4256,
734,
13,
468,
17143,
469,
30,
960,
3548,
18,
6923,
12,
1574,
1369,
13,
1172,
315,
3996,
310,
3709,
738,
87,
316,
738,
87,
6,
738,
261,
8682,
16,
4256,
734,
13,
468,
999,
4042,
1177,
434,
1744,
67,
8682,
67,
3562,
16,
487,
326,
315,
8869,
6,
1245,
1552,
486,
1699,
358,
3455,
3298,
434,
501,
2354,
5198,
316,
326,
4159,
17,
823,
2834,
261,
39,
654,
50,
3587,
42,
13,
775,
30,
20803,
22,
67,
739,
18,
1077,
1039,
1435,
775,
30,
913,
273,
20803,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
33,
1369,
18,
4939,
2932,
16,
7923,
306,
8682,
16,
80,
4293,
16,
14066,
16,
1467,
16,
1264,
25,
1364,
16,
4256,
734,
65,
33,
1369,
18,
4939,
2932,
16,
7923,
1335,
2068,
30,
1324,
963,
273,
1525,
12,
1467,
13,
1261,
749,
1578,
2218,
361,
2497,
15,
1264,
25,
1364,
309,
562,
12,
1264,
25,
1364,
13,
631,
1578,
30,
1261,
749,
1578,
2218,
1264,
25,
2497,
15,
1264,
25,
1364,
225,
2834,
734,
33,
4256,
734,
18,
6406,
1435,
468,
2
] |
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,
76,
23,
4438,
5776,
2036,
1546,
1118,
6441,
9511,
30,
3229,
632,
2761,
621,
87,
316,
1245,
2484,
5673,
261,
902,
4671,
8249,
2934,
1757,
5776,
4695,
76,
23,
1870,
876,
273,
875,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
76,
23,
4438,
5776,
2036,
1546,
1118,
6441,
9511,
30,
3229,
632,
2761,
621,
87,
316,
1245,
2484,
5673,
261,
902,
4671,
8249,
2934,
1757,
5776,
4695,
76,
23,
1870,
876,
273,
875,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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599,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def 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 Maxima's demos. See maxima.demo? EXAMPLES: sage: maxima._command_runner('describe', 'gcd')
|
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,
710,
95,
21363,
4411,
780,
5496,
225,
971,
3136,
353,
444,
358,
1083,
16,
1508,
326,
876,
434,
326,
1296,
353,
486,
2106,
487,
279,
533,
18,
225,
17561,
16,
518,
12433,
6606,
3007,
1140,
18,
4299,
18,
225,
1220,
353,
1399,
364,
12625,
9198,
3007,
4238,
13888,
1807,
9626,
538,
18,
225,
2164,
943,
13888,
18,
27928,
35,
225,
5675,
8900,
11386,
30,
272,
410,
30,
943,
13888,
6315,
3076,
67,
18156,
2668,
22748,
2187,
296,
75,
4315,
6134,
468,
902,
18432,
1493,
4284,
30,
14876,
261,
32,
84,
67,
21,
20401,
411,
84,
67,
22,
20401,
411,
92,
67,
21,
20401,
1372,
13,
1372,
3536,
309,
272,
410,
18,
3567,
18,
13261,
18,
3375,
22235,
7660,
67,
7038,
30,
1140,
18,
4299,
2668,
1896,
13888,
1493,
3242,
17,
20380,
300,
86,
315,
22748,
9275,
87,
1769,
3532,
342,
5206,
19,
2011,
11,
9,
87,
13,
469,
30,
1140,
18,
4299,
2668,
1896,
13888,
1493,
3242,
17,
20380,
300,
86,
315,
22748,
9275,
87,
1769,
5187,
9,
87,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
710,
95,
21363,
4411,
780,
5496,
225,
971,
3136,
353,
444,
358,
1083,
16,
1508,
326,
876,
434,
326,
1296,
353,
486,
2106,
487,
279,
533,
18,
225,
17561,
16,
518,
12433,
6606,
3007,
1140,
18,
4299,
18,
225,
1220,
353,
1399,
364,
12625,
9198,
3007,
4238,
13888,
1807,
9626,
538,
18,
225,
2164,
943,
13888,
18,
27928,
35,
225,
5675,
8900,
11386,
30,
272,
410,
30,
943,
13888,
6315,
3076,
67,
18156,
2668,
22748,
2187,
296,
75,
4315,
6134,
468,
902,
18432,
2
] |
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." % (id, )
|
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,
471,
521,
486,
365,
18,
9754,
67,
2150,
67,
265,
67,
12161,
67,
3567,
12,
350,
16,
353,
3389,
301,
4672,
1172,
315,
4445,
486,
1104,
883,
6142,
87,
1769,
26282,
518,
1703,
315,
521,
315,
8600,
628,
326,
26839,
23,
3886,
1247,
578,
326,
6246,
2203,
315,
521,
315,
3567,
18,
225,
1220,
4696,
716,
1158,
8277,
1703,
2731,
1199,
738,
261,
350,
16,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
471,
521,
486,
365,
18,
9754,
67,
2150,
67,
265,
67,
12161,
67,
3567,
12,
350,
16,
353,
3389,
301,
4672,
1172,
315,
4445,
486,
1104,
883,
6142,
87,
1769,
26282,
518,
1703,
315,
521,
315,
8600,
628,
326,
26839,
23,
3886,
1247,
578,
326,
6246,
2203,
315,
521,
315,
3567,
18,
225,
1220,
4696,
716,
1158,
8277,
1703,
2731,
1199,
738,
261,
350,
16,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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 = "DELETE FROM `tq_TaskQueues` WHERE `tq_TaskQueues`.TQId = %s" % tqId retVal = self._update( sqlCmd, conn = connObj ) if not retVal[ 'OK' ]: return S_ERROR( "Could not delete task queue %s: %s" % ( tqId, retVal[ 'Message' ] ) ) delTQ = retVal[ 'Value' ] sqlCmd = "DELETE FROM `tq_Jobs` WHERE `tq_Jobs`.TQId = %s" % tqId retVal = self._update( sqlCmd, conn = connObj ) if not retVal[ 'OK' ]: return S_ERROR( "Could not delete task queue %s: %s" % ( tqId, retVal[ 'Message' ] ) ) for mvField in self.__multiValueDefFields: retVal = self._update( "DELETE FROM `tq_TQTo%s` WHERE TQId = %s" % tqId, conn = connObj ) if not retVal[ 'OK' ]: return retVal return S_OK( delTQ > 0 )
|
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,
5456,
309,
518,
711,
6550,
3536,
365,
18,
1330,
18,
1376,
12,
315,
20433,
399,
53,
738,
87,
6,
738,
20061,
548,
262,
309,
486,
1487,
2675,
30,
12197,
273,
365,
6315,
588,
1952,
1435,
309,
486,
12197,
63,
296,
3141,
11,
308,
30,
327,
348,
67,
3589,
12,
315,
2568,
1404,
2243,
1719,
30,
738,
87,
6,
738,
12197,
63,
296,
1079,
11,
308,
262,
1487,
2675,
273,
12197,
63,
296,
620,
11,
308,
1847,
5931,
273,
315,
6460,
4571,
1375,
88,
85,
67,
2174,
17428,
68,
4852,
1375,
88,
85,
67,
2174,
17428,
8338,
56,
53,
548,
273,
738,
87,
6,
738,
20061,
548,
12197,
273,
365,
6315,
2725,
12,
1847,
5931,
16,
1487,
273,
1487,
2675,
262,
309,
486,
12197,
63,
296,
3141,
11,
308,
30,
327,
348,
67,
3589,
12,
315,
4445,
486,
1430,
1562,
2389,
738,
87,
30,
738,
87,
6,
738,
261,
20061,
548,
16,
12197,
63,
296,
1079,
11,
308,
262,
262,
1464,
56,
53,
273,
12197,
63,
296,
620,
11,
308,
1847,
5931,
273,
315,
6460,
4571,
1375,
88,
85,
67,
7276,
68,
4852,
1375,
88,
85,
67,
7276,
8338,
56,
53,
548,
273,
738,
87,
6,
738,
20061,
548,
12197,
273,
365,
6315,
2725,
12,
1847,
5931,
16,
1487,
273,
1487,
2675,
262,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
5456,
309,
518,
711,
6550,
3536,
365,
18,
1330,
18,
1376,
12,
315,
20433,
399,
53,
738,
87,
6,
738,
20061,
548,
262,
309,
486,
1487,
2675,
30,
12197,
273,
365,
6315,
588,
1952,
1435,
309,
486,
12197,
63,
296,
3141,
11,
308,
30,
327,
348,
67,
3589,
12,
315,
2568,
1404,
2243,
1719,
30,
738,
87,
6,
738,
12197,
63,
296,
1079,
11,
308,
262,
1487,
2675,
273,
12197,
63,
296,
620,
11,
308,
1847,
5931,
273,
315,
6460,
4571,
1375,
88,
85,
2
] |
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.abspath(filename) self.mode = mode self.encoding = encoding if delay: self.stream = None else: stream = self._open() StreamHandler.__init__(self, stream)
|
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,
468,
10102,
326,
4967,
589,
16,
3541,
10379,
3318,
1492,
999,
333,
468,
24877,
12404,
279,
7987,
457,
1347,
326,
783,
1867,
3478,
309,
17437,
353,
599,
30,
2688,
273,
599,
365,
18,
1969,
5359,
273,
1140,
18,
803,
18,
5113,
803,
12,
3459,
13,
365,
18,
3188,
273,
1965,
365,
18,
5999,
273,
2688,
309,
4624,
30,
365,
18,
3256,
273,
599,
469,
30,
1407,
273,
365,
6315,
3190,
1435,
25262,
16186,
2738,
972,
12,
2890,
16,
1407,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
468,
10102,
326,
4967,
589,
16,
3541,
10379,
3318,
1492,
999,
333,
468,
24877,
12404,
279,
7987,
457,
1347,
326,
783,
1867,
3478,
309,
17437,
353,
599,
30,
2688,
273,
599,
365,
18,
1969,
5359,
273,
1140,
18,
803,
18,
5113,
803,
12,
3459,
13,
365,
18,
3188,
273,
1965,
365,
18,
5999,
273,
2688,
309,
4624,
30,
365,
18,
3256,
273,
599,
469,
30,
1407,
273,
365,
6315,
3190,
1435,
25262,
16186,
2738,
972,
12,
2890,
16,
1407,
13,
2,
-100,
-100,
-100
] |
"-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, l10nRepoDir, locale], env={"PYTHONPATH": path.join("compare-locales", "lib")})
|
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,
7422,
16,
315,
9877,
17,
22638,
7923,
1089,
2932,
9877,
17,
22638,
3113,
6350,
33,
13057,
13,
1086,
67,
4172,
3816,
6,
8103,
3113,
589,
18,
5701,
2932,
9877,
17,
22638,
3113,
315,
12827,
3113,
315,
9877,
17,
22638,
6,
3631,
3701,
81,
3113,
2691,
1621,
3631,
328,
2163,
82,
22129,
16,
328,
2163,
82,
8791,
1621,
16,
2573,
6487,
1550,
5899,
6,
16235,
20131,
4211,
6877,
589,
18,
5701,
2932,
9877,
17,
22638,
3113,
315,
2941,
7923,
6792,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
7422,
16,
315,
9877,
17,
22638,
7923,
1089,
2932,
9877,
17,
22638,
3113,
6350,
33,
13057,
13,
1086,
67,
4172,
3816,
6,
8103,
3113,
589,
18,
5701,
2932,
9877,
17,
22638,
3113,
315,
12827,
3113,
315,
9877,
17,
22638,
6,
3631,
3701,
81,
3113,
2691,
1621,
3631,
328,
2163,
82,
22129,
16,
328,
2163,
82,
8791,
1621,
16,
2573,
6487,
1550,
5899,
6,
16235,
20131,
4211,
6877,
589,
18,
5701,
2932,
9877,
17,
22638,
3113,
315,
2941,
7923,
6792,
225,
2,
-100,
-100,
-100,
-100
] |
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_configuration__notfound(self): config.clear_cached_configuration() try: orig_exists = os.path.exists os.path.exists = lambda p: False e = MockExecutive(output="foo") c = config.Config(e) self.assertEqual(c.default_configuration(), "Release") finally: os.path.exists = orig_exists def test_default_configuration__unknown(self): oc = outputcapture.OutputCapture() oc.capture_output() self.assertConfiguration('Unknown', 'Unknown') oc.restore_output() def test_path_from_webkit_base(self, *comps): c = config.Config(None) self.assertTrue(c.path_from_webkit_base('foo')) def test_webkit_base_dir(self): c = config.Config(None) self.assertTrue(c.webkit_base_dir()) if __name__ == '__main__': unittest.main()
|
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 year. inDaylightSavings = not ( dstEnd < dt.replace( tzinfo=None ) <= dstStart ) except ValueError: # there was an error parsing the time zone, which is normal when a # start and end time are not specified. inDaylightSavings = False
|
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,
25255,
12,
7510,
18,
6874,
13,
225,
309,
3046,
1685,
411,
3046,
1638,
30,
316,
4245,
5099,
55,
27497,
273,
3046,
1685,
1648,
3681,
18,
2079,
12,
15732,
33,
7036,
262,
411,
3046,
1638,
469,
30,
468,
316,
326,
272,
659,
1614,
82,
28703,
291,
9346,
16,
2548,
5099,
4087,
899,
813,
468,
225,
14755,
3930,
1865,
518,
17874,
316,
279,
864,
3286,
18,
316,
4245,
5099,
55,
27497,
273,
486,
261,
3046,
1638,
411,
3681,
18,
2079,
12,
15732,
33,
7036,
262,
1648,
3046,
1685,
262,
1335,
2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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
25255,
12,
7510,
18,
6874,
13,
225,
309,
3046,
1685,
411,
3046,
1638,
30,
316,
4245,
5099,
55,
27497,
273,
3046,
1685,
1648,
3681,
18,
2079,
12,
15732,
33,
7036,
262,
411,
3046,
1638,
469,
30,
468,
316,
326,
272,
659,
1614,
82,
28703,
291,
9346,
16,
2548,
5099,
4087,
899,
813,
468,
225,
14755,
3930,
1865,
518,
17874,
316,
279,
864,
3286,
18,
316,
4245,
5099,
55,
27497,
273,
486,
261,
3046,
1638,
411,
3681,
18,
2079,
12,
15732,
33,
7036,
2
] |
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,
2995,
2995,
1546,
9452,
6,
26293,
3660,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2995,
2995,
1546,
9452,
6,
26293,
3660,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
6877,
272,
1011,
1045,
2932,
4868,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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", "1.2*A", "20", "tracks/atom.pos.bond.df"]) df_hist = load_track("tracks/atom.pos.bond.df.hist") self.assertAlmostEqual(df_hist.sum(), 1.0, 2) self.execute("tr-plot", [ "--title=C-H bond length distribution", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.df.bins", "tracks/atom.pos.bond.df.hist", os.path.join(output_dir, "df_noerror.png"), ]) # cumulative df, no error bars cdf_hist = load_track("tracks/atom.pos.bond.df.cumul.hist") self.assertAlmostEqual(cdf_hist[-1], 1.0, 2) self.execute("tr-plot", [ "--title=Cumulative C-H bond length distribution", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.df.bins", "tracks/atom.pos.bond.df.cumul.hist", os.path.join(output_dir, "df_cumul_noerror.png"), ]) # ordinary df, with error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["--bin-tracks", "1.0*A", "1.2*A", "20", "tracks/atom.pos.bond.df"]) lines = [] for bin_filename in sorted(glob.glob("tracks/atom.pos.bond.df.bin.???????")): output = self.execute("tr-blav", [bin_filename, "tracks/time", "-b10"]) lines.append(output[0]) self.execute("tr-write", ["tracks/atom.pos.bond.df.hist", "tracks/atom.pos.bond.df.hist.error"], stdin=lines) df_hist_bis = load_track("tracks/atom.pos.bond.df.hist") self.assertAlmostEqual(df_hist_bis.sum(), 1.0, 2) self.assertArraysAlmostEqual(df_hist, df_hist_bis, 1e-5) self.execute("tr-plot", [ "--title=C-H bond length distribution", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.df.bins", "tracks/atom.pos.bond.df.hist", "tracks/atom.pos.bond.df.hist.error", os.path.join(output_dir, "df_error.png"), ]) # cumulative df, with error bars lines = [] for bin_filename in sorted(glob.glob("tracks/atom.pos.bond.df.cumul.bin.???????")): output = self.execute("tr-blav", [bin_filename, "tracks/time", "-b10"]) lines.append(output[0]) self.execute("tr-write", ["tracks/atom.pos.bond.df.cumul.hist", "tracks/atom.pos.bond.df.cumul.hist.error"], stdin=lines) cdf_hist_bis = load_track("tracks/atom.pos.bond.df.cumul.hist") self.assertAlmostEqual(cdf_hist_bis[-1], 1.0, 2) self.assertArraysAlmostEqual(cdf_hist, cdf_hist_bis, 1e-5) self.execute("tr-plot", [ "--title=C-H bond length distribution", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.df.bins", "tracks/atom.pos.bond.df.cumul.hist", "tracks/atom.pos.bond.df.cumul.hist.error", os.path.join(output_dir, "df_cumul_error.png"), ])
|
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,
8837,
2932,
313,
17,
335,
17,
1121,
74,
3113,
10228,
21499,
19,
7466,
18,
917,
2187,
296,
26425,
2187,
296,
21,
16,
22,
16,
23,
16,
24,
2187,
296,
25,
16,
26,
16,
27,
16,
28,
16,
29,
16,
2163,
16,
2499,
16,
2138,
2187,
1140,
18,
803,
18,
5701,
12,
2630,
67,
1214,
16,
315,
451,
74,
1611,
19,
2738,
18,
1121,
74,
7923,
5717,
468,
4642,
2101,
3013,
16,
1158,
555,
22252,
365,
18,
8837,
2932,
313,
17,
2180,
3113,
4715,
18,
10581,
2932,
21499,
19,
7466,
18,
917,
18,
26425,
18,
14646,
14646,
14646,
35,
18,
14646,
14646,
14646,
7225,
13,
397,
8247,
21,
18,
20,
14,
37,
3113,
315,
21,
18,
22,
14,
37,
3113,
315,
3462,
3113,
315,
21499,
19,
7466,
18,
917,
18,
26425,
18,
2180,
6,
5717,
3013,
67,
11488,
273,
1262,
67,
4101,
2932,
21499,
19,
7466,
18,
917,
18,
26425,
18,
2180,
18,
11488,
7923,
365,
18,
11231,
1067,
10329,
5812,
12,
2180,
67,
11488,
18,
1364,
9334,
404,
18,
20,
16,
576,
13,
365,
18,
8837,
2932,
313,
17,
4032,
3113,
306,
5238,
2649,
33,
39,
17,
44,
8427,
769,
7006,
3113,
5238,
19909,
33,
39,
17,
44,
20335,
3113,
5238,
92,
4873,
33,
37,
3113,
5238,
93,
4873,
33,
21,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
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,
8837,
2932,
313,
17,
335,
17,
1121,
74,
3113,
10228,
21499,
19,
7466,
18,
917,
2187,
296,
26425,
2187,
296,
21,
16,
22,
16,
23,
16,
24,
2187,
296,
25,
16,
26,
16,
27,
16,
28,
16,
29,
16,
2163,
16,
2499,
16,
2138,
2187,
1140,
18,
803,
18,
5701,
12,
2630,
67,
1214,
16,
315,
451,
74,
1611,
19,
2738,
18,
1121,
74,
7923,
5717,
468,
4642,
2101,
3013,
16,
1158,
555,
22252,
365,
18,
8837,
2932,
313,
17,
2180,
3113,
4715,
2
] |
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 range(len(fields)): if i >= len(line): raise Exception(_('Please check that all your lines have %d columns.') % (len(fields),)) if not line[i]: continue
|
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,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
5378,
501,
67,
350,
273,
1083,
501,
67,
455,
67,
350,
273,
1083,
353,
67,
2902,
67,
350,
273,
1083,
353,
67,
1966,
67,
350,
273,
1083,
9482,
67,
2284,
67,
892,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
1545,
562,
12,
1369,
4672,
1002,
1185,
24899,
2668,
8496,
866,
716,
777,
3433,
2362,
1240,
738,
72,
2168,
1093,
13,
738,
261,
1897,
12,
2821,
3631,
3719,
309,
486,
980,
63,
77,
14542,
1324,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
5378,
501,
67,
350,
273,
1083,
501,
67,
455,
67,
350,
273,
1083,
353,
67,
2902,
67,
350,
273,
1083,
353,
67,
1966,
67,
350,
273,
1083,
9482,
67,
2284,
67,
892,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
1545,
562,
12,
1369,
4672,
1002,
1185,
24899,
2668,
2
] |
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``, which will cause the ``logo.png`` file in the ``images`` subdirectory of the ``mypackage`` package to be served. ``add_static_view`` can alternately be used with a ``name`` argument which is a *URL*, causing static assets to be served from an external webserver. This happens when the ``name`` argument is a URL (detected as any string with a slash in it). In this mode, the ``name`` is used as the URL prefix when generating a URL using :func:`pyramid.url.static_url`. For example, if ``add_static_view`` is called like so:
|
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``, which will cause the ``logo.png`` file in the ``images`` subdirectory of the ``mypackage`` package to be served. ``add_static_view`` can alternately be used with a ``name`` argument which is a *URL*, causing static assets to be served from an external webserver. This happens when the ``name`` argument is a fully qualified URL (e.g. starts with ``http://`` or similar). In this mode, the ``name`` is used as the prefix of the full URL when generating a URL using :func:`pyramid.url.static_url`. For example, if ``add_static_view`` is called like so:
|
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
345,
12,
10037,
16,
296,
4308,
2187,
2028,
18,
869,
67,
4308,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
345,
12,
10037,
16,
296,
4308,
2187,
2028,
18,
869,
67,
4308,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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: mode = "algebraic"
|
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,
18,
88,
8082,
67,
16744,
67,
1612,
18,
88,
8082,
67,
16744,
405,
365,
18,
8238,
8082,
67,
9610,
67,
88,
8082,
67,
16744,
30,
1965,
273,
315,
685,
17564,
287,
6,
309,
365,
18,
88,
8082,
67,
16744,
67,
1612,
18,
88,
8082,
67,
16744,
405,
404,
18,
20,
300,
365,
18,
8238,
8082,
67,
9610,
67,
88,
8082,
67,
16744,
30,
1815,
1965,
480,
315,
6079,
6,
225,
469,
30,
1965,
273,
315,
287,
29087,
335,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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365,
18,
88,
8082,
67,
16744,
67,
1612,
18,
88,
8082,
67,
16744,
405,
365,
18,
8238,
8082,
67,
9610,
67,
88,
8082,
67,
16744,
30,
1965,
273,
315,
685,
17564,
287,
6,
309,
365,
18,
88,
8082,
67,
16744,
67,
1612,
18,
88,
8082,
67,
16744,
405,
404,
18,
20,
300,
365,
18,
8238,
8082,
67,
9610,
67,
88,
8082,
67,
16744,
30,
1815,
1965,
480,
315,
6079,
6,
225,
469,
30,
1965,
273,
315,
287,
29087,
335,
6,
2,
-100,
-100,
-100,
-100
] |
"(%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,
3959,
358,
2807,
67,
9355,
353,
9919,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
3959,
358,
2807,
67,
9355,
353,
9919,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def 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,
1412,
2213,
87,
1493,
5201,
6,
364,
326,
2319,
702,
471,
6279,
11,
738,
7739,
18,
4263,
461,
262,
18544,
2226,
18,
8593,
12,
300,
21,
262,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
1412,
2213,
87,
1493,
5201,
6,
364,
326,
2319,
702,
471,
6279,
11,
738,
7739,
18,
4263,
461,
262,
18544,
2226,
18,
8593,
12,
300,
21,
262,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
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 between rollovers. Also set the filename suffix used when # a rollover occurs. Current 'when' events supported: # S - Seconds # M - Minutes # H - Hours # D - Days # midnight - roll over at midnight # W{0-6} - roll over on a certain day; 0 - Monday # # Case of the 'when' specifier is not important; lower or upper case # will work. currentTime = int(time.time()) if self.when == 'S': self.interval = 1 # one second self.suffix = "%Y-%m-%d_%H-%M-%S" self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}-\d{2}$" elif self.when == 'M': self.interval = 60 # one minute self.suffix = "%Y-%m-%d_%H-%M" self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}$" elif self.when == 'H': self.interval = 60 * 60 # one hour self.suffix = "%Y-%m-%d_%H" self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}$" elif self.when == 'D' or self.when == 'MIDNIGHT': self.interval = 60 * 60 * 24 # one day self.suffix = "%Y-%m-%d" self.extMatch = r"^\d{4}-\d{2}-\d{2}$" elif self.when.startswith('W'): self.interval = 60 * 60 * 24 * 7 # one week if len(self.when) != 2: raise ValueError("You must specify a day for weekly rollover from 0 to 6 (0 is Monday): %s" % self.when) if self.when[1] < '0' or self.when[1] > '6': raise ValueError("Invalid day specified for weekly rollover: %s" % self.when) self.dayOfWeek = int(self.when[1]) self.suffix = "%Y-%m-%d" self.extMatch = r"^\d{4}-\d{2}-\d{2}$" else: raise ValueError("Invalid rollover interval specified: %s" % self.when)
|
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,
1503,
16186,
2738,
972,
12,
2890,
16,
1544,
16,
296,
69,
2187,
2688,
16,
4624,
13,
365,
18,
13723,
273,
533,
18,
5797,
12,
13723,
13,
365,
18,
9572,
1380,
273,
5114,
1380,
365,
18,
17892,
273,
9439,
468,
9029,
326,
2863,
10643,
21896,
3673,
16,
1492,
353,
2537,
326,
1300,
434,
468,
3974,
3086,
10643,
383,
2496,
18,
225,
8080,
444,
326,
1544,
3758,
1399,
1347,
468,
279,
10643,
21896,
9938,
18,
225,
6562,
296,
13723,
11,
2641,
3260,
30,
468,
348,
300,
18301,
468,
490,
300,
5444,
993,
468,
670,
300,
670,
4390,
468,
463,
300,
463,
8271,
468,
7501,
18840,
300,
5824,
1879,
622,
7501,
18840,
468,
678,
95,
20,
17,
26,
97,
300,
5824,
1879,
603,
279,
8626,
2548,
31,
374,
300,
490,
28612,
468,
468,
12605,
434,
326,
296,
13723,
11,
24562,
353,
486,
10802,
31,
2612,
578,
3854,
648,
468,
903,
1440,
18,
6680,
273,
509,
12,
957,
18,
957,
10756,
309,
365,
18,
13723,
422,
296,
55,
4278,
365,
18,
6624,
273,
404,
468,
1245,
2205,
365,
18,
8477,
273,
2213,
61,
6456,
81,
6456,
72,
10185,
44,
6456,
49,
6456,
55,
6,
365,
18,
408,
2060,
273,
436,
6,
17134,
72,
95,
24,
97,
6943,
72,
95,
22,
97,
6943,
72,
95,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
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,
1503,
16186,
2738,
972,
12,
2890,
16,
1544,
16,
296,
69,
2187,
2688,
16,
4624,
13,
365,
18,
13723,
273,
533,
18,
5797,
12,
13723,
13,
365,
18,
9572,
1380,
273,
5114,
1380,
365,
18,
17892,
273,
9439,
468,
9029,
326,
2863,
10643,
21896,
3673,
16,
1492,
353,
2537,
326,
1300,
434,
468,
3974,
3086,
10643,
383,
2496,
18,
225,
8080,
444,
326,
1544,
3758,
1399,
1347,
468,
279,
10643,
21896,
9938,
18,
225,
6562,
296,
13723,
11,
2641,
3260,
30,
468,
2
] |
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_onload_action, preload_next_image_after, preload_prev_image_after): try: self.load_new_image2(check_prev_last, use_current_pixbuf_original, reset_cursor, perform_onload_action) except: self.image_load_failed(True) if preload_next_image_after: self.preload_when_idle = gobject.idle_add(self.preload_next_image, False) if preload_prev_image_after: self.preload_when_idle2 = gobject.idle_add(self.preload_prev_image, False) def check_preloadimg_prev_for_existing(self, prev_index): if prev_index != self.preloadimg_prev_in_list and prev_index != -1: if prev_index == self.loaded_img_in_list and self.image_modified == False and self.image_zoomed == False: self.preloadimg_prev_in_list = self.loaded_img_in_list
|
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 images. set_prev_to_none = False set_next_to_none = False # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg_next == True and self.preloading_images == True: # Set current image as preload_prev_image if self.image_modified == False and self.image_zoomed == False: self.preloadimg_prev_name = self.currimg_name self.preloadimg_prev_width = self.currimg_width self.preloadimg_prev_height = self.currimg_height self.preloadimg_prev_pixbuf = self.currimg_pixbuf self.preloadimg_prev_pixbuf_original = self.currimg_pixbuf_original self.preloadimg_prev_zoomratio = self.currimg_zoomratio self.preloadimg_prev_is_animation = self.currimg_is_animation if self.preloadimg_next_pixbuf_original != None: # Use preload_next_image as current image self.currimg_name = self.preloadimg_next_name self.currimg_width = self.preloadimg_next_width self.currimg_height = self.preloadimg_next_height self.currimg_pixbuf = self.preloadimg_next_pixbuf self.currimg_pixbuf_original = self.preloadimg_next_pixbuf_original self.currimg_zoomratio = self.preloadimg_next_zoomratio self.currimg_is_animation = self.preloadimg_next_is_animation set_next_to_none = True if self.verbose == True and self.currimg_name != "": print _("Loading") + ":", self.currimg_name self.put_zoom_image_to_window(True) if self.currimg_is_animation == False: self.set_image_sensitivities(True) else: self.set_image_sensitivities(False) elif use_preloadimg_prev == True and self.preloading_images == True: # Set current image as preload_next_image if self.image_modified == False and self.image_zoomed == False: self.preloadimg_next_name = self.currimg_name self.preloadimg_next_width = self.currimg_width self.preloadimg_next_height = self.currimg_height self.preloadimg_next_pixbuf = self.currimg_pixbuf self.preloadimg_next_pixbuf_original = self.currimg_pixbuf_original self.preloadimg_next_zoomratio = self.currimg_zoomratio self.preloadimg_next_is_animation = self.currimg_is_animation if self.preloadimg_prev_pixbuf_original != None: # Set preload_prev_image as current image self.currimg_name = self.preloadimg_prev_name self.currimg_width = self.preloadimg_prev_width self.currimg_height = self.preloadimg_prev_height self.currimg_pixbuf = self.preloadimg_prev_pixbuf self.currimg_pixbuf_original = self.preloadimg_prev_pixbuf_original self.currimg_zoomratio = self.preloadimg_prev_zoomratio self.currimg_is_animation = self.preloadimg_prev_is_animation set_prev_to_none = True if self.verbose == True and self.currimg_name != "": print _("Loading") + ":", self.currimg_name self.put_zoom_image_to_window(True) if self.currimg_is_animation == False: self.set_image_sensitivities(True) else: self.set_image_sensitivities(False) if set_next_to_none == True or set_prev_to_none == True: # If we used a preload image, set the correct boolean variables if self.open_mode == self.open_mode_smart or (self.open_mode == self.open_mode_last and self.last_mode == self.open_mode_smart): self.last_image_action_was_fit = True self.last_image_action_was_smart_fit = True elif self.open_mode == self.open_mode_fit or (self.open_mode == self.open_mode_last and self.last_mode == self.open_mode_fit): self.last_image_action_was_fit = True self.last_image_action_was_smart_fit = False elif self.open_mode == self.open_mode_1to1 or (self.open_mode == self.open_mode_last and self.last_mode == self.open_mode_1to1): self.last_image_action_was_fit = False if (use_preloadimg_next == False and use_preloadimg_prev == False) or (use_preloadimg_next == True and self.preloadimg_next_pixbuf_original == None) or (use_preloadimg_prev == True and self.preloadimg_prev_pixbuf_original == None) or self.preloading_images == False: self.currimg_pixbuf = None self.currimg_zoomratio = 1 self.currimg_name = str(self.image_list[self.curr_img_in_list]) if self.verbose == True and self.currimg_name != "": print _("Loading") + ":", self.currimg_name animtest = gtk.gdk.PixbufAnimation(self.currimg_name) if animtest.is_static_image() == True or (use_current_pixbuf_original == True and self.currimg_is_animation == False): self.currimg_is_animation = False if use_current_pixbuf_original == False: self.currimg_pixbuf_original = animtest.get_static_image() self.set_image_sensitivities(True) if self.open_mode == self.open_mode_smart or (self.open_mode == self.open_mode_last and self.last_mode == self.open_mode_smart): self.zoom_to_fit_or_1_to_1(None, False, False) elif self.open_mode == self.open_mode_fit or (self.open_mode == self.open_mode_last and self.last_mode == self.open_mode_fit): self.zoom_to_fit_window(None, False, False) elif self.open_mode == self.open_mode_1to1 or (self.open_mode == self.open_mode_last and self.last_mode == self.open_mode_1to1): self.zoom_1_to_1(None, False, False) else: self.currimg_is_animation = True if use_current_pixbuf_original == False: self.currimg_pixbuf_original = animtest self.zoom_1_to_1(None, False, False) self.set_image_sensitivities(False) if set_prev_to_none == True: self.preloadimg_prev_pixbuf_original = None elif set_next_to_none == True: self.preloadimg_next_pixbuf_original = None if self.onload_cmd != None and perform_onload_action == True: self.parse_action_command(self.onload_cmd, False) self.update_statusbar() self.update_title() self.image_loaded = True self.image_modified = False self.image_zoomed = False self.set_slideshow_sensitivities() if reset_cursor == True: if self.fullscreen_mode == False: self.change_cursor(None)
|
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,
16,
3073,
67,
265,
945,
67,
1128,
4672,
468,
971,
999,
67,
2972,
67,
14861,
4385,
67,
8830,
422,
1053,
16,
741,
486,
7749,
326,
468,
365,
18,
17016,
6081,
67,
14861,
4385,
67,
8830,
628,
326,
585,
31,
3560,
16,
999,
326,
2062,
468,
1245,
18,
1220,
353,
1338,
4551,
5301,
364,
400,
6894,
4602,
18,
444,
67,
10001,
67,
869,
67,
6102,
273,
1083,
444,
67,
4285,
67,
869,
67,
6102,
273,
1083,
468,
971,
1915,
353,
279,
675,
4230,
1316,
2319,
16,
999,
716,
3560,
434,
12516,
468,
279,
394,
1245,
30,
309,
999,
67,
1484,
945,
6081,
67,
4285,
422,
1053,
471,
365,
18,
1484,
15174,
67,
7369,
422,
1053,
30,
468,
1000,
783,
1316,
487,
20941,
67,
10001,
67,
2730,
309,
365,
18,
2730,
67,
7342,
422,
1083,
471,
365,
18,
2730,
67,
14932,
329,
422,
1083,
30,
365,
18,
1484,
945,
6081,
67,
10001,
67,
529,
273,
365,
18,
17016,
6081,
67,
529,
365,
18,
1484,
945,
6081,
67,
10001,
67,
2819,
273,
365,
18,
17016,
6081,
67,
2819,
365,
18,
1484,
945,
6081,
67,
10001,
67,
4210,
273,
365,
18,
17016,
6081,
67,
4210,
365,
18,
1484,
945,
6081,
67,
10001,
67,
14861,
4385,
273,
365,
18,
17016,
6081,
67,
14861,
4385,
365,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
16,
3073,
67,
265,
945,
67,
1128,
4672,
468,
971,
999,
67,
2972,
67,
14861,
4385,
67,
8830,
422,
1053,
16,
741,
486,
7749,
326,
468,
365,
18,
17016,
6081,
67,
14861,
4385,
67,
8830,
628,
326,
585,
31,
3560,
16,
999,
326,
2062,
468,
1245,
18,
1220,
353,
1338,
4551,
5301,
364,
400,
6894,
4602,
18,
444,
67,
10001,
67,
869,
67,
6102,
273,
1083,
444,
67,
4285,
67,
869,
67,
6102,
273,
1083,
468,
971,
1915,
353,
279,
675,
4230,
2
] |
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') config.read(propertiesFile) reportsFolder = os.path.join(catalinaHome, 'webapps', config.get( 'gratia', 'service.reporting.reports.folder')) exists = os.path.exists(reportsFolder) if exists != 1: print ('Reports folder %s does not exist' %(reportsFolder)) sys.exit(1) staticConfig = os.path.join(catalinaHome, 'webapps', config.get( 'gratia', 'service.reporting.staticreports')) exists = os.path.exists(staticConfig) if exists != 1: print ('Static Reports configuration file \n %s \n does not exist' %(staticConfig)) sys.exit(1) staticFolder = os.path.join(catalinaHome, 'webapps', config.get( 'gratia', 'service.reporting.static.folder')) try: os.mkdir(staticFolder) os.chown(staticFolder, 2, 2) except OSError, e: pass exists = os.path.exists(staticFolder) if exists != 1: print ('Static Reports folder \n %s \ndoes not exist and cannot be made' %(staticFolder)) sys.exit(1) #print('StaticConfig %s\nreports folder %s\n static folder %s\n birtURL %s\n' %(staticConfig, reportsFolder, staticFolder, birtURL)) parseFile(staticConfig, reportsFolder, staticFolder, birtURL)
|
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,
1785,
12,
687,
30,
1062,
2207,
3197,
270,
77,
651,
5279,
30,
5482,
11861,
19,
3197,
270,
1155,
17,
20904,
2506,
2589,
18,
8593,
12,
21,
13,
642,
273,
25076,
1435,
276,
3145,
15314,
8684,
273,
833,
63,
20,
65,
324,
2714,
1785,
273,
833,
63,
21,
65,
1790,
812,
273,
1140,
18,
803,
18,
5701,
12,
2574,
287,
15314,
8684,
11189,
3197,
270,
1155,
19,
3278,
17,
7025,
18,
4738,
6134,
642,
18,
896,
12,
4738,
812,
13,
10557,
3899,
273,
1140,
18,
803,
18,
5701,
12,
2574,
287,
15314,
8684,
16,
296,
4875,
11411,
2187,
642,
18,
588,
12,
296,
3197,
270,
1155,
2187,
296,
3278,
18,
20904,
18,
20195,
18,
5609,
26112,
1704,
273,
1140,
18,
803,
18,
1808,
12,
20195,
3899,
13,
309,
1704,
480,
404,
30,
1172,
7707,
18631,
3009,
738,
87,
1552,
486,
1005,
11,
8975,
20195,
3899,
3719,
2589,
18,
8593,
12,
21,
13,
760,
809,
273,
1140,
18,
803,
18,
5701,
12,
2574,
287,
15314,
8684,
16,
296,
4875,
11411,
2187,
642,
18,
588,
12,
296,
3197,
270,
1155,
2187,
296,
3278,
18,
20904,
18,
3845,
20195,
26112,
1704,
273,
1140,
18,
803,
18,
1808,
12,
3845,
809,
13,
309,
1704,
480,
404,
30,
1172,
7707,
5788,
868,
4363,
1664,
585,
521,
82,
738,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
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,
1785,
12,
687,
30,
1062,
2207,
3197,
270,
77,
651,
5279,
30,
5482,
11861,
19,
3197,
270,
1155,
17,
20904,
2506,
2589,
18,
8593,
12,
21,
13,
642,
273,
25076,
1435,
276,
3145,
15314,
8684,
273,
833,
63,
20,
65,
324,
2714,
1785,
273,
833,
63,
21,
65,
1790,
812,
273,
1140,
18,
803,
18,
5701,
12,
2574,
287,
15314,
8684,
11189,
3197,
270,
1155,
19,
3278,
17,
7025,
18,
4738,
6134,
642,
18,
896,
12,
4738,
812,
13,
10557,
3899,
273,
1140,
18,
2
] |
|
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,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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("lang")) if path: loc = locale.getdefaultlocale()[0][-2:].lower() flags.append(addDataPrefix("flags/%s.png" % loc)) flags.append(addDataPrefix("flags/us.png")) cls.ib = ImageButton(flags) cls.widgets["imageButtonDock"].add(cls.ib) cls.ib.show() cls.sourcebuffer = SourceBuffer() sourceview = SourceView(cls.sourcebuffer) cls.widgets["scrolledwindow6"].add(sourceview) sourceview.show() # Pgn format does not allow tabulator sourceview.set_insert_spaces_instead_of_tabs(True) sourceview.set_wrap_mode(gtk.WRAP_WORD) man = SourceLanguagesManager() lang = [l for l in man.get_available_languages() if l.get_name() == "PGN"][0] cls.sourcebuffer.set_language(lang) cls.sourcebuffer.set_highlight(True)
|
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,
17,
24,
13,
2028,
18,
18148,
9614,
2328,
12496,
14818,
8895,
5537,
6,
8009,
3612,
67,
5205,
2932,
1467,
17,
16247,
3113,
1348,
13,
225,
2943,
273,
5378,
309,
8048,
334,
4502,
13332,
589,
273,
24972,
18,
4720,
2932,
2074,
343,
403,
7923,
469,
30,
589,
273,
24972,
18,
4720,
2932,
2074,
343,
403,
3113,
1191,
23210,
33,
1289,
751,
2244,
2932,
4936,
6,
3719,
309,
589,
30,
1515,
273,
2573,
18,
588,
1886,
6339,
1435,
63,
20,
6362,
17,
22,
30,
8009,
8167,
1435,
2943,
18,
6923,
12,
1289,
751,
2244,
2932,
7133,
5258,
87,
18,
6446,
6,
738,
1515,
3719,
225,
2943,
18,
6923,
12,
1289,
751,
2244,
2932,
7133,
19,
407,
18,
6446,
6,
3719,
225,
2028,
18,
495,
273,
3421,
3616,
12,
7133,
13,
2028,
18,
18148,
9614,
2730,
3616,
40,
975,
6,
8009,
1289,
12,
6429,
18,
495,
13,
2028,
18,
495,
18,
4500,
1435,
225,
2028,
18,
3168,
4106,
273,
4998,
1892,
1435,
1084,
1945,
273,
4998,
1767,
12,
6429,
18,
3168,
4106,
13,
2028,
18,
18148,
9614,
1017,
25054,
5668,
26,
6,
8009,
1289,
12,
3168,
1945,
13,
1084,
1945,
18,
4500,
1435,
225,
468,
453,
1600,
740,
1552,
486,
1699,
3246,
11775,
1084,
1945,
18,
542,
67,
6387,
67,
9554,
67,
8591,
684,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
17,
24,
13,
2028,
18,
18148,
9614,
2328,
12496,
14818,
8895,
5537,
6,
8009,
3612,
67,
5205,
2932,
1467,
17,
16247,
3113,
1348,
13,
225,
2943,
273,
5378,
309,
8048,
334,
4502,
13332,
589,
273,
24972,
18,
4720,
2932,
2074,
343,
403,
7923,
469,
30,
589,
273,
24972,
18,
4720,
2932,
2074,
343,
403,
3113,
1191,
23210,
33,
1289,
751,
2244,
2932,
4936,
6,
3719,
309,
589,
30,
1515,
273,
2573,
18,
588,
1886,
6339,
1435,
63,
20,
6362,
17,
22,
30,
8009,
8167,
2
] |
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/47c8821cc88c71efe3af04aace14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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
65,
31713,
50,
14280,
1546,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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[0] # offset for the buffer ctx = NSGraphicsContext.currentContext() ctx.saveGraphicsState() aT = NSAffineTransform.transform() aT.translateXBy_yBy_(scrollWidth - self._buffer, self._buffer) aT.concat() # offset for the descender aT = NSAffineTransform.transform() aT.scaleBy_(scale) aT.translateXBy_yBy_(0, descender) aT.concat() # flip flipTransform = NSAffineTransform.transform() flipTransform.translateXBy_yBy_(0, upm) flipTransform.scaleXBy_yBy_(1.0, -1.0) flipTransform.concat() # set the glyph color self._glyphColor.set() # draw the records left = scrollWidth - self._buffer bottom = self._buffer height = upm * scale for recordIndex, glyphRecord in enumerate(self._glyphRecords): glyph = glyphRecord.glyph w = glyph.width xP = glyphRecord.xPlacement yP = glyphRecord.yPlacement xA = glyphRecord.xAdvance yA = glyphRecord.yAdvance path = glyph.getRepresentation("defconAppKit.NSBezierPath") # handle offsets from the record bottom += yP glyphHeight = height + yA glyphLeft = left + ((-xP - xA -w) * scale) glyphWidth = (w + xA) * scale # store the glyph rect for the alternate menu rect = ((glyphLeft, bottom), (glyphWidth, glyphHeight)) self._alternateRects[rect] = recordIndex # fill the glyph rect if glyph glyph is .notdef if glyph.name == ".notdef": self._notdefBackgroundColor.set() rect = ((-w, descender), (w, upm)) NSRectFillUsingOperation(rect, NSCompositeSourceOver) self._glyphColor.set() # shift into place and draw the glyph aT = NSAffineTransform.transform() aT.translateXBy_yBy_(-xP - xA - w, yP) aT.concat() # fill the path, highlighting alternates # if necessary if glyphRecord.alternates: self._alternateHighlightColor.set() path.fill() self._glyphColor.set() else: path.fill() # remove the y placement that was applied # and shift horizontally for the next glyph aT = NSAffineTransform.transform() aT.translateXBy_yBy_(0, -yP) aT.concat() left += (-xP - xA - w) * scale ctx.restoreGraphicsState()
|
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,
542,
1435,
11472,
6120,
8026,
12,
10576,
13,
468,
752,
2690,
283,
16665,
924,
3159,
273,
365,
6315,
5864,
3044,
2345,
273,
365,
6315,
5569,
2345,
731,
81,
273,
365,
6315,
416,
81,
12304,
1892,
273,
365,
6315,
4106,
380,
261,
21,
18,
20,
342,
3159,
13,
5532,
2384,
273,
4972,
18,
1467,
63,
20,
65,
468,
1384,
364,
326,
1613,
1103,
273,
11472,
17558,
1042,
18,
2972,
1042,
1435,
1103,
18,
5688,
17558,
1119,
1435,
279,
56,
273,
423,
5233,
1403,
558,
4059,
18,
6547,
1435,
279,
56,
18,
13929,
60,
858,
67,
93,
858,
67,
12,
12033,
2384,
300,
365,
6315,
4106,
16,
365,
6315,
4106,
13,
279,
56,
18,
16426,
1435,
468,
1384,
364,
326,
3044,
2345,
279,
56,
273,
423,
5233,
1403,
558,
4059,
18,
6547,
1435,
279,
56,
18,
5864,
858,
67,
12,
5864,
13,
279,
56,
18,
13929,
60,
858,
67,
93,
858,
67,
12,
20,
16,
3044,
2345,
13,
279,
56,
18,
16426,
1435,
468,
9668,
9668,
4059,
273,
423,
5233,
1403,
558,
4059,
18,
6547,
1435,
9668,
4059,
18,
13929,
60,
858,
67,
93,
858,
67,
12,
20,
16,
731,
81,
13,
9668,
4059,
18,
5864,
60,
858,
67,
93,
858,
67,
12,
21,
18,
20,
16,
300,
21,
18,
20,
13,
9668,
4059,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
542,
1435,
11472,
6120,
8026,
12,
10576,
13,
468,
752,
2690,
283,
16665,
924,
3159,
273,
365,
6315,
5864,
3044,
2345,
273,
365,
6315,
5569,
2345,
731,
81,
273,
365,
6315,
416,
81,
12304,
1892,
273,
365,
6315,
4106,
380,
261,
21,
18,
20,
342,
3159,
13,
5532,
2384,
273,
4972,
18,
1467,
63,
20,
65,
468,
1384,
364,
326,
1613,
1103,
273,
11472,
17558,
1042,
18,
2972,
1042,
1435,
1103,
18,
5688,
17558,
1119,
1435,
279,
56,
273,
423,
5233,
1403,
558,
4059,
2
] |
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,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
assert 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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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._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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1188,
30048,
4630,
72,
65,
389,
9561,
10031,
738,
3598,
468,
5979,
1011,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""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 is None and (not type or type == 'file'): try: fp = self.open_local_file(url1) hdrs = fp.info() del fp return url2pathname(splithost(url1)[1]), hdrs except IOError, msg: pass fp = self.open(url, data) headers = fp.info() if filename: tfp = open(filename, 'wb') else: import tempfile garbage, path = splittype(url) garbage, path = splithost(path or "") path, garbage = splitquery(path or "") path, garbage = splitattr(path or "") suffix = os.path.splitext(path)[1] (fd, filename) = tempfile.mkstemp(suffix) self.__tempfiles.append(filename) tfp = os.fdopen(fd, 'wb') result = filename, headers if self.tempcache is not None: self.tempcache[url] = result bs = 1024*8 size = -1 blocknum = 1 if reporthook: if "content-length" in headers: size = int(headers["Content-Length"]) reporthook(0, bs, size) block = fp.read(bs) if reporthook: reporthook(1, bs, size) while block: tfp.write(block) block = fp.read(bs) blocknum = blocknum + 1 if reporthook: reporthook(blocknum, bs, size) fp.close() tfp.close() del fp del tfp return result
|
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,
578,
261,
5814,
3459,
16,
1607,
13,
364,
279,
2632,
733,
12123,
880,
273,
11014,
12,
869,
2160,
12,
718,
3719,
309,
365,
18,
874,
2436,
807,
471,
880,
316,
365,
18,
874,
2436,
807,
30,
327,
365,
18,
874,
2436,
807,
63,
718,
65,
618,
16,
880,
21,
273,
1416,
723,
12,
718,
13,
309,
1544,
353,
599,
471,
261,
902,
618,
578,
618,
422,
296,
768,
11,
4672,
775,
30,
4253,
273,
365,
18,
3190,
67,
3729,
67,
768,
12,
718,
21,
13,
31424,
273,
4253,
18,
1376,
1435,
1464,
4253,
327,
880,
22,
28336,
12,
13106,
483,
669,
12,
718,
21,
25146,
21,
65,
3631,
31424,
1335,
8340,
16,
1234,
30,
1342,
4253,
273,
365,
18,
3190,
12,
718,
16,
501,
13,
1607,
273,
4253,
18,
1376,
1435,
309,
1544,
30,
3253,
84,
273,
1696,
12,
3459,
16,
296,
9464,
6134,
469,
30,
1930,
13275,
15340,
16,
589,
273,
1416,
723,
12,
718,
13,
15340,
16,
589,
273,
6121,
483,
669,
12,
803,
578,
1408,
13,
589,
16,
15340,
273,
1416,
2271,
12,
803,
578,
1408,
13,
589,
16,
15340,
273,
1416,
1747,
12,
803,
578,
1408,
13,
3758,
273,
1140,
18,
803,
18,
4939,
408,
12,
803,
25146,
21,
65,
261,
8313,
16,
1544,
13,
273,
13275,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
578,
261,
5814,
3459,
16,
1607,
13,
364,
279,
2632,
733,
12123,
880,
273,
11014,
12,
869,
2160,
12,
718,
3719,
309,
365,
18,
874,
2436,
807,
471,
880,
316,
365,
18,
874,
2436,
807,
30,
327,
365,
18,
874,
2436,
807,
63,
718,
65,
618,
16,
880,
21,
273,
1416,
723,
12,
718,
13,
309,
1544,
353,
599,
471,
261,
902,
618,
578,
618,
422,
296,
768,
11,
4672,
775,
30,
4253,
273,
365,
18,
3190,
67,
3729,
67,
768,
12,
718,
2
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return 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) return ob
|
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,
11738,
2320,
2184,
300,
2917,
1791,
4442,
468,
2164,
309,
326,
733,
6146,
1599,
291,
2272,
309,
3859,
12,
947,
16,
315,
10969,
6,
4672,
1930,
5657,
1578,
832,
18,
2625,
18,
14507,
508,
273,
315,
5325,
4053,
6740,
738,
86,
6,
738,
225,
3768,
327,
5657,
1578,
832,
18,
2625,
18,
14507,
18,
5325,
12,
947,
16,
508,
16,
432,
3948,
734,
291,
2272,
13,
327,
3768,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
11738,
2320,
2184,
300,
2917,
1791,
4442,
468,
2164,
309,
326,
733,
6146,
1599,
291,
2272,
309,
3859,
12,
947,
16,
315,
10969,
6,
4672,
1930,
5657,
1578,
832,
18,
2625,
18,
14507,
508,
273,
315,
5325,
4053,
6740,
738,
86,
6,
738,
225,
3768,
327,
5657,
1578,
832,
18,
2625,
18,
14507,
18,
5325,
12,
947,
16,
508,
16,
432,
3948,
734,
291,
2272,
13,
327,
3768,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
22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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
1132,
273,
460,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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_stats(prior) save_stats(resdic) res = [ (mtime, exe, size, rich, stone) for rich, stone, exe, mtime, size in resdic.values()] version, size = run_version_size() res.append( (9e9, 'python %s' % version, size, ref_rich, ref_stone) ) res.sort()
|
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, since PyPycanot handle extension modules. print 'getting the richards reference' ref_rich = run_richards() print 'getting the pystone reference' ref_stone = run_pystone() res = [] for exe in get_executables(): exename = os.path.splitext(exe)[0] res.append( (exename, run_richards(exe, 2), run_pystone(exe, 20000)) ) res.append( ('python %s' % sys.version.split()[0], ref_rich, ref_stone) ) print HEADLINE for exe, rich, stone in res: print FMT % (exe, rich, stone, rich / ref_rich, ref_stone / stone)
|
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,
1578,
2567,
18,
694,
8183,
797,
12,
17016,
16,
14705,
83,
13,
468,
640,
24233,
16,
326,
5721,
3302,
1404,
2809,
16,
2724,
326,
1207,
4394,
468,
353,
486,
12078,
635,
1151,
1207,
18,
1660,
2546,
2780,
1930,
678,
382,
1578,
4418,
468,
2145,
2037,
16,
3241,
4707,
9413,
4169,
352,
1640,
2710,
4381,
18,
1172,
296,
588,
1787,
326,
23657,
14727,
2114,
11,
1278,
67,
12761,
273,
1086,
67,
12761,
14727,
1435,
1172,
296,
588,
1787,
326,
293,
1094,
476,
2114,
11,
1278,
67,
13925,
273,
1086,
67,
84,
1094,
476,
1435,
400,
273,
5378,
364,
15073,
316,
336,
67,
4177,
322,
1538,
13332,
431,
1069,
273,
1140,
18,
803,
18,
4939,
408,
12,
14880,
25146,
20,
65,
13158,
273,
1140,
18,
803,
18,
588,
10838,
12,
14880,
13,
963,
273,
1140,
18,
803,
18,
588,
1467,
12,
14880,
13,
498,
273,
3481,
25,
18,
2704,
12,
768,
12,
14880,
11189,
6731,
16063,
896,
1435,
2934,
10171,
1435,
309,
498,
316,
6432,
30,
1172,
296,
25346,
2187,
431,
1069,
400,
15859,
63,
856,
65,
273,
6432,
63,
856,
6362,
30,
22,
65,
397,
261,
338,
1069,
16,
13158,
16,
963,
13,
469,
30,
400,
15859,
63,
856,
65,
273,
261,
2681,
67,
12761,
14727,
12,
14880,
16,
576,
3631,
1086,
67,
84,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
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,
1578,
2567,
18,
694,
8183,
797,
12,
17016,
16,
14705,
83,
13,
468,
640,
24233,
16,
326,
5721,
3302,
1404,
2809,
16,
2724,
326,
1207,
4394,
468,
353,
486,
12078,
635,
1151,
1207,
18,
1660,
2546,
2780,
1930,
678,
382,
1578,
4418,
468,
2145,
2037,
16,
3241,
4707,
9413,
4169,
352,
1640,
2710,
4381,
18,
1172,
296,
588,
1787,
326,
23657,
14727,
2114,
11,
1278,
67,
12761,
273,
1086,
67,
12761,
14727,
1435,
1172,
296,
588,
1787,
326,
293,
1094,
476,
2114,
11,
1278,
67,
2
] |
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']) self.parsed_uri = urlparse.urlparse(path) self.query = dict(request.parse_querystring(environ)) path = self.parsed_uri[2] if path == '/' or not path: return self.render() elif path == '/verify': return self.do_verify() elif path == '/process': return self.do_process() else: return self.not_found() else: return self.app(environ, start_response)
|
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,
18,
1937,
273,
787,
67,
2740,
365,
18,
3432,
273,
5378,
365,
18,
1969,
67,
718,
273,
590,
18,
10062,
67,
718,
12,
28684,
16,
598,
67,
803,
67,
1376,
33,
8381,
16,
598,
67,
2271,
67,
1080,
33,
8381,
13,
225,
589,
273,
283,
18,
1717,
12,
2890,
18,
1944,
67,
3239,
16,
10226,
5473,
3292,
4211,
67,
5923,
19486,
365,
18,
10817,
67,
1650,
273,
15185,
18,
718,
2670,
12,
803,
13,
365,
18,
2271,
273,
2065,
12,
2293,
18,
2670,
67,
2271,
1080,
12,
28684,
3719,
225,
589,
273,
365,
18,
10817,
67,
1650,
63,
22,
65,
309,
589,
422,
2023,
578,
486,
589,
30,
327,
365,
18,
5902,
1435,
1327,
589,
422,
1173,
8705,
4278,
327,
365,
18,
2896,
67,
8705,
1435,
1327,
589,
422,
1173,
2567,
4278,
327,
365,
18,
2896,
67,
2567,
12,
2293,
13,
469,
30,
327,
365,
18,
902,
67,
7015,
1435,
469,
30,
327,
365,
18,
2910,
12,
28684,
16,
787,
67,
2740,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
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,
18,
1937,
273,
787,
67,
2740,
365,
18,
3432,
273,
5378,
365,
18,
1969,
67,
718,
273,
590,
18,
10062,
67,
718,
12,
28684,
16,
598,
67,
803,
67,
1376,
33,
8381,
16,
598,
67,
2271,
67,
1080,
33,
8381,
13,
225,
589,
273,
283,
18,
1717,
12,
2890,
18,
1944,
67,
3239,
16,
10226,
5473,
3292,
4211,
67,
5923,
19486,
365,
18,
10817,
67,
1650,
273,
15185,
18,
718,
2670,
12,
803,
13,
365,
18,
2271,
273,
2065,
12,
2293,
18,
2670,
67,
2
] |
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.id" sql += " ORDER BY b.bug_id"
|
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 "Bugzilla MySQL('%s':'%s':'%s':'%s'): connecting..." % (_db, _host, _user, _password) mysql_con = MySQLdb.connect(host=_host, user=_user, passwd=_password, db=_db, compress=1, cursorclass=MySQLdb.cursors.DictCursor) mysql_cur = mysql_con.cursor() # init Trac environment print "Trac SQLite('%s'): connecting..." % (_env) trac = TracDatabase(_env) # force mode... if _force == 1: print "cleaning all tickets..." c = trac.db().cursor() c.execute("""DELETE FROM ticket_change""") trac.db().commit() c.execute("""DELETE FROM ticket""") trac.db().commit() c.execute("""DELETE FROM attachment""") os.system('rm -rf %s' % trac.env.get_attachments_dir()) os.mkdir(trac.env.get_attachments_dir()) trac.db().commit() print print "1. import severities..." severities = (('blocker', '1'), ('critical', '2'), ('major', '3'), ('normal', '4'), ('minor', '5'), ('trivial', '6'), ('enhancement', '7')) trac.setSeverityList(severities) print print "2. import components..." sql = "SELECT value, initialowner AS owner FROM components" if PRODUCTS: sql += " WHERE %s" % productFilter('program', PRODUCTS) mysql_cur.execute(sql) components = mysql_cur.fetchall() for component in components: component['owner'] = trac.getLoginName(mysql_cur, component['owner']) trac.setComponentList(components, 'value') print print "3. import priorities..." priorities = (('P1', '1'), ('P2', '2'), ('P3', '3'), ('P4', '4'), ('P5', '5')) trac.setPriorityList(priorities) print print "4. import versions..." sql = "SELECT DISTINCTROW value FROM versions" if PRODUCTS: sql += " WHERE %s" % productFilter('program', PRODUCTS) mysql_cur.execute(sql) versions = mysql_cur.fetchall() trac.setVersionList(versions, 'value') print print "5. import milestones..." mysql_cur.execute("SELECT value FROM milestones") milestones = mysql_cur.fetchall() 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" mysql_cur.execute(sql) bugs = mysql_cur.fetchall() print print "7. import bugs and bug activity..." for bug in bugs: bugid = bug['bug_id'] ticket = {} keywords = [] ticket['id'] = bugid ticket['time'] = bug['creation_ts'] ticket['changetime'] = bug['delta_ts'] ticket['component'] = bug['component'] ticket['severity'] = bug['bug_severity'] ticket['priority'] = bug['priority'] ticket['owner'] = trac.getLoginName(mysql_cur, bug['assigned_to']) ticket['reporter'] = trac.getLoginName(mysql_cur, bug['reporter']) mysql_cur.execute("SELECT * FROM cc WHERE bug_id = %s" % bugid) cc_records = mysql_cur.fetchall() cc_list = [] for cc in cc_records: cc_list.append(trac.getLoginName(mysql_cur, cc['who'])) ticket['cc'] = string.join(cc_list, ', ') ticket['version'] = bug['version'] if bug['target_milestone'] == '---': ticket['milestone'] = '' else: ticket['milestone'] = bug['target_milestone'] bug_status = bug['bug_status'].lower() ticket['status'] = statusXlator[bug_status] ticket['resolution'] = bug['resolution'].lower() # a bit of extra work to do open tickets if bug_status == 'open': if owner != '': ticket['status'] = 'assigned' else: ticket['status'] = 'new' ticket['summary'] = bug['short_desc'] keywords = string.split(bug['keywords'], ' ') mysql_cur.execute("SELECT * FROM longdescs WHERE bug_id = %s" % bugid) longdescs = list(mysql_cur.fetchall()) # check for empty 'longdescs[0]' field... if len(longdescs) == 0: ticket['description'] = '' else: ticket['description'] = longdescs[0]['thetext'] del longdescs[0] for desc in longdescs: ignore = False for comment in IGNORE_COMMENTS: if re.match(comment, desc['thetext']): ignore = True if ignore: continue trac.addTicketComment(ticket=bugid, time=desc['bug_when'], author=trac.getLoginName(mysql_cur, desc['who']), value=desc['thetext']) mysql_cur.execute("SELECT * FROM bugs_activity WHERE bug_id = %s ORDER BY bug_when" % bugid) bugs_activity = mysql_cur.fetchall() resolution = '' ticketChanges = [] for activity in bugs_activity: field_name = trac.getFieldName(mysql_cur, activity['fieldid']).lower() removed = activity[activityFields['removed']] added = activity[activityFields['added']] # statuses and resolutions are in lowercase in trac if field_name == 'resolution' or field_name == 'bug_status': removed = removed.lower() added = added.lower() # remember most recent resolution, we need this later if field_name == 'resolution': resolution = added.lower() keywordChange = False oldKeywords = string.join(keywords, " ") # convert bugzilla field names... if field_name == 'bug_severity': field_name = 'severity' elif field_name == 'assigned_to': field_name = 'owner' elif field_name == 'bug_status': field_name = 'status' if removed in STATUS_KEYWORDS: kw = STATUS_KEYWORDS[removed] if kw in keywords: keywords.remove(kw) else: oldKeywords = string.join(keywords + [ kw ], " ") keywordChange = True if added in STATUS_KEYWORDS: kw = STATUS_KEYWORDS[added] keywords.append(kw) keywordChange = True added = statusXlator[added] removed = statusXlator[removed] elif field_name == 'short_desc': field_name = 'summary' elif field_name == 'product': if removed in PRODUCT_KEYWORDS: kw = PRODUCT_KEYWORDS[removed] if kw in keywords: keywords.remove(kw) else: oldKeywords = string.join(keywords + [ kw ], " ") keywordChange = True if added in PRODUCT_KEYWORDS: kw = PRODUCT_KEYWORDS[added] keywords.append(kw) keywordChange = True ticketChange = {} ticketChange['ticket'] = bugid ticketChange['time'] = activity['bug_when'] ticketChange['author'] = trac.getLoginName(mysql_cur, activity['who']) ticketChange['field'] = field_name ticketChange['oldvalue'] = removed ticketChange['newvalue'] = added if keywordChange: newKeywords = string.join(keywords, " ") ticketChangeKw = ticketChange ticketChangeKw['field'] = 'keywords' ticketChangeKw['oldvalue'] = oldKeywords ticketChangeKw['newvalue'] = newKeywords #trac.addTicketChange(ticket=bugid, time=activity['bug_when'], # author=trac.getLoginName(mysql_cur, activity['who']), # field='keywords', oldvalue=oldKeywords, newvalue=newKeywords) ticketChanges.append(ticketChangeKw) if field_name in IGNORED_ACTIVITY_FIELDS: continue # skip changes that have no effect (think translation!) if added == removed: continue # bugzilla splits large summary changes into two records for oldChange in ticketChanges: if (field_name == 'summary' and oldChange['field'] == ticketChange['field'] and oldChange['time'] == ticketChange['time'] and oldChange['author'] == ticketChange['author']): oldChange['oldvalue'] += " " + ticketChange['oldvalue'] oldChange['newvalue'] += " " + ticketChange['newvalue'] break else: #trac.addTicketChange(ticket=bugid, time=activity['bug_when'], # author=trac.getLoginName(mysql_cur, activity['who']), # field=field_name, oldvalue=removed, newvalue=added) ticketChanges.append (ticketChange) for ticketChange in ticketChanges: trac.addTicketChange (**ticketChange) # for some reason, bugzilla v2.11 seems to clear the resolution # when you mark a bug as closed. let's remember it and restore # it if the ticket is closed but there's no resolution. if not ticket['resolution'] and ticket['status'] == 'closed': ticket['resolution'] = resolution if bug['bug_status'] in STATUS_KEYWORDS: kw = STATUS_KEYWORDS[bug['bug_status']] # may have already been added during activity import if kw not in keywords: keywords.append(kw) if bug['product'] in PRODUCT_KEYWORDS: kw = PRODUCT_KEYWORDS[bug['product']] # may have already been added during activity import if kw not in keywords: keywords.append(kw) mysql_cur.execute("SELECT * FROM attachments WHERE bug_id = %s" % bugid) attachments = mysql_cur.fetchall() for a in attachments: author = trac.getLoginName(mysql_cur, a['submitter_id']) tracAttachment = Attachment(a['filename'], a['thedata']) trac.addAttachment(bugid, tracAttachment, a['description'], author) ticket['keywords'] = string.join(keywords) ticketid = trac.addTicket(**ticket) print "Success!"
|
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,
309,
605,
62,
67,
5757,
422,
296,
22,
18,
2499,
4278,
1172,
296,
7736,
605,
29298,
90,
10745,
331,
9,
87,
1963,
1093,
738,
605,
62,
67,
5757,
5728,
2314,
3292,
14923,
3546,
273,
296,
1673,
1132,
11,
5728,
2314,
3292,
9665,
3546,
273,
296,
2704,
1132,
11,
225,
468,
1208,
16907,
15990,
3330,
1172,
315,
19865,
15990,
13485,
29909,
87,
11,
2497,
9,
87,
11,
2497,
9,
87,
11,
2497,
9,
87,
11,
4672,
14244,
7070,
738,
261,
67,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
13,
7219,
67,
591,
273,
13485,
1966,
18,
3612,
12,
2564,
33,
67,
2564,
16,
729,
33,
67,
1355,
16,
19093,
33,
67,
3664,
16,
1319,
33,
67,
1966,
16,
8099,
33,
21,
16,
3347,
1106,
33,
28723,
1966,
18,
2789,
1383,
18,
5014,
6688,
13,
7219,
67,
1397,
273,
7219,
67,
591,
18,
9216,
1435,
225,
468,
1208,
2197,
71,
3330,
1172,
315,
1609,
71,
16192,
29909,
87,
11,
4672,
14244,
7070,
738,
261,
67,
3074,
13,
1284,
71,
273,
2197,
71,
4254,
24899,
3074,
13,
225,
468,
2944,
1965,
2777,
309,
389,
5734,
422,
404,
30,
1172,
315,
6200,
310,
777,
24475,
7070,
276,
273,
1284,
71,
18,
1966,
7675,
9216,
1435,
276,
18,
8837,
2932,
3660,
6460,
4571,
9322,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
309,
605,
62,
67,
5757,
422,
296,
22,
18,
2499,
4278,
1172,
296,
7736,
605,
29298,
90,
10745,
331,
9,
87,
1963,
1093,
738,
605,
62,
67,
5757,
5728,
2314,
3292,
14923,
3546,
273,
296,
1673,
1132,
11,
5728,
2314,
3292,
9665,
3546,
273,
296,
2704,
1132,
11,
225,
468,
1208,
16907,
15990,
3330,
1172,
315,
19865,
15990,
13485,
29909,
87,
11,
2497,
9,
87,
11,
2497,
9,
87,
11,
2497,
9,
87,
11,
4672,
14244,
7070,
738,
261,
67,
1966,
16,
389,
2564,
2
] |
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) return y
|
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,
22,
16,
890,
13,
4140,
16,
833,
273,
1123,
10531,
22,
65,
309,
290,
405,
576,
30,
919,
273,
1123,
63,
22,
65,
469,
30,
919,
273,
2618,
309,
4608,
30,
833,
273,
7217,
12,
1968,
16,
11063,
13,
677,
273,
4140,
30857,
1968,
13,
309,
919,
30,
309,
4608,
30,
919,
273,
7217,
12,
2019,
13,
677,
16186,
1576,
25648,
2725,
12,
2019,
13,
327,
677,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
22,
16,
890,
13,
4140,
16,
833,
273,
1123,
10531,
22,
65,
309,
290,
405,
576,
30,
919,
273,
1123,
63,
22,
65,
469,
30,
919,
273,
2618,
309,
4608,
30,
833,
273,
7217,
12,
1968,
16,
11063,
13,
677,
273,
4140,
30857,
1968,
13,
309,
919,
30,
309,
4608,
30,
919,
273,
7217,
12,
2019,
13,
677,
16186,
1576,
25648,
2725,
12,
2019,
13,
327,
677,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
2261,
16,
365,
2934,
5688,
67,
345,
12,
2890,
16,
1544,
16,
2549,
67,
718,
16,
6340,
16,
22038,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
2261,
16,
365,
2934,
5688,
67,
345,
12,
2890,
16,
1544,
16,
2549,
67,
718,
16,
6340,
16,
22038,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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 ): os.makedirs( output_dir ) xslt_proc = registered_xsltprocs[ xslt_proc_name ] if comment_file != "": comment_file = os.path.abspath( comment_file ) if expected_results_file != "": expected_results_file = os.path.abspath( expected_results_file ) else: expected_results_file = os.path.abspath( map_path( "empty_expected_results.xml" ) ) extended_test_results = os.path.join( output_dir, "extended_test_results.xml" ) if "x" in reports: log( " Merging with expected results..." ) xslt_proc( test_results_file , xsl_path( "add_expected_results.xsl" ) , extended_test_results , { "expected_results_file": expected_results_file, "failures_markup_file" : failures_markup_file } ) links = os.path.join( output_dir, "links.html" ) test_output_dir = os.path.join( output_dir, "output" ) if not os.path.exists( test_output_dir ): os.makedirs( test_output_dir ) if "l" in reports: log( " Making test output files..." ) xslt_proc( extended_test_results , xsl_path( "links_page.xsl" ) , links , { "source": source , "run_date": run_date , "comment_file": comment_file , "explicit_markup_file" : failures_markup_file } ) issues = os.path.join( output_dir, "issues.html" ) if "i" in reports: log( " Making issues list..." ) xslt_proc( extended_test_results , xsl_path( "issues_page.xsl" ) , issues , { "source": source , "run_date": run_date , "comment_file": comment_file , "explicit_markup_file" : failures_markup_file } ) for mode in ( "developer", "user" ): if mode[0] + "d" in reports: log( " Making detailed %s report..." % mode ) xslt_proc( extended_test_results , xsl_path( "result_page.xsl" ) , os.path.join( output_dir, "%s_%s" % ( mode, "result_page.html" ) ) , { "links_file": "links.html" , "mode": mode , "source": source , "run_date": run_date , "comment_file": comment_file , "expected_results_file": expected_results_file , "explicit_markup_file" : failures_markup_file } ); for mode in ( "developer", "user" ): if mode[0] + "s" in reports: log( " Making summary %s report..." % mode ) xslt_proc( extended_test_results , xsl_path( "summary_page.xsl" ) , os.path.join( output_dir, "%s_%s" % ( mode, "summary_page.html" ) ) , { "mode" : mode , "source": source , "run_date": run_date , "comment_file": comment_file , "explicit_markup_file" : failures_markup_file } ); if "e" in reports: log( " Generating expected_results ..." ) xslt_proc( extended_test_results , xsl_path( "produce_expected_results.xsl" ) , os.path.join( output_dir, "expected_results.xml" ) ) shutil.copyfile( xsl_path( "master.css" ), os.path.join( output_dir, "master.css" ) )
|
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,
1214,
269,
563,
67,
3239,
269,
31399,
67,
9381,
67,
529,
269,
10557,
262,
30,
613,
12,
315,
8390,
2822,
326,
10557,
7070,
262,
1001,
1330,
972,
273,
404,
225,
876,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
1686,
67,
1214,
16,
563,
67,
3239,
262,
309,
486,
1140,
18,
803,
18,
1808,
12,
876,
67,
1214,
262,
30,
1140,
18,
81,
9477,
10539,
12,
876,
67,
1214,
262,
225,
31399,
67,
9381,
273,
4104,
67,
92,
14414,
27537,
63,
31399,
67,
9381,
67,
529,
308,
225,
309,
2879,
67,
768,
480,
1408,
30,
2879,
67,
768,
273,
1140,
18,
803,
18,
5113,
803,
12,
2879,
67,
768,
262,
225,
309,
2665,
67,
4717,
67,
768,
480,
1408,
30,
2665,
67,
4717,
67,
768,
273,
1140,
18,
803,
18,
5113,
803,
12,
2665,
67,
4717,
67,
768,
262,
469,
30,
2665,
67,
4717,
67,
768,
273,
1140,
18,
803,
18,
5113,
803,
12,
852,
67,
803,
12,
315,
5531,
67,
3825,
67,
4717,
18,
2902,
6,
262,
262,
282,
7021,
67,
3813,
67,
4717,
273,
1140,
18,
803,
18,
5701,
12,
876,
67,
1214,
16,
315,
14948,
67,
3813,
67,
4717,
18,
2902,
6,
262,
309,
315,
92,
6,
316,
10557,
30,
613,
12,
315,
565,
14940,
1998,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
1214,
269,
563,
67,
3239,
269,
31399,
67,
9381,
67,
529,
269,
10557,
262,
30,
613,
12,
315,
8390,
2822,
326,
10557,
7070,
262,
1001,
1330,
972,
273,
404,
225,
876,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
1686,
67,
1214,
16,
563,
67,
3239,
262,
309,
486,
1140,
18,
803,
18,
1808,
12,
876,
67,
1214,
262,
30,
1140,
18,
81,
9477,
10539,
12,
876,
67,
1214,
262,
225,
31399,
67,
9381,
273,
4104,
67,
92,
14414,
27537,
63,
2
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
3536,
1788,
392,
930,
434,
333,
4843,
1605,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return 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,
18,
588,
67,
12730,
67,
723,
12,
11437,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
18,
588,
67,
12730,
67,
723,
12,
11437,
7038,
13,
327,
2230,
12,
2890,
18,
12730,
67,
5930,
16,
261,
12730,
67,
723,
16,
508,
16,
2077,
3631,
5323,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
3085,
13,
1365,
18,
1918,
9446,
1435,
284,
1098,
273,
1387,
682,
12,
3085,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
3085,
13,
1365,
18,
1918,
9446,
1435,
284,
1098,
273,
1387,
682,
12,
3085,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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.getConfigChecked() self.isActive = len(self.sourceMods) != 0 #--Type Fields recAttrs_class = self.recAttrs_class = {} for recClass in (MreMgef,): recAttrs_class[recClass] = ('castingSound','boltSound','hitSound','areaSound') for recClass in (MreActi,MreLigh): recAttrs_class[recClass] = ('sound',) for recClass in (MreWthr,): recAttrs_class[recClass] = ('sound','sounds') for recClass in (MreCont,): recAttrs_class[recClass] = ('soundOpen','soundClose') for recClass in (MreDoor,): recAttrs_class[recClass] = ('soundOpen','soundClose','soundLoop') #--Needs Longs self.longTypes = set(('MGEF','ACTI','LIGH','WTHR','CONT','DOOR'))
|
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,
12,
2890,
16,
2272,
812,
16,
945,
1739,
87,
13,
365,
18,
350,
67,
892,
273,
2618,
468,
413,
1557,
17408,
635,
1525,
13444,
18,
365,
18,
4816,
4818,
273,
444,
1435,
468,
413,
2115,
3318,
6013,
2112,
635,
1705,
15546,
19,
2354,
18,
365,
18,
3168,
1739,
87,
273,
365,
18,
588,
809,
11454,
1435,
365,
18,
291,
3896,
273,
562,
12,
2890,
18,
3168,
1739,
87,
13,
480,
374,
468,
413,
559,
7190,
1950,
8262,
67,
1106,
273,
365,
18,
3927,
8262,
67,
1106,
273,
2618,
364,
1950,
797,
316,
261,
49,
266,
49,
908,
74,
16,
4672,
1950,
8262,
67,
1106,
63,
3927,
797,
65,
273,
7707,
4155,
310,
24331,
17023,
70,
4397,
24331,
17023,
15989,
24331,
17023,
5036,
24331,
6134,
364,
1950,
797,
316,
261,
49,
266,
2459,
77,
16,
49,
266,
48,
2031,
4672,
1950,
8262,
67,
1106,
63,
3927,
797,
65,
273,
7707,
29671,
2187,
13,
364,
1950,
797,
316,
261,
49,
266,
59,
451,
86,
16,
4672,
1950,
8262,
67,
1106,
63,
3927,
797,
65,
273,
7707,
29671,
17023,
87,
9284,
6134,
364,
1950,
797,
316,
261,
49,
266,
660,
16,
4672,
1950,
8262,
67,
1106,
63,
3927,
797,
65,
273,
7707,
29671,
3678,
17023,
29671,
4605,
6134,
364,
1950,
797,
316,
261,
49,
266,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
12,
2890,
16,
2272,
812,
16,
945,
1739,
87,
13,
365,
18,
350,
67,
892,
273,
2618,
468,
413,
1557,
17408,
635,
1525,
13444,
18,
365,
18,
4816,
4818,
273,
444,
1435,
468,
413,
2115,
3318,
6013,
2112,
635,
1705,
15546,
19,
2354,
18,
365,
18,
3168,
1739,
87,
273,
365,
18,
588,
809,
11454,
1435,
365,
18,
291,
3896,
273,
562,
12,
2890,
18,
3168,
1739,
87,
13,
480,
374,
468,
413,
559,
7190,
1950,
8262,
67,
1106,
273,
365,
18,
3927,
8262,
2
] |
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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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 + " description" return None # split the time slide files into 105 groups to aid with I/O num_files=len(files) print num_files groups_of_files = split_seq(files,105) print groups_of_files for filegroup in groups_of_files: if filegroup: # extract the coinc table coinc_table = SnglInspiralUtils.ReadSnglInspiralFromFiles(filegroup, mangle_event_id=False, verbose=verb, non_lsc_tables_ok=False) segDict = SearchSummaryUtils.GetSegListFromSearchSummaries(filegroup) rings = segments.segmentlist(iterutils.flatten(segDict.values())) rings.sort() for k,ring in enumerate(rings): rings[k] = segments.segment(rings[k][0], rings[k][1] + 10**(-9)) shift_vector = {"H1": 0, "H2": 0, "L1": 5, "V1": 5} SnglInspiralUtils.slideTriggersOnRingWithVector(coinc_table, shift_vector, rings) full_coinc_table.extend(CoincInspiralUtils.coincInspiralTable(coinc_table,coinc_stat)) return full_coinc_table
|
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,
1247,
768,
18,
87,
21271,
12,
3384,
33,
4951,
16,
5565,
67,
1916,
33,
1916,
13,
1392,
16,
25143,
273,
1247,
18,
1893,
2354,
7398,
1435,
1390,
273,
1392,
18,
84,
4293,
1098,
1435,
309,
486,
562,
12,
2354,
4672,
1172,
1671,
9499,
18,
11241,
16,
315,
2493,
1914,
1158,
1390,
598,
315,
397,
1936,
397,
315,
2477,
6,
327,
599,
468,
1416,
326,
813,
12701,
1390,
1368,
23633,
3252,
358,
20702,
598,
467,
19,
51,
818,
67,
2354,
33,
1897,
12,
2354,
13,
1172,
818,
67,
2354,
3252,
67,
792,
67,
2354,
273,
1416,
67,
5436,
12,
2354,
16,
21661,
13,
1172,
3252,
67,
792,
67,
2354,
364,
585,
1655,
316,
3252,
67,
792,
67,
2354,
30,
309,
585,
1655,
30,
468,
2608,
326,
13170,
71,
1014,
13170,
71,
67,
2121,
273,
348,
3368,
80,
382,
1752,
481,
287,
1989,
18,
1994,
55,
3368,
80,
382,
1752,
481,
287,
1265,
2697,
12,
768,
1655,
16,
312,
4341,
67,
2575,
67,
350,
33,
8381,
16,
3988,
33,
16629,
16,
1661,
67,
80,
1017,
67,
9373,
67,
601,
33,
8381,
13,
2291,
5014,
273,
5167,
4733,
1989,
18,
967,
3289,
682,
1265,
2979,
15944,
12,
768,
1655,
13,
26537,
273,
5155,
18,
9273,
1098,
12,
2165,
5471,
18,
16940,
12,
5680,
5014,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
1247,
768,
18,
87,
21271,
12,
3384,
33,
4951,
16,
5565,
67,
1916,
33,
1916,
13,
1392,
16,
25143,
273,
1247,
18,
1893,
2354,
7398,
1435,
1390,
273,
1392,
18,
84,
4293,
1098,
1435,
309,
486,
562,
12,
2354,
4672,
1172,
1671,
9499,
18,
11241,
16,
315,
2493,
1914,
1158,
1390,
598,
315,
397,
1936,
397,
315,
2477,
6,
327,
599,
468,
1416,
326,
813,
12701,
1390,
1368,
23633,
3252,
358,
20702,
598,
467,
19,
51,
818,
67,
2354,
33,
1897,
12,
2354,
2
] |
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,5], [5,6]]), recombinator(intensity = 0.1) ] ) # the supposed proportions are 1-1: 0.5-r/2, 1-2: r/2, 2-1: r/2, 2-2: 0.5-r/2 #print simu.dvars(0).haploFreq assert (simu.dvars(0).haploFreq['0-1']['%s-%s'%(a1,a2)] - 0.05) < 0.01 assert (simu.dvars(0).haploFreq['2-3']['%s-%s'%(a1,a2)] - 0.1) < 0.01 assert (simu.dvars(0).haploFreq['3-4']['%s-%s'%(a1,a2)] - 0.1) < 0.01 assert (simu.dvars(0).haploFreq['4-5']['%s-%s'%(a1,a2)] - 0.25) < 0.01 assert (simu.dvars(0).haploFreq['5-6']['%s-%s'%(a1,a2)] - 0.2) < 0.01
|
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,
16,
279,
22,
273,
404,
16,
576,
1843,
273,
11209,
12,
23899,
16,
1515,
77,
22850,
22,
16,
23,
16,
22,
6487,
1515,
77,
1616,
22850,
20,
16,
21,
16,
20,
16,
22,
16,
24,
16,
20,
16,
24,
65,
262,
4378,
30110,
12,
5120,
16,
460,
22850,
69,
21,
5772,
27,
15,
63,
69,
22,
5772,
27,
13,
3142,
89,
273,
3142,
11775,
12,
5120,
16,
2744,
49,
1776,
10756,
3142,
89,
18,
14965,
5390,
12,
306,
610,
12,
5622,
383,
14485,
273,
12167,
20,
16,
21,
6487,
306,
22,
16,
23,
6487,
306,
23,
16,
24,
6487,
306,
24,
16,
25,
6487,
306,
25,
16,
26,
13563,
3631,
283,
9301,
4240,
12,
474,
6318,
273,
374,
18,
21,
13,
308,
262,
468,
326,
18405,
450,
655,
1115,
854,
404,
17,
21,
30,
374,
18,
25,
17,
86,
19,
22,
16,
404,
17,
22,
30,
436,
19,
22,
16,
576,
17,
21,
30,
436,
19,
22,
16,
576,
17,
22,
30,
374,
18,
25,
17,
86,
19,
22,
468,
1188,
3142,
89,
18,
72,
4699,
12,
20,
2934,
76,
438,
383,
14485,
1815,
261,
9812,
89,
18,
72,
4699,
12,
20,
2934,
76,
438,
383,
14485,
3292,
20,
17,
21,
21712,
9,
87,
6456,
87,
11,
17105,
69,
21,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
16,
279,
22,
273,
404,
16,
576,
1843,
273,
11209,
12,
23899,
16,
1515,
77,
22850,
22,
16,
23,
16,
22,
6487,
1515,
77,
1616,
22850,
20,
16,
21,
16,
20,
16,
22,
16,
24,
16,
20,
16,
24,
65,
262,
4378,
30110,
12,
5120,
16,
460,
22850,
69,
21,
5772,
27,
15,
63,
69,
22,
5772,
27,
13,
3142,
89,
273,
3142,
11775,
12,
5120,
16,
2744,
49,
1776,
10756,
3142,
89,
18,
14965,
5390,
12,
306,
610,
12,
5622,
383,
14485,
2
] |
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_checkpoint") # this will get fancier, use cmdname, worry about being fast when no diffs, merging ops, redundant calls in one cmd, etc: self.archive.checkpoint( cptype = 'end_cmd' ) self.remake_UI_menuitems() # redundant; needed since cmd-Z accel key is not preceded by it, like looking at menu is! ######@@@@@@ THIS MIGHT BE INADEQUATE AS A WORKAROUND when we do an Undo or Redo itself -- or it might be ok -- # need to re-call it when they end, for sure; not sure this is happening now. ##k pass return
|
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,
261,
10086,
67,
18341,
16,
13,
309,
2376,
67,
18341,
30,
468,
333,
4696,
306,
345,
434,
13026,
1611,
4366,
65,
716,
1198,
11307,
364,
15436,
9776,
310,
353,
3696,
309,
15436,
67,
10686,
18,
4148,
67,
31226,
22,
30,
1550,
18,
8189,
18,
2150,
2932,
225,
1198,
67,
31226,
22,
30,
679,
67,
4172,
67,
25414,
7923,
468,
333,
903,
336,
284,
19292,
2453,
16,
999,
1797,
529,
16,
26784,
2973,
3832,
4797,
1347,
1158,
15250,
16,
17256,
6727,
16,
19530,
4097,
316,
1245,
1797,
16,
5527,
30,
365,
18,
10686,
18,
25414,
12,
276,
27672,
273,
296,
409,
67,
4172,
11,
262,
365,
18,
2764,
911,
67,
5370,
67,
5414,
3319,
1435,
468,
19530,
31,
3577,
3241,
1797,
17,
62,
15153,
498,
353,
486,
29953,
635,
518,
16,
3007,
7849,
622,
3824,
353,
5,
468,
1970,
7,
30989,
30989,
30989,
20676,
490,
7700,
9722,
2120,
37,
1639,
3500,
1777,
5355,
432,
17062,
985,
51,
5240,
1347,
732,
741,
392,
1351,
2896,
578,
4621,
83,
6174,
1493,
578,
518,
4825,
506,
1529,
1493,
468,
1608,
358,
283,
17,
1991,
518,
1347,
2898,
679,
16,
364,
3071,
31,
486,
3071,
333,
353,
5865,
310,
2037,
18,
7541,
79,
1342,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
261,
10086,
67,
18341,
16,
13,
309,
2376,
67,
18341,
30,
468,
333,
4696,
306,
345,
434,
13026,
1611,
4366,
65,
716,
1198,
11307,
364,
15436,
9776,
310,
353,
3696,
309,
15436,
67,
10686,
18,
4148,
67,
31226,
22,
30,
1550,
18,
8189,
18,
2150,
2932,
225,
1198,
67,
31226,
22,
30,
679,
67,
4172,
67,
25414,
7923,
468,
333,
903,
336,
284,
19292,
2453,
16,
999,
1797,
529,
16,
26784,
2973,
3832,
4797,
1347,
1158,
15250,
16,
17256,
6727,
16,
19530,
4097,
2
] |
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,
12625,
18442,
3325,
16,
1492,
848,
506,
1399,
316,
20998,
598,
326,
16592,
1296,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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20998,
598,
326,
16592,
1296,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
803,
2932,
1313,
361,
345,
18,
7043,
2486,
6,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
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,
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,
803,
2932,
1313,
361,
345,
18,
7043,
2486,
6,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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('server', '')))) return False else: password = config.get('password', '') jid = config.get('jid', '') from common import debug debug(config.get('server', '')) auth = self.client.auth(jid_get_node(jid), password, "salut") debug(repr(auth)) return auth
|
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,
3580,
30,
365,
18,
4176,
18,
18356,
2668,
1636,
2187,
1234,
33,
67,
2668,
668,
30,
14312,
486,
521,
8929,
18,
7801,
1221,
3071,
326,
1438,
1846,
462,
2584,
521,
6142,
87,
13,
6146,
13236,
5107,
11,
738,
261,
1425,
18,
588,
2668,
3567,
2187,
875,
3719,
3719,
327,
1083,
469,
30,
2201,
273,
642,
18,
588,
2668,
3664,
2187,
28707,
14201,
273,
642,
18,
588,
2668,
18252,
2187,
28707,
628,
2975,
1930,
1198,
1198,
12,
1425,
18,
588,
2668,
3567,
2187,
875,
3719,
1357,
273,
365,
18,
2625,
18,
1944,
12,
18252,
67,
588,
67,
2159,
12,
18252,
3631,
2201,
16,
315,
21982,
322,
7923,
327,
1357,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
3580,
30,
365,
18,
4176,
18,
18356,
2668,
1636,
2187,
1234,
33,
67,
2668,
668,
30,
14312,
486,
521,
8929,
18,
7801,
1221,
3071,
326,
1438,
1846,
462,
2584,
521,
6142,
87,
13,
6146,
13236,
5107,
11,
738,
261,
1425,
18,
588,
2668,
3567,
2187,
875,
3719,
3719,
327,
1083,
469,
30,
2201,
273,
642,
18,
588,
2668,
3664,
2187,
28707,
14201,
273,
642,
18,
588,
2668,
18252,
2187,
28707,
628,
2975,
1930,
1198,
1198,
12,
1425,
18,
588,
2668,
3567,
2187,
875,
2
] |
|
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, "IOnamespace",(),{}) self.oi = type.__new__(type, "IOnamespace",(),{}) self.cmdin = ObjectPipe() self.cmdout = ObjectPipe() self.ioin = {} self.ioout = {} for n in self.ionames: extfd = external_fd.get(n) if type(extfd) is not tuple: extfd = (extfd,None) ioin,ioout = extfd if ioin is None: ioin = ObjectPipe() elif type(ioin) is int: ioin = self._IO_fdwrapper(ioin,None) if ioout is None: ioout = ObjectPipe() elif type(ioout) is int: ioin = self._IO_fdwrapper(None,ioout)
|
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,
739,
1435,
365,
18,
5930,
350,
273,
599,
365,
18,
8820,
1153,
329,
273,
599,
365,
18,
8820,
4139,
273,
444,
1435,
365,
18,
2761,
472,
67,
4139,
273,
444,
1435,
365,
18,
27481,
329,
67,
11482,
273,
599,
365,
18,
4148,
67,
2815,
33,
20,
365,
18,
2738,
67,
1968,
33,
1968,
365,
18,
2738,
67,
79,
1968,
33,
79,
1968,
365,
18,
1594,
273,
618,
16186,
2704,
972,
12,
723,
16,
315,
45,
1398,
753,
909,
3113,
9334,
2916,
13,
365,
18,
11359,
273,
618,
16186,
2704,
972,
12,
723,
16,
315,
45,
1398,
753,
909,
3113,
9334,
2916,
13,
365,
18,
4172,
267,
273,
1033,
11546,
1435,
365,
18,
4172,
659,
273,
1033,
11546,
1435,
365,
18,
77,
885,
273,
2618,
365,
18,
1594,
659,
273,
2618,
364,
290,
316,
365,
18,
285,
753,
30,
1110,
8313,
273,
3903,
67,
8313,
18,
588,
12,
82,
13,
309,
618,
12,
408,
8313,
13,
353,
486,
3193,
30,
1110,
8313,
273,
261,
408,
8313,
16,
7036,
13,
277,
885,
16,
1594,
659,
273,
1110,
8313,
309,
277,
885,
353,
599,
30,
277,
885,
273,
1033,
11546,
1435,
1327,
618,
12,
77,
885,
13,
353,
509,
30,
277,
885,
273,
365,
6315,
4294,
67,
8313,
8376,
12,
77,
885,
16,
7036,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
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,
739,
1435,
365,
18,
5930,
350,
273,
599,
365,
18,
8820,
1153,
329,
273,
599,
365,
18,
8820,
4139,
273,
444,
1435,
365,
18,
2761,
472,
67,
4139,
273,
444,
1435,
365,
18,
27481,
329,
67,
11482,
273,
599,
365,
18,
4148,
67,
2815,
33,
20,
365,
18,
2738,
67,
1968,
33,
1968,
365,
18,
2738,
67,
79,
1968,
33,
79,
1968,
365,
18,
1594,
273,
618,
16186,
2704,
972,
12,
723,
16,
315,
45,
1398,
753,
909,
3113,
9334,
2916,
13,
365,
2
] |
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(m) if 'refid' in node: node['refid'] = node['refid'].replace(':', '-') for node in tree.traverse(addnodes.desc_signature): ids = node.attributes['ids'] newids = [] for id in ids: newids.append(id.replace(':', '-')) node.attributes['ids'] = newids
|
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,
7490,
18,
3536,
364,
756,
316,
2151,
18,
2033,
2476,
12,
4690,
18,
6180,
4672,
309,
296,
1734,
1650,
11,
316,
756,
30,
312,
273,
389,
1734,
1650,
67,
266,
18,
1916,
12,
2159,
3292,
1734,
1650,
19486,
309,
312,
30,
756,
3292,
1734,
1650,
3546,
273,
365,
18,
904,
67,
11956,
12,
81,
18,
1655,
12,
21,
3631,
312,
18,
1655,
12,
22,
3719,
309,
296,
1734,
350,
11,
316,
756,
30,
756,
3292,
1734,
350,
3546,
273,
756,
3292,
1734,
350,
29489,
2079,
2668,
30,
2187,
4014,
13,
364,
756,
316,
2151,
18,
2033,
2476,
12,
1289,
4690,
18,
5569,
67,
8195,
4672,
3258,
273,
756,
18,
4350,
3292,
2232,
3546,
394,
2232,
273,
5378,
364,
612,
316,
3258,
30,
394,
2232,
18,
6923,
12,
350,
18,
2079,
2668,
30,
2187,
4014,
3719,
756,
18,
4350,
3292,
2232,
3546,
273,
394,
2232,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
7490,
18,
3536,
364,
756,
316,
2151,
18,
2033,
2476,
12,
4690,
18,
6180,
4672,
309,
296,
1734,
1650,
11,
316,
756,
30,
312,
273,
389,
1734,
1650,
67,
266,
18,
1916,
12,
2159,
3292,
1734,
1650,
19486,
309,
312,
30,
756,
3292,
1734,
1650,
3546,
273,
365,
18,
904,
67,
11956,
12,
81,
18,
1655,
12,
21,
3631,
312,
18,
1655,
12,
22,
3719,
309,
296,
1734,
350,
11,
316,
756,
30,
756,
3292,
1734,
350,
3546,
273,
756,
3292,
1734,
350,
29489,
2079,
2
] |
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 node," " you can retry the operation using '--force'.") raise errors.OpExecError("Disk consistency error")
|
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,
16,
2776,
16,
2305,
67,
8538,
5646,
33,
5734,
13,
309,
486,
17164,
67,
601,
30,
389,
10961,
1442,
22021,
12,
1336,
16,
2776,
13,
309,
2944,
353,
486,
599,
471,
486,
2944,
30,
1194,
18,
668,
2932,
2047,
326,
883,
5721,
21368,
358,
279,
9946,
756,
10837,
315,
1846,
848,
3300,
326,
1674,
1450,
3534,
5734,
14550,
13,
1002,
1334,
18,
3817,
1905,
668,
2932,
6247,
14297,
555,
7923,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
16,
2776,
16,
2305,
67,
8538,
5646,
33,
5734,
13,
309,
486,
17164,
67,
601,
30,
389,
10961,
1442,
22021,
12,
1336,
16,
2776,
13,
309,
2944,
353,
486,
599,
471,
486,
2944,
30,
1194,
18,
668,
2932,
2047,
326,
883,
5721,
21368,
358,
279,
9946,
756,
10837,
315,
1846,
848,
3300,
326,
1674,
1450,
3534,
5734,
14550,
13,
1002,
1334,
18,
3817,
1905,
668,
2932,
6247,
14297,
555,
7923,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
18,
1808,
12,
1425,
529,
4672,
2195,
701,
273,
3536,
1425,
273,
306,
7566,
66,
4509,
5834,
4057,
8,
3113,
6398,
318,
1814,
836,
17,
4816,
6,
3631,
7566,
66,
4509,
5834,
76,
8,
3113,
6398,
318,
1814,
836,
17,
6702,
6,
3631,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
397,
2418,
1425,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
1425,
529,
4672,
2195,
701,
273,
3536,
1425,
273,
306,
7566,
66,
4509,
5834,
4057,
8,
3113,
6398,
318,
1814,
836,
17,
4816,
6,
3631,
7566,
66,
4509,
5834,
76,
8,
3113,
6398,
318,
1814,
836,
17,
6702,
6,
3631,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if 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 of any Problem """ model_pool = self.pool.get(model)
|
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,
3751,
326,
2650,
632,
891,
400,
67,
350,
30,
3124,
434,
326,
1409,
434,
3502,
921,
938,
2522,
628,
326,
2699,
883,
632,
891,
1234,
30,
2699,
18,
2150,
18,
1079,
358,
5104,
632,
891,
2699,
67,
1636,
30,
2989,
8166,
1758,
316,
648,
434,
1281,
21685,
3536,
938,
67,
6011,
273,
365,
18,
6011,
18,
588,
12,
2284,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
3751,
326,
2650,
632,
891,
400,
67,
350,
30,
3124,
434,
326,
1409,
434,
3502,
921,
938,
2522,
628,
326,
2699,
883,
632,
891,
1234,
30,
2699,
18,
2150,
18,
1079,
358,
5104,
632,
891,
2699,
67,
1636,
30,
2989,
8166,
1758,
316,
648,
434,
1281,
21685,
3536,
938,
67,
6011,
273,
365,
18,
6011,
18,
588,
12,
2284,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'%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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
296,
93,
4278,
2589,
18,
8593,
12,
22,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not 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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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 is to take first user, second 0 get's user's id from tuple result self._rescore_node_pool() highest_scoring_id = sorted(self._node_pool.items(), key=lambda item: item[1]['score'], reverse=True)[0][0] curr_node = self._node_pool[highest_scoring_id]['user']
|
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,
19936,
1435,
745,
9627,
26418,
1323,
365,
6315,
2159,
67,
6011,
471,
562,
12,
2890,
6315,
20859,
67,
7640,
13,
411,
365,
6315,
1896,
67,
23555,
30,
468,
25777,
6175,
603,
666,
598,
9742,
1554,
4071,
468,
3645,
374,
622,
679,
434,
980,
353,
358,
4862,
1122,
729,
16,
2205,
374,
336,
1807,
729,
1807,
612,
628,
3193,
563,
365,
6315,
455,
3644,
67,
2159,
67,
6011,
1435,
9742,
67,
1017,
6053,
67,
350,
273,
3115,
12,
2890,
6315,
2159,
67,
6011,
18,
3319,
9334,
498,
33,
14661,
761,
30,
761,
63,
21,
23962,
6355,
17337,
4219,
33,
5510,
25146,
20,
6362,
20,
65,
4306,
67,
2159,
273,
365,
6315,
2159,
67,
6011,
63,
8766,
395,
67,
1017,
6053,
67,
350,
23962,
1355,
3546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
19936,
1435,
745,
9627,
26418,
1323,
365,
6315,
2159,
67,
6011,
471,
562,
12,
2890,
6315,
20859,
67,
7640,
13,
411,
365,
6315,
1896,
67,
23555,
30,
468,
25777,
6175,
603,
666,
598,
9742,
1554,
4071,
468,
3645,
374,
622,
679,
434,
980,
353,
358,
4862,
1122,
729,
16,
2205,
374,
336,
1807,
729,
1807,
612,
628,
3193,
563,
365,
6315,
455,
3644,
67,
2159,
67,
6011,
1435,
9742,
67,
1017,
6053,
67,
350,
273,
3115,
12,
2890,
6315,
2159,
67,
6011,
18,
3319,
9334,
2
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "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,
1376,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
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,
1376,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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 pysvn.ClientError, e: return (SVNNOBINDING);
|
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,
718,
31,
309,
880,
631,
3562,
1489,
30,
327,
261,
23927,
50,
1785,
29080,
1769,
469,
30,
327,
261,
23927,
50,
1785,
2565,
2246,
16,
2117,
718,
1769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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
718,
31,
309,
880,
631,
3562,
1489,
30,
327,
261,
23927,
50,
1785,
29080,
1769,
469,
30,
327,
261,
23927,
50,
1785,
2565,
2246,
16,
2117,
718,
1769,
1327,
589,
18,
1808,
12,
3562,
4672,
327,
261,
23927,
50,
10566,
1360,
17357,
5127,
3776,
1769,
469,
30,
327,
261,
23927,
50,
3417,
10566,
1360,
17357,
16,
1408,
1769,
1335,
21027,
25031,
18,
1227,
668,
16,
425,
30,
327,
261,
23927,
50,
3417,
2739,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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)] sage: A4._repr_() 'Permutation Group with generators [(2,3,4), (1,2,3)]' sage: AlternatingGroup(4)._repr_() 'Alternating group of order 4!/2 as a permutation group' """ return "Permutation Group with generators %s"%self.gens()
|
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,
3609,
716,
326,
12176,
11719,
1776,
1114,
10335,
667,
711,
2097,
4953,
4335,
533,
18,
225,
493,
225,
272,
410,
30,
432,
24,
273,
13813,
9245,
1114,
3816,
63,
12,
21,
16,
22,
16,
23,
13,
6487,
63,
12,
22,
16,
23,
16,
24,
13,
13563,
1769,
432,
24,
13813,
9245,
3756,
598,
13327,
306,
12,
22,
16,
23,
16,
24,
3631,
261,
21,
16,
22,
16,
23,
25887,
272,
410,
30,
432,
24,
6315,
12715,
67,
1435,
296,
9123,
9245,
3756,
598,
13327,
306,
12,
22,
16,
23,
16,
24,
3631,
261,
21,
16,
22,
16,
23,
13,
3864,
272,
410,
30,
21498,
1776,
1114,
12,
24,
2934,
67,
12715,
67,
1435,
296,
11719,
1776,
1041,
434,
1353,
1059,
5,
19,
22,
487,
279,
17440,
1041,
11,
3536,
327,
315,
9123,
9245,
3756,
598,
13327,
738,
87,
28385,
2890,
18,
23730,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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225,
1660,
8122,
4872,
326,
6416,
1776,
1041,
603,
12792,
2186,
18,
3609,
716,
326,
12176,
11719,
1776,
1114,
10335,
667,
711,
2097,
4953,
4335,
533,
18,
225,
493,
225,
272,
410,
30,
432,
24,
273,
13813,
9245,
1114,
3816,
63,
12,
21,
16,
22,
16,
23,
13,
6487,
63,
12,
22,
16,
23,
16,
24,
13,
13563,
1769,
432,
24,
13813,
9245,
3756,
598,
13327,
306,
12,
22,
16,
23,
16,
24,
3631,
261,
21,
16,
22,
16,
23,
25887,
272,
410,
30,
432,
24,
6315,
12715,
67,
1435,
296,
9123,
9245,
3756,
598,
13327,
306,
2
] |
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.factory.getChildFactory( name, self.liveChildren[name], XULLivePageFactory).clientFactory(ctx) return athena.LivePage.childFactory(self, ctx, name) class XULPage(athena.LivePage, LivePageChildDispatcher):
|
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,
30,
365,
18,
3624,
19271,
63,
529,
65,
273,
7822,
797,
12,
12328,
1964,
797,
16,
380,
1968,
16,
2826,
4333,
13,
327,
365,
18,
3624,
19271,
63,
529,
65,
2,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
30,
365,
18,
3624,
19271,
63,
529,
65,
273,
7822,
797,
12,
12328,
1964,
797,
16,
380,
1968,
16,
2826,
4333,
13,
327,
365,
18,
3624,
19271,
63,
529,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
17,
29,
65,
9227,
2934,
1916,
16,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
18,
4619,
4733,
30,
21137,
18,
542,
1803,
12,
2890,
18,
4619,
4733,
13,
469,
30,
21137,
18,
542,
1803,
12,
11999,
13744,
18,
13929,
12,
11999,
13744,
18,
588,
4956,
9334,
365,
18,
1098,
1164,
67,
3576,
13,
738,
261,
2890,
18,
2574,
18,
2649,
9334,
562,
12,
1098,
951,
19001,
20349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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21137,
18,
542,
1803,
12,
2890,
18,
4619,
4733,
13,
469,
30,
21137,
18,
542,
1803,
12,
11999,
13744,
18,
13929,
12,
11999,
13744,
18,
588,
4956,
9334,
365,
18,
1098,
1164,
67,
3576,
13,
738,
261,
2890,
18,
2574,
18,
2649,
9334,
562,
12,
1098,
951,
19001,
20349,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
13,
342,
15741,
18,
25174,
12,
2890,
18,
297,
16,
290,
3719,
63,
82,
759,
22,
17,
21,
26894,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
13,
342,
15741,
18,
25174,
12,
2890,
18,
297,
16,
290,
3719,
63,
82,
759,
22,
17,
21,
26894,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
18,
4385,
1098,
13,
365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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
18,
4385,
1098,
13,
365,
18,
4385,
1098,
273,
5378,
309,
1965,
422,
404,
30,
949,
1011,
365,
18,
917,
1327,
1965,
422,
576,
30,
949,
1011,
365,
18,
1897,
365,
18,
917,
273,
943,
12,
20,
16,
949,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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.getTargetNames(snmpEngine, notifyTag): ( transportDomain, transportAddress, timeout, retryCount, params ) = config.getTargetAddr(snmpEngine, targetAddrName) ( messageProcessingModel, securityModel, securityName, securityLevel ) = config.getTargetParams(snmpEngine, params)
|
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,
559,
262,
273,
642,
18,
588,
4386,
966,
12,
15366,
4410,
16,
3851,
2326,
262,
819,
49,
495,
382,
701,
379,
39,
6172,
273,
365,
16186,
2472,
18,
588,
49,
495,
382,
701,
379,
12,
819,
461,
262,
364,
1018,
3178,
461,
316,
642,
18,
588,
2326,
1557,
12,
26527,
4410,
16,
5066,
1805,
4672,
261,
4736,
3748,
16,
4736,
1887,
16,
2021,
16,
30084,
16,
859,
262,
273,
642,
18,
588,
2326,
3178,
12,
26527,
4410,
16,
1018,
3178,
461,
13,
261,
883,
7798,
1488,
16,
4373,
1488,
16,
4373,
461,
16,
4373,
2355,
262,
273,
642,
18,
588,
2326,
1370,
12,
26527,
4410,
16,
859,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
559,
262,
273,
642,
18,
588,
4386,
966,
12,
15366,
4410,
16,
3851,
2326,
262,
819,
49,
495,
382,
701,
379,
39,
6172,
273,
365,
16186,
2472,
18,
588,
49,
495,
382,
701,
379,
12,
819,
461,
262,
364,
1018,
3178,
461,
316,
642,
18,
588,
2326,
1557,
12,
26527,
4410,
16,
5066,
1805,
4672,
261,
4736,
3748,
16,
4736,
1887,
16,
2021,
16,
30084,
16,
859,
262,
273,
642,
18,
588,
2326,
3178,
12,
26527,
4410,
16,
1018,
3178,
461,
13,
261,
2
] |
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,
261,
369,
933,
63,
529,
65,
353,
599,
4672,
320,
1576,
63,
529,
65,
273,
460,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
261,
369,
933,
63,
529,
65,
353,
599,
4672,
320,
1576,
63,
529,
65,
273,
460,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
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,
3682,
18982,
18,
4881,
18,
5413,
1930,
29537,
2908,
3048,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
3682,
18982,
18,
4881,
18,
5413,
1930,
29537,
2908,
3048,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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._imagedata: aspect = float(self._imagedata.width) / self._imagedata.height if int(height * aspect) > width: height = int(width / aspect) else: width = int(height * aspect) self._obj.set_size(width, height) if not self._imagedata: return self._obj.set_from_rgb_data(self._imagedata.get_raw_data(), True, self._imagedata.width, self._imagedata.height, 1, 4, backend.TEXTURE_RGB_FLAG_BGR)
|
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,
1435,
365,
6315,
2603,
18,
542,
67,
1467,
12,
2890,
18,
7872,
67,
2819,
16,
365,
18,
7872,
67,
4210,
13,
309,
296,
1467,
11,
316,
365,
6315,
8389,
67,
4738,
578,
365,
16186,
10102,
67,
23579,
30,
1835,
16,
2072,
273,
365,
18,
7872,
67,
2819,
16,
365,
18,
7872,
67,
4210,
309,
365,
16186,
10102,
67,
23579,
471,
365,
6315,
381,
11349,
396,
30,
9648,
273,
1431,
12,
2890,
6315,
381,
11349,
396,
18,
2819,
13,
342,
365,
6315,
381,
11349,
396,
18,
4210,
309,
509,
12,
4210,
380,
9648,
13,
405,
1835,
30,
2072,
273,
509,
12,
2819,
342,
9648,
13,
469,
30,
1835,
273,
509,
12,
4210,
380,
9648,
13,
365,
6315,
2603,
18,
542,
67,
1467,
12,
2819,
16,
2072,
13,
309,
486,
365,
6315,
381,
11349,
396,
30,
327,
365,
6315,
2603,
18,
542,
67,
2080,
67,
10948,
67,
892,
12,
2890,
6315,
381,
11349,
396,
18,
588,
67,
1899,
67,
892,
9334,
1053,
16,
365,
6315,
381,
11349,
396,
18,
2819,
16,
365,
6315,
381,
11349,
396,
18,
4210,
16,
404,
16,
1059,
16,
4221,
18,
24652,
67,
11343,
67,
9651,
67,
38,
6997,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
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,
1435,
365,
6315,
2603,
18,
542,
67,
1467,
12,
2890,
18,
7872,
67,
2819,
16,
365,
18,
7872,
67,
4210,
13,
309,
296,
1467,
11,
316,
365,
6315,
8389,
67,
4738,
578,
365,
16186,
10102,
67,
23579,
30,
1835,
16,
2072,
273,
365,
18,
7872,
67,
2819,
16,
365,
18,
7872,
67,
4210,
309,
365,
16186,
10102,
67,
23579,
471,
365,
6315,
381,
11349,
396,
30,
9648,
273,
1431,
12,
2890,
6315,
381,
11349,
396,
18,
2819,
13,
342,
365,
6315,
381,
11349,
396,
2
] |
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,
1435,
63,
21,
6487,
599,
3631,
7707,
3652,
2187,
609,
16,
599,
13,
308,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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890,
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,
1435,
63,
21,
6487,
599,
3631,
7707,
3652,
2187,
609,
16,
599,
13,
308,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" @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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def 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.resize_object_add(tb) tb.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) tb.show() bt = elementary.Button(win) bt.label_set("Button 1") bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) tb.pack(bt, 0, 0, 1, 1) bt.show() bt = elementary.Button(win) bt.label_set("Button 2") bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) tb.pack(bt, 1, 0, 1, 1) bt.show() bt = elementary.Button(win) bt.label_set("Button 3") bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) tb.pack(bt, 2, 0, 1, 1) bt.show() bt = elementary.Button(win) bt.label_set("Button 4") bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) tb.pack(bt, 0, 1, 2, 1) bt.show() bt = elementary.Button(win) bt.label_set("Button 5") bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) tb.pack(bt, 2, 1, 1, 3) bt.show() bt = elementary.Button(win) bt.label_set("Button 6") bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) tb.pack(bt, 0, 2, 2, 2) bt.show() win.show()
|
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,
7923,
5657,
18,
5854,
1009,
67,
542,
12,
5510,
13,
225,
7611,
273,
930,
814,
18,
8199,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
12370,
13,
7611,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
7611,
18,
4500,
1435,
225,
8739,
273,
930,
814,
18,
1388,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
18587,
13,
8739,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
8739,
18,
4500,
1435,
225,
10921,
273,
930,
814,
18,
3616,
12,
8082,
13,
10921,
18,
1925,
67,
542,
2932,
3616,
404,
7923,
10921,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
10921,
18,
1467,
67,
11317,
67,
7989,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
29818,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
29818,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
7923,
5657,
18,
5854,
1009,
67,
542,
12,
5510,
13,
225,
7611,
273,
930,
814,
18,
8199,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
12370,
13,
7611,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
7611,
18,
4500,
1435,
225,
8739,
273,
930,
814,
18,
1388,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
2
] |
- [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,
3912,
21469,
16,
471,
279,
4207,
31380,
353,
1245,
434,
943,
2840,
1353,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
3912,
21469,
16,
471,
279,
4207,
31380,
353,
1245,
434,
943,
2840,
1353,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise 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,
619,
30,
92,
18,
13029,
12,
4165,
3631,
365,
18,
1969,
2354,
25146,
20,
65,
1335,
10195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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
619,
30,
92,
18,
13029,
12,
4165,
3631,
365,
18,
1969,
2354,
25146,
20,
65,
1335,
10195,
30,
1002,
24631,
812,
503,
16,
7707,
1969,
768,
2187,
508,
13,
585,
892,
1011,
1026,
768,
18,
892,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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.value[0] if desktop_idx < len(self.desktops): log.debug('Placing %s on desktop %d' % (client, desktop_idx)) desktop = self.desktops[desktop_idx] elif desktop_idx == 0xffffffff: log.warning('%s wants to be placed on all desktops, not implemented yet' % client) desktop.add_client(client) desktop.rearrange()
|
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,
501,
13,
365,
18,
3535,
67,
31949,
18,
1289,
67,
2625,
12,
2625,
13,
468,
2660,
30,
7155,
518,
35,
365,
18,
3535,
67,
31949,
18,
266,
297,
3676,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
501,
13,
365,
18,
3535,
67,
31949,
18,
1289,
67,
2625,
12,
2625,
13,
468,
2660,
30,
7155,
518,
35,
365,
18,
3535,
67,
31949,
18,
266,
297,
3676,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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 begins with an onpoint x, y, onpoint = contour[0] if onpoint: for j in range(1, len(contour)): x, y, onpoint = contour[j] if onpoint: contour = contour[j:] + contour[:j] break else: print "unsupported type of contour (no onpoint)" # create a sK1 path object path = CreatePath() j = 0 npoints = len(contour) x, y, onpoint = contour[0] last_point = Point(x, y) while j <= npoints: if j == npoints: x, y, onpoint = contour[0] else: x, y, onpoint = contour[j] point = Point(x, y) j = j + 1 if onpoint: path.AppendLine(point) last_point = point else: c1 = last_point + (point - last_point) * 2.0 / 3.0 x, y, onpoint = contour[j % npoints] if onpoint: j = j + 1 cont = ContAngle else: x = point.x + (x - point.x) * 0.5 y = point.y + (y - point.y) * 0.5 cont = ContSmooth last_point = Point(x, y) c2 = last_point + (point - last_point) * 2.0 / 3.0 path.AppendBezier(c1, c2, last_point, cont) path.ClosePath() path.Translate(offset, 0) path.Transform(Scale(self.fontsize/1024000.0)) paths.append(path) offset = offset + glyph.advance[0]/1000 print 'glyph.advance[0]:' ,glyph.advance[0] return tuple(paths)
|
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,
277,
316,
977,
30,
1172,
315,
11560,
2773,
16,
277,
333,
1016,
273,
365,
18,
1331,
67,
7737,
63,
517,
12,
77,
25887,
9440,
273,
11038,
22,
18,
15141,
12,
2890,
18,
865,
16,
333,
1016,
16,
404,
13,
364,
15332,
316,
9440,
18,
25134,
30,
1172,
315,
1213,
477,
6,
468,
8534,
15332,
1427,
716,
518,
17874,
598,
392,
603,
1153,
619,
16,
677,
16,
603,
1153,
273,
15332,
63,
20,
65,
309,
603,
1153,
30,
364,
525,
316,
1048,
12,
21,
16,
562,
12,
1213,
477,
3719,
30,
619,
16,
677,
16,
603,
1153,
273,
15332,
63,
78,
65,
309,
603,
1153,
30,
15332,
273,
15332,
63,
78,
26894,
397,
15332,
10531,
78,
65,
898,
469,
30,
1172,
315,
24666,
618,
434,
15332,
261,
2135,
603,
1153,
2225,
468,
752,
279,
272,
47,
21,
589,
733,
589,
273,
1788,
743,
1435,
525,
273,
374,
1130,
763,
87,
273,
562,
12,
1213,
477,
13,
619,
16,
677,
16,
603,
1153,
273,
15332,
63,
20,
65,
1142,
67,
1153,
273,
4686,
12,
92,
16,
677,
13,
1323,
525,
1648,
1130,
763,
87,
30,
309,
525,
422,
1130,
763,
87,
30,
619,
16,
677,
16,
603,
1153,
273,
15332,
63,
20,
65,
469,
30,
619,
16,
677,
16,
603,
1153,
273,
15332,
63,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
277,
316,
977,
30,
1172,
315,
11560,
2773,
16,
277,
333,
1016,
273,
365,
18,
1331,
67,
7737,
63,
517,
12,
77,
25887,
9440,
273,
11038,
22,
18,
15141,
12,
2890,
18,
865,
16,
333,
1016,
16,
404,
13,
364,
15332,
316,
9440,
18,
25134,
30,
1172,
315,
1213,
477,
6,
468,
8534,
15332,
1427,
716,
518,
17874,
598,
392,
603,
1153,
619,
16,
677,
16,
603,
1153,
273,
15332,
63,
20,
65,
309,
603,
1153,
30,
364,
525,
316,
1048,
12,
21,
16,
2
] |
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(TestUrlopen)
|
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,
1338,
468,
17365,
18,
225,
10724,
16,
309,
333,
353,
279,
5570,
436,
367,
5349,
16,
1508,
12704,
475,
468,
326,
1024,
980,
18,
468,
3813,
67,
13261,
18,
18942,
2932,
5185,
7923,
225,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
3886,
1730,
14650,
16,
7766,
57,
86,
18589,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
300,
89,
2483,
13,
3241,
777,
7434,
2674,
854,
1338,
468,
17365,
18,
225,
10724,
16,
309,
333,
353,
279,
5570,
436,
367,
5349,
16,
1508,
12704,
475,
468,
326,
1024,
980,
18,
468,
3813,
67,
13261,
18,
18942,
2932,
5185,
7923,
225,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
3886,
1730,
14650,
16,
7766,
57,
86,
18589,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.