rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
headers, 'file:'+pathname2url(file))
|
headers, 'file:'+file)
|
def open_local_file(self, url): import mimetypes, mimetools, StringIO mtype = mimetypes.guess_type(url)[0] headers = mimetools.Message(StringIO.StringIO( 'Content-Type: %s\n' % (mtype or 'text/plain'))) host, file = splithost(url) if not host: return addinfourl(open(url2pathname(file), 'rb'), headers, 'file:'+pathname2url(file)) host, port = splitport(host) if not port \ and socket.gethostbyname(host) in (localhost(), thishost()): return addinfourl(open(url2pathname(file), 'rb'), headers, 'file:'+pathname2url(file)) raise IOError, ('local file error', 'not on local host')
|
3764595c980ccba821a29947dbef14947b71825e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3764595c980ccba821a29947dbef14947b71825e/urllib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
880,
4672,
1930,
20369,
15180,
16,
20369,
278,
8192,
16,
15777,
22189,
273,
20369,
15180,
18,
20885,
67,
723,
12,
718,
25146,
20,
65,
1607,
273,
20369,
278,
8192,
18,
1079,
12,
780,
4294,
18,
780,
4294,
12,
296,
1350,
17,
559,
30,
738,
87,
64,
82,
11,
738,
261,
81,
723,
578,
296,
955,
19,
7446,
11,
20349,
1479,
16,
585,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
327,
527,
10625,
477,
80,
12,
3190,
12,
718,
22,
28336,
12,
768,
3631,
296,
6731,
19899,
1607,
16,
296,
768,
2497,
15,
768,
13,
1479,
16,
1756,
273,
1416,
655,
12,
2564,
13,
309,
486,
1756,
521,
471,
2987,
18,
75,
546,
669,
1637,
529,
12,
2564,
13,
316,
261,
13014,
9334,
333,
2564,
1435,
4672,
327,
527,
10625,
477,
80,
12,
3190,
12,
718,
22,
28336,
12,
768,
3631,
296,
6731,
19899,
1607,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
880,
4672,
1930,
20369,
15180,
16,
20369,
278,
8192,
16,
15777,
22189,
273,
20369,
15180,
18,
20885,
67,
723,
12,
718,
25146,
20,
65,
1607,
273,
20369,
278,
8192,
18,
1079,
12,
780,
4294,
18,
780,
4294,
12,
296,
1350,
17,
559,
30,
738,
87,
64,
82,
11,
738,
261,
81,
723,
578,
296,
955,
19,
7446,
11,
20349,
1479,
16,
585,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
327,
527,
10625,
477,
80,
12,
3190,
12,
718,
22,
28336,
12,
768,
3631,
296,
6731,
19899,
1607,
16,
296,
768,
2497,
15,
768,
13,
1479,
16,
1756,
273,
1416,
655,
12,
2564,
13,
309,
486,
1756,
2
] |
hour * self.hourHeight,
|
hour * self.hourHeight,
|
def DrawBackground(self, dc): styles = self.parent self._doDrawingCalculations()
|
590a7421d4a56497721ad83a36a6f3eb4226407e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/590a7421d4a56497721ad83a36a6f3eb4226407e/CalendarCanvas.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
8199,
12,
2890,
16,
6744,
4672,
5687,
273,
365,
18,
2938,
365,
6315,
2896,
26885,
4844,
1012,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
8199,
12,
2890,
16,
6744,
4672,
5687,
273,
365,
18,
2938,
365,
6315,
2896,
26885,
4844,
1012,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.__updateJobStatus('Failed','%s Undefined' %(param))
|
self.__updateJobStatus(job,'Failed','%s Undefined' %(param))
|
def __preparePilot(self,job,classadJob,attributes): """The pilot agent job can now be formulated for a job that is deemed eligible. """ jdlCPU = 0 if classadJob.lookupAttribute("MaxCPUTime"): jdlCPU = int(string.replace(classadJob.get_expression("MaxCPUTime"),'"','') )
|
e4e152162784e68280a5aedde1e5bad201fa5992 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/e4e152162784e68280a5aedde1e5bad201fa5992/AgentDirector.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9366,
52,
22797,
12,
2890,
16,
4688,
16,
1106,
361,
2278,
16,
4350,
4672,
3536,
1986,
293,
22797,
4040,
1719,
848,
2037,
506,
646,
11799,
364,
279,
1719,
716,
353,
443,
351,
329,
21351,
18,
3536,
525,
5761,
15222,
273,
374,
309,
667,
361,
2278,
18,
8664,
1499,
2932,
2747,
15222,
950,
6,
4672,
525,
5761,
15222,
273,
509,
12,
1080,
18,
2079,
12,
1106,
361,
2278,
18,
588,
67,
8692,
2932,
2747,
15222,
950,
6,
3631,
4970,
17023,
6134,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9366,
52,
22797,
12,
2890,
16,
4688,
16,
1106,
361,
2278,
16,
4350,
4672,
3536,
1986,
293,
22797,
4040,
1719,
848,
2037,
506,
646,
11799,
364,
279,
1719,
716,
353,
443,
351,
329,
21351,
18,
3536,
525,
5761,
15222,
273,
374,
309,
667,
361,
2278,
18,
8664,
1499,
2932,
2747,
15222,
950,
6,
4672,
525,
5761,
15222,
273,
509,
12,
1080,
18,
2079,
12,
1106,
361,
2278,
18,
588,
67,
8692,
2932,
2747,
15222,
950,
6,
3631,
4970,
17023,
6134,
262,
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
] |
if line.split()[0].lower() == 'rem' \ and line[0] in "rR":
|
if line.split(None, 1)[0].lower() == 'rem' and line[0] in "rR":
|
def __read(self, fp, fpname): """Parse a sectioned setup file.
|
05e74c488d7085fb533b40a9d6860ee732e784e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/05e74c488d7085fb533b40a9d6860ee732e784e4/ConfigParser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
896,
12,
2890,
16,
4253,
16,
4253,
529,
4672,
3536,
3201,
279,
2442,
329,
3875,
585,
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,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
896,
12,
2890,
16,
4253,
16,
4253,
529,
4672,
3536,
3201,
279,
2442,
329,
3875,
585,
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,
-100,
-100,
-100,
-100,
-100
] |
head = _colorize(doc, heading_token, errors, warnings, 'heading')
|
head = _colorize(doc, heading_token, errors, 'heading')
|
def _add_section(doc, heading_token, stack, indent_stack, errors, warnings): """Add a new section to the DOM tree, with the given heading.""" if indent_stack[-1] == None: indent_stack[-1] = heading_token.indent elif indent_stack[-1] != heading_token.indent: estr = "Improper heading indentation." errors.append(StructuringError(estr, heading_token)) # Check for errors. for tok in stack[2:]: if tok.tagName != "section": estr = "Headings must occur at the top level." errors.append(StructuringError(estr, heading_token)) break if (heading_token.level+2) > len(stack): estr = "Wrong underline character for heading." errors.append(StructuringError(estr, heading_token)) # Pop the appropriate number of headings so we're at the # correct level. stack[heading_token.level+2:] = [] indent_stack[heading_token.level+2:] = [] # Colorize the heading head = _colorize(doc, heading_token, errors, warnings, 'heading') # Add the section's and heading's DOM elements. sec = doc.createElement("section") stack[-1].appendChild(sec) stack.append(sec) sec.appendChild(head) indent_stack.append(None)
|
36ace726c8fc4e9c1a450d16c75087d594ead7cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36ace726c8fc4e9c1a450d16c75087d594ead7cf/epytext.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
3464,
12,
2434,
16,
11053,
67,
2316,
16,
2110,
16,
3504,
67,
3772,
16,
1334,
16,
5599,
4672,
3536,
986,
279,
394,
2442,
358,
326,
4703,
2151,
16,
598,
326,
864,
11053,
12123,
309,
3504,
67,
3772,
18919,
21,
65,
422,
599,
30,
3504,
67,
3772,
18919,
21,
65,
273,
11053,
67,
2316,
18,
9355,
1327,
3504,
67,
3772,
18919,
21,
65,
480,
11053,
67,
2316,
18,
9355,
30,
5001,
313,
273,
315,
1170,
22754,
11053,
12018,
1199,
1334,
18,
6923,
12,
3823,
4017,
668,
12,
281,
313,
16,
11053,
67,
2316,
3719,
225,
468,
2073,
364,
1334,
18,
364,
946,
316,
2110,
63,
22,
30,
14542,
309,
946,
18,
2692,
461,
480,
315,
3464,
6877,
5001,
313,
273,
315,
1414,
899,
1297,
3334,
622,
326,
1760,
1801,
1199,
1334,
18,
6923,
12,
3823,
4017,
668,
12,
281,
313,
16,
11053,
67,
2316,
3719,
898,
309,
261,
19948,
67,
2316,
18,
2815,
15,
22,
13,
405,
562,
12,
3772,
4672,
5001,
313,
273,
315,
13634,
25985,
3351,
364,
11053,
1199,
1334,
18,
6923,
12,
3823,
4017,
668,
12,
281,
313,
16,
11053,
67,
2316,
3719,
225,
468,
10264,
326,
5505,
1300,
434,
910,
899,
1427,
732,
4565,
622,
326,
468,
3434,
1801,
18,
2110,
63,
19948,
67,
2316,
18,
2815,
15,
22,
26894,
273,
5378,
3504,
67,
3772,
63,
19948,
67,
2316,
18,
2815,
15,
22,
26894,
273,
5378,
225,
468,
5563,
554,
326,
11053,
910,
273,
389,
3266,
554,
12,
2434,
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,
389,
1289,
67,
3464,
12,
2434,
16,
11053,
67,
2316,
16,
2110,
16,
3504,
67,
3772,
16,
1334,
16,
5599,
4672,
3536,
986,
279,
394,
2442,
358,
326,
4703,
2151,
16,
598,
326,
864,
11053,
12123,
309,
3504,
67,
3772,
18919,
21,
65,
422,
599,
30,
3504,
67,
3772,
18919,
21,
65,
273,
11053,
67,
2316,
18,
9355,
1327,
3504,
67,
3772,
18919,
21,
65,
480,
11053,
67,
2316,
18,
9355,
30,
5001,
313,
273,
315,
1170,
22754,
11053,
12018,
1199,
1334,
18,
6923,
12,
3823,
4017,
668,
12,
281,
313,
16,
11053,
67,
2316,
3719,
225,
468,
2073,
364,
1334,
18,
364,
946,
316,
2110,
63,
22,
30,
14542,
309,
946,
18,
2692,
461,
480,
315,
3464,
2
] |
self.logger.info("Forcing state to true for pkg %s" % (pkg.get('name')))
|
self.logger.info("Forcing state to true for pkg %s" % \ (pkg.get('name')))
|
def Install(self, packages, states): """ Run a one-pass install, followed by single pkg installs in case of failure. """ self.logger.info("Trying single pass package install for pkgtype %s" % \ self.pkgtype)
|
decb4dd187c808e2f1c0ff7040e914abc7adeae2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/decb4dd187c808e2f1c0ff7040e914abc7adeae2/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
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,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
12,
2890,
16,
5907,
16,
5493,
4672,
3536,
1939,
279,
1245,
17,
5466,
3799,
16,
10860,
635,
2202,
3475,
31011,
316,
648,
434,
5166,
18,
3536,
365,
18,
4901,
18,
1376,
2932,
18038,
2202,
1342,
2181,
3799,
364,
3475,
723,
738,
87,
6,
738,
521,
365,
18,
10657,
723,
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
] |
if datasettype in [ 'TAG', 'TAG_REC', 'TNT_DOWNLOAD', 'TNT_LOCAL']: if os.access('./tag.tar.gz',os.R_OK): cmd = 'tar xvzf tag.tar.gz' rc, out = getstatusoutput(cmd) if (rc!=0): print "ERROR: error during extraction of tar.tar.gz" print out sys.exit(EC_UNSPEC) dir = "." filepat = "\.root" pat = re.compile(filepat) filelist = os.listdir(dir) joName = 'input.py' outFile = open(joName,'w') if datasettype in [ 'TAG_REC', 'TNT_DOWNLOAD', 'TNT_LOCAL' ]: if atlas_release_major >= 13: outFile.write('PoolTAGInput = [') else: outFile.write('CollInput = [') else: if atlas_release_major >= 13: versionString='ServiceMgr.' else: versionString = '' outFile.write('%sEventSelector.CollectionType="ExplicitROOT"\n'%versionString) outFile.write('%sEventSelector.RefName = "StreamAOD"\n'%versionString) outFile.write('%sEventSelector.InputCollections = ['%versionString) for file in filelist: found = re.findall(pat, file) if found: filename = re.sub('\.root\.\d+$','',file) if atlas_release_major <= 12: filename = re.sub('\.root$','',file) outFile.write('"%s",' % filename) outFile.write(']\n') outFile.close() else: try: tagdatasetnames = os.environ['TAGDATASETNAME'].split(":") except: raise NameError, "ERROR: TAGDATASETNAME not defined" sys.exit(EC_Configuration) cmd = 'which python32' pythoncmd = '' rc, out = commands.getstatusoutput(cmd) if (rc!=0): print 'No python32 found' pythoncmd = '' else: pythoncmd = out.strip() if os.environ.has_key('pybin'): pythoncmd = os.environ['pybin'] dq2setuppath = '$VO_ATLAS_SW_DIR/ddm/latest/setup.sh' inputtxt = 'dq2localid.txt' try: temp_dq2localsiteid = [ line.strip() for line in file(inputtxt) ] dq2localsiteid = temp_dq2localsiteid[0] except: dq2localsiteid = os.environ[ 'DQ2_LOCAL_SITE_ID' ] pass for tagdatasetname in tagdatasetnames: cmd = 'source %s; dq2-get --client-id=ganga --automatic --local-site=%s --no-directories --timeout %s -p lcg %s' % (dq2setuppath, dq2localsiteid ,timeout, tagdatasetname) cmdretry = 'source %s; dq2-get --client-id=ganga --automatic --local-site=CERN-PROD_DATADISK --no-directories --timeout %s -p lcg %s' % (dq2setuppath, dq2localsiteid ,timeout, tagdatasetname) rc, out = getstatusoutput(cmd) print out if (rc!=0): print "ERROR: error during dq2-get occured" rc, out = getstatusoutput(cmdretry) print out if (rc!=0): print "ERROR: error during retry of dq2-get occured" sys.exit(EC_DQ2GET) taglfns = [ line.strip() for line in file('input_tag_files') ] tagguids = [ line.strip() for line in file('input_tag_guids') ] tagddmFileMap = {} for i in xrange(0,len(taglfns)): tagddmFileMap[taglfns[i]] = tagguids[i] files = {} pfnsnew = [] for lfn, guid in tagddmFileMap.iteritems(): name = os.path.basename(lfn) pfn = os.path.join(directory,name) try: open(pfn) fsize = os.stat(pfn).st_size except IOError: print "ERROR %s not found" % name continue if (fsize>0): item = {'pfn':pfn,'guid':guid} files[lfn] = item _makeJobO(files, tag=True, type=datasettype, version=atlas_release_major, dtype=datatype) dir = "." filepat = "pool\.root\.\d+$" pat = re.compile(filepat) filelist = os.listdir(dir) for file in filelist: found = re.findall(pat, file) if found: filenew = re.sub('\.\d+$','',file) try: os.symlink(file,filenew) except OSError: pass if datasettype == 'TAG_REC': if os.environ.has_key('ATHENA_OPTIONS'): joboptions = os.environ['ATHENA_OPTIONS'].split(' ') if atlas_release_major >= 13: linepat = "^PoolInputQuery=" else: linepat = "^CollInputQuery=" pat = re.compile(linepat) for jfile in joboptions: try: jolines = [ rline.strip() for rline in open(jfile,'r') ] except IOError: jolines = [] newlines = [] for l in jolines: found = re.findall(pat, l) if found: newlines.append("include ( \"input.py\" )") newlines.append(l) outFile = open(jfile,'w') for l in newlines: outFile.write(l+'\n') outFile.close()
|
def findsetype(sitesrm): setype= 'NULL' if sitesrm.find('castor')>=0: setype = 'CASTOR' elif sitesrm.find('dpm')>=0: setype = 'DPM' elif sitesrm.find('pnfs')>=0: setype = 'DCACHE' elif sitesrm.find('/nfs/')>=0: setype = 'NFS' return setype
|
8126e8e033d86f07c6cd5ab3c324635fbccddab7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/8126e8e033d86f07c6cd5ab3c324635fbccddab7/ganga-stage-in-out-dq2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
542,
388,
12,
12180,
8864,
4672,
444,
388,
33,
296,
8560,
11,
225,
309,
9180,
8864,
18,
4720,
2668,
4155,
280,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
21871,
916,
11,
1327,
9180,
8864,
18,
4720,
2668,
72,
7755,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
8640,
49,
11,
1327,
9180,
8864,
18,
4720,
2668,
7449,
2556,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
40,
8495,
11,
1327,
9180,
8864,
18,
4720,
2668,
19,
82,
2556,
2473,
13,
34,
33,
20,
30,
444,
388,
273,
296,
50,
4931,
11,
327,
444,
388,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1104,
542,
388,
12,
12180,
8864,
4672,
444,
388,
33,
296,
8560,
11,
225,
309,
9180,
8864,
18,
4720,
2668,
4155,
280,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
21871,
916,
11,
1327,
9180,
8864,
18,
4720,
2668,
72,
7755,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
8640,
49,
11,
1327,
9180,
8864,
18,
4720,
2668,
7449,
2556,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
40,
8495,
11,
1327,
9180,
8864,
18,
4720,
2668,
19,
82,
2556,
2473,
13,
34,
33,
20,
30,
444,
388,
273,
296,
50,
4931,
11,
327,
444,
388,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
while self.current_control_tick < control_tick: self.current_control_tick += 1 win32api.PostMessage(self.hprogress, commctrl.PBM_STEPIT, 0, 0)
|
if verbose: print "Tick", self.current_stage_tick, "is", this_prop, "through the stage,", total_prop, "through the total - ctrl tick is", control_tick win32api.PostMessage(self.hprogress, commctrl.PBM_SETPOS, control_tick)
|
def tick(self): self.current_stage_tick += 1 # Calc how far through this stage. this_prop = float(self.current_stage_tick) / self.current_stage_max # How far through the total. stage_name, start, end = self._get_current_stage() # Calc the perc of the total control. stage_name, start, prop = self._get_current_stage() total_prop = start + this_prop * prop # How may ticks is this on the control (but always have 1, so the # user knows the process has actually started.) control_tick = max(1,int(total_prop * self.total_control_ticks)) #print "Tick", self.current_stage_tick, "is", this_prop, "through the stage,", total_prop, "through the total - ctrl tick is", control_tick while self.current_control_tick < control_tick: self.current_control_tick += 1 #print "ticking control", self.current_control_tick win32api.PostMessage(self.hprogress, commctrl.PBM_STEPIT, 0, 0)
|
4719b68626c47e5b4e78e019c8a48ff3506576c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/4719b68626c47e5b4e78e019c8a48ff3506576c8/async_processor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
12,
2890,
4672,
365,
18,
2972,
67,
12869,
67,
6470,
1011,
404,
468,
29128,
3661,
10247,
3059,
333,
6009,
18,
333,
67,
5986,
273,
1431,
12,
2890,
18,
2972,
67,
12869,
67,
6470,
13,
342,
365,
18,
2972,
67,
12869,
67,
1896,
468,
9017,
10247,
3059,
326,
2078,
18,
6009,
67,
529,
16,
787,
16,
679,
273,
365,
6315,
588,
67,
2972,
67,
12869,
1435,
468,
29128,
326,
26514,
434,
326,
2078,
3325,
18,
6009,
67,
529,
16,
787,
16,
2270,
273,
365,
6315,
588,
67,
2972,
67,
12869,
1435,
2078,
67,
5986,
273,
787,
397,
333,
67,
5986,
380,
2270,
468,
9017,
2026,
13003,
353,
333,
603,
326,
3325,
261,
12885,
3712,
1240,
404,
16,
1427,
326,
468,
729,
21739,
326,
1207,
711,
6013,
5746,
12998,
3325,
67,
6470,
273,
943,
12,
21,
16,
474,
12,
4963,
67,
5986,
380,
365,
18,
4963,
67,
7098,
67,
11767,
3719,
468,
1188,
315,
6264,
3113,
365,
18,
2972,
67,
12869,
67,
6470,
16,
315,
291,
3113,
333,
67,
5986,
16,
315,
10064,
326,
6009,
16,
3113,
2078,
67,
5986,
16,
315,
10064,
326,
2078,
300,
6414,
4024,
353,
3113,
3325,
67,
6470,
1323,
365,
18,
2972,
67,
7098,
67,
6470,
411,
3325,
67,
6470,
30,
365,
18,
2972,
67,
7098,
67,
6470,
1011,
404,
468,
1188,
315,
6470,
310,
3325,
3113,
365,
18,
2972,
67,
7098,
67,
6470,
5657,
1578,
2425,
18,
3349,
1079,
12,
2890,
18,
76,
8298,
16,
1543,
16277,
18,
20724,
49,
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,
4024,
12,
2890,
4672,
365,
18,
2972,
67,
12869,
67,
6470,
1011,
404,
468,
29128,
3661,
10247,
3059,
333,
6009,
18,
333,
67,
5986,
273,
1431,
12,
2890,
18,
2972,
67,
12869,
67,
6470,
13,
342,
365,
18,
2972,
67,
12869,
67,
1896,
468,
9017,
10247,
3059,
326,
2078,
18,
6009,
67,
529,
16,
787,
16,
679,
273,
365,
6315,
588,
67,
2972,
67,
12869,
1435,
468,
29128,
326,
26514,
434,
326,
2078,
3325,
18,
6009,
67,
529,
16,
787,
16,
2270,
273,
365,
6315,
588,
67,
2972,
67,
12869,
1435,
2078,
67,
5986,
273,
787,
397,
333,
67,
5986,
380,
2270,
468,
9017,
2026,
13003,
353,
333,
603,
326,
3325,
261,
12885,
3712,
1240,
404,
16,
1427,
2
] |
arcIdMatch = re.search("(\w+://([a-zA-Z0-9.-]+)\S*/\d*)", output)
|
arcIdMatch = re.search("(\w+://([a-zA-Z0-9.-]+)\S*/\d*)", jobstring)
|
def query(self, obj, service='', objType='node'): """ Query status and eventually other scheduler related information, and store it in the job.runningJob data structure.
|
41f02dda6faeaa4fd642e5315ef1d6eb56a334a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8886/41f02dda6faeaa4fd642e5315ef1d6eb56a334a3/SchedulerARC.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
1081,
16,
1156,
2218,
2187,
30078,
2218,
2159,
11,
4672,
3536,
2770,
1267,
471,
18011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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
1081,
16,
1156,
2218,
2187,
30078,
2218,
2159,
11,
4672,
3536,
2770,
1267,
471,
18011,
1308,
8129,
3746,
1779,
16,
471,
1707,
518,
316,
326,
1719,
18,
8704,
2278,
501,
3695,
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
] |
Popen([os.path.join(am_dir, "../unit_tree/TeamColorizer"), src, path + "/" + imgurl])
|
def w(x): f.write(x + "\n")
|
40959658132c7772a3b77bd1fd4f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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,
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,
12,
92,
4672,
284,
18,
2626,
12,
92,
397,
1548,
82,
7923,
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
] |
|
trace(2, depth, "early abort of _updown.upg at %s", (upgpkg))
|
self.trace(2, "early abort of _updown.upg at %s", (upgpkg))
|
def _updown(self, pkg, force): trans = self._trans changeset = self._changeset locked = self._locked depth = self._depth pruneweight = self._pruneweight trace(1, depth, "_updown(%s, pw=%f, yw=%f, f=%d)", (pkg, pruneweight, self._yieldweight, force))
|
b26ec53d5174d18eebf24ded272ad218fb19d0b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/b26ec53d5174d18eebf24ded272ad218fb19d0b4/transaction.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
416,
2378,
12,
2890,
16,
3475,
16,
2944,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365,
6315,
6329,
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
846,
318,
359,
1274,
273,
365,
6315,
683,
318,
359,
1274,
2606,
12,
21,
16,
3598,
16,
4192,
416,
2378,
9275,
87,
16,
8772,
5095,
74,
16,
677,
91,
5095,
74,
16,
284,
5095,
72,
2225,
16,
261,
10657,
16,
846,
318,
359,
1274,
16,
365,
6315,
23604,
4865,
16,
2944,
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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
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
846,
318,
359,
1274,
273,
365,
6315,
683,
318,
359,
1274,
2606,
12,
21,
16,
3598,
16,
4192,
416,
2378,
9275,
87,
16,
8772,
5095,
74,
16,
677,
91,
5095,
74,
16,
284,
5095,
72,
2225,
16,
261,
10657,
16,
846,
318,
359,
1274,
16,
365,
6315,
23604,
4865,
16,
2944,
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
] |
os.system('/usr/sbin/undomatroxcolor')
|
def run(self): while 1: if self.mode == 'idle': self.mode_flag.wait() self.mode_flag.clear()
|
4d4cbecd1b64b161427892bd2f2bed9b00002280 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/4d4cbecd1b64b161427892bd2f2bed9b00002280/mplayer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
404,
30,
309,
365,
18,
3188,
422,
296,
20390,
4278,
365,
18,
3188,
67,
6420,
18,
7048,
1435,
365,
18,
3188,
67,
6420,
18,
8507,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
404,
30,
309,
365,
18,
3188,
422,
296,
20390,
4278,
365,
18,
3188,
67,
6420,
18,
7048,
1435,
365,
18,
3188,
67,
6420,
18,
8507,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
buffer.append(data, t) buffer.append(None)
|
queue.put(data, int(id*tpf)) t1 = time.millitimer() gl.wintitle('(busy) ' + filename) print lastid, 'fields in', t1-t0, 'msec', print '--', 0.1 * int(lastid * 10000.0 / (t1-t0)), 'fields/sec' if audiofilename: audiostop.append(None) audiodone.acquire_lock() v.EndContinuousCapture() queue.put(None) done.acquire_lock()
|
def record(v, filename, audiofilename): import thread x, y = gl.getsize() vout = VFile.VoutFile().init(filename) vout.format = 'rgb8' vout.width = x vout.height = y vout.writeheader() buffer = [] thread.start_new_thread(saveframes, (vout, buffer)) if audiofilename: initaudio(audiofilename, buffer) gl.wintitle('(rec) ' + filename) v.StartCapture() t0 = time.millitimer() while not gl.qtest(): if v.GetCaptured() > 2: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) else: time.millisleep(10) v.StopCapture() while v.GetCaptured() > 0: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) buffer.append(None) # Sentinel gl.wintitle('(done) ' + filename)
|
62f6bc8e55ef2d0e226b1c3ad7b9aca58407ab7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/62f6bc8e55ef2d0e226b1c3ad7b9aca58407ab7a/Vrec.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,
331,
659,
18,
2139,
273,
296,
10948,
28,
11,
331,
659,
18,
2819,
273,
619,
331,
659,
18,
4210,
273,
677,
331,
659,
18,
2626,
3374,
1435,
1613,
273,
5378,
2650,
18,
1937,
67,
2704,
67,
5930,
12,
5688,
10278,
16,
261,
90,
659,
16,
1613,
3719,
309,
20232,
77,
792,
2550,
30,
1208,
11509,
12,
24901,
77,
792,
2550,
16,
1613,
13,
5118,
18,
91,
474,
1280,
2668,
12,
3927,
13,
296,
397,
1544,
13,
331,
18,
1685,
12372,
1435,
268,
20,
273,
813,
18,
81,
737,
305,
4417,
1435,
1323,
486,
5118,
18,
85,
3813,
13332,
309,
331,
18,
967,
26294,
2862,
1435,
405,
576,
30,
268,
273,
813,
18,
81,
737,
305,
4417,
1435,
300,
268,
20,
7976,
16,
384,
273,
331,
18,
967,
12372,
751,
1435,
501,
273,
7976,
18,
2761,
19574,
12,
92,
16,
677,
13,
7976,
18,
7087,
12372,
751,
1435,
1613,
18,
6923,
12,
892,
16,
268,
13,
469,
30,
813,
18,
81,
3503,
4265,
12,
2163,
13,
331,
18,
4947,
12372,
1435,
1323,
331,
18,
967,
26294,
2862,
1435,
405,
374,
30,
268,
273,
813,
18,
81,
737,
305,
4417,
1435,
300,
268,
20,
7976,
16,
384,
273,
331,
18,
967,
12372,
751,
1435,
501,
273,
7976,
18,
2761,
19574,
12,
92,
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,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,
331,
659,
18,
2139,
273,
296,
10948,
28,
11,
331,
659,
18,
2819,
273,
619,
331,
659,
18,
4210,
273,
677,
331,
659,
18,
2626,
3374,
1435,
1613,
273,
5378,
2650,
18,
1937,
67,
2704,
67,
5930,
12,
5688,
10278,
16,
261,
90,
659,
16,
1613,
3719,
309,
20232,
77,
792,
2550,
30,
1208,
11509,
12,
24901,
77,
792,
2550,
16,
1613,
13,
5118,
18,
91,
474,
1280,
2668,
12,
3927,
13,
296,
397,
1544,
13,
331,
18,
1685,
12372,
1435,
268,
2
] |
log_and_exec(CHECK + " user -v --name utilisager.normal --auto-yes")
|
log_and_exec(CHK + " user -v --name utilisager.normal --auto-yes")
|
def test_users(): """Test ADD/MOD/DEL on user accounts in various ways.""" test_message('''starting users related tests.''') log_and_exec(ADD + " group --name test_users_A --description 'groupe créé pour la suite de tests sur les utilisateurs, vous pouvez effacer'") log_and_exec(ADD + " profile --name Utilisagers --group utilisagers --comment 'profil normal créé pour la suite de tests utilisateurs'") log_and_exec(ADD + " profile --name Responsibilisateurs --group responsibilisateurs --groups cdrom,lpadmin,plugdev,audio,video,scanner,fuse --comment 'profil power user créé pour la suite de tests utilisateurs.'") log_and_exec(ADD + " group --name test_users_B --description 'groupe créé pour la suite de tests sur les utilisateurs, vous pouvez effacer'") os.system(GETENT + " groups") os.system(GETENT + " profiles") log_and_exec(ADD + " user --firstname Utiliçateur --lastname Accentué") log_and_exec(ADD + " user --gecos 'Utilisateur Accentué n°2'", True, 12, comment = "can't build a login from only a GECOS field.") log_and_exec(ADD + " user --login utilisager.normal --profile utilisagers") log_and_exec(MODIFY + " user --login=utilisager.normal -v --add-groups test_users_A") log_and_exec(MODIFY + " user --login=utilisager.normal -v --add-groups test_users_B") # should produce nothing, because nothing is wrong. log_and_exec(CHECK + " group -v --name test_users_B") os.system("rm ~utilisager.normal/test_users_A") # all must be OK, extended checks are not enabled, the program will not "see" the missing link. log_and_exec(CHECK + " group -v --name test_users_A") # the link to group_A isn't here ! log_and_exec(CHECK + " group -vv --name test_users_A --extended --auto-no", True, 7, comment = "a user lacks a symlink.") log_and_exec(CHECK + " group -vv --name test_users_A --extended --auto-yes") # the same check, but checking from users.py #os.system("rm ~utilisager.normal/test_users_A") #log_and_exec(CHECK + " user --name utilisager.normal") # not yet implemented #log_and_exec(CHECK + " user --name utilisager.normal --extended --auto-no", True, 7, comment="user lacks symlink") #log_and_exec(CHECK + " user --name utilisager.normal --extended --auto-yes") # checking for Maildir repair capacity... if configuration.users.mailbox_type == configuration.MAIL_TYPE_HOME_MAILDIR: os.system("rm -rf ~utilisager.normal/" + configuration.users.mailbox) log_and_exec(CHECK + " user -v --name utilisager.normal --auto-no", True, 7, comment="user lacks ~/" + configuration.users.mailbox) log_and_exec(CHECK + " user -v --name utilisager.normal --auto-yes") os.system("touch ~utilisager.normal/.dmrc ; chmod 666 ~utilisager.normal/.dmrc") log_and_exec(CHECK + " user -v --name utilisager.normal --auto-yes") os.system("mv -f ~utilisager.normal/test_users_B ~utilisager.normal/mon_groupe_B_préféré") # all must be ok, the link is just renamed... log_and_exec(CHECK + " group -vv --name test_users_B --extended") # FIXME: verify the user can create things in shared group dirs. log_and_exec(MODIFY + " user --login=utilisager.normal --del-groups test_users_A") # should fail log_and_exec(MODIFY + " user --login=utilisager.normal --del-groups test_users_A", comment = "already not a member.") log_and_exec(ADD + " user --login test.responsibilly --profile responsibilisateurs") log_and_exec(MODIFY + " profile --group utilisagers --add-groups cdrom") log_and_exec(MODIFY + " profile --group utilisagers --add-groups cdrom,test_users_B") log_and_exec(MODIFY + " profile --group utilisagers --apply-groups") log_and_exec(MODIFY + " profile --group responsibilisateurs --add-groups plugdev,audio,test_users_A") log_and_exec(MODIFY + " profile --group responsibilisateurs --del-groups audio") log_and_exec(MODIFY + " profile --group responsibilisateurs --apply-groups") # clean the system log_and_exec(DELETE + " user --login utilicateur.accentue") log_and_exec(DELETE + " user --login utilisateur.accentuen2", True, 5, comment = "this user has *NOT* been created previously.") log_and_exec(DELETE + " profile -vvv --group utilisagers --del-users --no-archive") #os.system(GETENT + " users") log_and_exec(DELETE + " profile --group responsibilisateurs", True, 12, comment = "there are still some users in the pri group of this profile.") log_and_exec(DELETE + " group --name=test_users_A --del-users --no-archive") log_and_exec(DELETE + " user --login test.responsibilly") # this should work now that the last user has been deleted log_and_exec(DELETE + " profile --group responsibilisateurs") log_and_exec(DELETE + " group --name=test_users_B -vv") # already deleted before #log_and_exec(DELETE + " user --login utilisager.normal") #log_and_exec(DELETE + " user --login test.responsibilly") test_message('''users related tests finished.''')
|
07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/07cb13c975b820cb15074a8378ec89357e5846f4/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5577,
13332,
3536,
4709,
11689,
19,
6720,
19,
24733,
603,
729,
9484,
316,
11191,
16226,
12123,
225,
1842,
67,
2150,
2668,
6309,
18526,
3677,
3746,
7434,
1093,
11,
6134,
225,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
1041,
1493,
529,
1842,
67,
5577,
67,
37,
1493,
3384,
296,
75,
15995,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
7434,
5056,
18022,
1709,
24954,
87,
16,
331,
1481,
293,
1395,
537,
94,
20986,
507,
2750,
4970,
13,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
3042,
1493,
529,
3564,
291,
346,
414,
1493,
1655,
1709,
291,
346,
414,
1493,
3469,
296,
685,
7540,
2212,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
7434,
1709,
24954,
87,
4970,
13,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
3042,
1493,
529,
1124,
500,
6044,
330,
24954,
87,
1493,
1655,
7899,
6044,
330,
24954,
87,
1493,
4650,
7976,
520,
16,
9953,
3666,
16,
22045,
5206,
16,
11509,
16,
9115,
16,
26842,
16,
74,
1202,
1493,
3469,
296,
685,
7540,
7212,
729,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
7434,
1709,
24954,
87,
1093,
7923,
225,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
1041,
1493,
529,
1842,
67,
5577,
67,
38,
1493,
3384,
296,
75,
15995,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
7434,
5056,
18022,
1709,
24954,
87,
16,
331,
1481,
293,
1395,
537,
94,
20986,
507,
2750,
4970,
13,
225,
1140,
18,
4299,
12,
3264,
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,
5577,
13332,
3536,
4709,
11689,
19,
6720,
19,
24733,
603,
729,
9484,
316,
11191,
16226,
12123,
225,
1842,
67,
2150,
2668,
6309,
18526,
3677,
3746,
7434,
1093,
11,
6134,
225,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
1041,
1493,
529,
1842,
67,
5577,
67,
37,
1493,
3384,
296,
75,
15995,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
7434,
5056,
18022,
1709,
24954,
87,
16,
331,
1481,
293,
1395,
537,
94,
20986,
507,
2750,
4970,
13,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
3042,
1493,
529,
3564,
291,
346,
414,
1493,
1655,
1709,
291,
346,
414,
1493,
3469,
296,
685,
7540,
2212,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
2
] |
wr.position.x = center_col_vec[0,0] wr.position.y = center_col_vec[1,0] wr.position.z = center_col_vec[2,0]
|
lock_pos = tr.translation_matrix(np.matrix([0,-.268,-.150]))*tfu.transform(self.omni_name+'_sensable', self.omni_name, self.tflistener)*np.row_stack((center_col_vec, np.matrix([1.]))) wr.position.x = (lock_pos[0,0])*1000.0 wr.position.y = (lock_pos[1,0])*1000.0 wr.position.z = (lock_pos[2,0])*1000.0
|
def omni_pose_cb(self, msg): if self.enabled: #Get the omni's tip pose in the PR2's torso frame tip_omni, msg_frame = tfu.posestamped_as_matrix(msg) self.torso_T_omni(tip_omni, msg_frame) tip_tt = self.tip_tt tip_tq = self.tip_tq #Publish new arm pose ps = PoseStamped() ps.header.frame_id = '/torso_lift_link' ps.header.stamp = rospy.get_rostime() ps.pose.position.x = tip_tt[0] ps.pose.position.y = tip_tt[1] ps.pose.position.z = tip_tt[2] ps.pose.orientation.x = tip_tq[0] ps.pose.orientation.y = tip_tq[1] ps.pose.orientation.z = tip_tq[2] ps.pose.orientation.w = tip_tq[3] self.pr2_pub.publish(ps) if self.zero_out_forces: wr = OmniFeedback() wr.force.x = 0 wr.force.y = 0 wr.force.z = 0 self.omni_fb.publish(wr) self.zero_out_forces = False else: #this is a zero order hold publishing the last received values until the control loop is active again tip_tt = self.tip_tt tip_tq = self.tip_tq ps = PoseStamped() ps.header.frame_id = '/torso_lift_link' ps.header.stamp = rospy.get_rostime() ps.pose.position.x = tip_tt[0] ps.pose.position.y = tip_tt[1] ps.pose.position.z = tip_tt[2] ps.pose.orientation.x = tip_tq[0] ps.pose.orientation.y = tip_tq[1] ps.pose.orientation.z = tip_tq[2] ps.pose.orientation.w = tip_tq[3] self.pr2_pub.publish(ps)
|
7b7ca3a268c5daaec0461231ecdc51422ad69239 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8117/7b7ca3a268c5daaec0461231ecdc51422ad69239/pr2_omni_teleop.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8068,
15834,
67,
4150,
67,
7358,
12,
2890,
16,
1234,
4672,
309,
365,
18,
5745,
30,
468,
967,
326,
8068,
15834,
1807,
9529,
26948,
316,
326,
11770,
22,
1807,
268,
1383,
83,
2623,
9529,
67,
362,
15834,
16,
1234,
67,
3789,
273,
3253,
89,
18,
917,
1822,
329,
67,
345,
67,
5667,
12,
3576,
13,
365,
18,
88,
1383,
83,
67,
56,
67,
362,
15834,
12,
14587,
67,
362,
15834,
16,
1234,
67,
3789,
13,
9529,
67,
748,
273,
365,
18,
14587,
67,
748,
9529,
67,
88,
85,
273,
365,
18,
14587,
67,
88,
85,
468,
6024,
394,
23563,
26948,
4250,
273,
453,
2584,
8860,
329,
1435,
4250,
18,
3374,
18,
3789,
67,
350,
273,
1173,
88,
1383,
83,
67,
80,
2136,
67,
1232,
11,
4250,
18,
3374,
18,
14317,
273,
721,
30884,
18,
588,
67,
303,
334,
494,
1435,
4250,
18,
4150,
18,
3276,
18,
92,
273,
9529,
67,
748,
63,
20,
65,
4250,
18,
4150,
18,
3276,
18,
93,
273,
9529,
67,
748,
63,
21,
65,
4250,
18,
4150,
18,
3276,
18,
94,
273,
9529,
67,
748,
63,
22,
65,
4250,
18,
4150,
18,
19235,
18,
92,
273,
9529,
67,
88,
85,
63,
20,
65,
4250,
18,
4150,
18,
19235,
18,
93,
273,
9529,
67,
88,
85,
63,
21,
65,
4250,
18,
4150,
18,
19235,
18,
94,
273,
9529,
67,
88,
85,
63,
22,
65,
4250,
18,
4150,
18,
19235,
18,
91,
273,
9529,
67,
88,
85,
63,
23,
65,
365,
18,
683,
22,
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,
8068,
15834,
67,
4150,
67,
7358,
12,
2890,
16,
1234,
4672,
309,
365,
18,
5745,
30,
468,
967,
326,
8068,
15834,
1807,
9529,
26948,
316,
326,
11770,
22,
1807,
268,
1383,
83,
2623,
9529,
67,
362,
15834,
16,
1234,
67,
3789,
273,
3253,
89,
18,
917,
1822,
329,
67,
345,
67,
5667,
12,
3576,
13,
365,
18,
88,
1383,
83,
67,
56,
67,
362,
15834,
12,
14587,
67,
362,
15834,
16,
1234,
67,
3789,
13,
9529,
67,
748,
273,
365,
18,
14587,
67,
748,
9529,
67,
88,
85,
273,
365,
18,
14587,
67,
88,
85,
468,
6024,
394,
23563,
26948,
4250,
273,
453,
2584,
8860,
329,
1435,
4250,
18,
3374,
18,
3789,
67,
350,
273,
1173,
88,
1383,
2
] |
self.logger.debug('Calling ' + functionPath + str(args))
|
if not s.loggedin: self.logger.debug("RPC method call from unauthenticated user: %s" % functionPath + str(args)) else: self.logger.debug("RPC method call from user %s: %s" % (s.userid, functionPath + str(args)))
|
def render(self, request): """ override method of xmlrpc python twisted framework
|
e02ca120fa18409a237d312ac7d02ea34220bf72 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/e02ca120fa18409a237d312ac7d02ea34220bf72/agent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
590,
4672,
3536,
3849,
707,
434,
31811,
5790,
2339,
25444,
8257,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1743,
12,
2890,
16,
590,
4672,
3536,
3849,
707,
434,
31811,
5790,
2339,
25444,
8257,
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
] |
@type plainSyllable: str @param plainSyllable: syllable without tonal information
|
@type plainEntity: str @param plainEntity: syllable without tonal information
|
def getExplicitTone(self, plainSyllable, baseTone): """ Gets the explicit tone for the given plain syllable and base tone.
|
3393604da067ca36b1da468c96a925bae792aff6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11128/3393604da067ca36b1da468c96a925bae792aff6/operator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
17186,
56,
476,
12,
2890,
16,
7351,
10876,
2906,
429,
16,
1026,
56,
476,
4672,
3536,
11881,
326,
5515,
30600,
364,
326,
864,
7351,
29136,
471,
1026,
30600,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
17186,
56,
476,
12,
2890,
16,
7351,
10876,
2906,
429,
16,
1026,
56,
476,
4672,
3536,
11881,
326,
5515,
30600,
364,
326,
864,
7351,
29136,
471,
1026,
30600,
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
] |
""" Searches in the fields of the given related model and returns the result as a simple string to be used by the jQuery Autocomplete plugin """ query = request.GET.get('q', None) app_label = request.GET.get('app_label', None) model_name = request.GET.get('model_name', None) search_fields = request.GET.get('search_fields', None) if search_fields and app_label and model_name and query: def construct_search(field_name): if field_name.startswith('^'): return "%s__istartswith" % field_name[1:] elif field_name.startswith('='): return "%s__iexact" % field_name[1:] elif field_name.startswith('@'): return "%s__search" % field_name[1:] else: return "%s__icontains" % field_name model = models.get_model(app_label, model_name) qs = model._default_manager.all() for bit in query.split(): or_queries = [models.Q(**{construct_search( smart_str(field_name)): smart_str(bit)}) for field_name in search_fields.split(',')] other_qs = QuerySet(model) other_qs.dup_select_related(qs) other_qs = other_qs.filter(reduce(operator.or_, or_queries)) qs = qs & other_qs data = ''.join([u'%s|%s\n' % (f.__unicode__(), f.pk) for f in qs]) return HttpResponse(data) return HttpResponseNotFound()
|
""" Searches in the fields of the given related model and returns the result as a simple string to be used by the jQuery Autocomplete plugin """ query = request.GET.get('q', None) app_label = request.GET.get('app_label', None) model_name = request.GET.get('model_name', None) search_fields = request.GET.get('search_fields', None) if search_fields and app_label and model_name and query: def construct_search(field_name): if field_name.startswith('^'): return "%s__istartswith" % field_name[1:] elif field_name.startswith('='): return "%s__iexact" % field_name[1:] elif field_name.startswith('@'): return "%s__search" % field_name[1:] else: return "%s__icontains" % field_name model = models.get_model(app_label, model_name) qs = model._default_manager.all() for bit in query.split(): or_queries = [models.Q(**{construct_search( smart_str(field_name)): smart_str(bit)}) for field_name in search_fields.split(',')] other_qs = QuerySet(model) other_qs.dup_select_related(qs) other_qs = other_qs.filter(reduce(operator.or_, or_queries)) qs = qs & other_qs data = ''.join([u'%s|%s\n' % (f.__unicode__(), f.pk) for f in qs]) return HttpResponse(data) return HttpResponseNotFound()
|
def search(request): """ Searches in the fields of the given related model and returns the result as a simple string to be used by the jQuery Autocomplete plugin """ query = request.GET.get('q', None) app_label = request.GET.get('app_label', None) model_name = request.GET.get('model_name', None) search_fields = request.GET.get('search_fields', None) if search_fields and app_label and model_name and query: def construct_search(field_name): # use different lookup methods depending on the notation if field_name.startswith('^'): return "%s__istartswith" % field_name[1:] elif field_name.startswith('='): return "%s__iexact" % field_name[1:] elif field_name.startswith('@'): return "%s__search" % field_name[1:] else: return "%s__icontains" % field_name model = models.get_model(app_label, model_name) qs = model._default_manager.all() for bit in query.split(): or_queries = [models.Q(**{construct_search( smart_str(field_name)): smart_str(bit)}) for field_name in search_fields.split(',')] other_qs = QuerySet(model) other_qs.dup_select_related(qs) other_qs = other_qs.filter(reduce(operator.or_, or_queries)) qs = qs & other_qs data = ''.join([u'%s|%s\n' % (f.__unicode__(), f.pk) for f in qs]) return HttpResponse(data) return HttpResponseNotFound()
|
7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2293,
4672,
3536,
5167,
281,
316,
326,
1466,
434,
326,
864,
3746,
938,
471,
1135,
326,
563,
487,
279,
4143,
533,
358,
506,
1399,
635,
326,
11215,
11809,
12760,
1909,
3536,
843,
273,
590,
18,
3264,
18,
588,
2668,
85,
2187,
599,
13,
595,
67,
1925,
273,
590,
18,
3264,
18,
588,
2668,
2910,
67,
1925,
2187,
599,
13,
938,
67,
529,
273,
590,
18,
3264,
18,
588,
2668,
2284,
67,
529,
2187,
599,
13,
1623,
67,
2821,
273,
590,
18,
3264,
18,
588,
2668,
3072,
67,
2821,
2187,
599,
13,
225,
309,
1623,
67,
2821,
471,
595,
67,
1925,
471,
938,
67,
529,
471,
843,
30,
1652,
4872,
67,
3072,
12,
1518,
67,
529,
4672,
468,
999,
3775,
3689,
2590,
8353,
603,
326,
12155,
309,
652,
67,
529,
18,
17514,
1918,
2668,
66,
11,
4672,
327,
2213,
87,
972,
376,
485,
87,
1918,
6,
738,
652,
67,
529,
63,
21,
26894,
1327,
652,
67,
529,
18,
17514,
1918,
2668,
2218,
4672,
327,
2213,
87,
972,
77,
17165,
6,
738,
652,
67,
529,
63,
21,
26894,
1327,
652,
67,
529,
18,
17514,
1918,
2668,
20887,
4672,
327,
2213,
87,
972,
3072,
6,
738,
652,
67,
529,
63,
21,
26894,
469,
30,
327,
2213,
87,
972,
335,
1580,
4167,
6,
738,
652,
67,
529,
225,
938,
273,
3679,
18,
588,
67,
2284,
12,
2910,
67,
1925,
16,
938,
67,
529,
13,
8719,
273,
938,
6315,
1886,
67,
4181,
18,
454,
1435,
364,
2831,
316,
843,
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,
1623,
12,
2293,
4672,
3536,
5167,
281,
316,
326,
1466,
434,
326,
864,
3746,
938,
471,
1135,
326,
563,
487,
279,
4143,
533,
358,
506,
1399,
635,
326,
11215,
11809,
12760,
1909,
3536,
843,
273,
590,
18,
3264,
18,
588,
2668,
85,
2187,
599,
13,
595,
67,
1925,
273,
590,
18,
3264,
18,
588,
2668,
2910,
67,
1925,
2187,
599,
13,
938,
67,
529,
273,
590,
18,
3264,
18,
588,
2668,
2284,
67,
529,
2187,
599,
13,
1623,
67,
2821,
273,
590,
18,
3264,
18,
588,
2668,
3072,
67,
2821,
2187,
599,
13,
225,
309,
1623,
67,
2821,
471,
595,
67,
1925,
471,
938,
67,
529,
471,
843,
30,
1652,
4872,
67,
3072,
12,
1518,
67,
529,
4672,
2
] |
if wxPlatform == '__WXGTK__': self.navigationBar = self.GetToolBar() else: self.navigationBar = self.FindWindowByName("NavigationBar")
|
self.navigationBar = self.FindWindowByName("NavigationBar")
|
def OnInit(self, model): """ There's a tricky problem here. We need to postpone wiring up OnMove, OnSize, etc. after __init__, otherwise OnMove, etc. will get called before we've had a chance to set the windows size using the value in our model. """ self.model = model
|
5845268ad32cf037101ba85b25022c508e0700e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5845268ad32cf037101ba85b25022c508e0700e1/ChandlerWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
16,
938,
4672,
3536,
6149,
1807,
279,
433,
13055,
6199,
2674,
18,
1660,
1608,
358,
1603,
84,
476,
341,
11256,
731,
2755,
7607,
16,
2755,
1225,
16,
5527,
18,
1839,
1001,
2738,
972,
16,
3541,
2755,
7607,
16,
5527,
18,
903,
336,
2566,
1865,
732,
8081,
9323,
279,
17920,
358,
444,
326,
9965,
963,
1450,
326,
460,
316,
3134,
938,
18,
3536,
365,
18,
2284,
273,
938,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
16,
938,
4672,
3536,
6149,
1807,
279,
433,
13055,
6199,
2674,
18,
1660,
1608,
358,
1603,
84,
476,
341,
11256,
731,
2755,
7607,
16,
2755,
1225,
16,
5527,
18,
1839,
1001,
2738,
972,
16,
3541,
2755,
7607,
16,
5527,
18,
903,
336,
2566,
1865,
732,
8081,
9323,
279,
17920,
358,
444,
326,
9965,
963,
1450,
326,
460,
316,
3134,
938,
18,
3536,
365,
18,
2284,
273,
938,
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
] |
connection = self._getConnection( connection )
|
def addReplica( self, lfns, connection = False ): connection = self._getConnection( connection ) """ Add replica to the catalog """ successful = {} failed = {} for lfn, info in lfns.items(): res = self._checkInfo( info, ['PFN', 'SE'] ) if not res['OK']: failed[lfn] = res['Message'] lfns.pop( lfn ) res = self._addReplicas( lfns, connection = connection ) if not res['OK']: for lfn in lfns.keys(): failed[lfn] = res['Message'] else: failed.update( res['Value']['Failed'] ) successful.update( res['Value']['Successful'] ) return S_OK( {'Successful':successful, 'Failed':failed} )
|
730c8c8e8acbd225fa02fcc8d670bcbd786db665 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/730c8c8e8acbd225fa02fcc8d670bcbd786db665/FileManagerBase.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
14222,
12,
365,
16,
18594,
2387,
16,
1459,
273,
1083,
262,
30,
3536,
1436,
12335,
358,
326,
6222,
3536,
6873,
273,
2618,
2535,
273,
2618,
364,
328,
4293,
16,
1123,
316,
18594,
2387,
18,
3319,
13332,
400,
273,
365,
6315,
1893,
966,
12,
1123,
16,
10228,
52,
19793,
2187,
296,
1090,
3546,
262,
309,
486,
400,
3292,
3141,
3546,
30,
2535,
63,
80,
4293,
65,
273,
400,
3292,
1079,
3546,
18594,
2387,
18,
5120,
12,
328,
4293,
262,
400,
273,
365,
6315,
1289,
17248,
12,
18594,
2387,
16,
1459,
273,
1459,
262,
309,
486,
400,
3292,
3141,
3546,
30,
364,
328,
4293,
316,
18594,
2387,
18,
2452,
13332,
2535,
63,
80,
4293,
65,
273,
400,
3292,
1079,
3546,
469,
30,
2535,
18,
2725,
12,
400,
3292,
620,
21712,
2925,
3546,
262,
6873,
18,
2725,
12,
400,
3292,
620,
21712,
14277,
3546,
262,
327,
348,
67,
3141,
12,
13666,
14277,
4278,
18418,
16,
296,
2925,
4278,
7307,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
14222,
12,
365,
16,
18594,
2387,
16,
1459,
273,
1083,
262,
30,
3536,
1436,
12335,
358,
326,
6222,
3536,
6873,
273,
2618,
2535,
273,
2618,
364,
328,
4293,
16,
1123,
316,
18594,
2387,
18,
3319,
13332,
400,
273,
365,
6315,
1893,
966,
12,
1123,
16,
10228,
52,
19793,
2187,
296,
1090,
3546,
262,
309,
486,
400,
3292,
3141,
3546,
30,
2535,
63,
80,
4293,
65,
273,
400,
3292,
1079,
3546,
18594,
2387,
18,
5120,
12,
328,
4293,
262,
400,
273,
365,
6315,
1289,
17248,
12,
18594,
2387,
16,
1459,
273,
1459,
262,
309,
486,
400,
3292,
3141,
3546,
30,
364,
328,
4293,
316,
18594,
2387,
18,
2452,
13332,
2535,
63,
80,
4293,
65,
273,
400,
3292,
1079,
2
] |
|
yearmin = data[0][0] yearmax = data[-1][0] full_left_y = int(round(a + yearmin * b)) full_right_y = int(round(a + yearmax * b)) valid_count = 0 last_valid = -9999 for i,(x,y) in reversed(list(enumerate(data))): if y is None: continue last_valid = max(last_valid, i) valid_count += 1 if valid_count >= 30: break (a_30,b_30,r2_30) = trend(data[i:]) left_y = int(round(a_30 + (yearmin+i) * b_30)) left_x = -100 + 200*float(i)/(yearmax-yearmin) right_y = int(round(a_30 + (yearmin+last_valid) * b_30)) right_x = -100 + 200*float(last_valid)/(yearmax-yearmin) result = Struct() result.urlfrag = ("-100,100|%d,%d|%.0f,%.0f|%d,%d" % (full_left_y, full_right_y, left_x, right_x, left_y, right_y)) result.b_full = b result.b_short = b_30 result.r2_full = r2 result.r2_short = r2_30
|
if a is not None: yearmin = data[0][0] yearmax = data[-1][0] full_left_y = int(round(a + yearmin * b)) full_right_y = int(round(a + yearmax * b)) valid_count = 0 last_valid = -9999 for i,(x,y) in reversed(list(enumerate(data))): if y is None: continue last_valid = max(last_valid, i) valid_count += 1 if valid_count >= 30: break (a_30,b_30,r2_30) = trend(data[i:]) left_y = int(round(a_30 + (yearmin+i) * b_30)) left_x = -100 + 200*float(i)/(yearmax-yearmin) right_y = int(round(a_30 + (yearmin+last_valid) * b_30)) right_x = -100 + 200*float(last_valid)/(yearmax-yearmin) result.urlfrag = ("-100,100|%d,%d|%.0f,%.0f|%d,%d" % (full_left_y, full_right_y, left_x, right_x, left_y, right_y)) result.b_full = b result.b_short = b_30 result.r2_full = r2 result.r2_short = r2_30 else: result.b_full = None result.b_short = None result.r2_full = None result.r2_short = None result.urlfrag = "-999|-999|-999|-999"
|
def trendlines(data): """Return a a triple of (url,slopelong,slopeshort) for the full and 30-year trend lines (url is a fragment).""" # full trend (a,b,r2) = trend(data) yearmin = data[0][0] yearmax = data[-1][0] full_left_y = int(round(a + yearmin * b)) full_right_y = int(round(a + yearmax * b)) # thirty-year trend # Find most recent 30 years of _valid_ data valid_count = 0 last_valid = -9999 # largest index with valid data for i,(x,y) in reversed(list(enumerate(data))): if y is None: continue last_valid = max(last_valid, i) valid_count += 1 if valid_count >= 30: break (a_30,b_30,r2_30) = trend(data[i:]) left_y = int(round(a_30 + (yearmin+i) * b_30)) left_x = -100 + 200*float(i)/(yearmax-yearmin) right_y = int(round(a_30 + (yearmin+last_valid) * b_30)) right_x = -100 + 200*float(last_valid)/(yearmax-yearmin) result = Struct() result.urlfrag = ("-100,100|%d,%d|%.0f,%.0f|%d,%d" % (full_left_y, full_right_y, left_x, right_x, left_y, right_y)) result.b_full = b result.b_short = b_30 result.r2_full = r2 result.r2_short = r2_30 return result
|
f48f5e90a10c46dc1af612da90b8566080e2297e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/f48f5e90a10c46dc1af612da90b8566080e2297e/vischeck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
20262,
3548,
12,
892,
4672,
3536,
990,
279,
279,
14543,
434,
261,
718,
16,
87,
16884,
292,
932,
16,
87,
16884,
4607,
499,
13,
364,
326,
1983,
471,
5196,
17,
6874,
268,
20262,
2362,
261,
718,
353,
279,
5481,
13,
12123,
468,
1983,
268,
20262,
261,
69,
16,
70,
16,
86,
22,
13,
273,
268,
20262,
12,
892,
13,
3286,
1154,
273,
501,
63,
20,
6362,
20,
65,
3286,
1896,
273,
501,
18919,
21,
6362,
20,
65,
1983,
67,
4482,
67,
93,
273,
509,
12,
2260,
12,
69,
397,
3286,
1154,
380,
324,
3719,
1983,
67,
4083,
67,
93,
273,
509,
12,
2260,
12,
69,
397,
3286,
1896,
380,
324,
3719,
468,
286,
30012,
17,
6874,
268,
20262,
468,
4163,
4486,
8399,
5196,
11387,
434,
389,
877,
67,
501,
923,
67,
1883,
273,
374,
1142,
67,
877,
273,
300,
7991,
468,
12756,
770,
598,
923,
501,
364,
277,
16,
12,
92,
16,
93,
13,
316,
9553,
12,
1098,
12,
7924,
12600,
12,
892,
3719,
4672,
309,
677,
353,
599,
30,
1324,
1142,
67,
877,
273,
943,
12,
2722,
67,
877,
16,
277,
13,
923,
67,
1883,
1011,
404,
309,
923,
67,
1883,
1545,
5196,
30,
898,
261,
69,
67,
5082,
16,
70,
67,
5082,
16,
86,
22,
67,
5082,
13,
273,
268,
20262,
12,
892,
63,
77,
30,
5717,
2002,
67,
93,
273,
509,
12,
2260,
12,
69,
67,
5082,
397,
261,
6874,
1154,
15,
77,
13,
380,
324,
67,
5082,
3719,
2002,
67,
92,
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,
268,
20262,
3548,
12,
892,
4672,
3536,
990,
279,
279,
14543,
434,
261,
718,
16,
87,
16884,
292,
932,
16,
87,
16884,
4607,
499,
13,
364,
326,
1983,
471,
5196,
17,
6874,
268,
20262,
2362,
261,
718,
353,
279,
5481,
13,
12123,
468,
1983,
268,
20262,
261,
69,
16,
70,
16,
86,
22,
13,
273,
268,
20262,
12,
892,
13,
3286,
1154,
273,
501,
63,
20,
6362,
20,
65,
3286,
1896,
273,
501,
18919,
21,
6362,
20,
65,
1983,
67,
4482,
67,
93,
273,
509,
12,
2260,
12,
69,
397,
3286,
1154,
380,
324,
3719,
1983,
67,
4083,
67,
93,
273,
509,
12,
2260,
12,
69,
397,
3286,
1896,
380,
324,
3719,
468,
286,
30012,
17,
6874,
268,
2
] |
return self.entry["thumbnail"]["url"].decode('ascii', 'replace')
|
thumb = element["thumbnail"] except KeyError: return None if isinstance(thumb, str): return thumb elif isinstance(thumb, unicode): return thumb.decode('ascii', 'replace') try: return thumb["url"].decode('ascii', 'replace')
|
def getThumbnailURL(self): """Returns a link to the thumbnail of the video. """ self.confirmDBThread() # Try to get the thumbnail specific to the video enclosure videoEnclosure = self.getFirstVideoEnclosure() if videoEnclosure is not None: try: return videoEnclosure["thumbnail"]["url"].decode("ascii", "replace") except KeyError: pass # Try to get any enclosure thumbnail for enclosure in self.entry.enclosures: try: return enclosure["thumbnail"]["url"].decode('ascii', 'replace') except KeyError: pass
|
ad3bc528acb93eb1885468e21f921d1448fed66c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/ad3bc528acb93eb1885468e21f921d1448fed66c/item.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
16270,
1785,
12,
2890,
4672,
3536,
1356,
279,
1692,
358,
326,
9134,
434,
326,
6191,
18,
3536,
365,
18,
10927,
2290,
3830,
1435,
468,
6161,
358,
336,
326,
9134,
2923,
358,
326,
6191,
23423,
6191,
4280,
5919,
273,
365,
18,
588,
3759,
10083,
4280,
5919,
1435,
309,
6191,
4280,
5919,
353,
486,
599,
30,
775,
30,
327,
6191,
4280,
5919,
9614,
14904,
6,
6362,
6,
718,
6,
8009,
3922,
2932,
9184,
3113,
315,
2079,
7923,
1335,
4999,
30,
1342,
468,
6161,
358,
336,
1281,
23423,
9134,
364,
23423,
316,
365,
18,
4099,
18,
1331,
383,
8421,
30,
775,
30,
327,
23423,
9614,
14904,
6,
6362,
6,
718,
6,
8009,
3922,
2668,
9184,
2187,
296,
2079,
6134,
1335,
4999,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16270,
1785,
12,
2890,
4672,
3536,
1356,
279,
1692,
358,
326,
9134,
434,
326,
6191,
18,
3536,
365,
18,
10927,
2290,
3830,
1435,
468,
6161,
358,
336,
326,
9134,
2923,
358,
326,
6191,
23423,
6191,
4280,
5919,
273,
365,
18,
588,
3759,
10083,
4280,
5919,
1435,
309,
6191,
4280,
5919,
353,
486,
599,
30,
775,
30,
327,
6191,
4280,
5919,
9614,
14904,
6,
6362,
6,
718,
6,
8009,
3922,
2932,
9184,
3113,
315,
2079,
7923,
1335,
4999,
30,
1342,
468,
6161,
358,
336,
1281,
23423,
9134,
364,
23423,
316,
365,
18,
4099,
18,
1331,
383,
8421,
30,
775,
30,
327,
23423,
9614,
14904,
6,
6362,
6,
718,
6,
8009,
3922,
2668,
9184,
2187,
296,
2079,
6134,
1335,
2
] |
test_capi2()
|
if not sys.platform.startswith('java'): test_capi1() test_capi2()
|
def test_capi2(): try: _testcapi.raise_exception(BadException, 0) except RuntimeError, err: exc, err, tb = sys.exc_info() co = tb.tb_frame.f_code assert co.co_name == "__init__" assert co.co_filename.endswith('test_exceptions.py') co2 = tb.tb_frame.f_back.f_code assert co2.co_name == "test_capi2" else: print "Expected exception"
|
4b7557c37c2b47b46719f0e60f85e7d9f35da077 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4b7557c37c2b47b46719f0e60f85e7d9f35da077/test_exceptions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
2425,
22,
13332,
775,
30,
389,
3813,
71,
2425,
18,
11628,
67,
4064,
12,
6434,
503,
16,
374,
13,
1335,
7265,
16,
393,
30,
3533,
16,
393,
16,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
1825,
273,
8739,
18,
18587,
67,
3789,
18,
74,
67,
710,
1815,
1825,
18,
2894,
67,
529,
422,
10425,
2738,
14437,
1815,
1825,
18,
2894,
67,
3459,
18,
5839,
1918,
2668,
3813,
67,
11855,
18,
2074,
6134,
1825,
22,
273,
8739,
18,
18587,
67,
3789,
18,
74,
67,
823,
18,
74,
67,
710,
1815,
1825,
22,
18,
2894,
67,
529,
422,
315,
3813,
67,
71,
2425,
22,
6,
469,
30,
1172,
315,
6861,
1520,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
71,
2425,
22,
13332,
775,
30,
389,
3813,
71,
2425,
18,
11628,
67,
4064,
12,
6434,
503,
16,
374,
13,
1335,
7265,
16,
393,
30,
3533,
16,
393,
16,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
1825,
273,
8739,
18,
18587,
67,
3789,
18,
74,
67,
710,
1815,
1825,
18,
2894,
67,
529,
422,
10425,
2738,
14437,
1815,
1825,
18,
2894,
67,
3459,
18,
5839,
1918,
2668,
3813,
67,
11855,
18,
2074,
6134,
1825,
22,
273,
8739,
18,
18587,
67,
3789,
18,
74,
67,
823,
18,
74,
67,
710,
1815,
1825,
22,
18,
2894,
67,
529,
422,
315,
3813,
67,
71,
2425,
22,
6,
469,
30,
1172,
315,
6861,
1520,
6,
2,
-100,
-100,
-100,
-100
] |
warn('imap.search() return: %s' % flist[0])
|
Log().warn('imap.search() return: %s' % flist[0])
|
def get_message(self, folder, uid): """Return the status and the message body for the given uid in the given folder.
|
37e720541da9eb3d7c758e4ba3bba9e24328637d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2245/37e720541da9eb3d7c758e4ba3bba9e24328637d/imapbackup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2150,
12,
2890,
16,
3009,
16,
4555,
4672,
3536,
990,
326,
1267,
471,
326,
883,
1417,
364,
326,
864,
4555,
316,
326,
864,
3009,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2150,
12,
2890,
16,
3009,
16,
4555,
4672,
3536,
990,
326,
1267,
471,
326,
883,
1417,
364,
326,
864,
4555,
316,
326,
864,
3009,
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
] |
I0 = self.index_set() J0 = other.index_set()
|
I0 = self.index_object() J0 = other.index_object()
|
def convolution(self, other): """ Convolves two sequences of the same length (automatically expands the shortest one by extending it by 0 if they have different lengths). If {a_n} and {b_n} are sequences of length N (n=0,1,...,N-1), extended by zero for all n in ZZ, then the convolution is
|
5d0c7d543a1b24ac0a1d29ac68884870541a3a98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5d0c7d543a1b24ac0a1d29ac68884870541a3a98/dft.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26828,
12,
2890,
16,
1308,
4672,
3536,
735,
15416,
3324,
2795,
8463,
434,
326,
1967,
769,
261,
5854,
20271,
4542,
87,
326,
20579,
1245,
635,
27147,
518,
635,
374,
309,
2898,
1240,
3775,
10917,
2934,
971,
288,
69,
67,
82,
97,
471,
288,
70,
67,
82,
97,
854,
8463,
434,
769,
423,
261,
82,
33,
20,
16,
21,
16,
2777,
16,
50,
17,
21,
3631,
7021,
635,
3634,
364,
777,
290,
316,
2285,
62,
16,
1508,
326,
26828,
353,
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,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
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,
26828,
12,
2890,
16,
1308,
4672,
3536,
735,
15416,
3324,
2795,
8463,
434,
326,
1967,
769,
261,
5854,
20271,
4542,
87,
326,
20579,
1245,
635,
27147,
518,
635,
374,
309,
2898,
1240,
3775,
10917,
2934,
971,
288,
69,
67,
82,
97,
471,
288,
70,
67,
82,
97,
854,
8463,
434,
769,
423,
261,
82,
33,
20,
16,
21,
16,
2777,
16,
50,
17,
21,
3631,
7021,
635,
3634,
364,
777,
290,
316,
2285,
62,
16,
1508,
326,
26828,
353,
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
] |
assert len(self.pendingEntId2ParentId) == 0
|
assert len(self.parent2ChildIds) == 0
|
def handleZoneEnter(collisionEntry, self=self, zoneNum=zoneNum): # eat the collisionEntry self.enterZone(zoneNum)
|
3c00fa597cd01b9c43d742c85f1d921aa688ebfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/3c00fa597cd01b9c43d742c85f1d921aa688ebfa/DistributedLevel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
4226,
10237,
12,
12910,
1951,
1622,
16,
365,
33,
2890,
16,
4157,
2578,
33,
3486,
2578,
4672,
468,
20729,
326,
17740,
1622,
365,
18,
2328,
4226,
12,
3486,
2578,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
4226,
10237,
12,
12910,
1951,
1622,
16,
365,
33,
2890,
16,
4157,
2578,
33,
3486,
2578,
4672,
468,
20729,
326,
17740,
1622,
365,
18,
2328,
4226,
12,
3486,
2578,
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
] |
sage: magma.function_call('PolynomialRing', [QQ,2])
|
sage: magma.function_call('PolynomialRing', [QQ,2])
|
def function_call(self, function, args=[], params={}, nvals=1): """ Return result of evaluating a Magma function with given input, parameters, and asking for nvals as output.
|
04917fdfb19c54d3ca3aa421b8fa4cc30257acef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/04917fdfb19c54d3ca3aa421b8fa4cc30257acef/magma.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
1991,
12,
2890,
16,
445,
16,
833,
22850,
6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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,
445,
67,
1991,
12,
2890,
16,
445,
16,
833,
22850,
6487,
859,
28793,
290,
4524,
33,
21,
4672,
3536,
2000,
563,
434,
26704,
279,
490,
9454,
445,
598,
864,
810,
16,
1472,
16,
471,
29288,
364,
290,
4524,
487,
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
] |
def initialize(self):
|
def setUp(self, request, node, data):
|
def initialize(self): self['type'] = 'password'
|
0815ea022f851ae2e2bcb7754a6b6f197e8cd751 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/0815ea022f851ae2e2bcb7754a6b6f197e8cd751/widgets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
16,
590,
16,
756,
16,
501,
4672,
365,
3292,
723,
3546,
273,
296,
3664,
11,
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
] |
[
1,
1,
1,
1,
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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
16,
590,
16,
756,
16,
501,
4672,
365,
3292,
723,
3546,
273,
296,
3664,
11,
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
] |
seh = process.read_uint( self.get_linear_address('SegFs', 0) )
|
process = self.get_process() seh = self.get_seh_chain_pointer()
|
def get_seh_chain(self): """ @rtype: list of tuple( int, int ) @return: List of structured exception handlers. Each SEH is represented as a tuple of two addresses: - Address of the SEH block - Address of the SEH callback function
|
015d670d265cb2758bfa6d6c506d4c7735582b07 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/015d670d265cb2758bfa6d6c506d4c7735582b07/system.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
307,
76,
67,
5639,
12,
2890,
4672,
3536,
632,
86,
723,
30,
225,
666,
434,
3193,
12,
509,
16,
509,
262,
632,
2463,
30,
987,
434,
19788,
1520,
4919,
18,
8315,
3174,
44,
353,
10584,
487,
279,
3193,
434,
2795,
6138,
30,
300,
5267,
434,
326,
3174,
44,
1203,
300,
5267,
434,
326,
3174,
44,
1348,
445,
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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
434,
2795,
6138,
30,
300,
5267,
434,
326,
3174,
44,
1203,
300,
5267,
434,
326,
3174,
44,
1348,
445,
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
] |
x = complex(x, 0)
|
x = _to_complex(x)
|
def sin(x): """sin(x) Return the sine of x.""" x = complex(x, 0) real = math.sin(x.real) * math.cosh(x.imag) imag = math.cos(x.real) * math.sinh(x.imag) return complex(real, imag)
|
d265b40c2f1e228c0cbd532ea68ae4f9079e1876 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/d265b40c2f1e228c0cbd532ea68ae4f9079e1876/cmath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5367,
12,
92,
4672,
3536,
21861,
12,
92,
13,
225,
2000,
326,
272,
558,
434,
619,
12123,
225,
619,
273,
389,
869,
67,
14259,
12,
92,
13,
2863,
273,
4233,
18,
21861,
12,
92,
18,
7688,
13,
380,
4233,
18,
14445,
76,
12,
92,
18,
15374,
13,
8902,
273,
4233,
18,
14445,
12,
92,
18,
7688,
13,
380,
4233,
18,
21861,
76,
12,
92,
18,
15374,
13,
327,
7233,
12,
7688,
16,
8902,
13,
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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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,
5367,
12,
92,
4672,
3536,
21861,
12,
92,
13,
225,
2000,
326,
272,
558,
434,
619,
12123,
225,
619,
273,
389,
869,
67,
14259,
12,
92,
13,
2863,
273,
4233,
18,
21861,
12,
92,
18,
7688,
13,
380,
4233,
18,
14445,
76,
12,
92,
18,
15374,
13,
8902,
273,
4233,
18,
14445,
12,
92,
18,
7688,
13,
380,
4233,
18,
21861,
76,
12,
92,
18,
15374,
13,
327,
7233,
12,
7688,
16,
8902,
13,
282,
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
] |
fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try:
|
with TemporaryFile("w+") as fileobj:
|
def test_read_long(self): fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try: fileobj.write("1,2,abc,4,5,6\r\n") fileobj.seek(0) reader = csv.DictReader(fileobj, fieldnames=["f1", "f2"]) self.assertEqual(next(reader), {"f1": '1', "f2": '2', None: ["abc", "4", "5", "6"]}) finally: fileobj.close() os.unlink(name)
|
02b1d9a951b66534b2fd77809400d61c745873e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/02b1d9a951b66534b2fd77809400d61c745873e5/test_csv.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
67,
5748,
12,
2890,
4672,
598,
22791,
812,
2932,
91,
15,
7923,
487,
17041,
30,
17041,
18,
2626,
2932,
21,
16,
22,
16,
18947,
16,
24,
16,
25,
16,
26,
64,
86,
64,
82,
7923,
17041,
18,
16508,
12,
20,
13,
2949,
273,
6101,
18,
5014,
2514,
12,
768,
2603,
16,
25051,
33,
9614,
74,
21,
3113,
315,
74,
22,
6,
5717,
365,
18,
11231,
5812,
12,
4285,
12,
10530,
3631,
12528,
74,
21,
6877,
296,
21,
2187,
315,
74,
22,
6877,
296,
22,
2187,
599,
30,
8247,
18947,
3113,
315,
24,
3113,
315,
25,
3113,
315,
26,
11929,
6792,
3095,
30,
17041,
18,
4412,
1435,
1140,
18,
318,
1232,
12,
529,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
67,
5748,
12,
2890,
4672,
598,
22791,
812,
2932,
91,
15,
7923,
487,
17041,
30,
17041,
18,
2626,
2932,
21,
16,
22,
16,
18947,
16,
24,
16,
25,
16,
26,
64,
86,
64,
82,
7923,
17041,
18,
16508,
12,
20,
13,
2949,
273,
6101,
18,
5014,
2514,
12,
768,
2603,
16,
25051,
33,
9614,
74,
21,
3113,
315,
74,
22,
6,
5717,
365,
18,
11231,
5812,
12,
4285,
12,
10530,
3631,
12528,
74,
21,
6877,
296,
21,
2187,
315,
74,
22,
6877,
296,
22,
2187,
599,
30,
8247,
18947,
3113,
315,
24,
3113,
315,
25,
3113,
315,
26,
11929,
6792,
3095,
30,
17041,
18,
4412,
1435,
1140,
18,
318,
1232,
12,
529,
13,
2,
-100,
-100
] |
elif u.dis_mode == 32 and not(inst.opr_mode == 64 or REX_W(inst.pfx.rex) == 0):
|
elif u.dis_mode == 32 or not(inst.opr_mode == 32 and REX_W(inst.pfx.rex) == 0):
|
def resolve_gpr64(u, inst, gpr_op): """64bit General Purpose Register-Selection.""" if gpr_op in range(OP_rAXr8, OP_rDIr15) : index = (gpr_op - OP_rAXr8) |(REX_B(inst.pfx.rex) << 3) else: index = gpr_op - OP_rAX if inst.opr_mode == 16: return GPR[16][index] elif u.dis_mode == 32 and not(inst.opr_mode == 64 or REX_W(inst.pfx.rex) == 0): return GPR[32][index] return GPR[64][index]
|
dac0d7b28a954921eec1862b83256e49619ccafb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11108/dac0d7b28a954921eec1862b83256e49619ccafb/decode.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
67,
75,
683,
1105,
12,
89,
16,
1804,
16,
314,
683,
67,
556,
4672,
3536,
1105,
3682,
9544,
14466,
4150,
5433,
17,
6233,
12123,
309,
314,
683,
67,
556,
316,
225,
1048,
12,
3665,
67,
86,
2501,
86,
28,
16,
7247,
67,
86,
2565,
86,
3600,
13,
294,
770,
273,
261,
75,
683,
67,
556,
300,
7247,
67,
86,
2501,
86,
28,
13,
571,
12,
862,
60,
67,
38,
12,
8591,
18,
14241,
92,
18,
266,
92,
13,
2296,
890,
13,
469,
30,
770,
273,
314,
683,
67,
556,
300,
7247,
67,
86,
2501,
309,
1804,
18,
556,
86,
67,
3188,
422,
2872,
30,
327,
4948,
54,
63,
2313,
6362,
1615,
65,
1327,
582,
18,
2251,
67,
3188,
422,
3847,
578,
486,
12,
8591,
18,
556,
86,
67,
3188,
422,
3847,
471,
534,
2294,
67,
59,
12,
8591,
18,
14241,
92,
18,
266,
92,
13,
422,
374,
4672,
327,
4948,
54,
63,
1578,
6362,
1615,
65,
327,
4948,
54,
63,
1105,
6362,
1615,
65,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
67,
75,
683,
1105,
12,
89,
16,
1804,
16,
314,
683,
67,
556,
4672,
3536,
1105,
3682,
9544,
14466,
4150,
5433,
17,
6233,
12123,
309,
314,
683,
67,
556,
316,
225,
1048,
12,
3665,
67,
86,
2501,
86,
28,
16,
7247,
67,
86,
2565,
86,
3600,
13,
294,
770,
273,
261,
75,
683,
67,
556,
300,
7247,
67,
86,
2501,
86,
28,
13,
571,
12,
862,
60,
67,
38,
12,
8591,
18,
14241,
92,
18,
266,
92,
13,
2296,
890,
13,
469,
30,
770,
273,
314,
683,
67,
556,
300,
7247,
67,
86,
2501,
309,
1804,
18,
556,
86,
67,
3188,
422,
2872,
30,
327,
4948,
54,
63,
2313,
6362,
1615,
65,
1327,
582,
18,
2251,
67,
2
] |
self.parent = weakParent() self._gal = weakGalObj()
|
self._weakParent = weakParent self._weakGal = weakGalObj
|
def __init__(self , respObj , weakGalObj , weakParent=None): self._setAttrItems(respObj.items()) if 'entity' in respObj: self._setAttrItems(respObj['entity'].items()) if weakParent is not None: self.parent = weakParent() self._gal = weakGalObj() self.fh = None self._postInit()
|
3ec4e710c574957aed44062e61443be9b89841b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13485/3ec4e710c574957aed44062e61443be9b89841b8/G3Items.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
269,
1718,
2675,
269,
16046,
43,
287,
2675,
269,
16046,
3054,
33,
7036,
4672,
365,
6315,
542,
3843,
3126,
12,
12243,
2675,
18,
3319,
10756,
309,
296,
1096,
11,
316,
1718,
2675,
30,
365,
6315,
542,
3843,
3126,
12,
12243,
2675,
3292,
1096,
29489,
3319,
10756,
309,
16046,
3054,
353,
486,
599,
30,
365,
6315,
26008,
3054,
273,
16046,
3054,
365,
6315,
26008,
43,
287,
273,
16046,
43,
287,
2675,
365,
18,
19260,
273,
599,
365,
6315,
2767,
2570,
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,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[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
269,
1718,
2675,
269,
16046,
43,
287,
2675,
269,
16046,
3054,
33,
7036,
4672,
365,
6315,
542,
3843,
3126,
12,
12243,
2675,
18,
3319,
10756,
309,
296,
1096,
11,
316,
1718,
2675,
30,
365,
6315,
542,
3843,
3126,
12,
12243,
2675,
3292,
1096,
29489,
3319,
10756,
309,
16046,
3054,
353,
486,
599,
30,
365,
6315,
26008,
3054,
273,
16046,
3054,
365,
6315,
26008,
43,
287,
273,
16046,
43,
287,
2675,
365,
18,
19260,
273,
599,
365,
6315,
2767,
2570,
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
] |
Return the q-expansion of self, to as high precision as it is known.
|
Return the `q`-expansion of self, to as high precision as it is known.
|
def q_expansion(self, prec=None): r""" Return the q-expansion of self, to as high precision as it is known.
|
d7c9d61652cabcfb658c91a720989214f7a469bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d7c9d61652cabcfb658c91a720989214f7a469bd/genus0.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
67,
2749,
12162,
12,
2890,
16,
13382,
33,
7036,
4672,
436,
8395,
2000,
326,
1043,
17,
2749,
12162,
434,
365,
16,
358,
487,
3551,
6039,
487,
518,
353,
4846,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
67,
2749,
12162,
12,
2890,
16,
13382,
33,
7036,
4672,
436,
8395,
2000,
326,
1043,
17,
2749,
12162,
434,
365,
16,
358,
487,
3551,
6039,
487,
518,
353,
4846,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 main ():
|
def on_idle(self, event): self.set_status_msg(self.status_msg) def main():
|
def on_tick(self, evt): #if option.autotune #tune offset if self.print_status: self.print_stats()
|
b5a766ad3cf7ace8184a93912fcda3cbfb5c1279 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10611/b5a766ad3cf7ace8184a93912fcda3cbfb5c1279/gsm_scan.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
6470,
12,
2890,
16,
6324,
4672,
468,
430,
1456,
18,
5854,
352,
7556,
468,
88,
7556,
1384,
225,
309,
365,
18,
1188,
67,
2327,
30,
365,
18,
1188,
67,
5296,
1435,
225,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
6470,
12,
2890,
16,
6324,
4672,
468,
430,
1456,
18,
5854,
352,
7556,
468,
88,
7556,
1384,
225,
309,
365,
18,
1188,
67,
2327,
30,
365,
18,
1188,
67,
5296,
1435,
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
] |
repme += "\n**[[:Image:%s]]" % duplicate
|
repme += "\n**[[:Image:%s]]" % self.convert_to_url(duplicate)
|
def checkImageDuplicated(self, image): """ Function to check the duplicated images. """ self.image = image duplicateRegex = r'\n\*(?:\[\[:Image:%s\]\] has the following duplicates:|\*\[\[:Image:%s\]\])$' % (self.image, self.image) imagePage = wikipedia.ImagePage(self.site, 'Image:%s' % self.image) wikipedia.output(u'Checking if %s has duplicates...' % image) get_hash = self.site.getUrl('/w/api.php?action=query&format=xml&titles=Image:%s&prop=imageinfo&iiprop=sha1' % self.convert_to_url(self.image)) hash_found_list = re.findall(r'<ii sha1="(.*?)" />', get_hash) if hash_found_list != []: hash_found = hash_found_list[0] else: if imagePage.exists(): raise NoHash('No Hash found in the APIs! Maybe the regex to catch it is wrong or someone has changed the APIs structure.') else: wikipedia.output(u'Image deleted before getting the Hash. Skipping...') return False # Error, we need to skip the page. get_duplicates = self.site.getUrl('/w/api.php?action=query&format=xml&list=allimages&aisha1=%s' % hash_found) duplicates = re.findall(r'<img name="(.*?)".*?/>', get_duplicates) if len(duplicates) > 1: if len(duplicates) == 2: wikipedia.output(u'%s has a duplicate! Reporting it...' % self.image) else: wikipedia.output(u'%s has %s duplicates! Reporting them...' % (self.image, len(duplicates) - 1)) repme = "\n*[[:Image:%s]] has the following duplicates:" % self.image for duplicate in duplicates: if duplicate == self.image: continue # the image itself, not report also this as duplicate repme += "\n**[[:Image:%s]]" % duplicate self.report_image(self.image, self.rep_page, self.com, repme, addings = False, regex = duplicateRegex) return True # Ok - No problem. Let's continue the checking phase
|
6918b3b10235a13ab06a42c1d70403c4f6526397 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/6918b3b10235a13ab06a42c1d70403c4f6526397/checkimages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2040,
19682,
690,
12,
2890,
16,
1316,
4672,
3536,
4284,
358,
866,
326,
16975,
4602,
18,
3536,
365,
18,
2730,
273,
1316,
6751,
6628,
273,
436,
8314,
82,
64,
14,
15599,
7438,
10531,
2040,
5319,
87,
64,
13944,
65,
711,
326,
3751,
11211,
30,
8960,
12174,
7438,
10531,
2040,
5319,
87,
64,
13944,
5717,
9227,
738,
261,
2890,
18,
2730,
16,
365,
18,
2730,
13,
1316,
1964,
273,
21137,
18,
2040,
1964,
12,
2890,
18,
4256,
16,
296,
2040,
5319,
87,
11,
738,
365,
18,
2730,
13,
21137,
18,
2844,
12,
89,
11,
14294,
309,
738,
87,
711,
11211,
7821,
738,
1316,
13,
336,
67,
2816,
273,
365,
18,
4256,
18,
588,
1489,
2668,
19,
91,
19,
2425,
18,
2684,
35,
1128,
33,
2271,
10,
2139,
33,
2902,
10,
17643,
33,
2040,
5319,
87,
10,
5986,
33,
2730,
1376,
10,
77,
625,
1764,
33,
7819,
21,
11,
738,
365,
18,
6283,
67,
869,
67,
718,
12,
2890,
18,
2730,
3719,
1651,
67,
7015,
67,
1098,
273,
283,
18,
4720,
454,
12,
86,
11,
32,
2835,
6056,
21,
1546,
7444,
35,
2225,
13452,
16,
336,
67,
2816,
13,
309,
1651,
67,
7015,
67,
1098,
480,
5378,
30,
1651,
67,
7015,
273,
1651,
67,
7015,
67,
1098,
63,
20,
65,
469,
30,
309,
1316,
1964,
18,
1808,
13332,
1002,
2631,
2310,
2668,
2279,
2474,
1392,
316,
326,
19947,
5,
14024,
326,
3936,
358,
1044,
518,
353,
7194,
578,
18626,
711,
3550,
326,
19947,
3695,
1093,
13,
469,
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,
866,
2040,
19682,
690,
12,
2890,
16,
1316,
4672,
3536,
4284,
358,
866,
326,
16975,
4602,
18,
3536,
365,
18,
2730,
273,
1316,
6751,
6628,
273,
436,
8314,
82,
64,
14,
15599,
7438,
10531,
2040,
5319,
87,
64,
13944,
65,
711,
326,
3751,
11211,
30,
8960,
12174,
7438,
10531,
2040,
5319,
87,
64,
13944,
5717,
9227,
738,
261,
2890,
18,
2730,
16,
365,
18,
2730,
13,
1316,
1964,
273,
21137,
18,
2040,
1964,
12,
2890,
18,
4256,
16,
296,
2040,
5319,
87,
11,
738,
365,
18,
2730,
13,
21137,
18,
2844,
12,
89,
11,
14294,
309,
738,
87,
711,
11211,
7821,
738,
1316,
13,
336,
67,
2816,
273,
365,
18,
4256,
18,
588,
1489,
2668,
19,
91,
19,
2
] |
for i in range(len(document.body)): document.body[i] = document.body[i].replace('\\InsetSpace \\hfill{}', '\\hfill') document.body[i] = document.body[i].replace('\\InsetSpace \\dotfill{}', \ '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Standard\n\n\n\\backslash\n' \ 'dotfill{}\n\\end_layout\n\n\\end_inset\n\n') document.body[i] = document.body[i].replace('\\InsetSpace \\hrulefill{}', \ '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Standard\n\n\n\\backslash\n' \ 'hrulefill{}\n\\end_layout\n\n\\end_inset\n\n')
|
hfill = re.compile(r'\\hfill') dotfill = re.compile(r'\\dotfill') hrulefill = re.compile(r'\\hrulefill') i = 0 while True: i = find_token(document.body, "\\InsetSpace", i) if i == -1: return if hfill.search(document.body[i]): document.body[i] = \ document.body[i].replace('\\InsetSpace \\hfill{}', '\\hfill') i += 1 continue if dotfill.search(document.body[i]): subst = document.body[i].replace('\\InsetSpace \\dotfill{}', \ '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Standard\n\n\n\\backslash\n' \ 'dotfill{}\n\\end_layout\n\n\\end_inset\n\n') subst = subst.split('\n') document.body[i : i+1] = subst i += len(subst) continue if hrulefill.search(document.body[i]): subst = document.body[i].replace('\\InsetSpace \\hrulefill{}', \ '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Standard\n\n\n\\backslash\n' \ 'hrulefill{}\n\\end_layout\n\n\\end_inset\n\n') subst = subst.split('\n') document.body[i : i+1] = subst i += len(subst) continue i += 1
|
def revert_hfills(document): ' Revert \\hfill commands ' for i in range(len(document.body)): document.body[i] = document.body[i].replace('\\InsetSpace \\hfill{}', '\\hfill') document.body[i] = document.body[i].replace('\\InsetSpace \\dotfill{}', \ '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Standard\n\n\n\\backslash\n' \ 'dotfill{}\n\\end_layout\n\n\\end_inset\n\n') document.body[i] = document.body[i].replace('\\InsetSpace \\hrulefill{}', \ '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Standard\n\n\n\\backslash\n' \ 'hrulefill{}\n\\end_layout\n\n\\end_inset\n\n')
|
a97fbaa6858229f4bef56786ffb07688ef5a4d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/a97fbaa6858229f4bef56786ffb07688ef5a4d82/lyx_1_6.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
76,
5935,
87,
12,
5457,
4672,
296,
868,
1097,
1736,
76,
5935,
4364,
296,
366,
5935,
273,
283,
18,
11100,
12,
86,
11,
1695,
76,
5935,
6134,
3928,
5935,
273,
283,
18,
11100,
12,
86,
11,
1695,
9811,
5935,
6134,
366,
5345,
5935,
273,
283,
18,
11100,
12,
86,
11,
1695,
76,
5345,
5935,
6134,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
382,
542,
3819,
3113,
277,
13,
309,
277,
422,
300,
21,
30,
327,
309,
366,
5935,
18,
3072,
12,
5457,
18,
3432,
63,
77,
65,
4672,
1668,
18,
3432,
63,
77,
65,
273,
521,
1668,
18,
3432,
63,
77,
8009,
2079,
2668,
1695,
382,
542,
3819,
1736,
76,
5935,
8978,
16,
3718,
76,
5935,
6134,
277,
1011,
404,
1324,
309,
3928,
5935,
18,
3072,
12,
5457,
18,
3432,
63,
77,
65,
4672,
27750,
273,
1668,
18,
3432,
63,
77,
8009,
2079,
2668,
1695,
382,
542,
3819,
1736,
9811,
5935,
8978,
16,
521,
3718,
10086,
67,
267,
542,
4232,
56,
64,
82,
2327,
17027,
64,
82,
64,
82,
11,
521,
3718,
10086,
67,
6741,
8263,
64,
82,
64,
82,
64,
82,
1695,
823,
12877,
64,
82,
11,
521,
296,
9811,
5935,
25902,
82,
1695,
409,
67,
6741,
64,
82,
64,
82,
1695,
409,
67,
267,
542,
64,
82,
64,
82,
6134,
27750,
273,
27750,
18,
4939,
2668,
64,
82,
6134,
1668,
18,
3432,
63,
77,
294,
277,
15,
21,
65,
273,
27750,
277,
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,
15226,
67,
76,
5935,
87,
12,
5457,
4672,
296,
868,
1097,
1736,
76,
5935,
4364,
296,
366,
5935,
273,
283,
18,
11100,
12,
86,
11,
1695,
76,
5935,
6134,
3928,
5935,
273,
283,
18,
11100,
12,
86,
11,
1695,
9811,
5935,
6134,
366,
5345,
5935,
273,
283,
18,
11100,
12,
86,
11,
1695,
76,
5345,
5935,
6134,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
382,
542,
3819,
3113,
277,
13,
309,
277,
422,
300,
21,
30,
327,
309,
366,
5935,
18,
3072,
12,
5457,
18,
3432,
63,
77,
65,
4672,
1668,
18,
3432,
63,
77,
65,
273,
521,
1668,
18,
3432,
63,
77,
8009,
2079,
2668,
1695,
382,
2
] |
if bootCode: loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-build.tmpl.js") else: loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-source.tmpl.js") result = filetool.read(loaderFile) result = fillTemplate(vals, result)
|
template = loadTemplate(bootCode) result = fillTemplate(vals, template)
|
def packageUrisToJS(): # Translate URI data to JavaScript allUris = [] allUrisSmall = [] for packageId, package in enumerate(packages): packageUris = [] packageUrisSmall = []
|
3978f530a7d64dbbf06451cc3ce692ba259795e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/3978f530a7d64dbbf06451cc3ce692ba259795e9/CodeGenerator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2181,
23900,
774,
6479,
13332,
468,
16820,
3699,
501,
358,
11905,
225,
777,
23900,
273,
5378,
777,
23900,
19187,
273,
5378,
364,
2181,
548,
16,
2181,
316,
4241,
12,
10308,
4672,
2181,
23900,
273,
5378,
2181,
23900,
19187,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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900,
273,
5378,
2181,
23900,
19187,
273,
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
] |
print("WARNING: Optional "+file+" loaded when it shouldn't've"+" ("+str(round(dt,2))+"s)")
|
print("WARNING: Optional file "+file+" loaded when it shouldn't've!"+" ("+str(round(dt,2))+"s)")
|
def run_tests(argv): clean = 0 printerr = 1 #scan for --help and --clean if len(argv) > 1: for arg in argv: if "--help" in arg: do_help(); exit(0) if "--clean" in arg: clean = 1 if "--error" in arg: if printerr == 0: printerr = 1 if printerr == 1: printerr = 0 print("Starting autotest script") there_dir = os.getcwd() err_ct = 0 ex_ct = 0 first_time = time.time() end_time = 0 #if clean == 1: # print("Go clean?") # determine where the script starts here_dir = os.getcwd() print("Starting from \'"+here_dir+"\'") #determine where we _want_ the script to start if len(argv) > 1: argn = 1 while argn < len(argv): if argv[argn][0] == '-': argn+=1 # ignore anything that looks like a flag else: there_dir = argv[argn] # take the first path and be done with it # poor form but we're not doing much complicated break #locate autotest dirs #autotestdirs = find_autotest_dirs(there_dir) autotestdirs = [] for path, dirs, files in os.walk(there_dir): if "autotest" in dirs: autotestdirs.append(os.path.abspath(os.path.join(path,"autotest"))) #for path in autotestdirs: # print("Found dir: \'"+path+"\'") #locate autotest test files #autotestfiles = find_autotest_files(autotestdirs) autotestfiles = [] for path in autotestdirs: for file in os.listdir(path): if file.startswith("test_") and file.endswith(".glm") and file[0] != '.': autotestfiles.append((path, file)) #for path, file in autotestfiles: # print("Found file: \'"+file+"\'") #build test dirs #for file in autotestfiles: errlist=[] cleanlist=[] for path, file in autotestfiles: err = False slice = file[:-4] currpath = os.getcwd() xpath = os.path.join(path,slice) # path/slice xfile = os.path.join(xpath,file) # path/slice/file.glm if not os.path.exists(xpath): os.mkdir(xpath) if os.path.exists(os.path.join(xpath,"gridlabd.xml")): os.remove(os.path.join(xpath,"gridlabd.xml")) shutil.copy2(os.path.join(path,file), xfile) # path/file to path/slice/file os.chdir(xpath) #print("cwd: "+xpath) # build conf files # moo? #run files with popen #run file with: outfile = open(os.path.join(xpath,"outfile.txt"), "w") errfile = open(os.path.join(xpath,"errfile.txt"), "w") #print("NOTICE: Running \'"+xfile+"\'") start_time = time.time(); rv = subprocess.call(["gridlabd",xfile],stdout=outfile,stderr=errfile) end_time = time.time(); dt = end_time - start_time outfile.close() errfile.close() if os.path.exists(os.path.join(xpath,"gridlabd.xml")): statinfo = os.stat(os.path.join(xpath, "gridlabd.xml")) if(statinfo.st_mtime > start_time): if rv == 0: # didn't succeed if gridlabd.xml exists & updated since runtime rv = 1 # handle results if "err_" in file or "_err" in file: if rv == 0: if "opt_" in file or "_opt" in file: print("WARNING: Optional "+file+" converged when it shouldn't've"+" ("+str(round(dt,2))+"s)") cleanlist.append((path, file)) err = False else: print("ERROR: "+file+" converged when it shouldn't've"+" ("+str(round(dt,2))+"s)") print_error(path, printerr) err_ct += 1 err = True elif rv == 2: print("SUCCESS: "+file+" failed to converge, as planned."+" ("+str(round(dt,2))+"s)") cleanlist.append((path, file)) elif rv == 1: print("EXCEPTION: "+file+" failed to load"+" ("+str(dt)+"s)") print_error(path, printerr) ex_ct += 1 err = True else: print("EXCEPTION: "+file+" unrecognized return value ("+str(rv)+")"+" ("+str(round(dt,2))+"s)") print_error(path, printerr) ex_ct += 1 err = True elif "exc_" in file or "_exc" in file: if rv == 0: if "opt_" in file or "_opt" in file: print("WARNING: Optional "+file+" loaded when it shouldn't've"+" ("+str(round(dt,2))+"s)") cleanlist.append((path, file)) err = False else: print("ERROR: "+file+" loaded when it shouldn't've"+" ("+str(round(dt,2))+"s)") err_ct += 1 err = True elif rv == 1: print("SUCCESS: "+file+" failed to load, as planned"+" ("+str(round(dt,2))+"s)") cleanlist.append((path, file)) else: print("EXCEPTION: "+file+" unrecognized return value ("+str(rv)+")"+" ("+str(round(dt,2))+"s)") print_error(path, printerr) ex_ct += 1 err = True else: if rv == 2: if "opt_" in file or "_opt" in file: print("WARNING: Optional "+file+" failed to converge"+" ("+str(round(dt,2))+"s)") cleanlist.append((path, file)) err = False else: err_ct += 1 print("ERROR: "+file+" failed to converge"+" ("+str(round(dt,2))+"s)") print_error(path, printerr) err = True elif rv == 1: print("EXCEPTION: "+file+" failed to load"+" ("+str(round(dt,2))+"s)") print_error(path, printerr) ex_ct += 1 err = True elif rv == 0: print("SUCCESS: "+file+" converged"+" ("+str(round(dt,2))+"s)") cleanlist.append((path, file)) else: print("EXCEPTION: "+file+": unrecognized return value ("+str(rv)+")"+" ("+str(round(dt,2))+"s)") print_error(path, printerr) ex_ct += 1 err = True if err: # zip target directory errlist.append((path,file)) os.chdir(currpath) #print("cwd: "+currpath) # end autotestfiles loop #cleanup as appropriate #for cleanfile, cleanpath in cleanlist: # for path, dirs, file in os.walk(cleanpath): # print("foo") #end #print("bar") last_time = time.time() dt = last_time - first_time #return success/failure print("Validation detected "+str(err_ct)+" models with errors and "+str(ex_ct)+" models with exceptions in "+str(round(dt,2))+" seconds.") for errpath, errfile in errlist: print(" * "+os.path.join(errpath, errfile)) exit(err_ct+ex_ct)
|
df94e5b8a9553981a05c88f42b7f6175b9153ec1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/43/df94e5b8a9553981a05c88f42b7f6175b9153ec1/validate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
19485,
4672,
2721,
273,
374,
1172,
370,
273,
404,
468,
9871,
364,
1493,
5201,
471,
1493,
6200,
309,
562,
12,
19485,
13,
405,
404,
30,
364,
1501,
316,
5261,
30,
309,
5238,
5201,
6,
316,
1501,
30,
741,
67,
5201,
5621,
2427,
12,
20,
13,
309,
5238,
6200,
6,
316,
1501,
30,
2721,
273,
404,
309,
5238,
1636,
6,
316,
1501,
30,
309,
1172,
370,
422,
374,
30,
1172,
370,
273,
404,
309,
1172,
370,
422,
404,
30,
1172,
370,
273,
374,
225,
1172,
2932,
11715,
2059,
352,
395,
2728,
7923,
225,
1915,
67,
1214,
273,
1140,
18,
588,
11089,
1435,
393,
67,
299,
273,
374,
431,
67,
299,
273,
374,
1122,
67,
957,
273,
813,
18,
957,
1435,
679,
67,
957,
273,
374,
225,
468,
430,
2721,
422,
404,
30,
468,
202,
1188,
2932,
5741,
2721,
7225,
13,
225,
468,
4199,
1625,
326,
2728,
2542,
2674,
67,
1214,
273,
1140,
18,
588,
11089,
1435,
1172,
2932,
11715,
628,
521,
4970,
15,
14852,
67,
1214,
9078,
3730,
7923,
225,
468,
24661,
1625,
732,
389,
17369,
67,
326,
2728,
358,
787,
309,
562,
12,
19485,
13,
405,
404,
30,
1501,
82,
273,
404,
1323,
1501,
82,
411,
562,
12,
19485,
4672,
309,
5261,
63,
297,
1600,
6362,
20,
65,
422,
4014,
30,
1501,
82,
15,
33,
21,
468,
2305,
6967,
716,
10192,
3007,
279,
2982,
469,
30,
1915,
67,
1214,
273,
5261,
63,
297,
1600,
65,
468,
4862,
326,
1122,
589,
471,
506,
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,
1086,
67,
16341,
12,
19485,
4672,
2721,
273,
374,
1172,
370,
273,
404,
468,
9871,
364,
1493,
5201,
471,
1493,
6200,
309,
562,
12,
19485,
13,
405,
404,
30,
364,
1501,
316,
5261,
30,
309,
5238,
5201,
6,
316,
1501,
30,
741,
67,
5201,
5621,
2427,
12,
20,
13,
309,
5238,
6200,
6,
316,
1501,
30,
2721,
273,
404,
309,
5238,
1636,
6,
316,
1501,
30,
309,
1172,
370,
422,
374,
30,
1172,
370,
273,
404,
309,
1172,
370,
422,
404,
30,
1172,
370,
273,
374,
225,
1172,
2932,
11715,
2059,
352,
395,
2728,
7923,
225,
1915,
67,
1214,
273,
1140,
18,
588,
11089,
1435,
393,
67,
299,
273,
374,
431,
67,
299,
273,
374,
1122,
67,
957,
2
] |
c = Chain2(verbose=True)
|
c = Chain2(verbose=0)
|
def install_order(self, req): """ Return the list of distributions which need to be installed. The returned list is given in dependency order, i.e. the distributions can be installed in this order without any package being installed before its dependencies got installed. """ # all requirements necessary for install reqs = self.get_reqs(req)
|
6a8b09561f5be59b89be57f7cf16f575a7469a14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7707/6a8b09561f5be59b89be57f7cf16f575a7469a14/t.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
1019,
12,
2890,
16,
1111,
4672,
3536,
2000,
326,
666,
434,
23296,
1492,
1608,
358,
506,
5876,
18,
1021,
2106,
666,
353,
864,
316,
4904,
1353,
16,
277,
18,
73,
18,
326,
23296,
848,
506,
5876,
316,
333,
1353,
2887,
1281,
2181,
3832,
5876,
1865,
2097,
5030,
2363,
5876,
18,
3536,
468,
777,
8433,
4573,
364,
3799,
20927,
273,
365,
18,
588,
67,
25782,
12,
3658,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3799,
67,
1019,
12,
2890,
16,
1111,
4672,
3536,
2000,
326,
666,
434,
23296,
1492,
1608,
358,
506,
5876,
18,
1021,
2106,
666,
353,
864,
316,
4904,
1353,
16,
277,
18,
73,
18,
326,
23296,
848,
506,
5876,
316,
333,
1353,
2887,
1281,
2181,
3832,
5876,
1865,
2097,
5030,
2363,
5876,
18,
3536,
468,
777,
8433,
4573,
364,
3799,
20927,
273,
365,
18,
588,
67,
25782,
12,
3658,
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
] |
icons = [os.path.join("Icons",name) for name in Icons]
|
icons = [os.path.join(package_dir, "Icons",name) for name in Icons] txts = [os.path.join(package_dir, name) for name in txt_files]
|
def get_source_files(self): # returns the .py files, the .txt files, and the icons icons = [os.path.join("Icons",name) for name in Icons] return build_py.get_source_files(self)+txt_files+icons
|
b34f34c1e4459597214b7dc957cfd2ff910722e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b34f34c1e4459597214b7dc957cfd2ff910722e7/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3168,
67,
2354,
12,
2890,
4672,
468,
1135,
326,
263,
2074,
1390,
16,
326,
263,
5830,
1390,
16,
471,
326,
17455,
17455,
273,
306,
538,
18,
803,
18,
5701,
12,
5610,
67,
1214,
16,
315,
27510,
3113,
529,
13,
364,
508,
316,
467,
8559,
65,
2229,
3428,
273,
306,
538,
18,
803,
18,
5701,
12,
5610,
67,
1214,
16,
508,
13,
364,
508,
316,
6463,
67,
2354,
65,
327,
1361,
67,
2074,
18,
588,
67,
3168,
67,
2354,
12,
2890,
27921,
5830,
67,
2354,
15,
14516,
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,
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135,
326,
263,
2074,
1390,
16,
326,
263,
5830,
1390,
16,
471,
326,
17455,
17455,
273,
306,
538,
18,
803,
18,
5701,
12,
5610,
67,
1214,
16,
315,
27510,
3113,
529,
13,
364,
508,
316,
467,
8559,
65,
2229,
3428,
273,
306,
538,
18,
803,
18,
5701,
12,
5610,
67,
1214,
16,
508,
13,
364,
508,
316,
6463,
67,
2354,
65,
327,
1361,
67,
2074,
18,
588,
67,
3168,
67,
2354,
12,
2890,
27921,
5830,
67,
2354,
15,
14516,
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
] |
src.writeh('// %s<PREFIX>%s = %s,' % ('ep', name[0].upper() + name[1:], _formatcode(code)))
|
src.writeh('// %s<PREFIX>%s = %s,' % ('ep', _capname(name), _formatcode(code)))
|
def render_aemheader(self, src): src.newglue('AEMConstants', False) src.comment('Types, enumerators, properties') src.writeh('enum {') for name, (kind, code) in self.typebyname: self._renderaemconstant('k', name, code, src) src.writeh('};\n') src.writeh('enum {') for name, (kind, data) in self.referencebyname: if kind != kCommand: self._renderaemconstant(kind, name, data, src) src.writeh('};\n') src.comment('Events') knownparams = set() for name, (kind, data) in self.referencebyname: if kind == kCommand: src.writeh('enum {') code = data[0] self._renderaemconstant('ec', name, code[:4], src) self._renderaemconstant('ei', name, code[4:], src) params = data[1].items() params.sort() for name, code in params: if name in knownparams: src.writeh('// %s<PREFIX>%s = %s,' % ('ep', name[0].upper() + name[1:], _formatcode(code))) else: knownparams.add(name) self._renderaemconstant('ep', name, code, src) src.writeh('};\n')
|
4f805079f12ced16aef2a53d56a693223625d575 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10961/4f805079f12ced16aef2a53d56a693223625d575/osaglue.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
69,
351,
3374,
12,
2890,
16,
1705,
4672,
1705,
18,
2704,
7043,
344,
2668,
37,
3375,
2918,
2187,
1083,
13,
1705,
18,
3469,
2668,
2016,
16,
3557,
3062,
16,
1790,
6134,
1705,
18,
2626,
76,
2668,
7924,
288,
6134,
364,
508,
16,
261,
9224,
16,
981,
13,
316,
365,
18,
723,
1637,
529,
30,
365,
6315,
5902,
69,
351,
14384,
2668,
79,
2187,
508,
16,
981,
16,
1705,
13,
1705,
18,
2626,
76,
2668,
97,
9747,
82,
6134,
1705,
18,
2626,
76,
2668,
7924,
288,
6134,
364,
508,
16,
261,
9224,
16,
501,
13,
316,
365,
18,
6180,
1637,
529,
30,
309,
3846,
480,
417,
2189,
30,
365,
6315,
5902,
69,
351,
14384,
12,
9224,
16,
508,
16,
501,
16,
1705,
13,
1705,
18,
2626,
76,
2668,
97,
9747,
82,
6134,
1705,
18,
3469,
2668,
3783,
6134,
4846,
2010,
273,
444,
1435,
364,
508,
16,
261,
9224,
16,
501,
13,
316,
365,
18,
6180,
1637,
529,
30,
309,
3846,
422,
417,
2189,
30,
1705,
18,
2626,
76,
2668,
7924,
288,
6134,
981,
273,
501,
63,
20,
65,
365,
6315,
5902,
69,
351,
14384,
2668,
557,
2187,
508,
16,
981,
10531,
24,
6487,
1705,
13,
365,
6315,
5902,
69,
351,
14384,
2668,
73,
77,
2187,
508,
16,
981,
63,
24,
30,
6487,
1705,
13,
859,
273,
501,
63,
21,
8009,
3319,
1435,
859,
18,
3804,
1435,
364,
508,
16,
981,
316,
859,
30,
309,
508,
316,
4846,
2010,
30,
1705,
18,
2626,
76,
2668,
759,
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,
1743,
67,
69,
351,
3374,
12,
2890,
16,
1705,
4672,
1705,
18,
2704,
7043,
344,
2668,
37,
3375,
2918,
2187,
1083,
13,
1705,
18,
3469,
2668,
2016,
16,
3557,
3062,
16,
1790,
6134,
1705,
18,
2626,
76,
2668,
7924,
288,
6134,
364,
508,
16,
261,
9224,
16,
981,
13,
316,
365,
18,
723,
1637,
529,
30,
365,
6315,
5902,
69,
351,
14384,
2668,
79,
2187,
508,
16,
981,
16,
1705,
13,
1705,
18,
2626,
76,
2668,
97,
9747,
82,
6134,
1705,
18,
2626,
76,
2668,
7924,
288,
6134,
364,
508,
16,
261,
9224,
16,
501,
13,
316,
365,
18,
6180,
1637,
529,
30,
309,
3846,
480,
417,
2189,
30,
365,
6315,
5902,
69,
351,
14384,
12,
9224,
16,
2
] |
elif os.path.isfile(res):
|
elif os.path.exists(res):
|
def get_module_resource(module, *args): """Return the full path of a resource of the given module. @param module: the module @param args: the resource path components @return: absolute path to the resource """ a = get_module_path(module) res = a and opj(a, *args) or False if zipfile.is_zipfile( a +'.zip') : zip = zipfile.ZipFile( a + ".zip") files = ['/'.join(f.split('/')[1:]) for f in zip.namelist()] res = '/'.join(args) if res in files: return opj(a, res) elif os.path.isfile(res): return res return False
|
312e62c10a681aae2ef7dbf9cc76a831f25be8d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/312e62c10a681aae2ef7dbf9cc76a831f25be8d0/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2978,
67,
3146,
12,
2978,
16,
380,
1968,
4672,
3536,
990,
326,
1983,
589,
434,
279,
1058,
434,
326,
864,
1605,
18,
225,
632,
891,
1605,
30,
326,
1605,
632,
891,
833,
30,
326,
1058,
589,
4085,
225,
632,
2463,
30,
4967,
589,
358,
326,
1058,
3536,
279,
273,
336,
67,
2978,
67,
803,
12,
2978,
13,
400,
273,
279,
471,
1061,
78,
12,
69,
16,
380,
1968,
13,
578,
1083,
309,
18823,
18,
291,
67,
4450,
768,
12,
279,
397,
10332,
4450,
6134,
294,
3144,
273,
18823,
18,
29394,
12,
279,
397,
3552,
4450,
7923,
1390,
273,
10228,
2473,
18,
5701,
12,
74,
18,
4939,
2668,
2473,
25146,
21,
30,
5717,
364,
284,
316,
3144,
18,
17808,
5449,
1435,
65,
400,
273,
2023,
18,
5701,
12,
1968,
13,
309,
400,
316,
1390,
30,
327,
1061,
78,
12,
69,
16,
400,
13,
1327,
1140,
18,
803,
18,
1808,
12,
455,
4672,
327,
400,
327,
1083,
565,
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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
326,
1605,
632,
891,
833,
30,
326,
1058,
589,
4085,
225,
632,
2463,
30,
4967,
589,
358,
326,
1058,
3536,
279,
273,
336,
67,
2978,
67,
803,
12,
2978,
13,
400,
273,
279,
471,
1061,
78,
12,
69,
16,
380,
1968,
13,
578,
1083,
309,
18823,
18,
291,
67,
4450,
768,
12,
279,
397,
10332,
4450,
6134,
294,
3144,
273,
18823,
18,
29394,
12,
279,
397,
3552,
4450,
7923,
1390,
273,
10228,
2473,
18,
5701,
12,
74,
18,
4939,
2668,
2473,
25146,
21,
30,
5717,
364,
284,
316,
3144,
2
] |
while map:
|
while client_running and map:
|
def client_loop(): map = client_map read = asyncore.read write = asyncore.write _exception = asyncore._exception loop_failures = 0 while map: try: # The next two lines intentionally don't use # iterators. Other threads can close dispatchers, causeing # the socket map to shrink. r = e = client_map.keys() w = [fd for (fd, obj) in map.items() if obj.writable()] try: r, w, e = select.select(r, w, e, client_timeout) except select.error, err: if err[0] != errno.EINTR: if err[0] == errno.EBADF: # If a connection is closed while we are # calling select on it, we can get a bad # file-descriptor error. We'll check for this # case by looking for entries in r and w that # are not in the socket map. if [fd for fd in r if fd not in client_map]: continue if [fd for fd in w if fd not in client_map]: continue raise else: continue if not (r or w or e): for obj in client_map.itervalues(): if isinstance(obj, Connection): # Send a heartbeat message as a reply to a # non-existent message id. try: obj.send_reply(-1, None) except DisconnectedError: pass global client_timeout_count client_timeout_count += 1 continue for fd in r: obj = map.get(fd) if obj is None: continue read(obj) for fd in w: obj = map.get(fd) if obj is None: continue write(obj) for fd in e: obj = map.get(fd) if obj is None: continue _exception(obj) except: if map: try: client_logger.critical('The ZEO client loop failed.', exc_info=sys.exc_info()) except: pass for fd, obj in map.items(): if obj is client_trigger: continue try: obj.mgr.client.close() except: map.pop(fd, None) try: client_logger.critical("Couldn't close a dispatcher.", exc_info=sys.exc_info()) except: pass
|
96933dd70337c5e1b8f2c2666b8e0ed1fd9358a7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10048/96933dd70337c5e1b8f2c2666b8e0ed1fd9358a7/connection.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1004,
67,
6498,
13332,
852,
273,
1004,
67,
1458,
225,
855,
273,
4326,
479,
18,
896,
1045,
273,
4326,
479,
18,
2626,
389,
4064,
273,
4326,
479,
6315,
4064,
2798,
67,
26268,
273,
374,
225,
1323,
1004,
67,
8704,
471,
852,
30,
775,
30,
225,
468,
1021,
1024,
2795,
2362,
509,
22918,
2727,
1404,
999,
468,
20117,
18,
4673,
7403,
848,
1746,
3435,
414,
16,
4620,
310,
468,
326,
2987,
852,
358,
17697,
18,
436,
273,
425,
273,
1004,
67,
1458,
18,
2452,
1435,
341,
273,
306,
8313,
364,
261,
8313,
16,
1081,
13,
316,
852,
18,
3319,
1435,
309,
1081,
18,
15699,
1435,
65,
225,
775,
30,
436,
16,
341,
16,
425,
273,
2027,
18,
4025,
12,
86,
16,
341,
16,
425,
16,
1004,
67,
4538,
13,
1335,
2027,
18,
1636,
16,
393,
30,
309,
393,
63,
20,
65,
480,
8402,
18,
41,
3217,
54,
30,
309,
393,
63,
20,
65,
422,
8402,
18,
41,
16234,
42,
30,
225,
468,
971,
279,
1459,
353,
4375,
1323,
732,
854,
468,
4440,
2027,
603,
518,
16,
732,
848,
336,
279,
5570,
468,
585,
17,
12628,
555,
18,
225,
1660,
5614,
866,
364,
333,
468,
648,
635,
7849,
364,
3222,
316,
436,
471,
341,
716,
468,
854,
486,
316,
326,
2987,
852,
18,
225,
309,
306,
8313,
364,
5194,
316,
436,
309,
5194,
486,
316,
1004,
67,
1458,
14542,
1324,
309,
306,
8313,
364,
5194,
316,
341,
309,
5194,
486,
316,
1004,
67,
1458,
14542,
1324,
225,
1002,
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,
1004,
67,
6498,
13332,
852,
273,
1004,
67,
1458,
225,
855,
273,
4326,
479,
18,
896,
1045,
273,
4326,
479,
18,
2626,
389,
4064,
273,
4326,
479,
6315,
4064,
2798,
67,
26268,
273,
374,
225,
1323,
1004,
67,
8704,
471,
852,
30,
775,
30,
225,
468,
1021,
1024,
2795,
2362,
509,
22918,
2727,
1404,
999,
468,
20117,
18,
4673,
7403,
848,
1746,
3435,
414,
16,
4620,
310,
468,
326,
2987,
852,
358,
17697,
18,
436,
273,
425,
273,
1004,
67,
1458,
18,
2452,
1435,
341,
273,
306,
8313,
364,
261,
8313,
16,
1081,
13,
316,
852,
18,
3319,
1435,
309,
1081,
18,
15699,
1435,
65,
225,
775,
30,
436,
16,
341,
16,
425,
273,
2027,
18,
4025,
12,
2
] |
class MSSQLDialect(ansisql.ANSIDialect):
|
class MSSQLDialect(ansisql.ANSIDialect):
|
def post_exec(self, engine, proxy, compiled, parameters, **kwargs): """ Turn off the INDENTITY_INSERT mode if it's been activated, and fetch recently inserted IDENTIFY values (works only for one column) """ if getattr(compiled, "isinsert", False): if self.IINSERT: proxy("SET IDENTITY_INSERT %s OFF" % compiled.statement.table.name) self.IINSERT = False elif self.HASIDENT: cursor = proxy("SELECT @@IDENTITY AS lastrowid") row = cursor.fetchone() self._last_inserted_ids = [int(row[0])] # print "LAST ROW ID", self._last_inserted_ids self.HASIDENT = False
|
4a1a2fec8071124775f05bddcdae855d008db8e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/4a1a2fec8071124775f05bddcdae855d008db8e8/mssql.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
4177,
12,
2890,
16,
4073,
16,
2889,
16,
7743,
16,
1472,
16,
2826,
4333,
4672,
3536,
22425,
3397,
326,
2120,
40,
11101,
67,
11356,
1965,
309,
518,
1807,
2118,
14892,
16,
471,
2158,
19907,
9564,
19768,
12096,
924,
261,
18597,
1338,
364,
1245,
1057,
13,
3536,
309,
3869,
12,
19397,
16,
315,
291,
6387,
3113,
1083,
4672,
309,
365,
18,
45,
11356,
30,
2889,
2932,
4043,
1599,
11101,
67,
11356,
738,
87,
17511,
6,
738,
7743,
18,
11516,
18,
2121,
18,
529,
13,
365,
18,
45,
11356,
273,
1083,
1327,
365,
18,
27765,
13355,
30,
3347,
273,
2889,
2932,
4803,
22175,
29413,
5355,
1142,
492,
350,
7923,
1027,
273,
3347,
18,
5754,
476,
1435,
365,
6315,
2722,
67,
6387,
329,
67,
2232,
273,
306,
474,
12,
492,
63,
20,
5717,
65,
468,
1172,
315,
14378,
29589,
1599,
3113,
365,
6315,
2722,
67,
6387,
329,
67,
2232,
365,
18,
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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,
1603,
67,
4177,
12,
2890,
16,
4073,
16,
2889,
16,
7743,
16,
1472,
16,
2826,
4333,
4672,
3536,
22425,
3397,
326,
2120,
40,
11101,
67,
11356,
1965,
309,
518,
1807,
2118,
14892,
16,
471,
2158,
19907,
9564,
19768,
12096,
924,
261,
18597,
1338,
364,
1245,
1057,
13,
3536,
309,
3869,
12,
19397,
16,
315,
291,
6387,
3113,
1083,
4672,
309,
365,
18,
45,
11356,
30,
2889,
2932,
4043,
1599,
11101,
67,
11356,
738,
87,
17511,
6,
738,
7743,
18,
11516,
18,
2121,
18,
529,
13,
365,
18,
45,
11356,
273,
1083,
1327,
365,
18,
27765,
13355,
30,
3347,
273,
2889,
2932,
4803,
22175,
29413,
5355,
1142,
492,
350,
7923,
1027,
273,
3347,
18,
5754,
476,
1435,
365,
6315,
2
] |
def videoEventFilterCb(self, event): self.xlock.acquire() self.overlay.expose() self.xlock.release() return gtk.gdk.FILTER_CONTINUE
|
def backgroundRealizeCb(self, widget): # Create the video window. self.videoWin = gtk.gdk.Window( self.background.window, self.allocation.width, self.allocation.height, gtk.gdk.WINDOW_CHILD, gtk.gdk.EXPOSURE_MASK, gtk.gdk.INPUT_OUTPUT, "", 0, 0)
|
df60b4f9844d03743fe59fc739547c98777f8bcf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/df60b4f9844d03743fe59fc739547c98777f8bcf/videowidget.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5412,
6955,
554,
15237,
12,
2890,
16,
3604,
4672,
468,
1788,
326,
6191,
2742,
18,
365,
18,
9115,
18049,
273,
22718,
18,
75,
2883,
18,
3829,
12,
365,
18,
9342,
18,
5668,
16,
365,
18,
29299,
18,
2819,
16,
365,
18,
29299,
18,
4210,
16,
22718,
18,
75,
2883,
18,
23407,
67,
27043,
16,
22718,
18,
75,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5412,
6955,
554,
15237,
12,
2890,
16,
3604,
4672,
468,
1788,
326,
6191,
2742,
18,
365,
18,
9115,
18049,
273,
22718,
18,
75,
2883,
18,
3829,
12,
365,
18,
9342,
18,
5668,
16,
365,
18,
29299,
18,
2819,
16,
365,
18,
29299,
18,
4210,
16,
22718,
18,
75,
2883,
18,
23407,
67,
27043,
16,
22718,
18,
75,
2883,
18,
2294,
7057,
4830,
67,
11704,
16,
22718,
18,
75,
2883,
18,
15934,
67,
15527,
16,
23453,
374,
16,
374,
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
] |
|
method_display = dict(Order.METHOD_CHOICES)[method]
|
def clean(self): cleaned_data = super(OrderForm, self).clean() method = self.cleaned_data.get('method') if method == Order.METHOD_DELIVERY: address_fields = ['street', 'city', 'state', 'zip'] if not all(cleaned_data.get(field) for field in address_fields): msg = 'You must enter an address for delivery.' raise forms.ValidationError(msg) address = ' '.join(cleaned_data.get(field) for field in address_fields) msg = """We apologize, but it appears you are outside of our delivery area. Please choose one of the other options or call us at %s.""" % self.site.phone try: lon, lat = geocode(address) except: raise forms.ValidationError(msg) point = Point(lon, lat) area = self.site.ordersettings.delivery_area if not area.contains(point): raise forms.ValidationError(msg) lead_time = self.site.ordersettings.delivery_lead_time else: lead_time = self.site.ordersettings.lead_time method_display = dict(Order.METHOD_CHOICES)[method] ready_by = self.cleaned_data.get('ready_by') if ready_by: server_tz = timezone(settings.TIME_ZONE) if ready_by < server_tz.localize(datetime.now() + timedelta(minutes=lead_time)): raise forms.ValidationError('%s orders must be placed %d minutes in advance.' % (method_display, lead_time)) return cleaned_data
|
327d8a95f1cc048f9c08d4474d37d8219c70079c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9903/327d8a95f1cc048f9c08d4474d37d8219c70079c/forms.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
12,
2890,
4672,
9426,
67,
892,
273,
2240,
12,
2448,
1204,
16,
365,
2934,
6200,
1435,
707,
273,
365,
18,
6200,
329,
67,
892,
18,
588,
2668,
2039,
6134,
309,
707,
422,
4347,
18,
5327,
67,
20643,
17529,
30,
1758,
67,
2821,
273,
10228,
22424,
2187,
296,
14240,
2187,
296,
2019,
2187,
296,
4450,
3546,
309,
486,
777,
12,
6200,
329,
67,
892,
18,
588,
12,
1518,
13,
364,
652,
316,
1758,
67,
2821,
4672,
1234,
273,
296,
6225,
1297,
6103,
392,
1758,
364,
7912,
1093,
1002,
10138,
18,
12101,
12,
3576,
13,
1758,
273,
296,
2418,
5701,
12,
6200,
329,
67,
892,
18,
588,
12,
1518,
13,
364,
652,
316,
1758,
67,
2821,
13,
1234,
273,
3536,
3218,
513,
3966,
554,
16,
1496,
518,
14606,
1846,
854,
8220,
434,
3134,
7912,
5091,
18,
7801,
9876,
1245,
434,
326,
1308,
702,
578,
745,
584,
622,
738,
87,
12123,
738,
365,
18,
4256,
18,
10540,
775,
30,
4281,
16,
2516,
273,
8244,
19373,
12,
2867,
13,
1335,
30,
1002,
10138,
18,
12101,
12,
3576,
13,
1634,
273,
4686,
12,
9379,
16,
2516,
13,
5091,
273,
365,
18,
4256,
18,
9972,
278,
1256,
18,
15703,
67,
5036,
309,
486,
5091,
18,
12298,
12,
1153,
4672,
1002,
10138,
18,
12101,
12,
3576,
13,
5871,
67,
957,
273,
365,
18,
4256,
18,
9972,
278,
1256,
18,
15703,
67,
24429,
67,
957,
469,
30,
5871,
67,
957,
273,
365,
18,
4256,
18,
9972,
278,
1256,
18,
24429,
67,
957,
5695,
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,
2721,
12,
2890,
4672,
9426,
67,
892,
273,
2240,
12,
2448,
1204,
16,
365,
2934,
6200,
1435,
707,
273,
365,
18,
6200,
329,
67,
892,
18,
588,
2668,
2039,
6134,
309,
707,
422,
4347,
18,
5327,
67,
20643,
17529,
30,
1758,
67,
2821,
273,
10228,
22424,
2187,
296,
14240,
2187,
296,
2019,
2187,
296,
4450,
3546,
309,
486,
777,
12,
6200,
329,
67,
892,
18,
588,
12,
1518,
13,
364,
652,
316,
1758,
67,
2821,
4672,
1234,
273,
296,
6225,
1297,
6103,
392,
1758,
364,
7912,
1093,
1002,
10138,
18,
12101,
12,
3576,
13,
1758,
273,
296,
2418,
5701,
12,
6200,
329,
67,
892,
18,
588,
12,
1518,
13,
364,
652,
316,
1758,
67,
2821,
13,
1234,
273,
2
] |
|
assert fc[0]>=0 and fc[1]<v.shape[idim], 'Slice index %i exceeds dimension upper boundary (%i).' % (fc,v.shape[idim]-1)
|
assert fc[0]>=0, 'Slice index %i lies below dimension lower boundary (0).' % (fc[0],) assert fc[1]<v.shape[idim], 'Slice index %i exceeds dimension upper boundary (%i).' % (fc[1],v.shape[idim]-1)
|
def getSlice(self,bounds): nc = self.store.getcdf() v = nc.variables[self.varname] dimnames = list(v.dimensions) assert len(bounds)==len(dimnames), 'Number of specified bounds (%i) does not match number of dimensions (%i).' % (len(bounds),len(dimnames)) varslice = self.Slice(dimnames) # Get initial slices, taking into acount specified integer slices and fixed # coordinates, but not float-based slices. boundindices,isfloatslice = [],[] for idim,dimname in enumerate(dimnames): assert bounds[idim].step==None,'Step argument is not yet supported.' fc = self.fixedcoords.get(dimname,None) isfloatslice.append(False) if fc!=None: assert fc[0]>=0 and fc[1]<v.shape[idim], 'Slice index %i exceeds dimension upper boundary (%i).' % (fc,v.shape[idim]-1) boundindices.append(slice(fc[0],fc[1])) elif isinstance(bounds[idim].start,float) or isinstance(bounds[idim].stop,float): boundindices.append(slice(0,v.shape[idim])) isfloatslice[-1] = True else: start,stop,step = bounds[idim].indices(v.shape[idim]) boundindices.append(slice(start,stop)) # Translate slices based on floating point values to slices based on integers. for idim,dimname in enumerate(dimnames): if not isfloatslice[idim]: continue (coords,coords_stag) = self.store.getCoordinates(dimname) if coords==None: return None flstart,flstop = bounds[idim].start,bounds[idim].stop if coords.ndim==1: istart,istop = coords.searchsorted((flstart,flstop)) if istart>0: istart-=1 if istop<len(coords): istop +=1 boundindices[idim] = slice(istart,istop) # Retrieve coordinate values for idim,dimname in enumerate(dimnames): (coords,coords_stag) = self.store.getCoordinates(dimname) if coords==None: return None if coords.ndim==1: start,stop,step = boundindices[idim].indices(v.shape[idim]) varslice.coords [idim] = coords [boundindices[idim]] varslice.coords_stag[idim] = coords_stag[slice(start,stop+1)] else: coorddims = self.store.getCoordinateDimensions(dimname) coordslices = [boundindices[dimnames.index(cd)] for cd in coorddims] coordslices_stag = [slice(s.start,s.stop+1) for s in coordslices] varslice.coords [idim] = coords[tuple(coordslices)] varslice.coords_stag[idim] = coords_stag[tuple(coordslices_stag)]
|
ac0074fc81e79d18ab4d7c30fab50bef77b2b1a1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/381/ac0074fc81e79d18ab4d7c30fab50bef77b2b1a1/data.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
2008,
12,
2890,
16,
10576,
4672,
8194,
273,
365,
18,
2233,
18,
588,
24799,
1435,
225,
331,
273,
8194,
18,
7528,
63,
2890,
18,
1401,
529,
65,
2464,
1973,
273,
666,
12,
90,
18,
14797,
13,
1815,
562,
12,
10576,
13,
631,
1897,
12,
3509,
1973,
3631,
296,
1854,
434,
1269,
4972,
6142,
77,
13,
1552,
486,
845,
1300,
434,
5769,
6142,
77,
14851,
738,
261,
1897,
12,
10576,
3631,
1897,
12,
3509,
1973,
3719,
225,
4153,
2008,
273,
365,
18,
5959,
12,
3509,
1973,
13,
225,
468,
968,
2172,
12390,
16,
13763,
1368,
1721,
592,
1269,
3571,
12390,
471,
5499,
468,
5513,
16,
1496,
486,
1431,
17,
12261,
12390,
18,
2489,
6836,
16,
291,
5659,
6665,
273,
5378,
16,
8526,
364,
612,
381,
16,
3509,
529,
316,
4241,
12,
3509,
1973,
4672,
1815,
4972,
63,
350,
381,
8009,
4119,
631,
7036,
11189,
4160,
1237,
353,
486,
4671,
3260,
1093,
8036,
273,
365,
18,
12429,
9076,
18,
588,
12,
3509,
529,
16,
7036,
13,
353,
5659,
6665,
18,
6923,
12,
8381,
13,
309,
8036,
5,
33,
7036,
30,
1815,
8036,
63,
20,
65,
34,
33,
20,
16,
5411,
296,
5959,
770,
738,
77,
328,
606,
5712,
4968,
2612,
7679,
261,
20,
14851,
738,
261,
7142,
63,
20,
6487,
13,
1815,
8036,
63,
21,
65,
32,
90,
18,
4867,
63,
350,
381,
6487,
296,
5959,
770,
738,
77,
14399,
4968,
3854,
7679,
6142,
77,
14851,
738,
261,
7142,
63,
21,
6487,
90,
18,
4867,
63,
350,
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,
1322,
2008,
12,
2890,
16,
10576,
4672,
8194,
273,
365,
18,
2233,
18,
588,
24799,
1435,
225,
331,
273,
8194,
18,
7528,
63,
2890,
18,
1401,
529,
65,
2464,
1973,
273,
666,
12,
90,
18,
14797,
13,
1815,
562,
12,
10576,
13,
631,
1897,
12,
3509,
1973,
3631,
296,
1854,
434,
1269,
4972,
6142,
77,
13,
1552,
486,
845,
1300,
434,
5769,
6142,
77,
14851,
738,
261,
1897,
12,
10576,
3631,
1897,
12,
3509,
1973,
3719,
225,
4153,
2008,
273,
365,
18,
5959,
12,
3509,
1973,
13,
225,
468,
968,
2172,
12390,
16,
13763,
1368,
1721,
592,
1269,
3571,
12390,
471,
5499,
468,
5513,
16,
1496,
486,
1431,
17,
12261,
12390,
18,
2489,
6836,
16,
291,
5659,
6665,
2
] |
def zipTest(f, compression, srccontents): zip = zipfile.ZipFile(f, "w", compression) zip.write(srcname, "another"+os.extsep+"name") zip.write(srcname, srcname) zip.close()
|
TESTFN2 = TESTFN + "2"
|
def zipTest(f, compression, srccontents): zip = zipfile.ZipFile(f, "w", compression) # Create the ZIP archive zip.write(srcname, "another"+os.extsep+"name") zip.write(srcname, srcname) zip.close() zip = zipfile.ZipFile(f, "r", compression) # Read the ZIP archive readData2 = zip.read(srcname) readData1 = zip.read("another"+os.extsep+"name") zip.close() if readData1 != srccontents or readData2 != srccontents: raise TestFailed, "Written data doesn't equal read data."
|
f51eab5da1d45826c2db27f13ed719eae8fe5c8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f51eab5da1d45826c2db27f13ed719eae8fe5c8a/test_zipfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3144,
4709,
12,
74,
16,
9154,
16,
1705,
3980,
4672,
3144,
273,
18823,
18,
29394,
12,
74,
16,
315,
91,
3113,
9154,
13,
282,
468,
1788,
326,
18277,
5052,
3144,
18,
2626,
12,
4816,
529,
16,
315,
304,
3011,
6,
15,
538,
18,
408,
10814,
9078,
529,
7923,
3144,
18,
2626,
12,
4816,
529,
16,
1705,
529,
13,
3144,
18,
4412,
1435,
225,
3144,
273,
18823,
18,
29394,
12,
74,
16,
315,
86,
3113,
9154,
13,
282,
468,
2720,
326,
18277,
5052,
20913,
22,
273,
3144,
18,
896,
12,
4816,
529,
13,
20913,
21,
273,
3144,
18,
896,
2932,
304,
3011,
6,
15,
538,
18,
408,
10814,
9078,
529,
7923,
3144,
18,
4412,
1435,
225,
309,
20913,
21,
480,
1705,
3980,
578,
20913,
22,
480,
1705,
3980,
30,
1002,
7766,
2925,
16,
315,
12643,
501,
3302,
1404,
3959,
855,
501,
1199,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3144,
4709,
12,
74,
16,
9154,
16,
1705,
3980,
4672,
3144,
273,
18823,
18,
29394,
12,
74,
16,
315,
91,
3113,
9154,
13,
282,
468,
1788,
326,
18277,
5052,
3144,
18,
2626,
12,
4816,
529,
16,
315,
304,
3011,
6,
15,
538,
18,
408,
10814,
9078,
529,
7923,
3144,
18,
2626,
12,
4816,
529,
16,
1705,
529,
13,
3144,
18,
4412,
1435,
225,
3144,
273,
18823,
18,
29394,
12,
74,
16,
315,
86,
3113,
9154,
13,
282,
468,
2720,
326,
18277,
5052,
20913,
22,
273,
3144,
18,
896,
12,
4816,
529,
13,
20913,
21,
273,
3144,
18,
896,
2932,
304,
3011,
6,
15,
538,
18,
408,
10814,
9078,
529,
7923,
3144,
18,
4412,
1435,
225,
309,
20913,
21,
2
] |
(?<=\n)(?=%| (?= (?=</?%) | (?=\$\{) |
|
(?<=\n)(?=%|\ (?=\ (?=</?%) | (?=\$\{) |
|
def __init__(self, **options): super(MyghtyCssLexer, self).__init__(CssLexer, MyghtyLexer, **options)
|
68250587b0ad3b391049169af2bdf9ae7c23ff82 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6148/68250587b0ad3b391049169af2bdf9ae7c23ff82/templates.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
2116,
4672,
2240,
12,
49,
4338,
647,
93,
7359,
13356,
16,
365,
2934,
972,
2738,
972,
12,
7359,
13356,
16,
490,
4338,
647,
93,
13356,
16,
2826,
2116,
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,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
2116,
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
] |
dst = os.path.join(os.path.basename(path)) self.LOG.info(' to "%s"' % (dst,))
|
dst = os.path.join(dst, os.path.basename(path)) self.LOG.info(" to %s" % (pretty_path(dst),))
|
def guarded(call, *args): "Helper for filesystem calls." self.LOG.debug('%s("%s")' % ( call.__name__, '", "'.join(args), )) if not self.options.dry_run: try: call(*args) except EnvironmentError, exc: self.fatal('%s("%s") failed [%s]' % ( call.__name__, '", "'.join(args), exc, ))
|
7be5c896b244abd96852611847844ab3d05894ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4865/7be5c896b244abd96852611847844ab3d05894ff/rtmv.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3058,
17212,
12,
1991,
16,
380,
1968,
4672,
315,
2276,
364,
6496,
4097,
1199,
365,
18,
4842,
18,
4148,
29909,
87,
27188,
87,
31241,
738,
261,
745,
16186,
529,
972,
16,
19197,
2491,
18,
5701,
12,
1968,
3631,
8623,
309,
486,
365,
18,
2116,
18,
25011,
67,
2681,
30,
775,
30,
745,
30857,
1968,
13,
1335,
7518,
668,
16,
3533,
30,
365,
18,
30709,
29909,
87,
27188,
87,
7923,
2535,
9799,
87,
3864,
738,
261,
745,
16186,
529,
972,
16,
19197,
2491,
18,
5701,
12,
1968,
3631,
3533,
16,
8623,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3058,
17212,
12,
1991,
16,
380,
1968,
4672,
315,
2276,
364,
6496,
4097,
1199,
365,
18,
4842,
18,
4148,
29909,
87,
27188,
87,
31241,
738,
261,
745,
16186,
529,
972,
16,
19197,
2491,
18,
5701,
12,
1968,
3631,
8623,
309,
486,
365,
18,
2116,
18,
25011,
67,
2681,
30,
775,
30,
745,
30857,
1968,
13,
1335,
7518,
668,
16,
3533,
30,
365,
18,
30709,
29909,
87,
27188,
87,
7923,
2535,
9799,
87,
3864,
738,
261,
745,
16186,
529,
972,
16,
19197,
2491,
18,
5701,
12,
1968,
3631,
3533,
16,
8623,
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
] |
-sort: all equal
|
=sort: all equal
|
def tabulate(r): """Tabulate sort speed for lists of various sizes. The sizes are 2**i for i in r (the argument, a list). The output displays i, 2**i, and the time to sort arrays of 2**i floating point numbers with the following properties: *sort: random data \sort: descending data /sort: ascending data ~sort: many duplicates -sort: all equal !sort: worst case scenario """ cases = ("*sort", "\\sort", "/sort", "~sort", "-sort", "!sort") fmt = ("%2s %6s" + " %6s"*len(cases)) print fmt % (("i", "2**i") + cases) for i in r: n = 1<<i L = randrange(n) ##assert len(L) == n print "%2d %6d" % (i, n), fl() doit(L) # *sort L.reverse() doit(L) # \sort doit(L) # /sort if n > 4: del L[4:] L = L*(n/4) L = map(lambda x: --x, L) doit(L) # ~sort del L L = map(abs, [-0.5]*n) doit(L) # -sort L = range(n/2-1, -1, -1) L[len(L):] = range(n/2) doit(L) # !sort print
|
8b6ec79b74284873696b24ab979fb1cb579b86f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8b6ec79b74284873696b24ab979fb1cb579b86f8/sortperf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3246,
6243,
12,
86,
4672,
3536,
5661,
6243,
1524,
8632,
364,
6035,
434,
11191,
8453,
18,
225,
1021,
8453,
854,
576,
636,
77,
364,
277,
316,
436,
261,
5787,
1237,
16,
279,
666,
2934,
225,
1021,
876,
22461,
277,
16,
576,
636,
77,
16,
471,
326,
813,
358,
1524,
5352,
434,
576,
636,
77,
13861,
1634,
5600,
598,
326,
3751,
1790,
30,
225,
380,
3804,
30,
2744,
501,
521,
3804,
30,
17044,
501,
342,
3804,
30,
13976,
501,
4871,
3804,
30,
4906,
11211,
273,
3804,
30,
777,
3959,
401,
3804,
30,
22952,
648,
10766,
225,
3536,
6088,
273,
7566,
14,
3804,
3113,
8422,
3804,
3113,
2206,
3804,
3113,
19910,
3804,
3113,
3701,
3804,
3113,
17528,
3804,
7923,
1325,
273,
7566,
9,
22,
87,
738,
26,
87,
6,
397,
315,
738,
26,
87,
6,
14,
1897,
12,
22186,
3719,
1172,
1325,
738,
261,
2932,
77,
3113,
315,
22,
636,
77,
7923,
397,
6088,
13,
364,
277,
316,
436,
30,
290,
273,
404,
17685,
77,
511,
273,
5605,
3676,
12,
82,
13,
7541,
11231,
562,
12,
48,
13,
422,
290,
1172,
2213,
22,
72,
738,
26,
72,
6,
738,
261,
77,
16,
290,
3631,
1183,
1435,
741,
305,
12,
48,
13,
468,
380,
3804,
511,
18,
9845,
1435,
741,
305,
12,
48,
13,
468,
521,
3804,
741,
305,
12,
48,
13,
468,
342,
3804,
309,
290,
405,
1059,
30,
1464,
511,
63,
24,
26894,
511,
273,
511,
21556,
82,
19,
24,
13,
511,
273,
852,
12,
14661,
619,
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,
3246,
6243,
12,
86,
4672,
3536,
5661,
6243,
1524,
8632,
364,
6035,
434,
11191,
8453,
18,
225,
1021,
8453,
854,
576,
636,
77,
364,
277,
316,
436,
261,
5787,
1237,
16,
279,
666,
2934,
225,
1021,
876,
22461,
277,
16,
576,
636,
77,
16,
471,
326,
813,
358,
1524,
5352,
434,
576,
636,
77,
13861,
1634,
5600,
598,
326,
3751,
1790,
30,
225,
380,
3804,
30,
2744,
501,
521,
3804,
30,
17044,
501,
342,
3804,
30,
13976,
501,
4871,
3804,
30,
4906,
11211,
273,
3804,
30,
777,
3959,
401,
3804,
30,
22952,
648,
10766,
225,
3536,
6088,
273,
7566,
14,
3804,
3113,
8422,
3804,
3113,
2206,
3804,
3113,
19910,
3804,
3113,
3701,
3804,
3113,
17528,
3804,
7923,
1325,
2
] |
def sync_readline (self, line): assert None == self.select_trigger_log (line)
|
def sync_stdin (self): self.sync_stderr ('>>> ') line = sys.stdin.readline ()[:-1] if line == '': self.select_trigger ((self.sync_prompt, ())) return
|
9e54825d994516066d14c27fc5298d0d679a0fa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/9e54825d994516066d14c27fc5298d0d679a0fa1/sync_stdio.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
67,
21772,
261,
2890,
4672,
365,
18,
8389,
67,
11241,
7707,
23012,
8624,
980,
273,
2589,
18,
21772,
18,
896,
1369,
1832,
10531,
17,
21,
65,
309,
980,
422,
875,
30,
365,
18,
4025,
67,
10668,
14015,
2890,
18,
8389,
67,
13325,
16,
1832,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
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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11241,
7707,
23012,
8624,
980,
273,
2589,
18,
21772,
18,
896,
1369,
1832,
10531,
17,
21,
65,
309,
980,
422,
875,
30,
365,
18,
4025,
67,
10668,
14015,
2890,
18,
8389,
67,
13325,
16,
1832,
3719,
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
] |
|
equivNumericTypes.append(UINT16) equivNumericTypes.append(UINT32)
|
def eol(n=1): printf("%s" % chr(10) * n)
|
1b242d94323b90b8ea50866cb613de74bd1ed7ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9106/1b242d94323b90b8ea50866cb613de74bd1ed7ac/SD.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14775,
12,
82,
33,
21,
4672,
12710,
27188,
87,
6,
738,
4513,
12,
2163,
13,
380,
290,
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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0,
0,
0,
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,
14775,
12,
82,
33,
21,
4672,
12710,
27188,
87,
6,
738,
4513,
12,
2163,
13,
380,
290,
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,
-100,
-100,
-100
] |
|
normalUri = trueUriPrefix + uriSuffix
|
normalUri = os.path.normpath(os.path.join(trueUriPrefix, uriSuffix))
|
def normalizeImgUri(uriFromMetafile, trueCombinedUri, combinedUriFromMetafile): # get the "wrong" prefix (in mappedUriPrefix) trueUriPrefix, mappedUriPrefix, sfx = Path.getCommonSuffix(trueCombinedUri, combinedUriFromMetafile) # ...and strip it from contained image uri, to get a correct suffix (in uriSuffix) pre, mappedUriSuffix, uriSuffix = Path.getCommonPrefix(mappedUriPrefix, uriFromMetafile) # ...then compose the correct prefix with the correct suffix normalUri = trueUriPrefix + uriSuffix return normalUri
|
f091ad523d23e2495476c80e0939b102b6d54921 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/f091ad523d23e2495476c80e0939b102b6d54921/Generator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
12804,
3006,
12,
1650,
1265,
2781,
768,
16,
638,
27994,
3006,
16,
8224,
3006,
1265,
2781,
768,
4672,
468,
336,
326,
315,
21530,
6,
1633,
261,
267,
5525,
3006,
2244,
13,
638,
3006,
2244,
16,
5525,
3006,
2244,
16,
9033,
92,
273,
2666,
18,
588,
6517,
5791,
12,
3767,
27994,
3006,
16,
8224,
3006,
1265,
2781,
768,
13,
468,
1372,
464,
2569,
518,
628,
7542,
1316,
2003,
16,
358,
336,
279,
3434,
3758,
261,
267,
2003,
5791,
13,
675,
16,
5525,
3006,
5791,
16,
2003,
5791,
273,
2666,
18,
588,
6517,
2244,
12,
13654,
3006,
2244,
16,
2003,
1265,
2781,
768,
13,
468,
1372,
15991,
11458,
326,
3434,
1633,
598,
326,
3434,
3758,
2212,
3006,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
3767,
3006,
2244,
16,
2003,
5791,
3719,
327,
2212,
3006,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
12804,
3006,
12,
1650,
1265,
2781,
768,
16,
638,
27994,
3006,
16,
8224,
3006,
1265,
2781,
768,
4672,
468,
336,
326,
315,
21530,
6,
1633,
261,
267,
5525,
3006,
2244,
13,
638,
3006,
2244,
16,
5525,
3006,
2244,
16,
9033,
92,
273,
2666,
18,
588,
6517,
5791,
12,
3767,
27994,
3006,
16,
8224,
3006,
1265,
2781,
768,
13,
468,
1372,
464,
2569,
518,
628,
7542,
1316,
2003,
16,
358,
336,
279,
3434,
3758,
261,
267,
2003,
5791,
13,
675,
16,
5525,
3006,
5791,
16,
2003,
5791,
273,
2666,
18,
588,
6517,
2244,
12,
13654,
3006,
2244,
16,
2003,
1265,
2781,
768,
13,
468,
1372,
15991,
11458,
326,
3434,
1633,
598,
326,
3434,
3758,
2212,
3006,
273,
1140,
2
] |
class IEEEOperationsTestCase(unittest.TestCase): if float.__getformat__("double").startswith("IEEE"): def test_double_infinity(self): big = 4.8e159 pro = big*big self.assertEquals(repr(pro), 'inf') sqr = big**2 self.assertEquals(repr(sqr), 'inf')
|
def test_float_specials_do_unpack(self): for fmt, data in [('>f', BE_FLOAT_INF), ('>f', BE_FLOAT_NAN), ('<f', LE_FLOAT_INF), ('<f', LE_FLOAT_NAN)]: struct.unpack(fmt, data)
|
348dc88097412cc229254f20f2759ce4cd192261 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/348dc88097412cc229254f20f2759ce4cd192261/test_float.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5659,
67,
9371,
87,
67,
2896,
67,
17309,
12,
2890,
4672,
364,
1325,
16,
501,
316,
306,
2668,
34,
74,
2187,
9722,
67,
15640,
67,
19212,
3631,
7707,
34,
74,
2187,
9722,
67,
15640,
67,
50,
1258,
3631,
7707,
32,
74,
2187,
5380,
67,
15640,
67,
19212,
3631,
7707,
32,
74,
2187,
5380,
67,
15640,
67,
50,
1258,
13,
14542,
1958,
18,
17309,
12,
8666,
16,
501,
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,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
15640,
67,
50,
1258,
3631,
7707,
32,
74,
2187,
5380,
67,
15640,
67,
19212,
3631,
7707,
32,
74,
2187,
5380,
67,
15640,
67,
50,
1258,
13,
14542,
1958,
18,
17309,
12,
8666,
16,
501,
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
] |
|
sage: P1xP1 = ToricVariety(fan) sage: P1xP1.inject_coefficients() The last command does nothing, since ``P1xP1`` is defined over `\QQ`. Let's construct a toric variety over a more complicated field::
|
def inject_coefficients(self, scope=None, verbose=True): r""" Inject generators of the base field of ``self`` into ``scope``.
|
bc08271a149642c16f0a0e051f10fcd76466364e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/bc08271a149642c16f0a0e051f10fcd76466364e/toric_variety.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4590,
67,
8075,
12344,
12,
2890,
16,
2146,
33,
7036,
16,
3988,
33,
5510,
4672,
436,
8395,
20085,
13327,
434,
326,
1026,
652,
434,
12176,
2890,
10335,
1368,
12176,
4887,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4590,
67,
8075,
12344,
12,
2890,
16,
2146,
33,
7036,
16,
3988,
33,
5510,
4672,
436,
8395,
20085,
13327,
434,
326,
1026,
652,
434,
12176,
2890,
10335,
1368,
12176,
4887,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
print "ERROR:",result['Message'] print "Setup:", result['Value']['Setup'] print "DIRAC version:",result['Value']['DIRAC'] if result['Value']['Extensions']: for e,v in result['Value']['Extensions'].items(): print "%s version" % e,v else: print "Unknown option:",option def getLog(self,argss):
|
print "ERROR:", result['Message'] else: print print "Setup:", result['Value']['Setup'] print "DIRAC version:", result['Value']['DIRAC'] if result['Value']['Extensions']: for e, v in result['Value']['Extensions'].items(): print "%s version" % e, v else: print "Unknown option:", option def getLog( self, argss ):
|
def do_show(self,args): """ Add a record to the File Catalog usage: show software - show components for which software is available show installed - show components installed in the host show status - show status of the installed components show database - show the status of the databases show mysql - show the status of the MySQL server show log <system> <service|agent> show info - show version of software and setup """ argss = args.split() option = argss[0] del argss[0] if option == 'software': client = SystemAdministratorClient(self.host) result = client.getSoftwareComponents() if not result['OK']: print "ERROR:",result['Message'] else: serviceCount = 0 agentCount = 0 for compType in result['Value']: for system in result['Value'][compType]: for component in result['Value'][compType][system]: print compType.ljust(8),system.ljust(28),component.ljust(28) if compType == 'Services': serviceCount += 1 if compType == 'Agents': agentCount += 1 print "Total: %d services, %d agents" % (serviceCount,agentCount) elif option == 'installed': client = SystemAdministratorClient(self.host) result = client.getSetupComponents() if not result['OK']: print "ERROR:",result['Message'] else: serviceCount = 0 agentCount = 0 for compType in result['Value']: for system in result['Value'][compType]: for component in result['Value'][compType][system]: print compType.ljust(8),system.ljust(28),component.ljust(28) if compType == 'Services': serviceCount += 1 if compType == 'Agents': agentCount += 1 print "Total: %d services, %d agents" % (serviceCount,agentCount) elif option == 'status': client = SystemAdministratorClient(self.host) result = client.getOverallStatus() if not result['OK']: print "ERROR:",result['Message'] else: rDict = result['Value'] print " System",' '*20,'Name',' '*5,'Type',' '*23,'Setup Installed Runit Uptime PID' print '-'*116 for compType in rDict: for system in rDict[compType]: for component in rDict[compType][system]: if rDict[compType][system][component]['Installed']: print system.ljust(28),component.ljust(28),compType.lower()[:-1].ljust(7), if rDict[compType][system][component]['Setup']: print 'SetUp'.rjust(12), else: print 'NotSetup'.rjust(12), if rDict[compType][system][component]['Installed']: print 'Installed'.rjust(12), else: print 'NotInstalled'.rjust(12), print str(rDict[compType][system][component]['RunitStatus']).ljust(7), print str(rDict[compType][system][component]['Timeup']).rjust(7), print str(rDict[compType][system][component]['PID']).rjust(8), print elif option == 'database' or option == 'databases': client = SystemAdministratorClient(self.host) result = client.getDatabases(self.rootPwd) if not result['OK']: print "ERROR:",result['Message'] return if result.has_key('MySQLPassword'): self.rootPwd = result['MySQLPassword'] resultSW = client.getSoftwareDatabases() if not resultSW['OK']: print "ERROR:",resultSW['Message'] return sw = resultSW['Value'] installed = result['Value'] print for db in sw: if db in installed: print db.rjust(25),': Installed' else: print db.rjust(25),': Not installed' if not sw: print "No database found" elif option == 'mysql': client = SystemAdministratorClient(self.host) result = client.getMySQLStatus() if not result['OK']: print "ERROR:",result['Message'] elif result['Value']: for par,value in result['Value'].items(): print par.rjust(28),':',value else: print "No MySQL database found" elif option == "log": self.getLog(argss) elif option == "info": client = SystemAdministratorClient(self.host) result = client.getInfo() if not result['OK']: print "ERROR:",result['Message'] print "Setup:", result['Value']['Setup'] print "DIRAC version:",result['Value']['DIRAC'] if result['Value']['Extensions']: for e,v in result['Value']['Extensions'].items(): print "%s version" % e,v else: print "Unknown option:",option
|
b68208f4ea74e3c61aead9e641ff73054212c46c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b68208f4ea74e3c61aead9e641ff73054212c46c/SystemAdministratorClientCLI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4500,
12,
2890,
16,
1968,
4672,
3536,
1436,
279,
1409,
358,
326,
1387,
14953,
225,
4084,
30,
225,
2405,
17888,
1377,
300,
2405,
4085,
364,
1492,
17888,
353,
2319,
2405,
5876,
377,
300,
2405,
4085,
5876,
316,
326,
1479,
2405,
1267,
3639,
300,
2405,
1267,
434,
326,
5876,
4085,
2405,
2063,
1377,
300,
2405,
326,
1267,
434,
326,
16358,
2405,
7219,
540,
300,
2405,
326,
1267,
434,
326,
13485,
1438,
2405,
613,
411,
4299,
34,
411,
3278,
96,
5629,
34,
2405,
1123,
565,
300,
2405,
1177,
434,
17888,
471,
3875,
3536,
225,
833,
87,
273,
833,
18,
4939,
1435,
1456,
273,
833,
87,
63,
20,
65,
1464,
833,
87,
63,
20,
65,
309,
1456,
422,
296,
9269,
2726,
4278,
1004,
273,
2332,
4446,
14207,
1227,
12,
2890,
18,
2564,
13,
563,
273,
1004,
18,
588,
21742,
7171,
1435,
309,
486,
563,
3292,
3141,
3546,
30,
1172,
315,
3589,
2773,
16,
2088,
3292,
1079,
3546,
469,
30,
1156,
1380,
273,
374,
4040,
1380,
273,
374,
364,
1161,
559,
316,
563,
3292,
620,
3546,
30,
364,
2619,
316,
563,
3292,
620,
3546,
63,
2919,
559,
14542,
364,
1794,
316,
563,
3292,
620,
3546,
63,
2919,
559,
6362,
4299,
14542,
1172,
1161,
559,
18,
80,
3732,
12,
28,
3631,
4299,
18,
80,
3732,
12,
6030,
3631,
4652,
18,
80,
3732,
12,
6030,
13,
309,
1161,
559,
422,
296,
5676,
4278,
1156,
1380,
1011,
404,
309,
1161,
559,
422,
296,
23400,
4278,
4040,
1380,
1011,
404,
1172,
315,
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,
741,
67,
4500,
12,
2890,
16,
1968,
4672,
3536,
1436,
279,
1409,
358,
326,
1387,
14953,
225,
4084,
30,
225,
2405,
17888,
1377,
300,
2405,
4085,
364,
1492,
17888,
353,
2319,
2405,
5876,
377,
300,
2405,
4085,
5876,
316,
326,
1479,
2405,
1267,
3639,
300,
2405,
1267,
434,
326,
5876,
4085,
2405,
2063,
1377,
300,
2405,
326,
1267,
434,
326,
16358,
2405,
7219,
540,
300,
2405,
326,
1267,
434,
326,
13485,
1438,
2405,
613,
411,
4299,
34,
411,
3278,
96,
5629,
34,
2405,
1123,
565,
300,
2405,
1177,
434,
17888,
471,
3875,
3536,
225,
833,
87,
273,
833,
18,
4939,
1435,
1456,
273,
833,
87,
63,
20,
65,
1464,
833,
87,
63,
20,
65,
309,
1456,
422,
296,
2
] |
while line: if len(line) > 0: self.logger.debug('< %s' % line[:-1]) output.append(line[:-1]) line = runpipe.fromchild.readline() cmdstat = runpipe.poll()
|
cmdstat = -1 while cmdstat == -1: while line: if len(line) > 0: self.logger.debug('< %s' % line[:-1]) output.append(line[:-1]) line = runpipe.fromchild.readline() cmdstat = runpipe.poll()
|
def run(self, command): '''Run a command in a pipe dealing with stdout buffer overloads''' self.logger.debug('> %s' % command)
|
984698527dd76d52bebcf18fb4695f214367928c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/984698527dd76d52bebcf18fb4695f214367928c/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1296,
4672,
9163,
1997,
279,
1296,
316,
279,
6010,
21964,
598,
3909,
1613,
1879,
17135,
26418,
365,
18,
4901,
18,
4148,
2668,
34,
738,
87,
11,
738,
1296,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1296,
4672,
9163,
1997,
279,
1296,
316,
279,
6010,
21964,
598,
3909,
1613,
1879,
17135,
26418,
365,
18,
4901,
18,
4148,
2668,
34,
738,
87,
11,
738,
1296,
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
] |
log.info(" compare");
|
log.debug(" compare");
|
def compare(self, expect, result): match = {}
|
035075459b24be1f7ca9d4ad3495e3f6b4ba18d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/035075459b24be1f7ca9d4ad3495e3f6b4ba18d5/attr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
12,
2890,
16,
4489,
16,
563,
4672,
845,
273,
2618,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
12,
2890,
16,
4489,
16,
563,
4672,
845,
273,
2618,
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
] |
sub_message.SetInParent()
|
sub_message.SetInParent()
|
def _MergeField(tokenizer, message): """Merges a single protocol message field into a message. Args: tokenizer: A tokenizer to parse the field name and values. message: A protocol message to record the data. Raises: ParseError: In case of ASCII parsing problems. """ message_descriptor = message.DESCRIPTOR if tokenizer.TryConsume('['): name = [tokenizer.ConsumeIdentifier()] while tokenizer.TryConsume('.'): name.append(tokenizer.ConsumeIdentifier()) name = '.'.join(name) if not message_descriptor.is_extendable: raise tokenizer.ParseErrorPreviousToken( 'Message type "%s" does not have extensions.' % message_descriptor.full_name) field = message.Extensions._FindExtensionByName(name) if not field: raise tokenizer.ParseErrorPreviousToken( 'Extension "%s" not registered.' % name) elif message_descriptor != field.containing_type: raise tokenizer.ParseErrorPreviousToken( 'Extension "%s" does not extend message type "%s".' % ( name, message_descriptor.full_name)) tokenizer.Consume(']') else: name = tokenizer.ConsumeIdentifier() field = message_descriptor.fields_by_name.get(name, None) # Group names are expected to be capitalized as they appear in the # .proto file, which actually matches their type names, not their field # names. if not field: field = message_descriptor.fields_by_name.get(name.lower(), None) if field and field.type != descriptor.FieldDescriptor.TYPE_GROUP: field = None if (field and field.type == descriptor.FieldDescriptor.TYPE_GROUP and field.message_type.name != name): field = None if not field: raise tokenizer.ParseErrorPreviousToken( 'Message type "%s" has no field named "%s".' % ( message_descriptor.full_name, name)) if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE: tokenizer.TryConsume(':') if tokenizer.TryConsume('<'): end_token = '>' else: tokenizer.Consume('{') end_token = '}' if field.label == descriptor.FieldDescriptor.LABEL_REPEATED: if field.is_extension: sub_message = message.Extensions[field].add() else: sub_message = getattr(message, field.name).add() else: if field.is_extension: sub_message = message.Extensions[field] else: sub_message = getattr(message, field.name) sub_message.SetInParent() while not tokenizer.TryConsume(end_token): if tokenizer.AtEnd(): raise tokenizer.ParseErrorPreviousToken('Expected "%s".' % (end_token)) _MergeField(tokenizer, sub_message) else: _MergeScalarField(tokenizer, message, field)
|
949e5f8b62bdd7cf8dbfc47dfeb690d77a004e86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10745/949e5f8b62bdd7cf8dbfc47dfeb690d77a004e86/text_format.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6786,
974,
12,
2316,
1824,
16,
883,
4672,
3536,
18725,
279,
2202,
1771,
883,
652,
1368,
279,
883,
18,
225,
6634,
30,
10123,
30,
432,
10123,
358,
1109,
326,
652,
508,
471,
924,
18,
883,
30,
432,
1771,
883,
358,
1409,
326,
501,
18,
225,
20497,
30,
17372,
30,
657,
648,
434,
11768,
5811,
9688,
18,
3536,
883,
67,
12628,
273,
883,
18,
1639,
27689,
309,
10123,
18,
7833,
19253,
2668,
3292,
4672,
508,
273,
306,
2316,
1824,
18,
19253,
3004,
1435,
65,
1323,
10123,
18,
7833,
19253,
2668,
1093,
4672,
508,
18,
6923,
12,
2316,
1824,
18,
19253,
3004,
10756,
508,
273,
2611,
18,
5701,
12,
529,
13,
225,
309,
486,
883,
67,
12628,
18,
291,
67,
14313,
429,
30,
1002,
10123,
18,
21004,
8351,
1345,
12,
296,
1079,
618,
2213,
87,
6,
1552,
486,
1240,
4418,
1093,
738,
883,
67,
12628,
18,
2854,
67,
529,
13,
652,
273,
883,
18,
7513,
6315,
3125,
3625,
5911,
12,
529,
13,
309,
486,
652,
30,
1002,
10123,
18,
21004,
8351,
1345,
12,
296,
3625,
2213,
87,
6,
486,
4104,
1093,
738,
508,
13,
1327,
883,
67,
12628,
480,
652,
18,
1213,
3280,
67,
723,
30,
1002,
10123,
18,
21004,
8351,
1345,
12,
296,
3625,
2213,
87,
6,
1552,
486,
2133,
883,
618,
2213,
87,
12013,
738,
261,
508,
16,
883,
67,
12628,
18,
2854,
67,
529,
3719,
10123,
18,
19253,
2668,
3864,
13,
469,
30,
508,
273,
10123,
18,
19253,
3004,
1435,
652,
273,
883,
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,
6786,
974,
12,
2316,
1824,
16,
883,
4672,
3536,
18725,
279,
2202,
1771,
883,
652,
1368,
279,
883,
18,
225,
6634,
30,
10123,
30,
432,
10123,
358,
1109,
326,
652,
508,
471,
924,
18,
883,
30,
432,
1771,
883,
358,
1409,
326,
501,
18,
225,
20497,
30,
17372,
30,
657,
648,
434,
11768,
5811,
9688,
18,
3536,
883,
67,
12628,
273,
883,
18,
1639,
27689,
309,
10123,
18,
7833,
19253,
2668,
3292,
4672,
508,
273,
306,
2316,
1824,
18,
19253,
3004,
1435,
65,
1323,
10123,
18,
7833,
19253,
2668,
1093,
4672,
508,
18,
6923,
12,
2316,
1824,
18,
19253,
3004,
10756,
508,
273,
2611,
18,
5701,
12,
529,
13,
225,
309,
486,
883,
67,
12628,
18,
291,
2
] |
__all__ = ['dict', 'inet_pton', 'inet_ntop', 'isinstance']
|
__all__ = ['dict', 'inet_pton', 'inet_ntop', 'isinstance', 'True', 'False', 'bool']
|
def isinstance(object, class_or_type_or_tuple): if type(class_or_type_or_tuple) == types.TupleType: for t in class_or_type_or_tuple: if __builtin__.isinstance(object, t): return 1 return 0 else: return __builtin__.isinstance(object, class_or_type_or_tuple)
|
f64711af541c49c019649b0510030fd740ad27e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f64711af541c49c019649b0510030fd740ad27e0/compat.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1549,
12,
1612,
16,
667,
67,
280,
67,
723,
67,
280,
67,
8052,
4672,
309,
618,
12,
1106,
67,
280,
67,
723,
67,
280,
67,
8052,
13,
422,
1953,
18,
9038,
559,
30,
364,
268,
316,
667,
67,
280,
67,
723,
67,
280,
67,
8052,
30,
309,
1001,
24553,
25648,
291,
1336,
12,
1612,
16,
268,
4672,
327,
404,
327,
374,
469,
30,
327,
1001,
24553,
25648,
291,
1336,
12,
1612,
16,
667,
67,
280,
67,
723,
67,
280,
67,
8052,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1549,
12,
1612,
16,
667,
67,
280,
67,
723,
67,
280,
67,
8052,
4672,
309,
618,
12,
1106,
67,
280,
67,
723,
67,
280,
67,
8052,
13,
422,
1953,
18,
9038,
559,
30,
364,
268,
316,
667,
67,
280,
67,
723,
67,
280,
67,
8052,
30,
309,
1001,
24553,
25648,
291,
1336,
12,
1612,
16,
268,
4672,
327,
404,
327,
374,
469,
30,
327,
1001,
24553,
25648,
291,
1336,
12,
1612,
16,
667,
67,
280,
67,
723,
67,
280,
67,
8052,
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
] |
None,
|
# typedef void (*lc_callback)(uint32_t, uint32_t, uint32_t, void*);
|
252469d959d952d07c6c2b796be96c97a8628abc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3138/252469d959d952d07c6c2b796be96c97a8628abc/libconcord.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
618,
536,
918,
261,
14,
17704,
67,
3394,
21433,
11890,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
918,
14,
1769,
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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769,
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
] |
|
result=os.popen('exiftool.exe -n -GPSLatitude -GPSLatitudeRef "%s" ' % self.picPath).read().split("\n")
|
result=os.popen('%s -n -GPSLatitude -GPSLatitudeRef "%s" ' % (self.exifcmd, self.picPath)).read().split("\n")
|
def readLatitude(self): """read the latitute tag is available and return a float""" result=os.popen('exiftool.exe -n -GPSLatitude -GPSLatitudeRef "%s" ' % self.picPath).read().split("\n") print result if len(result)>1: latitude=float(result[0].split(":")[1]) print "latitude= ",latitude return latitude else: return "None"
|
e7a9683d9553c4ca742eb3b4829d1cdc566d9a89 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11453/e7a9683d9553c4ca742eb3b4829d1cdc566d9a89/geoexif.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
16890,
12,
2890,
4672,
3536,
896,
326,
2516,
305,
624,
1047,
353,
2319,
471,
327,
279,
1431,
8395,
563,
33,
538,
18,
84,
3190,
29909,
87,
300,
82,
300,
9681,
4559,
270,
3540,
300,
9681,
4559,
270,
3540,
1957,
225,
2213,
87,
6,
225,
296,
738,
261,
2890,
18,
338,
430,
4172,
16,
365,
18,
20003,
743,
13,
2934,
896,
7675,
4939,
31458,
82,
7923,
1172,
563,
309,
562,
12,
2088,
13,
34,
21,
30,
8904,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
16890,
12,
2890,
4672,
3536,
896,
326,
2516,
305,
624,
1047,
353,
2319,
471,
327,
279,
1431,
8395,
563,
33,
538,
18,
84,
3190,
29909,
87,
300,
82,
300,
9681,
4559,
270,
3540,
300,
9681,
4559,
270,
3540,
1957,
225,
2213,
87,
6,
225,
296,
738,
261,
2890,
18,
338,
430,
4172,
16,
365,
18,
20003,
743,
13,
2934,
896,
7675,
4939,
31458,
82,
7923,
1172,
563,
309,
562,
12,
2088,
13,
34,
21,
30,
8904,
33,
5659,
12,
2088,
63,
20,
8009,
4939,
2932,
2773,
25146,
21,
5717,
1172,
315,
16967,
33,
3104,
16967,
327,
8904,
469,
30,
327,
315,
7036,
6,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if data is None: data = self._getDefaultValues(isGroup)
|
defaults = self._getDefaultValues(isGroup) if not data: data = {} for key, val in defaults.items(): if not data.has_key(key): data[key] = val
|
def getPropertiesForUser(self, user, request=None): """Get property values for a user or group. Returns a dictionary of values or a PropertySheet.
|
3120e0574b472e701f43bc9172afffe37d2eb4ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12230/3120e0574b472e701f43bc9172afffe37d2eb4ab/property.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9392,
19894,
12,
2890,
16,
729,
16,
590,
33,
7036,
4672,
3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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9392,
19894,
12,
2890,
16,
729,
16,
590,
33,
7036,
4672,
3536,
967,
1272,
924,
364,
279,
729,
578,
1041,
18,
2860,
279,
3880,
434,
924,
578,
279,
4276,
8229,
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
] |
self.fields = dict.fromkeys(FIELDS, "")
|
self.fields = dict.fromkeys(FIELDS, '')
|
def __init__(self, entry=None, **kwargs): """If `entry` is given, copy all fields from `entry`. Any keyword arguments are regarded as field values, and are stored if no other value has been given""" self.parent = None self.fields = dict.fromkeys(FIELDS, "") if entry: # copy constructor self.fields.update(entry) for k in kwargs: self.setdefault(k, kwargs[k])
|
914907c5f1149ba5eb599c36f071c23d079f8e90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/914907c5f1149ba5eb599c36f071c23d079f8e90/phonebook.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1241,
33,
7036,
16,
2826,
4333,
4672,
3536,
2047,
1375,
4099,
68,
353,
864,
16,
1610,
777,
1466,
628,
1375,
4099,
8338,
5502,
4932,
1775,
854,
960,
17212,
487,
652,
924,
16,
471,
854,
4041,
309,
1158,
1308,
460,
711,
2118,
864,
8395,
365,
18,
2938,
273,
599,
365,
18,
2821,
273,
2065,
18,
2080,
2452,
12,
12683,
16,
28707,
309,
1241,
30,
468,
1610,
3885,
365,
18,
2821,
18,
2725,
12,
4099,
13,
364,
417,
316,
1205,
30,
365,
18,
542,
1886,
12,
79,
16,
1205,
63,
79,
5717,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1241,
33,
7036,
16,
2826,
4333,
4672,
3536,
2047,
1375,
4099,
68,
353,
864,
16,
1610,
777,
1466,
628,
1375,
4099,
8338,
5502,
4932,
1775,
854,
960,
17212,
487,
652,
924,
16,
471,
854,
4041,
309,
1158,
1308,
460,
711,
2118,
864,
8395,
365,
18,
2938,
273,
599,
365,
18,
2821,
273,
2065,
18,
2080,
2452,
12,
12683,
16,
28707,
309,
1241,
30,
468,
1610,
3885,
365,
18,
2821,
18,
2725,
12,
4099,
13,
364,
417,
316,
1205,
30,
365,
18,
542,
1886,
12,
79,
16,
1205,
63,
79,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""
|
TESTS:: sage: digraphs.DeBruijn(5,0) De Bruijn digraph (n=5, k=0): Looped multi-digraph on 1 vertex sage: digraphs.DeBruijn(0,0) De Bruijn digraph (n=0, k=0): Looped multi-digraph on 0 vertices """
|
def DeBruijn(self,n,k): r""" Returns the De Bruijn diraph with parameters `n,k`.
|
61bbe1cebccced5851e1137f8603db211fa85fa2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/61bbe1cebccced5851e1137f8603db211fa85fa2/graph_generators.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1505,
19114,
4881,
78,
82,
12,
2890,
16,
82,
16,
79,
4672,
436,
8395,
2860,
326,
1505,
605,
86,
4881,
78,
82,
4314,
1483,
598,
1472,
1375,
82,
16,
79,
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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
326,
22398,
316,
326,
981,
30,
1652,
1505,
19114,
4881,
78,
82,
12,
2890,
16,
82,
16,
79,
4672,
436,
8395,
2860,
326,
1505,
605,
86,
4881,
78,
82,
4314,
1483,
598,
1472,
1375,
82,
16,
79,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print `cf.get('Foo Bar', 'foo', raw=1)` print `cf.get('Spacey Bar', 'foo', raw=1)` print `cf.get('Commented Bar', 'foo', raw=1)`
|
verify(cf.get('Foo Bar', 'foo', raw=1) == 'bar') verify(cf.get('Spacey Bar', 'foo', raw=1) == 'bar') verify(cf.get('Commented Bar', 'foo', raw=1) == 'bar')
|
def basic(src): print print "Testing basic accessors..." cf = ConfigParser.ConfigParser() sio = StringIO.StringIO(src) cf.readfp(sio) L = cf.sections() L.sort() print L for s in L: print "%s: %s" % (s, cf.options(s)) # The use of spaces in the section names serves as a regression test for # SourceForge bug #115357. # http://sourceforge.net/bugs/?func=detailbug&group_id=5470&bug_id=115357 print `cf.get('Foo Bar', 'foo', raw=1)` print `cf.get('Spacey Bar', 'foo', raw=1)` print `cf.get('Commented Bar', 'foo', raw=1)` if '__name__' in cf.options("Foo Bar"): print '__name__ "option" should not be exposed by the API!' else: print '__name__ "option" properly hidden by the API.' # Make sure the right things happen for remove_option(); # added to include check for SourceForge bug #123324: if not cf.remove_option('Foo Bar', 'foo'): raise TestFailed( "remove_option() failed to report existance of option") if cf.has_option('Foo Bar', 'foo'): raise TestFailed("remove_option() failed to remove option") if cf.remove_option('Foo Bar', 'foo'): raise TestFailed( "remove_option() failed to report non-existance of option" " that was removed") try: cf.remove_option('No Such Section', 'foo') except ConfigParser.NoSectionError: pass else: raise TestFailed( "remove_option() failed to report non-existance of option" " that never existed")
|
0e2e6d4a7110b251ed7f8e7e8919a5e6d67290cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0e2e6d4a7110b251ed7f8e7e8919a5e6d67290cf/test_cfgparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5337,
12,
4816,
4672,
1172,
1172,
315,
22218,
5337,
28088,
7070,
6080,
273,
25076,
18,
809,
2678,
1435,
272,
1594,
273,
15777,
18,
780,
4294,
12,
4816,
13,
6080,
18,
896,
7944,
12,
87,
1594,
13,
511,
273,
6080,
18,
11657,
1435,
511,
18,
3804,
1435,
1172,
511,
364,
272,
316,
511,
30,
1172,
2213,
87,
30,
738,
87,
6,
738,
261,
87,
16,
6080,
18,
2116,
12,
87,
3719,
225,
468,
1021,
999,
434,
7292,
316,
326,
2442,
1257,
26255,
487,
279,
23215,
1842,
364,
468,
4998,
1290,
908,
7934,
468,
22062,
4763,
27,
18,
468,
1062,
2207,
3168,
1884,
908,
18,
2758,
19,
19381,
23239,
644,
33,
8992,
925,
10,
1655,
67,
350,
33,
6564,
7301,
10,
925,
67,
350,
33,
22062,
4763,
27,
3929,
12,
8522,
18,
588,
2668,
42,
5161,
16654,
2187,
296,
11351,
2187,
1831,
33,
21,
13,
422,
296,
3215,
6134,
3929,
12,
8522,
18,
588,
2668,
3819,
93,
16654,
2187,
296,
11351,
2187,
1831,
33,
21,
13,
422,
296,
3215,
6134,
3929,
12,
8522,
18,
588,
2668,
4469,
329,
16654,
2187,
296,
11351,
2187,
1831,
33,
21,
13,
422,
296,
3215,
6134,
225,
309,
4940,
529,
7250,
316,
6080,
18,
2116,
2932,
42,
5161,
16654,
6,
4672,
1172,
4940,
529,
972,
315,
3482,
6,
1410,
486,
506,
16265,
635,
326,
1491,
5124,
469,
30,
1172,
4940,
529,
972,
315,
3482,
6,
8214,
5949,
635,
326,
1491,
1093,
225,
468,
4344,
3071,
326,
2145,
9198,
5865,
364,
1206,
67,
3482,
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,
5337,
12,
4816,
4672,
1172,
1172,
315,
22218,
5337,
28088,
7070,
6080,
273,
25076,
18,
809,
2678,
1435,
272,
1594,
273,
15777,
18,
780,
4294,
12,
4816,
13,
6080,
18,
896,
7944,
12,
87,
1594,
13,
511,
273,
6080,
18,
11657,
1435,
511,
18,
3804,
1435,
1172,
511,
364,
272,
316,
511,
30,
1172,
2213,
87,
30,
738,
87,
6,
738,
261,
87,
16,
6080,
18,
2116,
12,
87,
3719,
225,
468,
1021,
999,
434,
7292,
316,
326,
2442,
1257,
26255,
487,
279,
23215,
1842,
364,
468,
4998,
1290,
908,
7934,
468,
22062,
4763,
27,
18,
468,
1062,
2207,
3168,
1884,
908,
18,
2758,
19,
19381,
23239,
644,
33,
8992,
925,
10,
1655,
67,
350,
33,
6564,
7301,
2
] |
self._update_window_title()
|
self._update_window_title()
|
def on_select_tag(self, widget, row=None, col=None): #When you clic on a tag, you want to unselect the tasks self.task_tv.get_selection().unselect_all() self.ctask_tv.get_selection().unselect_all() task_model = self.task_tv.get_model() self.task_modelfilter.refilter() self._update_window_title()
|
3de01fe23181b3554804a97d98603435ca30e1cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/3de01fe23181b3554804a97d98603435ca30e1cc/browser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4025,
67,
2692,
12,
2890,
16,
3604,
16,
1027,
33,
7036,
16,
645,
33,
7036,
4672,
468,
9434,
1846,
927,
335,
603,
279,
1047,
16,
1846,
2545,
358,
640,
4025,
326,
4592,
365,
18,
4146,
67,
24161,
18,
588,
67,
10705,
7675,
318,
4025,
67,
454,
1435,
365,
18,
299,
835,
67,
24161,
18,
588,
67,
10705,
7675,
318,
4025,
67,
454,
1435,
1562,
67,
2284,
273,
365,
18,
4146,
67,
24161,
18,
588,
67,
2284,
1435,
365,
18,
4146,
67,
2284,
2188,
18,
1734,
1088,
1435,
365,
6315,
2725,
67,
5668,
67,
2649,
1435,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4025,
67,
2692,
12,
2890,
16,
3604,
16,
1027,
33,
7036,
16,
645,
33,
7036,
4672,
468,
9434,
1846,
927,
335,
603,
279,
1047,
16,
1846,
2545,
358,
640,
4025,
326,
4592,
365,
18,
4146,
67,
24161,
18,
588,
67,
10705,
7675,
318,
4025,
67,
454,
1435,
365,
18,
299,
835,
67,
24161,
18,
588,
67,
10705,
7675,
318,
4025,
67,
454,
1435,
1562,
67,
2284,
273,
365,
18,
4146,
67,
24161,
18,
588,
67,
2284,
1435,
365,
18,
4146,
67,
2284,
2188,
18,
1734,
1088,
1435,
365,
6315,
2725,
67,
5668,
67,
2649,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.__version == 7:
|
if self.__version >= 7:
|
def get_msvc_paths(self, path, platform='x86'): """Get a list of devstudio directories (include, lib or path).
|
89ddf73fbbc39e1209c66ea797dbe4e4fb5ee74f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/89ddf73fbbc39e1209c66ea797dbe4e4fb5ee74f/msvccompiler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
959,
4227,
67,
4481,
12,
2890,
16,
589,
16,
4072,
2218,
92,
5292,
11,
4672,
3536,
967,
279,
666,
434,
4461,
334,
4484,
6402,
261,
6702,
16,
2561,
578,
589,
2934,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
959,
4227,
67,
4481,
12,
2890,
16,
589,
16,
4072,
2218,
92,
5292,
11,
4672,
3536,
967,
279,
666,
434,
4461,
334,
4484,
6402,
261,
6702,
16,
2561,
578,
589,
2934,
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
] |
for j in xrange(4):
|
for j in xrange(4) :
|
def setup(): global CylList, GridList, CapList, CubeList, solidCubeList global sphereList listbase = glGenLists(numSphereSizes + 4) for i in range(numSphereSizes): sphereList += [listbase+i] glNewList(sphereList[i], GL_COMPILE) glBegin(GL_TRIANGLES) ocdec = getSphereTriangles(i) for tri in ocdec: glNormal3fv(tri[0]) glVertex3fv(tri[0]) glNormal3fv(tri[1]) glVertex3fv(tri[1]) glNormal3fv(tri[2]) glVertex3fv(tri[2]) glEnd() glEndList() CylList = listbase+numSphereSizes glNewList(CylList, GL_COMPILE) glBegin(GL_TRIANGLES) for i in range(len(circle)): glNormal3fv(circlen[i][0]) glVertex3fv(circle[i][0]) glNormal3fv(circlen[i][1]) glVertex3fv(circle[i][1]) glNormal3fv(circlen[i][2]) glVertex3fv(circle[i][2]) glEnd() glEndList() CapList = CylList + 1 glNewList(CapList, GL_COMPILE) glNormal3fv(cap0n) glBegin(GL_POLYGON) for p in drum0: glVertex3fv(p) glEnd() glNormal3fv(cap1n) glBegin(GL_POLYGON) for p in drum1: glVertex3fv(p) glEnd() glEndList() GridList = CapList + 1 glNewList(GridList, GL_COMPILE) glBegin(GL_LINES) for p in digrid: glVertex(p[0]) glVertex(p[1]) glEnd() glEndList() CubeList = GridList + 1 glNewList(CubeList, GL_COMPILE) glBegin(GL_QUAD_STRIP) glVertex((-1,-1,-1)) glVertex(( 1,-1,-1)) glVertex((-1, 1,-1)) glVertex(( 1, 1,-1)) glVertex((-1, 1, 1)) glVertex(( 1, 1, 1)) glVertex((-1,-1, 1)) glVertex(( 1,-1, 1)) glVertex((-1,-1,-1)) glVertex(( 1,-1,-1)) glEnd() glEndList() solidCubeList = CubeList + 1 glNewList(solidCubeList, GL_COMPILE) glBegin(GL_QUADS) for i in xrange(len(cubeIndices)): for j in xrange(4): nTuple = tuple(cubeNormals[cubeIndices[i][j]]) vTuple = tuple(cubeVertices[cubeIndices[i][j]]) glNormal3fv(nTuple) glVertex3fv(vTuple) glEnd() glEndList()
|
8261a6068dcdeb9e7076f9336f1a12251d792b6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8261a6068dcdeb9e7076f9336f1a12251d792b6d/drawer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13332,
2552,
22337,
80,
682,
16,
7145,
682,
16,
11200,
682,
16,
385,
4895,
682,
16,
18035,
39,
4895,
682,
2552,
20041,
682,
225,
666,
1969,
273,
5118,
7642,
7432,
12,
2107,
22747,
11923,
397,
1059,
13,
225,
364,
277,
316,
1048,
12,
2107,
22747,
11923,
4672,
20041,
682,
1011,
306,
1098,
1969,
15,
77,
65,
5118,
1908,
682,
12,
87,
9346,
682,
63,
77,
6487,
10252,
67,
31075,
900,
13,
5118,
8149,
12,
11261,
67,
6566,
3388,
11386,
13,
13345,
4924,
273,
1322,
9346,
6251,
12356,
12,
77,
13,
364,
6882,
316,
13345,
4924,
30,
5118,
5506,
23,
17679,
12,
16857,
63,
20,
5717,
5118,
6475,
23,
17679,
12,
16857,
63,
20,
5717,
5118,
5506,
23,
17679,
12,
16857,
63,
21,
5717,
5118,
6475,
23,
17679,
12,
16857,
63,
21,
5717,
5118,
5506,
23,
17679,
12,
16857,
63,
22,
5717,
5118,
6475,
23,
17679,
12,
16857,
63,
22,
5717,
5118,
1638,
1435,
5118,
1638,
682,
1435,
282,
22337,
80,
682,
273,
666,
1969,
15,
2107,
22747,
11923,
5118,
1908,
682,
12,
17992,
80,
682,
16,
10252,
67,
31075,
900,
13,
5118,
8149,
12,
11261,
67,
6566,
3388,
11386,
13,
364,
277,
316,
1048,
12,
1897,
12,
18970,
3719,
30,
5118,
5506,
23,
17679,
12,
11614,
830,
275,
63,
77,
6362,
20,
5717,
5118,
6475,
23,
17679,
12,
18970,
63,
77,
6362,
20,
5717,
5118,
5506,
23,
17679,
12,
11614,
830,
275,
63,
77,
6362,
21,
5717,
5118,
6475,
23,
17679,
12,
18970,
63,
77,
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,
3875,
13332,
2552,
22337,
80,
682,
16,
7145,
682,
16,
11200,
682,
16,
385,
4895,
682,
16,
18035,
39,
4895,
682,
2552,
20041,
682,
225,
666,
1969,
273,
5118,
7642,
7432,
12,
2107,
22747,
11923,
397,
1059,
13,
225,
364,
277,
316,
1048,
12,
2107,
22747,
11923,
4672,
20041,
682,
1011,
306,
1098,
1969,
15,
77,
65,
5118,
1908,
682,
12,
87,
9346,
682,
63,
77,
6487,
10252,
67,
31075,
900,
13,
5118,
8149,
12,
11261,
67,
6566,
3388,
11386,
13,
13345,
4924,
273,
1322,
9346,
6251,
12356,
12,
77,
13,
364,
6882,
316,
13345,
4924,
30,
5118,
5506,
23,
17679,
12,
16857,
63,
20,
5717,
5118,
6475,
23,
17679,
12,
16857,
63,
20,
5717,
5118,
5506,
23,
2
] |
res = RecapDecompose(m)
|
res = RecapDecompose(m,onlyUseReactions=[2])
|
def testEsterRxn(self): m = Chem.MolFromSmiles('C1CC1C(=O)OC1OC1') res = RecapDecompose(m) self.failUnless(res) self.failUnless(len(res.GetLeaves())==2) ks = res.GetLeaves().keys() self.failUnless('[*]C(=O)C1CC1' in ks) self.failUnless('[*]OC1CO1' in ks) m = Chem.MolFromSmiles('C1CC1C(=O)CC1OC1') res = RecapDecompose(m) self.failUnless(res) self.failUnless(len(res.GetLeaves())==0)
|
e793cf1d5a1abc952de6d7bd7feb70328e8a57c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9195/e793cf1d5a1abc952de6d7bd7feb70328e8a57c4/Recap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
41,
8190,
54,
22695,
12,
2890,
4672,
312,
273,
26542,
18,
49,
355,
1265,
9552,
1449,
2668,
39,
21,
6743,
21,
39,
12,
33,
51,
13,
10809,
21,
10809,
21,
6134,
400,
273,
868,
5909,
17731,
4150,
12,
81,
16,
3700,
3727,
426,
4905,
22850,
22,
5717,
365,
18,
6870,
984,
2656,
12,
455,
13,
365,
18,
6870,
984,
2656,
12,
1897,
12,
455,
18,
967,
1682,
6606,
10756,
631,
22,
13,
11654,
273,
400,
18,
967,
1682,
6606,
7675,
2452,
1435,
365,
18,
6870,
984,
2656,
2668,
63,
14,
65,
39,
12,
33,
51,
13,
39,
21,
6743,
21,
11,
316,
11654,
13,
365,
18,
6870,
984,
2656,
2668,
63,
14,
65,
10809,
21,
3865,
21,
11,
316,
11654,
13,
225,
312,
273,
26542,
18,
49,
355,
1265,
9552,
1449,
2668,
39,
21,
6743,
21,
39,
12,
33,
51,
13,
6743,
21,
10809,
21,
6134,
400,
273,
868,
5909,
17731,
4150,
12,
81,
16,
3700,
3727,
426,
4905,
22850,
22,
5717,
365,
18,
6870,
984,
2656,
12,
455,
13,
365,
18,
6870,
984,
2656,
12,
1897,
12,
455,
18,
967,
1682,
6606,
10756,
631,
20,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
10809,
21,
6134,
400,
273,
868,
5909,
17731,
4150,
12,
81,
16,
3700,
3727,
426,
4905,
22850,
22,
5717,
365,
18,
6870,
984,
2656,
12,
455,
13,
365,
18,
6870,
984,
2656,
12,
1897,
12,
455,
18,
967,
1682,
6606,
10756,
631,
22,
13,
11654,
273,
400,
18,
967,
1682,
6606,
7675,
2452,
1435,
365,
18,
6870,
984,
2656,
2668,
63,
14,
65,
39,
12,
33,
51,
13,
39,
21,
6743,
21,
11,
316,
11654,
13,
365,
18,
6870,
984,
2656,
2668,
63,
14,
65,
10809,
21,
3865,
21,
2
] |
edges = Set()
|
edges = set()
|
def class_tree_graph(bases, linker, context=None, **options): """ Return a `DotGraph` that graphically displays the package hierarchies for the given packages. """ graph = DotGraph('Class Hierarchy for %s' % name_list(bases), body='ranksep=0.3\n', node_defaults={'shape':'box', 'width': 0, 'height': 0}, edge_defaults={'sametail':True, 'dir':'none'}) # Options if options.get('dir', 'TB') != 'TB': # default: top-down graph.body += 'rankdir=%s\n' % options.get('dir', 'TB') # Find all superclasses & subclasses of the given classes. classes = Set(bases) queue = list(bases) for cls in queue: if cls.subclasses not in (None, UNKNOWN): queue.extend(cls.subclasses) classes.update(cls.subclasses) queue = list(bases) for cls in queue: if cls.bases not in (None, UNKNOWN): queue.extend(cls.bases) classes.update(cls.bases) # Add a node for each cls. classes = [d for d in classes if isinstance(d, ClassDoc) if d.pyval is not object] nodes = add_valdoc_nodes(graph, classes, linker, context) # Add an edge for each package/subclass relationship. edges = Set() for cls in classes: for subcls in cls.subclasses: if cls in nodes and subcls in nodes: edges.add((nodes[cls], nodes[subcls])) graph.edges = [DotGraphEdge(src,dst) for (src,dst) in edges] return graph
|
8ef87f79a31bd78539934474395f14d31c533ab2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/8ef87f79a31bd78539934474395f14d31c533ab2/dotgraph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
667,
67,
3413,
67,
4660,
12,
18602,
16,
28058,
16,
819,
33,
7036,
16,
2826,
2116,
4672,
3536,
2000,
279,
1375,
10412,
4137,
68,
716,
2667,
6478,
22461,
326,
2181,
366,
5148,
606,
364,
326,
864,
5907,
18,
3536,
2667,
273,
17502,
4137,
2668,
797,
670,
6000,
364,
738,
87,
11,
738,
508,
67,
1098,
12,
18602,
3631,
1417,
2218,
11500,
10814,
33,
20,
18,
23,
64,
82,
2187,
756,
67,
7606,
5899,
11,
4867,
11,
2497,
2147,
2187,
296,
2819,
4278,
374,
16,
296,
4210,
4278,
374,
5779,
3591,
67,
7606,
5899,
11,
20353,
1641,
4278,
5510,
16,
296,
1214,
11,
2497,
6102,
11,
6792,
225,
468,
5087,
309,
702,
18,
588,
2668,
1214,
2187,
296,
25730,
6134,
480,
296,
25730,
4278,
468,
805,
30,
1760,
17,
2378,
2667,
18,
3432,
1011,
296,
11500,
1214,
5095,
87,
64,
82,
11,
738,
702,
18,
588,
2668,
1214,
2187,
296,
25730,
6134,
225,
468,
4163,
777,
2240,
4701,
473,
15320,
434,
326,
864,
3318,
18,
3318,
273,
1000,
12,
18602,
13,
2389,
273,
666,
12,
18602,
13,
364,
2028,
316,
2389,
30,
309,
2028,
18,
1717,
4701,
486,
316,
261,
7036,
16,
13598,
4672,
2389,
18,
14313,
12,
6429,
18,
1717,
4701,
13,
3318,
18,
2725,
12,
6429,
18,
1717,
4701,
13,
2389,
273,
666,
12,
18602,
13,
364,
2028,
316,
2389,
30,
309,
2028,
18,
18602,
486,
316,
261,
7036,
16,
13598,
4672,
2389,
18,
14313,
12,
6429,
18,
18602,
13,
3318,
18,
2725,
12,
6429,
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,
667,
67,
3413,
67,
4660,
12,
18602,
16,
28058,
16,
819,
33,
7036,
16,
2826,
2116,
4672,
3536,
2000,
279,
1375,
10412,
4137,
68,
716,
2667,
6478,
22461,
326,
2181,
366,
5148,
606,
364,
326,
864,
5907,
18,
3536,
2667,
273,
17502,
4137,
2668,
797,
670,
6000,
364,
738,
87,
11,
738,
508,
67,
1098,
12,
18602,
3631,
1417,
2218,
11500,
10814,
33,
20,
18,
23,
64,
82,
2187,
756,
67,
7606,
5899,
11,
4867,
11,
2497,
2147,
2187,
296,
2819,
4278,
374,
16,
296,
4210,
4278,
374,
5779,
3591,
67,
7606,
5899,
11,
20353,
1641,
4278,
5510,
16,
296,
1214,
11,
2497,
6102,
11,
6792,
225,
468,
5087,
309,
702,
18,
588,
2668,
1214,
2187,
296,
25730,
2
] |
('localhost', 8070), my_crazy_app, server_name='localhost')
|
('0.0.0.0', 8070), my_crazy_app, server_name='www.cherrypy.example')
|
def my_crazy_app(environ, start_response): status = '200 OK' response_headers = [('Content-type','text/plain')] start_response(status, response_headers) return ['Hello world!\n']
|
ce80eb18442543ff1f5cbd1c75c6de16be4a6cb9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/82/ce80eb18442543ff1f5cbd1c75c6de16be4a6cb9/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
71,
354,
21832,
67,
2910,
12,
28684,
16,
787,
67,
2740,
4672,
1267,
273,
296,
6976,
7791,
11,
766,
67,
2485,
273,
306,
2668,
1350,
17,
723,
17023,
955,
19,
7446,
6134,
65,
787,
67,
2740,
12,
2327,
16,
766,
67,
2485,
13,
327,
10228,
18601,
9117,
24440,
82,
3546,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
71,
354,
21832,
67,
2910,
12,
28684,
16,
787,
67,
2740,
4672,
1267,
273,
296,
6976,
7791,
11,
766,
67,
2485,
273,
306,
2668,
1350,
17,
723,
17023,
955,
19,
7446,
6134,
65,
787,
67,
2740,
12,
2327,
16,
766,
67,
2485,
13,
327,
10228,
18601,
9117,
24440,
82,
3546,
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
] |
assert python_cmd('setup.py install')
|
assert python_cmd('setup.py', 'install')
|
def _install(tarball): # extracting the tarball tmpdir = tempfile.mkdtemp() log.warn('Extracting in %s', tmpdir) old_wd = os.getcwd() try: os.chdir(tmpdir) tar = tarfile.open(tarball) extractall(tar) tar.close() # going in the directory subdir = os.path.join(tmpdir, os.listdir(tmpdir)[0]) os.chdir(subdir) log.warn('Now working in %s', subdir) # installing log.warn('Installing Distribute') assert python_cmd('setup.py install') finally: os.chdir(old_wd)
|
269f12efa9ac5640bb9ad4a79c26e77c66f1a950 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/495/269f12efa9ac5640bb9ad4a79c26e77c66f1a950/distribute_setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
12,
88,
23846,
4672,
468,
27117,
326,
29441,
20213,
273,
13275,
18,
24816,
72,
5814,
1435,
613,
18,
8935,
2668,
4976,
310,
316,
738,
87,
2187,
20213,
13,
1592,
67,
3623,
273,
1140,
18,
588,
11089,
1435,
775,
30,
1140,
18,
343,
1214,
12,
5645,
1214,
13,
8232,
273,
25857,
18,
3190,
12,
88,
23846,
13,
2608,
454,
12,
11718,
13,
8232,
18,
4412,
1435,
225,
468,
8554,
316,
326,
1867,
16921,
273,
1140,
18,
803,
18,
5701,
12,
5645,
1214,
16,
1140,
18,
1098,
1214,
12,
5645,
1214,
25146,
20,
5717,
1140,
18,
343,
1214,
12,
1717,
1214,
13,
613,
18,
8935,
2668,
8674,
5960,
316,
738,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
12,
88,
23846,
4672,
468,
27117,
326,
29441,
20213,
273,
13275,
18,
24816,
72,
5814,
1435,
613,
18,
8935,
2668,
4976,
310,
316,
738,
87,
2187,
20213,
13,
1592,
67,
3623,
273,
1140,
18,
588,
11089,
1435,
775,
30,
1140,
18,
343,
1214,
12,
5645,
1214,
13,
8232,
273,
25857,
18,
3190,
12,
88,
23846,
13,
2608,
454,
12,
11718,
13,
8232,
18,
4412,
1435,
225,
468,
8554,
316,
326,
1867,
16921,
273,
1140,
18,
803,
18,
5701,
12,
5645,
1214,
16,
1140,
18,
1098,
1214,
12,
5645,
1214,
25146,
20,
5717,
1140,
18,
343,
1214,
12,
1717,
1214,
13,
613,
18,
8935,
2668,
8674,
5960,
316,
738,
87,
2187,
16921,
13,
225,
468,
3799,
310,
2
] |
'generic_fblas3.pyf'])
|
'generic_fblas3.pyf', 'interface_gen.py'])
|
def generate_pyf(extension, build_dir): name = extension.name.split('.')[-1] target = join(build_dir,target_dir,name+'.pyf') if name[0]=='c' and atlas_version is None and newer(__file__,target): f = open(target,'w') f.write('python module '+name+'\n') f.write('usercode void empty_module(void) {}\n') f.write('interface\n') f.write('subroutine empty_module()\n') f.write('intent(c) empty_module\n') f.write('end subroutine empty_module\n') f.write('end interface\nend python module'+name+'\n') f.close() return target if newer_group(extension.depends,target): generate_interface(name, extension.depends[0], target, skip_names[name]) return target
|
d22345c4009069cb0d5194f7bcc58445d8409832 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/d22345c4009069cb0d5194f7bcc58445d8409832/setup_linalg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2074,
74,
12,
6447,
16,
1361,
67,
1214,
4672,
508,
273,
2710,
18,
529,
18,
4939,
2668,
1093,
13,
18919,
21,
65,
1018,
273,
1233,
12,
3510,
67,
1214,
16,
3299,
67,
1214,
16,
529,
6797,
18,
2074,
74,
6134,
309,
508,
63,
20,
65,
18920,
71,
11,
471,
22339,
67,
1589,
353,
599,
471,
16069,
12,
972,
768,
972,
16,
3299,
4672,
284,
273,
1696,
12,
3299,
11189,
91,
6134,
284,
18,
2626,
2668,
8103,
1605,
15126,
529,
6797,
64,
82,
6134,
284,
18,
2626,
2668,
1355,
710,
918,
1008,
67,
2978,
12,
6459,
13,
21164,
82,
6134,
284,
18,
2626,
2668,
5831,
64,
82,
6134,
284,
18,
2626,
2668,
1717,
22640,
1008,
67,
2978,
1435,
64,
82,
6134,
284,
18,
2626,
2668,
474,
319,
12,
71,
13,
1008,
67,
2978,
64,
82,
6134,
284,
18,
2626,
2668,
409,
720,
22640,
1008,
67,
2978,
64,
82,
6134,
284,
18,
2626,
2668,
409,
1560,
64,
82,
409,
5790,
1605,
11,
15,
529,
6797,
64,
82,
6134,
284,
18,
4412,
1435,
327,
1018,
309,
16069,
67,
1655,
12,
6447,
18,
27360,
16,
3299,
4672,
2103,
67,
5831,
12,
529,
16,
2710,
18,
27360,
63,
20,
6487,
1018,
16,
2488,
67,
1973,
63,
529,
5717,
327,
1018,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2074,
74,
12,
6447,
16,
1361,
67,
1214,
4672,
508,
273,
2710,
18,
529,
18,
4939,
2668,
1093,
13,
18919,
21,
65,
1018,
273,
1233,
12,
3510,
67,
1214,
16,
3299,
67,
1214,
16,
529,
6797,
18,
2074,
74,
6134,
309,
508,
63,
20,
65,
18920,
71,
11,
471,
22339,
67,
1589,
353,
599,
471,
16069,
12,
972,
768,
972,
16,
3299,
4672,
284,
273,
1696,
12,
3299,
11189,
91,
6134,
284,
18,
2626,
2668,
8103,
1605,
15126,
529,
6797,
64,
82,
6134,
284,
18,
2626,
2668,
1355,
710,
918,
1008,
67,
2978,
12,
6459,
13,
21164,
82,
6134,
284,
18,
2626,
2668,
5831,
64,
82,
6134,
284,
18,
2626,
2668,
1717,
22640,
1008,
67,
2978,
2
] |
iter = self.size_units_combo.get_active_iter() units = self.size_units_combo.get_model().get_value(iter, 0)
|
def change_size_units(self): iter = self.size_units_combo.get_active_iter() units = self.size_units_combo.get_model().get_value(iter, 0) lower = self.__get_num(self.size_lower) upper = self.__get_num(self.size_upper) size = self.__get_num(self.size_new) size_beg_label = self.glade_xml.get_widget('size_beg') size_beg_label.set_text(str(lower)) size_end_label = self.glade_xml.get_widget('size_end') size_end_label.set_text(str(upper)) if self.size_lower < self.size_upper: self.size_scale.set_range(lower, upper) self.size_scale.set_value(size) self.size_entry.set_text(str(size)) self.update_remaining_space_label()
|
9853486877ffa9129d0f5ea9d5bb5e86f67600dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3880/9853486877ffa9129d0f5ea9d5bb5e86f67600dd/InputController.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
1467,
67,
7705,
12,
2890,
4672,
2612,
273,
365,
16186,
588,
67,
2107,
12,
2890,
18,
1467,
67,
8167,
13,
3854,
273,
365,
16186,
588,
67,
2107,
12,
2890,
18,
1467,
67,
5797,
13,
963,
273,
365,
16186,
588,
67,
2107,
12,
2890,
18,
1467,
67,
2704,
13,
225,
963,
67,
70,
1332,
67,
1925,
273,
365,
18,
7043,
2486,
67,
2902,
18,
588,
67,
6587,
2668,
1467,
67,
70,
1332,
6134,
963,
67,
70,
1332,
67,
1925,
18,
542,
67,
955,
12,
701,
12,
8167,
3719,
963,
67,
409,
67,
1925,
273,
365,
18,
7043,
2486,
67,
2902,
18,
588,
67,
6587,
2668,
1467,
67,
409,
6134,
963,
67,
409,
67,
1925,
18,
542,
67,
955,
12,
701,
12,
5797,
3719,
225,
309,
365,
18,
1467,
67,
8167,
411,
365,
18,
1467,
67,
5797,
30,
365,
18,
1467,
67,
5864,
18,
542,
67,
3676,
12,
8167,
16,
3854,
13,
365,
18,
1467,
67,
5864,
18,
542,
67,
1132,
12,
1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0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
1467,
67,
7705,
12,
2890,
4672,
2612,
273,
365,
16186,
588,
67,
2107,
12,
2890,
18,
1467,
67,
8167,
13,
3854,
273,
365,
16186,
588,
67,
2107,
12,
2890,
18,
1467,
67,
5797,
13,
963,
273,
365,
16186,
588,
67,
2107,
12,
2890,
18,
1467,
67,
2704,
13,
225,
963,
67,
70,
1332,
67,
1925,
273,
365,
18,
7043,
2486,
67,
2902,
18,
588,
67,
6587,
2668,
1467,
67,
70,
1332,
6134,
963,
67,
70,
1332,
67,
1925,
18,
542,
67,
955,
12,
701,
12,
8167,
3719,
963,
67,
409,
67,
1925,
273,
365,
18,
7043,
2486,
67,
2902,
18,
588,
67,
6587,
2668,
1467,
67,
409,
6134,
963,
67,
409,
67,
1925,
18,
542,
67,
2
] |
|
(select count(*) from event_registration r , crm_case c , event_event e where c.section_id=e.section_id and r.case_id=c.id and c.state='draft' and e.type=t.id ) as draft_state , (select count(*) from event_registration r , crm_case c , event_event e where c.section_id=e.section_id and r.case_id=c.id and c.state='open' and e.type=t.id ) as confirm_state,
|
(select sum(nb_register) from event_registration r , crm_case c , event_event e where c.section_id=e.section_id and r.case_id=c.id and c.state='draft' and e.type=t.id ) as draft_state , (select sum(nb_register) from event_registration r , crm_case c , event_event e where c.section_id=e.section_id and r.case_id=c.id and c.state='open' and e.type=t.id ) as confirm_state,
|
def init(self, cr): cr.execute(""" create or replace view report_event_type_registration as ( select count(t.id) as id, t.name as name, (select count(*) from event_registration r , crm_case c , event_event e where c.section_id=e.section_id and r.case_id=c.id and c.state='draft' and e.type=t.id ) as draft_state , (select count(*) from event_registration r , crm_case c , event_event e where c.section_id=e.section_id and r.case_id=c.id and c.state='open' and e.type=t.id ) as confirm_state, count(t.id) as nbevent from event_event e inner join crm_case_section c1 on (e.section_id=c1.id) inner join event_type t on (e.type=t.id) group by t.name,t.id
|
ad2fc47780e68710dea43a85f1c75fdf2ff685f3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/ad2fc47780e68710dea43a85f1c75fdf2ff685f3/event.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
4422,
18,
8837,
2932,
3660,
752,
578,
1453,
1476,
2605,
67,
2575,
67,
723,
67,
14170,
487,
261,
2027,
1056,
12,
88,
18,
350,
13,
487,
612,
16,
268,
18,
529,
487,
508,
16,
261,
4025,
2142,
12,
6423,
67,
4861,
13,
628,
871,
67,
14170,
436,
269,
4422,
81,
67,
3593,
276,
269,
871,
67,
2575,
425,
225,
1625,
276,
18,
3464,
67,
350,
33,
73,
18,
3464,
67,
350,
471,
436,
18,
3593,
67,
350,
33,
71,
18,
350,
471,
276,
18,
2019,
2218,
17153,
11,
471,
425,
18,
723,
33,
88,
18,
350,
262,
487,
12246,
67,
2019,
269,
261,
4025,
2142,
12,
6423,
67,
4861,
13,
628,
871,
67,
14170,
436,
269,
4422,
81,
67,
3593,
276,
269,
871,
67,
2575,
425,
225,
1625,
276,
18,
3464,
67,
350,
33,
73,
18,
3464,
67,
350,
471,
436,
18,
3593,
67,
350,
33,
71,
18,
350,
471,
276,
18,
2019,
2218,
3190,
11,
471,
425,
18,
723,
33,
88,
18,
350,
262,
487,
225,
6932,
67,
2019,
16,
1056,
12,
88,
18,
350,
13,
487,
290,
2196,
616,
628,
871,
67,
2575,
425,
3443,
1233,
4422,
81,
67,
3593,
67,
3464,
276,
21,
603,
261,
73,
18,
3464,
67,
350,
33,
71,
21,
18,
350,
13,
3443,
1233,
871,
67,
723,
268,
603,
261,
73,
18,
723,
33,
88,
18,
350,
13,
1041,
635,
268,
18,
529,
16,
88,
18,
350,
2,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
4422,
18,
8837,
2932,
3660,
752,
578,
1453,
1476,
2605,
67,
2575,
67,
723,
67,
14170,
487,
261,
2027,
1056,
12,
88,
18,
350,
13,
487,
612,
16,
268,
18,
529,
487,
508,
16,
261,
4025,
2142,
12,
6423,
67,
4861,
13,
628,
871,
67,
14170,
436,
269,
4422,
81,
67,
3593,
276,
269,
871,
67,
2575,
425,
225,
1625,
276,
18,
3464,
67,
350,
33,
73,
18,
3464,
67,
350,
471,
436,
18,
3593,
67,
350,
33,
71,
18,
350,
471,
276,
18,
2019,
2218,
17153,
11,
471,
425,
18,
723,
33,
88,
18,
350,
262,
487,
12246,
67,
2019,
269,
261,
4025,
2142,
12,
6423,
67,
4861,
13,
628,
871,
2
] |
cls._parser = etree.XMLParser(**cls._parser_opts) class XMLApplication(XMLElement): __metaclass__ = XMLApplicationType accept_types = [] build_types = []
|
cls._xml_parser = etree.XMLParser(remove_blank_text=True) class XMLRootElement(XMLElement): __metaclass__ = XMLRootElementType encoding = 'UTF-8' content_type = None
|
def __init__(cls, name, bases, dct): if cls._xml_schema is None and cls._xml_schema_file is not None: cls._xml_schema = etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir, cls._xml_schema_file), 'r'))) if cls._parser is None: if cls._xml_schema is not None and cls._validate_input: cls._parser = etree.XMLParser(schema=cls._xml_schema, **cls._parser_opts) else: cls._parser = etree.XMLParser(**cls._parser_opts)
|
86a3cb09569495d76ac3ea45504458f43e29e618 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/86a3cb09569495d76ac3ea45504458f43e29e618/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6429,
16,
508,
16,
8337,
16,
18253,
4672,
309,
2028,
6315,
2902,
67,
4821,
353,
599,
471,
2028,
6315,
2902,
67,
4821,
67,
768,
353,
486,
599,
30,
2028,
6315,
2902,
67,
4821,
273,
12031,
18,
4201,
3078,
12,
31303,
18,
2670,
12,
3190,
12,
538,
18,
803,
18,
5701,
12,
6429,
6315,
2902,
67,
4821,
67,
1214,
16,
2028,
6315,
2902,
67,
4821,
67,
768,
3631,
296,
86,
11,
20349,
309,
2028,
6315,
4288,
353,
599,
30,
309,
2028,
6315,
2902,
67,
4821,
353,
486,
599,
471,
2028,
6315,
5662,
67,
2630,
30,
2028,
6315,
4288,
273,
12031,
18,
4201,
2678,
12,
4821,
33,
6429,
6315,
2902,
67,
4821,
16,
2826,
6429,
6315,
4288,
67,
4952,
13,
469,
30,
2028,
6315,
4288,
273,
12031,
18,
4201,
2678,
12,
636,
6429,
6315,
4288,
67,
4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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6429,
16,
508,
16,
8337,
16,
18253,
4672,
309,
2028,
6315,
2902,
67,
4821,
353,
599,
471,
2028,
6315,
2902,
67,
4821,
67,
768,
353,
486,
599,
30,
2028,
6315,
2902,
67,
4821,
273,
12031,
18,
4201,
3078,
12,
31303,
18,
2670,
12,
3190,
12,
538,
18,
803,
18,
5701,
12,
6429,
6315,
2902,
67,
4821,
67,
1214,
16,
2028,
6315,
2902,
67,
4821,
67,
768,
3631,
296,
86,
11,
20349,
309,
2028,
6315,
4288,
353,
599,
30,
309,
2028,
6315,
2902,
67,
4821,
353,
486,
599,
471,
2028,
6315,
5662,
67,
2630,
30,
2028,
6315,
4288,
273,
12031,
18,
4201,
2678,
12,
4821,
33,
6429,
6315,
2902,
67,
4821,
16,
2826,
6429,
6315,
2
] |
elif data['form']['result_selection']=='customer_supplier':
|
elif data['form']['result_selection'] == 'customer_supplier':
|
def _get_partners(self, data): if data['form']['result_selection']=='customer': return 'Receivable Accounts' elif data['form']['result_selection']=='supplier': return 'Payable Accounts' elif data['form']['result_selection']=='customer_supplier': return 'Receivable and Payable Accounts' return ''
|
fbadca8d34f0137a629f314b5e51a2ecd4c769b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fbadca8d34f0137a629f314b5e51a2ecd4c769b8/third_party_ledger.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2680,
9646,
12,
2890,
16,
501,
4672,
309,
501,
3292,
687,
21712,
2088,
67,
10705,
3546,
18920,
10061,
4278,
327,
296,
4779,
427,
429,
30849,
11,
1327,
501,
3292,
687,
21712,
2088,
67,
10705,
3546,
18920,
2859,
5742,
4278,
327,
296,
9148,
429,
30849,
11,
1327,
501,
3292,
687,
21712,
2088,
67,
10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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,
389,
588,
67,
2680,
9646,
12,
2890,
16,
501,
4672,
309,
501,
3292,
687,
21712,
2088,
67,
10705,
3546,
18920,
10061,
4278,
327,
296,
4779,
427,
429,
30849,
11,
1327,
501,
3292,
687,
21712,
2088,
67,
10705,
3546,
18920,
2859,
5742,
4278,
327,
296,
9148,
429,
30849,
11,
1327,
501,
3292,
687,
21712,
2088,
67,
10705,
3546,
422,
296,
10061,
67,
2859,
5742,
4278,
327,
296,
4779,
427,
429,
471,
13838,
429,
30849,
11,
327,
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
] |
return [item[1] for item in items]
|
if len(items) < num: TestFailed("Error: could not find %d words with Spam=%s - only found %d" % (num, get_spam, len(items))) ret = {} for n, word, info in items[:num]: ret[word]=copy.copy(info) return ret
|
def FindTopWords(bayes, num, get_spam): items = [] try: bayes.db # bsddb style extractor = DBExtractor except AttributeError: extractor = DictExtractor for word, info in extractor(bayes): if ":" in word: continue if get_spam: if info.hamcount==0: items.append((info.spamcount, word)) else: if info.spamcount==0: items.append((info.hamcount, word)) items.sort() return [item[1] for item in items]
|
1906eaa7cce41636b5054be689664fc95342a8ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/1906eaa7cce41636b5054be689664fc95342a8ca/tester.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
3401,
7363,
12,
70,
528,
281,
16,
818,
16,
336,
67,
1752,
301,
4672,
1516,
273,
5378,
775,
30,
324,
528,
281,
18,
1966,
468,
7081,
449,
70,
2154,
14031,
273,
2383,
10958,
1335,
6394,
30,
14031,
273,
9696,
10958,
225,
364,
2076,
16,
1123,
316,
14031,
12,
70,
528,
281,
4672,
309,
6153,
316,
2076,
30,
1324,
309,
336,
67,
1752,
301,
30,
309,
1123,
18,
31698,
1883,
631,
20,
30,
1516,
18,
6923,
12443,
1376,
18,
1752,
301,
1883,
16,
2076,
3719,
469,
30,
309,
1123,
18,
1752,
301,
1883,
631,
20,
30,
1516,
18,
6923,
12443,
1376,
18,
31698,
1883,
16,
2076,
3719,
1516,
18,
3804,
1435,
282,
309,
562,
12,
3319,
13,
411,
818,
30,
7766,
2925,
2932,
668,
30,
3377,
486,
1104,
738,
72,
4511,
598,
5878,
301,
5095,
87,
300,
1338,
1392,
738,
72,
6,
738,
261,
2107,
16,
336,
67,
1752,
301,
16,
562,
12,
3319,
20349,
325,
273,
2618,
364,
290,
16,
2076,
16,
1123,
316,
1516,
10531,
2107,
14542,
325,
63,
1095,
65,
33,
3530,
18,
3530,
12,
1376,
13,
327,
325,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
3401,
7363,
12,
70,
528,
281,
16,
818,
16,
336,
67,
1752,
301,
4672,
1516,
273,
5378,
775,
30,
324,
528,
281,
18,
1966,
468,
7081,
449,
70,
2154,
14031,
273,
2383,
10958,
1335,
6394,
30,
14031,
273,
9696,
10958,
225,
364,
2076,
16,
1123,
316,
14031,
12,
70,
528,
281,
4672,
309,
6153,
316,
2076,
30,
1324,
309,
336,
67,
1752,
301,
30,
309,
1123,
18,
31698,
1883,
631,
20,
30,
1516,
18,
6923,
12443,
1376,
18,
1752,
301,
1883,
16,
2076,
3719,
469,
30,
309,
1123,
18,
1752,
301,
1883,
631,
20,
30,
1516,
18,
6923,
12443,
1376,
18,
31698,
1883,
16,
2076,
3719,
1516,
18,
3804,
1435,
282,
309,
562,
12,
3319,
13,
411,
2
] |
error(t.lineno, "syntax error at '%s'" % t.value)
|
error(t.lexer.lineno, "syntax error at '%s'" % t.value)
|
def p_error(t): if t: error(t.lineno, "syntax error at '%s'" % t.value) else: error(0, "unknown syntax error", True)
|
009df5ff1e19276433975fddd43a306ff653a20e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6787/009df5ff1e19276433975fddd43a306ff653a20e/isa_parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
1636,
12,
88,
4672,
309,
268,
30,
555,
12,
88,
18,
31731,
18,
17782,
16,
315,
14308,
555,
622,
1995,
87,
4970,
738,
268,
18,
1132,
13,
469,
30,
555,
12,
20,
16,
315,
8172,
6279,
555,
3113,
1053,
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,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
30,
555,
12,
20,
16,
315,
8172,
6279,
555,
3113,
1053,
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
] |
module_type = DynamicModule
|
pass
|
def load_module(self, fullname): if fullname in sys.modules: return sys.modules[name]
|
a644edf0515c26ed027522891ccf02aceac764e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8659/a644edf0515c26ed027522891ccf02aceac764e8/importer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
12,
2890,
16,
13321,
4672,
309,
13321,
316,
2589,
18,
6400,
30,
327,
2589,
18,
6400,
63,
529,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
12,
2890,
16,
13321,
4672,
309,
13321,
316,
2589,
18,
6400,
30,
327,
2589,
18,
6400,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.assertEqual(None, Everything.test_gslist_null_out()) self.assertEqual(None, Everything.test_glist_null_out())
|
self.assertEqual([], Everything.test_gslist_null_out()) self.assertEqual([], Everything.test_glist_null_out())
|
def test_out_nullable_list(self): self.assertEqual(None, Everything.test_gslist_null_out()) self.assertEqual(None, Everything.test_glist_null_out())
|
4b369f8aca980fc6a582094d6648f40fe4af5e9f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8659/4b369f8aca980fc6a582094d6648f40fe4af5e9f/test_everything.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
659,
67,
20247,
67,
1098,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
7036,
16,
26553,
18,
3813,
67,
564,
1098,
67,
2011,
67,
659,
10756,
365,
18,
11231,
5812,
12,
7036,
16,
26553,
18,
3813,
67,
75,
1098,
67,
2011,
67,
659,
10756,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
659,
67,
20247,
67,
1098,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
7036,
16,
26553,
18,
3813,
67,
564,
1098,
67,
2011,
67,
659,
10756,
365,
18,
11231,
5812,
12,
7036,
16,
26553,
18,
3813,
67,
75,
1098,
67,
2011,
67,
659,
10756,
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
] |
if os.path.isfile( stopAgentFile ): try: os.unlink( stopAgentFile ) except: pass
|
agent.am_removeStopAgentFile()
|
def __checkControlDir( self ): for agentName in self.__agentModules: if not self.__agentModules[ agentName ][ 'running' ]: continue agent = self.__agentModules[ agentName ][ 'instance' ] stopAgentFile = os.path.join( agent.am_getControlDirectory(), 'stop_agent' )
|
c40ec108aecee6b600974319bf5b570dfaee37d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c40ec108aecee6b600974319bf5b570dfaee37d2/AgentReactor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
3367,
1621,
12,
365,
262,
30,
364,
4040,
461,
316,
365,
16186,
5629,
7782,
30,
309,
486,
365,
16186,
5629,
7782,
63,
4040,
461,
308,
63,
296,
8704,
11,
308,
30,
1324,
4040,
273,
365,
16186,
5629,
7782,
63,
4040,
461,
308,
63,
296,
1336,
11,
308,
2132,
3630,
812,
273,
1140,
18,
803,
18,
5701,
12,
4040,
18,
301,
67,
588,
3367,
2853,
9334,
296,
5681,
67,
5629,
11,
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,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1893,
3367,
1621,
12,
365,
262,
30,
364,
4040,
461,
316,
365,
16186,
5629,
7782,
30,
309,
486,
365,
16186,
5629,
7782,
63,
4040,
461,
308,
63,
296,
8704,
11,
308,
30,
1324,
4040,
273,
365,
16186,
5629,
7782,
63,
4040,
461,
308,
63,
296,
1336,
11,
308,
2132,
3630,
812,
273,
1140,
18,
803,
18,
5701,
12,
4040,
18,
301,
67,
588,
3367,
2853,
9334,
296,
5681,
67,
5629,
11,
262,
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
] |
self.session.currentDialog.instance.setTitle(_("Downloadale new plugins"))
|
self.session.currentDialog.instance.setTitle(_("Downloadable new plugins"))
|
def setTitle(self): if self.type == self.DOWNLOAD: self.session.currentDialog.instance.setTitle(_("Downloadale new plugins")) elif self.type == self.REMOVE: self.session.currentDialog.instance.setTitle(_("Remove plugins"))
|
398f5f7ff4b4d37ef55e9d49c178133e970fdac4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/398f5f7ff4b4d37ef55e9d49c178133e970fdac4/PluginBrowser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14109,
12,
2890,
4672,
309,
365,
18,
723,
422,
365,
18,
12711,
7783,
30,
365,
18,
3184,
18,
2972,
6353,
18,
1336,
18,
542,
4247,
24899,
2932,
7109,
429,
394,
4799,
6,
3719,
1327,
365,
18,
723,
422,
365,
18,
22122,
30,
365,
18,
3184,
18,
2972,
6353,
18,
1336,
18,
542,
4247,
24899,
2932,
3288,
4799,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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2972,
6353,
18,
1336,
18,
542,
4247,
24899,
2932,
3288,
4799,
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
] |
try: config = ic.IC() except ic.error: return {}
|
kSCPropNetProxiesHTTPEnable = sc.CFStringCreateWithCString(0, "HTTPEnable", 0) kSCPropNetProxiesHTTPProxy = sc.CFStringCreateWithCString(0, "HTTPProxy", 0) kSCPropNetProxiesHTTPPort = sc.CFStringCreateWithCString(0, "HTTPPort", 0) kSCPropNetProxiesHTTPSEnable = sc.CFStringCreateWithCString(0, "HTTPSEnable", 0) kSCPropNetProxiesHTTPSProxy = sc.CFStringCreateWithCString(0, "HTTPSProxy", 0) kSCPropNetProxiesHTTPSPort = sc.CFStringCreateWithCString(0, "HTTPSPort", 0) kSCPropNetProxiesFTPEnable = sc.CFStringCreateWithCString(0, "FTPEnable", 0) kSCPropNetProxiesFTPPassive = sc.CFStringCreateWithCString(0, "FTPPassive", 0) kSCPropNetProxiesFTPPort = sc.CFStringCreateWithCString(0, "FTPPort", 0) kSCPropNetProxiesFTPProxy = sc.CFStringCreateWithCString(0, "FTPProxy", 0) kSCPropNetProxiesGopherEnable = sc.CFStringCreateWithCString(0, "GopherEnable", 0) kSCPropNetProxiesGopherPort = sc.CFStringCreateWithCString(0, "GopherPort", 0) kSCPropNetProxiesGopherProxy = sc.CFStringCreateWithCString(0, "GopherProxy", 0)
|
def getproxies_internetconfig(): """Return a dictionary of scheme -> proxy server URL mappings.
|
e5522816be355104a6f7f078bb1538571ac0bcb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/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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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20314,
606,
67,
267,
14726,
1425,
13332,
3536,
990,
279,
3880,
434,
4355,
317,
2889,
1438,
1976,
7990,
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,
-100,
-100,
-100
] |
vereq(x.a, None)
|
verify(not hasattr(x, "a"))
|
def slots(): if verbose: print "Testing __slots__..." class C0(object): __slots__ = [] x = C0() verify(not hasattr(x, "__dict__")) verify(not hasattr(x, "foo")) class C1(object): __slots__ = ['a'] x = C1() verify(not hasattr(x, "__dict__")) vereq(x.a, None) x.a = 1 vereq(x.a, 1) del x.a vereq(x.a, None) class C3(object): __slots__ = ['a', 'b', 'c'] x = C3() verify(not hasattr(x, "__dict__")) verify(x.a is None) verify(x.b is None) verify(x.c is None) x.a = 1 x.b = 2 x.c = 3 vereq(x.a, 1) vereq(x.b, 2) vereq(x.c, 3)
|
6b70599450777a8b911f0eff44b18cd22f1c1e1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6b70599450777a8b911f0eff44b18cd22f1c1e1e/test_descr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12169,
13332,
309,
3988,
30,
1172,
315,
22218,
1001,
18875,
972,
7070,
667,
385,
20,
12,
1612,
4672,
1001,
18875,
972,
273,
5378,
619,
273,
385,
20,
1435,
3929,
12,
902,
3859,
12,
92,
16,
10425,
1576,
14437,
3719,
3929,
12,
902,
3859,
12,
92,
16,
315,
11351,
6,
3719,
225,
667,
385,
21,
12,
1612,
4672,
1001,
18875,
972,
273,
10228,
69,
3546,
619,
273,
385,
21,
1435,
3929,
12,
902,
3859,
12,
92,
16,
10425,
1576,
14437,
3719,
3929,
12,
902,
3859,
12,
92,
16,
315,
69,
6,
3719,
619,
18,
69,
273,
404,
331,
822,
85,
12,
92,
18,
69,
16,
404,
13,
1464,
619,
18,
69,
3929,
12,
902,
3859,
12,
92,
16,
315,
69,
6,
3719,
225,
667,
385,
23,
12,
1612,
4672,
1001,
18875,
972,
273,
10228,
69,
2187,
296,
70,
2187,
296,
71,
3546,
619,
273,
385,
23,
1435,
3929,
12,
902,
3859,
12,
92,
16,
10425,
1576,
14437,
3719,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
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12169,
13332,
309,
3988,
30,
1172,
315,
22218,
1001,
18875,
972,
7070,
667,
385,
20,
12,
1612,
4672,
1001,
18875,
972,
273,
5378,
619,
273,
385,
20,
1435,
3929,
12,
902,
3859,
12,
92,
16,
10425,
1576,
14437,
3719,
3929,
12,
902,
3859,
12,
92,
16,
315,
11351,
6,
3719,
225,
667,
385,
21,
12,
1612,
4672,
1001,
18875,
972,
273,
10228,
69,
3546,
619,
273,
385,
21,
1435,
3929,
12,
902,
3859,
12,
92,
16,
10425,
1576,
14437,
3719,
3929,
12,
902,
3859,
12,
92,
16,
315,
69,
6,
3719,
619,
18,
69,
273,
404,
331,
822,
85,
12,
92,
18,
69,
16,
404,
13,
1464,
619,
18,
69,
3929,
12,
902,
3859,
12,
92,
16,
315,
2
] |
d = sess.query(Derived).get(1)
|
d = sess.query(Derived).get('uid1')
|
def __init__(self, uid, comment): self.uid = uid self.comment = comment
|
645fa5255d899431d489b89d1c567bce96c1bb4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/645fa5255d899431d489b89d1c567bce96c1bb4d/assorted_eager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4555,
16,
2879,
4672,
365,
18,
1911,
273,
4555,
365,
18,
3469,
273,
2879,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4555,
16,
2879,
4672,
365,
18,
1911,
273,
4555,
365,
18,
3469,
273,
2879,
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
] |
self.app = app
|
self.rootapp = rootapp self.apps = apps
|
def __init__(self, app): trace("ISAPISimpleHandler.__init__") self.app = app
|
e499829a1254ecfb9720f04072a7b33abb8a9c05 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5367/e499829a1254ecfb9720f04072a7b33abb8a9c05/isapi_wsgi.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
595,
4672,
2606,
2932,
5127,
2557,
5784,
1503,
16186,
2738,
972,
7923,
365,
18,
2910,
273,
595,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
595,
4672,
2606,
2932,
5127,
2557,
5784,
1503,
16186,
2738,
972,
7923,
365,
18,
2910,
273,
595,
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
] |
text = "%s\n%s" % (url, bug.get_description())
|
text = "%s\n\n%s" % (url, bug.get_description())
|
def task_added_cb(self, task): url = task.get_title() r = urlparse(url) if r.hostname is None: return
|
3ae6d4def4c9a9f155c3fd926bb057f545ddf7dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/3ae6d4def4c9a9f155c3fd926bb057f545ddf7dd/bugzilla.py
|
[
1,
8585,
326,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1562,
67,
9665,
67,
7358,
12,
2890,
16,
1562,
4672,
880,
273,
1562,
18,
588,
67,
2649,
1435,
436,
273,
15185,
12,
718,
13,
309,
436,
18,
10358,
353,
599,
30,
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
] |
b,a = self.canonical_label(proof=True) d,c = other.canonical_label(proof=True)
|
b,a = self.canonical_label(proof=True, verbosity=verbosity) d,c = other.canonical_label(proof=True, verbosity=verbosity)
|
def is_isomorphic(self, other, proof=False): """ Tests for isomorphism between self and other. INPUT: proof -- if True, then output is (a,b), where a is a boolean and b is either a map or None. EXAMPLES: sage: D = graphs.DodecahedralGraph() sage: E = D.copy() sage: gamma = SymmetricGroup(20).random_element() sage: E.relabel(gamma) sage: D.is_isomorphic(E) True
|
53ee1136334ccef3d22fb07eba25731064a97664 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/53ee1136334ccef3d22fb07eba25731064a97664/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
291,
362,
18435,
12,
2890,
16,
1308,
16,
14601,
33,
8381,
4672,
3536,
7766,
87,
364,
353,
362,
7657,
6228,
3086,
365,
471,
1308,
18,
225,
12943,
30,
14601,
1493,
309,
1053,
16,
1508,
876,
353,
261,
69,
16,
70,
3631,
1625,
279,
353,
279,
1250,
471,
324,
353,
3344,
279,
852,
578,
599,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
463,
273,
19422,
18,
40,
390,
5353,
28351,
4137,
1435,
272,
410,
30,
512,
273,
463,
18,
3530,
1435,
272,
410,
30,
9601,
273,
10042,
6899,
1114,
12,
3462,
2934,
9188,
67,
2956,
1435,
272,
410,
30,
512,
18,
266,
1925,
12,
20589,
13,
272,
410,
30,
463,
18,
291,
67,
291,
362,
18435,
12,
41,
13,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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225,
12943,
30,
14601,
1493,
309,
1053,
16,
1508,
876,
353,
261,
69,
16,
70,
3631,
1625,
279,
353,
279,
1250,
471,
324,
353,
3344,
279,
852,
578,
599,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
463,
273,
19422,
18,
40,
390,
5353,
28351,
4137,
1435,
272,
410,
30,
512,
273,
463,
18,
3530,
1435,
272,
410,
30,
9601,
273,
10042,
6899,
1114,
12,
3462,
2934,
9188,
67,
2956,
1435,
272,
410,
30,
512,
18,
266,
1925,
12,
20589,
13,
272,
410,
30,
463,
18,
291,
67,
291,
362,
2
] |
self._debug(NIGHTMARE, "JS: jsScript", ver, `script`)
|
def jsScript (self, script, ver, item): """execute given script with javascript version ver""" self._debug(NIGHTMARE, "JS: jsScript", ver, `script`) assert self.state == 'parse' assert len(self.buf) >= 2 self.js_output = 0 self.js_env.attachListener(self) # start recursive html filter (used by jsProcessData) self.js_html = FilterHtmlParser(self.rules, self.pics, self.url, comments=self.comments, javascript=self.js_filter, level=self.level+1) # execute self.js_env.executeScript(unescape_js(script), ver) self.js_env.detachListener(self) # wait for recursive filter to finish self.jsEndScript(item)
|
5827a6b2fdf9c1202486a8f36e257a6eab010228 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5827a6b2fdf9c1202486a8f36e257a6eab010228/HtmlParser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
3651,
261,
2890,
16,
2728,
16,
1924,
16,
761,
4672,
3536,
8837,
864,
2728,
598,
11341,
1177,
1924,
8395,
225,
1815,
365,
18,
2019,
422,
296,
2670,
11,
1815,
562,
12,
2890,
18,
4385,
13,
1545,
576,
365,
18,
2924,
67,
2844,
273,
374,
365,
18,
2924,
67,
3074,
18,
7331,
2223,
12,
2890,
13,
468,
787,
5904,
1729,
1034,
261,
3668,
635,
3828,
2227,
751,
13,
365,
18,
2924,
67,
2620,
273,
4008,
4353,
2678,
12,
2890,
18,
7482,
16,
365,
18,
84,
2102,
16,
365,
18,
718,
16,
5678,
33,
2890,
18,
9231,
16,
11341,
33,
2890,
18,
2924,
67,
2188,
16,
1801,
33,
2890,
18,
2815,
15,
21,
13,
468,
1836,
365,
18,
2924,
67,
3074,
18,
8837,
3651,
12,
318,
6939,
67,
2924,
12,
4263,
3631,
1924,
13,
365,
18,
2924,
67,
3074,
18,
8238,
497,
2223,
12,
2890,
13,
468,
2529,
364,
5904,
1034,
358,
4076,
365,
18,
2924,
1638,
3651,
12,
1726,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
3651,
261,
2890,
16,
2728,
16,
1924,
16,
761,
4672,
3536,
8837,
864,
2728,
598,
11341,
1177,
1924,
8395,
225,
1815,
365,
18,
2019,
422,
296,
2670,
11,
1815,
562,
12,
2890,
18,
4385,
13,
1545,
576,
365,
18,
2924,
67,
2844,
273,
374,
365,
18,
2924,
67,
3074,
18,
7331,
2223,
12,
2890,
13,
468,
787,
5904,
1729,
1034,
261,
3668,
635,
3828,
2227,
751,
13,
365,
18,
2924,
67,
2620,
273,
4008,
4353,
2678,
12,
2890,
18,
7482,
16,
365,
18,
84,
2102,
16,
365,
18,
718,
16,
5678,
33,
2890,
18,
9231,
16,
11341,
33,
2890,
18,
2924,
67,
2188,
16,
1801,
33,
2890,
18,
2815,
15,
21,
13,
468,
1836,
365,
18,
2924,
2
] |
|
one recipient. Otherwise it will throw an exception (either SMTPSenderRefused, SMTPRecipientsRefused, or SMTPDataError) That is, if this method does not throw an exception, then someone should get your mail. If this method does not throw an exception, it returns a dictionary, with one entry for each recipient that was refused.
|
one recipient. It returns a dictionary, with one entry for each recipient that was refused. Each entry contains a tuple of the SMTP error code and the accompanying error message sent by the server. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. SMTPRecipientsRefused The server rejected for ALL recipients (no mail was sent). SMTPSenderRefused The server didn't accept the from_addr. SMTPDataError The server replied with an unexpected error code (other than a refusal of a recipient). Note: the connection will be open even after an exception is raised.
|
def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction.
|
7ce512fd70a64eb7cf9563bb31dd4291a44254dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/7ce512fd70a64eb7cf9563bb31dd4291a44254dd/smtplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4408,
12,
2890,
16,
628,
67,
4793,
16,
358,
67,
23305,
16,
1234,
16,
4791,
67,
2116,
22850,
6487,
4519,
337,
67,
2116,
33,
8526,
4672,
3536,
2503,
1296,
11199,
392,
7278,
4791,
2492,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4408,
12,
2890,
16,
628,
67,
4793,
16,
358,
67,
23305,
16,
1234,
16,
4791,
67,
2116,
22850,
6487,
4519,
337,
67,
2116,
33,
8526,
4672,
3536,
2503,
1296,
11199,
392,
7278,
4791,
2492,
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
] |
return sgtbx.space_group_info(group=space_group)
|
elif cmd == "SFAC": return sgtbx.space_group_info(group=space_group)
|
def convert(file_object): space_group = None for line in file_object: l = line.rstrip().split("!")[0] if (l.startswith("LATT ")): assert space_group is None latt = read_shelx_latt(l) space_group = sgtbx.space_group() if (latt.centric): space_group.expand_inv(sgtbx.tr_vec((0,0,0))) space_group.expand_conventional_centring_type(latt.z) elif (l.startswith("SYMM ")): assert space_group is not None s = sgtbx.rt_mx(l[5:]) space_group.expand_smx(s) return sgtbx.space_group_info(group=space_group)
|
7c3e85389af6ef4140425b8dde9e68755dda23c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/7c3e85389af6ef4140425b8dde9e68755dda23c9/shelx_latt_sym_to_space_group_symbol.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
768,
67,
1612,
4672,
3476,
67,
1655,
273,
599,
364,
980,
316,
585,
67,
1612,
30,
328,
273,
980,
18,
86,
6406,
7675,
4939,
2932,
4442,
25146,
20,
65,
309,
261,
80,
18,
17514,
1918,
2932,
12190,
56,
315,
3719,
30,
1815,
3476,
67,
1655,
353,
599,
15611,
273,
855,
67,
674,
292,
92,
67,
80,
4558,
12,
80,
13,
3476,
67,
1655,
273,
272,
4521,
70,
92,
18,
2981,
67,
1655,
1435,
309,
261,
80,
4558,
18,
71,
18395,
4672,
3476,
67,
1655,
18,
12320,
67,
5768,
12,
1055,
18587,
92,
18,
313,
67,
8799,
12443,
20,
16,
20,
16,
20,
20349,
3476,
67,
1655,
18,
12320,
67,
591,
11111,
287,
67,
71,
275,
371,
67,
723,
12,
80,
4558,
18,
94,
13,
1327,
261,
80,
18,
17514,
1918,
2932,
7474,
8206,
315,
3719,
30,
1815,
3476,
67,
1655,
353,
486,
599,
272,
273,
272,
4521,
70,
92,
18,
3797,
67,
11023,
12,
80,
63,
25,
30,
5717,
3476,
67,
1655,
18,
12320,
67,
4808,
92,
12,
87,
13,
1327,
1797,
422,
315,
55,
2046,
39,
6877,
327,
272,
4521,
70,
92,
18,
2981,
67,
1655,
67,
1376,
12,
1655,
33,
2981,
67,
1655,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
768,
67,
1612,
4672,
3476,
67,
1655,
273,
599,
364,
980,
316,
585,
67,
1612,
30,
328,
273,
980,
18,
86,
6406,
7675,
4939,
2932,
4442,
25146,
20,
65,
309,
261,
80,
18,
17514,
1918,
2932,
12190,
56,
315,
3719,
30,
1815,
3476,
67,
1655,
353,
599,
15611,
273,
855,
67,
674,
292,
92,
67,
80,
4558,
12,
80,
13,
3476,
67,
1655,
273,
272,
4521,
70,
92,
18,
2981,
67,
1655,
1435,
309,
261,
80,
4558,
18,
71,
18395,
4672,
3476,
67,
1655,
18,
12320,
67,
5768,
12,
1055,
18587,
92,
18,
313,
67,
8799,
12443,
20,
16,
20,
16,
20,
20349,
3476,
67,
1655,
18,
12320,
67,
591,
11111,
287,
67,
71,
275,
371,
2
] |
if translate and boolstr_to_bool(translate):
|
if not translate or boolstr_to_bool(translate):
|
def handle_cleaner_option_label(self, label): """<label> element under <option>""" self.option_name = _(getText(label.childNodes)) translate = label.getAttribute('translate') if translate and boolstr_to_bool(translate): self.xlate_cb(self.option_name)
|
fbd4e92f74df9f7cafdceed376f0e03a64cc63db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/fbd4e92f74df9f7cafdceed376f0e03a64cc63db/CleanerML.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
6200,
264,
67,
3482,
67,
1925,
12,
2890,
16,
1433,
4672,
3536,
32,
1925,
34,
930,
3613,
411,
3482,
2984,
3660,
365,
18,
3482,
67,
529,
273,
389,
12,
588,
1528,
12,
1925,
18,
3624,
3205,
3719,
4204,
273,
1433,
18,
588,
1499,
2668,
13929,
6134,
309,
486,
4204,
578,
1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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
6200,
264,
67,
3482,
67,
1925,
12,
2890,
16,
1433,
4672,
3536,
32,
1925,
34,
930,
3613,
411,
3482,
2984,
3660,
365,
18,
3482,
67,
529,
273,
389,
12,
588,
1528,
12,
1925,
18,
3624,
3205,
3719,
4204,
273,
1433,
18,
588,
1499,
2668,
13929,
6134,
309,
486,
4204,
578,
1426,
701,
67,
869,
67,
6430,
12,
13929,
4672,
365,
18,
18402,
340,
67,
7358,
12,
2890,
18,
3482,
67,
529,
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
] |
thr = threading.Thread(target=self.__scale_pixbuf) thr.setDaemon(True) thr.start()
|
gobject.idle_add(self.__scale_pixbuf)
|
def __close(self, loader, *data): if self.stop_loading: return
|
cbf4721e646898ffb269b94d5b0b6d9b390d9802 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4764/cbf4721e646898ffb269b94d5b0b6d9b390d9802/albumart.py
|
[
1,
8585,
326,
22398,
316,
326,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4412,
12,
2890,
16,
4088,
16,
380,
892,
4672,
309,
365,
18,
5681,
67,
15174,
30,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
data, response = self.site().postForm(address, predata, sysop = True) if not response:
|
response, data = self.site().postForm(address, predata, sysop=True) if response.status == 302 and not data:
|
def protect(self, edit='sysop', move='sysop', create='sysop', unprotect=False, reason=None, prompt=True, throttle=True): """(Un)protect a wiki page. Requires administrator status.
|
8c9c334e0fbc791f48effe8c0a3bfb447f814cae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/8c9c334e0fbc791f48effe8c0a3bfb447f814cae/wikipedia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17151,
12,
2890,
16,
3874,
2218,
9499,
556,
2187,
3635,
2218,
9499,
556,
2187,
752,
2218,
9499,
556,
2187,
640,
11815,
386,
33,
8381,
16,
3971,
33,
7036,
16,
6866,
33,
5510,
16,
18304,
33,
5510,
4672,
3536,
12,
984,
13,
11815,
386,
279,
9050,
1363,
18,
16412,
22330,
1267,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17151,
12,
2890,
16,
3874,
2218,
9499,
556,
2187,
3635,
2218,
9499,
556,
2187,
752,
2218,
9499,
556,
2187,
640,
11815,
386,
33,
8381,
16,
3971,
33,
7036,
16,
6866,
33,
5510,
16,
18304,
33,
5510,
4672,
3536,
12,
984,
13,
11815,
386,
279,
9050,
1363,
18,
16412,
22330,
1267,
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
] |
return _open_with_retry(urllib.request.urlretrieve, *args)
|
resource = args[0] with support.transient_internet(resource): return urllib.request.urlretrieve(*args)
|
def urlretrieve(self, *args): return _open_with_retry(urllib.request.urlretrieve, *args)
|
ee2538beefa10847ed8a190b25a18a5840e334c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/ee2538beefa10847ed8a190b25a18a5840e334c3/test_urllibnet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
17466,
12,
2890,
16,
380,
1968,
4672,
327,
389,
3190,
67,
1918,
67,
9620,
12,
718,
2941,
18,
2293,
18,
718,
17466,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
2890,
16,
380,
1968,
4672,
327,
389,
3190,
67,
1918,
67,
9620,
12,
718,
2941,
18,
2293,
18,
718,
17466,
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
] |
d = ifp.read() ofp.write(d)
|
while 1: d = ifp.read(128000) if not d: break ofp.write(d)
|
def hexbin(inp, out): """(infilename, outfilename) - Decode binhexed file""" ifp = HexBin(inp) finfo = ifp.FInfo if not out: out = ifp.FName if os.name == 'mac': ofss = macfs.FSSpec(out) out = ofss.as_pathname() ofp = open(out, 'wb') # XXXX Do translation on non-mac systems d = ifp.read() ofp.write(d) ofp.close() ifp.close_data() d = ifp.read_rsrc() if d: ofp = openrsrc(out, 'wb') ofp.write(d) ofp.close() if os.name == 'mac': nfinfo = ofss.GetFInfo() nfinfo.Creator = finfo.Creator nfinfo.Type = finfo.Type nfinfo.Flags = finfo.Flags ofss.SetFInfo(nfinfo) ifp.close()
|
d9300e7ae7f704ad263013ec13346104b4bba7ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9300e7ae7f704ad263013ec13346104b4bba7ba/binhex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
4757,
12,
31647,
16,
596,
4672,
3536,
12,
267,
3459,
16,
596,
3459,
13,
300,
6209,
4158,
7118,
329,
585,
8395,
309,
84,
273,
15734,
9913,
12,
31647,
13,
15190,
273,
309,
84,
18,
42,
966,
309,
486,
596,
30,
596,
273,
309,
84,
18,
42,
461,
309,
1140,
18,
529,
422,
296,
5821,
4278,
434,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
659,
13,
596,
273,
434,
1049,
18,
345,
67,
28336,
1435,
225,
434,
84,
273,
1696,
12,
659,
16,
296,
9464,
6134,
468,
11329,
60,
2256,
4794,
603,
1661,
17,
5821,
14908,
1323,
404,
30,
302,
273,
309,
84,
18,
896,
12,
10392,
3784,
13,
309,
486,
302,
30,
898,
434,
84,
18,
2626,
12,
72,
13,
434,
84,
18,
4412,
1435,
309,
84,
18,
4412,
67,
892,
1435,
225,
302,
273,
309,
84,
18,
896,
67,
86,
4816,
1435,
309,
302,
30,
434,
84,
273,
1696,
86,
4816,
12,
659,
16,
296,
9464,
6134,
434,
84,
18,
2626,
12,
72,
13,
434,
84,
18,
4412,
1435,
225,
309,
1140,
18,
529,
422,
296,
5821,
4278,
290,
926,
617,
273,
434,
1049,
18,
967,
42,
966,
1435,
290,
926,
617,
18,
10636,
273,
15190,
18,
10636,
290,
926,
617,
18,
559,
273,
15190,
18,
559,
290,
926,
617,
18,
5094,
273,
15190,
18,
5094,
434,
1049,
18,
694,
42,
966,
12,
82,
926,
617,
13,
225,
309,
84,
18,
4412,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
4757,
12,
31647,
16,
596,
4672,
3536,
12,
267,
3459,
16,
596,
3459,
13,
300,
6209,
4158,
7118,
329,
585,
8395,
309,
84,
273,
15734,
9913,
12,
31647,
13,
15190,
273,
309,
84,
18,
42,
966,
309,
486,
596,
30,
596,
273,
309,
84,
18,
42,
461,
309,
1140,
18,
529,
422,
296,
5821,
4278,
434,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
659,
13,
596,
273,
434,
1049,
18,
345,
67,
28336,
1435,
225,
434,
84,
273,
1696,
12,
659,
16,
296,
9464,
6134,
468,
11329,
60,
2256,
4794,
603,
1661,
17,
5821,
14908,
1323,
404,
30,
302,
273,
309,
84,
18,
896,
12,
10392,
3784,
13,
309,
486,
302,
30,
898,
434,
84,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.