rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|---|---|
if self.__GetNextToken( "{"):
|
if self.__IsToken( "{"):
|
def __GetSectionData(self, ffsFile): if self.__GetNextToken( "{"): while self.__GetLeafSection( ffsFile): pass while self.__GetEncapsulationSec( ffsFile): pass
|
a83bd801068d42d6c1460cf15ea4f6626d50d403 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/a83bd801068d42d6c1460cf15ea4f6626d50d403/FdfParser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
967,
5285,
751,
12,
2890,
16,
284,
2556,
812,
4672,
225,
309,
365,
16186,
2520,
1345,
12,
18173,
4672,
1323,
365,
16186,
967,
9858,
5285,
12,
284,
2556,
812,
4672,
1342,
1323,
365,
16186,
967,
4280,
6679,
6234,
2194,
12,
284,
2556,
812,
4672,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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2194,
12,
284,
2556,
812,
4672,
1342,
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
] |
print 'filename:', self.filename
|
def Load(self): try: print 'filename:', self.filename self.file=CDRXfile(self.filename) cmx = CCXFile(self, self.file) cmx.Load() self.document() prefix = '' num_pages = cmx.NumPages() for num in range(num_pages): data, start = cmx.PageData(num) if data: if num_pages > 1: prefix = 'Page %d: ' % num if cmx.coord_size == 2: interpreter = CMXInterpreter16(self, cmx, layer_prefix = prefix) else: interpreter = CMXInterpreter32(self, cmx, layer_prefix = prefix) interpreter.Run(data, start) self.end_all() self.object.load_Completed() return self.object except RiffEOF: raise SketchLoadError(_("Unexpected end of file")) except: import traceback traceback.print_exc() raise
|
005d65a1317c0d7ddba798bcfb5132e409ea3148 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3123/005d65a1317c0d7ddba798bcfb5132e409ea3148/ccxloader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
12,
2890,
4672,
775,
30,
365,
18,
768,
33,
39,
6331,
60,
768,
12,
2890,
18,
3459,
13,
5003,
92,
273,
16525,
60,
812,
12,
2890,
16,
365,
18,
768,
13,
5003,
92,
18,
2563,
1435,
365,
18,
5457,
1435,
1633,
273,
875,
818,
67,
7267,
273,
5003,
92,
18,
2578,
5716,
1435,
364,
818,
316,
1048,
12,
2107,
67,
7267,
4672,
501,
16,
787,
273,
5003,
92,
18,
1964,
751,
12,
2107,
13,
309,
501,
30,
309,
818,
67,
7267,
405,
404,
30,
1633,
273,
296,
1964,
738,
72,
30,
296,
738,
818,
309,
5003,
92,
18,
5732,
67,
1467,
422,
576,
30,
16048,
273,
385,
13874,
30010,
2313,
12,
2890,
16,
5003,
92,
16,
3018,
67,
3239,
273,
1633,
13,
469,
30,
16048,
273,
385,
13874,
30010,
1578,
12,
2890,
16,
5003,
92,
16,
3018,
67,
3239,
273,
1633,
13,
16048,
18,
1997,
12,
892,
16,
787,
13,
365,
18,
409,
67,
454,
1435,
365,
18,
1612,
18,
945,
67,
9556,
1435,
327,
365,
18,
1612,
1335,
534,
3048,
12706,
30,
1002,
10362,
1593,
2563,
668,
24899,
2932,
7762,
679,
434,
585,
6,
3719,
1335,
30,
1930,
10820,
10820,
18,
1188,
67,
10075,
1435,
1002,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
12,
2890,
4672,
775,
30,
365,
18,
768,
33,
39,
6331,
60,
768,
12,
2890,
18,
3459,
13,
5003,
92,
273,
16525,
60,
812,
12,
2890,
16,
365,
18,
768,
13,
5003,
92,
18,
2563,
1435,
365,
18,
5457,
1435,
1633,
273,
875,
818,
67,
7267,
273,
5003,
92,
18,
2578,
5716,
1435,
364,
818,
316,
1048,
12,
2107,
67,
7267,
4672,
501,
16,
787,
273,
5003,
92,
18,
1964,
751,
12,
2107,
13,
309,
501,
30,
309,
818,
67,
7267,
405,
404,
30,
1633,
273,
296,
1964,
738,
72,
30,
296,
738,
818,
309,
5003,
92,
18,
5732,
67,
1467,
422,
576,
30,
16048,
273,
385,
13874,
30010,
2313,
12,
2890,
16,
5003,
92,
16,
3018,
2
] |
|
print self.__query_string__ print str(self.__param_tuple__)
|
""" __repr__ gets called when you type self and hit enter. It should return a string representing the object. Here, the current query string along with the parameter tuples are printed. """ s = "Query for sql database: " s += self.__database__ + "\n" s += "Query string: " s += self.__query_string__ + "\n" s += "Parameter tuple: " s += str(self.__param_tuple__) + "\n" return s
|
def __repr__(self): # stupid problem with this crap print self.__query_string__ print str(self.__param_tuple__)
|
f444548a79bfaff35a22bfb50aa45243715f4188 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f444548a79bfaff35a22bfb50aa45243715f4188/database.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
468,
384,
416,
350,
6199,
598,
333,
276,
1266,
8395,
1001,
12715,
972,
5571,
2566,
1347,
1846,
618,
365,
471,
6800,
6103,
18,
2597,
1410,
327,
279,
533,
5123,
326,
733,
18,
13743,
16,
326,
783,
843,
533,
7563,
598,
326,
1569,
10384,
854,
14099,
18,
225,
3536,
272,
273,
315,
1138,
364,
1847,
2063,
30,
315,
272,
1011,
365,
16186,
6231,
972,
397,
1548,
82,
6,
272,
1011,
315,
1138,
533,
30,
315,
272,
1011,
365,
16186,
2271,
67,
1080,
972,
397,
1548,
82,
6,
272,
1011,
315,
1662,
3193,
30,
315,
272,
1011,
609,
12,
2890,
16186,
891,
67,
8052,
972,
13,
397,
1548,
82,
6,
327,
272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
468,
384,
416,
350,
6199,
598,
333,
276,
1266,
8395,
1001,
12715,
972,
5571,
2566,
1347,
1846,
618,
365,
471,
6800,
6103,
18,
2597,
1410,
327,
279,
533,
5123,
326,
733,
18,
13743,
16,
326,
783,
843,
533,
7563,
598,
326,
1569,
10384,
854,
14099,
18,
225,
3536,
272,
273,
315,
1138,
364,
1847,
2063,
30,
315,
272,
1011,
365,
16186,
6231,
972,
397,
1548,
82,
6,
272,
1011,
315,
1138,
533,
30,
315,
272,
1011,
365,
16186,
2271,
67,
1080,
972,
397,
1548,
82,
6,
272,
1011,
315,
1662,
3193,
30,
315,
272,
1011,
609,
12,
2890,
16186,
891,
67,
8052,
972,
13,
397,
1548,
82,
6,
327,
272,
225,
2,
-100
] |
feed = self.doclist.QueryDocumentListFeed(query)
|
feed = self.client.QueryDocumentListFeed(query)
|
def testExportSpreadsheet(self): query = ('http://docs.google.com/feeds/documents/private/full' '/-/spreadsheet?max-results=1') feed = self.doclist.QueryDocumentListFeed(query) file_paths = ['./downloadedTest.xls', './downloadedTest.csv', './downloadedTest.pdf', './downloadedTest.ods', './downloadedTest.tsv', './downloadedTest.html'] docs_token = self.doclist.GetClientLoginToken() self.doclist.SetClientLoginToken(self.spreadsheets.GetClientLoginToken()) for path in file_paths: self.doclist.DownloadSpreadsheet(feed.entry[0], path) self.assert_(os.path.exists(path)) self.assert_(os.path.getsize(path)) os.remove(path) self.doclist.SetClientLoginToken(docs_token)
|
dcc46816af19bac967f4b588353a3ee4514dd5d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6580/dcc46816af19bac967f4b588353a3ee4514dd5d2/service_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6144,
28719,
8118,
12,
2890,
4672,
843,
273,
7707,
2505,
2207,
8532,
18,
9536,
18,
832,
19,
7848,
87,
19,
24795,
19,
1152,
19,
2854,
11,
1173,
17,
19,
26007,
8118,
35,
1896,
17,
4717,
33,
21,
6134,
4746,
273,
365,
18,
2625,
18,
1138,
2519,
682,
8141,
12,
2271,
13,
585,
67,
4481,
273,
10228,
18,
19,
2378,
4230,
4709,
18,
92,
3251,
2187,
12871,
2378,
4230,
4709,
18,
6715,
2187,
12871,
2378,
4230,
4709,
18,
7699,
2187,
12871,
2378,
4230,
4709,
18,
369,
87,
2187,
12871,
2378,
4230,
4709,
18,
25338,
2187,
12871,
2378,
4230,
4709,
18,
2620,
3546,
3270,
67,
2316,
273,
365,
18,
2434,
1098,
18,
967,
1227,
5358,
1345,
1435,
365,
18,
2434,
1098,
18,
694,
1227,
5358,
1345,
12,
2890,
18,
1752,
11904,
10245,
18,
967,
1227,
5358,
1345,
10756,
364,
589,
316,
585,
67,
4481,
30,
365,
18,
2434,
1098,
18,
7109,
28719,
8118,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6144,
28719,
8118,
12,
2890,
4672,
843,
273,
7707,
2505,
2207,
8532,
18,
9536,
18,
832,
19,
7848,
87,
19,
24795,
19,
1152,
19,
2854,
11,
1173,
17,
19,
26007,
8118,
35,
1896,
17,
4717,
33,
21,
6134,
4746,
273,
365,
18,
2625,
18,
1138,
2519,
682,
8141,
12,
2271,
13,
585,
67,
4481,
273,
10228,
18,
19,
2378,
4230,
4709,
18,
92,
3251,
2187,
12871,
2378,
4230,
4709,
18,
6715,
2187,
12871,
2378,
4230,
4709,
18,
7699,
2187,
12871,
2378,
4230,
4709,
18,
369,
87,
2187,
12871,
2378,
4230,
4709,
18,
25338,
2187,
12871,
2378,
4230,
4709,
18,
2620,
3546,
3270,
67,
2316,
273,
365,
18,
2434,
1098,
18,
967,
1227,
5358,
1345,
1435,
365,
18,
2
] |
self.assert_(self.g1.test_overlap(self.g2) == False) self.assert_(self.g2.test_overlap(self.g1) == False)
|
self.assert_(self.g1.test_inside(self.g2) == False) self.assert_(self.g2.test_inside(self.g1) == False)
|
def runTest(self): # g1 and g2 are the same, so they exist inside each other. self.assert_(self.g1.test_inside(self.g2) == True) self.assert_(self.g2.test_inside(self.g1) == False)
|
7ea094a5a9369af6702e865d752b1bac938f2e5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5978/7ea094a5a9369af6702e865d752b1bac938f2e5d/test_geometry.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
4709,
12,
2890,
4672,
468,
314,
21,
471,
314,
22,
854,
326,
1967,
16,
1427,
2898,
1005,
4832,
1517,
1308,
18,
365,
18,
11231,
67,
12,
2890,
18,
75,
21,
18,
3813,
67,
28091,
12,
2890,
18,
75,
22,
13,
422,
1053,
13,
365,
18,
11231,
67,
12,
2890,
18,
75,
22,
18,
3813,
67,
28091,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
4709,
12,
2890,
4672,
468,
314,
21,
471,
314,
22,
854,
326,
1967,
16,
1427,
2898,
1005,
4832,
1517,
1308,
18,
365,
18,
11231,
67,
12,
2890,
18,
75,
21,
18,
3813,
67,
28091,
12,
2890,
18,
75,
22,
13,
422,
1053,
13,
365,
18,
11231,
67,
12,
2890,
18,
75,
22,
18,
3813,
67,
28091,
12,
2890,
18,
75,
21,
13,
422,
1083,
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
] |
if data[0][-1] == ',' or data[0] in _daynames:
|
if data[0][-1] in (',', '.') or string.lower(data[0]) in _daynames:
|
def parsedate_tz(data): """Convert a date string to a time tuple. Accounts for military timezones. """ data = string.split(data) if data[0][-1] == ',' or data[0] in _daynames: # There's a dayname here. Skip it del data[0] if len(data) == 3: # RFC 850 date, deprecated stuff = string.split(data[0], '-') if len(stuff) == 3: data = stuff + data[1:] if len(data) == 4: s = data[3] i = string.find(s, '+') if i > 0: data[3:] = [s[:i], s[i+1:]] else: data.append('') # Dummy tz if len(data) < 5: return None data = data[:5] [dd, mm, yy, tm, tz] = data if not mm in _monthnames: dd, mm, yy, tm, tz = mm, dd, tm, yy, tz if not mm in _monthnames: return None mm = _monthnames.index(mm)+1 tm = string.splitfields(tm, ':') if len(tm) == 2: [thh, tmm] = tm tss = '0' elif len(tm) == 3: [thh, tmm, tss] = tm else: return None try: yy = string.atoi(yy) dd = string.atoi(dd) thh = string.atoi(thh) tmm = string.atoi(tmm) tss = string.atoi(tss) except string.atoi_error: return None tzoffset=None tz=string.upper(tz) if _timezones.has_key(tz): tzoffset=_timezones[tz] else: try: tzoffset=string.atoi(tz) except string.atoi_error: pass # Convert a timezone offset into seconds ; -0500 -> -18000 if tzoffset: if tzoffset < 0: tzsign = -1 tzoffset = -tzoffset else: tzsign = 1 tzoffset = tzsign * ( (tzoffset/100)*3600 + (tzoffset % 100)*60) tuple = (yy, mm, dd, thh, tmm, tss, 0, 0, 0, tzoffset) return tuple
|
bc7a73da2036ee7693857fcf046c4a19feecfc9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bc7a73da2036ee7693857fcf046c4a19feecfc9e/rfc822.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
712,
67,
12994,
12,
892,
4672,
3536,
2723,
279,
1509,
533,
358,
279,
813,
3193,
18,
225,
30849,
364,
312,
330,
305,
814,
25954,
18,
3536,
501,
273,
533,
18,
4939,
12,
892,
13,
309,
501,
63,
20,
6362,
17,
21,
65,
316,
261,
2187,
2187,
2611,
13,
578,
533,
18,
8167,
12,
892,
63,
20,
5717,
316,
389,
2881,
1973,
30,
468,
6149,
1807,
279,
2548,
529,
2674,
18,
6611,
518,
1464,
501,
63,
20,
65,
309,
562,
12,
892,
13,
422,
890,
30,
468,
8372,
1725,
3361,
1509,
16,
6849,
10769,
273,
533,
18,
4939,
12,
892,
63,
20,
6487,
4014,
13,
309,
562,
12,
334,
3809,
13,
422,
890,
30,
501,
273,
10769,
397,
501,
63,
21,
26894,
309,
562,
12,
892,
13,
422,
1059,
30,
272,
273,
501,
63,
23,
65,
277,
273,
533,
18,
4720,
12,
87,
16,
15126,
6134,
309,
277,
405,
374,
30,
501,
63,
23,
26894,
273,
306,
87,
10531,
77,
6487,
272,
63,
77,
15,
21,
30,
13563,
469,
30,
501,
18,
6923,
2668,
6134,
468,
28622,
6016,
309,
562,
12,
892,
13,
411,
1381,
30,
327,
599,
501,
273,
501,
10531,
25,
65,
306,
449,
16,
9740,
16,
9016,
16,
6118,
16,
6016,
65,
273,
501,
309,
486,
9740,
316,
389,
7496,
1973,
30,
6957,
16,
9740,
16,
9016,
16,
6118,
16,
6016,
273,
9740,
16,
6957,
16,
6118,
16,
9016,
16,
6016,
309,
486,
9740,
316,
389,
7496,
1973,
30,
327,
599,
9740,
273,
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,
1109,
712,
67,
12994,
12,
892,
4672,
3536,
2723,
279,
1509,
533,
358,
279,
813,
3193,
18,
225,
30849,
364,
312,
330,
305,
814,
25954,
18,
3536,
501,
273,
533,
18,
4939,
12,
892,
13,
309,
501,
63,
20,
6362,
17,
21,
65,
316,
261,
2187,
2187,
2611,
13,
578,
533,
18,
8167,
12,
892,
63,
20,
5717,
316,
389,
2881,
1973,
30,
468,
6149,
1807,
279,
2548,
529,
2674,
18,
6611,
518,
1464,
501,
63,
20,
65,
309,
562,
12,
892,
13,
422,
890,
30,
468,
8372,
1725,
3361,
1509,
16,
6849,
10769,
273,
533,
18,
4939,
12,
892,
63,
20,
6487,
4014,
13,
309,
562,
12,
334,
3809,
13,
422,
890,
30,
501,
273,
10769,
397,
2
] |
url = %(url)s
|
url = '%(url)s'
|
def after_install(options, home_dir): global logger reqs = %(reqs)s cmds = %(cmds)s url = %(url)s found = [c for c in cmds if url in c] if not found: cmds.extend(['-f',url]) etc = join(home_dir, 'etc') ## TODO: this should all come from distutils ## like distutils.sysconfig.get_python_inc() if sys.platform == 'win32': lib_dir = join(home_dir, 'Lib') bin_dir = join(home_dir, 'Scripts') elif is_jython: lib_dir = join(home_dir, 'Lib') bin_dir = join(home_dir, 'bin') else: lib_dir = join(home_dir, 'lib', py_version) bin_dir = join(home_dir, 'bin') if not os.path.exists(etc): os.makedirs(etc) reqnumpy = 'numpy' numpyidx = None for i,req in enumerate(reqs): if req.startswith('numpy') and len(req)>5 and (req[5]=='=' or req[5]=='>'): # for now, just require 'numpy' instead of a specific version #reqnumpy = req numpyidx = i break _single_install(cmds, reqnumpy, bin_dir) # force numpy first so we can use f2py later if numpyidx is not None: reqs.remove(reqs[numpyidx]) for req in reqs: _single_install(cmds, req, bin_dir) """ parser = OptionParser() parser.add_option("-d", "--destination", action="store", type="string", dest='dest', help="specify destination directory", default='.') parser.add_option("-t", "--test", action="store_true", dest="test", help="if present, generated installer will point to /OpenMDAO/test_server/dists") (options, args) = parser.parse_args() openmdao_pkgs = ['openmdao.util', 'openmdao.units', 'openmdao.main', 'openmdao.lib', 'openmdao.test', 'openmdao.examples.simple', 'openmdao.examples.bar3simulation', 'openmdao.examples.enginedesign', ] cmds = [] reqs = [] import openmdao.main.releaseinfo version = openmdao.main.releaseinfo.__version__ dists = working_set.resolve([Requirement.parse(r) for r in openmdao_pkgs]) excludes = set(['setuptools', 'distribute']) for dist in dists: if dist.project_name not in excludes: reqs.append('%s' % dist.as_requirement()) if options.test: url = 'file:///home/bnaylor/dists' else: url = 'http://openmdao.org/dists' reqs = list(set(reqs)) # eliminate duplicates (numpy was in there twice somehow) optdict = { 'reqs': reqs, 'cmds':cmds, 'version': version, 'url': url } dest = os.path.abspath(options.dest) scriptname = os.path.join(dest,'go-openmdao-%s.py' % version) with open(scriptname, 'wb') as f: f.write(virtualenv.create_bootstrap_script(script_str % optdict)) os.chmod(scriptname, 0755)
|
928825c1849d2f10fb3730d9d72a85cac4dd44cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/928825c1849d2f10fb3730d9d72a85cac4dd44cf/mkinstaller.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
5425,
12,
2116,
16,
6382,
67,
1214,
4672,
2552,
1194,
20927,
273,
8975,
25782,
13,
87,
13446,
273,
8975,
24680,
13,
87,
880,
273,
21063,
718,
13,
87,
11,
1392,
273,
306,
71,
364,
276,
316,
13446,
309,
880,
316,
276,
65,
309,
486,
1392,
30,
13446,
18,
14313,
12,
3292,
17,
74,
2187,
718,
5717,
5527,
273,
1233,
12,
8712,
67,
1214,
16,
296,
14175,
6134,
7541,
2660,
30,
333,
1410,
777,
12404,
628,
2411,
5471,
7541,
3007,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
2561,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
5664,
6134,
4158,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
15041,
6134,
1327,
353,
67,
78,
18490,
30,
2561,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
5664,
6134,
4158,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
4757,
6134,
469,
30,
2561,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
2941,
2187,
2395,
67,
1589,
13,
4158,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
4757,
6134,
225,
309,
486,
1140,
18,
803,
18,
1808,
12,
14175,
4672,
1140,
18,
81,
9477,
10539,
12,
14175,
13,
1111,
15974,
273,
296,
15974,
11,
3972,
3465,
273,
599,
364,
277,
16,
3658,
316,
4241,
12,
25782,
4672,
309,
1111,
18,
17514,
1918,
2668,
15974,
6134,
471,
562,
12,
3658,
13,
34,
25,
471,
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,
1839,
67,
5425,
12,
2116,
16,
6382,
67,
1214,
4672,
2552,
1194,
20927,
273,
8975,
25782,
13,
87,
13446,
273,
8975,
24680,
13,
87,
880,
273,
21063,
718,
13,
87,
11,
1392,
273,
306,
71,
364,
276,
316,
13446,
309,
880,
316,
276,
65,
309,
486,
1392,
30,
13446,
18,
14313,
12,
3292,
17,
74,
2187,
718,
5717,
5527,
273,
1233,
12,
8712,
67,
1214,
16,
296,
14175,
6134,
7541,
2660,
30,
333,
1410,
777,
12404,
628,
2411,
5471,
7541,
3007,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
2561,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
5664,
6134,
4158,
67,
1214,
2
] |
>>> triple_quoted_incomplete("a(''''''")
|
>>> triple_quoted_incomplete("''''''")
|
def triple_quoted_incomplete(line): """ Test if line contains an incomplete triple-quoted string. >>> triple_quoted_incomplete("a('''") True >>> triple_quoted_incomplete("a(''''''") False >>> triple_quoted_incomplete("a('''''''''") True """ if line.count('"""') % 2: return True if line.count("'''") % 2: return True return False
|
1fbee09b78dc37ee96b0d40e6484ea6d414896a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3111/1fbee09b78dc37ee96b0d40e6484ea6d414896a2/pep8.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14543,
67,
15179,
67,
17624,
12,
1369,
4672,
3536,
7766,
309,
980,
1914,
392,
14715,
14543,
17,
15179,
533,
18,
225,
4080,
14543,
67,
15179,
67,
17624,
2932,
69,
2668,
11,
4970,
13,
1053,
4080,
14543,
67,
15179,
67,
17624,
2932,
6309,
26418,
4970,
13,
1083,
4080,
14543,
67,
15179,
67,
17624,
2932,
69,
2668,
6309,
6309,
26418,
4970,
13,
1053,
3536,
309,
980,
18,
1883,
2668,
3660,
5187,
13,
738,
576,
30,
327,
1053,
309,
980,
18,
1883,
2932,
6309,
4970,
13,
738,
576,
30,
327,
1053,
327,
1083,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14543,
67,
15179,
67,
17624,
12,
1369,
4672,
3536,
7766,
309,
980,
1914,
392,
14715,
14543,
17,
15179,
533,
18,
225,
4080,
14543,
67,
15179,
67,
17624,
2932,
69,
2668,
11,
4970,
13,
1053,
4080,
14543,
67,
15179,
67,
17624,
2932,
6309,
26418,
4970,
13,
1083,
4080,
14543,
67,
15179,
67,
17624,
2932,
69,
2668,
6309,
6309,
26418,
4970,
13,
1053,
3536,
309,
980,
18,
1883,
2668,
3660,
5187,
13,
738,
576,
30,
327,
1053,
309,
980,
18,
1883,
2932,
6309,
4970,
13,
738,
576,
30,
327,
1053,
327,
1083,
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
] |
"long_description": open('README').read(),
|
"long_description": long_description,
|
def main(): hachoir_wx = load_source("version", path.join("hachoir_wx", "version.py")) PACKAGES = {"hachoir_wx": "hachoir_wx"} for name in MODULES: PACKAGES["hachoir_wx." + name] = path.join("hachoir_wx", name) install_options = { "name": hachoir_wx.PACKAGE, "version": hachoir_wx.VERSION, "url": hachoir_wx.WEBSITE, "download_url": hachoir_wx.WEBSITE, "license": hachoir_wx.LICENSE, "author": "Cyril Zorin", "description": "hachoir-wx is a wxWidgets GUI that's meant to provide a (more) user-friendly interface to the hachoir binary parsing engine", "long_description": open('README').read(), "classifiers": CLASSIFIERS, "scripts": ["hachoir-wx"], "packages": PACKAGES.keys(), "package_dir": PACKAGES, "package_data": {"hachoir_wx.resource": ['hachoir_wx.xrc']}, } if use_setuptools: install_options["install_requires"] = ( "hachoir-core>=1.2", "hachoir-parser>=0.7.0", "wxPython>=2.6.3") install_options["zip_safe"] = True install_options["include_package_data"] = True setup(**install_options)
|
bf2973be0fc18bec8358e041327004c0062e9ce9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9327/bf2973be0fc18bec8358e041327004c0062e9ce9/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
366,
497,
83,
481,
67,
27226,
273,
1262,
67,
3168,
2932,
1589,
3113,
589,
18,
5701,
2932,
76,
497,
83,
481,
67,
27226,
3113,
315,
1589,
18,
2074,
6,
3719,
225,
23599,
55,
273,
12528,
76,
497,
83,
481,
67,
27226,
6877,
315,
76,
497,
83,
481,
67,
27226,
6,
97,
364,
508,
316,
14057,
55,
30,
23599,
55,
9614,
76,
497,
83,
481,
67,
27226,
1199,
397,
508,
65,
273,
589,
18,
5701,
2932,
76,
497,
83,
481,
67,
27226,
3113,
508,
13,
225,
3799,
67,
2116,
273,
288,
315,
529,
6877,
366,
497,
83,
481,
67,
27226,
18,
19077,
16,
315,
1589,
6877,
366,
497,
83,
481,
67,
27226,
18,
5757,
16,
315,
718,
6877,
366,
497,
83,
481,
67,
27226,
18,
6950,
12692,
5398,
16,
315,
7813,
67,
718,
6877,
366,
497,
83,
481,
67,
27226,
18,
6950,
12692,
5398,
16,
315,
12687,
6877,
366,
497,
83,
481,
67,
27226,
18,
6065,
23396,
16,
315,
4161,
6877,
315,
17992,
86,
330,
2285,
280,
267,
3113,
315,
3384,
6877,
315,
76,
497,
83,
481,
17,
27226,
353,
279,
7075,
16166,
10978,
716,
1807,
20348,
358,
5615,
279,
261,
10161,
13,
729,
17,
29111,
1560,
358,
326,
366,
497,
83,
481,
3112,
5811,
4073,
3113,
315,
5748,
67,
3384,
6877,
1525,
67,
3384,
16,
315,
1106,
3383,
6877,
7383,
10591,
55,
16,
315,
12827,
6877,
8247,
76,
497,
83,
481,
17,
27226,
6,
6487,
315,
10308,
6877,
23599,
55,
18,
2452,
9334,
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,
2774,
13332,
366,
497,
83,
481,
67,
27226,
273,
1262,
67,
3168,
2932,
1589,
3113,
589,
18,
5701,
2932,
76,
497,
83,
481,
67,
27226,
3113,
315,
1589,
18,
2074,
6,
3719,
225,
23599,
55,
273,
12528,
76,
497,
83,
481,
67,
27226,
6877,
315,
76,
497,
83,
481,
67,
27226,
6,
97,
364,
508,
316,
14057,
55,
30,
23599,
55,
9614,
76,
497,
83,
481,
67,
27226,
1199,
397,
508,
65,
273,
589,
18,
5701,
2932,
76,
497,
83,
481,
67,
27226,
3113,
508,
13,
225,
3799,
67,
2116,
273,
288,
315,
529,
6877,
366,
497,
83,
481,
67,
27226,
18,
19077,
16,
315,
1589,
6877,
366,
497,
83,
481,
67,
27226,
18,
5757,
16,
315,
718,
2
] |
tend = '' while t[-1] in ('*','&') : tend = tend + t[-1] t = t[:-1] t = string.translate(str(t), self.transtable)[2:] t += tend if ( string.translate(str(self.genTypeName(noPubTypeAttrs['id'])), self.transtable) not in self.generated_shadow_classes ): c += self.genClassShadow(noPubTypeAttrs)
|
cmem = self.genTypeName(noPubTypeAttrs['id'],const=True,colon=True) if cmem != cls and cmem not in inner_shadows : inner_shadows[cmem] = string.translate(str(cmem), self.transtable) c += self.genClassShadow(noPubTypeAttrs, inner + 1) ikeys = inner_shadows.keys() ikeys.sort(lambda x,y : len(y) - len(x)) for ikey in ikeys : if t.find(ikey) == 0 : t = t.replace(ikey, inner_shadows[ikey]) elif t.find(ikey[2:]) != -1 : t = t.replace(ikey[2:], inner_shadows[ikey])
|
def genClassShadow(self, attrs, inner = 0 ) : bases = self.getBases( attrs['id'] ) if inner : cls = attrs['name'] else : cls = self.genTypeName(attrs['id']) clt = string.translate(str(cls), self.transtable) self.generated_shadow_classes.append(clt) typ = self.xref[attrs['id']]['elem'].lower() indent = inner * 2 * ' ' if typ == 'enumeration' : c = indent + 'enum %s {};\n' % clt else: if not bases : c = indent + '%s %s {\n%s public:\n' % (typ, clt, indent) else : c = indent + '%s %s : ' % (typ, clt) for b in bases : if b.get('virtual','') == '1' : acc = 'virtual ' + b['access'] else : acc = b['access'] c += indent + '%s %s' % ( acc , self.genTypeName(b['type'],colon=True) ) if b is not bases[-1] : c += ', ' c += indent + ' {\n' + indent +' public:\n' c += indent + ' %s();\n' % (clt) if self.isClassVirtual( attrs ) : c += indent + ' virtual ~%s() throw();\n' % ( clt ) members = attrs.get('members','') memList = members.split() for m in memList : member = self.xref[m] if member['elem'] in ('Class','Struct'): c += self.genClassShadow(member['attrs'], inner + 1) for m in memList : member = self.xref[m] if member['elem'] in ('Field',) : a = member['attrs'] t = self.genTypeName(a['type'],colon=True,const=True) noPublicType = self.checkAccessibleType(self.xref[a['type']]) if ( noPublicType ): noPubTypeAttrs = self.xref[noPublicType]['attrs'] tend = '' while t[-1] in ('*','&') : tend = tend + t[-1] t = t[:-1] t = string.translate(str(t), self.transtable)[2:] t += tend if ( string.translate(str(self.genTypeName(noPubTypeAttrs['id'])), self.transtable) not in self.generated_shadow_classes ): c += self.genClassShadow(noPubTypeAttrs) if t[-1] == ']' : c += indent + ' %s %s;\n' % ( t[:t.find('[')], a['name']+t[t.find('['):] ) elif t.find(')(') != -1 : c += indent + ' %s;\n' % ( t.replace(')(', ' %s)('%a['name'])) else : c += indent + ' %s %s;\n' % ( t, a['name'] ) c += indent + '};\n' return c
|
4606eac13282958ef263c8105cadb904bd2a80dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4350/4606eac13282958ef263c8105cadb904bd2a80dc/gendict.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
797,
12957,
12,
2890,
16,
3422,
16,
3443,
273,
374,
262,
294,
8337,
273,
365,
18,
588,
38,
3304,
12,
3422,
3292,
350,
3546,
262,
309,
3443,
294,
2028,
273,
3422,
3292,
529,
3546,
469,
377,
294,
2028,
273,
365,
18,
4507,
7947,
12,
7039,
3292,
350,
19486,
927,
88,
273,
533,
18,
13929,
12,
701,
12,
6429,
3631,
365,
18,
13171,
15021,
13,
365,
18,
11168,
67,
19119,
67,
4701,
18,
6923,
12,
830,
88,
13,
3815,
273,
365,
18,
22044,
63,
7039,
3292,
350,
3546,
23962,
10037,
29489,
8167,
1435,
3504,
273,
3443,
380,
576,
380,
296,
296,
309,
3815,
422,
296,
7924,
7067,
11,
294,
276,
273,
3504,
397,
296,
7924,
738,
87,
2618,
9747,
82,
11,
738,
927,
88,
469,
30,
309,
486,
8337,
294,
276,
273,
3504,
397,
1995,
87,
738,
87,
18890,
82,
9,
87,
225,
1071,
5581,
82,
11,
738,
261,
12846,
16,
927,
88,
16,
3504,
13,
469,
294,
276,
273,
3504,
397,
1995,
87,
738,
87,
294,
296,
738,
261,
12846,
16,
927,
88,
13,
364,
324,
316,
8337,
294,
309,
324,
18,
588,
2668,
12384,
17023,
6134,
422,
296,
21,
11,
294,
4078,
273,
296,
12384,
296,
397,
324,
3292,
3860,
3546,
469,
12900,
294,
4078,
273,
324,
3292,
3860,
3546,
276,
1011,
3504,
397,
1995,
87,
738,
87,
11,
738,
261,
4078,
269,
365,
18,
4507,
7947,
12,
70,
3292,
723,
17337,
22667,
33,
5510,
13,
262,
309,
324,
353,
486,
8337,
18919,
21,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
797,
12957,
12,
2890,
16,
3422,
16,
3443,
273,
374,
262,
294,
8337,
273,
365,
18,
588,
38,
3304,
12,
3422,
3292,
350,
3546,
262,
309,
3443,
294,
2028,
273,
3422,
3292,
529,
3546,
469,
377,
294,
2028,
273,
365,
18,
4507,
7947,
12,
7039,
3292,
350,
19486,
927,
88,
273,
533,
18,
13929,
12,
701,
12,
6429,
3631,
365,
18,
13171,
15021,
13,
365,
18,
11168,
67,
19119,
67,
4701,
18,
6923,
12,
830,
88,
13,
3815,
273,
365,
18,
22044,
63,
7039,
3292,
350,
3546,
23962,
10037,
29489,
8167,
1435,
3504,
273,
3443,
380,
576,
380,
296,
296,
309,
3815,
422,
296,
7924,
7067,
11,
294,
276,
273,
3504,
397,
296,
7924,
738,
87,
2618,
2
] |
if len(args) == 3 and stamp1 in ('-f', '-force'):
|
if len(args) == 3 and far_stamp in ('-f', '-force'):
|
def main(args): if not args: raise LocalError('Must specify help, read or write as first argument') if args[0] in ('-help', '--help', '-h', 'help'): print __doc__ return PATCH_DIR = 'patches' if not os.path.isdir(os.path.join(os.getcwd(), '.muddle')): raise LocalError('** Oops - not at the top level of a muddle build tree') if args[0] == 'write': args = args[1:] if len(args) < 3: raise LocalError('Must specify two stamp files and a "patch" directory') if len(args) > 4: raise LocalError('Too many arguments') stamp1 = args[-3] stamp2 = args[-2] patch_dir = args[-1] if len(args) == 3 and stamp1 in ('-f', '-force'): raise LocalError('Must specify two stamp files and a "patch" directory') if len(args) == 4: if args[0] in ('-f', '-force'): if os.path.exists(patch_dir): shutil.rmtree(patch_dir) else: raise LocalError('Unexpected switch "%s" (not -f)'%args[0]) write(stamp1, stamp2, patch_dir) elif args[0] == 'read': args = args[1:] if len(args) != 1: raise LocalError('Must specify the "patch" directory') else: read(args[0]) else: raise LocalError('Must specify help, read or write as first argument')
|
81ef31672eddce2e0b2103cab34a52e10be1db58 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4427/81ef31672eddce2e0b2103cab34a52e10be1db58/muddle_patch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
309,
486,
833,
30,
1002,
3566,
668,
2668,
10136,
4800,
2809,
16,
855,
578,
1045,
487,
1122,
1237,
6134,
225,
309,
833,
63,
20,
65,
316,
7707,
17,
5201,
2187,
3534,
5201,
2187,
2400,
76,
2187,
296,
5201,
11,
4672,
1172,
1001,
2434,
972,
327,
225,
21298,
67,
4537,
273,
296,
30278,
11,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
588,
11089,
9334,
2418,
13297,
449,
298,
26112,
30,
1002,
3566,
668,
2668,
636,
531,
4473,
300,
486,
622,
326,
1760,
1801,
434,
279,
4129,
449,
298,
1361,
2151,
6134,
225,
309,
833,
63,
20,
65,
422,
296,
2626,
4278,
225,
833,
273,
833,
63,
21,
26894,
309,
562,
12,
1968,
13,
411,
890,
30,
1002,
3566,
668,
2668,
10136,
4800,
2795,
14429,
1390,
471,
279,
315,
2272,
6,
1867,
6134,
309,
562,
12,
1968,
13,
405,
1059,
30,
1002,
3566,
668,
2668,
10703,
4906,
1775,
6134,
225,
14429,
21,
565,
273,
833,
18919,
23,
65,
14429,
22,
565,
273,
833,
18919,
22,
65,
4729,
67,
1214,
273,
833,
18919,
21,
65,
225,
309,
562,
12,
1968,
13,
422,
890,
471,
10247,
67,
14317,
316,
7707,
17,
74,
2187,
2400,
5734,
11,
4672,
1002,
3566,
668,
2668,
10136,
4800,
2795,
14429,
1390,
471,
279,
315,
2272,
6,
1867,
6134,
225,
309,
562,
12,
1968,
13,
422,
1059,
30,
309,
833,
63,
20,
65,
316,
7707,
17,
74,
2187,
2400,
5734,
11,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
309,
486,
833,
30,
1002,
3566,
668,
2668,
10136,
4800,
2809,
16,
855,
578,
1045,
487,
1122,
1237,
6134,
225,
309,
833,
63,
20,
65,
316,
7707,
17,
5201,
2187,
3534,
5201,
2187,
2400,
76,
2187,
296,
5201,
11,
4672,
1172,
1001,
2434,
972,
327,
225,
21298,
67,
4537,
273,
296,
30278,
11,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
588,
11089,
9334,
2418,
13297,
449,
298,
26112,
30,
1002,
3566,
668,
2668,
636,
531,
4473,
300,
486,
622,
326,
1760,
1801,
434,
279,
4129,
449,
298,
1361,
2151,
6134,
225,
309,
833,
63,
20,
65,
422,
296,
2626,
4278,
225,
833,
273,
2
] |
if p2cread != -1: p2cread.Close() if c2pwrite != -1: c2pwrite.Close() if errwrite != -1: errwrite.Close()
|
def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session): """Execute program (MS Windows version)"""
|
bfc915efb455b57176af3c3bc99ee5617b68e12d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/bfc915efb455b57176af3c3bc99ee5617b68e12d/subprocess.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
67,
3624,
12,
2890,
16,
833,
16,
9070,
16,
675,
4177,
67,
4293,
16,
1746,
67,
74,
2377,
16,
7239,
16,
1550,
16,
26182,
67,
31276,
16,
11850,
1376,
16,
6710,
7133,
16,
5972,
16,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
896,
16,
276,
22,
84,
2626,
16,
393,
896,
16,
393,
2626,
16,
10197,
67,
13991,
67,
29659,
16,
10197,
67,
1937,
67,
2704,
67,
3184,
4672,
3536,
5289,
5402,
261,
3537,
8202,
1177,
15574,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
67,
3624,
12,
2890,
16,
833,
16,
9070,
16,
675,
4177,
67,
4293,
16,
1746,
67,
74,
2377,
16,
7239,
16,
1550,
16,
26182,
67,
31276,
16,
11850,
1376,
16,
6710,
7133,
16,
5972,
16,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
896,
16,
276,
22,
84,
2626,
16,
393,
896,
16,
393,
2626,
16,
10197,
67,
13991,
67,
29659,
16,
10197,
67,
1937,
67,
2704,
67,
3184,
4672,
3536,
5289,
5402,
261,
3537,
8202,
1177,
15574,
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
] |
|
'unset key'
|
def _get_temp_file(self): return '/tmp/qtgnuplot.tmp.%d' % random.random()
|
8366577ca2d3703e7d654e659403126d5dc32986 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6471/8366577ca2d3703e7d654e659403126d5dc32986/qtgnuplot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5814,
67,
768,
12,
2890,
4672,
327,
1173,
5645,
19,
23311,
1600,
89,
4032,
18,
5645,
7866,
72,
11,
738,
2744,
18,
9188,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
588,
67,
5814,
67,
768,
12,
2890,
4672,
327,
1173,
5645,
19,
23311,
1600,
89,
4032,
18,
5645,
7866,
72,
11,
738,
2744,
18,
9188,
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
] |
|
return MySQLdb.connect(host=mysql_host, user=mysql_user, passwd=mysql_passwd, db=mysql_db)
|
return MySQLdb.connect(host=mysql_host, user=mysql_user, passwd=mysql_passwd, db=mysql_db, init_command='SET NAMES utf8')
|
def getDatabaseConnection(): """Returns a mySQL connection to mythconverg database.""" return MySQLdb.connect(host=mysql_host, user=mysql_user, passwd=mysql_passwd, db=mysql_db)
|
1b753e22ac6347b19aca6f86478dee874c8772b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/1b753e22ac6347b19aca6f86478dee874c8772b8/mythburn.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11263,
1952,
13332,
3536,
1356,
279,
3399,
3997,
1459,
358,
3399,
451,
591,
502,
75,
2063,
12123,
327,
13485,
1966,
18,
3612,
12,
2564,
33,
12527,
67,
2564,
16,
729,
33,
12527,
67,
1355,
16,
19093,
33,
12527,
67,
24002,
16,
1319,
33,
12527,
67,
1966,
16,
1208,
67,
3076,
2218,
4043,
6048,
55,
7718,
28,
6134,
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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,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11263,
1952,
13332,
3536,
1356,
279,
3399,
3997,
1459,
358,
3399,
451,
591,
502,
75,
2063,
12123,
327,
13485,
1966,
18,
3612,
12,
2564,
33,
12527,
67,
2564,
16,
729,
33,
12527,
67,
1355,
16,
19093,
33,
12527,
67,
24002,
16,
1319,
33,
12527,
67,
1966,
16,
1208,
67,
3076,
2218,
4043,
6048,
55,
7718,
28,
6134,
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
] |
toPml( self, '/tmp/main-debug.pml' ) pass
|
from os import environ user = environ['USER'] toPml(self, '/tmp/main-debug-%s.pml' % user)
|
def main(self, *args, **kwds): if self.debug: from configurationSaver import toPml toPml( self, '/tmp/main-debug.pml' ) pass # end if super(WebApplication, self).main(*args, **kwds) return
|
6839a948f8326a36c28347ebafa717885867ea21 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/578/6839a948f8326a36c28347ebafa717885867ea21/WebApplication.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
309,
365,
18,
4148,
30,
628,
1664,
55,
21851,
1930,
358,
52,
781,
628,
1140,
1930,
5473,
729,
273,
5473,
3292,
4714,
3546,
358,
52,
781,
12,
2890,
16,
1173,
5645,
19,
5254,
17,
4148,
6456,
87,
18,
84,
781,
11,
738,
729,
13,
468,
679,
309,
2240,
12,
4079,
3208,
16,
365,
2934,
5254,
30857,
1968,
16,
2826,
25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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,
2774,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
309,
365,
18,
4148,
30,
628,
1664,
55,
21851,
1930,
358,
52,
781,
628,
1140,
1930,
5473,
729,
273,
5473,
3292,
4714,
3546,
358,
52,
781,
12,
2890,
16,
1173,
5645,
19,
5254,
17,
4148,
6456,
87,
18,
84,
781,
11,
738,
729,
13,
468,
679,
309,
2240,
12,
4079,
3208,
16,
365,
2934,
5254,
30857,
1968,
16,
2826,
25577,
13,
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
] |
assert False
|
self.clearStackToTableContext() self.parser.insertElement(name, attributes) self.switchInsertionMode("inTableBody")
|
def startTagRowGroup(self, name, attributes={}): # XXX need a better name... emit tokens... assert False
|
e64c800f78b70cc9e68254242b8f6e3481c29af2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/e64c800f78b70cc9e68254242b8f6e3481c29af2/parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
1999,
1114,
12,
2890,
16,
508,
16,
1677,
12938,
4672,
468,
11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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
1999,
1114,
12,
2890,
16,
508,
16,
1677,
12938,
4672,
468,
11329,
1608,
279,
7844,
508,
2777,
3626,
2430,
2777,
1815,
1083,
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
] |
The walk is performed in breadth-first order. This method is a
|
The walk is performed in depth-first order. This method is a
|
def walk(self): """Walk over the message tree, yielding each subpart.
|
65a642dfc157ed521fa7e3aa4d5ad2ffbdd8bce3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/65a642dfc157ed521fa7e3aa4d5ad2ffbdd8bce3/Message.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
12,
2890,
4672,
3536,
9463,
1879,
326,
883,
2151,
16,
31009,
1517,
720,
2680,
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,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5442,
12,
2890,
4672,
3536,
9463,
1879,
326,
883,
2151,
16,
31009,
1517,
720,
2680,
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,
-100,
-100
] |
if not exit_pid: launched = 1
|
if exit_pid != pid: launched = 1
|
def launch(self): """Launch external editor""" editor = self.getEditorPath() file = self.body_file last_fstat = os.stat(file) pid = os.spawnl(os.P_NOWAIT, editor, editor, file) use_locks = int(self.options.get('use_locks')) if use_locks: self.lock() exit_pid = 0 save_interval = self.config.getfloat('general', 'save_interval') launched = 0 while exit_pid != pid: sleep(save_interval or 2) try: exit_pid, exit_status = os.waitpid(pid, os.WNOHANG) if not exit_pid: launched = 1 except OSError: exit_pid = pid fstat = os.stat(file) if (exit_pid == pid or save_interval) \ and fstat[stat.ST_MTIME] != last_fstat[stat.ST_MTIME]: # File was modified self.saved = self.putChanges() last_fstat = fstat if not launched: fatalError(('Editor "%s" did not launch.\n' 'It may not be a graphical editor.') % editor) if use_locks: self.unlock() if not self.saved and has_tk(): from tkMessageBox import askyesno if askyesno('Zope External Editor', 'File not saved to Zope.\nReopen local copy?'): has_tk() # ugh, keeps tk happy self.launch() else: self.clean_up = 0 # Keep temp file has_tk() # ugh
|
d80276eb31deb2d001be9fd87020c0ea3bb854e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/d80276eb31deb2d001be9fd87020c0ea3bb854e4/zopeedit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
12,
2890,
4672,
3536,
9569,
3903,
4858,
8395,
4858,
273,
365,
18,
588,
6946,
743,
1435,
585,
273,
365,
18,
3432,
67,
768,
1142,
67,
74,
5642,
273,
1140,
18,
5642,
12,
768,
13,
4231,
273,
1140,
18,
1752,
9533,
80,
12,
538,
18,
52,
67,
3417,
19046,
16,
4858,
16,
4858,
16,
585,
13,
999,
67,
23581,
273,
509,
12,
2890,
18,
2116,
18,
588,
2668,
1202,
67,
23581,
26112,
225,
309,
999,
67,
23581,
30,
365,
18,
739,
1435,
225,
2427,
67,
6610,
273,
374,
1923,
67,
6624,
273,
365,
18,
1425,
18,
588,
5659,
2668,
12259,
2187,
296,
5688,
67,
6624,
6134,
28786,
273,
374,
225,
1323,
2427,
67,
6610,
480,
4231,
30,
5329,
12,
5688,
67,
6624,
578,
576,
13,
225,
775,
30,
2427,
67,
6610,
16,
2427,
67,
2327,
273,
1140,
18,
7048,
6610,
12,
6610,
16,
1140,
18,
59,
3417,
44,
3388,
13,
309,
2427,
67,
6610,
480,
4231,
30,
28786,
273,
404,
1335,
10002,
30,
2427,
67,
6610,
273,
4231,
225,
284,
5642,
273,
1140,
18,
5642,
12,
768,
13,
309,
261,
8593,
67,
6610,
422,
4231,
578,
1923,
67,
6624,
13,
521,
471,
284,
5642,
63,
5642,
18,
882,
67,
49,
4684,
65,
480,
1142,
67,
74,
5642,
63,
5642,
18,
882,
67,
49,
4684,
14542,
468,
1387,
1703,
4358,
365,
18,
14077,
273,
365,
18,
458,
7173,
1435,
1142,
67,
74,
5642,
273,
284,
5642,
225,
309,
486,
28786,
30,
10081,
668,
12,
2668,
6946,
2213,
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,
8037,
12,
2890,
4672,
3536,
9569,
3903,
4858,
8395,
4858,
273,
365,
18,
588,
6946,
743,
1435,
585,
273,
365,
18,
3432,
67,
768,
1142,
67,
74,
5642,
273,
1140,
18,
5642,
12,
768,
13,
4231,
273,
1140,
18,
1752,
9533,
80,
12,
538,
18,
52,
67,
3417,
19046,
16,
4858,
16,
4858,
16,
585,
13,
999,
67,
23581,
273,
509,
12,
2890,
18,
2116,
18,
588,
2668,
1202,
67,
23581,
26112,
225,
309,
999,
67,
23581,
30,
365,
18,
739,
1435,
225,
2427,
67,
6610,
273,
374,
1923,
67,
6624,
273,
365,
18,
1425,
18,
588,
5659,
2668,
12259,
2187,
296,
5688,
67,
6624,
6134,
28786,
273,
374,
225,
1323,
2427,
67,
6610,
480,
4231,
30,
5329,
2
] |
self.insert_none_breaking_blanks = 1
|
self.insert_non_breaking_blanks = 1
|
def visit_literal_block(self, node): """Render a literal block.""" # environments and packages to typeset literal blocks packages = {'listing': r'\usepackage{moreverb}', 'lstlisting': r'\usepackage{listings}', 'Verbatim': r'\usepackage{fancyvrb}', # 'verbatim': '', 'verbatimtab': r'\usepackage{moreverb}'}
|
1b8dac55202344263da9188c7d59f13cb6f789ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/1b8dac55202344263da9188c7d59f13cb6f789ae/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
13107,
67,
2629,
12,
2890,
16,
756,
4672,
3536,
3420,
279,
7158,
1203,
12123,
468,
15900,
471,
5907,
358,
1953,
278,
7158,
4398,
5907,
273,
13666,
21228,
4278,
436,
8314,
1202,
5610,
95,
10161,
16629,
24259,
296,
16923,
21228,
4278,
436,
8314,
1202,
5610,
95,
1098,
899,
24259,
296,
16281,
22204,
4278,
436,
8314,
1202,
5610,
95,
74,
12514,
90,
6731,
24259,
468,
296,
16629,
22204,
4278,
10226,
296,
16629,
22204,
7032,
4278,
436,
8314,
1202,
5610,
95,
10161,
16629,
1713,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
13107,
67,
2629,
12,
2890,
16,
756,
4672,
3536,
3420,
279,
7158,
1203,
12123,
468,
15900,
471,
5907,
358,
1953,
278,
7158,
4398,
5907,
273,
13666,
21228,
4278,
436,
8314,
1202,
5610,
95,
10161,
16629,
24259,
296,
16923,
21228,
4278,
436,
8314,
1202,
5610,
95,
1098,
899,
24259,
296,
16281,
22204,
4278,
436,
8314,
1202,
5610,
95,
74,
12514,
90,
6731,
24259,
468,
296,
16629,
22204,
4278,
10226,
296,
16629,
22204,
7032,
4278,
436,
8314,
1202,
5610,
95,
10161,
16629,
1713,
97,
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
] |
data_files=convert_data_files([ 'pywin32.chm',
|
data_files=convert_optional_data_files([ 'PyWin32.chm', ]) + convert_data_files([
|
def convert_data_files(files): base_dir = "Lib/site-packages" ret = [] for file in files: file = os.path.normpath(file) if file.find("*") >= 0: flist = FileList() flist.findall(os.path.dirname(file)) flist.include_pattern(os.path.basename(file)) # We never want CVS flist.exclude_pattern(re.compile(".*\\\\CVS\\\\"), is_regex=1) if not flist.files: raise RuntimeError, "No files match '%s'" % file files_use = flist.files else: if not os.path.isfile(file): raise RuntimeError, "No file '%s'" % file files_use = (file,) path_use = os.path.dirname(file) if path_use.startswith("com/") or path_use.startswith("com\\"): path_use = path_use[4:] path_use = os.path.join(base_dir, path_use) ret.append( (path_use, files_use)) return ret
|
382c6b5f358401e1c35e1f995f2ca0bed522c186 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/382c6b5f358401e1c35e1f995f2ca0bed522c186/setup_win32all.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
892,
67,
2354,
12,
2354,
4672,
1026,
67,
1214,
273,
315,
5664,
19,
4256,
17,
10308,
6,
325,
273,
5378,
364,
585,
316,
1390,
30,
585,
273,
1140,
18,
803,
18,
7959,
803,
12,
768,
13,
309,
585,
18,
4720,
2932,
7388,
13,
1545,
374,
30,
284,
1098,
273,
1387,
682,
1435,
284,
1098,
18,
4720,
454,
12,
538,
18,
803,
18,
12287,
12,
768,
3719,
284,
1098,
18,
6702,
67,
4951,
12,
538,
18,
803,
18,
13909,
12,
768,
3719,
468,
1660,
5903,
2545,
385,
14640,
284,
1098,
18,
10157,
67,
4951,
12,
266,
18,
11100,
2932,
4509,
13011,
39,
14640,
13011,
6,
3631,
353,
67,
7584,
33,
21,
13,
309,
486,
284,
1098,
18,
2354,
30,
1002,
7265,
16,
315,
2279,
1390,
845,
1995,
87,
4970,
738,
585,
1390,
67,
1202,
273,
284,
1098,
18,
2354,
469,
30,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
768,
4672,
1002,
7265,
16,
315,
2279,
585,
1995,
87,
4970,
738,
585,
1390,
67,
1202,
273,
261,
768,
16,
13,
589,
67,
1202,
273,
1140,
18,
803,
18,
12287,
12,
768,
13,
309,
589,
67,
1202,
18,
17514,
1918,
2932,
832,
4898,
13,
578,
589,
67,
1202,
18,
17514,
1918,
2932,
832,
27576,
4672,
589,
67,
1202,
273,
589,
67,
1202,
63,
24,
26894,
589,
67,
1202,
273,
1140,
18,
803,
18,
5701,
12,
1969,
67,
1214,
16,
589,
67,
1202,
13,
325,
18,
6923,
12,
261,
803,
67,
1202,
16,
1390,
67,
1202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
892,
67,
2354,
12,
2354,
4672,
1026,
67,
1214,
273,
315,
5664,
19,
4256,
17,
10308,
6,
325,
273,
5378,
364,
585,
316,
1390,
30,
585,
273,
1140,
18,
803,
18,
7959,
803,
12,
768,
13,
309,
585,
18,
4720,
2932,
7388,
13,
1545,
374,
30,
284,
1098,
273,
1387,
682,
1435,
284,
1098,
18,
4720,
454,
12,
538,
18,
803,
18,
12287,
12,
768,
3719,
284,
1098,
18,
6702,
67,
4951,
12,
538,
18,
803,
18,
13909,
12,
768,
3719,
468,
1660,
5903,
2545,
385,
14640,
284,
1098,
18,
10157,
67,
4951,
12,
266,
18,
11100,
2932,
4509,
13011,
39,
14640,
13011,
6,
3631,
353,
67,
7584,
33,
21,
13,
309,
486,
284,
1098,
18,
2
] |
value += ' ' + DateTime().timezone()
|
original = value
|
def set(self, instance, value, **kwargs): """ Check if value is an actual date/time value. If not, attempt to convert it to one; otherwise, set to None. Assign all properties passed as kwargs to object. """ if not value: value = None elif not isinstance(value, DateTime): try: # strings returned from the widget need a time zone, # which is assumed to be the local one # see http://dev.plone.org/plone/ticket/10141 value += ' ' + DateTime().timezone() value = DateTime(value) except DateTime.DateTimeError: value = None
|
bb8d1a9f35d189695945c654be2958a287695261 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12165/bb8d1a9f35d189695945c654be2958a287695261/Field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
4333,
4672,
3536,
2073,
309,
460,
353,
392,
3214,
1509,
19,
957,
460,
18,
971,
486,
16,
4395,
358,
1765,
518,
358,
1245,
31,
3541,
16,
444,
358,
599,
18,
12093,
777,
1790,
2275,
487,
1205,
358,
733,
18,
3536,
309,
486,
460,
30,
460,
273,
599,
1327,
486,
1549,
12,
1132,
16,
3716,
4672,
775,
30,
468,
2064,
2106,
628,
326,
3604,
1608,
279,
813,
4157,
16,
468,
1492,
353,
12034,
358,
506,
326,
1191,
1245,
468,
2621,
1062,
2207,
5206,
18,
412,
476,
18,
3341,
19,
412,
476,
19,
16282,
19,
15168,
9803,
2282,
273,
460,
460,
273,
3716,
12,
1132,
13,
1335,
3716,
18,
5096,
668,
30,
460,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
4333,
4672,
3536,
2073,
309,
460,
353,
392,
3214,
1509,
19,
957,
460,
18,
971,
486,
16,
4395,
358,
1765,
518,
358,
1245,
31,
3541,
16,
444,
358,
599,
18,
12093,
777,
1790,
2275,
487,
1205,
358,
733,
18,
3536,
309,
486,
460,
30,
460,
273,
599,
1327,
486,
1549,
12,
1132,
16,
3716,
4672,
775,
30,
468,
2064,
2106,
628,
326,
3604,
1608,
279,
813,
4157,
16,
468,
1492,
353,
12034,
358,
506,
326,
1191,
1245,
468,
2621,
1062,
2207,
5206,
18,
412,
476,
18,
3341,
19,
412,
476,
19,
16282,
19,
15168,
9803,
2282,
273,
460,
460,
273,
3716,
12,
1132,
13,
1335,
3716,
18,
5096,
668,
2
] |
def __init__(self, wsgi_iterator):
|
def __init__(self, wsgi_iterator, check_start_response):
|
def __init__(self, wsgi_iterator): self.original_iterator = wsgi_iterator self.iterator = iter(wsgi_iterator) self.closed = False
|
9b4d86328e40817bcdcbd5619e8b438dd6e7c764 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/9b4d86328e40817bcdcbd5619e8b438dd6e7c764/lint.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
341,
17537,
67,
9838,
16,
866,
67,
1937,
67,
2740,
4672,
365,
18,
8830,
67,
9838,
273,
341,
17537,
67,
9838,
365,
18,
9838,
273,
1400,
12,
28539,
67,
9838,
13,
365,
18,
12204,
273,
1083,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
341,
17537,
67,
9838,
16,
866,
67,
1937,
67,
2740,
4672,
365,
18,
8830,
67,
9838,
273,
341,
17537,
67,
9838,
365,
18,
9838,
273,
1400,
12,
28539,
67,
9838,
13,
365,
18,
12204,
273,
1083,
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
] |
char.socket.sysmessage('Your gm page has been deleted.', 0x846) player.socket.sysmessage('You remove the page.', 0x846) player.log(LOG_MESSAGE, "%s deletes gm page from %s (%s).\n" % (player.name, char.name, self.account))
|
char.socket.sysmessage(tr('Your gm page has been deleted.'), 0x846) player.socket.sysmessage(tr('You remove the page.'), 0x846) player.log(LOG_MESSAGE, tr("%s deletes gm page from %s (%s).\n") % (player.name, char.name, self.account)) pages_gump(player)
|
def details_response(self, player, response): if response.button == 0: return char = wolfpack.findchar(self.serial) if not char: return # Go to character if response.button == 1: player.removefromview() player.moveto(char.pos) player.update() player.socket.resendworld() # Bring character elif response.button == 2: char.removefromview() char.moveto(player.pos) char.update() if char.socket: char.socket.resendworld()
|
d8b7b7c1b9e926bd4732e104ef67fe1e1cc770bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d8b7b7c1b9e926bd4732e104ef67fe1e1cc770bf/pages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3189,
67,
2740,
12,
2890,
16,
7291,
16,
766,
4672,
309,
766,
18,
5391,
422,
374,
30,
327,
225,
1149,
273,
341,
355,
74,
2920,
18,
4720,
3001,
12,
2890,
18,
8818,
13,
225,
309,
486,
1149,
30,
327,
225,
468,
4220,
358,
3351,
309,
766,
18,
5391,
422,
404,
30,
7291,
18,
4479,
2080,
1945,
1435,
7291,
18,
81,
1527,
11453,
12,
3001,
18,
917,
13,
7291,
18,
2725,
1435,
7291,
18,
7814,
18,
455,
409,
18179,
1435,
225,
468,
605,
8022,
3351,
1327,
766,
18,
5391,
422,
576,
30,
1149,
18,
4479,
2080,
1945,
1435,
1149,
18,
81,
1527,
11453,
12,
14872,
18,
917,
13,
1149,
18,
2725,
1435,
309,
1149,
18,
7814,
30,
1149,
18,
7814,
18,
455,
409,
18179,
1435,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3189,
67,
2740,
12,
2890,
16,
7291,
16,
766,
4672,
309,
766,
18,
5391,
422,
374,
30,
327,
225,
1149,
273,
341,
355,
74,
2920,
18,
4720,
3001,
12,
2890,
18,
8818,
13,
225,
309,
486,
1149,
30,
327,
225,
468,
4220,
358,
3351,
309,
766,
18,
5391,
422,
404,
30,
7291,
18,
4479,
2080,
1945,
1435,
7291,
18,
81,
1527,
11453,
12,
3001,
18,
917,
13,
7291,
18,
2725,
1435,
7291,
18,
7814,
18,
455,
409,
18179,
1435,
225,
468,
605,
8022,
3351,
1327,
766,
18,
5391,
422,
576,
30,
1149,
18,
4479,
2080,
1945,
1435,
1149,
18,
81,
1527,
11453,
12,
14872,
18,
917,
13,
1149,
18,
2725,
1435,
309,
1149,
18,
7814,
30,
1149,
18,
2
] |
def __init__(self, gski, uri, asnum, date, asn1):
|
def __init__(self, uri, asnum, date, asn1):
|
def __init__(self, gski, uri, asnum, date, asn1): assert len(asn1[0]) <= self.addr_type.bits x = 0L for y in asn1[0]: x = (x << 1) | y x <<= (self.addr_type.bits - len(asn1[0])) self.gski = gski self.uri = uri self.asn = asnum self.date = date self.prefix = self.addr_type(x) self.prefixlen = len(asn1[0]) self.max_prefixlen = self.prefixlen if asn1[1] is None else asn1[1]
|
1565073a89f0b0413e01d5f3cf538c7b947f2850 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/119/1565073a89f0b0413e01d5f3cf538c7b947f2850/roa-to-irr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2003,
16,
487,
2107,
16,
1509,
16,
12211,
21,
4672,
1815,
562,
12,
31432,
21,
63,
20,
5717,
1648,
365,
18,
4793,
67,
723,
18,
6789,
619,
273,
374,
48,
364,
677,
316,
12211,
21,
63,
20,
14542,
619,
273,
261,
92,
2296,
404,
13,
571,
677,
619,
22789,
261,
2890,
18,
4793,
67,
723,
18,
6789,
300,
562,
12,
31432,
21,
63,
20,
22643,
365,
18,
564,
15299,
273,
314,
7771,
77,
365,
18,
1650,
273,
2003,
365,
18,
31432,
273,
487,
2107,
365,
18,
712,
273,
1509,
365,
18,
3239,
273,
365,
18,
4793,
67,
723,
12,
92,
13,
365,
18,
3239,
1897,
273,
562,
12,
31432,
21,
63,
20,
5717,
365,
18,
1896,
67,
3239,
1897,
273,
365,
18,
3239,
1897,
309,
12211,
21,
63,
21,
65,
353,
599,
469,
12211,
21,
63,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2003,
16,
487,
2107,
16,
1509,
16,
12211,
21,
4672,
1815,
562,
12,
31432,
21,
63,
20,
5717,
1648,
365,
18,
4793,
67,
723,
18,
6789,
619,
273,
374,
48,
364,
677,
316,
12211,
21,
63,
20,
14542,
619,
273,
261,
92,
2296,
404,
13,
571,
677,
619,
22789,
261,
2890,
18,
4793,
67,
723,
18,
6789,
300,
562,
12,
31432,
21,
63,
20,
22643,
365,
18,
564,
15299,
273,
314,
7771,
77,
365,
18,
1650,
273,
2003,
365,
18,
31432,
273,
487,
2107,
365,
18,
712,
273,
1509,
365,
18,
3239,
273,
365,
18,
4793,
67,
723,
12,
92,
13,
365,
18,
3239,
1897,
273,
562,
12,
31432,
21,
63,
20,
2
] |
getattr(itk.Image, '%s%s' % (short_type, dim))].New() self._reader_type = short_type self._reader_dim = dim
|
getattr(itk.Image, reader_type_text)].New() self._reader_type_text = reader_type_text print reader_type_text
|
def execute_module(self): if self._config.autotype: self._autotype_reader.SetFileName(self._config.filename) self._autotype_reader.UpdateOutputInformation() iio = self._autotype_reader.GetImageIO() comp_type = iio.GetComponentTypeAsString(iio.GetComponentType()) if comp_type == 'short': comp_type = 'signed_short' # lc will convert e.g. unsigned_char to UC short_type = ''.join([i[0].upper() for i in comp_type.split('_')]) print comp_type, short_type dim = iio.GetNumberOfDimensions()
|
07157f0e860fb6ba55406b135684d1d0c9f0eadc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/07157f0e860fb6ba55406b135684d1d0c9f0eadc/ITKReader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
2978,
12,
2890,
4672,
309,
365,
6315,
1425,
18,
5854,
10570,
30,
365,
6315,
5854,
10570,
67,
10530,
18,
694,
4771,
12,
2890,
6315,
1425,
18,
3459,
13,
365,
6315,
5854,
10570,
67,
10530,
18,
1891,
1447,
5369,
1435,
277,
1594,
273,
365,
6315,
5854,
10570,
67,
10530,
18,
967,
2040,
4294,
1435,
1161,
67,
723,
273,
277,
1594,
18,
967,
28116,
8092,
12,
77,
1594,
18,
967,
28116,
10756,
309,
1161,
67,
723,
422,
296,
6620,
4278,
1161,
67,
723,
273,
296,
5679,
67,
6620,
11,
468,
9109,
903,
1765,
425,
18,
75,
18,
9088,
67,
3001,
358,
587,
39,
3025,
67,
723,
273,
875,
18,
5701,
3816,
77,
63,
20,
8009,
5797,
1435,
364,
277,
316,
1161,
67,
723,
18,
4939,
2668,
4623,
13,
5717,
1172,
1161,
67,
723,
16,
3025,
67,
723,
2464,
273,
277,
1594,
18,
967,
9226,
10796,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
2978,
12,
2890,
4672,
309,
365,
6315,
1425,
18,
5854,
10570,
30,
365,
6315,
5854,
10570,
67,
10530,
18,
694,
4771,
12,
2890,
6315,
1425,
18,
3459,
13,
365,
6315,
5854,
10570,
67,
10530,
18,
1891,
1447,
5369,
1435,
277,
1594,
273,
365,
6315,
5854,
10570,
67,
10530,
18,
967,
2040,
4294,
1435,
1161,
67,
723,
273,
277,
1594,
18,
967,
28116,
8092,
12,
77,
1594,
18,
967,
28116,
10756,
309,
1161,
67,
723,
422,
296,
6620,
4278,
1161,
67,
723,
273,
296,
5679,
67,
6620,
11,
468,
9109,
903,
1765,
425,
18,
75,
18,
9088,
67,
3001,
358,
587,
39,
3025,
67,
723,
273,
875,
18,
5701,
3816,
77,
63,
20,
8009,
5797,
1435,
364,
2
] |
os.system("killall -9 xenbaked") os.system("xenbaked --ms_per_sample=%d &" %
|
global kill_cmd global xenbaked_cmd os.system(kill_cmd) os.system(xenbaked_cmd + " --ms_per_sample=%d &" %
|
def start_xenbaked(): global options os.system("killall -9 xenbaked") # assumes that xenbaked is in your path os.system("xenbaked --ms_per_sample=%d &" % options.mspersample) time.sleep(1)
|
25cb94f3ca63c9d18a7714d2d089c6c1e0168c05 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/25cb94f3ca63c9d18a7714d2d089c6c1e0168c05/xenmon.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
92,
275,
70,
9477,
13332,
2552,
702,
225,
1140,
18,
4299,
2932,
16418,
454,
300,
29,
23048,
70,
9477,
7923,
468,
13041,
716,
23048,
70,
9477,
353,
316,
3433,
589,
1140,
18,
4299,
2932,
92,
275,
70,
9477,
1493,
959,
67,
457,
67,
6358,
5095,
72,
473,
6,
738,
702,
18,
959,
10422,
1511,
13,
813,
18,
19607,
12,
21,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
92,
275,
70,
9477,
13332,
2552,
702,
225,
1140,
18,
4299,
2932,
16418,
454,
300,
29,
23048,
70,
9477,
7923,
468,
13041,
716,
23048,
70,
9477,
353,
316,
3433,
589,
1140,
18,
4299,
2932,
92,
275,
70,
9477,
1493,
959,
67,
457,
67,
6358,
5095,
72,
473,
6,
738,
702,
18,
959,
10422,
1511,
13,
813,
18,
19607,
12,
21,
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
] |
command = "%s -f .pool %s"%(self.extractor, path)
|
command = "%s -f %s %s"%(self.extractor, self.poolSuffix, path)
|
def QueryDescriptors(self, id, ignoreCache=False, computeIfNotCached=False, keepCache=True) : if not ignoreCache: try : return Pool(file(self._poolPath(id))) except IOError, e : pass # Not found path=id # TODO: This should take the file given an id, by now using the path as id if self.path : linkName = os.path.join(self.path, id) try : os.symlink(path, linkName) path = linkName except: pass if self.extractor : command = "%s -f .pool %s"%(self.extractor, path) os.popen(command, 'r').read() try : return Pool(file(self._poolPath(id))) except IOError, e : pass # Not found raise FileMetadataSource.SongNotFoundException(id)
|
cbefa694a868fef3ff347b3d18f4b10f2a57e3d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1456/cbefa694a868fef3ff347b3d18f4b10f2a57e3d9/FileMetadataSource.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2770,
12705,
12,
2890,
16,
612,
16,
2305,
1649,
33,
8381,
16,
3671,
10288,
9839,
33,
8381,
16,
3455,
1649,
33,
5510,
13,
294,
309,
486,
2305,
1649,
30,
775,
294,
327,
8828,
12,
768,
12,
2890,
6315,
6011,
743,
12,
350,
20349,
1335,
8340,
16,
425,
294,
1342,
468,
2288,
1392,
589,
33,
350,
468,
2660,
30,
1220,
1410,
4862,
326,
585,
864,
392,
612,
16,
635,
2037,
1450,
326,
589,
487,
612,
309,
365,
18,
803,
294,
1692,
461,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
803,
16,
612,
13,
775,
294,
1140,
18,
21278,
12,
803,
16,
1692,
461,
13,
589,
273,
1692,
461,
1335,
30,
1342,
309,
365,
18,
26108,
294,
1296,
273,
2213,
87,
300,
74,
738,
87,
738,
87,
6,
17105,
2890,
18,
26108,
16,
365,
18,
6011,
5791,
16,
589,
13,
1140,
18,
84,
3190,
12,
3076,
16,
296,
86,
16063,
896,
1435,
775,
294,
327,
8828,
12,
768,
12,
2890,
6315,
6011,
743,
12,
350,
20349,
1335,
8340,
16,
425,
294,
1342,
468,
2288,
1392,
1002,
1387,
2277,
1830,
18,
55,
932,
3990,
12,
350,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2770,
12705,
12,
2890,
16,
612,
16,
2305,
1649,
33,
8381,
16,
3671,
10288,
9839,
33,
8381,
16,
3455,
1649,
33,
5510,
13,
294,
309,
486,
2305,
1649,
30,
775,
294,
327,
8828,
12,
768,
12,
2890,
6315,
6011,
743,
12,
350,
20349,
1335,
8340,
16,
425,
294,
1342,
468,
2288,
1392,
589,
33,
350,
468,
2660,
30,
1220,
1410,
4862,
326,
585,
864,
392,
612,
16,
635,
2037,
1450,
326,
589,
487,
612,
309,
365,
18,
803,
294,
1692,
461,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
803,
16,
612,
13,
775,
294,
1140,
18,
21278,
12,
803,
16,
1692,
461,
13,
589,
273,
1692,
461,
1335,
30,
1342,
309,
365,
18,
26108,
294,
1296,
2
] |
self.check_sizeof(class_oldstyle(), h + 3*p)
|
self.check_sizeof(class_oldstyle(), size(h + '3P'))
|
def method(): pass
|
9cbed723c019f67adc5f76d1f21ed8d14c9df22c /local1/tlut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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Function does the same as task_low_level_submission_tuple.
|
Function does the same as task_low_level_submission.
|
def task_low_level_submission_tuple(name, user, argv): """ Function does the same as task_low_level_submission_tuple. The only difference is that the arguments are passed as tuple """ def get_priority(argv): """Try to get the priority by analysing the arguments.""" priority = 0 try: stripped_argv = [arg for arg in argv if not arg.startswith('-') or arg.startswith('-P') or arg.startswith('--priority')] opts, args = getopt.gnu_getopt(stripped_argv, 'P:', ['priority=']) for opt in opts: if opt[0] in ('-P', '--priority'): priority = opt[1] except: pass return priority task_id = None try: if not name in CFG_BIBTASK_VALID_TASKS: raise StandardError('%s is not a valid task name' % name) priority = get_priority(argv) argv = tuple([os.path.join(CFG_BINDIR, name)] + list(argv)) ## submit task: task_id = run_sql("""INSERT INTO schTASK (proc,user, runtime,sleeptime,status,progress,arguments,priority) VALUES (%s,%s,NOW(),'','WAITING','',%s,%s)""", (name, user, marshal.dumps(argv), priority)) except Exception: register_exception() if task_id: run_sql("""DELETE FROM schTASK WHERE id=%s""", (task_id, )) raise return task_id
|
c4b3ee19245cd5957db0f354f04d26020de64b36 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/c4b3ee19245cd5957db0f354f04d26020de64b36/bibtask.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1562,
67,
821,
67,
2815,
67,
12684,
67,
8052,
12,
529,
16,
729,
16,
5261,
4672,
3536,
4284,
1552,
326,
1967,
487,
1562,
67,
821,
67,
2815,
67,
12684,
18,
1021,
1338,
7114,
353,
716,
326,
1775,
854,
2275,
487,
3193,
3536,
1652,
336,
67,
8457,
12,
19485,
4672,
3536,
7833,
358,
336,
326,
4394,
635,
12518,
310,
326,
1775,
12123,
4394,
273,
374,
775,
30,
13300,
67,
19485,
273,
306,
3175,
364,
1501,
316,
5261,
309,
486,
1501,
18,
17514,
1918,
2668,
17,
6134,
578,
1501,
18,
17514,
1918,
2668,
17,
52,
6134,
578,
1501,
18,
17514,
1918,
2668,
413,
8457,
6134,
65,
1500,
16,
833,
273,
336,
3838,
18,
1600,
89,
67,
588,
3838,
12,
6406,
1845,
67,
19485,
16,
296,
52,
30,
2187,
10228,
8457,
2218,
5717,
364,
2153,
316,
1500,
30,
309,
2153,
63,
20,
65,
316,
7707,
17,
52,
2187,
3534,
8457,
11,
4672,
4394,
273,
2153,
63,
21,
65,
1335,
30,
1342,
327,
4394,
225,
1562,
67,
350,
273,
599,
775,
30,
309,
486,
508,
316,
7577,
67,
38,
13450,
15580,
67,
5063,
67,
15580,
55,
30,
1002,
31160,
29909,
87,
353,
486,
279,
923,
1562,
508,
11,
738,
508,
13,
225,
4394,
273,
336,
67,
8457,
12,
19485,
13,
5261,
273,
3193,
3816,
538,
18,
803,
18,
5701,
12,
19727,
67,
2708,
7937,
16,
508,
25887,
397,
666,
12,
19485,
3719,
225,
7541,
4879,
1562,
30,
1562,
67,
350,
273,
1086,
67,
4669,
2932,
3660,
11356,
12421,
18551,
15580,
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,
1562,
67,
821,
67,
2815,
67,
12684,
67,
8052,
12,
529,
16,
729,
16,
5261,
4672,
3536,
4284,
1552,
326,
1967,
487,
1562,
67,
821,
67,
2815,
67,
12684,
18,
1021,
1338,
7114,
353,
716,
326,
1775,
854,
2275,
487,
3193,
3536,
1652,
336,
67,
8457,
12,
19485,
4672,
3536,
7833,
358,
336,
326,
4394,
635,
12518,
310,
326,
1775,
12123,
4394,
273,
374,
775,
30,
13300,
67,
19485,
273,
306,
3175,
364,
1501,
316,
5261,
309,
486,
1501,
18,
17514,
1918,
2668,
17,
6134,
578,
1501,
18,
17514,
1918,
2668,
17,
52,
6134,
578,
1501,
18,
17514,
1918,
2668,
413,
8457,
6134,
65,
1500,
16,
833,
273,
336,
3838,
18,
1600,
89,
67,
588,
3838,
12,
6406,
2
] |
f = open(file, 'r') x = TestSGML() while 1: line = f.readline() if not line: x.close() break x.feed(line)
|
if file == '-': f = sys.stdin else: try: f = open(file, 'r') except IOError, msg: print file, ":", msg sys.exit(1) data = f.read() if f is not sys.stdin: f.close() x = klass() for c in data: x.feed(c) x.close()
|
def test(): file = 'test.html' f = open(file, 'r') x = TestSGML() while 1: line = f.readline() if not line: x.close() break x.feed(line)
|
48766512a0b438b66e97dfdfcb933cd104baeffe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/48766512a0b438b66e97dfdfcb933cd104baeffe/sgmllib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
585,
273,
296,
3813,
18,
2620,
11,
225,
309,
585,
422,
4014,
30,
284,
273,
2589,
18,
21772,
469,
30,
775,
30,
284,
273,
1696,
12,
768,
16,
296,
86,
6134,
1335,
8340,
16,
1234,
30,
1172,
585,
16,
6153,
16,
1234,
2589,
18,
8593,
12,
21,
13,
225,
501,
273,
284,
18,
896,
1435,
309,
284,
353,
486,
2589,
18,
21772,
30,
284,
18,
4412,
1435,
225,
619,
273,
7352,
1435,
364,
276,
316,
501,
30,
619,
18,
7848,
12,
71,
13,
619,
18,
4412,
1435,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13332,
585,
273,
296,
3813,
18,
2620,
11,
225,
309,
585,
422,
4014,
30,
284,
273,
2589,
18,
21772,
469,
30,
775,
30,
284,
273,
1696,
12,
768,
16,
296,
86,
6134,
1335,
8340,
16,
1234,
30,
1172,
585,
16,
6153,
16,
1234,
2589,
18,
8593,
12,
21,
13,
225,
501,
273,
284,
18,
896,
1435,
309,
284,
353,
486,
2589,
18,
21772,
30,
284,
18,
4412,
1435,
225,
619,
273,
7352,
1435,
364,
276,
316,
501,
30,
619,
18,
7848,
12,
71,
13,
619,
18,
4412,
1435,
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
] |
dnaStrand = chunk1.parent_node_of_class(self.win.assy.DnaStrand) if dnaStrand: chunkList = [dnaStrand]
|
dnaStrandOrSegment = chunk1.parent_node_of_class( self.win.assy.DnaStrandOrSegment) if dnaStrandOrSegment: chunkList = [dnaStrandOrSegment]
|
def _get_objects_to_highlight(self, selobj, hiColor1, hiColor2): """ Returns a python dictionary with objects to be drawn highlighted as its keys and highlight color as their corresponding values. The object to be highlighted is determined based the current graphics mode using the glpane.selobj. The subclasses can override this method to return objects to be highlighted in that particular graphics mode. @param selobj: GLPane.selobj (object under cursoe which can be registered as a GLPane.selobj @param hiColor1 : highlight color 1 @paramhiColor2: alternative highlight color. Example: If there are two chunks that need to be highlighted, one chunk gets hiColor1 and other gets hiColor2. @TODO: - may be hiColors should be in a list to make it more general @return: dictionary of objects to be highlighted. @rtype: dict @see: self._is_dnaGroup_highlighting_enabled() @see: self.drawHighlightedChunk() @see : self.drawHighlightedObjectUnderMouse()
|
9b62a45032a66e2bb994ed6192351ad80ddd1d98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/9b62a45032a66e2bb994ed6192351ad80ddd1d98/SelectChunks_GraphicsMode.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
6911,
67,
869,
67,
15978,
12,
2890,
16,
357,
2603,
16,
10118,
2957,
21,
16,
10118,
2957,
22,
4672,
3536,
2860,
279,
5790,
3880,
598,
2184,
358,
506,
19377,
24375,
487,
2097,
1311,
471,
8839,
2036,
487,
3675,
4656,
924,
18,
225,
1021,
733,
358,
506,
24375,
353,
11383,
2511,
326,
783,
17313,
1965,
1450,
326,
5118,
29009,
18,
1786,
2603,
18,
1021,
15320,
848,
3849,
333,
707,
358,
327,
2184,
358,
506,
24375,
316,
716,
6826,
17313,
1965,
18,
632,
891,
357,
2603,
30,
10252,
8485,
18,
1786,
2603,
261,
1612,
3613,
662,
2048,
73,
1492,
848,
506,
4104,
487,
279,
10252,
8485,
18,
1786,
2603,
632,
891,
10118,
2957,
21,
294,
8839,
2036,
404,
632,
891,
12266,
2957,
22,
30,
10355,
8839,
2036,
18,
5090,
30,
971,
1915,
854,
2795,
6055,
716,
1608,
358,
506,
24375,
16,
1245,
2441,
5571,
10118,
2957,
21,
471,
1308,
5571,
10118,
2957,
22,
18,
225,
632,
6241,
30,
300,
2026,
506,
10118,
12570,
1410,
506,
316,
279,
666,
358,
1221,
518,
1898,
7470,
632,
2463,
30,
3880,
434,
2184,
358,
506,
24375,
18,
632,
86,
723,
30,
2065,
632,
5946,
30,
365,
6315,
291,
67,
5176,
69,
1114,
67,
15978,
310,
67,
5745,
1435,
632,
5946,
30,
365,
18,
9446,
16205,
329,
5579,
1435,
632,
5946,
294,
365,
18,
9446,
16205,
23016,
14655,
9186,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
6911,
67,
869,
67,
15978,
12,
2890,
16,
357,
2603,
16,
10118,
2957,
21,
16,
10118,
2957,
22,
4672,
3536,
2860,
279,
5790,
3880,
598,
2184,
358,
506,
19377,
24375,
487,
2097,
1311,
471,
8839,
2036,
487,
3675,
4656,
924,
18,
225,
1021,
733,
358,
506,
24375,
353,
11383,
2511,
326,
783,
17313,
1965,
1450,
326,
5118,
29009,
18,
1786,
2603,
18,
1021,
15320,
848,
3849,
333,
707,
358,
327,
2184,
358,
506,
24375,
316,
716,
6826,
17313,
1965,
18,
632,
891,
357,
2603,
30,
10252,
8485,
18,
1786,
2603,
261,
1612,
3613,
662,
2048,
73,
1492,
848,
506,
4104,
487,
279,
10252,
8485,
18,
1786,
2603,
632,
891,
10118,
2957,
21,
294,
8839,
2036,
2
] |
xmin, ymin, xmax, ymax -- start and stop point of arrow
|
xtail, ytail, xhead, yhead -- start and stop point of arrow
|
def _arrow(self, xmin, ymin, xmax, ymax, options): """ Add an arrow with given bounding box to this graphics object.
|
20fed398d25002f78f9edd13592206eb593b0a5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/20fed398d25002f78f9edd13592206eb593b0a5f/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7815,
12,
2890,
16,
13777,
16,
15763,
16,
14016,
16,
15275,
16,
702,
4672,
3536,
1436,
392,
12274,
598,
864,
7552,
3919,
358,
333,
17313,
733,
18,
2,
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,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7815,
12,
2890,
16,
13777,
16,
15763,
16,
14016,
16,
15275,
16,
702,
4672,
3536,
1436,
392,
12274,
598,
864,
7552,
3919,
358,
333,
17313,
733,
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
] |
except DistributionNotFound:
|
except DistributionNotFound:
|
def uninstall(self, specs): """ Uninstall function to remove all files associated with an egg, including scripts generated. Also does a back-check of dependencies on the package(s) being uninstalled and prompts the user for uninstalling unnecessary dependencies that can be removed and warns if uninstalling a package could break another installed package. """ all_deps = self.get_deps() for spec in specs: try: pkgs = require(spec) # If the package found has dependencies, prompt the user if they # want the dependencies to be uninstalled as well. if len(pkgs) > 1: for dep in pkgs[1:]: if self.check_deps(dep.project_name, spec, all_deps): self._remove_dist(dep) # Finally, check if user-specified package can be safely # removed. if self.check_deps(pkgs[0].project_name, spec, all_deps): self._remove_dist(pkgs[0]) except DistributionNotFound: log.info("Could not find suitable package for: %s" % spec)
|
4853cbd76cdb3ed034db2a88e27dc562817f8840 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7707/4853cbd76cdb3ed034db2a88e27dc562817f8840/easy_install.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16577,
12,
2890,
16,
10607,
4672,
3536,
1351,
5425,
445,
358,
1206,
777,
1390,
3627,
598,
392,
25144,
16,
6508,
8873,
4374,
18,
225,
8080,
1552,
279,
1473,
17,
1893,
434,
5030,
603,
326,
2181,
12,
87,
13,
3832,
640,
13435,
471,
3012,
1092,
326,
729,
364,
16577,
310,
19908,
5030,
716,
848,
506,
3723,
471,
1894,
87,
309,
16577,
310,
279,
2181,
3377,
898,
4042,
5876,
2181,
18,
3536,
777,
67,
14877,
273,
365,
18,
588,
67,
14877,
1435,
225,
364,
857,
316,
10607,
30,
775,
30,
16922,
273,
2583,
12,
2793,
13,
225,
468,
971,
326,
2181,
1392,
711,
5030,
16,
6866,
326,
729,
309,
2898,
468,
2545,
326,
5030,
358,
506,
640,
13435,
487,
5492,
18,
309,
562,
12,
25376,
13,
405,
404,
30,
364,
5993,
316,
16922,
63,
21,
30,
14542,
309,
365,
18,
1893,
67,
14877,
12,
15037,
18,
4406,
67,
529,
16,
857,
16,
777,
67,
14877,
4672,
365,
6315,
4479,
67,
4413,
12,
15037,
13,
225,
468,
15768,
16,
866,
309,
729,
17,
13827,
2181,
848,
506,
15303,
468,
3723,
18,
309,
365,
18,
1893,
67,
14877,
12,
25376,
63,
20,
8009,
4406,
67,
529,
16,
857,
16,
777,
67,
14877,
4672,
365,
6315,
4479,
67,
4413,
12,
25376,
63,
20,
5717,
225,
1335,
17547,
2768,
30,
613,
18,
1376,
2932,
4445,
486,
1104,
10631,
2181,
364,
30,
738,
87,
6,
738,
857,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16577,
12,
2890,
16,
10607,
4672,
3536,
1351,
5425,
445,
358,
1206,
777,
1390,
3627,
598,
392,
25144,
16,
6508,
8873,
4374,
18,
225,
8080,
1552,
279,
1473,
17,
1893,
434,
5030,
603,
326,
2181,
12,
87,
13,
3832,
640,
13435,
471,
3012,
1092,
326,
729,
364,
16577,
310,
19908,
5030,
716,
848,
506,
3723,
471,
1894,
87,
309,
16577,
310,
279,
2181,
3377,
898,
4042,
5876,
2181,
18,
3536,
777,
67,
14877,
273,
365,
18,
588,
67,
14877,
1435,
225,
364,
857,
316,
10607,
30,
775,
30,
16922,
273,
2583,
12,
2793,
13,
225,
468,
971,
326,
2181,
1392,
711,
5030,
16,
6866,
326,
729,
309,
2898,
468,
2545,
326,
5030,
358,
506,
640,
13435,
487,
5492,
2
] |
debug(" - checking cookie %s=%s", cookie.name, cookie.value)
|
_debug(" - checking cookie %s=%s", cookie.name, cookie.value)
|
def return_ok(self, cookie, request): """ If you override .return_ok(), be sure to call this method. If it returns false, so should your subclass (assuming your subclass wants to be more strict about which cookies to return).
|
e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77/cookielib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
67,
601,
12,
2890,
16,
3878,
16,
590,
4672,
3536,
971,
1846,
3849,
263,
2463,
67,
601,
9334,
506,
3071,
358,
745,
333,
707,
18,
225,
971,
518,
1135,
629,
16,
1427,
1410,
3433,
10177,
261,
428,
21249,
3433,
10177,
14805,
358,
506,
1898,
5490,
2973,
1492,
7237,
358,
327,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
67,
601,
12,
2890,
16,
3878,
16,
590,
4672,
3536,
971,
1846,
3849,
263,
2463,
67,
601,
9334,
506,
3071,
358,
745,
333,
707,
18,
225,
971,
518,
1135,
629,
16,
1427,
1410,
3433,
10177,
261,
428,
21249,
3433,
10177,
14805,
358,
506,
1898,
5490,
2973,
1492,
7237,
358,
327,
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
] |
for n in ['b2a_qp', 'a2b_hex', 'b2a_base64', 'a2b_uu', 'a2b_qp', 'b2a_hex', 'unhexlify', 'hexlify', 'crc32', 'b2a_hqx', 'a2b_hqx', 'a2b_base64', 'rlecode_hqx', 'b2a_uu', 'rledecode_hqx']: f = getattr(binascii, n) f('') binascii.crc_hqx('', 0)
|
empty = self.type2test('') for func in all_functions: if func == 'crc_hqx': binascii.crc_hqx(empty, 0) continue f = getattr(binascii, func) try: f(empty) except Exception, err: self.fail("{}({!r}) raises {!r}".format(func, empty, err))
|
def test_empty_string(self): # A test for SF bug #1022953. Make sure SystemError is not raised. for n in ['b2a_qp', 'a2b_hex', 'b2a_base64', 'a2b_uu', 'a2b_qp', 'b2a_hex', 'unhexlify', 'hexlify', 'crc32', 'b2a_hqx', 'a2b_hqx', 'a2b_base64', 'rlecode_hqx', 'b2a_uu', 'rledecode_hqx']: f = getattr(binascii, n) f('') binascii.crc_hqx('', 0)
|
56917fffc941f205cbeb70b1cd4a3d4666741ebc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/56917fffc941f205cbeb70b1cd4a3d4666741ebc/test_binascii.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5531,
67,
1080,
12,
2890,
4672,
468,
432,
1842,
364,
21318,
7934,
468,
2163,
3787,
29,
8643,
18,
225,
4344,
3071,
2332,
668,
353,
486,
11531,
18,
364,
290,
316,
10228,
70,
22,
69,
67,
14166,
2187,
296,
69,
22,
70,
67,
7118,
2187,
296,
70,
22,
69,
67,
1969,
1105,
2187,
296,
69,
22,
70,
67,
24286,
2187,
296,
69,
22,
70,
67,
14166,
2187,
296,
70,
22,
69,
67,
7118,
2187,
296,
318,
7118,
22451,
2187,
296,
7118,
22451,
2187,
296,
22988,
1578,
2187,
296,
70,
22,
69,
67,
76,
85,
92,
2187,
296,
69,
22,
70,
67,
76,
85,
92,
2187,
296,
69,
22,
70,
67,
1969,
1105,
2187,
296,
86,
298,
710,
67,
76,
85,
92,
2187,
296,
70,
22,
69,
67,
24286,
2187,
296,
86,
298,
3922,
67,
76,
85,
92,
3546,
30,
284,
273,
3869,
12,
4757,
9184,
16,
290,
13,
284,
2668,
6134,
28222,
18,
22988,
67,
76,
85,
92,
2668,
2187,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5531,
67,
1080,
12,
2890,
4672,
468,
432,
1842,
364,
21318,
7934,
468,
2163,
3787,
29,
8643,
18,
225,
4344,
3071,
2332,
668,
353,
486,
11531,
18,
364,
290,
316,
10228,
70,
22,
69,
67,
14166,
2187,
296,
69,
22,
70,
67,
7118,
2187,
296,
70,
22,
69,
67,
1969,
1105,
2187,
296,
69,
22,
70,
67,
24286,
2187,
296,
69,
22,
70,
67,
14166,
2187,
296,
70,
22,
69,
67,
7118,
2187,
296,
318,
7118,
22451,
2187,
296,
7118,
22451,
2187,
296,
22988,
1578,
2187,
296,
70,
22,
69,
67,
76,
85,
92,
2187,
296,
69,
22,
70,
67,
76,
85,
92,
2187,
296,
69,
22,
70,
67,
1969,
1105,
2187,
296,
86,
298,
710,
2
] |
if not os.path.isfile(new_image_path):
|
if not os.path.isfile(image_path):
|
def add_movie_db(self, close): details = get_details(self) if not details['o_title'] and not details['title']: gutils.error(self.widgets['results']['window'], _("You should fill the original title\nor the movie title."), parent=self.widgets['add']['window']) return False if details['o_title']: tmp_movie = self.db.Movie.get_by(o_title=details['o_title']) if tmp_movie is not None: response = gutils.question(self, msg=_('Movie with that title already exists, are you sure you want to add?'), cancel=0, parent=self.widgets['add']['window']) if response == gtk.RESPONSE_NO: return False if details['title']: tmp_movie = self.db.Movie.get_by(title=details['title']) if tmp_movie is not None: response = gutils.question(self, msg=_('Movie with that title already exists, are you sure you want to add?'), cancel=0, parent=self.widgets['add']['window']) if response == gtk.RESPONSE_NO: return False movie = self.db.Movie() if not movie.add_to_db(details): return False # lets move poster from tmp to posters dir tmp_dest = self.locations['posters'] image_path = '' if details['image']: image_path = os.path.join(self.locations['temp'], "poster_%s.jpg" % details['image']) if os.path.isfile(image_path): new_image_path = os.path.join(tmp_dest, "%s.jpg" % details['image']) shutil.move(image_path, new_image_path) #lets make the thumbnail and medium image from poster for future use gutils.make_thumbnail(self, "%s.jpg"%details['image']) gutils.make_medium_image(self, "%s.jpg"%details['image']) rows = len(self.treemodel) if rows>0: insert_after = self.treemodel.get_iter(rows-1) # last else: insert_after = None myiter = self.treemodel.insert_after(None, insert_after) if not os.path.isfile(new_image_path): image_path = os.path.join(self.locations['images'], 'default.png') handler = self.Image.set_from_file(new_image_path) pixbuf = self.Image.get_pixbuf() self.treemodel.set_value(myiter, 0, '%004d' % details['number']) self.treemodel.set_value(myiter, 1, pixbuf.scale_simple(30,40,3)) self.treemodel.set_value(myiter, 2, details['o_title']) self.treemodel.set_value(myiter, 3, details['title']) self.treemodel.set_value(myiter, 4, details['director']) #update statusbar self.total += 1 self.count_statusbar() #select new entry from main treelist self.widgets['treeview'].get_selection().select_iter(myiter) self.treeview_clicked() clear(self) if close: self.hide_add_window()
|
16d0bfeef00cad23856a199748ce08e8f55e6d5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/16d0bfeef00cad23856a199748ce08e8f55e6d5c/add.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
8683,
13120,
67,
1966,
12,
2890,
16,
1746,
4672,
3189,
273,
336,
67,
6395,
12,
2890,
13,
309,
486,
3189,
3292,
83,
67,
2649,
3546,
471,
486,
3189,
3292,
2649,
3546,
30,
314,
5471,
18,
1636,
12,
2890,
18,
18148,
3292,
4717,
21712,
5668,
17337,
389,
2932,
6225,
1410,
3636,
326,
2282,
2077,
64,
29561,
326,
21360,
2077,
1199,
3631,
982,
33,
2890,
18,
18148,
3292,
1289,
21712,
5668,
19486,
327,
1083,
225,
309,
3189,
3292,
83,
67,
2649,
3546,
30,
1853,
67,
8683,
13120,
273,
365,
18,
1966,
18,
16727,
13120,
18,
588,
67,
1637,
12,
83,
67,
2649,
33,
6395,
3292,
83,
67,
2649,
19486,
309,
1853,
67,
8683,
13120,
353,
486,
599,
30,
766,
273,
314,
5471,
18,
4173,
12,
2890,
16,
1234,
33,
67,
2668,
16727,
13120,
598,
716,
2077,
1818,
1704,
16,
854,
1846,
3071,
1846,
2545,
358,
527,
4899,
3631,
3755,
33,
20,
16,
982,
33,
2890,
18,
18148,
3292,
1289,
21712,
5668,
19486,
309,
766,
422,
22718,
18,
14508,
67,
3417,
30,
327,
1083,
309,
3189,
3292,
2649,
3546,
30,
1853,
67,
8683,
13120,
273,
365,
18,
1966,
18,
16727,
13120,
18,
588,
67,
1637,
12,
2649,
33,
6395,
3292,
2649,
19486,
309,
1853,
67,
8683,
13120,
353,
486,
599,
30,
766,
273,
314,
5471,
18,
4173,
12,
2890,
16,
1234,
33,
67,
2668,
16727,
13120,
598,
716,
2077,
1818,
1704,
16,
854,
1846,
3071,
1846,
2545,
358,
527,
4899,
3631,
3755,
33,
20,
16,
982,
33,
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,
527,
67,
8683,
13120,
67,
1966,
12,
2890,
16,
1746,
4672,
3189,
273,
336,
67,
6395,
12,
2890,
13,
309,
486,
3189,
3292,
83,
67,
2649,
3546,
471,
486,
3189,
3292,
2649,
3546,
30,
314,
5471,
18,
1636,
12,
2890,
18,
18148,
3292,
4717,
21712,
5668,
17337,
389,
2932,
6225,
1410,
3636,
326,
2282,
2077,
64,
29561,
326,
21360,
2077,
1199,
3631,
982,
33,
2890,
18,
18148,
3292,
1289,
21712,
5668,
19486,
327,
1083,
225,
309,
3189,
3292,
83,
67,
2649,
3546,
30,
1853,
67,
8683,
13120,
273,
365,
18,
1966,
18,
16727,
13120,
18,
588,
67,
1637,
12,
83,
67,
2649,
33,
6395,
3292,
83,
67,
2649,
19486,
309,
1853,
67,
8683,
13120,
353,
486,
599,
30,
2
] |
4. Re-initialise the server by running "python demo.py nuke".''' % url
|
4. Re-initialise the server by running "python demo.py nuke". ''' % cfg["TRACKER_WEB"]
|
def run_demo(): ''' Run a demo server for users to play with for instant gratification. Sets up the web service on localhost. Disables nosy lists. ''' home = os.path.abspath('demo') backend = 'anydbm' if not os.path.exists(home) or sys.argv[-1] == 'nuke': if len(sys.argv) > 2: backend = sys.argv[-2] install_demo(home, backend) cfg = ConfigParser.ConfigParser() cfg.read(os.path.join(home, 'config.ini')) url = cfg.get('tracker', 'web') hostname, port = urlparse.urlparse(url)[1].split(':') port = int(port) # ok, so start up the server from roundup.scripts import roundup_server roundup_server.RoundupRequestHandler.TRACKER_HOMES = {'demo': home} success_message = '''Server running - connect to: %s
|
4e39cc9c84cb81d6ae66e39468fe97b20a969216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/4e39cc9c84cb81d6ae66e39468fe97b20a969216/demo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
27928,
13332,
9163,
1939,
279,
21477,
1438,
364,
3677,
358,
6599,
598,
364,
5934,
3821,
270,
1480,
18,
225,
11511,
731,
326,
3311,
1156,
603,
17365,
18,
3035,
1538,
26628,
93,
6035,
18,
9163,
6382,
273,
1140,
18,
803,
18,
5113,
803,
2668,
27928,
6134,
4221,
273,
296,
2273,
1966,
81,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
8712,
13,
578,
2589,
18,
19485,
18919,
21,
65,
422,
296,
29705,
4278,
309,
562,
12,
9499,
18,
19485,
13,
405,
576,
30,
4221,
273,
2589,
18,
19485,
18919,
22,
65,
3799,
67,
27928,
12,
8712,
16,
4221,
13,
225,
2776,
273,
25076,
18,
809,
2678,
1435,
2776,
18,
896,
12,
538,
18,
803,
18,
5701,
12,
8712,
16,
296,
1425,
18,
8767,
26112,
880,
273,
2776,
18,
588,
2668,
16543,
2187,
296,
4875,
6134,
5199,
16,
1756,
273,
15185,
18,
718,
2670,
12,
718,
25146,
21,
8009,
4939,
2668,
2497,
13,
1756,
273,
509,
12,
655,
13,
225,
468,
1529,
16,
1427,
787,
731,
326,
1438,
628,
3643,
416,
18,
12827,
1930,
3643,
416,
67,
3567,
3643,
416,
67,
3567,
18,
11066,
416,
28773,
18,
28720,
654,
67,
14209,
55,
273,
13666,
27928,
4278,
6382,
97,
225,
2216,
67,
2150,
273,
9163,
2081,
3549,
300,
3077,
358,
30,
738,
87,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
27928,
13332,
9163,
1939,
279,
21477,
1438,
364,
3677,
358,
6599,
598,
364,
5934,
3821,
270,
1480,
18,
225,
11511,
731,
326,
3311,
1156,
603,
17365,
18,
3035,
1538,
26628,
93,
6035,
18,
9163,
6382,
273,
1140,
18,
803,
18,
5113,
803,
2668,
27928,
6134,
4221,
273,
296,
2273,
1966,
81,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
8712,
13,
578,
2589,
18,
19485,
18919,
21,
65,
422,
296,
29705,
4278,
309,
562,
12,
9499,
18,
19485,
13,
405,
576,
30,
4221,
273,
2589,
18,
19485,
18919,
22,
65,
3799,
67,
27928,
12,
8712,
16,
4221,
13,
225,
2776,
273,
25076,
18,
809,
2678,
1435,
2776,
18,
896,
12,
538,
18,
803,
18,
5701,
2
] |
def write(self, arg, move=0): x, y = start = self._position
|
def write(self, text, move=False): """ Write text at the current pen position. If move is true, the pen is moved to the bottom-right corner of the text. By default, move is False. Example: >>> turtle.write('The race is on!') >>> turtle.write('Home = (0, 0)', True) """ x, y = self._position
|
def write(self, arg, move=0): x, y = start = self._position x = x-1 # correction -- calibrated for Windows item = self._canvas.create_text(x, y, text=str(arg), anchor="sw", fill=self._color) self._items.append(item) if move: x0, y0, x1, y1 = self._canvas.bbox(item) self._goto(x1, y1) self._draw_turtle()
|
e3a25838db0ac392aa9e68379e167635f8e67a43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e3a25838db0ac392aa9e68379e167635f8e67a43/turtle.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
977,
16,
3635,
33,
8381,
4672,
3536,
2598,
977,
622,
326,
783,
14264,
1754,
18,
225,
971,
3635,
353,
638,
16,
326,
14264,
353,
10456,
358,
326,
5469,
17,
4083,
11055,
434,
326,
977,
18,
2525,
805,
16,
3635,
353,
1083,
18,
225,
5090,
30,
4080,
268,
295,
5929,
18,
2626,
2668,
1986,
17996,
353,
603,
5124,
13,
4080,
268,
295,
5929,
18,
2626,
2668,
8684,
273,
261,
20,
16,
374,
13,
2187,
1053,
13,
3536,
619,
16,
677,
225,
273,
365,
6315,
3276,
619,
273,
619,
17,
21,
468,
15104,
1493,
26139,
86,
690,
364,
8202,
761,
273,
365,
6315,
15424,
18,
2640,
67,
955,
12,
92,
16,
677,
16,
977,
33,
701,
12,
3175,
3631,
6984,
1546,
5328,
3113,
3636,
33,
2890,
6315,
3266,
13,
365,
6315,
3319,
18,
6923,
12,
1726,
13,
309,
3635,
30,
619,
20,
16,
677,
20,
16,
619,
21,
16,
677,
21,
273,
365,
6315,
15424,
18,
20737,
12,
1726,
13,
365,
6315,
75,
6302,
12,
92,
21,
16,
677,
21,
13,
365,
6315,
9446,
67,
25271,
5929,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
977,
16,
3635,
33,
8381,
4672,
3536,
2598,
977,
622,
326,
783,
14264,
1754,
18,
225,
971,
3635,
353,
638,
16,
326,
14264,
353,
10456,
358,
326,
5469,
17,
4083,
11055,
434,
326,
977,
18,
2525,
805,
16,
3635,
353,
1083,
18,
225,
5090,
30,
4080,
268,
295,
5929,
18,
2626,
2668,
1986,
17996,
353,
603,
5124,
13,
4080,
268,
295,
5929,
18,
2626,
2668,
8684,
273,
261,
20,
16,
374,
13,
2187,
1053,
13,
3536,
619,
16,
677,
225,
273,
365,
6315,
3276,
619,
273,
619,
17,
21,
468,
15104,
1493,
26139,
86,
690,
364,
8202,
761,
273,
365,
6315,
15424,
18,
2640,
67,
955,
12,
92,
16,
677,
16,
977,
33,
701,
2
] |
OPTS=['BUILDING_DTOOLCONFIG', 'NSPR', 'OPT4']
|
OPTS=['BUILDING_DTOOLCONFIG', 'NSPR', 'OPT3']
|
if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
|
bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rsp = self.apiDelete("reviewrequests/%s/reviews/draft" %
|
rsp = self.apiDelete("reviewrequests/%s/reviews/919239" %
|
def test_delete_review_with_does_not_exist(self): """Testing the DELETE reviewrequests/<id>/reviews/<id>/ API with Does Not Exist error""" review_request = ReviewRequest.objects.public()[0] rsp = self.apiDelete("reviewrequests/%s/reviews/draft" % review_request.id, expected_status=404) self.assertEqual(rsp['stat'], 'fail') self.assertEqual(rsp['err']['code'], DOES_NOT_EXIST.code)
|
6f62171a9876a999f22f6ebd5ed31ea85071c2f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/6f62171a9876a999f22f6ebd5ed31ea85071c2f8/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3733,
67,
16041,
67,
1918,
67,
20657,
67,
902,
67,
7398,
12,
2890,
4672,
3536,
22218,
326,
8568,
10725,
11420,
28177,
350,
16893,
266,
7061,
28177,
350,
16893,
1491,
598,
9637,
2288,
22558,
555,
8395,
10725,
67,
2293,
273,
21354,
691,
18,
6911,
18,
482,
1435,
63,
20,
65,
12049,
273,
365,
18,
2425,
2613,
2932,
16041,
11420,
5258,
87,
19,
266,
7061,
19,
29,
3657,
4366,
29,
6,
738,
10725,
67,
2293,
18,
350,
16,
2665,
67,
2327,
33,
11746,
13,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3733,
67,
16041,
67,
1918,
67,
20657,
67,
902,
67,
7398,
12,
2890,
4672,
3536,
22218,
326,
8568,
10725,
11420,
28177,
350,
16893,
266,
7061,
28177,
350,
16893,
1491,
598,
9637,
2288,
22558,
555,
8395,
10725,
67,
2293,
273,
21354,
691,
18,
6911,
18,
482,
1435,
63,
20,
65,
12049,
273,
365,
18,
2425,
2613,
2932,
16041,
11420,
5258,
87,
19,
266,
7061,
19,
29,
3657,
4366,
29,
6,
738,
10725,
67,
2293,
18,
350,
16,
2665,
67,
2327,
33,
11746,
13,
365,
18,
11231,
5812,
12,
86,
1752,
3292,
5642,
17337,
296,
6870,
6134,
365,
18,
11231,
5812,
12,
86,
1752,
3292,
370,
21712,
710,
17337,
5467,
3991,
67,
4400,
67,
11838,
18,
710,
13,
2
] |
loggers = qE.createLoggers(variables) qE.run_and_plot(1000, variables)
|
loggers = qE.create_loggers(variables) qE.run_and_plot(1000, variables, loggers) plt.show()
|
def demo(): """Demo method. This should be the skeleton of your simulation""" qE = QuickEcell('simple_ecell_mod.eml') variables = ['S', 'P'] loggers = qE.createLoggers(variables) qE.run_and_plot(1000, variables)
|
1cf86d6668a0f6d9627128153fe0d77a29f0d411 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14363/1cf86d6668a0f6d9627128153fe0d77a29f0d411/quickEcell.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
13332,
3536,
27126,
707,
18,
1220,
1410,
506,
326,
17761,
434,
3433,
14754,
8395,
225,
1043,
41,
273,
19884,
41,
3855,
2668,
9647,
67,
557,
1165,
67,
1711,
18,
351,
80,
6134,
3152,
273,
10228,
55,
2187,
296,
52,
3546,
18244,
273,
1043,
41,
18,
2640,
67,
1330,
6215,
12,
7528,
13,
1043,
41,
18,
2681,
67,
464,
67,
4032,
12,
18088,
16,
3152,
16,
18244,
13,
5451,
18,
4500,
1435,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21477,
13332,
3536,
27126,
707,
18,
1220,
1410,
506,
326,
17761,
434,
3433,
14754,
8395,
225,
1043,
41,
273,
19884,
41,
3855,
2668,
9647,
67,
557,
1165,
67,
1711,
18,
351,
80,
6134,
3152,
273,
10228,
55,
2187,
296,
52,
3546,
18244,
273,
1043,
41,
18,
2640,
67,
1330,
6215,
12,
7528,
13,
1043,
41,
18,
2681,
67,
464,
67,
4032,
12,
18088,
16,
3152,
16,
18244,
13,
5451,
18,
4500,
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
] |
parser = PottyMouth(emdash=False, ellipsis=False, smart_quotes=False)
|
parser = PottyMouth(emdash=False, ellipsis=False, smart_quotes=False, youtube=False, image=False)
|
def parse(self, input_data, reason): from zine._ext.pottymouth import PottyMouth parser = PottyMouth(emdash=False, ellipsis=False, smart_quotes=False) node = parser.parse(input_data) return self._to_zeml(node)
|
4e9bb192c077c19c1f7935925d087aa724303a1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/4e9bb192c077c19c1f7935925d087aa724303a1c/parsers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
810,
67,
892,
16,
3971,
4672,
628,
998,
558,
6315,
408,
18,
13130,
88,
2942,
15347,
1930,
23435,
4098,
49,
15347,
2082,
273,
23435,
4098,
49,
15347,
12,
351,
21817,
33,
8381,
16,
28992,
33,
8381,
16,
13706,
67,
18653,
33,
8381,
16,
677,
21105,
33,
8381,
16,
1316,
33,
8381,
13,
756,
273,
2082,
18,
2670,
12,
2630,
67,
892,
13,
327,
365,
6315,
869,
67,
94,
351,
80,
12,
2159,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
810,
67,
892,
16,
3971,
4672,
628,
998,
558,
6315,
408,
18,
13130,
88,
2942,
15347,
1930,
23435,
4098,
49,
15347,
2082,
273,
23435,
4098,
49,
15347,
12,
351,
21817,
33,
8381,
16,
28992,
33,
8381,
16,
13706,
67,
18653,
33,
8381,
16,
677,
21105,
33,
8381,
16,
1316,
33,
8381,
13,
756,
273,
2082,
18,
2670,
12,
2630,
67,
892,
13,
327,
365,
6315,
869,
67,
94,
351,
80,
12,
2159,
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
] |
label = self.body[size] text = ''.join(self.body[size+1:])
|
text = ''.join(self.body[size:])
|
def depart_citation(self, node): size = self.context.pop() label = self.body[size] text = ''.join(self.body[size+1:]) del self.body[size:] self.bibitems.append([label, text])
|
56f11bfd0e2241aedff17fcf1dcdc92d3904a297 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5532/56f11bfd0e2241aedff17fcf1dcdc92d3904a297/latexwriter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
71,
8773,
12,
2890,
16,
756,
4672,
963,
273,
365,
18,
2472,
18,
5120,
1435,
977,
273,
875,
18,
5701,
12,
2890,
18,
3432,
63,
1467,
30,
5717,
1464,
365,
18,
3432,
63,
1467,
26894,
365,
18,
70,
495,
3319,
18,
6923,
3816,
1925,
16,
977,
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,
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1652,
26000,
67,
71,
8773,
12,
2890,
16,
756,
4672,
963,
273,
365,
18,
2472,
18,
5120,
1435,
977,
273,
875,
18,
5701,
12,
2890,
18,
3432,
63,
1467,
30,
5717,
1464,
365,
18,
3432,
63,
1467,
26894,
365,
18,
70,
495,
3319,
18,
6923,
3816,
1925,
16,
977,
5717,
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
] |
self.store.remove (ti) del self.challenges [index] count = int(self.widgets["activeSeeksLabel"].get_text().split()[0])-1 self.widgets["activeSeeksLabel"].set_text(_("Active seeks: %d") % count)
|
self.store.remove(ti) del self.challenges[index] self.__updateActiveSeeksLabel() def onClearSeeks (self): self.store.clear() self.seeks = {} self.__updateActiveSeeksLabel() def onAcceptClicked (self, button): model, iter = self.tv.get_selection().get_selected() if iter == None: return gameno = model.get_value(iter, 0) if gameno.startswith("C"): self.connection.om.acceptIndex(gameno[1:]) else: self.connection.om.playIndex(gameno) def onClearSeeksClicked (self, button): print >> self.connection.client, "unseek" self.widgets["clearSeeksButton"].set_sensitive(False) def row_activated (self, treeview, path, view_column): model, iter = self.tv.get_selection().get_selected() if iter == None: return gameno = model.get_value(iter, 0) if gameno != self.lastSeekSelected: return if path != model.get_path(iter): return self.onAcceptClicked(None) def onSelectionChanged (self, selection): model, iter = self.widgets["seektreeview"].get_selection().get_selected() if iter == None: return self.lastSeekSelected = model.get_value(iter, 0) def onPlayingGame (self): self.widgets["seekListContent"].set_sensitive(False) self.widgets["challengeExpander"].set_sensitive(False) self.widgets["clearSeeksButton"].set_sensitive(False) self.store.clear() self.__updateActiveSeeksLabel() def onCurGameEnded (self): self.widgets["seekListContent"].set_sensitive(True) self.widgets["challengeExpander"].set_sensitive(True) self.connection.glm.refreshSeeks()
|
def onChallengeRemove (self, index): if not index in self.challenges: return ti = self.challenges [index] if not self.store.iter_is_valid(ti): return self.store.remove (ti) del self.challenges [index] count = int(self.widgets["activeSeeksLabel"].get_text().split()[0])-1 self.widgets["activeSeeksLabel"].set_text(_("Active seeks: %d") % count)
|
ecd9ea4654305def156d9650ba6eabaf3086a366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/ecd9ea4654305def156d9650ba6eabaf3086a366/ICLounge.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
18359,
3288,
261,
2890,
16,
770,
4672,
309,
486,
770,
316,
365,
18,
343,
7862,
2852,
30,
327,
11374,
273,
365,
18,
343,
7862,
2852,
306,
1615,
65,
309,
486,
365,
18,
2233,
18,
2165,
67,
291,
67,
877,
12,
9096,
4672,
327,
365,
18,
2233,
18,
4479,
261,
9096,
13,
1464,
365,
18,
343,
7862,
2852,
306,
1615,
65,
1056,
273,
509,
12,
2890,
18,
18148,
9614,
3535,
16134,
87,
2224,
6,
8009,
588,
67,
955,
7675,
4939,
1435,
63,
20,
5717,
17,
21,
365,
18,
18148,
9614,
3535,
16134,
87,
2224,
6,
8009,
542,
67,
955,
24899,
2932,
3896,
6520,
87,
30,
738,
72,
7923,
738,
1056,
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,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374,
273,
365,
18,
343,
7862,
2852,
306,
1615,
65,
309,
486,
365,
18,
2233,
18,
2165,
67,
291,
67,
877,
12,
9096,
4672,
327,
365,
18,
2233,
18,
4479,
261,
9096,
13,
1464,
365,
18,
343,
7862,
2852,
306,
1615,
65,
1056,
273,
509,
12,
2890,
18,
18148,
9614,
3535,
16134,
87,
2224,
6,
8009,
588,
67,
955,
7675,
4939,
1435,
63,
20,
5717,
17,
21,
365,
18,
18148,
9614,
3535,
16134,
87,
2224,
6,
8009,
542,
67,
955,
24899,
2932,
3896,
6520,
87,
30,
738,
72,
7923,
738,
1056,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(subject.CN))
|
(commonName))
|
def loadCerts(parcel, moduleName, filename='cacert.pem'): # Load cacert.pem into the repository import os, sys import logging from M2Crypto import X509, util from M2Crypto.EVP import MessageDigest log = logging.getLogger(__name__) chop = -1 cert = schema.ns('osaf.framework.certstore', parcel) lobType = schema.itemFor(schema.Lob, parcel.itsView) from osaf.framework.certstore import utils lastLine = '' pem = [] certificates = 0 for line in open( os.path.join( os.path.dirname(sys.modules[moduleName].__file__),filename ), 'rU' ): if line[:3] == '===': itsName = lastLine itsName = itsName[:chop] elif line[:chop] == '-----BEGIN CERTIFICATE-----': pem = [line] elif line[:chop] == '-----END CERTIFICATE-----': pem.append(line[:chop]) x509 = X509.load_cert_string(''.join(pem)) commonName = itsName itsName = itsName.replace('/', '_') if not x509.verify(): subject = x509.get_subject() log.warn('Skipping certificate, does not verify: %s' % \ (subject.CN)) #print x509.as_text() continue cert.Certificate.update(parcel, itsName, subjectCommonName = commonName, type='root',#cert.TYPE_ROOT, trust=3,#cert.TRUST_AUTHENTICITY | cert.TRUST_SITE, fingerprintAlgorithm='sha1', fingerprint=utils.fingerprint(x509), pem=lobType.makeValue(''.join(pem)), asText=lobType.makeValue(x509.as_text()), ) pem = [] certificates += 1 elif pem: pem.append(line) lastLine = line log.info( 'Imported %d certificates from %s in %s', certificates, filename, moduleName )
|
bf6b3625a8b14580929d8222655f237ee5f5a62b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/bf6b3625a8b14580929d8222655f237ee5f5a62b/data.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
16273,
12,
1065,
2183,
16,
9780,
16,
1544,
2218,
71,
1077,
1051,
18,
20313,
11,
4672,
468,
4444,
276,
1077,
1051,
18,
20313,
1368,
326,
3352,
225,
1930,
1140,
16,
2589,
1930,
2907,
225,
628,
490,
22,
18048,
1930,
1139,
5995,
16,
1709,
628,
490,
22,
18048,
18,
24427,
52,
1930,
22485,
225,
613,
273,
2907,
18,
588,
3328,
12,
972,
529,
972,
13,
225,
31258,
273,
300,
21,
225,
3320,
273,
1963,
18,
2387,
2668,
538,
1727,
18,
12303,
18,
7593,
2233,
2187,
779,
2183,
13,
22925,
559,
273,
1963,
18,
1726,
1290,
12,
4821,
18,
48,
947,
16,
779,
2183,
18,
1282,
1767,
13,
225,
628,
1140,
1727,
18,
12303,
18,
7593,
2233,
1930,
2990,
225,
31661,
273,
875,
12141,
273,
5378,
225,
12522,
273,
374,
225,
364,
980,
316,
1696,
12,
1140,
18,
803,
18,
5701,
12,
1140,
18,
803,
18,
12287,
12,
9499,
18,
6400,
63,
2978,
461,
8009,
972,
768,
972,
3631,
3459,
262,
16,
296,
86,
57,
11,
262,
30,
309,
980,
10531,
23,
65,
422,
296,
631,
2218,
30,
2097,
461,
273,
31661,
2097,
461,
273,
2097,
461,
10531,
343,
556,
65,
1327,
980,
10531,
343,
556,
65,
422,
296,
13465,
16061,
25423,
26649,
13465,
4278,
12141,
273,
306,
1369,
65,
1327,
980,
10531,
343,
556,
65,
422,
296,
13465,
4415,
25423,
26649,
13465,
4278,
12141,
18,
6923,
12,
1369,
10531,
343,
556,
5717,
619,
5995,
273,
1139,
5995,
18,
945,
67,
7593,
67,
1080,
2668,
10332,
5701,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
16273,
12,
1065,
2183,
16,
9780,
16,
1544,
2218,
71,
1077,
1051,
18,
20313,
11,
4672,
468,
4444,
276,
1077,
1051,
18,
20313,
1368,
326,
3352,
225,
1930,
1140,
16,
2589,
1930,
2907,
225,
628,
490,
22,
18048,
1930,
1139,
5995,
16,
1709,
628,
490,
22,
18048,
18,
24427,
52,
1930,
22485,
225,
613,
273,
2907,
18,
588,
3328,
12,
972,
529,
972,
13,
225,
31258,
273,
300,
21,
225,
3320,
273,
1963,
18,
2387,
2668,
538,
1727,
18,
12303,
18,
7593,
2233,
2187,
779,
2183,
13,
22925,
559,
273,
1963,
18,
1726,
1290,
12,
4821,
18,
48,
947,
16,
779,
2183,
18,
1282,
1767,
13,
225,
628,
1140,
1727,
18,
12303,
18,
7593,
2233,
1930,
2990,
2
] |
for e in self.incoming_edges(labels = False): p.add_constraint(vertex_used[v] - edge_used[e], min = 0) for e in self.outgoing_edges(labels = False): p.add_constraint(vertex_used[v] - edge_used[e], min = 0)
|
for e in self.incoming_edges(labels=False): p.add_constraint(vertex_used[v] - edge_used[e], min=0) for e in self.outgoing_edges(labels=False): p.add_constraint(vertex_used[v] - edge_used[e], min=0)
|
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
|
815c98d316de2356ea416011f877811bcf39fae3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/815c98d316de2356ea416011f877811bcf39fae3/generic_graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
value = lltype.top_container(value)
|
if value is not lltype.top_container(value): return
|
def consider_constant(self, TYPE, value): value = lltype.top_container(value)
|
6f933a1403d8ea294e47939a151f6269f0efc5ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/6f933a1403d8ea294e47939a151f6269f0efc5ce/gctransform.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5260,
67,
14384,
12,
2890,
16,
3463,
16,
460,
4672,
460,
273,
6579,
723,
18,
3669,
67,
3782,
12,
1132,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5260,
67,
14384,
12,
2890,
16,
3463,
16,
460,
4672,
460,
273,
6579,
723,
18,
3669,
67,
3782,
12,
1132,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
res = self._checkAdminPermission()
|
res = self._checkAdminPermission(credDict)
|
def addGroup(self,groupName,credDict): res = self._checkAdminPermission() if not res['OK']: return res if not res['Value']: return S_ERROR("Permission denied") return self.ugManager.addGroup(userName)
|
1fab4af2a2efe3dcf87ee8515cc87998ad9cf2f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/1fab4af2a2efe3dcf87ee8515cc87998ad9cf2f6/FileCatalogDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18899,
12,
2890,
16,
1655,
461,
16,
20610,
5014,
4672,
400,
273,
365,
6315,
1893,
4446,
5041,
12,
20610,
5014,
13,
309,
486,
400,
3292,
3141,
3546,
30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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18899,
12,
2890,
16,
1655,
461,
16,
20610,
5014,
4672,
400,
273,
365,
6315,
1893,
4446,
5041,
12,
20610,
5014,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
309,
486,
400,
3292,
620,
3546,
30,
327,
348,
67,
3589,
2932,
5041,
15338,
7923,
327,
365,
18,
637,
1318,
18,
1289,
1114,
12,
1355,
461,
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
] |
cline = cline + " -QUICKTREE"
|
cline = cline + " -quicktree"
|
def __str__(self): """Write out the command line as a string.""" cline = self.command + " " + self.sequence_file
|
240af8bbe31789b31d07273beaedf257c01edcd9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/240af8bbe31789b31d07273beaedf257c01edcd9/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
3536,
3067,
596,
326,
1296,
980,
487,
279,
533,
12123,
927,
558,
273,
365,
18,
3076,
397,
315,
315,
397,
365,
18,
6178,
67,
768,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
701,
972,
12,
2890,
4672,
3536,
3067,
596,
326,
1296,
980,
487,
279,
533,
12123,
927,
558,
273,
365,
18,
3076,
397,
315,
315,
397,
365,
18,
6178,
67,
768,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 'py'
|
def vq(obs,code_book): """ Vector Quantization: assign features sets to codes in a code book. Description: Vector quantization determines which code in the code book best represents an observation of a target. The features of each observation are compared to each code in the book, and assigned the one closest to it. The observations are contained in the obs array. These features should be "whitened," or nomalized by the standard deviation of all the features before being quantized. The code book can be created using the kmeans algorithm or something similar. Note: This currently forces 32 bit math precision for speed. Anyone know of a situation where this undermines the accuracy of the algorithm? Arguments: obs -- 2D array. Each row of the array is an observation. The columns are the "features" seen during each observation The features must be whitened first using the whiten function or something equivalent. code_book -- 2D array. The code book is usually generated using the kmeans algorithm. Each row of the array holds a different code, and the columns are the features of the code. # c0 c1 c2 c3 code_book = [[ 1., 2., 3., 4.], #f0 [ 1., 2., 3., 4.], #f1 [ 1., 2., 3., 4.]]) #f2 Outputs: code -- 1D array. If obs is a NxM array, then a length M array is returned that holds the selected code book index for each observation. dist -- 1D array. The distortion (distance) between the observation and its nearest code Reference Test >>> code_book = array([[1.,1.,1.], ... [2.,2.,2.]]) >>> features = array([[ 1.9,2.3,1.7], ... [ 1.5,2.5,2.2], ... [ 0.8,0.6,1.7]]) >>> vq(features,code_book) (array([1, 1, 0],'i'), array([ 0.43588989, 0.73484692, 0.83066239])) """ try: import _vq from scipy.misc import _common_type ct = _common_type(obs,code_book) c_obs = obs.astype(ct) c_code_book = code_book.astype(ct) if ct == 'f': results = _vq.float_vq(c_obs,c_code_book) elif ct == 'd': results = _vq.double_vq(c_obs,c_code_book) else: results = py_vq(obs,code_book) except ImportError: print 'py' results = py_vq(obs,code_book) return results
|
66282068cbd84edcddaa490e8207299a4f99045a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/66282068cbd84edcddaa490e8207299a4f99045a/vq.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
331,
85,
12,
10992,
16,
710,
67,
3618,
4672,
3536,
5589,
4783,
970,
1588,
30,
2683,
4467,
1678,
358,
6198,
316,
279,
981,
6978,
18,
225,
6507,
30,
5589,
10251,
1588,
12949,
1492,
981,
316,
326,
981,
6978,
3796,
8686,
392,
13853,
434,
279,
1018,
18,
225,
1021,
4467,
434,
1517,
13853,
854,
15843,
358,
1517,
981,
316,
326,
6978,
16,
471,
6958,
326,
1245,
9219,
358,
518,
18,
225,
1021,
16477,
854,
7542,
316,
326,
7160,
526,
18,
8646,
4467,
1410,
506,
315,
3350,
305,
275,
329,
10837,
578,
12457,
287,
1235,
635,
326,
4529,
17585,
434,
777,
326,
4467,
1865,
3832,
10251,
1235,
18,
1021,
981,
6978,
848,
506,
2522,
1450,
326,
417,
18408,
4886,
578,
5943,
7281,
18,
225,
3609,
30,
1220,
4551,
26376,
3847,
2831,
4233,
6039,
364,
8632,
18,
225,
5502,
476,
5055,
434,
279,
20886,
1625,
333,
3613,
1154,
281,
326,
15343,
434,
326,
4886,
35,
282,
13599,
30,
7160,
1493,
576,
40,
526,
18,
8315,
1027,
434,
326,
526,
353,
392,
13853,
18,
225,
1021,
2168,
854,
326,
315,
7139,
6,
5881,
4982,
1517,
13853,
1021,
4467,
1297,
506,
600,
305,
275,
329,
1122,
1450,
326,
600,
305,
275,
445,
578,
5943,
7680,
18,
981,
67,
3618,
1493,
576,
40,
526,
18,
1021,
981,
6978,
353,
11234,
4374,
1450,
326,
417,
18408,
4886,
18,
225,
8315,
1027,
434,
326,
526,
14798,
279,
3775,
981,
16,
471,
326,
2168,
854,
326,
4467,
434,
326,
981,
18,
468,
282,
276,
20,
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,
331,
85,
12,
10992,
16,
710,
67,
3618,
4672,
3536,
5589,
4783,
970,
1588,
30,
2683,
4467,
1678,
358,
6198,
316,
279,
981,
6978,
18,
225,
6507,
30,
5589,
10251,
1588,
12949,
1492,
981,
316,
326,
981,
6978,
3796,
8686,
392,
13853,
434,
279,
1018,
18,
225,
1021,
4467,
434,
1517,
13853,
854,
15843,
358,
1517,
981,
316,
326,
6978,
16,
471,
6958,
326,
1245,
9219,
358,
518,
18,
225,
1021,
16477,
854,
7542,
316,
326,
7160,
526,
18,
8646,
4467,
1410,
506,
315,
3350,
305,
275,
329,
10837,
578,
12457,
287,
1235,
635,
326,
4529,
17585,
434,
777,
326,
4467,
1865,
3832,
10251,
1235,
18,
1021,
981,
6978,
848,
506,
2522,
1450,
326,
417,
18408,
4886,
578,
2
] |
|
try: if (os.path.exists(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"))): os.rename(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"), os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache-backup")) except: pass
|
global DCACHE_BACKED_UP if not DCACHE_BACKED_UP: try: if (os.path.exists(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"))): os.rename(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"), os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache-backup")) except: pass DCACHE_BACKED_UP = True
|
def SaveDependencyCache(): try: if (os.path.exists(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"))): os.rename(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"), os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache-backup")) except: pass try: icache = open(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"),'wb') except: icache = 0 if (icache!=0): print "Storing dependency cache." cPickle.dump(CXXINCLUDECACHE, icache, 1) cPickle.dump(BUILTFROMCACHE, icache, 1) icache.close()
|
704bcc4932bd978cd3b0a66ec679f8531235471d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/704bcc4932bd978cd3b0a66ec679f8531235471d/makepandacore.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7074,
7787,
1649,
13332,
2552,
463,
8495,
67,
8720,
2056,
67,
3079,
309,
486,
463,
8495,
67,
8720,
2056,
67,
3079,
30,
775,
30,
309,
261,
538,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
15527,
4537,
16,
315,
5645,
3113,
315,
81,
581,
881,
464,
69,
17,
72,
2493,
6,
3719,
4672,
1140,
18,
18539,
12,
538,
18,
803,
18,
5701,
12,
15527,
4537,
16,
315,
5645,
3113,
315,
81,
581,
881,
464,
69,
17,
72,
2493,
6,
3631,
1140,
18,
803,
18,
5701,
12,
15527,
4537,
16,
315,
5645,
3113,
315,
81,
581,
881,
464,
69,
17,
72,
2493,
17,
9572,
6,
3719,
1335,
30,
1342,
463,
8495,
67,
8720,
2056,
67,
3079,
273,
1053,
775,
30,
277,
2493,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
15527,
4537,
16,
315,
5645,
3113,
315,
81,
581,
881,
464,
69,
17,
72,
2493,
6,
3631,
11,
9464,
6134,
1335,
30,
277,
2493,
273,
374,
309,
261,
335,
807,
5,
33,
20,
4672,
1172,
315,
510,
6053,
4904,
1247,
1199,
276,
17968,
298,
18,
8481,
12,
39,
5619,
26003,
8495,
16,
277,
2493,
16,
404,
13,
276,
17968,
298,
18,
8481,
12,
3000,
2627,
56,
11249,
8495,
16,
277,
2493,
16,
404,
13,
277,
2493,
18,
4412,
1435,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7074,
7787,
1649,
13332,
2552,
463,
8495,
67,
8720,
2056,
67,
3079,
309,
486,
463,
8495,
67,
8720,
2056,
67,
3079,
30,
775,
30,
309,
261,
538,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
15527,
4537,
16,
315,
5645,
3113,
315,
81,
581,
881,
464,
69,
17,
72,
2493,
6,
3719,
4672,
1140,
18,
18539,
12,
538,
18,
803,
18,
5701,
12,
15527,
4537,
16,
315,
5645,
3113,
315,
81,
581,
881,
464,
69,
17,
72,
2493,
6,
3631,
1140,
18,
803,
18,
5701,
12,
15527,
4537,
16,
315,
5645,
3113,
315,
81,
581,
881,
464,
69,
17,
72,
2493,
17,
9572,
6,
3719,
1335,
30,
1342,
463,
8495,
67,
8720,
2056,
67,
3079,
2
] |
print "We don't have enough builds to bisect. revlist: %s" % revlist
|
print 'We don\'t have enough builds to bisect. revlist: %s' % revlist
|
def main(): usage = ('%prog [options] [-- chromium-options]\n' 'Perform binary search on the snapshot builds.') parser = optparse.OptionParser(usage=usage) # Strangely, the default help output doesn't include the choice list. choices = ['mac', 'xp', 'linux', 'linux-64'] parser.add_option('-a', '--archive', choices = choices, help = 'The buildbot archive to bisect [%s].' % '|'.join(choices)) parser.add_option('-b', '--bad', type = 'int', help = 'The bad revision to bisect to.') parser.add_option('-g', '--good', type = 'int', help = 'The last known good revision to bisect from.') parser.add_option('-p', '--profile', '--user-data-dir', type = 'str', help = 'Profile to use; this will not reset every run. ' + 'Defaults to a clean profile.') (opts, args) = parser.parse_args() if opts.archive is None: parser.print_help() return 1 if opts.bad and opts.good and (opts.good > opts.bad): print ('The good revision (%d) must precede the bad revision (%d).\n' % (opts.good, opts.bad)) parser.print_help() return 1 SetArchiveVars(opts.archive) # Pick a starting point, try to get HEAD for this. if opts.bad: bad_rev = opts.bad else: bad_rev = 0 try: # Location of the latest build revision number BUILD_LATEST_URL = "%s/LATEST" % (BUILD_BASE_URL) nh = urllib.urlopen(BUILD_LATEST_URL) latest = int(nh.read()) nh.close() bad_rev = raw_input("Bad revision [HEAD:%d]: " % latest) if (bad_rev == ""): bad_rev = latest bad_rev = int(bad_rev) except Exception, e: print("Could not determine latest revision. This could be bad...") bad_rev = int(raw_input("Bad revision: ")) # Find out when we were good. if opts.good: good_rev = opts.good else: good_rev = 0 try: good_rev = int(raw_input("Last known good [0]: ")) except Exception, e: pass # Get a list of revisions to bisect across. revlist = GetRevList(good_rev, bad_rev) if len(revlist) < 2: # Don't have enough builds to bisect print "We don't have enough builds to bisect. revlist: %s" % revlist sys.exit(1) # If we don't have a |good_rev|, set it to be the first revision possible. if good_rev == 0: good_rev = revlist[0] # These are indexes of |revlist|. good = 0 bad = len(revlist) - 1 last_known_good_rev = revlist[good] # Binary search time! while good < bad: candidates = revlist[good:bad] num_poss = len(candidates) if num_poss > 10: print("%d candidates. %d tries left." % (num_poss, round(math.log(num_poss, 2)))) else: print("Candidates: %s" % revlist[good:bad]) # Cut the problem in half... test = int((bad - good) / 2) + good test_rev = revlist[test] # Let the user give this rev a spin (in her own profile, if she wants). profile = opts.profile if not profile: profile = 'profile' # In a temp dir. TryRevision(test_rev, profile, args) if AskIsGoodBuild(test_rev): last_known_good_rev = revlist[good] good = test + 1 else: bad = test # We're done. Let the user know the results in an official manner. print("You are probably looking for build %d." % revlist[bad]) print("CHANGELOG URL:") print(CHANGELOG_URL % (last_known_good_rev, revlist[bad])) print("Built at revision:") print(BUILD_VIEWVC_URL % revlist[bad])
|
bd8dcb92e8921af7f33bb5d675d9439c018cc819 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/bd8dcb92e8921af7f33bb5d675d9439c018cc819/build-bisect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4084,
273,
7707,
9,
14654,
306,
2116,
65,
306,
413,
8123,
5077,
17,
2116,
13944,
82,
11,
296,
4990,
3112,
1623,
603,
326,
4439,
10736,
1093,
13,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
33,
9167,
13,
468,
3978,
539,
2357,
16,
326,
805,
2809,
876,
3302,
1404,
2341,
326,
6023,
666,
18,
7246,
273,
10228,
5821,
2187,
296,
23829,
2187,
296,
20132,
2187,
296,
20132,
17,
1105,
3546,
2082,
18,
1289,
67,
3482,
2668,
17,
69,
2187,
3534,
10686,
2187,
7246,
273,
7246,
16,
2809,
273,
296,
1986,
1361,
4819,
5052,
358,
27031,
9799,
87,
65,
1093,
738,
8030,
18,
5701,
12,
11937,
3719,
2082,
18,
1289,
67,
3482,
2668,
17,
70,
2187,
3534,
8759,
2187,
618,
273,
296,
474,
2187,
2809,
273,
296,
1986,
5570,
6350,
358,
27031,
358,
1093,
13,
2082,
18,
1289,
67,
3482,
2668,
17,
75,
2187,
3534,
19747,
2187,
618,
273,
296,
474,
2187,
2809,
273,
296,
1986,
1142,
4846,
7494,
6350,
358,
27031,
628,
1093,
13,
2082,
18,
1289,
67,
3482,
2668,
17,
84,
2187,
3534,
5040,
2187,
3534,
1355,
17,
892,
17,
1214,
2187,
618,
273,
296,
701,
2187,
2809,
273,
296,
4029,
358,
999,
31,
333,
903,
486,
2715,
3614,
1086,
18,
296,
397,
296,
7019,
358,
279,
2721,
3042,
1093,
13,
261,
4952,
16,
833,
13,
273,
2082,
18,
2670,
67,
1968,
1435,
225,
309,
1500,
18,
10686,
353,
599,
30,
2082,
18,
1188,
67,
5201,
1435,
327,
404,
225,
309,
1500,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4084,
273,
7707,
9,
14654,
306,
2116,
65,
306,
413,
8123,
5077,
17,
2116,
13944,
82,
11,
296,
4990,
3112,
1623,
603,
326,
4439,
10736,
1093,
13,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
33,
9167,
13,
468,
3978,
539,
2357,
16,
326,
805,
2809,
876,
3302,
1404,
2341,
326,
6023,
666,
18,
7246,
273,
10228,
5821,
2187,
296,
23829,
2187,
296,
20132,
2187,
296,
20132,
17,
1105,
3546,
2082,
18,
1289,
67,
3482,
2668,
17,
69,
2187,
3534,
10686,
2187,
7246,
273,
7246,
16,
2809,
273,
296,
1986,
1361,
4819,
5052,
358,
27031,
9799,
87,
65,
1093,
738,
8030,
18,
5701,
12,
11937,
3719,
2082,
18,
1289,
67,
3482,
2668,
17,
70,
2187,
2
] |
'discount' : fields.float('Discount'),
|
'discount' : fields.float('Discount (%)'),
|
def action_done(self, cr, uid, ids,group=True,type='out_refund', context=None): # need to make perfect checking # remaining to check sale condition # need Improvement invoice_obj = self.pool.get('account.invoice') invoice_line_obj = self.pool.get('account.invoice.line') tax_obj=self.pool.get('account.invoice.tax') partner_obj = self.pool.get('res.partner') res = {} for campaign in self.browse(cr, uid, ids): invoices_group = {} invoices_line_group={} res[campaign.id]=[] cr.execute(""" SELECT invoice.id from account_invoice invoice left join res_partner partner on invoice.partner_id=partner.id where partner.discount_campaign=%d and (invoice.date_invoice BETWEEN %s AND %s) AND invoice.type = 'out_invoice' AND state = 'open' """ , (campaign.id,campaign.date_start,campaign.date_stop,)) invoice_ids = map(lambda x:x[0],cr.fetchall())
|
49ba78affef4aa09d339c2c0860b36f6171a6f1f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/49ba78affef4aa09d339c2c0860b36f6171a6f1f/discount_campaign.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
8734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1655,
33,
5510,
16,
723,
2218,
659,
67,
1734,
1074,
2187,
819,
33,
7036,
4672,
468,
1608,
358,
1221,
24746,
6728,
468,
4463,
358,
866,
272,
5349,
2269,
468,
1608,
2221,
685,
22627,
9179,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
6134,
9179,
67,
1369,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
18,
1369,
6134,
5320,
67,
2603,
33,
2890,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
18,
8066,
6134,
19170,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
6134,
400,
273,
2618,
364,
8965,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
2198,
17725,
67,
1655,
273,
2618,
2198,
17725,
67,
1369,
67,
1655,
12938,
400,
63,
14608,
18,
350,
65,
33,
8526,
4422,
18,
8837,
2932,
3660,
9111,
9179,
18,
350,
628,
2236,
67,
16119,
9179,
2002,
1233,
400,
67,
31993,
19170,
603,
9179,
18,
31993,
67,
350,
33,
31993,
18,
350,
1625,
19170,
18,
23650,
67,
14608,
5095,
72,
471,
261,
16119,
18,
712,
67,
16119,
25178,
738,
87,
4116,
738,
87,
13,
4116,
9179,
18,
723,
273,
296,
659,
67,
16119,
11,
4116,
919,
273,
296,
3190,
11,
3536,
269,
261,
14608,
18,
350,
16,
14608,
18,
712,
67,
1937,
16,
14608,
18,
712,
67,
5681,
16,
3719,
9179,
67,
2232,
273,
852,
12,
14661,
619,
30,
92,
63,
20,
6487,
3353,
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,
1301,
67,
8734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1655,
33,
5510,
16,
723,
2218,
659,
67,
1734,
1074,
2187,
819,
33,
7036,
4672,
468,
1608,
358,
1221,
24746,
6728,
468,
4463,
358,
866,
272,
5349,
2269,
468,
1608,
2221,
685,
22627,
9179,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
6134,
9179,
67,
1369,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
18,
1369,
6134,
5320,
67,
2603,
33,
2890,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
18,
8066,
6134,
19170,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
6134,
400,
273,
2618,
364,
8965,
316,
365,
18,
25731,
12,
3353,
2
] |
buff=self.find_buffer(None,None) if buff: return buff
|
conv=self.find_conversation(None,None) if conv: return conv
|
def find_or_make(self,user,thread): bset=self.settings["buffer"] if bset=="separate": pass elif bset=="per-thread": buff=self.find_buffer(user,thread) if buff: return buff elif bset=="per-user": buff=self.find_buffer(user,None) if buff: return buff thread=None else: buff=self.find_buffer(None,None) if buff: return buff thread=None user=None buff=Conversation(self,user,thread) if user: key=user.bare().as_unicode() else: key=user if not self.buffers.has_key(key): self.buffers[key]=[buff] else: self.buffers[key].append(buff) if self.settings.get("auto_popup"): cjc_globals.screen.display_buffer(buff.buffer) return buff
|
2ed38e70a33bd2df44c8386053a4e6083705130d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12768/2ed38e70a33bd2df44c8386053a4e6083705130d/message.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
280,
67,
6540,
12,
2890,
16,
1355,
16,
5930,
4672,
324,
542,
33,
2890,
18,
4272,
9614,
4106,
11929,
309,
324,
542,
31713,
16627,
340,
6877,
1342,
1327,
324,
542,
31713,
457,
17,
5930,
6877,
6139,
33,
2890,
18,
4720,
67,
4106,
12,
1355,
16,
5930,
13,
309,
6139,
30,
327,
6139,
1327,
324,
542,
31713,
457,
17,
1355,
6877,
6139,
33,
2890,
18,
4720,
67,
4106,
12,
1355,
16,
7036,
13,
309,
6139,
30,
327,
6139,
2650,
33,
7036,
469,
30,
6292,
33,
2890,
18,
4720,
67,
25131,
12,
7036,
16,
7036,
13,
309,
6292,
30,
327,
6292,
2650,
33,
7036,
729,
33,
7036,
6139,
33,
15717,
12,
2890,
16,
1355,
16,
5930,
13,
309,
729,
30,
498,
33,
1355,
18,
70,
834,
7675,
345,
67,
9124,
1435,
469,
30,
498,
33,
1355,
309,
486,
365,
18,
28101,
18,
5332,
67,
856,
12,
856,
4672,
365,
18,
28101,
63,
856,
65,
22850,
20664,
65,
469,
30,
365,
18,
28101,
63,
856,
8009,
6923,
12,
20664,
13,
309,
365,
18,
4272,
18,
588,
2932,
6079,
67,
16086,
6,
4672,
18896,
71,
67,
16227,
18,
9252,
18,
5417,
67,
4106,
12,
20664,
18,
4106,
13,
327,
6139,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
280,
67,
6540,
12,
2890,
16,
1355,
16,
5930,
4672,
324,
542,
33,
2890,
18,
4272,
9614,
4106,
11929,
309,
324,
542,
31713,
16627,
340,
6877,
1342,
1327,
324,
542,
31713,
457,
17,
5930,
6877,
6139,
33,
2890,
18,
4720,
67,
4106,
12,
1355,
16,
5930,
13,
309,
6139,
30,
327,
6139,
1327,
324,
542,
31713,
457,
17,
1355,
6877,
6139,
33,
2890,
18,
4720,
67,
4106,
12,
1355,
16,
7036,
13,
309,
6139,
30,
327,
6139,
2650,
33,
7036,
469,
30,
6292,
33,
2890,
18,
4720,
67,
25131,
12,
7036,
16,
7036,
13,
309,
6292,
30,
327,
6292,
2650,
33,
7036,
729,
33,
7036,
6139,
33,
15717,
12,
2890,
16,
1355,
16,
5930,
13,
309,
2
] |
reflist = self.document.refnames[target['id']]
|
reflist = self.document.refids.get(target['id'], [])
|
def nonexistent_indirect_target(self, target): naming = '' if target.hasattr('name'): naming = '"%s" ' % target['name'] reflist = self.document.refnames[target['name']] else: reflist = self.document.refnames[target['id']] naming += '(id="%s")' % target['id'] msg = self.document.reporter.warning( 'Indirect hyperlink target %s refers to target "%s", ' 'which does not exist.' % (naming, target['refname'])) self.document.messages += msg msgid = self.document.set_id(msg) for ref in reflist: prb = nodes.problematic( ref.rawsource, ref.rawsource, refid=msgid) prbid = self.document.set_id(prb) msg.add_backref(prbid) ref.parent.replace(ref, prb) target.resolved = 1
|
3c5273b786e701d5f489cee0c160606f66a95dec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/3c5273b786e701d5f489cee0c160606f66a95dec/references.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1661,
19041,
67,
728,
867,
67,
3299,
12,
2890,
16,
1018,
4672,
14634,
273,
875,
309,
1018,
18,
5332,
1747,
2668,
529,
11,
4672,
14634,
273,
22563,
87,
6,
296,
738,
1018,
3292,
529,
3546,
1278,
1098,
273,
365,
18,
5457,
18,
1734,
1973,
63,
3299,
3292,
529,
3546,
65,
469,
30,
1278,
1098,
273,
365,
18,
5457,
18,
1734,
2232,
18,
588,
12,
3299,
3292,
350,
17337,
5378,
13,
14634,
1011,
7747,
350,
11613,
87,
31241,
738,
1018,
3292,
350,
3546,
1234,
273,
365,
18,
5457,
18,
266,
7988,
18,
8551,
12,
296,
24943,
9512,
1232,
1018,
738,
87,
21368,
358,
1018,
2213,
87,
3113,
296,
296,
12784,
1552,
486,
1005,
1093,
738,
261,
82,
7772,
16,
1018,
3292,
1734,
529,
3546,
3719,
365,
18,
5457,
18,
6833,
1011,
1234,
24389,
273,
365,
18,
5457,
18,
542,
67,
350,
12,
3576,
13,
364,
1278,
316,
1278,
1098,
30,
846,
70,
273,
2199,
18,
18968,
2126,
12,
1278,
18,
1899,
3168,
16,
1278,
18,
1899,
3168,
16,
1278,
350,
33,
3576,
350,
13,
846,
19773,
273,
365,
18,
5457,
18,
542,
67,
350,
12,
683,
70,
13,
1234,
18,
1289,
67,
823,
1734,
12,
683,
19773,
13,
1278,
18,
2938,
18,
2079,
12,
1734,
16,
846,
70,
13,
1018,
18,
11792,
273,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1661,
19041,
67,
728,
867,
67,
3299,
12,
2890,
16,
1018,
4672,
14634,
273,
875,
309,
1018,
18,
5332,
1747,
2668,
529,
11,
4672,
14634,
273,
22563,
87,
6,
296,
738,
1018,
3292,
529,
3546,
1278,
1098,
273,
365,
18,
5457,
18,
1734,
1973,
63,
3299,
3292,
529,
3546,
65,
469,
30,
1278,
1098,
273,
365,
18,
5457,
18,
1734,
2232,
18,
588,
12,
3299,
3292,
350,
17337,
5378,
13,
14634,
1011,
7747,
350,
11613,
87,
31241,
738,
1018,
3292,
350,
3546,
1234,
273,
365,
18,
5457,
18,
266,
7988,
18,
8551,
12,
296,
24943,
9512,
1232,
1018,
738,
87,
21368,
358,
1018,
2213,
87,
3113,
296,
296,
12784,
1552,
486,
1005,
1093,
738,
261,
82,
7772,
16,
2
] |
testData.setFrameMode(self, 1)
|
testData.setFrameMode(1)
|
def processOneImage(self, imNum): """Process one image to (Qx, Qy, Qz, I) modes of frames are: theta- (1), phi- (2), cartesian- (3) and hkl-frame (4)"""
|
0ac0ccb3ff3f7c2a5554b84199874f3c9dfab4e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/0ac0ccb3ff3f7c2a5554b84199874f3c9dfab4e1/transformations.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
3335,
2040,
12,
2890,
16,
709,
2578,
4672,
3536,
2227,
1245,
1316,
358,
261,
53,
92,
16,
2238,
93,
16,
2238,
94,
16,
467,
13,
12382,
434,
7793,
854,
30,
7338,
17,
261,
21,
3631,
7706,
17,
261,
22,
3631,
24549,
17,
261,
23,
13,
471,
366,
16391,
17,
3789,
261,
24,
15574,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
3335,
2040,
12,
2890,
16,
709,
2578,
4672,
3536,
2227,
1245,
1316,
358,
261,
53,
92,
16,
2238,
93,
16,
2238,
94,
16,
467,
13,
12382,
434,
7793,
854,
30,
7338,
17,
261,
21,
3631,
7706,
17,
261,
22,
3631,
24549,
17,
261,
23,
13,
471,
366,
16391,
17,
3789,
261,
24,
15574,
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
] |
setStyle(self.pStyle, cel) setText(i, cel)
|
self.applyTextToFrame(i, cel)
|
def createHeader(self, monthName): """ Draw calendar header. Month name and days of the week """ header = createText(self.marginl, self.calHeight, self.width, self.rowSize) setText(monthName, header) colCnt = 0 for i in self.dayOrder: cel = createText(self.marginl + colCnt * self.colSize, self.calHeight + self.rowSize, self.colSize, self.rowSize) setStyle(self.pStyle, cel) setText(i, cel) colCnt += 1
|
65dce40946c1279b11de5770a1c36f312663cb8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3910/65dce40946c1279b11de5770a1c36f312663cb8b/CalendarWizard.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1864,
12,
2890,
16,
3138,
461,
4672,
3536,
10184,
5686,
1446,
18,
10337,
508,
471,
4681,
434,
326,
4860,
3536,
1446,
273,
752,
1528,
12,
2890,
18,
10107,
80,
16,
365,
18,
771,
2686,
16,
365,
18,
2819,
16,
365,
18,
492,
1225,
13,
7883,
12,
7496,
461,
16,
1446,
13,
645,
11750,
273,
374,
364,
277,
316,
365,
18,
2881,
2448,
30,
25357,
273,
752,
1528,
12,
2890,
18,
10107,
80,
397,
645,
11750,
380,
365,
18,
1293,
1225,
16,
365,
18,
771,
2686,
397,
365,
18,
492,
1225,
16,
365,
18,
1293,
1225,
16,
365,
18,
492,
1225,
13,
365,
18,
9010,
1528,
774,
3219,
12,
77,
16,
25357,
13,
645,
11750,
1011,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1864,
12,
2890,
16,
3138,
461,
4672,
3536,
10184,
5686,
1446,
18,
10337,
508,
471,
4681,
434,
326,
4860,
3536,
1446,
273,
752,
1528,
12,
2890,
18,
10107,
80,
16,
365,
18,
771,
2686,
16,
365,
18,
2819,
16,
365,
18,
492,
1225,
13,
7883,
12,
7496,
461,
16,
1446,
13,
645,
11750,
273,
374,
364,
277,
316,
365,
18,
2881,
2448,
30,
25357,
273,
752,
1528,
12,
2890,
18,
10107,
80,
397,
645,
11750,
380,
365,
18,
1293,
1225,
16,
365,
18,
771,
2686,
397,
365,
18,
492,
1225,
16,
365,
18,
1293,
1225,
16,
365,
18,
492,
1225,
13,
365,
18,
9010,
1528,
774,
3219,
12,
77,
16,
25357,
13,
645,
11750,
1011,
404,
2,
-100
] |
fileo = traced_call(None,"open",open,args,kwargs)
|
fileo = traced_call(None,"openfile",openfile,args,kwargs)
|
def wrapped_open(*args,**kwargs): # Trace the call to get the file object fileo = traced_call(None,"open",open,args,kwargs) # Return the wrapped object return FileObj(fileo)
|
d4d3bf92076e2369dc442814f3f33a0ac55f20cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7279/d4d3bf92076e2369dc442814f3f33a0ac55f20cd/strace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5805,
67,
3190,
30857,
1968,
16,
636,
4333,
4672,
468,
2677,
326,
745,
358,
336,
326,
585,
733,
585,
83,
273,
2606,
72,
67,
1991,
12,
7036,
10837,
3190,
768,
3113,
3190,
768,
16,
1968,
16,
4333,
13,
225,
468,
2000,
326,
5805,
733,
327,
1387,
2675,
12,
768,
83,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5805,
67,
3190,
30857,
1968,
16,
636,
4333,
4672,
468,
2677,
326,
745,
358,
336,
326,
585,
733,
585,
83,
273,
2606,
72,
67,
1991,
12,
7036,
10837,
3190,
768,
3113,
3190,
768,
16,
1968,
16,
4333,
13,
225,
468,
2000,
326,
5805,
733,
327,
1387,
2675,
12,
768,
83,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
newtext += '\n[[%s]]' % paginetta
|
newtext += '\n[[%s]]' % paginetta.encode(site.encoding()) except UnicodeEncodeError: try: newtext += '\n[[%s]]' % paginetta.encode('utf-8') except UnicodeEncodeError: newtext += '\n[[%s]]' % paginetta.encode(site.encoding())
|
def add_text(page = None, addText = None, summary = None, regexSkip = None, regexSkipUrl = None, always = False, up = False, putText = True, oldTextGiven = None): if not addText: raise NoEnoughData('You have to specify what text you want to add!') if not summary: summary = wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), msg) % addText) # When a page is tagged as "really well written" it has a star in the interwiki links. # This is a list of all the templates used (in regex format) to make the stars appear. starsList = ['link[ _]fa', 'link[ _]adq', 'enllaç[ _]ad', 'link[ _]ua', 'legătură[ _]af', 'destacado', 'ua', 'liên k[ _]t[ _]chọn[ _]lọc'] errorCount = 0 site = wikipedia.getSite() # /wiki/ is not always the right path in non-wiki projects pathWiki = site.family.nicepath(site.lang) if putText: wikipedia.output(u'Loading %s...' % page.title()) if oldTextGiven == None: try: text = page.get() except wikipedia.NoPage: wikipedia.output(u"%s doesn't exist, skip!" % page.title()) return False # continue except wikipedia.IsRedirectPage: wikipedia.output(u"%s is a redirect, skip!" % page.title()) return False # continue else: text = oldTextGiven # Understand if the bot has to skip the page or not # In this way you can use both -except and -excepturl if regexSkipUrl != None: url = '%s%s' % (pathWiki, page.urlname()) result = re.findall(regexSkipUrl, site.getUrl(url)) if result != []: wikipedia.output(u'Exception! regex (or word) used with -exceptUrl is in the page. Skip!') return False # continue if regexSkip != None: result = re.findall(regexSkip, text) if result != []: wikipedia.output(u'Exception! regex (or word) used with -except is in the page. Skip!') return False # continue # If not up, text put below if not up: newtext = text categoryNamespace = site.namespace(14) # Getting the categories regexpCat = re.compile(r'\[\[((?:category|%s):.*?)\]\]' % categoryNamespace.lower(), re.I) categorieInside = regexpCat.findall(text) # Deleting the categories newtext = wikipedia.removeCategoryLinks(newtext, site) # Getting the interwiki interwikiInside = page.interwiki() interwikiList = list() for paginetta in interwikiInside: nome = str(paginetta).split('[[')[1].split(']]')[0] interwikiList.append(nome) lang = nome.split(':')[0] # Removing the interwiki newtext = wikipedia.removeLanguageLinks(newtext, site) # Sorting the interwiki interwikiList.sort() newtext += "\n%s" % addText # Reputting the categories for paginetta in categorieInside: try: newtext += '\n[[%s]]' % paginetta.decode('utf-8') except UnicodeDecodeError: try: newtext += '\n[[%s]]' % paginetta.decode('Latin-1') except UnicodeDecodeError: newtext += '\n[[%s]]' % paginetta newtext += '\n' # Dealing the stars' issue starsListInPage = list() for star in starsList: regex = re.compile('(\{\{(?:template:|)%s\|.*?\}\}\n)' % star, re.I) risultato = regex.findall(newtext) if risultato != []: newtext = regex.sub('', newtext) for element in risultato: newtext += '\n%s' % element # Adding the interwiki for paginetta in interwikiList: try: newtext += '\n[[%s]]' % paginetta.decode('utf-8') except UnicodeDecodeError: try: newtext += '\n[[%s]]' % paginetta.decode('Latin-1') except UnicodeDecodeError: newtext += '\n[[%s]]' % paginetta # If instead the text must be added above... else: newtext = addText + '\n' + text if putText: wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) wikipedia.showDiff(text, newtext) choice = '' # Let's put the changes. while 1: # If someone load it as module, maybe it's not so useful to put the text in the page if putText: if not always: choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N') if choice.lower() in ['a', 'all']: always = True if choice.lower() in ['n', 'no']: return False if choice.lower() in ['y', 'yes'] or always: try: page.put(newtext, summary) except wikipedia.EditConflict: wikipedia.output(u'Edit conflict! skip!') return False except wikipedia.ServerError: errorCount += 1 if errorCount < 5: wikipedia.output(u'Server Error! Wait..') time.sleep(3) continue else: raise wikipedia.ServerError(u'Fifth Server Error!') except wikipedia.SpamfilterError, e: wikipedia.output(u'Cannot change %s because of blacklist entry %s' % (page.title(), e.url)) return False except wikipedia.PageNotSaved, error: wikipedia.output(u'Error putting page: %s' % error.args) return False except wikipedia.LockedPage: wikipedia.output(u'Skipping %s (locked page)' % page.title()) return False else: # Break only if the errors are one after the other... errorCount = 0 return True else: return (text, newtext)
|
2dc5b5885dbfd71db74a77dff20c5056f8caf092 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/2dc5b5885dbfd71db74a77dff20c5056f8caf092/add_text.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
955,
12,
2433,
273,
599,
16,
25796,
273,
599,
16,
4916,
273,
599,
16,
3936,
6368,
273,
599,
16,
3936,
6368,
1489,
273,
599,
16,
3712,
273,
1083,
16,
731,
273,
1083,
16,
1378,
1528,
273,
1053,
16,
1592,
1528,
6083,
273,
599,
4672,
309,
486,
25796,
30,
1002,
2631,
664,
4966,
751,
2668,
6225,
1240,
358,
4800,
4121,
977,
1846,
2545,
358,
527,
5124,
13,
309,
486,
4916,
30,
4916,
273,
21137,
18,
542,
1803,
12,
11999,
13744,
18,
13929,
12,
11999,
13744,
18,
588,
4956,
9334,
1234,
13,
738,
25796,
13,
225,
468,
5203,
279,
1363,
353,
12503,
487,
315,
266,
1230,
5492,
5941,
6,
518,
711,
279,
10443,
316,
326,
1554,
13044,
4716,
18,
468,
1220,
353,
279,
666,
434,
777,
326,
5539,
1399,
261,
267,
3936,
740,
13,
358,
1221,
326,
24084,
9788,
18,
24084,
682,
273,
10228,
1232,
63,
389,
65,
507,
2187,
296,
1232,
63,
389,
65,
361,
85,
2187,
296,
275,
2906,
69,
132,
105,
63,
389,
65,
361,
2187,
296,
1232,
63,
389,
65,
11886,
2187,
296,
1935,
133,
230,
25271,
133,
230,
63,
389,
65,
1727,
2187,
296,
10488,
1077,
6821,
2187,
296,
11886,
2187,
296,
549,
132,
108,
82,
417,
63,
389,
65,
88,
63,
389,
65,
343,
162,
124,
240,
82,
63,
389,
65,
80,
162,
124,
240,
71,
3546,
225,
555,
1380,
273,
374,
2834,
273,
21137,
18,
588,
4956,
1435,
468,
342,
13044,
19,
353,
486,
3712,
326,
2145,
589,
316,
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,
527,
67,
955,
12,
2433,
273,
599,
16,
25796,
273,
599,
16,
4916,
273,
599,
16,
3936,
6368,
273,
599,
16,
3936,
6368,
1489,
273,
599,
16,
3712,
273,
1083,
16,
731,
273,
1083,
16,
1378,
1528,
273,
1053,
16,
1592,
1528,
6083,
273,
599,
4672,
309,
486,
25796,
30,
1002,
2631,
664,
4966,
751,
2668,
6225,
1240,
358,
4800,
4121,
977,
1846,
2545,
358,
527,
5124,
13,
309,
486,
4916,
30,
4916,
273,
21137,
18,
542,
1803,
12,
11999,
13744,
18,
13929,
12,
11999,
13744,
18,
588,
4956,
9334,
1234,
13,
738,
25796,
13,
225,
468,
5203,
279,
1363,
353,
12503,
487,
315,
266,
1230,
5492,
5941,
6,
518,
711,
279,
10443,
316,
326,
1554,
13044,
4716,
2
] |
'old_value_text': self.get_value_text(cr,uid,field,old_values[res_id][field],model_object)
|
'old_value_text': self.get_value_text(cr, uid, field, old_values[res_id][field], model_object)
|
def log_fct(self, db, uid, passwd, object, method, fct_src, *args): logged_uids = [] pool = pooler.get_pool(db) cr = pooler.get_db(db).cursor() obj=pool.get(object) object_name=obj._name obj_ids= pool.get('ir.model').search(cr, uid,[('model','=',object_name)]) model_object=pool.get('ir.model').browse(cr,uid,obj_ids)[0] if method in ('create'): res_id = fct_src( db, uid, passwd, object, method, *args) cr.commit() new_value=pool.get(model_object.model).read(cr,uid,[res_id],args[0].keys())[0] if 'id' in new_value: del new_value['id'] if not len(logged_uids) or uid in logged_uids: resource_name = pool.get(model_object.model).name_get(cr,uid,[res_id]) resource_name = resource_name and resource_name[0][1] or '' id=pool.get('audittrail.log').create(cr, uid, {"method": method , "object_id": model_object.id, "user_id": uid, "res_id": res_id, "name": resource_name}) lines=[] for field in new_value: if new_value[field]: line={ 'name':field, 'new_value':new_value[field], 'new_value_text': self.get_value_text(cr,uid,field,new_value[field],model_object) } lines.append(line) self.create_log_line(cr,uid,id,model_object,lines) cr.commit() cr.close() return res_id
|
d8781cd0f2eee29372e5a54862aa63c732ae3150 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/d8781cd0f2eee29372e5a54862aa63c732ae3150/audittrail.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
74,
299,
12,
2890,
16,
1319,
16,
4555,
16,
19093,
16,
733,
16,
707,
16,
28478,
67,
4816,
16,
380,
1968,
4672,
7545,
67,
21428,
273,
5378,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
1966,
13,
4422,
273,
2845,
264,
18,
588,
67,
1966,
12,
1966,
2934,
9216,
1435,
1081,
33,
6011,
18,
588,
12,
1612,
13,
733,
67,
529,
33,
2603,
6315,
529,
1081,
67,
2232,
33,
2845,
18,
588,
2668,
481,
18,
2284,
16063,
3072,
12,
3353,
16,
4555,
16,
63,
2668,
2284,
17023,
33,
2187,
1612,
67,
529,
13,
5717,
938,
67,
1612,
33,
6011,
18,
588,
2668,
481,
18,
2284,
16063,
25731,
12,
3353,
16,
1911,
16,
2603,
67,
2232,
25146,
20,
65,
309,
707,
316,
7707,
2640,
11,
4672,
400,
67,
350,
273,
28478,
67,
4816,
12,
1319,
16,
4555,
16,
19093,
16,
733,
16,
707,
16,
380,
1968,
13,
4422,
18,
7371,
1435,
394,
67,
1132,
33,
6011,
18,
588,
12,
2284,
67,
1612,
18,
2284,
2934,
896,
12,
3353,
16,
1911,
16,
63,
455,
67,
350,
6487,
1968,
63,
20,
8009,
2452,
10756,
63,
20,
65,
309,
296,
350,
11,
316,
394,
67,
1132,
30,
1464,
394,
67,
1132,
3292,
350,
3546,
309,
486,
562,
12,
19385,
67,
21428,
13,
578,
4555,
316,
7545,
67,
21428,
30,
1058,
67,
529,
273,
2845,
18,
588,
12,
2284,
67,
1612,
18,
2284,
2934,
529,
67,
588,
12,
3353,
16,
1911,
16,
63,
455,
67,
350,
5717,
1058,
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,
613,
67,
74,
299,
12,
2890,
16,
1319,
16,
4555,
16,
19093,
16,
733,
16,
707,
16,
28478,
67,
4816,
16,
380,
1968,
4672,
7545,
67,
21428,
273,
5378,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
1966,
13,
4422,
273,
2845,
264,
18,
588,
67,
1966,
12,
1966,
2934,
9216,
1435,
1081,
33,
6011,
18,
588,
12,
1612,
13,
733,
67,
529,
33,
2603,
6315,
529,
1081,
67,
2232,
33,
2845,
18,
588,
2668,
481,
18,
2284,
16063,
3072,
12,
3353,
16,
4555,
16,
63,
2668,
2284,
17023,
33,
2187,
1612,
67,
529,
13,
5717,
938,
67,
1612,
33,
6011,
18,
588,
2668,
481,
18,
2284,
16063,
25731,
12,
3353,
16,
1911,
16,
2603,
67,
2232,
2
] |
line = main_table.readline()
|
if table.header_rows > 0: for i in range(table.header_rows): line = main_table.readline()
|
def create_table(db, table): """Creates a database based on settings supplied in dbinfo object""" warnings.filterwarnings("ignore") # Connect to the database if db.engine == "postgresql": object = "SCHEMA" else: object = "DATABASE" if db.drop: db.cursor.execute(drop_statement(db.engine, object, db.dbname)) db.cursor.execute("CREATE " + object + " " + db.dbname) else: db.cursor.execute("CREATE " + object + " IF NOT EXISTS " + db.dbname) # Create the table if table.drop: db.cursor.execute(drop_statement(db.engine, "TABLE", db.dbname + "." + table.tablename)) createstatement = "CREATE TABLE " + db.dbname + "." + table.tablename + "(" else: createstatement = "CREATE TABLE IF NOT EXISTS " + db.dbname + "." + table.tablename + "(" for item in table.columns: if (item[1][0] != "skip") and (item[1][0] != "combine"): createstatement += item[0] + " " + convert_data_type(db.engine, item[1]) + ", " if table.pk and db.engine == "mysql": createstatement += "PRIMARY KEY (" + table.pk + ")" else: createstatement = createstatement.rstrip(', ') createstatement += ")" print "Creating table " + table.tablename + " in database " + db.dbname + " . . ." db.cursor.execute(createstatement) main_table = urllib.urlopen(table.sourceurl) # Skip over the header line by reading it before processing line = main_table.readline() print "Inserting rows: " species_id = 0 for line in main_table: line = line.strip() if line: # If there is a primary key specified, add an auto-incrementing integer if table.pk: species_id += 1 linevalues = [species_id] column = 0 else: linevalues = [] column = -1 for value in line.split(table.delimiter): column += 1 thiscolumn = table.columns[column][1][0] # If data type is "skip" ignore the value if thiscolumn == "skip": pass elif thiscolumn == "combine": # If "combine" append value to end of previous column linevalues[len(linevalues) - 1] += " " + value else: # Otherwise, add new value linevalues.append(value) # Build insert statement with the correct # of values insertstatement = "INSERT INTO " + db.dbname + "." + table.tablename + " VALUES (" for value in linevalues: insertstatement += "%s, " insertstatement = insertstatement.rstrip(", ") + ");" sys.stdout.write(str(species_id) + "\b" * len(str(species_id))) db.cursor.execute(insertstatement, # Run correct_invalid_value on each value before insertion [datacleanup.correct_invalid_value(value) for value in linevalues]) print "\n Done!" main_table.close()
|
e15b3d784aae599e7e54ad9e03980478efa38dde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12606/e15b3d784aae599e7e54ad9e03980478efa38dde/dbtk_tools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2121,
12,
1966,
16,
1014,
4672,
3536,
2729,
279,
2063,
2511,
603,
1947,
4580,
316,
1319,
1376,
733,
8395,
5599,
18,
2188,
12103,
2932,
6185,
7923,
225,
468,
8289,
358,
326,
2063,
309,
1319,
18,
8944,
422,
315,
2767,
24330,
6877,
733,
273,
315,
14233,
6,
469,
30,
733,
273,
315,
22366,
6,
225,
309,
1319,
18,
7285,
30,
1319,
18,
9216,
18,
8837,
12,
7285,
67,
11516,
12,
1966,
18,
8944,
16,
733,
16,
1319,
18,
20979,
3719,
1319,
18,
9216,
18,
8837,
2932,
9344,
315,
397,
733,
397,
315,
315,
397,
1319,
18,
20979,
13,
469,
30,
1319,
18,
9216,
18,
8837,
2932,
9344,
315,
397,
733,
397,
315,
11083,
4269,
20476,
315,
397,
1319,
18,
20979,
13,
225,
468,
1788,
326,
1014,
309,
1014,
18,
7285,
30,
1319,
18,
9216,
18,
8837,
12,
7285,
67,
11516,
12,
1966,
18,
8944,
16,
315,
7775,
3113,
1319,
18,
20979,
397,
4585,
397,
1014,
18,
7032,
14724,
3719,
1519,
270,
395,
340,
475,
273,
315,
9344,
7567,
315,
397,
1319,
18,
20979,
397,
4585,
397,
1014,
18,
7032,
14724,
397,
12452,
469,
30,
1519,
270,
395,
340,
475,
273,
315,
9344,
7567,
11083,
4269,
20476,
315,
397,
1319,
18,
20979,
397,
4585,
397,
1014,
18,
7032,
14724,
397,
12452,
364,
761,
316,
1014,
18,
5112,
30,
309,
261,
1726,
63,
21,
6362,
20,
65,
480,
315,
7457,
7923,
471,
261,
1726,
63,
21,
6362,
20,
65,
480,
315,
14082,
6,
4672,
1519,
270,
395,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2121,
12,
1966,
16,
1014,
4672,
3536,
2729,
279,
2063,
2511,
603,
1947,
4580,
316,
1319,
1376,
733,
8395,
5599,
18,
2188,
12103,
2932,
6185,
7923,
225,
468,
8289,
358,
326,
2063,
309,
1319,
18,
8944,
422,
315,
2767,
24330,
6877,
733,
273,
315,
14233,
6,
469,
30,
733,
273,
315,
22366,
6,
225,
309,
1319,
18,
7285,
30,
1319,
18,
9216,
18,
8837,
12,
7285,
67,
11516,
12,
1966,
18,
8944,
16,
733,
16,
1319,
18,
20979,
3719,
1319,
18,
9216,
18,
8837,
2932,
9344,
315,
397,
733,
397,
315,
315,
397,
1319,
18,
20979,
13,
469,
30,
1319,
18,
9216,
18,
8837,
2932,
9344,
315,
397,
733,
397,
315,
11083,
4269,
20476,
315,
397,
2
] |
Subgroup of Abelian group on 4 generators (a, b, c, d) with invariants [1008, 2003, 3001, 4001]
|
Subgroup of AbelianGroup( 4, [1008, 2003, 3001, 4001])
|
def __init__(self, ambient, gens, names="f"): """ EXAMPLES: sage: F = AbelianGroup(5,[30,64,729],names = list("abcde")) sage: a,b,c,d,e = F.gens() sage: F.subgroup([a^3,b]) AbelianGroup( 2, [0, 0]) sage: F.subgroup([c]) AbelianGroup( 3, [2, 3, 5]) sage: F.subgroup([a,c]) AbelianGroup( 4, [0, 2, 3, 5]) sage: F.subgroup([a,b*c]) AbelianGroup( 2, [0, 0]) sage: F.subgroup([b*c,d]) AbelianGroup( 2, [0, 64]) sage: F.subgroup([a*b,c^6,d],names = list("xyz")) AbelianGroup( 3, [0, 5, 64]) sage: G = F.subgroup([a*b,c^6,d],names = list("xyz")) sage: G AbelianGroup( 3, [0, 5, 64]) sage: print G Subgroup of Abelian group on 5 generators (a, b, c, d, e) with invariants [0, 0, 30, 64, 729] generated by [a*b, c^6, d] with elementary divisors [0, 5, 64] sage: x,y,z = G.gens() sage: x.order() Infinity sage: y.order() 5 sage: z.order() 64 sage: A = AbelianGroup(5,[3, 5, 5, 7, 8], names = "abcde") sage: a,b,c,d,e = A.gens() sage: A.subgroup([a,b]) AbelianGroup( 2, [3, 5]) sage: A.subgroup([a,b,c,d^2,e]) AbelianGroup( 5, [3, 5, 5, 7, 8]) sage: A.subgroup([a,b,c,d^2,e^2]) AbelianGroup( 5, [3, 4, 5, 5, 7]) sage: B = A.subgroup([a^3,b,c,d,e^2]); B AbelianGroup( 4, [4, 5, 5, 7]) sage: B.invariants() [4, 5, 5, 7] sage: A = AbelianGroup(4,[1009, 2003, 3001, 4001], names = "abcd") sage: a,b,c,d = A.gens() sage: B = A.subgroup([a^3,b,c,d]) sage: B.invariants() [1009, 2003, 3001, 4001] sage: A.order() 24266473210027 sage: B.order() 24266473210027 sage: A = AbelianGroup(4,[1008, 2003, 3001, 4001], names = "abcd") sage: a,b,c,d = A.gens() sage: B = A.subgroup([a^3,b,c,d]) sage: B AbelianGroup( 6, [3, 7, 16, 2003, 3001, 4001]) sage: print B Subgroup of Abelian group on 4 generators (a, b, c, d) with invariants [1008, 2003, 3001, 4001] generated by [a^3, b, c, d] with elementary divisors [3, 7, 16, 2003, 3001, 4001] Infinite groups can also be handled: sage: G = AbelianGroup([3,4,0], names = "abc") sage: a,b,c = G.gens() sage: F = G.subgroup([a,b^2,c]); F AbelianGroup( 3, [0, 3, 4]) sage: F.invariants() [0, 3, 4] sage: F.gens() [a, b^2, c] sage: F.order() Infinity
|
474e9cd21e5543c10385340d5e9747ad7d0f1773 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/474e9cd21e5543c10385340d5e9747ad7d0f1773/abelian_group.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
225,
5675,
8900,
11386,
30,
272,
410,
30,
478,
273,
9771,
292,
2779,
1114,
12,
25,
16,
63,
5082,
16,
1105,
16,
27,
5540,
6487,
1973,
273,
666,
2932,
18947,
323,
6,
3719,
272,
410,
30,
279,
16,
70,
16,
71,
16,
72,
16,
73,
273,
478,
18,
23730,
1435,
272,
410,
30,
478,
18,
1717,
1655,
3816,
69,
66,
23,
16,
70,
5717,
9771,
292,
2779,
1114,
12,
576,
16,
306,
20,
16,
374,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
71,
5717,
9771,
292,
2779,
1114,
12,
890,
16,
306,
22,
16,
890,
16,
1381,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
69,
16,
71,
5717,
9771,
292,
2779,
1114,
12,
1059,
16,
306,
20,
16,
576,
16,
890,
16,
1381,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
69,
16,
70,
14,
71,
5717,
9771,
292,
2779,
1114,
12,
576,
16,
306,
20,
16,
374,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
70,
14,
71,
16,
72,
5717,
9771,
292,
2779,
1114,
12,
576,
16,
306,
20,
16,
5178,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
69,
14,
70,
16,
71,
66,
26,
16,
72,
6487,
1973,
273,
666,
2932,
17177,
6,
3719,
9771,
292,
2779,
1114,
12,
890,
16,
306,
20,
16,
1381,
16,
5178,
5717,
272,
410,
30,
611,
273,
478,
18,
1717,
1655,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
225,
5675,
8900,
11386,
30,
272,
410,
30,
478,
273,
9771,
292,
2779,
1114,
12,
25,
16,
63,
5082,
16,
1105,
16,
27,
5540,
6487,
1973,
273,
666,
2932,
18947,
323,
6,
3719,
272,
410,
30,
279,
16,
70,
16,
71,
16,
72,
16,
73,
273,
478,
18,
23730,
1435,
272,
410,
30,
478,
18,
1717,
1655,
3816,
69,
66,
23,
16,
70,
5717,
9771,
292,
2779,
1114,
12,
576,
16,
306,
20,
16,
374,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
71,
5717,
9771,
292,
2779,
1114,
12,
890,
16,
306,
22,
16,
890,
16,
1381,
5717,
2
] |
month = win32SystemTime[ 1 ]
|
month = win32SystemTime[1]
|
def _LocateDay( self, year, win32SystemTime ): """ Takes a SYSTEMTIME structure as retrieved from a TIME_ZONE_INFORMATION structure and interprets it based on the given year to identify the actual day.
|
c68039a3f4004e3fe46621e4c6512fd2401398fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/677/c68039a3f4004e3fe46621e4c6512fd2401398fc/win32timezone.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1333,
340,
4245,
12,
365,
16,
3286,
16,
5657,
1578,
3163,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1333,
340,
4245,
12,
365,
16,
3286,
16,
5657,
1578,
3163,
950,
262,
30,
3536,
23004,
279,
18786,
4684,
3695,
487,
10295,
628,
279,
8721,
67,
20725,
67,
706,
23805,
3695,
471,
10634,
87,
518,
2511,
603,
326,
864,
3286,
358,
9786,
326,
3214,
2548,
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
] |
def spawnChild(monitor, process):
|
def spawnChild(monitor, process, args=''):
|
def spawnChild(monitor, process): """Returns an xmlrpclib.Server, a connection to an xml-rpc server, and the input and error streams. """ # Start ChildProcessServerStart.py in a new process. script_fn = os.path.join(os.path.dirname(__file__), 'ChildProcessServerStart.py') os.environ['PYTHONPATH'] = string.join(sys.path, os.pathsep) cmd = '%s "%s"' % (sys.executable, script_fn) try: pid = wx.wxExecute(cmd, 0, process) line = '' if monitor.isAlive(): istream = process.GetInputStream() estream = process.GetErrorStream() err = '' # read in the port and auth hash while monitor.isAlive() and string.find(line, '\n') < 0: # don't take more time than the process we wait for ;) time.sleep(0.00001) if not istream.eof(): line = line + istream.read(1) # test for tracebacks on stderr if not estream.eof(): err = estream.read() errlines = string.split(err, '\n') while not string.strip(errlines[-1]): del errlines[-1] exctype, excvalue = string.split(errlines[-1], ':') while errlines and errlines[-1][:7] != ' File ': del errlines[-1] if errlines: errfile = ' (%s)' % string.strip(errlines[-1]) else: errfile = '' raise __builtins__[string.strip(exctype)], ( string.strip(excvalue)+errfile) if not KEEP_STREAMS_OPEN: process.CloseOutput() if monitor.isAlive(): line = string.strip(line) if not line: raise RuntimeError, ( 'The debug server address could not be read') port, auth = string.split(string.strip(line)) if USE_TCPWATCH: # Start TCPWatch as a connection forwarder. from thread import start_new_thread def run_tcpwatch(port): os.system("tcpwatch -L9100:%d" % int(port)) start_new_thread(run_tcpwatch, (port,)) time.sleep(1) port = 9100 trans = TransportWithAuth(auth) server = xmlrpclib.Server( 'http://127.0.0.1:%d' % int(port), trans) return server, istream, estream, pid else: raise RuntimeError, 'The debug server failed to start' except: if monitor.isAlive(): process.CloseOutput() monitor.kill() raise
|
1281f8194c9b2b594d12796ee61cfbb25525fa3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1281f8194c9b2b594d12796ee61cfbb25525fa3a/ChildProcessClient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
1763,
12,
10259,
16,
1207,
16,
833,
2218,
11,
4672,
3536,
1356,
392,
2025,
13832,
830,
495,
18,
2081,
16,
279,
1459,
358,
392,
2025,
17,
7452,
1438,
16,
471,
326,
810,
471,
555,
8205,
18,
3536,
468,
3603,
7451,
2227,
2081,
1685,
18,
2074,
316,
279,
394,
1207,
18,
2728,
67,
4293,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
296,
1763,
2227,
2081,
1685,
18,
2074,
6134,
1140,
18,
28684,
3292,
16235,
20131,
4211,
3546,
273,
533,
18,
5701,
12,
9499,
18,
803,
16,
1140,
18,
803,
10814,
13,
1797,
273,
1995,
87,
2213,
87,
5187,
738,
261,
9499,
18,
17751,
16,
2728,
67,
4293,
13,
775,
30,
4231,
273,
7075,
18,
27226,
5289,
12,
4172,
16,
374,
16,
1207,
13,
980,
273,
875,
309,
6438,
18,
291,
10608,
13332,
277,
3256,
273,
1207,
18,
967,
4348,
1435,
4387,
793,
273,
1207,
18,
967,
668,
1228,
1435,
225,
393,
273,
875,
468,
855,
316,
326,
1756,
471,
1357,
1651,
1323,
6438,
18,
291,
10608,
1435,
471,
533,
18,
4720,
12,
1369,
16,
2337,
82,
6134,
411,
374,
30,
468,
2727,
1404,
4862,
1898,
813,
2353,
326,
1207,
732,
2529,
364,
274,
13,
813,
18,
19607,
12,
20,
18,
2787,
21,
13,
309,
486,
277,
3256,
18,
9339,
13332,
980,
273,
980,
397,
277,
3256,
18,
896,
12,
21,
13,
468,
1842,
364,
10820,
87,
603,
4514,
309,
486,
4387,
793,
18,
9339,
13332,
393,
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,
12560,
1763,
12,
10259,
16,
1207,
16,
833,
2218,
11,
4672,
3536,
1356,
392,
2025,
13832,
830,
495,
18,
2081,
16,
279,
1459,
358,
392,
2025,
17,
7452,
1438,
16,
471,
326,
810,
471,
555,
8205,
18,
3536,
468,
3603,
7451,
2227,
2081,
1685,
18,
2074,
316,
279,
394,
1207,
18,
2728,
67,
4293,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
296,
1763,
2227,
2081,
1685,
18,
2074,
6134,
1140,
18,
28684,
3292,
16235,
20131,
4211,
3546,
273,
533,
18,
5701,
12,
9499,
18,
803,
16,
1140,
18,
803,
10814,
13,
1797,
273,
1995,
87,
2213,
87,
5187,
738,
261,
9499,
18,
17751,
16,
2728,
67,
4293,
13,
2
] |
print>>posefile, ",{" + t[0:t.find(",")] + "," + t[t.find(",")+1:] + "}",
|
print>>posefile, ",{" + t[0:t.find("|")] + "," + t[t.find("|")+1:] + "}",
|
print>>posefile, "#ifndef " + self.name.upper() + "_POSES"
|
26e076ebcceafc434412e68876132ee13cfc8a7d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9859/26e076ebcceafc434412e68876132ee13cfc8a7d/project.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
9778,
4150,
768,
16,
6619,
430,
82,
536,
315,
397,
365,
18,
529,
18,
5797,
1435,
397,
4192,
23757,
55,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1172,
9778,
4150,
768,
16,
6619,
430,
82,
536,
315,
397,
365,
18,
529,
18,
5797,
1435,
397,
4192,
23757,
55,
6,
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
] |
del lwtparser
|
uniq_def = (row[ifos_col],row[name_col],row[vers_col])
|
15d95b3c8cf259e9d26119cf55dce8ab26dfffde /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/15d95b3c8cf259e9d26119cf55dce8ab26dfffde/LDBDServer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
10748,
67,
536,
273,
261,
492,
63,
430,
538,
67,
1293,
6487,
492,
63,
529,
67,
1293,
6487,
492,
63,
2496,
67,
1293,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10748,
67,
536,
273,
261,
492,
63,
430,
538,
67,
1293,
6487,
492,
63,
529,
67,
1293,
6487,
492,
63,
2496,
67,
1293,
5717,
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
] |
|
fp = file(fname, 'w')
|
fp = file(fname, 'wb')
|
def write_rej(self): # our rejects are a little different from patch(1). This always # creates rejects in the same form as the original patch. A file # header is inserted so that you can run the reject through patch again # without having to type the filename.
|
e7af8babfd61c408dec564c925298cef5367a3cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/e7af8babfd61c408dec564c925298cef5367a3cf/patch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
266,
78,
12,
2890,
4672,
468,
3134,
4925,
87,
854,
279,
12720,
3775,
628,
4729,
12,
21,
2934,
225,
1220,
3712,
468,
3414,
4925,
87,
316,
326,
1967,
646,
487,
326,
2282,
4729,
18,
225,
432,
585,
468,
1446,
353,
9564,
1427,
716,
1846,
848,
1086,
326,
4925,
3059,
4729,
3382,
468,
2887,
7999,
358,
618,
326,
1544,
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,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
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
266,
78,
12,
2890,
4672,
468,
3134,
4925,
87,
854,
279,
12720,
3775,
628,
4729,
12,
21,
2934,
225,
1220,
3712,
468,
3414,
4925,
87,
316,
326,
1967,
646,
487,
326,
2282,
4729,
18,
225,
432,
585,
468,
1446,
353,
9564,
1427,
716,
1846,
848,
1086,
326,
4925,
3059,
4729,
3382,
468,
2887,
7999,
358,
618,
326,
1544,
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
] |
self._auto_scroll_save_width = 0
|
self._auto_scroll_save_width = width
|
def __init__(self, interval=200): """Don't forget to call this mixin's init method in your List.
|
6bc6bef6fcfe26aa923224e536d4db13def8c29a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/6bc6bef6fcfe26aa923224e536d4db13def8c29a/dropscroller.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3673,
33,
6976,
4672,
3536,
22293,
1404,
13776,
358,
745,
333,
11682,
1807,
1208,
707,
316,
3433,
987,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3673,
33,
6976,
4672,
3536,
22293,
1404,
13776,
358,
745,
333,
11682,
1807,
1208,
707,
316,
3433,
987,
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
] |
find_table_of_contents(r, edition)
|
find_toc(r, edition)
|
def parser(file_locator, input, bad_data): for r in MARC21BiblioFile (input): edition = { 'source_record_loc': encode_record_locator (r, file_locator) } try: curr_loc = edition['source_record_loc'][0] if len(r.get_fields('001')) > 1: continue find_title(r, edition) if not "title" in edition: continue find_other_titles(r, edition) find_work_title(r, edition) find_toc(r, edition) find_authors(r, edition) find_contributions(r, edition) find_edition(r, edition) find_publisher(r, edition) find_pagination(r, edition) find_subjects(r, edition) find_subject_place(r, edition) find_subject_time(r, edition) find_genre(r, edition) find_series(r, edition) find_description(r, edition) find_table_of_contents(r, edition) find_dewey_number(r, edition) find_lc_classification(r, edition) find_isbn(r, edition) find_oclc(r, edition) find_lccn(r, edition) find_url(r, edition) if len(r.get_fields('008')) > 1: continue f = r.get_field('008') edition["publish_date"] = str(f)[7:11] edition["publish_country"] = str(f)[15:18] edition["languages"] = ["ISO:" + str(f)[35:38]] yield edition except KeyboardInterrupt: raise except: bad_data(edition['source_record_loc'])
|
0169069e6a6560a0f1f9c29af034f3cda64a1ca7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/0169069e6a6560a0f1f9c29af034f3cda64a1ca7/parse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2082,
12,
768,
67,
20048,
16,
810,
16,
5570,
67,
892,
4672,
364,
436,
316,
490,
27206,
5340,
38,
495,
549,
83,
812,
261,
2630,
4672,
28432,
273,
288,
296,
3168,
67,
3366,
67,
1829,
4278,
2017,
67,
3366,
67,
20048,
261,
86,
16,
585,
67,
20048,
13,
289,
775,
30,
4306,
67,
1829,
273,
28432,
3292,
3168,
67,
3366,
67,
1829,
3546,
63,
20,
65,
309,
562,
12,
86,
18,
588,
67,
2821,
2668,
11664,
26112,
405,
404,
30,
1324,
225,
1104,
67,
2649,
12,
86,
16,
28432,
13,
309,
486,
315,
2649,
6,
316,
28432,
30,
1324,
1104,
67,
3011,
67,
17643,
12,
86,
16,
28432,
13,
1104,
67,
1252,
67,
2649,
12,
86,
16,
28432,
13,
1104,
67,
1391,
12,
86,
16,
28432,
13,
1104,
67,
19368,
12,
86,
16,
28432,
13,
1104,
67,
591,
15326,
12,
86,
16,
28432,
13,
1104,
67,
329,
608,
12,
86,
16,
28432,
13,
1104,
67,
26018,
12,
86,
16,
28432,
13,
1104,
67,
17202,
12,
86,
16,
28432,
13,
1104,
67,
7857,
87,
12,
86,
16,
28432,
13,
1104,
67,
7857,
67,
964,
12,
86,
16,
28432,
13,
1104,
67,
7857,
67,
957,
12,
86,
16,
28432,
13,
1104,
67,
4507,
266,
12,
86,
16,
28432,
13,
1104,
67,
10222,
12,
86,
16,
28432,
13,
1104,
67,
3384,
12,
86,
16,
28432,
13,
1104,
67,
1391,
12,
86,
16,
28432,
13,
1104,
67,
323,
91,
402,
67,
2696,
12,
86,
16,
28432,
13,
1104,
67,
17704,
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,
2082,
12,
768,
67,
20048,
16,
810,
16,
5570,
67,
892,
4672,
364,
436,
316,
490,
27206,
5340,
38,
495,
549,
83,
812,
261,
2630,
4672,
28432,
273,
288,
296,
3168,
67,
3366,
67,
1829,
4278,
2017,
67,
3366,
67,
20048,
261,
86,
16,
585,
67,
20048,
13,
289,
775,
30,
4306,
67,
1829,
273,
28432,
3292,
3168,
67,
3366,
67,
1829,
3546,
63,
20,
65,
309,
562,
12,
86,
18,
588,
67,
2821,
2668,
11664,
26112,
405,
404,
30,
1324,
225,
1104,
67,
2649,
12,
86,
16,
28432,
13,
309,
486,
315,
2649,
6,
316,
28432,
30,
1324,
1104,
67,
3011,
67,
17643,
12,
86,
16,
28432,
13,
1104,
67,
1252,
67,
2649,
12,
86,
16,
28432,
2
] |
USE_CTYPES_GETPROCESSTIMES = 'cytpes GetProcessTimes() wrapper'
|
USE_CTYPES_GETPROCESSTIMES = 'ctypes GetProcessTimes() wrapper'
|
def systimes():
|
160b3650f60736e58c9434bcf56deaffc4dde7e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/160b3650f60736e58c9434bcf56deaffc4dde7e1/systimes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
1094,
4485,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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652,
272,
1094,
4485,
13332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 _write( self, sBuffer ): self.oSocket.send( sBuffer )
|
def getSocket( self ): return self.oSocket
|
50d268528280aca31b058f38e04a52a71af67957 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50d268528280aca31b058f38e04a52a71af67957/BaseTransport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28673,
12,
365,
262,
30,
327,
365,
18,
83,
4534,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28673,
12,
365,
262,
30,
327,
365,
18,
83,
4534,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.DC.DrawText(month, (adjust, self.cy_st + th))
|
DC.DrawText(month, (adjust, self.cy_st + th))
|
def DrawMonth(self): month = Month[self.month]
|
b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
5445,
12,
2890,
4672,
3138,
273,
10337,
63,
2890,
18,
7496,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
5445,
12,
2890,
4672,
3138,
273,
10337,
63,
2890,
18,
7496,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
class pAdicGeneralExtensionRingLazy(pAdicGeneralExtensionGeneric, pAdicLazyRingGeneric): def __init__(self, upoly, epoly, poly, prec, halt, print_mode, names): pAdicGeneralExtensionGeneric.__init__(self, upoly, epoly, poly, prec, print_mode, names, pAdicGeneralExtensionLazyElement) pAdicLazyRingGeneric.__init__(self, upoly.base_ring().prime(), prec, print_mode, names, halt) class pAdicGeneralExtensionFieldLazy(pAdicGeneralExtensionGeneric, pAdicLazyFieldGeneric): def __init__(self, upoly, epoly, poly, prec, halt, print_mode, names): pAdicGeneralExtensionGeneric.__init__(self, upoly, epoly, poly, prec, print_mode, names, pAdicGeneralExtensionLazyElement) pAdicLazyFieldGeneric.__init__(self, upoly.base_ring().prime(), prec, print_mode, names, halt) class pAdicGeneralExtensionRingCappedAbsolute(pAdicGeneralExtensionGeneric, pAdicCappedAbsoluteRingGeneric): def __init__(self, upoly, epoly, poly, prec, halt, print_mode, names): pAdicGeneralExtensionGeneric.__init__(self, upoly, epoly, poly, prec, print_mode, names, pAdicGeneralExtensionAbsoluteElement) class pAdicGeneralExtensionRingFixedMod(pAdicGeneralExtensionGeneric, pAdicFixedModRingGeneric): def __init__(self, upoly, epoly, poly, prec, halt, print_mode, names): pAdicGeneralExtensionGeneric.__init__(self, upoly, epoly, poly, prec, print_mode, names, pAdicGeneralExtensionAbsoluteElement)
|
def __init__(self, upoly, epoly, poly, prec, halt, print_mode, names): pAdicGeneralExtensionGeneric.__init__(self, upoly, epoly, poly, prec, print_mode, names, pAdicGeneralExtensionCappedRelativeElement)
|
ba045ed1184b908554216b56093b975bd5ff14cc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ba045ed1184b908554216b56093b975bd5ff14cc/padic_extension_leaves.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
731,
355,
93,
16,
425,
16353,
16,
7573,
16,
13382,
16,
18389,
16,
1172,
67,
3188,
16,
1257,
4672,
293,
1871,
335,
12580,
3625,
7014,
16186,
2738,
972,
12,
2890,
16,
731,
355,
93,
16,
425,
16353,
16,
7573,
16,
13382,
16,
1172,
67,
3188,
16,
1257,
16,
293,
1871,
335,
12580,
3625,
4664,
1845,
8574,
1046,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
731,
355,
93,
16,
425,
16353,
16,
7573,
16,
13382,
16,
18389,
16,
1172,
67,
3188,
16,
1257,
4672,
293,
1871,
335,
12580,
3625,
7014,
16186,
2738,
972,
12,
2890,
16,
731,
355,
93,
16,
425,
16353,
16,
7573,
16,
13382,
16,
1172,
67,
3188,
16,
1257,
16,
293,
1871,
335,
12580,
3625,
4664,
1845,
8574,
1046,
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
] |
|
vif_properties = \ map(server.xenapi.VIF.get_runtime_properties, vif_refs)
|
vif_properties = [] for vif_ref in vif_refs: vif_property = server.xenapi.VIF.get_runtime_properties(vif_ref) vif_property['mac'] = server.xenapi.VIF.get_MAC(vif_ref) vif_properties.append(vif_property)
|
def xm_network_list(args): (use_long, params) = arg_check_for_resource_list(args, "network-list") dom = params[0] if serverType == SERVER_XEN_API: vif_refs = server.xenapi.VM.get_VIFs(get_single_vm(dom)) vif_properties = \ map(server.xenapi.VIF.get_runtime_properties, vif_refs) devs = map(lambda (handle, properties): [handle, map2sxp(properties)], zip(range(len(vif_properties)), vif_properties)) else: devs = server.xend.domain.getDeviceSxprs(dom, 'vif') if use_long: map(PrettyPrint.prettyprint, devs) else: hdr = 0 for x in devs: if hdr == 0: print 'Idx BE MAC Addr. handle state evt-ch tx-/rx-ring-ref BE-path' hdr = 1 ni = parse_dev_info(x[1]) ni['idx'] = int(x[0]) print ("%(idx)-3d " "%(backend-id)-3d" "%(mac)-17s " "%(handle)-3d " "%(state)-3d " "%(event-ch)-3d " "%(tx-ring-ref)-5d/%(rx-ring-ref)-5d " "%(be-path)-30s " % ni)
|
15330bd542341a884267a3d49040758f9f060be9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6195/15330bd542341a884267a3d49040758f9f060be9/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25179,
67,
5185,
67,
1098,
12,
1968,
4672,
261,
1202,
67,
5748,
16,
859,
13,
273,
1501,
67,
1893,
67,
1884,
67,
3146,
67,
1098,
12,
1968,
16,
315,
5185,
17,
1098,
7923,
225,
4092,
273,
859,
63,
20,
65,
225,
309,
1438,
559,
422,
15061,
67,
60,
1157,
67,
2557,
30,
331,
430,
67,
9316,
273,
1438,
18,
92,
275,
2425,
18,
7397,
18,
588,
67,
4136,
12432,
12,
588,
67,
7526,
67,
3489,
12,
9859,
3719,
331,
430,
67,
4738,
273,
5378,
364,
331,
430,
67,
1734,
316,
331,
430,
67,
9316,
30,
331,
430,
67,
4468,
273,
1438,
18,
92,
275,
2425,
18,
4136,
42,
18,
588,
67,
9448,
67,
4738,
12,
90,
430,
67,
1734,
13,
331,
430,
67,
4468,
3292,
5821,
3546,
273,
1438,
18,
92,
275,
2425,
18,
4136,
42,
18,
588,
67,
10875,
12,
90,
430,
67,
1734,
13,
331,
430,
67,
4738,
18,
6923,
12,
90,
430,
67,
4468,
13,
4461,
87,
273,
852,
12,
14661,
261,
4110,
16,
1790,
4672,
306,
4110,
16,
852,
22,
87,
23829,
12,
4738,
13,
6487,
3144,
12,
3676,
12,
1897,
12,
90,
430,
67,
4738,
13,
3631,
331,
430,
67,
4738,
3719,
469,
30,
4461,
87,
273,
1438,
18,
92,
409,
18,
4308,
18,
588,
3654,
55,
92,
683,
87,
12,
9859,
16,
296,
90,
430,
6134,
225,
309,
999,
67,
5748,
30,
852,
12,
20491,
5108,
18,
19073,
1188,
16,
4461,
87,
13,
469,
30,
7723,
273,
374,
364,
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,
25179,
67,
5185,
67,
1098,
12,
1968,
4672,
261,
1202,
67,
5748,
16,
859,
13,
273,
1501,
67,
1893,
67,
1884,
67,
3146,
67,
1098,
12,
1968,
16,
315,
5185,
17,
1098,
7923,
225,
4092,
273,
859,
63,
20,
65,
225,
309,
1438,
559,
422,
15061,
67,
60,
1157,
67,
2557,
30,
331,
430,
67,
9316,
273,
1438,
18,
92,
275,
2425,
18,
7397,
18,
588,
67,
4136,
12432,
12,
588,
67,
7526,
67,
3489,
12,
9859,
3719,
331,
430,
67,
4738,
273,
5378,
364,
331,
430,
67,
1734,
316,
331,
430,
67,
9316,
30,
331,
430,
67,
4468,
273,
1438,
18,
92,
275,
2425,
18,
4136,
42,
18,
588,
67,
9448,
67,
4738,
12,
90,
430,
67,
2
] |
'from': fields.float('From', digits=(16, int(config['price_accuracy']))), 'to': fields.float('To', digits=(16, int(config['price_accuracy']))),
|
'from_val': fields.float('From', digits=(16, int(config['price_accuracy']))), 'to_val': fields.float('To', digits=(16, int(config['price_accuracy']))),
|
def execute_function(self, cr, uid, id, value, context): line_pool = self.pool.get('hr.payslip.line.line') res = 0 ids = line_pool.search(cr, uid, [('slipline_id','=',id), ('to','>=',value),('from','<=',value)]) if not ids: ids = line_pool.search(cr, uid, [('slipline_id','=',id), ('from','<=',value)]) if not ids: res = 0 else: res = line_pool.browse(cr, uid, ids)[0].value return res
|
910b18c43259dc8e764886a06d9de5289ea8c60b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/910b18c43259dc8e764886a06d9de5289ea8c60b/hr_payroll.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
915,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
460,
16,
819,
4672,
980,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
84,
8271,
3169,
18,
1369,
18,
1369,
6134,
400,
273,
374,
3258,
273,
980,
67,
6011,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
87,
549,
412,
558,
67,
350,
17023,
33,
2187,
350,
3631,
7707,
869,
17023,
34,
33,
2187,
1132,
3631,
2668,
2080,
17023,
32,
33,
2187,
1132,
13,
5717,
309,
486,
3258,
30,
3258,
273,
980,
67,
6011,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
87,
549,
412,
558,
67,
350,
17023,
33,
2187,
350,
3631,
7707,
2080,
17023,
32,
33,
2187,
1132,
13,
5717,
309,
486,
3258,
30,
400,
273,
374,
469,
30,
400,
273,
980,
67,
6011,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
25146,
20,
8009,
1132,
327,
400,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
915,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
460,
16,
819,
4672,
980,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
84,
8271,
3169,
18,
1369,
18,
1369,
6134,
400,
273,
374,
3258,
273,
980,
67,
6011,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
87,
549,
412,
558,
67,
350,
17023,
33,
2187,
350,
3631,
7707,
869,
17023,
34,
33,
2187,
1132,
3631,
2668,
2080,
17023,
32,
33,
2187,
1132,
13,
5717,
309,
486,
3258,
30,
3258,
273,
980,
67,
6011,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
87,
549,
412,
558,
67,
350,
17023,
33,
2187,
350,
3631,
7707,
2080,
17023,
32,
33,
2187,
1132,
13,
2
] |
output.extend(self.outgoing_edge_iterator(vertices1,labels=labels))
|
def edge_boundary(self, vertices1, vertices2=None, labels=True): """ Returns a list of edges `(u,v,l)` with `u` in ``vertices1`` and `v` in ``vertices2``. If ``vertices2`` is ``None``, then it is set to the complement of ``vertices1``.
|
7b9afb3b66d010e574487a319d86af01cd22bcc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/7b9afb3b66d010e574487a319d86af01cd22bcc7/generic_graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3591,
67,
16604,
12,
2890,
16,
6928,
21,
16,
6928,
22,
33,
7036,
16,
3249,
33,
5510,
4672,
3536,
2860,
279,
666,
434,
5231,
1375,
12,
89,
16,
90,
16,
80,
22025,
598,
1375,
89,
68,
316,
12176,
17476,
21,
10335,
471,
1375,
90,
68,
316,
12176,
17476,
22,
68,
8338,
971,
12176,
17476,
22,
10335,
353,
12176,
7036,
68,
9191,
1508,
518,
353,
444,
358,
326,
17161,
434,
12176,
17476,
21,
68,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3591,
67,
16604,
12,
2890,
16,
6928,
21,
16,
6928,
22,
33,
7036,
16,
3249,
33,
5510,
4672,
3536,
2860,
279,
666,
434,
5231,
1375,
12,
89,
16,
90,
16,
80,
22025,
598,
1375,
89,
68,
316,
12176,
17476,
21,
10335,
471,
1375,
90,
68,
316,
12176,
17476,
22,
68,
8338,
971,
12176,
17476,
22,
10335,
353,
12176,
7036,
68,
9191,
1508,
518,
353,
444,
358,
326,
17161,
434,
12176,
17476,
21,
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
] |
|
('(%s)' % '|'.join( re.escape(entry) + ' ' for entry in keywords),
|
('(%s)' % '|'.join([ re.escape(entry) + ' ' for entry in keywords]),
|
def get_tokens_unprocessed(self, text): for index, token, value in \ RegexLexer.get_tokens_unprocessed(self, text): if token is Name: if value in self._functions: yield index, Name.Function, value continue elif '.' in value: a, b = value.split('.') yield index, Name, a yield index + len(a), Text, u'.' yield index + len(a) + 1, Name, b continue yield index, token, value
|
8a3942b9e8f3763a12fdbc39f52a55e6e3c3fe8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2885/8a3942b9e8f3763a12fdbc39f52a55e6e3c3fe8c/agile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
364,
770,
16,
1147,
16,
460,
316,
521,
15078,
13356,
18,
588,
67,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
309,
1147,
353,
1770,
30,
309,
460,
316,
365,
6315,
10722,
30,
2824,
770,
16,
1770,
18,
2083,
16,
460,
1324,
1327,
2611,
316,
460,
30,
279,
16,
324,
273,
460,
18,
4939,
2668,
1093,
13,
2824,
770,
16,
1770,
16,
279,
2824,
770,
397,
562,
12,
69,
3631,
3867,
16,
582,
11,
1093,
2824,
770,
397,
562,
12,
69,
13,
397,
404,
16,
1770,
16,
324,
1324,
2824,
770,
16,
1147,
16,
460,
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,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30,
309,
460,
316,
365,
6315,
10722,
30,
2824,
770,
16,
1770,
18,
2083,
16,
460,
1324,
1327,
2611,
316,
460,
30,
279,
16,
324,
273,
460,
18,
4939,
2668,
1093,
13,
2824,
770,
16,
1770,
16,
279,
2824,
770,
397,
562,
12,
69,
3631,
3867,
16,
582,
11,
1093,
2824,
770,
397,
562,
12,
69,
13,
397,
404,
16,
1770,
16,
324,
1324,
2824,
770,
16,
1147,
16,
460,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
SystemDrive = os.environ.get("SystemDrive", "") if os.environ.get("OS") == "Windows_NT": HostIsNT = True else: HostIsNT = False
|
def SetupEnvironment(): SystemDrive = os.environ.get("SystemDrive", "") if os.environ.get("OS") == "Windows_NT": HostIsNT = True else: HostIsNT = False SystemDrive = os.environ.get("SYSTEMDRIVE") if SystemDrive: SystemDrive += os.path.sep # Do this earlier so that its link isn't a problem. # Looking in the registry HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 # would be reasonable here. if CM3IsCygwin: _SetupEnvironmentVariableAll( "PATH", ["cygwin1.dll"], os.path.join(SystemDrive, "cygwin", "bin")) # some host/target confusion here.. if Target == "NT386" and HostIsNT and Config == "NT386" and (not GCC_BACKEND) and TargetOS == "WIN32": VCBin = "" VCInc = "" VCLib = "" MspdbDir = "" # 4.0 e:\MSDEV # 5.0 E:\Program Files\DevStudio\SharedIDE MSDevDir = os.environ.get("MSDEVDIR") # 5.0 MSVCDir = os.environ.get("MSVCDIR") # E:\Program Files\DevStudio\VC # 7.1 Express VCToolkitInstallDir = os.environ.get("VCTOOLKITINSTALLDIR") # E:\Program Files\Microsoft Visual C++ Toolkit 2003 (not set by vcvars32) # 8.0 Express # E:\Program Files\Microsoft Visual Studio 8\VC # E:\Program Files\Microsoft Visual Studio 8\Common7\Tools DevEnvDir = os.environ.get("DevEnvDir") # E:\Program Files\Microsoft Visual Studio 8\Common7\IDE VSInstallDir = os.environ.get("VSINSTALLDIR") # E:\Program Files\Microsoft Visual Studio 8 # VS80CommonTools = os.environ.get("VS80COMNTOOLS") # E:\Program Files\Microsoft Visual Studio 8\Common7\Tools VCInstallDir = os.environ.get("VCINSTALLDIR") # E:\Program Files\Microsoft Visual Studio 8\VC # 9.0 Express # always, global #VS90COMNTOOLS=D:\msdev\90\Common7\Tools\ # after running the shortcut #VCINSTALLDIR=D:\msdev\90\VC #VSINSTALLDIR=D:\msdev\90 VSCommonTools = os.environ.get("VS90COMNTOOLS") if VSCommonTools and not VSInstallDir: VSInstallDir = RemoveLastPathElement(RemoveLastPathElement(VSCommonTools)) # The Windows SDK is carried with the express edition and tricky to find. # Best if folks just run the installed shortcut probably. # We do a pretty good job now of finding it, be need to encode # more paths to known versions. # This is not yet finished. # # Probe the partly version-specific less-polluting environment variables, # from newest to oldest. # That is, having setup alter PATH, INCLUDE, and LIB system-wide is not # a great idea, but having setup set DevEnvDir, VSINSTALLDIR, VS80COMNTOOLS, etc. # isn't so bad and we can temporarily establish the first set from the second # set. if VSInstallDir: # Visual C++ 2005/8.0, at least the Express Edition, free download # also Visual C++ 2008/9.0 Express Edition if not VCInstallDir: VCInstallDir = os.path.join(VSInstallDir, "VC") #print("VCInstallDir:" + VCInstallDir) if not DevEnvDir: DevEnvDir = os.path.join(VSInstallDir, "Common7", "IDE") #print("DevEnvDir:" + DevEnvDir) MspdbDir = DevEnvDir elif VCToolkitInstallDir: # free download Visual C++ 2003; no longer available VCInstallDir = VCToolkitInstallDir elif MSVCDir and MSDevDir: # Visual C++ 5.0 pass # do more research # VCInstallDir = MSVCDir elif MSDevDir: # Visual C++ 4.0, 5.0 pass # do more research # VCInstallDir = MSDevDir else: # This is what really happens on my machine, for 8.0. # It might be good to guide pylib.py to other versions, # however setting things up manually suffices and I have, um, # well automated. Msdev = os.path.join(SystemDrive, "msdev", "80") VCInstallDir = os.path.join(Msdev, "VC") DevEnvDir = os.path.join(Msdev, "Common7", "IDE") if VCInstallDir: VCBin = os.path.join(VCInstallDir, "bin") VCLib = os.path.join(VCInstallDir, "lib") VCInc = os.path.join(VCInstallDir, "include") if DevEnvDir: MspdbDir = DevEnvDir #elif VCBin: # MspdbDir = VCBin # Look for SDKs. # expand this as they are released/discovered # ordering is from newest to oldest PossibleSDKs = [os.path.join("Microsoft SDKs", "Windows", "v6.0A"), "Microsoft Platform SDK for Windows Server 2003 R2"] SDKs = [] for a in GetProgramFiles(): #print("checking " + a) for b in PossibleSDKs: c = os.path.join(a, b) #print("checking " + c) if isdir(c) and not (c in SDKs): SDKs.append(c) # Make sure %INCLUDE% contains errno.h and windows.h. # This doesn't work correctly for Cygwin Python, ok. if _CheckSetupEnvironmentVariableAll("INCLUDE", ["errno.h", "windows.h"], VCInc): for a in SDKs: b = os.path.join(a, "include") if isfile(os.path.join(b, "windows.h")): _SetupEnvironmentVariableAll("INCLUDE", ["errno.h", "windows.h"], VCInc + ";" + b, ";") break # Make sure %LIB% contains kernel32.lib and libcmt.lib. # We carry our own kernel32.lib so we don't look in the SDKs. # We usually use msvcrt.lib and not libcmt.lib, but Express 2003 had libcmt.lib and not msvcrt.lib # I think, and libcmt.lib is always present. _SetupEnvironmentVariableAll( "LIB", ["kernel32.lib", "libcmt.lib"], VCLib + ";" + os.path.join(InstallRoot, "lib")) # Check that cl.exe and link.exe are in path, and if not, add VCBin to it, # checking that they are in it. # # Do this before mspdb*dll because it sometimes gets it in the path. # (Why do we care?) _SetupEnvironmentVariableAll("PATH", ["cl", "link"], VCBin) # If none of mspdb*.dll are in PATH, add MpsdbDir to PATH, and check that one of them is in it. _SetupEnvironmentVariableAny( "PATH", ["mspdb80.dll", "mspdb71.dll", "mspdb70.dll", "mspdb60.dll", "mspdb50.dll", "mspdb41.dll", "mspdb40.dll", "dbi.dll"], MspdbDir) # Try to get mt.exe in %PATH% if it isn't already. # We only need this for certain toolsets. if not SearchPath("mt.exe", os.environ.get("PATH")): for a in SDKs: b = os.path.join(a, "bin") if isfile(os.path.join(b, "mt.exe")): SetEnvironmentVariable("PATH", os.environ.get("PATH") + os.pathsep + b) break # sys.exit(1) # The free Visual C++ 2003 has neither delayimp.lib nor msvcrt.lib. # Very old toolsets have no delayimp.lib. # The Quake config file checks these environment variables. Lib = os.environ.get("LIB") if not SearchPath("delayimp.lib", Lib): os.environ["USE_DELAYLOAD"] = "0" print("set USE_DELAYLOAD=0") if not SearchPath("msvcrt.lib", Lib): os.environ["USE_MSVCRT"] = "0" print("set USE_MSVCRT=0") # some host/target confusion here.. if Target == "NT386MINGNU" or (Target == "NT386" and GCC_BACKEND and TargetOS == "WIN32"): _ClearEnvironmentVariable("LIB") _ClearEnvironmentVariable("INCLUDE") _SetupEnvironmentVariableAll( "PATH", ["gcc", "as", "ld"], os.path.join(SystemDrive, "mingw", "bin")) # need to probe for ld that accepts response files. # For example, this version does not: # C:\dev2\cm3\scripts\python>ld -v # GNU ld version 2.15.91 20040904 # This comes with Qt I think (free Windows version) # # This version works: # C:\dev2\cm3\scripts\python>ld -v # GNU ld version 2.17.50 20060824 # Ensure msys make is ahead of mingwin make, by adding # msys to the start of the path after adding mingw to the # start of the path. Modula-3 does not generally use # make, but this might matter when building m3cg, and # is usually the right thing. _SetupEnvironmentVariableAll( "PATH", ["sh", "sed", "gawk", "make"], os.path.join(SystemDrive, "msys", "1.0", "bin")) # some host/target confusion here.. if Host == "NT386GNU" or (Host == "NT386" and GCC_BACKEND and TargetOS == "POSIX"): #_ClearEnvironmentVariable("LIB") #_ClearEnvironmentVariable("INCLUDE") #if HostIsNT: # _SetupEnvironmentVariableAll( # "PATH", # ["cygX11-6.dll"], # os.path.join(SystemDrive, "cygwin", "usr", "X11R6", "bin")) _SetupEnvironmentVariableAll( "PATH", ["gcc", "as", "ld"], os.path.join(SystemDrive, "cygwin", "bin"))
|
14e6facff06b2fc91279af79db1d8f8435565022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/14e6facff06b2fc91279af79db1d8f8435565022/pylib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10939,
5494,
13332,
2332,
24681,
273,
1140,
18,
28684,
18,
588,
2932,
14318,
40,
2259,
3412,
7923,
309,
2332,
24681,
30,
2332,
24681,
1011,
1140,
18,
803,
18,
10814,
225,
468,
2256,
333,
13805,
1427,
716,
2097,
1692,
5177,
1404,
279,
6199,
18,
468,
10176,
310,
316,
326,
4023,
670,
3297,
67,
14922,
67,
5535,
1792,
3740,
64,
3584,
4464,
28499,
64,
17992,
1600,
407,
348,
355,
6170,
64,
39,
4338,
8082,
64,
4778,
87,
331,
22,
468,
4102,
506,
23589,
2674,
18,
225,
309,
15871,
23,
2520,
39,
4338,
8082,
30,
389,
7365,
5494,
3092,
1595,
12,
315,
4211,
3113,
8247,
2431,
75,
8082,
21,
18,
27670,
6,
6487,
1140,
18,
803,
18,
5701,
12,
3163,
24681,
16,
315,
2431,
75,
8082,
3113,
315,
4757,
6,
3719,
225,
468,
2690,
1479,
19,
3299,
31067,
2674,
838,
225,
309,
5916,
422,
315,
1784,
23,
5292,
6,
471,
4893,
2520,
1784,
471,
1903,
422,
315,
1784,
23,
5292,
6,
471,
261,
902,
611,
6743,
67,
8720,
4415,
13,
471,
5916,
4618,
422,
315,
24572,
1578,
6877,
225,
776,
8876,
267,
273,
1408,
776,
39,
14559,
273,
1408,
776,
5017,
495,
273,
1408,
490,
1752,
1966,
1621,
273,
1408,
225,
468,
1059,
18,
20,
425,
5581,
3537,
15301,
468,
1381,
18,
20,
512,
5581,
9459,
6471,
64,
8870,
510,
4484,
64,
7887,
10385,
9238,
8870,
1621,
273,
1140,
18,
28684,
18,
588,
2932,
3537,
15301,
4537,
7923,
225,
468,
1381,
18,
20,
9238,
13464,
1621,
273,
1140,
18,
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,
10939,
5494,
13332,
2332,
24681,
273,
1140,
18,
28684,
18,
588,
2932,
14318,
40,
2259,
3412,
7923,
309,
2332,
24681,
30,
2332,
24681,
1011,
1140,
18,
803,
18,
10814,
225,
468,
2256,
333,
13805,
1427,
716,
2097,
1692,
5177,
1404,
279,
6199,
18,
468,
10176,
310,
316,
326,
4023,
670,
3297,
67,
14922,
67,
5535,
1792,
3740,
64,
3584,
4464,
28499,
64,
17992,
1600,
407,
348,
355,
6170,
64,
39,
4338,
8082,
64,
4778,
87,
331,
22,
468,
4102,
506,
23589,
2674,
18,
225,
309,
15871,
23,
2520,
39,
4338,
8082,
30,
389,
7365,
5494,
3092,
1595,
12,
315,
4211,
3113,
8247,
2431,
75,
8082,
21,
18,
27670,
6,
6487,
1140,
18,
803,
18,
5701,
12,
3163,
24681,
2
] |
|
os.rename(agentFile['tempFile'], agentFile['name'])
|
shutil.move(agentFile['tempFile'], agentFile['name'])
|
def downloadFile(agentFile, recursed = False): mainLogger.debug('Update: downloading ' + agentFile['name']) print 'Downloading ' + agentFile['name'] downloadedFile = urllib.urlretrieve('http://www.serverdensity.com/downloads/sd-agent/' + agentFile['name']) # Do md5 check to make sure the file downloaded properly checksum = md5.new() f = file(downloadedFile[0], 'rb') # Although the files are small, we can't guarantee the available memory nor that there # won't be large files in the future, so read the file in small parts (1kb at time) while True: part = f.read(1024) if not part: break # end of file checksum.update(part) f.close() # Do we have a match? if checksum.hexdigest() == agentFile['md5']: return downloadedFile[0] else: # Try once more if recursed == False: downloadFile(agentFile, True) else: print agentFile['name'] + ' did not match its checksum - it is corrupted. This may be caused by network issues so please try again in a moment.' sys.exit(2)
|
0770c3ee1ff7e53eaa7dd315bb760be6b5198847 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13266/0770c3ee1ff7e53eaa7dd315bb760be6b5198847/agent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
812,
12,
5629,
812,
16,
8112,
730,
273,
1083,
4672,
2774,
3328,
18,
4148,
2668,
1891,
30,
23742,
296,
397,
4040,
812,
3292,
529,
19486,
1172,
296,
27217,
296,
397,
4040,
812,
3292,
529,
3546,
225,
13549,
812,
273,
11527,
18,
718,
17466,
2668,
2505,
2207,
5591,
18,
3567,
18781,
18,
832,
19,
7813,
87,
19,
6427,
17,
5629,
2473,
397,
4040,
812,
3292,
529,
19486,
225,
468,
2256,
3481,
25,
866,
358,
1221,
3071,
326,
585,
13549,
8214,
6697,
273,
3481,
25,
18,
2704,
1435,
284,
273,
585,
12,
2378,
17983,
63,
20,
6487,
296,
6731,
6134,
225,
468,
2262,
18897,
326,
1390,
854,
5264,
16,
732,
848,
1404,
18779,
326,
2319,
3778,
12517,
716,
1915,
468,
8462,
1404,
506,
7876,
1390,
316,
326,
3563,
16,
1427,
855,
326,
585,
316,
5264,
2140,
261,
21,
8899,
622,
813,
13,
1323,
1053,
30,
1087,
273,
284,
18,
896,
12,
2163,
3247,
13,
225,
309,
486,
1087,
30,
898,
468,
679,
434,
585,
225,
6697,
18,
2725,
12,
2680,
13,
225,
284,
18,
4412,
1435,
225,
468,
2256,
732,
1240,
279,
845,
35,
309,
6697,
18,
7118,
10171,
1435,
422,
4040,
812,
3292,
1264,
25,
3546,
30,
327,
13549,
812,
63,
20,
65,
225,
469,
30,
468,
6161,
3647,
1898,
309,
8112,
730,
422,
1083,
30,
4224,
812,
12,
5629,
812,
16,
1053,
13,
225,
469,
30,
1172,
4040,
812,
3292,
529,
3546,
397,
296,
5061,
486,
845,
2097,
6697,
300,
518,
353,
27823,
18,
1220,
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,
4224,
812,
12,
5629,
812,
16,
8112,
730,
273,
1083,
4672,
2774,
3328,
18,
4148,
2668,
1891,
30,
23742,
296,
397,
4040,
812,
3292,
529,
19486,
1172,
296,
27217,
296,
397,
4040,
812,
3292,
529,
3546,
225,
13549,
812,
273,
11527,
18,
718,
17466,
2668,
2505,
2207,
5591,
18,
3567,
18781,
18,
832,
19,
7813,
87,
19,
6427,
17,
5629,
2473,
397,
4040,
812,
3292,
529,
19486,
225,
468,
2256,
3481,
25,
866,
358,
1221,
3071,
326,
585,
13549,
8214,
6697,
273,
3481,
25,
18,
2704,
1435,
284,
273,
585,
12,
2378,
17983,
63,
20,
6487,
296,
6731,
6134,
225,
468,
2262,
18897,
326,
1390,
854,
5264,
16,
732,
848,
1404,
18779,
326,
2319,
3778,
12517,
716,
1915,
2
] |
dot = rfind(".")
|
dot = version.rfind(".")
|
def load(self):
|
8ca9b0124f4dce0b5dc277a9e8c0b56e4bc51987 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/8ca9b0124f4dce0b5dc277a9e8c0b56e4bc51987/synthesis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
gHelpFolder = 'Help'
|
# TODO : selection "Object-Method" and choosing alt + j will open the class def file for THAT method
|
834d09fc9dfde3f24de1676683d68b32b2d08451 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11200/834d09fc9dfde3f24de1676683d68b32b2d08451/Psycollider.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
2660,
294,
4421,
315,
921,
17,
1305,
6,
471,
24784,
310,
3770,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
2660,
294,
4421,
315,
921,
17,
1305,
6,
471,
24784,
310,
3770,
397,
525,
903,
1696,
326,
667,
1652,
585,
364,
7662,
789,
707,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
App_ns.root.Remove()
|
App_ns.root.Remove({'testing' : True})
|
def publishSubscribe(logger): """ A function to publish and subscribe a collection. """ # action # Webdav Account Setting ap = UITestAccounts(logger) ap.Open() # first, open the accounts dialog window ap.CreateAccount("WebDAV") ap.TypeValue("displayName", uw("Publish Test WebDAV")) ap.TypeValue("host", "osaf.us") ap.TypeValue("path", "cosmo/home/demo1") ap.TypeValue("username", "demo1") ap.TypeValue("password", "ad3leib5") ap.TypeValue("port", "443") ap.ToggleValue("ssl", True) ap.ToggleValue("default", True) ap.Ok() # verification ap.VerifyValues("WebDAV", uw("Publish Test WebDAV"), displayName = uw("Publish Test WebDAV"), host = "osaf.us", username = "demo1", password="ad3leib5", port=443) # import events so test will have something to share even when run by itself path = os.path.join(os.getenv('CHANDLERHOME'),"tools/QATestScripts/DataFiles") # Upcast path to unicode since Sharing requires a unicode path path = unicode(path, 'utf8') share = sharing.OneTimeFileSystemShare(path, u'testSharing.ics', sharing.ICalendarFormat, itsView=App_ns.itsView) collection = share.get() App_ns.sidebarCollection.add(collection) scripting.User.idle() # Collection selection sidebar = App_ns.sidebar scripting.User.emulate_sidebarClick(sidebar, "testSharing") # Sharing dialog collection = Block.findBlockByName("MainView").getSidebarSelectedCollection() if collection is not None: publishName = "TestSharing_%s" % str(collection.itsUUID) win = ShowPublishDialog(wx.GetApp().mainFrame, view=App_ns.itsView, collection=collection, modal=False, name=publishName) #Share button call app = wx.GetApp() # We are interested in seeing how quickly we can upload the collection logger.Start('Publish') win.PublishCollection() while not win.done: app.Yield() logger.Stop() if not win.success: logger.ReportFailure("(On publish collection)") win.OnCancel(None) # Close the window which should be showing a failure return # Get a read-write ticket to the published collection # XXX This is ripped from PublishCollection if win.publishType == 'freebusy': share = sharing.getFreeBusyShare(win.collection) else: share = sharing.getShare(win.collection) urls = sharing.getUrls(share) if len(urls) == 1: urlString = urls[0] elif win.publishType == 'freebusy': urlString = urls[1] else: urlString = urls[0] # read-write #Done button call win.OnPublishDone(None) app.Yield() # Unsubscribe and delete the (local) collection we just published so # that we can subscribe to it below. sharing.unsubscribe(collection) # Two clicks are required to select the collection (this is the second) scripting.User.emulate_sidebarClick(sidebar, "testSharing") App_ns.root.Remove() scripting.User.idle() # Subscribe to the remote collection, forcing the subscribed name to # be "testSharing" because it was given a random name when published above. win = SubscribeCollection.Show(wx.GetApp().mainFrame, view=App_ns.itsView, modal=False, name="testSharing") url = win.toolPanel.GetChildren()[1] url.SetFocus() url.Clear() # Need to have this or first letter of URL is not # typed into control on Linux scripting.User.idle() scripting.User.emulate_typing(urlString) # We are interested in seeing how quickly we can download the collection logger.Start('Subscribe') win.OnSubscribe(None) try: while win.subscribing: app.Yield() except wx.PyDeadObjectError: # XXX The C++ part of the dialog was gone, so we are no longer # XXX supposed to touch any attributes of the dialog. In our # XXX case this is safe, so just ignore. This seems to be needed # XXX on Linux only. pass logger.Stop() scripting.User.idle() # verification if scripting.User.emulate_sidebarClick(App_ns.sidebar, "testSharing"): # We need to click twice to move the focus to the sidebar scripting.User.emulate_sidebarClick(App_ns.sidebar, "testSharing") # cleanup # cosmo can only handle so many shared calendars # so remove this one when done collection = sidebarCollectionNamed('testSharing') sharing.unpublish(collection) App_ns.root.Remove() logger.ReportPass("(On Subscribe collection)") else: logger.ReportFailure("(On Subscribe collection)") logger.SetChecked(True)
|
51369d7c7b84bc7021791fb6f50ae1b3d0c05b88 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/51369d7c7b84bc7021791fb6f50ae1b3d0c05b88/QAUITestAppLib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
16352,
12,
4901,
4672,
3536,
432,
445,
358,
3808,
471,
9129,
279,
1849,
18,
3536,
468,
1301,
468,
2999,
20752,
6590,
13274,
513,
273,
587,
1285,
395,
13971,
12,
4901,
13,
513,
18,
3678,
1435,
468,
1122,
16,
1696,
326,
9484,
6176,
2742,
513,
18,
1684,
3032,
2932,
4079,
17735,
7923,
513,
18,
559,
620,
2932,
5417,
461,
3113,
582,
91,
2932,
6024,
7766,
2999,
17735,
6,
3719,
513,
18,
559,
620,
2932,
2564,
3113,
315,
538,
1727,
18,
407,
7923,
513,
18,
559,
620,
2932,
803,
3113,
315,
14445,
8683,
19,
8712,
19,
27928,
21,
7923,
513,
18,
559,
620,
2932,
5053,
3113,
315,
27928,
21,
7923,
513,
18,
559,
620,
2932,
3664,
3113,
315,
361,
23,
298,
495,
25,
7923,
513,
18,
559,
620,
2932,
655,
3113,
315,
6334,
23,
7923,
513,
18,
17986,
620,
2932,
8157,
3113,
1053,
13,
513,
18,
17986,
620,
2932,
1886,
3113,
1053,
13,
513,
18,
8809,
1435,
225,
468,
11805,
513,
18,
8097,
1972,
2932,
4079,
17735,
3113,
582,
91,
2932,
6024,
7766,
2999,
17735,
6,
3631,
16218,
273,
582,
91,
2932,
6024,
7766,
2999,
17735,
6,
3631,
1479,
273,
315,
538,
1727,
18,
407,
3113,
2718,
273,
315,
27928,
21,
3113,
2201,
1546,
361,
23,
298,
495,
25,
3113,
1756,
33,
6334,
23,
13,
225,
468,
1930,
2641,
1427,
1842,
903,
1240,
5943,
358,
7433,
5456,
1347,
1086,
635,
6174,
589,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
588,
3074,
2668,
1792,
4307,
14668,
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,
3808,
16352,
12,
4901,
4672,
3536,
432,
445,
358,
3808,
471,
9129,
279,
1849,
18,
3536,
468,
1301,
468,
2999,
20752,
6590,
13274,
513,
273,
587,
1285,
395,
13971,
12,
4901,
13,
513,
18,
3678,
1435,
468,
1122,
16,
1696,
326,
9484,
6176,
2742,
513,
18,
1684,
3032,
2932,
4079,
17735,
7923,
513,
18,
559,
620,
2932,
5417,
461,
3113,
582,
91,
2932,
6024,
7766,
2999,
17735,
6,
3719,
513,
18,
559,
620,
2932,
2564,
3113,
315,
538,
1727,
18,
407,
7923,
513,
18,
559,
620,
2932,
803,
3113,
315,
14445,
8683,
19,
8712,
19,
27928,
21,
7923,
513,
18,
559,
620,
2932,
5053,
3113,
315,
27928,
21,
7923,
513,
18,
559,
620,
2932,
3664,
3113,
315,
361,
2
] |
self.book.default = self.translate(link)
|
self.book.default = self.translate_link(link)
|
def start_book(self, name, title, link, base = None, **dummy): assert len(self.contents_stack) == 1
|
c60623948fcebfbbb0546f8b9ac9efe3612d792c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2448/c60623948fcebfbbb0546f8b9ac9efe3612d792c/DevHelp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
3618,
12,
2890,
16,
508,
16,
2077,
16,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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,
787,
67,
3618,
12,
2890,
16,
508,
16,
2077,
16,
1692,
16,
1026,
273,
599,
16,
2826,
21050,
4672,
1815,
562,
12,
2890,
18,
3980,
67,
3772,
13,
422,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this = apply(_quickfix.new_LegSettlmntTyp, args)
|
this = _quickfix.new_LegSettlmntTyp(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_LegSettlmntTyp, args) try: self.this.append(this) except: self.this = this
|
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8329,
694,
6172,
21818,
18488,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8329,
694,
6172,
21818,
18488,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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
] |
buf.append(" Service class: %s" % service.service_class.values[0])
|
buf.append(" Service class: %s" % service.service_class.value)
|
def display_service(service, pidf, buf): # display class if service.rpid_class is not None: buf.append(" Class: %s" % person.rpid_class) # display timestamp if service.timestamp is not None: buf.append(" Timestamp: %s" % service.timestamp) # display notes for note in service.notes: buf.append(" %s" % format_note(note)) # display status if service.status is not None and service.status.basic is not None: buf.append(" Status: %s" % service.status.basic) # display contact if service.contact is not None: buf.append(" Contact%s: %s" % ((service.contact.priority is not None) and (' priority %s' % service.contact.priority) or '', service.contact)) # display device ID if service.device_id is not None: buf.append(" Service offered by device id: %s" % service.device_id) # display relationship if service.relationship is not None: buf.append(" Relationship: %s" % service.relationship.values[0]) # display service-class if service.service_class is not None: buf.append(" Service class: %s" % service.service_class.values[0]) # display status icon if service.status_icon is not None: buf.append(" Status icon: %s" % service.status_icon) # display user input if service.user_input is not None: buf.append(" Service is %s" % service.user_input) if service.user_input.last_input: buf.append(" Last input at: %s" % service.user_input.last_input) if service.user_input.idle_threshold: buf.append(" Idle threshold: %s seconds" % service.user_input.idle_threshold)
|
435361a2660131f917ffc693c6c45ce987a954dd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/435361a2660131f917ffc693c6c45ce987a954dd/sip_subscribe_presence.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
3278,
12,
3278,
16,
4231,
74,
16,
1681,
4672,
468,
2562,
667,
309,
1156,
18,
86,
6610,
67,
1106,
353,
486,
599,
30,
1681,
18,
6923,
2932,
565,
1659,
30,
738,
87,
6,
738,
6175,
18,
86,
6610,
67,
1106,
13,
468,
2562,
2858,
309,
1156,
18,
5508,
353,
486,
599,
30,
1681,
18,
6923,
2932,
565,
8159,
30,
738,
87,
6,
738,
1156,
18,
5508,
13,
468,
2562,
10913,
364,
4721,
316,
1156,
18,
12903,
30,
1681,
18,
6923,
2932,
565,
738,
87,
6,
738,
740,
67,
7652,
12,
7652,
3719,
468,
2562,
1267,
309,
1156,
18,
2327,
353,
486,
599,
471,
1156,
18,
2327,
18,
13240,
353,
486,
599,
30,
1681,
18,
6923,
2932,
565,
2685,
30,
738,
87,
6,
738,
1156,
18,
2327,
18,
13240,
13,
468,
2562,
5388,
309,
1156,
18,
8994,
353,
486,
599,
30,
1681,
18,
6923,
2932,
565,
13329,
9,
87,
30,
738,
87,
6,
738,
14015,
3278,
18,
8994,
18,
8457,
353,
486,
599,
13,
471,
7707,
4394,
738,
87,
11,
738,
1156,
18,
8994,
18,
8457,
13,
578,
10226,
1156,
18,
8994,
3719,
468,
2562,
2346,
1599,
309,
1156,
18,
5964,
67,
350,
353,
486,
599,
30,
1681,
18,
6923,
2932,
565,
1956,
10067,
329,
635,
2346,
612,
30,
738,
87,
6,
738,
1156,
18,
5964,
67,
350,
13,
468,
2562,
5232,
309,
1156,
18,
12873,
353,
486,
599,
30,
1681,
18,
6923,
2932,
565,
15463,
30,
738,
87,
6,
738,
1156,
18,
12873,
18,
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,
2562,
67,
3278,
12,
3278,
16,
4231,
74,
16,
1681,
4672,
468,
2562,
667,
309,
1156,
18,
86,
6610,
67,
1106,
353,
486,
599,
30,
1681,
18,
6923,
2932,
565,
1659,
30,
738,
87,
6,
738,
6175,
18,
86,
6610,
67,
1106,
13,
468,
2562,
2858,
309,
1156,
18,
5508,
353,
486,
599,
30,
1681,
18,
6923,
2932,
565,
8159,
30,
738,
87,
6,
738,
1156,
18,
5508,
13,
468,
2562,
10913,
364,
4721,
316,
1156,
18,
12903,
30,
1681,
18,
6923,
2932,
565,
738,
87,
6,
738,
740,
67,
7652,
12,
7652,
3719,
468,
2562,
1267,
309,
1156,
18,
2327,
353,
486,
599,
471,
1156,
18,
2327,
18,
13240,
353,
486,
599,
30,
1681,
18,
6923,
2932,
2
] |
return int(resp[3:].strip())
|
s = resp[3:].strip() try: return int(s) except OverflowError: return long(s)
|
def size(self, filename): '''Retrieve the size of a file.''' # Note that the RFC doesn't say anything about 'SIZE' resp = self.sendcmd('SIZE ' + filename) if resp[:3] == '213': return int(resp[3:].strip())
|
b6aca6afe2c46b57810c0f3e726e6dae5336d324 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b6aca6afe2c46b57810c0f3e726e6dae5336d324/ftplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
963,
12,
2890,
16,
1544,
4672,
9163,
5767,
326,
963,
434,
279,
585,
1093,
6309,
468,
3609,
716,
326,
8372,
3302,
1404,
12532,
6967,
2973,
296,
4574,
11,
1718,
273,
365,
18,
4661,
4172,
2668,
4574,
296,
397,
1544,
13,
309,
1718,
10531,
23,
65,
422,
296,
22,
3437,
4278,
327,
509,
12,
12243,
63,
23,
30,
8009,
6406,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
963,
12,
2890,
16,
1544,
4672,
9163,
5767,
326,
963,
434,
279,
585,
1093,
6309,
468,
3609,
716,
326,
8372,
3302,
1404,
12532,
6967,
2973,
296,
4574,
11,
1718,
273,
365,
18,
4661,
4172,
2668,
4574,
296,
397,
1544,
13,
309,
1718,
10531,
23,
65,
422,
296,
22,
3437,
4278,
327,
509,
12,
12243,
63,
23,
30,
8009,
6406,
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
] |
db = HyperDatabase.HyperDatabase(dir)
|
db = HyperDatabase.HyperDatabase(dir, maillist)
|
def __init__(self, maillist): # can't init the database while other processes are writing to it! # XXX TODO- implement native locking # with mailman's LockFile module for HyperDatabase.HyperDatabase # dir = maillist.archive_dir() db = HyperDatabase.HyperDatabase(dir) self.__super_init(dir, reload=1, database=db)
|
ee571157641bb7ff0c8a14b908d79597627f5370 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/ee571157641bb7ff0c8a14b908d79597627f5370/HyperArch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4791,
1098,
4672,
468,
848,
1404,
1208,
326,
2063,
1323,
1308,
8488,
854,
7410,
358,
518,
5,
468,
11329,
2660,
17,
2348,
6448,
18887,
468,
598,
4791,
4728,
1807,
3488,
812,
1605,
364,
18274,
4254,
18,
15996,
4254,
468,
1577,
273,
4791,
1098,
18,
10686,
67,
1214,
1435,
1319,
273,
18274,
4254,
18,
15996,
4254,
12,
1214,
16,
4791,
1098,
13,
365,
16186,
9565,
67,
2738,
12,
1214,
16,
7749,
33,
21,
16,
2063,
33,
1966,
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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,
2660,
17,
2348,
6448,
18887,
468,
598,
4791,
4728,
1807,
3488,
812,
1605,
364,
18274,
4254,
18,
15996,
4254,
468,
1577,
273,
4791,
1098,
18,
10686,
67,
1214,
1435,
1319,
273,
18274,
4254,
18,
15996,
4254,
12,
1214,
16,
4791,
1098,
13,
365,
16186,
9565,
67,
2738,
12,
1214,
16,
7749,
33,
21,
16,
2063,
33,
1966,
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
] |
verbosity, gather_info)
|
verbosity, (gather_print, regroup, namespace))
|
def ttyloop(task, nodeset, gather, timeout, label, verbosity, (gather_print, regroup, namespace)): """Manage the interactive prompt to run command""" readline_avail = False if task.default("USER_interactive"): assert sys.stdin.isatty() try: import readline readline_setup() readline_avail = True except ImportError: pass if verbosity >= VERB_STD: print "Enter 'quit' to leave this interactive mode" rc = 0 ns = NodeSet(nodeset) ns_info = True cmd = "" while task.default("USER_running") or cmd.lower() != 'quit': try: if task.default("USER_interactive") and not task.default("USER_running"): if ns_info: print "Working with nodes: %s" % ns ns_info = False prompt = "clush> " else: prompt = "" cmd = raw_input(prompt) except EOFError: print return except UpdatePromptException: if task.default("USER_interactive"): continue return except KeyboardInterrupt, e: signal.signal(signal.SIGUSR1, signal.SIG_IGN) if gather: # Suspend task, so we can safely access its data from # the main thread task.suspend() print_warn = False # Display command output, but cannot order buffers by rc nodesetify = lambda v: (v[0], NodeSet.fromlist(v[1])) for buf, nodeset in sorted(map(nodesetify, task.iter_buffers()), cmp=bufnodeset_cmp): if not print_warn: print_warn = True print >> sys.stderr, "Warning: Caught keyboard interrupt!" gather_print(nodeset, buf, regroup, namespace) # Return code handling ns_ok = NodeSet() for rc, nodelist in task.iter_retcodes(): ns_ok.add(NodeSet.fromlist(nodelist)) if rc != 0: # Display return code if not ok ( != 0) ns = NodeSet.fromlist(nodelist) print >> sys.stderr, \ "clush: %s: exited with exit code %s" % (ns, rc) # Add uncompleted nodeset to exception object e.uncompleted_nodes = ns - ns_ok # Display nodes that didn't answer within command timeout delay if task.num_timeout() > 0: print >> sys.stderr, "clush: %s: command timeout" % \ NodeSet.fromlist(task.iter_keys_timeout()) raise e if task.default("USER_running"): ns_reg, ns_unreg = NodeSet(), NodeSet() for c in task._engine.clients(): if c.registered: ns_reg.add(c.key) else: ns_unreg.add(c.key) if ns_unreg: pending = "\nclush: pending(%d): %s" % (len(ns_unreg), ns_unreg) else: pending = "" print >> sys.stderr, "clush: interrupt (^C to abort task)\n" \ "clush: in progress(%d): %s%s" % (len(ns_reg), ns_reg, pending) else: cmdl = cmd.lower() try: ns_info = True if cmdl.startswith('+'): ns.update(cmdl[1:]) elif cmdl.startswith('-'): ns.difference_update(cmdl[1:]) elif cmdl.startswith('@'): ns = NodeSet(cmdl[1:]) elif cmdl == '=': gather = not gather if verbosity >= VERB_STD: if gather: print "Switching to gathered output format" else: print "Switching to standard output format" ns_info = False continue elif not cmdl.startswith('?'): # if ?, just print ns_info ns_info = False except NodeSetParseError: print >> sys.stderr, "clush: nodeset parse error (ignoring)" if ns_info: continue if cmdl.startswith('!') and len(cmd.strip()) > 0: run_command(task, cmd[1:], None, gather, timeout, None, verbosity, gather_info) elif cmdl != "quit": if not cmd: continue if readline_avail: readline.write_history_file(get_history_file()) run_command(task, cmd, ns, gather, timeout, label, verbosity, gather_info) return rc
|
fa12d716e7b14fc16a9a3fa9f83fcdeb49d96806 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11479/fa12d716e7b14fc16a9a3fa9f83fcdeb49d96806/clush.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21520,
6498,
12,
4146,
16,
2199,
278,
16,
11090,
16,
2021,
16,
1433,
16,
11561,
16,
261,
75,
4806,
67,
1188,
16,
960,
656,
16,
1981,
3719,
30,
3536,
21258,
326,
12625,
6866,
358,
1086,
1296,
8395,
12023,
67,
842,
671,
273,
1083,
309,
1562,
18,
1886,
2932,
4714,
67,
24761,
6,
4672,
1815,
2589,
18,
21772,
18,
291,
270,
4098,
1435,
775,
30,
1930,
12023,
12023,
67,
8401,
1435,
12023,
67,
842,
671,
273,
1053,
1335,
11308,
30,
1342,
309,
11561,
1545,
6422,
38,
67,
882,
40,
30,
1172,
315,
10237,
296,
27176,
11,
358,
8851,
333,
12625,
1965,
6,
225,
4519,
273,
374,
3153,
273,
2029,
694,
12,
4690,
278,
13,
3153,
67,
1376,
273,
1053,
1797,
273,
1408,
1323,
1562,
18,
1886,
2932,
4714,
67,
8704,
7923,
578,
1797,
18,
8167,
1435,
480,
296,
27176,
4278,
775,
30,
309,
1562,
18,
1886,
2932,
4714,
67,
24761,
7923,
471,
486,
1562,
18,
1886,
2932,
4714,
67,
8704,
6,
4672,
309,
3153,
67,
1376,
30,
1172,
315,
14836,
598,
2199,
30,
738,
87,
6,
738,
3153,
3153,
67,
1376,
273,
1083,
6866,
273,
315,
830,
1218,
34,
315,
469,
30,
6866,
273,
1408,
1797,
273,
1831,
67,
2630,
12,
13325,
13,
1335,
6431,
668,
30,
1172,
327,
1335,
2315,
15967,
503,
30,
309,
1562,
18,
1886,
2932,
4714,
67,
24761,
6,
4672,
1324,
327,
1335,
19424,
16,
425,
30,
4277,
18,
10420,
12,
10420,
18,
18513,
27984,
21,
16,
4277,
18,
18513,
67,
10452,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21520,
6498,
12,
4146,
16,
2199,
278,
16,
11090,
16,
2021,
16,
1433,
16,
11561,
16,
261,
75,
4806,
67,
1188,
16,
960,
656,
16,
1981,
3719,
30,
3536,
21258,
326,
12625,
6866,
358,
1086,
1296,
8395,
12023,
67,
842,
671,
273,
1083,
309,
1562,
18,
1886,
2932,
4714,
67,
24761,
6,
4672,
1815,
2589,
18,
21772,
18,
291,
270,
4098,
1435,
775,
30,
1930,
12023,
12023,
67,
8401,
1435,
12023,
67,
842,
671,
273,
1053,
1335,
11308,
30,
1342,
309,
11561,
1545,
6422,
38,
67,
882,
40,
30,
1172,
315,
10237,
296,
27176,
11,
358,
8851,
333,
12625,
1965,
6,
225,
4519,
273,
374,
3153,
273,
2029,
694,
12,
4690,
278,
13,
3153,
67,
1376,
273,
1053,
2
] |
col.text = txt
|
col.text = tools.ustr(txt or '')
|
def _append_node(name, text): n = etree.Element(name) n.text = text config.append(n)
|
84482c22551657727590b165ce10a485cba19e5e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/84482c22551657727590b165ce10a485cba19e5e/ps_list.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
12031,
18,
1046,
12,
529,
13,
290,
18,
955,
273,
977,
642,
18,
6923,
12,
82,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
12031,
18,
1046,
12,
529,
13,
290,
18,
955,
273,
977,
642,
18,
6923,
12,
82,
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
] |
def process_sql_file(cr, file):
|
def process_sql_file(cr, fp):
|
def process_sql_file(cr, file): queries = fp.read().split(';') for query in queries: new_query = ' '.join(query.split()) if new_query: cr.execute(new_query)
|
037067881ebfb0350b227ecf326237e7586cd885 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/037067881ebfb0350b227ecf326237e7586cd885/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
4669,
67,
768,
12,
3353,
16,
4253,
4672,
6218,
273,
4253,
18,
896,
7675,
4939,
2668,
4359,
13,
364,
843,
316,
6218,
30,
394,
67,
2271,
273,
296,
2418,
5701,
12,
2271,
18,
4939,
10756,
309,
394,
67,
2271,
30,
4422,
18,
8837,
12,
2704,
67,
2271,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
4669,
67,
768,
12,
3353,
16,
4253,
4672,
6218,
273,
4253,
18,
896,
7675,
4939,
2668,
4359,
13,
364,
843,
316,
6218,
30,
394,
67,
2271,
273,
296,
2418,
5701,
12,
2271,
18,
4939,
10756,
309,
394,
67,
2271,
30,
4422,
18,
8837,
12,
2704,
67,
2271,
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
] |
print "Fallback succeeded"
|
def callPrimitiveAndPush(self, primitive, selector, argcount, interp): try: print "Pushing result" self.push(primitives.prim_table[primitive](self)) print "Pushed result" except primitives.PrimitiveFailedError: print "Falling back to smalltalk version" self._sendSelfSelector(selector, argcount, interp) print "Fallback succeeded"
|
1adbd8118e74e31856b14248f8917ad10e12f25a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1adbd8118e74e31856b14248f8917ad10e12f25a/interpreter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
9840,
1876,
7621,
12,
2890,
16,
8225,
16,
3451,
16,
1501,
1883,
16,
8174,
4672,
775,
30,
1172,
315,
7621,
310,
563,
6,
365,
18,
6206,
12,
683,
18116,
18,
30438,
67,
2121,
63,
683,
5025,
29955,
2890,
3719,
1172,
315,
7621,
329,
563,
6,
1335,
23376,
18,
9840,
2925,
668,
30,
1172,
315,
42,
454,
310,
1473,
358,
5264,
88,
2960,
1177,
6,
365,
6315,
4661,
10084,
4320,
12,
9663,
16,
1501,
1883,
16,
8174,
13,
1172,
315,
12355,
15784,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
9840,
1876,
7621,
12,
2890,
16,
8225,
16,
3451,
16,
1501,
1883,
16,
8174,
4672,
775,
30,
1172,
315,
7621,
310,
563,
6,
365,
18,
6206,
12,
683,
18116,
18,
30438,
67,
2121,
63,
683,
5025,
29955,
2890,
3719,
1172,
315,
7621,
329,
563,
6,
1335,
23376,
18,
9840,
2925,
668,
30,
1172,
315,
42,
454,
310,
1473,
358,
5264,
88,
2960,
1177,
6,
365,
6315,
4661,
10084,
4320,
12,
9663,
16,
1501,
1883,
16,
8174,
13,
1172,
315,
12355,
15784,
6,
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
] |
|
words = dir(object) if hasattr(object,'__class__'):
|
words = dir(thisobject) if "__builtins__" in words: words.remove("__builtins__") if hasattr(thisobject, '__class__'):
|
def attr_matches(self, text): """Compute matches when text contains a dot.
|
311279bc75ca8640eb928be4079866f776eb390d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/311279bc75ca8640eb928be4079866f776eb390d/rlcompleter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1604,
67,
8436,
12,
2890,
16,
977,
4672,
3536,
7018,
1885,
1347,
977,
1914,
279,
3928,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1604,
67,
8436,
12,
2890,
16,
977,
4672,
3536,
7018,
1885,
1347,
977,
1914,
279,
3928,
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,
-100
] |
Return a new segment by adding x to the upper and lower bounds of this segment.
|
Return a new segment whose bounds are given by adding x to the segment's upper and lower bounds.
|
def shift(self, x): """ Return a new segment by adding x to the upper and lower bounds of this segment. """ return tuple.__new__(self.__class__, (self[0] + x, self[1] + x))
|
9301b9f3a871cdefb75a7d1f1ef08c76b72e6f42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/9301b9f3a871cdefb75a7d1f1ef08c76b72e6f42/segments.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4654,
12,
2890,
16,
619,
4672,
3536,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4654,
12,
2890,
16,
619,
4672,
3536,
2000,
279,
394,
3267,
8272,
4972,
854,
864,
635,
6534,
619,
358,
326,
3267,
1807,
3854,
471,
2612,
4972,
18,
3536,
327,
3193,
16186,
2704,
972,
12,
2890,
16186,
1106,
972,
16,
261,
2890,
63,
20,
65,
397,
619,
16,
365,
63,
21,
65,
397,
619,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if robustlist and robustify: for mname in robustlist: m=classdict.get(mname) if m and isinstance(m, types.FunctionType): classdict[mname]=robustify(m)
|
for mname in robustlist: m=classdict.get(mname) if not m: for b in bases: if hasattr(b, mname): m=getattr(b, mname) break if m: classdict[mname]=_robustify(m) else: print type(m)
|
def __new__(self, classname, bases, classdict): robustlist=classdict.get('robust') robustify=classdict.get('robustify') if robustlist and robustify: for mname in robustlist: m=classdict.get(mname) if m and isinstance(m, types.FunctionType): classdict[mname]=robustify(m) return type.__new__(self, classname, bases, classdict)
|
b074c5c4c23429072760f03d733fb89d1991526d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/b074c5c4c23429072760f03d733fb89d1991526d/ftpfs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
2890,
16,
7479,
16,
8337,
16,
667,
1576,
4672,
27920,
1098,
33,
1106,
1576,
18,
588,
2668,
303,
70,
641,
6134,
27920,
1164,
33,
1106,
1576,
18,
588,
2668,
303,
70,
641,
1164,
6134,
225,
364,
312,
529,
316,
27920,
1098,
30,
312,
33,
1106,
1576,
18,
588,
12,
81,
529,
13,
309,
486,
312,
30,
364,
324,
316,
8337,
30,
309,
3859,
12,
70,
16,
312,
529,
4672,
312,
33,
588,
1747,
12,
70,
16,
312,
529,
13,
898,
225,
309,
312,
30,
667,
1576,
63,
81,
529,
65,
33,
67,
303,
70,
641,
1164,
12,
81,
13,
469,
30,
1172,
618,
12,
81,
13,
327,
618,
16186,
2704,
972,
12,
2890,
16,
7479,
16,
8337,
16,
667,
1576,
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,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,
641,
1164,
6134,
225,
364,
312,
529,
316,
27920,
1098,
30,
312,
33,
1106,
1576,
18,
588,
12,
81,
529,
13,
309,
486,
312,
30,
364,
324,
316,
8337,
30,
309,
3859,
12,
70,
16,
312,
529,
4672,
312,
33,
588,
1747,
12,
70,
16,
312,
529,
13,
898,
225,
309,
312,
30,
667,
1576,
63,
81,
529,
65,
33,
67,
303,
70,
641,
1164,
12,
81,
13,
469,
30,
1172,
618,
12,
81,
13,
327,
618,
16186,
2704,
972,
12,
2890,
16,
2
] |
self.streams.remove(stream) local_sdp.media[stream.index].port = 0 for stream in self.streams: local_sdp.media[stream.index] = stream.get_local_media(for_offer=False) self._invitation.send_response(200, sdp=local_sdp) for stream in removed_streams:
|
def _NH_SIPInvitationChangedState(self, notification): notification_center = NotificationCenter() if self.greenlet is not None and self.greenlet is not api.getcurrent(): if notification.data.state == 'disconnected' and notification.data.prev_state != 'disconnecting': self._channel.send_exception(InvitationDidFailError(notification.sender, notification.data)) else: self._channel.send(notification) else: if notification.data.state == 'connected' and notification.data.sub_state == 'received_proposal': self.state = 'received_proposal' try: proposed_remote_sdp = self._invitation.sdp.proposed_remote active_remote_sdp = self._invitation.sdp.active_remote for stream in self.streams: if not stream.validate_update(proposed_remote_sdp, stream.index): engine = Engine() self._invitation.send_response(488, extra_headers=[WarningHeader(399, engine.user_agent, 'Failed to update media stream index %d' % stream.index)]) self.state = 'connected' notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) return # These tests are here because some ALGs mess up the SDP and the behaviour # of pjsip in these situations is unexpected (eg. loss of audio). -Luci for attr in ('user', 'net_type', 'address_type', 'address'): if getattr(proposed_remote_sdp, attr) != getattr(active_remote_sdp, attr): engine = Engine() self._invitation.send_response(488, extra_headers=[WarningHeader(399, engine.user_agent, 'Difference in contents of o= line')]) self.state = 'connected' notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) return added_media_indexes = set() removed_media_indexes = set() for index, media_stream in enumerate(proposed_remote_sdp.media): if index >= len(active_remote_sdp.media): added_media_indexes.add(index) elif media_stream.media != active_remote_sdp.media[index].media: added_media_indexes.add(index) removed_media_indexes.add(index) elif not media_stream.port and active_remote_sdp.media[index].port: removed_media_indexes.add(index) removed_media_indexes.update(xrange(len(proposed_remote_sdp.media), len(active_remote_sdp.media))) if added_media_indexes and removed_media_indexes: engine = Engine() self._invitation.send_response(488, extra_headers=[WarningHeader(399, engine.user_agent, 'Both removing AND adding a media stream is currently not supported')]) notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) elif added_media_indexes: self.proposed_streams = [] for index in added_media_indexes: media_stream = proposed_remote_sdp.media[index] if media_stream.port != 0: for stream_type in MediaStreamRegistry(): try: stream = stream_type.new_from_sdp(self.account, proposed_remote_sdp, index) except InvalidStreamError: break except UnknownStreamError: continue else: stream.index = index self.proposed_streams.append(stream) break if self.proposed_streams: self._invitation.send_response(100) notification_center.post_notification('SIPSessionGotProposal', sender=self, data=TimestampedNotificationData(originator='remote', streams=self.proposed_streams)) return else: self._invitation.send_response(488) notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) else: local_sdp = SDPSession.new(self._invitation.sdp.active_local) local_sdp.version += 1 removed_streams = [stream for stream in self.streams if stream.index in removed_media_indexes] prev_on_hold_streams = set(stream for stream in self.streams if stream.hold_supported and stream.on_hold_by_remote) for stream in removed_streams: notification_center.remove_observer(self, sender=stream) stream.deactivate() self.streams.remove(stream) local_sdp.media[stream.index].port = 0 for stream in self.streams: local_sdp.media[stream.index] = stream.get_local_media(for_offer=False) self._invitation.send_response(200, sdp=local_sdp) for stream in removed_streams: stream.end() notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=200, reason=sip_status_messages[200], ack_received='unknown'))
|
849b83b8269b2356a6cabd3ba71c0c5cacb998d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/849b83b8269b2356a6cabd3ba71c0c5cacb998d3/session.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
50,
44,
67,
17739,
19896,
5033,
1119,
12,
2890,
16,
3851,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
309,
365,
18,
11571,
1810,
353,
486,
599,
471,
365,
18,
11571,
1810,
353,
486,
1536,
18,
588,
2972,
13332,
309,
3851,
18,
892,
18,
2019,
422,
296,
2251,
8537,
11,
471,
3851,
18,
892,
18,
10001,
67,
2019,
480,
296,
20177,
310,
4278,
365,
6315,
4327,
18,
4661,
67,
4064,
12,
19896,
18250,
3754,
668,
12,
9927,
18,
15330,
16,
3851,
18,
892,
3719,
469,
30,
365,
6315,
4327,
18,
4661,
12,
9927,
13,
469,
30,
309,
3851,
18,
892,
18,
2019,
422,
296,
8537,
11,
471,
3851,
18,
892,
18,
1717,
67,
2019,
422,
296,
15213,
67,
685,
8016,
4278,
365,
18,
2019,
273,
296,
15213,
67,
685,
8016,
11,
775,
30,
20084,
67,
7222,
67,
6427,
84,
273,
365,
6315,
5768,
8773,
18,
6427,
84,
18,
685,
7423,
67,
7222,
2695,
67,
7222,
67,
6427,
84,
273,
365,
6315,
5768,
8773,
18,
6427,
84,
18,
3535,
67,
7222,
364,
1407,
316,
365,
18,
16320,
30,
309,
486,
1407,
18,
5662,
67,
2725,
12,
685,
7423,
67,
7222,
67,
6427,
84,
16,
1407,
18,
1615,
4672,
4073,
273,
10507,
1435,
365,
6315,
5768,
8773,
18,
4661,
67,
2740,
12,
24,
5482,
16,
2870,
67,
2485,
22850,
6210,
1864,
12,
23,
2733,
16,
4073,
18,
1355,
67,
5629,
16,
296,
2925,
358,
1089,
3539,
1407,
770,
738,
72,
11,
738,
1407,
18,
1615,
13,
5717,
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,
50,
44,
67,
17739,
19896,
5033,
1119,
12,
2890,
16,
3851,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
309,
365,
18,
11571,
1810,
353,
486,
599,
471,
365,
18,
11571,
1810,
353,
486,
1536,
18,
588,
2972,
13332,
309,
3851,
18,
892,
18,
2019,
422,
296,
2251,
8537,
11,
471,
3851,
18,
892,
18,
10001,
67,
2019,
480,
296,
20177,
310,
4278,
365,
6315,
4327,
18,
4661,
67,
4064,
12,
19896,
18250,
3754,
668,
12,
9927,
18,
15330,
16,
3851,
18,
892,
3719,
469,
30,
365,
6315,
4327,
18,
4661,
12,
9927,
13,
469,
30,
309,
3851,
18,
892,
18,
2019,
422,
296,
8537,
11,
471,
3851,
18,
892,
18,
1717,
67,
2019,
422,
296,
15213,
2
] |
|
entity = self.TonalEntityWildcard(plainEntity)
|
entity = self._createTonalEntityWildcard( plainEntity)
|
def _getWildcardForms(self, searchStr, **options): if self._getWildcardFormsOptions != (searchStr, options): decompEntities = self._getPlainForms(searchStr, **options)
|
7113513f178bcd574bd86ef5fe518238142a3598 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/7113513f178bcd574bd86ef5fe518238142a3598/dictionary.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
12121,
18529,
12,
2890,
16,
1623,
1585,
16,
2826,
2116,
4672,
309,
365,
6315,
588,
12121,
18529,
1320,
480,
261,
3072,
1585,
16,
702,
4672,
443,
2919,
8108,
273,
365,
6315,
588,
13360,
18529,
12,
3072,
1585,
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,
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12,
2890,
16,
1623,
1585,
16,
2826,
2116,
4672,
309,
365,
6315,
588,
12121,
18529,
1320,
480,
261,
3072,
1585,
16,
702,
4672,
443,
2919,
8108,
273,
365,
6315,
588,
13360,
18529,
12,
3072,
1585,
16,
2826,
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
] |
if object.__name__ == '<lambda>': decl = '<lambda> ' + argspec[1:-1] else: decl = self.bold(object.__name__) + argspec
|
if realname == '<lambda>': title = 'lambda' argspec = argspec[1:-1] decl = title + argspec + note
|
def docroutine(self, object): """Produce text documentation for a function or method object.""" if inspect.ismethod(object): object = object.im_func if inspect.isbuiltin(object): decl = self.bold(object.__name__) + '(...)' else: args, varargs, varkw, defaults = inspect.getargspec(object) argspec = inspect.formatargspec( args, varargs, varkw, defaults, formatvalue=self.formatvalue) if object.__name__ == '<lambda>': decl = '<lambda> ' + argspec[1:-1] else: decl = self.bold(object.__name__) + argspec doc = getdoc(object) if doc: return decl + '\n' + rstrip(self.indent(doc)) + '\n' else: return decl + '\n'
|
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
22640,
12,
2890,
16,
733,
4672,
3536,
25884,
977,
7323,
364,
279,
445,
578,
707,
733,
12123,
309,
5334,
18,
291,
2039,
12,
1612,
4672,
733,
273,
733,
18,
381,
67,
644,
309,
5334,
18,
291,
24553,
12,
1612,
4672,
3496,
273,
365,
18,
16390,
12,
1612,
16186,
529,
972,
13,
397,
296,
5825,
2506,
469,
30,
833,
16,
19732,
16,
569,
9987,
16,
3467,
273,
5334,
18,
588,
23172,
12,
1612,
13,
23837,
273,
5334,
18,
2139,
23172,
12,
833,
16,
19732,
16,
569,
9987,
16,
3467,
16,
740,
1132,
33,
2890,
18,
2139,
1132,
13,
309,
2863,
529,
422,
2368,
14661,
1870,
30,
2077,
273,
296,
14661,
11,
23837,
273,
23837,
63,
21,
30,
17,
21,
65,
3496,
273,
2077,
397,
23837,
397,
4721,
225,
997,
273,
336,
2434,
12,
1612,
13,
309,
997,
30,
327,
3496,
397,
2337,
82,
11,
397,
10947,
12,
2890,
18,
9355,
12,
2434,
3719,
397,
2337,
82,
11,
469,
30,
327,
3496,
397,
2337,
82,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
22640,
12,
2890,
16,
733,
4672,
3536,
25884,
977,
7323,
364,
279,
445,
578,
707,
733,
12123,
309,
5334,
18,
291,
2039,
12,
1612,
4672,
733,
273,
733,
18,
381,
67,
644,
309,
5334,
18,
291,
24553,
12,
1612,
4672,
3496,
273,
365,
18,
16390,
12,
1612,
16186,
529,
972,
13,
397,
296,
5825,
2506,
469,
30,
833,
16,
19732,
16,
569,
9987,
16,
3467,
273,
5334,
18,
588,
23172,
12,
1612,
13,
23837,
273,
5334,
18,
2139,
23172,
12,
833,
16,
19732,
16,
569,
9987,
16,
3467,
16,
740,
1132,
33,
2890,
18,
2139,
1132,
13,
309,
2863,
529,
422,
2368,
14661,
1870,
30,
2077,
273,
296,
14661,
11,
23837,
273,
23837,
63,
21,
30,
17,
2
] |
changed = False
|
def terminate_device_jobs(self): changed = False for job in self.running_jobs: if isinstance(job, DeviceJob): job.terminate()
|
2dc7ba64e369dd4be2d200fed04b78b0d1b43285 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/2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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10850,
67,
5964,
67,
10088,
12,
2890,
4672,
364,
1719,
316,
365,
18,
8704,
67,
10088,
30,
309,
1549,
12,
4688,
16,
6077,
2278,
4672,
1719,
18,
30017,
1435,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
onAfterCompile = None
|
onAfterCompile = None
|
def __repr__(self): return "after compile script: %s\n%s" % (repr(self.script), repr(self.state))
|
d76ea3f452d147f051e65b20fdab9b87a8b84413 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2065/d76ea3f452d147f051e65b20fdab9b87a8b84413/PyV8.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
315,
5205,
4074,
2728,
30,
738,
87,
64,
82,
9,
87,
6,
738,
261,
12715,
12,
2890,
18,
4263,
3631,
8480,
12,
2890,
18,
2019,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12715,
972,
12,
2890,
4672,
327,
315,
5205,
4074,
2728,
30,
738,
87,
64,
82,
9,
87,
6,
738,
261,
12715,
12,
2890,
18,
4263,
3631,
8480,
12,
2890,
18,
2019,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""Return an absolute path to the source file or compiled file for an object. The idea is for each object to have a unique origin, so this routine normalizes the result as much as possible.""" return os.path.normcase(os.path.abspath(getsourcefile(object) or getfile(object)))
|
"""Return an absolute path to the source or compiled file for an object. The idea is for each object to have a unique origin, so this routine normalizes the result as much as possible.""" return os.path.normcase( os.path.abspath(getsourcefile(object) or getfile(object)))
|
def getabsfile(object): """Return an absolute path to the source file or compiled file for an object. The idea is for each object to have a unique origin, so this routine normalizes the result as much as possible.""" return os.path.normcase(os.path.abspath(getsourcefile(object) or getfile(object)))
|
a50bc378702521085821dd7005c1856e98d7bb5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a50bc378702521085821dd7005c1856e98d7bb5e/inspect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5113,
768,
12,
1612,
4672,
3536,
990,
392,
4967,
589,
358,
326,
1084,
578,
7743,
585,
364,
392,
733,
18,
225,
1021,
21463,
353,
364,
1517,
733,
358,
1240,
279,
3089,
4026,
16,
1427,
333,
12245,
2212,
3128,
326,
563,
487,
9816,
487,
3323,
12123,
327,
1140,
18,
803,
18,
7959,
3593,
12,
1140,
18,
803,
18,
5113,
803,
12,
588,
3168,
768,
12,
1612,
13,
578,
336,
768,
12,
1612,
20349,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5113,
768,
12,
1612,
4672,
3536,
990,
392,
4967,
589,
358,
326,
1084,
578,
7743,
585,
364,
392,
733,
18,
225,
1021,
21463,
353,
364,
1517,
733,
358,
1240,
279,
3089,
4026,
16,
1427,
333,
12245,
2212,
3128,
326,
563,
487,
9816,
487,
3323,
12123,
327,
1140,
18,
803,
18,
7959,
3593,
12,
1140,
18,
803,
18,
5113,
803,
12,
588,
3168,
768,
12,
1612,
13,
578,
336,
768,
12,
1612,
20349,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.