rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
yPos = addTocRow(i[0], i[1], yPos, body) rowCount = rowCount + 1 if rowCount > tocstyle.tocRows: | if rowCount == tocstyle.tocRows: | def addToc(tocList): rowCount = 0 yPos = 0 tocPageNum = 1 tocPageCount = 1 scribus.newPage(tocPageNum) isEvenPage = setOddEven(tocPageNum) body = buildTocPageFrames() # create frames for new empty page if isEvenPage == 0: scribus.setTextAlignment(2, body) else: scribus.setTextAlignment(0, body) for i in tocList: yPos = addTocRow(i[0], i[1], yPos, body) rowCount = rowCount + 1 if rowCount > tocstyle.tocRows: # Need to build a new TOC page (started from zero, not one) tocPageNum = tocPageNum + 1 scribus.newPage(tocPageNum) isEvenPage = setOddEven(tocPageNum) body = buildTocPageFrames() if isEvenPage == 0: scribus.setTextAlignment(2, body) else: scribus.setTextAlignment(0, body) rowCount = 0 yPos = 0 tocPageCount = tocPageCount + 1 if app.wantDoubleSided.get() == 1: if tocPageCount % 2 != 0: # Odd page tocPageNum = tocPageNum + 1 scribus.newPage(tocPageNum) # Add an extra page if odd number | 790a99f879b635f2b3b5552597409fb837e11aa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3910/790a99f879b635f2b3b5552597409fb837e11aa1/FontSample.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
56,
504,
12,
1391,
682,
4672,
14888,
273,
374,
677,
1616,
273,
374,
17919,
1964,
2578,
273,
404,
17919,
1964,
1380,
273,
404,
225,
888,
1533,
407,
18,
2704,
1964,
12,
1391,
1964,
2578,
13,
353,
8321,
1964,
273,
444,
51,
449,
8321,
12,
1391,
1964,
2578,
13,
1417,
273,
1361,
56,
504,
1964,
15162,
1435,
2398,
468,
752,
7793,
364,
394,
1008,
1363,
309,
353,
8321,
1964,
422,
374,
30,
888,
1533,
407,
18,
542,
1528,
11535,
12,
22,
16,
1417,
13,
469,
30,
888,
1533,
407,
18,
542,
1528,
11535,
12,
20,
16,
1417,
13,
364,
277,
316,
17919,
682,
30,
309,
14888,
422,
17919,
4060,
18,
1391,
4300,
30,
377,
468,
12324,
358,
1361,
279,
394,
8493,
39,
1363,
261,
14561,
628,
3634,
16,
486,
1245,
13,
17919,
1964,
2578,
273,
17919,
1964,
2578,
397,
404,
888,
1533,
407,
18,
2704,
1964,
12,
1391,
1964,
2578,
13,
353,
8321,
1964,
273,
444,
51,
449,
8321,
12,
1391,
1964,
2578,
13,
1417,
273,
1361,
56,
504,
1964,
15162,
1435,
309,
353,
8321,
1964,
422,
374,
30,
888,
1533,
407,
18,
542,
1528,
11535,
12,
22,
16,
1417,
13,
469,
30,
888,
1533,
407,
18,
542,
1528,
11535,
12,
20,
16,
1417,
13,
14888,
273,
374,
677,
1616,
273,
374,
17919,
1964,
1380,
273,
17919,
1964,
1380,
397,
404,
309,
595,
18,
17369,
5265,
55,
13898,
18,
588,
1435,
422,
404,
30,
309,
17919,
1964,
1380,
738,
576,
480,
374,
30,
6647,
468,
531,
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,
56,
504,
12,
1391,
682,
4672,
14888,
273,
374,
677,
1616,
273,
374,
17919,
1964,
2578,
273,
404,
17919,
1964,
1380,
273,
404,
225,
888,
1533,
407,
18,
2704,
1964,
12,
1391,
1964,
2578,
13,
353,
8321,
1964,
273,
444,
51,
449,
8321,
12,
1391,
1964,
2578,
13,
1417,
273,
1361,
56,
504,
1964,
15162,
1435,
2398,
468,
752,
7793,
364,
394,
1008,
1363,
309,
353,
8321,
1964,
422,
374,
30,
888,
1533,
407,
18,
542,
1528,
11535,
12,
22,
16,
1417,
13,
469,
30,
888,
1533,
407,
18,
542,
1528,
11535,
12,
20,
16,
1417,
13,
364,
277,
316,
17919,
682,
30,
309,
14888,
422,
17919,
4060,
18,
1391,
4300,
30,
377,
468,
12324,
358,
1361,
2
] |
print "FAIL" | print "FAIL"; failures = failures + 1 | def __eq__(self, other): if isinstance(other, FooStruct): return self.bar == other.bar return 0 | 14105f5c7b7349c63655b5a3c3785fe12d84aa68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/14105f5c7b7349c63655b5a3c3785fe12d84aa68/memcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
23077,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
23077,
3823,
4672,
327,
365,
18,
3215,
422,
1308,
18,
3215,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
urls = 'dashboard_app.test_urls' | def test_test_result__unknown(self): obj = TestResult(result=TestResult.RESULT_UNKNOWN, id=1) self.assertEqual(unicode(obj), "#1 unknown") | 2b83bb1076913ab164d9a60de7990ee0053066ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7382/2b83bb1076913ab164d9a60de7990ee0053066ed/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3813,
67,
2088,
972,
8172,
12,
2890,
4672,
1081,
273,
7766,
1253,
12,
2088,
33,
4709,
1253,
18,
12289,
67,
14737,
16,
612,
33,
21,
13,
365,
18,
11231,
5812,
12,
9124,
12,
2603,
3631,
6619,
21,
5917,
7923,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3813,
67,
2088,
972,
8172,
12,
2890,
4672,
1081,
273,
7766,
1253,
12,
2088,
33,
4709,
1253,
18,
12289,
67,
14737,
16,
612,
33,
21,
13,
365,
18,
11231,
5812,
12,
9124,
12,
2603,
3631,
6619,
21,
5917,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if isinstance(e, self.dbapi.OperationalError): return 'Unable to complete network request to host' in str(e) elif isinstance(e, self.dbapi.ProgrammingError): | if isinstance(e, (self.dbapi.OperationalError, self.dbapi.ProgrammingError)): | def is_disconnect(self, e): if isinstance(e, self.dbapi.OperationalError): return 'Unable to complete network request to host' in str(e) elif isinstance(e, self.dbapi.ProgrammingError): msg = str(e) return ('Invalid connection state' in msg or 'Invalid cursor state' in msg) else: return False | 535a4a77bf2415a292a6aa818df7bb3958569f67 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1074/535a4a77bf2415a292a6aa818df7bb3958569f67/kinterbasdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
20177,
12,
2890,
16,
425,
4672,
309,
1549,
12,
73,
16,
261,
2890,
18,
1966,
2425,
18,
2988,
287,
668,
16,
365,
18,
1966,
2425,
18,
9459,
11987,
668,
3719,
30,
1234,
273,
609,
12,
73,
13,
327,
7707,
1941,
1459,
919,
11,
316,
1234,
578,
296,
1941,
3347,
919,
11,
316,
1234,
13,
469,
30,
327,
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,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
2890,
16,
425,
4672,
309,
1549,
12,
73,
16,
261,
2890,
18,
1966,
2425,
18,
2988,
287,
668,
16,
365,
18,
1966,
2425,
18,
9459,
11987,
668,
3719,
30,
1234,
273,
609,
12,
73,
13,
327,
7707,
1941,
1459,
919,
11,
316,
1234,
578,
296,
1941,
3347,
919,
11,
316,
1234,
13,
469,
30,
327,
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
] |
if self.closed: raise ValueError, "I/O operation on closed file" | _complain_ifclosed(self.closed) | def write(self, s): if self.closed: raise ValueError, "I/O operation on closed file" if not s: return # Force s to be a string or unicode if not isinstance(s, basestring): s = str(s) if self.pos == self.len: self.buflist.append(s) self.len = self.pos = self.pos + len(s) return if self.pos > self.len: self.buflist.append('\0'*(self.pos - self.len)) self.len = self.pos newpos = self.pos + len(s) if self.pos < self.len: if self.buflist: self.buf += ''.join(self.buflist) self.buflist = [] self.buflist = [self.buf[:self.pos], s, self.buf[newpos:]] self.buf = '' if newpos > self.len: self.len = newpos else: self.buflist.append(s) self.len = newpos self.pos = newpos | 6542690b4188f7f53b198ea23efc9b5bbea194dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6542690b4188f7f53b198ea23efc9b5bbea194dc/StringIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
272,
4672,
389,
832,
7446,
67,
430,
12204,
12,
2890,
18,
12204,
13,
309,
486,
272,
30,
327,
468,
11889,
272,
358,
506,
279,
533,
578,
5252,
309,
486,
1549,
12,
87,
16,
10699,
4672,
272,
273,
609,
12,
87,
13,
309,
365,
18,
917,
422,
365,
18,
1897,
30,
365,
18,
4385,
1098,
18,
6923,
12,
87,
13,
365,
18,
1897,
273,
365,
18,
917,
273,
365,
18,
917,
397,
562,
12,
87,
13,
327,
309,
365,
18,
917,
405,
365,
18,
1897,
30,
365,
18,
4385,
1098,
18,
6923,
2668,
64,
20,
11,
21556,
2890,
18,
917,
300,
365,
18,
1897,
3719,
365,
18,
1897,
273,
365,
18,
917,
394,
917,
273,
365,
18,
917,
397,
562,
12,
87,
13,
309,
365,
18,
917,
411,
365,
18,
1897,
30,
309,
365,
18,
4385,
1098,
30,
365,
18,
4385,
1011,
875,
18,
5701,
12,
2890,
18,
4385,
1098,
13,
365,
18,
4385,
1098,
273,
5378,
365,
18,
4385,
1098,
273,
306,
2890,
18,
4385,
10531,
2890,
18,
917,
6487,
272,
16,
365,
18,
4385,
63,
2704,
917,
30,
13563,
365,
18,
4385,
273,
875,
309,
394,
917,
405,
365,
18,
1897,
30,
365,
18,
1897,
273,
394,
917,
469,
30,
365,
18,
4385,
1098,
18,
6923,
12,
87,
13,
365,
18,
1897,
273,
394,
917,
365,
18,
917,
273,
394,
917,
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,
1045,
12,
2890,
16,
272,
4672,
389,
832,
7446,
67,
430,
12204,
12,
2890,
18,
12204,
13,
309,
486,
272,
30,
327,
468,
11889,
272,
358,
506,
279,
533,
578,
5252,
309,
486,
1549,
12,
87,
16,
10699,
4672,
272,
273,
609,
12,
87,
13,
309,
365,
18,
917,
422,
365,
18,
1897,
30,
365,
18,
4385,
1098,
18,
6923,
12,
87,
13,
365,
18,
1897,
273,
365,
18,
917,
273,
365,
18,
917,
397,
562,
12,
87,
13,
327,
309,
365,
18,
917,
405,
365,
18,
1897,
30,
365,
18,
4385,
1098,
18,
6923,
2668,
64,
20,
11,
21556,
2890,
18,
917,
300,
365,
18,
1897,
3719,
365,
18,
1897,
273,
365,
18,
917,
394,
917,
273,
2
] |
message = self.socket.recv(msglen) | if msglen: message = self.socket.recv(msglen) else: message = "" | def read_response_noraise(self): try: reply = self.socket.recv(3) code = ord(reply[0]) msglen = ord(reply[1])*256 + ord(reply[2]) message = self.socket.recv(msglen) except: return (econn, 'Server aborted the connection') return (code, message) | aec86c6eafe725401247d860757a25279d993c2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14066/aec86c6eafe725401247d860757a25279d993c2d/daemon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2740,
67,
82,
10610,
784,
12,
2890,
4672,
775,
30,
4332,
273,
365,
18,
7814,
18,
18334,
12,
23,
13,
981,
273,
4642,
12,
10629,
63,
20,
5717,
1234,
1897,
273,
4642,
12,
10629,
63,
21,
5717,
14,
5034,
397,
4642,
12,
10629,
63,
22,
5717,
309,
1234,
1897,
30,
883,
273,
365,
18,
7814,
18,
18334,
12,
3576,
1897,
13,
469,
30,
883,
273,
1408,
1335,
30,
327,
261,
17181,
82,
16,
296,
2081,
18166,
326,
1459,
6134,
327,
261,
710,
16,
883,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2740,
67,
82,
10610,
784,
12,
2890,
4672,
775,
30,
4332,
273,
365,
18,
7814,
18,
18334,
12,
23,
13,
981,
273,
4642,
12,
10629,
63,
20,
5717,
1234,
1897,
273,
4642,
12,
10629,
63,
21,
5717,
14,
5034,
397,
4642,
12,
10629,
63,
22,
5717,
309,
1234,
1897,
30,
883,
273,
365,
18,
7814,
18,
18334,
12,
3576,
1897,
13,
469,
30,
883,
273,
1408,
1335,
30,
327,
261,
17181,
82,
16,
296,
2081,
18166,
326,
1459,
6134,
327,
261,
710,
16,
883,
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
] |
'''Called when a link is clicked. Override to use, return true if click is swallowed ''' | """Called when a link is clicked. Override to use, return true if click is swallowed """ | def BrowseClick(self, word, line, lineNo, start, style): '''Called when a link is clicked. Override to use, return true if click is swallowed ''' return false | 89eb19653f42afd80f73c01b18538a7b5352c0fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/89eb19653f42afd80f73c01b18538a7b5352c0fc/StyledTextCtrls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
605,
12481,
6563,
12,
2890,
16,
2076,
16,
980,
16,
980,
2279,
16,
787,
16,
2154,
4672,
3536,
8185,
1347,
279,
1692,
353,
17688,
18,
1439,
358,
999,
16,
327,
638,
309,
4682,
353,
1352,
8151,
3536,
327,
629,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
605,
12481,
6563,
12,
2890,
16,
2076,
16,
980,
16,
980,
2279,
16,
787,
16,
2154,
4672,
3536,
8185,
1347,
279,
1692,
353,
17688,
18,
1439,
358,
999,
16,
327,
638,
309,
4682,
353,
1352,
8151,
3536,
327,
629,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pattern = self.patterns.interpreted_or_phrase_ref | end_pattern = self.patterns.interpreted_or_phrase_ref | def interpreted_or_phrase_ref(self, match, lineno): pattern = self.patterns.interpreted_or_phrase_ref string = match.string matchstart = match.start('backquote') matchend = match.end('backquote') rolestart = match.start('role') role = match.group('role') position = '' if role: role = role[1:-1] position = 'prefix' elif self.quoted_start(match): return (string[:matchend], [], string[matchend:], []) endmatch = pattern.search(string[matchend:]) if endmatch and endmatch.start(1): # 1 or more chars escaped = endmatch.string[:endmatch.start(1)] text = unescape(escaped, 0) rawsource = unescape( string[match.start():matchend+endmatch.end()], 1) if rawsource[-1:] == '_': if role: msg = self.reporter.warning( 'Mismatch: inline interpreted text start-string and' ' role with phrase-reference end-string at line %s.' % lineno) text = unescape(string[matchstart:matchend], 1) rawsource = unescape(string[matchstart:matchend], 1) prb = self.problematic(text, rawsource, msg) return (string[:matchstart], [prb], string[matchend:], [msg]) return self.phrase_ref( string[:matchstart], string[matchend:][endmatch.end():], text, rawsource) else: return self.interpreted( string[:rolestart], string[matchend:][endmatch.end():], endmatch, role, position, lineno, escaped, rawsource, text) msg = self.reporter.warning( 'Inline interpreted text or phrase reference start-string ' 'without end-string at line %s.' % lineno) text = unescape(string[matchstart:matchend], 1) rawsource = unescape(string[matchstart:matchend], 1) prb = self.problematic(text, rawsource, msg) return string[:matchstart], [prb], string[matchend:], [msg] | 018a79821ccb1056404d43dbe32e444d1a0e03c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/018a79821ccb1056404d43dbe32e444d1a0e03c1/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19898,
67,
280,
67,
9429,
67,
1734,
12,
2890,
16,
845,
16,
7586,
4672,
679,
67,
4951,
273,
365,
18,
13317,
18,
24713,
329,
67,
280,
67,
9429,
67,
1734,
533,
273,
845,
18,
1080,
845,
1937,
273,
845,
18,
1937,
2668,
823,
6889,
6134,
845,
409,
273,
845,
18,
409,
2668,
823,
6889,
6134,
10643,
27893,
273,
845,
18,
1937,
2668,
4615,
6134,
2478,
273,
845,
18,
1655,
2668,
4615,
6134,
1754,
273,
875,
309,
2478,
30,
2478,
273,
2478,
63,
21,
30,
17,
21,
65,
1754,
273,
296,
3239,
11,
1327,
365,
18,
15179,
67,
1937,
12,
1916,
4672,
327,
261,
1080,
10531,
1916,
409,
6487,
5378,
16,
533,
63,
1916,
409,
30,
6487,
5378,
13,
679,
1916,
273,
1936,
18,
3072,
12,
1080,
63,
1916,
409,
30,
5717,
309,
679,
1916,
471,
679,
1916,
18,
1937,
12,
21,
4672,
225,
468,
404,
578,
1898,
5230,
8345,
273,
679,
1916,
18,
1080,
10531,
409,
1916,
18,
1937,
12,
21,
25887,
977,
273,
15568,
12,
16502,
16,
374,
13,
1831,
3168,
273,
15568,
12,
533,
63,
1916,
18,
1937,
13332,
1916,
409,
15,
409,
1916,
18,
409,
1435,
6487,
404,
13,
309,
1831,
3168,
18919,
21,
26894,
422,
2070,
4278,
309,
2478,
30,
1234,
273,
365,
18,
266,
7988,
18,
8551,
12,
296,
16901,
30,
6370,
19898,
977,
787,
17,
1080,
471,
11,
296,
2478,
598,
13045,
17,
6180,
679,
17,
1080,
622,
980,
738,
87,
1093,
738,
7586,
13,
977,
273,
15568,
12,
1080,
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,
19898,
67,
280,
67,
9429,
67,
1734,
12,
2890,
16,
845,
16,
7586,
4672,
679,
67,
4951,
273,
365,
18,
13317,
18,
24713,
329,
67,
280,
67,
9429,
67,
1734,
533,
273,
845,
18,
1080,
845,
1937,
273,
845,
18,
1937,
2668,
823,
6889,
6134,
845,
409,
273,
845,
18,
409,
2668,
823,
6889,
6134,
10643,
27893,
273,
845,
18,
1937,
2668,
4615,
6134,
2478,
273,
845,
18,
1655,
2668,
4615,
6134,
1754,
273,
875,
309,
2478,
30,
2478,
273,
2478,
63,
21,
30,
17,
21,
65,
1754,
273,
296,
3239,
11,
1327,
365,
18,
15179,
67,
1937,
12,
1916,
4672,
327,
261,
1080,
10531,
1916,
409,
6487,
5378,
16,
533,
63,
1916,
409,
30,
6487,
5378,
13,
2
] |
events = kq.control(None, 4, 1) | time.sleep(1.0) else: self.fail('timeout waiting for event notifications') | def test_queue_event(self): serverSocket = socket.socket() serverSocket.bind(('127.0.0.1', 0)) serverSocket.listen(1) client = socket.socket() client.setblocking(False) try: client.connect(('127.0.0.1', serverSocket.getsockname()[1])) except socket.error, e: self.assertEquals(e.args[0], errno.EINPROGRESS) else: #raise AssertionError("Connect should have raised EINPROGRESS") pass # FreeBSD doesn't raise an exception here server, addr = serverSocket.accept() | 197d1617a5761be094bec9f8bbe12bff2bd7c829 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/197d1617a5761be094bec9f8bbe12bff2bd7c829/test_kqueue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4000,
67,
2575,
12,
2890,
4672,
1438,
4534,
273,
2987,
18,
7814,
1435,
1438,
4534,
18,
4376,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
374,
3719,
1438,
4534,
18,
18085,
12,
21,
13,
1004,
273,
2987,
18,
7814,
1435,
1004,
18,
542,
18926,
12,
8381,
13,
775,
30,
1004,
18,
3612,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
1438,
4534,
18,
14665,
975,
529,
1435,
63,
21,
22643,
1335,
2987,
18,
1636,
16,
425,
30,
365,
18,
11231,
8867,
12,
73,
18,
1968,
63,
20,
6487,
8402,
18,
41,
706,
24022,
13,
469,
30,
468,
11628,
12068,
2932,
5215,
1410,
1240,
11531,
512,
706,
24022,
7923,
1342,
468,
15217,
30780,
3302,
1404,
1002,
392,
1520,
2674,
1438,
16,
3091,
273,
1438,
4534,
18,
9436,
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,
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890,
4672,
1438,
4534,
273,
2987,
18,
7814,
1435,
1438,
4534,
18,
4376,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
374,
3719,
1438,
4534,
18,
18085,
12,
21,
13,
1004,
273,
2987,
18,
7814,
1435,
1004,
18,
542,
18926,
12,
8381,
13,
775,
30,
1004,
18,
3612,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
1438,
4534,
18,
14665,
975,
529,
1435,
63,
21,
22643,
1335,
2987,
18,
1636,
16,
425,
30,
365,
18,
11231,
8867,
12,
73,
18,
1968,
63,
20,
6487,
8402,
18,
41,
706,
24022,
13,
469,
30,
468,
11628,
12068,
2932,
5215,
1410,
1240,
11531,
512,
706,
24022,
7923,
1342,
468,
15217,
30780,
2
] |
print("Candidates: %s" % revlist[good:bad]) | print('Candidates: %s' % revlist[good:bad]) | 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
] |
return('[KeyName:' + event.Key + ']') | return(npchrstr) | def ParseEventValue(self, event): '''Pass the event ascii value through the requisite filters. Returns the result as a string. ''' if chr(event.Ascii) == self.settings['General']['Log File Field Separator']: return('[sep_key]') #translate backspace into text string, if option is set. if event.Ascii == 8 and self.settings['General']['Parse Backspace'] == True: return('[KeyName:' + event.Key + ']') #translate escape into text string, if option is set. if event.Ascii == 27 and self.settings['General']['Parse Escape'] == True: return('[KeyName:' + event.Key + ']') | 01e0c0cca2f42daf828fcd59e2a6d786e413242d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3638/01e0c0cca2f42daf828fcd59e2a6d786e413242d/logwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
1133,
620,
12,
2890,
16,
871,
4672,
9163,
6433,
326,
871,
11384,
460,
3059,
326,
10780,
291,
1137,
3415,
18,
2860,
326,
563,
487,
279,
533,
18,
9163,
309,
4513,
12,
2575,
18,
21363,
13,
422,
365,
18,
4272,
3292,
12580,
21712,
1343,
1387,
2286,
27519,
3546,
30,
327,
2668,
63,
10814,
67,
856,
3864,
13,
225,
468,
13929,
1473,
2981,
1368,
977,
533,
16,
309,
1456,
353,
444,
18,
309,
871,
18,
21363,
422,
1725,
471,
365,
18,
4272,
3292,
12580,
21712,
3201,
4297,
2981,
3546,
422,
1053,
30,
327,
12,
6782,
15182,
701,
13,
225,
468,
13929,
4114,
1368,
977,
533,
16,
309,
1456,
353,
444,
18,
309,
871,
18,
21363,
422,
12732,
471,
365,
18,
4272,
3292,
12580,
21712,
3201,
18025,
3546,
422,
1053,
30,
327,
2668,
63,
13987,
2497,
397,
871,
18,
653,
397,
8641,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
1133,
620,
12,
2890,
16,
871,
4672,
9163,
6433,
326,
871,
11384,
460,
3059,
326,
10780,
291,
1137,
3415,
18,
2860,
326,
563,
487,
279,
533,
18,
9163,
309,
4513,
12,
2575,
18,
21363,
13,
422,
365,
18,
4272,
3292,
12580,
21712,
1343,
1387,
2286,
27519,
3546,
30,
327,
2668,
63,
10814,
67,
856,
3864,
13,
225,
468,
13929,
1473,
2981,
1368,
977,
533,
16,
309,
1456,
353,
444,
18,
309,
871,
18,
21363,
422,
1725,
471,
365,
18,
4272,
3292,
12580,
21712,
3201,
4297,
2981,
3546,
422,
1053,
30,
327,
12,
6782,
15182,
701,
13,
225,
468,
13929,
4114,
1368,
977,
533,
16,
309,
1456,
353,
444,
18,
309,
871,
18,
21363,
422,
12732,
471,
365,
2
] |
(Finite subgroup with invariants [5, 10] over QQbar of Abelian variety factor of dimension 3 of J0(67), Abelian variety factor of dimension 2 of J0(67)) | (Finite subgroup with invariants [5, 10] over QQbar of Abelian subvariety of dimension 3 of J0(67), Abelian subvariety of dimension 2 of J0(67)) | def intersection(self, other): """ Returns the intersection of self and other inside a common ambient Jacobian product. | f30f87afcce1c095974cd5259aa7272b60928586 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f30f87afcce1c095974cd5259aa7272b60928586/abvar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7619,
12,
2890,
16,
1308,
4672,
3536,
2860,
326,
7619,
434,
365,
471,
1308,
4832,
279,
2975,
13232,
1979,
804,
1077,
26968,
3017,
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,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1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7619,
12,
2890,
16,
1308,
4672,
3536,
2860,
326,
7619,
434,
365,
471,
1308,
4832,
279,
2975,
13232,
1979,
804,
1077,
26968,
3017,
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
] |
proxy_url = Uri.parse_uri(proxy) if not proxy_url.port: | proxy_uri = Uri.parse_uri(proxy) if not proxy_uri.port: | def _get_connection(self, uri, headers=None): # Check to see if there are proxy settings required for this request. proxy = None if uri.scheme == 'https': proxy = os.environ.get('https_proxy') elif uri.scheme == 'http': proxy = os.environ.get('http_proxy') if not proxy: return HttpClient._get_connection(self, uri, headers=headers) # Now we have the URL of the appropriate proxy server. # Get a username and password for the proxy if required. proxy_auth = _get_proxy_auth() if uri.scheme == 'https': import socket if proxy_auth: proxy_auth = 'Proxy-authorization: %s' % proxy_auth # Construct the proxy connect command. port = uri.port if not port: port = 443 proxy_connect = 'CONNECT %s:%s HTTP/1.0\r\n' % (uri.host, port) # Set the user agent to send to the proxy user_agent = '' if headers and 'User-Agent' in headers: user_agent = 'User-Agent: %s\r\n' % (headers['User-Agent']) proxy_pieces = '%s%s%s\r\n' % (proxy_connect, proxy_auth, user_agent) # Find the proxy host and port. proxy_uri = Uri.parse_uri(proxy) if not proxy_uri.port: proxy_uri.port = '80' # Connect to the proxy server, very simple recv and error checking p_sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) p_sock.connect((proxy_url.host, int(proxy_url.port))) p_sock.sendall(proxy_pieces) response = '' # Wait for the full response. while response.find("\r\n\r\n") == -1: response += p_sock.recv(8192) p_status = response.split()[1] if p_status != str(200): raise ProxyError('Error status=%s' % str(p_status)) # Trivial setup for ssl socket. ssl = socket.ssl(p_sock, None, None) fake_sock = httplib.FakeSocket(p_sock, ssl) # Initalize httplib and replace with the proxy socket. connection = httplib.HTTPConnection(proxy_url.host) connection.sock=fake_sock return connection elif uri.scheme == 'http': proxy_url = Uri.parse_uri(proxy) if not proxy_url.port: proxy_uri.port = '80' if proxy_auth: headers['Proxy-Authorization'] = proxy_auth.strip() return httplib.HTTPConnection(proxy_uri.host, int(proxy_uri.port)) return None | 6567eeb64a0babc777a059943d1d32ae30a2f405 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/6567eeb64a0babc777a059943d1d32ae30a2f405/http_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4071,
12,
2890,
16,
2003,
16,
1607,
33,
7036,
4672,
468,
2073,
358,
2621,
309,
1915,
854,
2889,
1947,
1931,
364,
333,
590,
18,
2889,
273,
599,
309,
2003,
18,
9068,
422,
296,
4528,
4278,
2889,
273,
1140,
18,
28684,
18,
588,
2668,
4528,
67,
5656,
6134,
1327,
2003,
18,
9068,
422,
296,
2505,
4278,
2889,
273,
1140,
18,
28684,
18,
588,
2668,
2505,
67,
5656,
6134,
309,
486,
2889,
30,
327,
16308,
6315,
588,
67,
4071,
12,
2890,
16,
2003,
16,
1607,
33,
2485,
13,
468,
4494,
732,
1240,
326,
1976,
434,
326,
5505,
2889,
1438,
18,
468,
968,
279,
2718,
471,
2201,
364,
326,
2889,
309,
1931,
18,
2889,
67,
1944,
273,
389,
588,
67,
5656,
67,
1944,
1435,
309,
2003,
18,
9068,
422,
296,
4528,
4278,
1930,
2987,
309,
2889,
67,
1944,
30,
2889,
67,
1944,
273,
296,
3886,
17,
12218,
30,
738,
87,
11,
738,
2889,
67,
1944,
468,
14291,
326,
2889,
3077,
1296,
18,
1756,
273,
2003,
18,
655,
309,
486,
1756,
30,
1756,
273,
23796,
2889,
67,
3612,
273,
296,
11032,
738,
87,
5319,
87,
2239,
19,
21,
18,
20,
64,
86,
64,
82,
11,
738,
261,
1650,
18,
2564,
16,
1756,
13,
468,
1000,
326,
729,
4040,
358,
1366,
358,
326,
2889,
729,
67,
5629,
273,
875,
309,
1607,
471,
296,
1299,
17,
3630,
11,
316,
1607,
30,
729,
67,
5629,
273,
296,
1299,
17,
3630,
30,
738,
87,
64,
86,
64,
82,
11,
738,
261,
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,
588,
67,
4071,
12,
2890,
16,
2003,
16,
1607,
33,
7036,
4672,
468,
2073,
358,
2621,
309,
1915,
854,
2889,
1947,
1931,
364,
333,
590,
18,
2889,
273,
599,
309,
2003,
18,
9068,
422,
296,
4528,
4278,
2889,
273,
1140,
18,
28684,
18,
588,
2668,
4528,
67,
5656,
6134,
1327,
2003,
18,
9068,
422,
296,
2505,
4278,
2889,
273,
1140,
18,
28684,
18,
588,
2668,
2505,
67,
5656,
6134,
309,
486,
2889,
30,
327,
16308,
6315,
588,
67,
4071,
12,
2890,
16,
2003,
16,
1607,
33,
2485,
13,
468,
4494,
732,
1240,
326,
1976,
434,
326,
5505,
2889,
1438,
18,
468,
968,
279,
2718,
471,
2201,
364,
326,
2889,
309,
1931,
18,
2889,
67,
1944,
273,
389,
2
] |
'pageStart':(page-1)*5, | 'pageStart':(page-1)*25, | def browse(request): #saving globals as locals for speed lhex = hex lint = int # get search from session search = request.session['search'] #generate iValues start = 0 - (search.segmentLength-1) / 2 stop = lint(math.ceil((search.segmentLength-1) / 2.0))+1 iIndex = lint(math.ceil(searchSettings.segmentSize/2.0)-1) #paginate segments = search.querySet().order_by('protein') paginator = Paginator(segments, 25) # Show 25 segments per page # Make sure page request is an int. If not, deliver first page. try: page = lint(request.GET.get('page', '1')) except ValueError: page = 1 # If page request (9999) is out of range, deliver last page of results. try: paginatedSegments = paginator.page(page) except (EmptyPage, InvalidPage): page = paginator.num_pages paginatedSegments = paginator.page(page) #generate a list of pages to display in the pagination bar pages = get_page_list(paginator, page) # use ranges for RGB to introduce colorful steps colors = [] colorstop=searchSettings.segmentSize/2 rRange = (75,245); gRange = (180,245); bRange = (240,245); rInterval = round((rRange[1]-rRange[0])/colorstop) gInterval = round((gRange[1]-gRange[0])/colorstop) bInterval = round((bRange[1]-bRange[0])/colorstop) for i in range(colorstop-stop+1, colorstop+1): red = '%s' % lhex(lint(i*rInterval+rRange[0]))[2:] if i*rInterval+rRange[0] > 9 else '%02d' % lint(lhex(lint(i*rInterval+rRange[0]))[2:]) green = '%s' % lhex(lint(i*gInterval+gRange[0]))[2:] if i*gInterval+gRange[0] > 9 else '%02d' % lint(lhex(lint(i*gInterval+gRange[0]))[2:]) blue = '%s' % lhex(lint(i*bInterval+bRange[0]))[2:] if i*bInterval+bRange[0] > 9 else '%02d' % lint(lhex(lint(i*bInterval+bRange[0]))[2:]) colors.append((red,green,blue)) return render_to_response('browse.html', { 'segments': paginatedSegments, 'segmentSlice':'%i:%i'%(iIndex+start,iIndex+stop), 'iIndex':iIndex, 'pageStart':(page-1)*5, 'indexColors':colors, 'pages':pages, 'segmentLength':search.segmentLength }, context_instance=RequestContext(request)) | ef7f0182fd46746319102afcaf6a32192f3b7c91 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6163/ef7f0182fd46746319102afcaf6a32192f3b7c91/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
12,
2293,
4672,
468,
87,
5339,
10941,
487,
8985,
364,
8632,
328,
7118,
273,
3827,
19477,
273,
509,
225,
468,
336,
1623,
628,
1339,
1623,
273,
590,
18,
3184,
3292,
3072,
3546,
225,
468,
7163,
277,
1972,
787,
273,
374,
300,
261,
3072,
18,
9273,
1782,
17,
21,
13,
342,
576,
2132,
225,
273,
19477,
12,
15949,
18,
311,
330,
12443,
3072,
18,
9273,
1782,
17,
21,
13,
342,
576,
18,
20,
3719,
15,
21,
22696,
273,
19477,
12,
15949,
18,
311,
330,
12,
3072,
2628,
18,
9273,
1225,
19,
22,
18,
20,
24950,
21,
13,
225,
468,
9095,
3322,
5155,
273,
1623,
18,
2271,
694,
7675,
1019,
67,
1637,
2668,
24807,
6134,
13755,
273,
14358,
12,
12838,
16,
6969,
13,
468,
9674,
6969,
5155,
1534,
1363,
225,
468,
4344,
3071,
1363,
590,
353,
392,
509,
18,
971,
486,
16,
11795,
1122,
1363,
18,
775,
30,
1363,
273,
19477,
12,
2293,
18,
3264,
18,
588,
2668,
2433,
2187,
296,
21,
26112,
1335,
2068,
30,
1363,
273,
404,
225,
468,
971,
1363,
590,
261,
7991,
13,
353,
596,
434,
1048,
16,
11795,
1142,
1363,
434,
1686,
18,
775,
30,
25373,
7946,
273,
13755,
18,
2433,
12,
2433,
13,
1335,
261,
1921,
1964,
16,
1962,
1964,
4672,
1363,
273,
13755,
18,
2107,
67,
7267,
25373,
7946,
273,
13755,
18,
2433,
12,
2433,
13,
225,
468,
7163,
279,
666,
434,
4689,
358,
2562,
316,
326,
8842,
4653,
4689,
273,
336,
67,
2433,
67,
1098,
12,
9095,
4240,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
12,
2293,
4672,
468,
87,
5339,
10941,
487,
8985,
364,
8632,
328,
7118,
273,
3827,
19477,
273,
509,
225,
468,
336,
1623,
628,
1339,
1623,
273,
590,
18,
3184,
3292,
3072,
3546,
225,
468,
7163,
277,
1972,
787,
273,
374,
300,
261,
3072,
18,
9273,
1782,
17,
21,
13,
342,
576,
2132,
225,
273,
19477,
12,
15949,
18,
311,
330,
12443,
3072,
18,
9273,
1782,
17,
21,
13,
342,
576,
18,
20,
3719,
15,
21,
22696,
273,
19477,
12,
15949,
18,
311,
330,
12,
3072,
2628,
18,
9273,
1225,
19,
22,
18,
20,
24950,
21,
13,
225,
468,
9095,
3322,
5155,
273,
1623,
18,
2271,
694,
7675,
1019,
67,
1637,
2668,
24807,
6134,
13755,
273,
14358,
12,
2
] |
pressedBitmap = wx.GetApp().GetImage(name + "md.png") | pressedBitmap = wx.GetApp().GetImage(name + "MouseDown.png") | def __init__(self, parent, name): """ | d538f66797bdfbf7bdd94c3e51298810f14648dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d538f66797bdfbf7bdd94c3e51298810f14648dc/CollectionCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
508,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
508,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.wfile.write('ERR -1 unknown command. Use CONVERT_HTML, ' | self.wfile.write('ERR 550 unknown command. Use CONVERT_HTML, ' | def handle(self): """The protocol: | 1a05a1b9f78a5aa3d8397c7ea22705164c4038f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9481/1a05a1b9f78a5aa3d8397c7ea22705164c4038f6/pyunoserver.py | [
1,
8585,
326,
22398,
316,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
3536,
1986,
1771,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_py_ext = [triple[0] for triple in imp.get_suffixes() if triple[2] == imp.PY_SOURCE][0] | _py_ext = [triple[0] for triple in imp.get_suffixes() if triple[2] == imp.PY_SOURCE][0] | def _visit_pyfiles(list, dirname, names): """ Helper for getFilesForName(). """ # get extension for python source files if not globals().has_key('_py_ext'): import imp global _py_ext _py_ext = [triple[0] for triple in imp.get_suffixes() if triple[2] == imp.PY_SOURCE][0] # don't recurse into CVS directories if 'CVS' in names: names.remove('CVS') # add all *.py files to list list.extend( [os.path.join(dirname, file) for file in names if os.path.splitext(file)[1] == _py_ext]) | e04ee70a68045f8d229ab59ad9b0256d0278c745 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e04ee70a68045f8d229ab59ad9b0256d0278c745/pygettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11658,
67,
2074,
2354,
12,
1098,
16,
4283,
16,
1257,
4672,
3536,
9705,
364,
18262,
1290,
461,
7675,
3536,
468,
336,
2710,
364,
5790,
1084,
1390,
309,
486,
10941,
7675,
5332,
67,
856,
2668,
67,
2074,
67,
408,
11,
4672,
1930,
1646,
2552,
389,
2074,
67,
408,
389,
2074,
67,
408,
273,
306,
313,
2444,
63,
20,
65,
364,
14543,
316,
1646,
18,
588,
67,
8477,
281,
1435,
309,
14543,
63,
22,
65,
422,
1646,
18,
16235,
67,
6537,
6362,
20,
65,
225,
468,
2727,
1404,
11502,
1368,
385,
14640,
6402,
309,
296,
39,
14640,
11,
316,
1257,
30,
1257,
18,
4479,
2668,
39,
14640,
6134,
225,
468,
527,
777,
380,
18,
2074,
1390,
358,
666,
666,
18,
14313,
12,
306,
538,
18,
803,
18,
5701,
12,
12287,
16,
585,
13,
364,
585,
316,
1257,
309,
1140,
18,
803,
18,
4939,
408,
12,
768,
25146,
21,
65,
422,
389,
2074,
67,
408,
5717,
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,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
16,
4283,
16,
1257,
4672,
3536,
9705,
364,
18262,
1290,
461,
7675,
3536,
468,
336,
2710,
364,
5790,
1084,
1390,
309,
486,
10941,
7675,
5332,
67,
856,
2668,
67,
2074,
67,
408,
11,
4672,
1930,
1646,
2552,
389,
2074,
67,
408,
389,
2074,
67,
408,
273,
306,
313,
2444,
63,
20,
65,
364,
14543,
316,
1646,
18,
588,
67,
8477,
281,
1435,
309,
14543,
63,
22,
65,
422,
1646,
18,
16235,
67,
6537,
6362,
20,
65,
225,
468,
2727,
1404,
11502,
1368,
385,
14640,
6402,
309,
296,
39,
14640,
11,
316,
1257,
30,
1257,
18,
4479,
2668,
39,
14640,
6134,
225,
468,
527,
777,
380,
18,
2074,
1390,
358,
666,
666,
2
] |
pickle.dump(session, f) | cPickle.dump(session, f) | def usage(): print "Usage: scapy.py [-s sessionfile]" sys.exit(0) | cd0da83d8842c2084edc7bdc6d54eb7b4107601d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/cd0da83d8842c2084edc7bdc6d54eb7b4107601d/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
315,
5357,
30,
888,
438,
93,
18,
2074,
23059,
87,
1339,
768,
4279,
2589,
18,
8593,
12,
20,
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,
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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,
4084,
13332,
1172,
315,
5357,
30,
888,
438,
93,
18,
2074,
23059,
87,
1339,
768,
4279,
2589,
18,
8593,
12,
20,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
keys = Set(values.keys()) | keys = set(values.keys()) | def ParseEDSFile(filepath): eds_dict = {} # Read file text eds_file = open(filepath,'r').read() sections = ExtractSections(eds_file) # Parse assignments for each section for section_name, assignments in sections: # Reset values of entry values = {} # Search if the section name match an index or subindex expression index_result = index_model.match(section_name.upper()) subindex_result = subindex_model.match(section_name.upper()) index_objectlinks_result = index_objectlinks_model.match(section_name.upper()) # Compilation of the EDS information dictionary is_entry = False # First case, section name is in SECTION_KEYNAMES if section_name.upper() in SECTION_KEYNAMES: # Verify that entry is not already defined if section_name.upper() not in eds_dict: eds_dict[section_name.upper()] = values else: raise SyntaxError, "\"[%s]\" section is defined two times"%section_name # Second case, section name is an index name elif index_result: # Extract index number index = int(index_result.groups()[0], 16) # If index hasn't been referenced before, we add an entry into the dictionary if index not in eds_dict: eds_dict[index] = values eds_dict[index]["subindexes"] = {} elif eds_dict[index].keys() == ["subindexes"]: values["subindexes"] = eds_dict[index]["subindexes"] eds_dict[index] = values else: raise SyntaxError, "\"[%s]\" section is defined two times"%section_name is_entry = True # Third case, section name is a subindex name elif subindex_result: # Extract index and subindex number index, subindex = [int(value, 16) for value in subindex_result.groups()] # If index hasn't been referenced before, we add an entry into the dictionary # that will be updated later if index not in eds_dict: eds_dict[index] = {"subindexes" : {}} if subindex not in eds_dict[index]["subindexes"]: eds_dict[index]["subindexes"][subindex] = values else: raise SyntaxError, "\"[%s]\" section is defined two times"%section_name is_entry = True # Third case, section name is a subindex name elif index_objectlinks_result: pass # In any other case, there is a syntax problem into EDS file else: raise SyntaxError, "Section \"[%s]\" is unrecognized"%section_name for assignment in assignments: # Escape any comment if assignment.startswith(";"): pass # Verify that line is a valid assignment elif assignment.find('=') > 0: # Split assignment into the two values keyname and value keyname, value = assignment.split("=", 1) # keyname must be immediately followed by the "=" sign, so we # verify that there is no whitespace into keyname if keyname.isalnum(): # value can be preceded and followed by whitespaces, so we escape them value = value.strip() # First case, value starts with "$NODEID", then it's a formula if value.upper().startswith("$NODEID"): try: test = int(value.upper().replace("$NODEID+", ""), 16) computed_value = "\"%s\""%value except: raise SyntaxError, "\"%s\" is not a valid formula for attribute \"%s\" of section \"[%s]\""%(value, keyname, section_name) # Second case, value starts with "0x", then it's an hexadecimal value elif value.startswith("0x") or value.startswith("-0x"): try: computed_value = int(value, 16) except: raise SyntaxError, "\"%s\" is not a valid value for attribute \"%s\" of section \"[%s]\""%(value, keyname, section_name) elif value.isdigit() or value.startswith("-") and value[1:].isdigit(): # Third case, value is a number and starts with "0", then it's an octal value if value.startswith("0") or value.startswith("-0"): computed_value = int(value, 8) # Forth case, value is a number and don't start with "0", then it's a decimal value else: computed_value = int(value) # In any other case, we keep string value else: computed_value = value # Add value to values dictionary if computed_value != "": # If entry is an index or a subindex if is_entry: # Verify that keyname is a possible attribute if keyname.upper() not in ENTRY_ATTRIBUTES: raise SyntaxError, "Keyname \"%s\" not recognised for section \"[%s]\""%(keyname, section_name) # Verify that value is valid elif not ENTRY_ATTRIBUTES[keyname.upper()](computed_value): raise SyntaxError, "Invalid value \"%s\" for keyname \"%s\" of section \"[%s]\""%(value, keyname, section_name) else: values[keyname.upper()] = computed_value else: values[keyname.upper()] = computed_value # All lines that are not empty and are neither a comment neither not a valid assignment elif assignment.strip() != "": raise SyntaxError, "\"%s\" is not a valid EDS line"%assignment.strip() # If entry is an index or a subindex if is_entry: # Verify that entry has an ObjectType values["OBJECTTYPE"] = values.get("OBJECTTYPE", 7) # Extract parameters defined keys = Set(values.keys()) keys.discard("subindexes") # Extract possible parameters and parameters required possible = Set(ENTRY_TYPES[values["OBJECTTYPE"]]["require"] + ENTRY_TYPES[values["OBJECTTYPE"]]["optional"]) required = Set(ENTRY_TYPES[values["OBJECTTYPE"]]["require"]) # Verify that parameters defined contains all the parameters required if not keys.issuperset(required): missing = required.difference(keys)._data.keys() if len(missing) > 1: attributes = "Attributes %s are"%", ".join(["\"%s\""%attribute for attribute in missing]) else: attributes = "Attribute \"%s\" is"%missing[0] raise SyntaxError, "Error on section \"[%s]\":\n%s required for a%s entry"%(section_name, attributes, ENTRY_TYPES[values["OBJECTTYPE"]]["name"]) # Verify that parameters defined are all in the possible parameters if not keys.issubset(possible): unsupported = keys.difference(possible)._data.keys() if len(unsupported) > 1: attributes = "Attributes %s are"%", ".join(["\"%s\""%attribute for attribute in unsupported]) else: attributes = "Attribute \"%s\" is"%unsupported[0] raise SyntaxError, "Error on section \"[%s]\":\n%s unsupported for a%s entry"%(section_name, attributes, ENTRY_TYPES[values["OBJECTTYPE"]]["name"]) VerifyValue(values, section_name, "ParameterValue") VerifyValue(values, section_name, "DefaultValue") return eds_dict | 56162b84b67d9ee4f8dd7e430cc40d3b75aa5880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11017/56162b84b67d9ee4f8dd7e430cc40d3b75aa5880/eds_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
2056,
55,
812,
12,
10561,
4672,
1675,
87,
67,
1576,
273,
2618,
468,
2720,
585,
977,
1675,
87,
67,
768,
273,
1696,
12,
10561,
11189,
86,
16063,
896,
1435,
7178,
273,
8152,
15965,
12,
9765,
67,
768,
13,
225,
468,
2884,
13610,
364,
1517,
2442,
364,
2442,
67,
529,
16,
13610,
316,
7178,
30,
468,
7151,
924,
434,
1241,
924,
273,
2618,
225,
468,
5167,
309,
326,
2442,
508,
845,
392,
770,
578,
720,
1615,
2652,
770,
67,
2088,
273,
770,
67,
2284,
18,
1916,
12,
3464,
67,
529,
18,
5797,
10756,
720,
1615,
67,
2088,
273,
720,
1615,
67,
2284,
18,
1916,
12,
3464,
67,
529,
18,
5797,
10756,
770,
67,
1612,
7135,
67,
2088,
273,
770,
67,
1612,
7135,
67,
2284,
18,
1916,
12,
3464,
67,
529,
18,
5797,
10756,
225,
468,
22416,
434,
326,
512,
3948,
1779,
3880,
225,
353,
67,
4099,
273,
1083,
468,
5783,
648,
16,
2442,
508,
353,
316,
25881,
67,
3297,
16257,
309,
2442,
67,
529,
18,
5797,
1435,
316,
25881,
67,
3297,
16257,
30,
468,
8553,
716,
1241,
353,
486,
1818,
2553,
309,
2442,
67,
529,
18,
5797,
1435,
486,
316,
1675,
87,
67,
1576,
30,
1675,
87,
67,
1576,
63,
3464,
67,
529,
18,
5797,
1435,
65,
273,
924,
469,
30,
1002,
18453,
16,
7023,
14451,
87,
65,
2412,
2442,
353,
2553,
2795,
4124,
28385,
3464,
67,
529,
468,
7631,
648,
16,
2442,
508,
353,
392,
770,
508,
1327,
770,
67,
2088,
30,
468,
8152,
770,
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,
2884,
2056,
55,
812,
12,
10561,
4672,
1675,
87,
67,
1576,
273,
2618,
468,
2720,
585,
977,
1675,
87,
67,
768,
273,
1696,
12,
10561,
11189,
86,
16063,
896,
1435,
7178,
273,
8152,
15965,
12,
9765,
67,
768,
13,
225,
468,
2884,
13610,
364,
1517,
2442,
364,
2442,
67,
529,
16,
13610,
316,
7178,
30,
468,
7151,
924,
434,
1241,
924,
273,
2618,
225,
468,
5167,
309,
326,
2442,
508,
845,
392,
770,
578,
720,
1615,
2652,
770,
67,
2088,
273,
770,
67,
2284,
18,
1916,
12,
3464,
67,
529,
18,
5797,
10756,
720,
1615,
67,
2088,
273,
720,
1615,
67,
2284,
18,
1916,
12,
3464,
67,
529,
18,
5797,
10756,
770,
67,
1612,
7135,
67,
2088,
273,
2
] |
"""Return a DOM representation of this Node.""" return self._dom_node(dom) | """Return a DOM **fragment** representation of this Node.""" domroot = dom.Document() return self._dom_node(domroot) | def asdom(self, dom=xml.dom.minidom): """Return a DOM representation of this Node.""" return self._dom_node(dom) | 183416f6087e556f5bf9bbf1bbda38d4f68a92cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/183416f6087e556f5bf9bbf1bbda38d4f68a92cc/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
9859,
12,
2890,
16,
4092,
33,
2902,
18,
9859,
18,
1154,
350,
362,
4672,
3536,
990,
279,
4703,
4335,
434,
333,
2029,
12123,
327,
365,
6315,
9859,
67,
2159,
12,
9859,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
487,
9859,
12,
2890,
16,
4092,
33,
2902,
18,
9859,
18,
1154,
350,
362,
4672,
3536,
990,
279,
4703,
4335,
434,
333,
2029,
12123,
327,
365,
6315,
9859,
67,
2159,
12,
9859,
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
] |
align_view=7, | align_view='7', | (def 9). | be16af044c84d140f0984e73ad722121058bc87f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/be16af044c84d140f0984e73ad722121058bc87f/SequenceSearcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
261,
536,
2468,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
path = self._window.get_active_document().get_uri_for_display() | def on_view_populate_popup(self, view, menu): path = self._window.get_active_document().get_uri_for_display() separator = gtk.SeparatorMenuItem() menu.append(separator) separator.show() context_menu = GeditMainContextMenu(self, self.base_dir, [path]).get_menu() for context_menu_item in context_menu: menu.append(context_menu_item) | f536a3b3d5a07da5e3600d24ae1bb1ebfa1cbd71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/f536a3b3d5a07da5e3600d24ae1bb1ebfa1cbd71/rabbitvcs-plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1945,
67,
19936,
67,
16086,
12,
2890,
16,
1476,
16,
3824,
4672,
4182,
273,
22718,
18,
6581,
12958,
1435,
3824,
18,
6923,
12,
11287,
13,
4182,
18,
4500,
1435,
225,
819,
67,
5414,
273,
611,
4619,
6376,
27315,
12,
2890,
16,
365,
18,
1969,
67,
1214,
16,
306,
803,
65,
2934,
588,
67,
5414,
1435,
364,
819,
67,
5414,
67,
1726,
316,
819,
67,
5414,
30,
3824,
18,
6923,
12,
2472,
67,
5414,
67,
1726,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1945,
67,
19936,
67,
16086,
12,
2890,
16,
1476,
16,
3824,
4672,
4182,
273,
22718,
18,
6581,
12958,
1435,
3824,
18,
6923,
12,
11287,
13,
4182,
18,
4500,
1435,
225,
819,
67,
5414,
273,
611,
4619,
6376,
27315,
12,
2890,
16,
365,
18,
1969,
67,
1214,
16,
306,
803,
65,
2934,
588,
67,
5414,
1435,
364,
819,
67,
5414,
67,
1726,
316,
819,
67,
5414,
30,
3824,
18,
6923,
12,
2472,
67,
5414,
67,
1726,
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
] |
|
class AbstractPatchLandingCommand(AbstractPatchProcessingCommand): def __init__(self, help_text, args_description): self._sequence = StepSequence([ CleanWorkingDirectoryStep, UpdateStep, ApplyPatchStep, EnsureBuildersAreGreenStep, BuildStep, RunTestsStep, CommitStep, ClosePatchStep, CloseBugStep, ]) AbstractPatchProcessingCommand.__init__(self, help_text, args_description, self._sequence.options()) def _prepare_to_process(self, options, args, tool): EnsureBuildersAreGreenStep(tool, options).run({}) def _process_patch(self, patch, options, args, tool): state = {"patch": patch} self._sequence.run_and_handle_errors(tool, options, state) | class AbstractPatchLandingCommand(AbstractPatchSequencingCommand): prepare_steps = [ EnsureBuildersAreGreenStep, ] main_steps = [ CleanWorkingDirectoryStep, UpdateStep, ApplyPatchStep, EnsureBuildersAreGreenStep, BuildStep, RunTestsStep, CommitStep, ClosePatchStep, CloseBugStep, ] | def _fetch_list_of_patches_to_process(self, options, args, tool): all_patches = [] for bug_id in args: patches = tool.bugs.fetch_reviewed_patches_from_bug(bug_id) log("%s found on bug %s." % (pluralize("reviewed patch", len(patches)), bug_id)) all_patches += patches return all_patches | 740b86ff29d9244b9b7731cde818daa13c805df5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/740b86ff29d9244b9b7731cde818daa13c805df5/download.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5754,
67,
1098,
67,
792,
67,
30278,
67,
869,
67,
2567,
12,
2890,
16,
702,
16,
833,
16,
5226,
4672,
777,
67,
30278,
273,
5378,
364,
7934,
67,
350,
316,
833,
30,
16482,
273,
5226,
18,
19381,
18,
5754,
67,
16041,
329,
67,
30278,
67,
2080,
67,
925,
12,
925,
67,
350,
13,
613,
27188,
87,
1392,
603,
7934,
738,
87,
1199,
738,
261,
15203,
554,
2932,
16041,
329,
4729,
3113,
562,
12,
30278,
13,
3631,
7934,
67,
350,
3719,
777,
67,
30278,
1011,
16482,
327,
777,
67,
30278,
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,
389,
5754,
67,
1098,
67,
792,
67,
30278,
67,
869,
67,
2567,
12,
2890,
16,
702,
16,
833,
16,
5226,
4672,
777,
67,
30278,
273,
5378,
364,
7934,
67,
350,
316,
833,
30,
16482,
273,
5226,
18,
19381,
18,
5754,
67,
16041,
329,
67,
30278,
67,
2080,
67,
925,
12,
925,
67,
350,
13,
613,
27188,
87,
1392,
603,
7934,
738,
87,
1199,
738,
261,
15203,
554,
2932,
16041,
329,
4729,
3113,
562,
12,
30278,
13,
3631,
7934,
67,
350,
3719,
777,
67,
30278,
1011,
16482,
327,
777,
67,
30278,
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
] |
import traceback | def __init__(self, *args, **kw): super(CalendarEventMixin, self).__init__(*args, **kw) import traceback self.occurrenceFor = self if not kw.has_key('icalUID'): self.icalUID = unicode(self.itsUUID) | 7fb917f7560d3e0ca7085b7c1f025ef2ba2d16a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/7fb917f7560d3e0ca7085b7c1f025ef2ba2d16a8/Calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
9987,
4672,
2240,
12,
7335,
1133,
14439,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
9987,
13,
365,
18,
31177,
1290,
273,
365,
309,
486,
5323,
18,
5332,
67,
856,
2668,
1706,
3060,
11,
4672,
365,
18,
1706,
3060,
273,
5252,
12,
2890,
18,
1282,
5562,
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,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4672,
2240,
12,
7335,
1133,
14439,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
9987,
13,
365,
18,
31177,
1290,
273,
365,
309,
486,
5323,
18,
5332,
67,
856,
2668,
1706,
3060,
11,
4672,
365,
18,
1706,
3060,
273,
5252,
12,
2890,
18,
1282,
5562,
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
] |
|
self.dbconnection = sqlmodule.connect self.usingUnicodeStrings = True if kw.get("ncli"): conn_str = "Provider=SQLNCLI;" else: conn_str = "Provider=SQLOLEDB;" conn_str += "Data Source=%s;Initial Catalog=%s;" if kw.get("sspi"): conn_str += "Integrated Security=SSPI;Persist Security Info=False" self.make_conn_str = lambda keys: [conn_str % (keys.host, keys.db)] else: conn_str += "User Id=%s;Password=%s" self.make_conn_str = lambda keys: [conn_str % (keys.host, keys.db, keys.user, keys.password)] col.popKey(kw, "sspi") col.popKey(kw, "ncli") except ImportError: | except ImportError: | def __init__(self, db, user, password='', host='localhost', autoCommit=0, **kw): global sqlmodule if not sqlmodule: try: import adodbapi as sqlmodule self.dbconnection = sqlmodule.connect # ADO uses unicode only (AFAIK) self.usingUnicodeStrings = True | 6d2fe3ce0ccb18c001f426e5fe10c3fed722d5fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/6d2fe3ce0ccb18c001f426e5fe10c3fed722d5fd/mssqlconnection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1319,
16,
729,
16,
2201,
2218,
2187,
1479,
2218,
13014,
2187,
3656,
5580,
33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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,
1001,
2738,
972,
12,
2890,
16,
1319,
16,
729,
16,
2201,
2218,
2187,
1479,
2218,
13014,
2187,
3656,
5580,
33,
20,
16,
2826,
9987,
4672,
2552,
1847,
2978,
309,
486,
1847,
2978,
30,
775,
30,
1930,
1261,
10605,
2425,
487,
1847,
2978,
365,
18,
1966,
4071,
273,
1847,
2978,
18,
3612,
468,
432,
3191,
4692,
5252,
1338,
261,
37,
2046,
45,
47,
13,
365,
18,
9940,
16532,
7957,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.daemon_logfile, self.daemon_pidfile, self.server_port)) | _ShellSafe(self.daemon_logfile), _ShellSafe(self.daemon_pidfile), self.server_port)) | def daemon_command(self): """Return command to start the daemon""" return (self.distccd() + "--verbose --lifetime=%d --daemon --log-file %s " "--pid-file %s --port %d --allow 127.0.0.1" % (self.daemon_lifetime(), self.daemon_logfile, self.daemon_pidfile, self.server_port)) | fdaf4c739372bb2a573823fa0779dc82dc60ac67 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7392/fdaf4c739372bb2a573823fa0779dc82dc60ac67/testdistcc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8131,
67,
3076,
12,
2890,
4672,
3536,
990,
1296,
358,
787,
326,
8131,
8395,
327,
261,
2890,
18,
4413,
952,
72,
1435,
397,
5238,
11369,
1493,
17155,
5095,
72,
1493,
21511,
1493,
1330,
17,
768,
738,
87,
315,
5238,
6610,
17,
768,
738,
87,
1493,
655,
738,
72,
1493,
5965,
12331,
18,
20,
18,
20,
18,
21,
6,
738,
261,
2890,
18,
21511,
67,
17155,
9334,
365,
18,
21511,
67,
28806,
16,
365,
18,
21511,
67,
6610,
768,
16,
365,
18,
3567,
67,
655,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8131,
67,
3076,
12,
2890,
4672,
3536,
990,
1296,
358,
787,
326,
8131,
8395,
327,
261,
2890,
18,
4413,
952,
72,
1435,
397,
5238,
11369,
1493,
17155,
5095,
72,
1493,
21511,
1493,
1330,
17,
768,
738,
87,
315,
5238,
6610,
17,
768,
738,
87,
1493,
655,
738,
72,
1493,
5965,
12331,
18,
20,
18,
20,
18,
21,
6,
738,
261,
2890,
18,
21511,
67,
17155,
9334,
365,
18,
21511,
67,
28806,
16,
365,
18,
21511,
67,
6610,
768,
16,
365,
18,
3567,
67,
655,
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
] |
whenDone() | task.schedule(whenDone) | def __init__(self, host, port, protocol, timeout=None, connector=None): """Initialize the client, setting up its socket, and request to connect. """ if host == 'unix': # "port" in this case is really a filename try: mode = os.stat(port)[0] except OSError, ose: protocol.connectionFailed() # no such file or directory return if not (mode & (stat.S_IFSOCK | # that's not a socket stat.S_IROTH | # that's not readable stat.S_IWOTH )):# that's not writable protocol.connectionFailed() return # success. self.realAddress = self.addr = port # we are using unix sockets skt = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) whenDone = self.doConnect else: skt = self.createInternetSocket() self.addr = (host, port) whenDone = self.resolveAddress self.host = host self.port = port self.connector = connector Connection.__init__(self, skt, protocol) self.doWrite = self.doConnect self.doRead = self.doConnect self.logstr = self.protocol.__class__.__name__+",client" whenDone() if timeout is not None: main.addTimeout(self.failIfNotConnected, timeout) | 9b7cdd01ca433fda99796fad2a9bef4907d56fcb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b7cdd01ca433fda99796fad2a9bef4907d56fcb/tcp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
16,
1756,
16,
1771,
16,
2021,
33,
7036,
16,
8703,
33,
7036,
4672,
3536,
7520,
326,
1004,
16,
3637,
731,
2097,
2987,
16,
471,
590,
358,
3077,
18,
3536,
309,
1479,
422,
296,
21136,
4278,
468,
315,
655,
6,
316,
333,
648,
353,
8654,
279,
1544,
775,
30,
1965,
273,
1140,
18,
5642,
12,
655,
25146,
20,
65,
1335,
10002,
16,
320,
307,
30,
1771,
18,
4071,
2925,
1435,
225,
468,
1158,
4123,
585,
578,
1867,
327,
309,
486,
261,
3188,
473,
261,
5642,
18,
55,
67,
5501,
3584,
3507,
571,
225,
468,
716,
1807,
486,
279,
2987,
610,
18,
55,
67,
45,
1457,
2455,
225,
571,
225,
468,
716,
1807,
486,
7471,
610,
18,
55,
67,
45,
59,
18307,
262,
4672,
7,
716,
1807,
486,
9691,
1771,
18,
4071,
2925,
1435,
327,
468,
2216,
18,
365,
18,
7688,
1887,
273,
365,
18,
4793,
273,
1756,
468,
732,
854,
1450,
9753,
16762,
4343,
88,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
10377,
60,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
1347,
7387,
273,
365,
18,
2896,
5215,
469,
30,
4343,
88,
273,
365,
18,
2640,
26562,
4534,
1435,
365,
18,
4793,
273,
261,
2564,
16,
1756,
13,
1347,
7387,
273,
365,
18,
10828,
1887,
365,
18,
2564,
273,
1479,
365,
18,
655,
273,
1756,
365,
18,
23159,
273,
8703,
4050,
16186,
2738,
972,
12,
2890,
16,
4343,
88,
16,
1771,
13,
365,
18,
2896,
3067,
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,
1001,
2738,
972,
12,
2890,
16,
1479,
16,
1756,
16,
1771,
16,
2021,
33,
7036,
16,
8703,
33,
7036,
4672,
3536,
7520,
326,
1004,
16,
3637,
731,
2097,
2987,
16,
471,
590,
358,
3077,
18,
3536,
309,
1479,
422,
296,
21136,
4278,
468,
315,
655,
6,
316,
333,
648,
353,
8654,
279,
1544,
775,
30,
1965,
273,
1140,
18,
5642,
12,
655,
25146,
20,
65,
1335,
10002,
16,
320,
307,
30,
1771,
18,
4071,
2925,
1435,
225,
468,
1158,
4123,
585,
578,
1867,
327,
309,
486,
261,
3188,
473,
261,
5642,
18,
55,
67,
5501,
3584,
3507,
571,
225,
468,
716,
1807,
486,
279,
2987,
610,
18,
55,
67,
45,
1457,
2455,
225,
571,
225,
468,
716,
1807,
2
] |
includes = ' | includes = ' | def parse_isa_desc(isa_desc_file, output_dir, include_path): # set a global var for the input filename... used in error messages global input_filename input_filename = isa_desc_file global fileNameStack fileNameStack = [(input_filename, 1)] # Suck the ISA description file in. input = open(isa_desc_file) isa_desc = input.read() input.close() # Perform Preprocessing isa_desc = preprocess_isa_desc(isa_desc) # Parse it. (isa_name, namespace, global_code, namespace_code) = yacc.parse(isa_desc) # grab the last three path components of isa_desc_file to put in # the output filename = '/'.join(isa_desc_file.split('/')[-3:]) # generate decoder.hh includes = '#include "base/bitfield.hh" // for bitfield support' global_output = global_code.header_output namespace_output = namespace_code.header_output decode_function = '' update_if_needed(output_dir + '/decoder.hh', file_template % vars()) # generate decoder.cc includes = '#include "%s/decoder.hh"' % include_path global_output = global_code.decoder_output namespace_output = namespace_code.decoder_output # namespace_output += namespace_code.decode_block decode_function = namespace_code.decode_block update_if_needed(output_dir + '/decoder.cc', file_template % vars()) # generate per-cpu exec files for cpu in CpuModel.list: includes = '#include "%s/decoder.hh"\n' % include_path includes += cpu.includes global_output = global_code.exec_output[cpu.name] namespace_output = namespace_code.exec_output[cpu.name] decode_function = '' update_if_needed(output_dir + '/' + cpu.filename, file_template % vars()) | 99484cfae81f3f01ccdfcd273ddc2bdb41e6456b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6787/99484cfae81f3f01ccdfcd273ddc2bdb41e6456b/isa_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
291,
69,
67,
5569,
12,
291,
69,
67,
5569,
67,
768,
16,
876,
67,
1214,
16,
2341,
67,
803,
4672,
468,
444,
279,
2552,
569,
364,
326,
810,
1544,
2777,
1399,
316,
555,
2743,
2552,
810,
67,
3459,
810,
67,
3459,
273,
353,
69,
67,
5569,
67,
768,
2552,
3968,
2624,
3968,
2624,
273,
306,
12,
2630,
67,
3459,
16,
404,
25887,
225,
468,
348,
9031,
326,
4437,
37,
2477,
585,
316,
18,
810,
273,
1696,
12,
291,
69,
67,
5569,
67,
768,
13,
353,
69,
67,
5569,
273,
810,
18,
896,
1435,
810,
18,
4412,
1435,
225,
468,
11217,
2962,
10632,
353,
69,
67,
5569,
273,
17942,
67,
291,
69,
67,
5569,
12,
291,
69,
67,
5569,
13,
225,
468,
2884,
518,
18,
261,
291,
69,
67,
529,
16,
1981,
16,
2552,
67,
710,
16,
1981,
67,
710,
13,
273,
677,
8981,
18,
2670,
12,
291,
69,
67,
5569,
13,
225,
468,
11086,
326,
1142,
8925,
589,
4085,
434,
353,
69,
67,
5569,
67,
768,
358,
1378,
316,
468,
326,
876,
1544,
273,
2023,
18,
5701,
12,
291,
69,
67,
5569,
67,
768,
18,
4939,
2668,
2473,
13,
18919,
23,
30,
5717,
225,
468,
2103,
8320,
18,
21622,
6104,
273,
2946,
6702,
315,
1969,
19,
3682,
1518,
18,
21622,
6,
368,
364,
2831,
1518,
2865,
11,
2552,
67,
2844,
273,
2552,
67,
710,
18,
3374,
67,
2844,
1981,
67,
2844,
273,
1981,
67,
710,
18,
3374,
67,
2844,
2495,
67,
915,
273,
875,
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,
67,
291,
69,
67,
5569,
12,
291,
69,
67,
5569,
67,
768,
16,
876,
67,
1214,
16,
2341,
67,
803,
4672,
468,
444,
279,
2552,
569,
364,
326,
810,
1544,
2777,
1399,
316,
555,
2743,
2552,
810,
67,
3459,
810,
67,
3459,
273,
353,
69,
67,
5569,
67,
768,
2552,
3968,
2624,
3968,
2624,
273,
306,
12,
2630,
67,
3459,
16,
404,
25887,
225,
468,
348,
9031,
326,
4437,
37,
2477,
585,
316,
18,
810,
273,
1696,
12,
291,
69,
67,
5569,
67,
768,
13,
353,
69,
67,
5569,
273,
810,
18,
896,
1435,
810,
18,
4412,
1435,
225,
468,
11217,
2962,
10632,
353,
69,
67,
5569,
273,
17942,
67,
291,
69,
67,
5569,
12,
291,
69,
2
] |
if out: print out | if stdout: print stdout if stderr: print >>sys.stderr, stderr | def work(): # A worker thread. try: while True: try: test, args_tuple = pending.popleft() except IndexError: output.put((None, None, None)) return if not quiet: print test sys.stdout.flush() # -E is needed by some tests, e.g. test_import popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.dumps(args_tuple)], stdout=PIPE, stderr=STDOUT, universal_newlines=True, close_fds=True) out = popen.communicate()[0].strip() out = debug_output_pat.sub("", out) out, _, result = out.strip().rpartition("\n") result = json.loads(result) output.put((test, out.strip(), result)) except BaseException: output.put((None, None, None)) raise | 0b02e9b20963e971a27586451a3eca5bdacf38dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/0b02e9b20963e971a27586451a3eca5bdacf38dc/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
13332,
468,
432,
4322,
2650,
18,
775,
30,
1323,
1053,
30,
775,
30,
1842,
16,
833,
67,
8052,
273,
4634,
18,
5120,
4482,
1435,
1335,
10195,
30,
876,
18,
458,
12443,
7036,
16,
599,
16,
599,
3719,
327,
309,
486,
10902,
30,
1172,
1842,
2589,
18,
10283,
18,
11330,
1435,
468,
300,
41,
353,
3577,
635,
2690,
7434,
16,
425,
18,
75,
18,
1842,
67,
5666,
30925,
273,
14339,
3816,
9499,
18,
17751,
16,
2400,
41,
2187,
2400,
81,
2187,
296,
3813,
18,
1574,
3797,
395,
2187,
3534,
27352,
1968,
2187,
1163,
18,
13302,
1121,
12,
1968,
67,
8052,
13,
6487,
3909,
33,
27602,
16,
4514,
33,
882,
16864,
16,
26182,
67,
31276,
33,
5510,
16,
1746,
67,
74,
2377,
33,
5510,
13,
596,
273,
30925,
18,
5702,
318,
2659,
1435,
63,
20,
8009,
6406,
1435,
596,
273,
1198,
67,
2844,
67,
16330,
18,
1717,
2932,
3113,
596,
13,
596,
16,
389,
16,
563,
273,
596,
18,
6406,
7675,
86,
10534,
31458,
82,
7923,
563,
273,
1163,
18,
17135,
12,
2088,
13,
876,
18,
458,
12443,
3813,
16,
596,
18,
6406,
9334,
563,
3719,
1335,
26778,
30,
876,
18,
458,
12443,
7036,
16,
599,
16,
599,
3719,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
13332,
468,
432,
4322,
2650,
18,
775,
30,
1323,
1053,
30,
775,
30,
1842,
16,
833,
67,
8052,
273,
4634,
18,
5120,
4482,
1435,
1335,
10195,
30,
876,
18,
458,
12443,
7036,
16,
599,
16,
599,
3719,
327,
309,
486,
10902,
30,
1172,
1842,
2589,
18,
10283,
18,
11330,
1435,
468,
300,
41,
353,
3577,
635,
2690,
7434,
16,
425,
18,
75,
18,
1842,
67,
5666,
30925,
273,
14339,
3816,
9499,
18,
17751,
16,
2400,
41,
2187,
2400,
81,
2187,
296,
3813,
18,
1574,
3797,
395,
2187,
3534,
27352,
1968,
2187,
1163,
18,
13302,
1121,
12,
1968,
67,
8052,
13,
6487,
3909,
33,
27602,
16,
4514,
33,
882,
16864,
16,
26182,
67,
31276,
33,
5510,
16,
1746,
2
] |
options.append(("B", "Keyboard", "Keyboard configuration")) | options.append(("K", "Keyboard", "Keyboard configuration")) | def EnterEscapeMenu(self): options = [] options.append(("B", "Back", "Return to the game")) options.append(("B", "Keyboard", "Keyboard configuration")) options.append(("D", "Debug", "Debug options")) options.append(("Q", "Quit", "Disconnect from the game")) self.DisplayMenu(MODE_ESCAPE_MENU, options) | b9f8510f0c954283a39c38d5d9ec270a0b1354a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/b9f8510f0c954283a39c38d5d9ec270a0b1354a1/roguelike.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15439,
8448,
4599,
12,
2890,
4672,
702,
273,
5378,
702,
18,
6923,
12,
2932,
38,
3113,
315,
2711,
3113,
3639,
315,
990,
358,
326,
7920,
6,
3719,
702,
18,
6923,
12,
2932,
47,
3113,
315,
17872,
3113,
565,
315,
17872,
1664,
6,
3719,
702,
18,
6923,
12,
2932,
40,
3113,
315,
2829,
3113,
4202,
315,
2829,
702,
6,
3719,
702,
18,
6923,
12,
2932,
53,
3113,
315,
25365,
3113,
3639,
315,
18895,
628,
326,
7920,
6,
3719,
365,
18,
4236,
4599,
12,
7038,
67,
24849,
67,
29227,
16,
702,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15439,
8448,
4599,
12,
2890,
4672,
702,
273,
5378,
702,
18,
6923,
12,
2932,
38,
3113,
315,
2711,
3113,
3639,
315,
990,
358,
326,
7920,
6,
3719,
702,
18,
6923,
12,
2932,
47,
3113,
315,
17872,
3113,
565,
315,
17872,
1664,
6,
3719,
702,
18,
6923,
12,
2932,
40,
3113,
315,
2829,
3113,
4202,
315,
2829,
702,
6,
3719,
702,
18,
6923,
12,
2932,
53,
3113,
315,
25365,
3113,
3639,
315,
18895,
628,
326,
7920,
6,
3719,
365,
18,
4236,
4599,
12,
7038,
67,
24849,
67,
29227,
16,
702,
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
] |
f.write("UPDATEDEFAULT=no\n") f.write("\n") f.write(" f.write("DEFAULTKERNEL=%s\n" %(defkern,)) f.close() dosync() | partNum = None return (name, partNum) def getRootDevName(initrd, fsset, rootDev, instRoot): if not os.access(instRoot + initrd, os.R_OK): return "/dev/%s" % (rootDev,) | def rectifyLuksName(anaconda, name): if name is not None and name.startswith('mapper/luks-'): try: newname = anaconda.id.partitions.encryptedDevices.get(name[12:]) if newname is None: for luksdev in anaconda.id.partitions.encryptedDevices.values(): if os.path.basename(luksdev.getDevice(encrypted=1)) == name[12:]: newname = luksdev break name = newname.getDevice() except: pass return name | 583246e158d09b4e23c27cb6c4ae52ba7fa7afdb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7066/583246e158d09b4e23c27cb6c4ae52ba7fa7afdb/bootloaderInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4917,
1164,
48,
89,
7904,
461,
12,
13848,
591,
2414,
16,
508,
4672,
309,
508,
353,
486,
599,
471,
508,
18,
17514,
1918,
2668,
13919,
19,
28832,
7904,
6627,
4672,
775,
30,
26722,
273,
392,
16329,
2414,
18,
350,
18,
21275,
18,
18702,
10053,
18,
588,
12,
529,
63,
2138,
30,
5717,
309,
26722,
353,
599,
30,
364,
20072,
7904,
5206,
316,
392,
16329,
2414,
18,
350,
18,
21275,
18,
18702,
10053,
18,
2372,
13332,
309,
1140,
18,
803,
18,
13909,
12,
28832,
7904,
5206,
18,
588,
3654,
12,
18702,
33,
21,
3719,
422,
508,
63,
2138,
30,
14542,
26722,
273,
20072,
7904,
5206,
898,
508,
273,
26722,
18,
588,
3654,
1435,
1335,
30,
1342,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4917,
1164,
48,
89,
7904,
461,
12,
13848,
591,
2414,
16,
508,
4672,
309,
508,
353,
486,
599,
471,
508,
18,
17514,
1918,
2668,
13919,
19,
28832,
7904,
6627,
4672,
775,
30,
26722,
273,
392,
16329,
2414,
18,
350,
18,
21275,
18,
18702,
10053,
18,
588,
12,
529,
63,
2138,
30,
5717,
309,
26722,
353,
599,
30,
364,
20072,
7904,
5206,
316,
392,
16329,
2414,
18,
350,
18,
21275,
18,
18702,
10053,
18,
2372,
13332,
309,
1140,
18,
803,
18,
13909,
12,
28832,
7904,
5206,
18,
588,
3654,
12,
18702,
33,
21,
3719,
422,
508,
63,
2138,
30,
14542,
26722,
273,
20072,
7904,
5206,
898,
508,
273,
26722,
18,
588,
3654,
1435,
1335,
30,
1342,
327,
508,
2,
-100
] |
headers = {'content-type': "application/x-www-form-urlencoded"} | headers = {} if method == 'POST': headers['content-type'] = "application/x-www-form-urlencoded" | def __init__(self, fp=None, headers=None, outerboundary="", environ=os.environ, keep_blank_values=0, strict_parsing=0): """Constructor. Read multipart/* until last part. | 70e2dac8ef474f7927b490d5fab69689b1319d4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/70e2dac8ef474f7927b490d5fab69689b1319d4b/cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
33,
7036,
16,
1607,
33,
7036,
16,
6390,
16604,
1546,
3113,
5473,
33,
538,
18,
28684,
16,
3455,
67,
12111,
67,
2372,
33,
20,
16,
5490,
67,
24979,
33,
20,
4672,
3536,
6293,
18,
225,
2720,
10263,
20308,
3180,
1142,
1087,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
33,
7036,
16,
1607,
33,
7036,
16,
6390,
16604,
1546,
3113,
5473,
33,
538,
18,
28684,
16,
3455,
67,
12111,
67,
2372,
33,
20,
16,
5490,
67,
24979,
33,
20,
4672,
3536,
6293,
18,
225,
2720,
10263,
20308,
3180,
1142,
1087,
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
] |
print dictionary | def get(key, lang = None): if lang == None: lang = wikipedia.mylang try: # find out how old our saved dump is (in seconds) file_age = time.time() - os.path.getmtime('mediawiki-messages/mediawiki-messages-%s.dat' % lang) # if it's older than 1 month, reload it if file_age > 30 * 24 * 60 * 60: print 'Current MediaWiki message dump is one month old, reloading' refresh_messages(lang) except OSError: # no saved dumped exists yet refresh_messages(lang) # TODO: It's quite inefficient to reload the file every time this function # is used. Maybe we can save its content the first time the function is # called. f = open('mediawiki-messages/mediawiki-messages-%s.dat' % lang, 'r') dictionary = pickle.load(f) f.close() key = key[0].lower() + key[1:] print dictionary if dictionary.has_key(key): return dictionary[key] else: # TODO: Throw exception instead? print 'ERROR: MediaWiki Key %s not found' % key | 3822eafa781b90c050589957c2f9ec2a7013e9f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3822eafa781b90c050589957c2f9ec2a7013e9f1/mediawiki_messages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
856,
16,
3303,
273,
599,
4672,
309,
3303,
422,
599,
30,
3303,
273,
21137,
18,
4811,
4936,
775,
30,
468,
1104,
596,
3661,
1592,
3134,
5198,
4657,
353,
261,
267,
3974,
13,
585,
67,
410,
273,
813,
18,
957,
1435,
300,
1140,
18,
803,
18,
588,
10838,
2668,
5829,
13044,
17,
6833,
19,
5829,
13044,
17,
6833,
6456,
87,
18,
3404,
11,
738,
3303,
13,
468,
309,
518,
1807,
12156,
2353,
404,
3138,
16,
7749,
518,
309,
585,
67,
410,
405,
5196,
380,
4248,
380,
4752,
380,
4752,
30,
1172,
296,
3935,
6128,
25438,
883,
4657,
353,
1245,
3138,
1592,
16,
7749,
310,
11,
4460,
67,
6833,
12,
4936,
13,
1335,
10002,
30,
468,
1158,
5198,
29942,
1704,
4671,
4460,
67,
6833,
12,
4936,
13,
468,
2660,
30,
2597,
1807,
25102,
316,
25403,
358,
7749,
326,
585,
3614,
813,
333,
445,
468,
353,
1399,
18,
14024,
732,
848,
1923,
2097,
913,
326,
1122,
813,
326,
445,
353,
468,
2566,
18,
284,
273,
1696,
2668,
5829,
13044,
17,
6833,
19,
5829,
13044,
17,
6833,
6456,
87,
18,
3404,
11,
738,
3303,
16,
296,
86,
6134,
3880,
273,
13379,
18,
945,
12,
74,
13,
284,
18,
4412,
1435,
498,
273,
498,
63,
20,
8009,
8167,
1435,
397,
498,
63,
21,
26894,
309,
3880,
18,
5332,
67,
856,
12,
856,
4672,
327,
3880,
63,
856,
65,
469,
30,
468,
2660,
30,
3743,
1520,
3560,
35,
1172,
296,
3589,
30,
6128,
25438,
1929,
738,
87,
486,
1392,
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,
336,
12,
856,
16,
3303,
273,
599,
4672,
309,
3303,
422,
599,
30,
3303,
273,
21137,
18,
4811,
4936,
775,
30,
468,
1104,
596,
3661,
1592,
3134,
5198,
4657,
353,
261,
267,
3974,
13,
585,
67,
410,
273,
813,
18,
957,
1435,
300,
1140,
18,
803,
18,
588,
10838,
2668,
5829,
13044,
17,
6833,
19,
5829,
13044,
17,
6833,
6456,
87,
18,
3404,
11,
738,
3303,
13,
468,
309,
518,
1807,
12156,
2353,
404,
3138,
16,
7749,
518,
309,
585,
67,
410,
405,
5196,
380,
4248,
380,
4752,
380,
4752,
30,
1172,
296,
3935,
6128,
25438,
883,
4657,
353,
1245,
3138,
1592,
16,
7749,
310,
11,
4460,
67,
6833,
12,
4936,
13,
1335,
10002,
30,
468,
1158,
5198,
2
] |
|
cr.execute('select "'+field._fields_id+'" from "'+field_obj._table+'" where id in ('+','.join(map(str,ids2))+')') ids3 = [x[0] for x in cr.fetchall()] | ids3 = [] for i in range((len(ids2) / ID_MAX) + (len(ids2) % ID_MAX)): sub_ids2 = ids2[ID_MAX * i:ID_MAX * (i + 1)] cr.execute('select "'+field._fields_id+'" ' \ 'from "'+field_obj._table+'" ' \ 'where id in ('+','.join(map(str,sub_ids2))+')') ids3.extend([x[0] for x in cr.fetchall()]) | def _where_calc(self, cr, user, args, active_test=True, context=None): if not context: context={} args = args[:] # if the object has a field named 'active', filter out all inactive # records unless they were explicitely asked for if 'active' in self._columns and (active_test and context.get('active_test', True)): i = 0 active_found = False while i<len(args): if args[i][0]=='active': active_found = True i += 1 if not active_found: args.append(('active', '=', 1)) | 49d7cae04d7977f364f6f5de70e1e3d7090f240e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/49d7cae04d7977f364f6f5de70e1e3d7090f240e/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6051,
67,
12448,
12,
2890,
16,
4422,
16,
729,
16,
833,
16,
2695,
67,
3813,
33,
5510,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
833,
273,
833,
10531,
65,
468,
309,
326,
733,
711,
279,
652,
4141,
296,
3535,
2187,
1034,
596,
777,
16838,
468,
3853,
3308,
2898,
4591,
5515,
2357,
19279,
364,
309,
296,
3535,
11,
316,
365,
6315,
5112,
471,
261,
3535,
67,
3813,
471,
819,
18,
588,
2668,
3535,
67,
3813,
2187,
1053,
3719,
30,
277,
273,
374,
2695,
67,
7015,
273,
1083,
1323,
277,
32,
1897,
12,
1968,
4672,
309,
833,
63,
77,
6362,
20,
65,
18920,
3535,
4278,
2695,
67,
7015,
273,
1053,
277,
1011,
404,
309,
486,
2695,
67,
7015,
30,
833,
18,
6923,
12,
2668,
3535,
2187,
15196,
2187,
404,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6051,
67,
12448,
12,
2890,
16,
4422,
16,
729,
16,
833,
16,
2695,
67,
3813,
33,
5510,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
833,
273,
833,
10531,
65,
468,
309,
326,
733,
711,
279,
652,
4141,
296,
3535,
2187,
1034,
596,
777,
16838,
468,
3853,
3308,
2898,
4591,
5515,
2357,
19279,
364,
309,
296,
3535,
11,
316,
365,
6315,
5112,
471,
261,
3535,
67,
3813,
471,
819,
18,
588,
2668,
3535,
67,
3813,
2187,
1053,
3719,
30,
277,
273,
374,
2695,
67,
7015,
273,
1083,
1323,
277,
32,
1897,
12,
1968,
4672,
309,
833,
63,
77,
6362,
20,
65,
18920,
3535,
4278,
2695,
67,
7015,
273,
1053,
277,
1011,
404,
309,
486,
2
] |
sys.stderr.write(py_exc.msg) | sys.stderr.write(py_exc.msg + '\n') | def compile(file, cfile=None, dfile=None, doraise=False): """Byte-compile one Python source file to Python bytecode. Arguments: file: source filename cfile: target filename; defaults to source with 'c' or 'o' appended ('c' normally, 'o' in optimizing mode, giving .pyc or .pyo) dfile: purported filename; defaults to source (this is the filename that will show up in error messages) doraise: flag indicating whether or not an exception should be raised when a compile error is found. If an exception occurs and this flag is set to False, a string indicating the nature of the exception will be printed, and the function will return to the caller. If an exception occurs and this flag is set to True, a PyCompileError exception will be raised. Note that it isn't necessary to byte-compile Python modules for execution efficiency -- Python itself byte-compiles a module when it is loaded, and if it can, writes out the bytecode to the corresponding .pyc (or .pyo) file. However, if a Python installation is shared between users, it is a good idea to byte-compile all modules upon installation, since other users may not be able to write in the source directories, and thus they won't be able to write the .pyc/.pyo file, and then they would be byte-compiling every module each time it is loaded. This can slow down program start-up considerably. See compileall.py for a script/module that uses this module to byte-compile all installed files (or all files in selected directories). """ f = open(file, 'U') try: timestamp = long(os.fstat(f.fileno()).st_mtime) except AttributeError: timestamp = long(os.stat(file).st_mtime) codestring = f.read() f.close() if codestring and codestring[-1] != '\n': codestring = codestring + '\n' try: codeobject = __builtin__.compile(codestring, dfile or file,'exec') except Exception,err: py_exc = PyCompileError(err.__class__,err.args,dfile or file) if doraise: raise py_exc else: sys.stderr.write(py_exc.msg) return if cfile is None: cfile = file + (__debug__ and 'c' or 'o') fc = open(cfile, 'wb') fc.write('\0\0\0\0') wr_long(fc, timestamp) marshal.dump(codeobject, fc) fc.flush() fc.seek(0, 0) fc.write(MAGIC) fc.close() set_creator_type(cfile) | 937d95e15115155d11a5a130e7a4b1c2fc737801 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/937d95e15115155d11a5a130e7a4b1c2fc737801/py_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
768,
16,
276,
768,
33,
7036,
16,
302,
768,
33,
7036,
16,
302,
10610,
784,
33,
8381,
4672,
3536,
3216,
17,
11100,
1245,
6600,
1084,
585,
358,
6600,
22801,
18,
225,
13599,
30,
225,
585,
30,
565,
1084,
1544,
276,
768,
30,
282,
1018,
1544,
31,
3467,
358,
1084,
598,
296,
71,
11,
578,
296,
83,
11,
12317,
7707,
71,
11,
15849,
16,
296,
83,
11,
316,
5213,
6894,
1965,
16,
21057,
263,
2074,
71,
578,
263,
2074,
83,
13,
302,
768,
30,
282,
5405,
1798,
1544,
31,
3467,
358,
1084,
261,
2211,
353,
326,
1544,
716,
903,
2405,
731,
316,
555,
2743,
13,
302,
10610,
784,
30,
2982,
11193,
2856,
578,
486,
392,
1520,
1410,
506,
11531,
1347,
279,
4074,
555,
353,
1392,
18,
971,
392,
1520,
9938,
471,
333,
2982,
353,
444,
358,
1083,
16,
279,
533,
11193,
326,
28700,
434,
326,
1520,
903,
506,
14099,
16,
471,
326,
445,
903,
327,
358,
326,
4894,
18,
971,
392,
1520,
9938,
471,
333,
2982,
353,
444,
358,
1053,
16,
279,
4707,
9937,
668,
1520,
903,
506,
11531,
18,
225,
3609,
716,
518,
5177,
1404,
4573,
358,
1160,
17,
11100,
6600,
4381,
364,
4588,
30325,
1493,
6600,
6174,
1160,
17,
2919,
1449,
279,
1605,
1347,
518,
353,
4203,
16,
471,
309,
518,
848,
16,
7262,
596,
326,
22801,
358,
326,
4656,
263,
2074,
71,
261,
280,
263,
2074,
83,
13,
585,
18,
225,
10724,
16,
309,
279,
6600,
13193,
353,
5116,
3086,
3677,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
768,
16,
276,
768,
33,
7036,
16,
302,
768,
33,
7036,
16,
302,
10610,
784,
33,
8381,
4672,
3536,
3216,
17,
11100,
1245,
6600,
1084,
585,
358,
6600,
22801,
18,
225,
13599,
30,
225,
585,
30,
565,
1084,
1544,
276,
768,
30,
282,
1018,
1544,
31,
3467,
358,
1084,
598,
296,
71,
11,
578,
296,
83,
11,
12317,
7707,
71,
11,
15849,
16,
296,
83,
11,
316,
5213,
6894,
1965,
16,
21057,
263,
2074,
71,
578,
263,
2074,
83,
13,
302,
768,
30,
282,
5405,
1798,
1544,
31,
3467,
358,
1084,
261,
2211,
353,
326,
1544,
716,
903,
2405,
731,
316,
555,
2743,
13,
302,
10610,
784,
30,
2982,
11193,
2856,
578,
486,
392,
1520,
1410,
2
] |
(module_name, 'en_US', 'field', 'help', 'selection') + \ | ('en_US', 'field', 'help', 'selection') + \ | def _field_create(self, cursor, module_name): cursor.execute("SELECT id FROM ir_model WHERE model = %s", (self._name,)) if not cursor.rowcount: # reference model in order to have a description # of its fonctionnality in custom_report cursor.execute("INSERT INTO ir_model " \ "(model, name, info) VALUES (%s, %s, %s)", (self._name, self._description, self.__doc__)) cursor.commit() cursor.execute("SELECT id FROM ir_model WHERE model = %s", (self._name,)) (model_id,) = cursor.fetchone() | 311ecc3b2b0e98fdfe0eb8b4e8182a84abd3caeb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/311ecc3b2b0e98fdfe0eb8b4e8182a84abd3caeb/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1518,
67,
2640,
12,
2890,
16,
3347,
16,
1605,
67,
529,
4672,
3347,
18,
8837,
2932,
4803,
612,
4571,
9482,
67,
2284,
4852,
938,
273,
738,
87,
3113,
261,
2890,
6315,
529,
16,
3719,
309,
486,
3347,
18,
492,
1883,
30,
468,
2114,
938,
316,
1353,
358,
1240,
279,
2477,
468,
434,
2097,
284,
265,
349,
82,
7919,
316,
1679,
67,
6006,
3347,
18,
8837,
2932,
11356,
12421,
9482,
67,
2284,
315,
521,
7751,
2284,
16,
508,
16,
1123,
13,
13477,
6142,
87,
16,
738,
87,
16,
738,
87,
2225,
16,
261,
2890,
6315,
529,
16,
365,
6315,
3384,
16,
365,
16186,
2434,
972,
3719,
3347,
18,
7371,
1435,
3347,
18,
8837,
2932,
4803,
612,
4571,
9482,
67,
2284,
4852,
938,
273,
738,
87,
3113,
261,
2890,
6315,
529,
16,
3719,
261,
2284,
67,
350,
16,
13,
273,
3347,
18,
5754,
476,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
1518,
67,
2640,
12,
2890,
16,
3347,
16,
1605,
67,
529,
4672,
3347,
18,
8837,
2932,
4803,
612,
4571,
9482,
67,
2284,
4852,
938,
273,
738,
87,
3113,
261,
2890,
6315,
529,
16,
3719,
309,
486,
3347,
18,
492,
1883,
30,
468,
2114,
938,
316,
1353,
358,
1240,
279,
2477,
468,
434,
2097,
284,
265,
349,
82,
7919,
316,
1679,
67,
6006,
3347,
18,
8837,
2932,
11356,
12421,
9482,
67,
2284,
315,
521,
7751,
2284,
16,
508,
16,
1123,
13,
13477,
6142,
87,
16,
738,
87,
16,
738,
87,
2225,
16,
261,
2890,
6315,
529,
16,
365,
6315,
3384,
16,
365,
16186,
2434,
972,
3719,
3347,
18,
7371,
1435,
3347,
18,
8837,
2932,
4803,
612,
4571,
9482,
2
] |
**Contracts evaluation**: Note that all contracts for the arguments and the return values are evaluated in the same context. This make it possible to use common variables in the contract expression. For example, in the example above, the return value is constrained to be a list of the same length (``N``) as the parameter ``b``. **Using docstrings** Note that, by convention, those annotations must be parseable as RestructuredText. This is relevant if you are using Sphinx. If the contract string has special RST characters in it, like ``*``, you can include it in double ticks. |pycontracts| will remove the double ticks before interpreting the string. | **Contracts evaluation**: Note that all contracts for the arguments and the return values are evaluated in the same context. This make it possible to use common variables in the contract expression. For example, in the example above, the return value is constrained to be a list of the same length (``N``) as the parameter ``b``. **Using docstrings** Note that, by convention, those annotations must be parseable as RestructuredText. This is relevant if you are using Sphinx. If the contract string has special RST characters in it, like ``*``, you can include it in double ticks. |pycontracts| will remove the double ticks before interpreting the string. | def my_function(a, b): """ Function description. :type a: int,>0 :type b: list[N],N>0 :rtype: list[N] """ pass | 85562dd004b414f169fe9e2e8440311e1c9dbcb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13591/85562dd004b414f169fe9e2e8440311e1c9dbcb5/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
915,
12,
69,
16,
324,
4672,
3536,
4284,
2477,
18,
294,
723,
279,
30,
509,
16,
34,
20,
294,
723,
324,
30,
666,
63,
50,
6487,
50,
34,
20,
294,
86,
723,
30,
666,
63,
50,
65,
3536,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
915,
12,
69,
16,
324,
4672,
3536,
4284,
2477,
18,
294,
723,
279,
30,
509,
16,
34,
20,
294,
723,
324,
30,
666,
63,
50,
6487,
50,
34,
20,
294,
86,
723,
30,
666,
63,
50,
65,
3536,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.assertRaises(_ped.CreateException, self.set_start, -1) self.assertRaises(_ped.CreateException, self.set_start, 1000000000) | self.assertRaises(_ped.CreateException, self.g.set_start, -1) self.assertRaises(_ped.CreateException, self.g.set_start, 1000000000) | def runTest(self): self.g.set_start(10) self.assert_(self.g.start == 10) self.assert_(self.g.length == 90) self.assert_(self.g.end == 100) | 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,
365,
18,
75,
18,
542,
67,
1937,
12,
2163,
13,
365,
18,
11231,
67,
12,
2890,
18,
75,
18,
1937,
422,
1728,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
365,
18,
75,
18,
542,
67,
1937,
12,
2163,
13,
365,
18,
11231,
67,
12,
2890,
18,
75,
18,
1937,
422,
1728,
13,
365,
18,
11231,
67,
12,
2890,
18,
75,
18,
2469,
422,
8566,
13,
365,
18,
11231,
67,
12,
2890,
18,
75,
18,
409,
422,
2130,
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
] |
if not grouping:return s | if not grouping:return (s, 0) | def _group(s): conv=localeconv() grouping=conv['grouping'] if not grouping:return s result="" seps = 0 spaces = "" if s[-1] == ' ': sp = s.find(' ') spaces = s[sp:] s = s[:sp] while s and grouping: # if grouping is -1, we are done if grouping[0]==CHAR_MAX: break # 0: re-use last group ad infinitum elif grouping[0]!=0: #process last group group=grouping[0] grouping=grouping[1:] if result: result=s[-group:]+conv['thousands_sep']+result seps += 1 else: result=s[-group:] s=s[:-group] if s and s[-1] not in "0123456789": # the leading string is only spaces and signs return s+result+spaces,seps if not result: return s+spaces,seps if s: result=s+conv['thousands_sep']+result seps += 1 return result+spaces,seps | 67addfe2a87d22458323e268d2bcc7406e6febc2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/67addfe2a87d22458323e268d2bcc7406e6febc2/locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1655,
12,
87,
4672,
6292,
33,
3729,
17181,
90,
1435,
12116,
33,
4896,
3292,
25592,
3546,
309,
486,
12116,
30,
2463,
261,
87,
16,
374,
13,
563,
1546,
6,
695,
1121,
273,
374,
7292,
273,
1408,
309,
272,
18919,
21,
65,
422,
296,
4290,
1694,
273,
272,
18,
4720,
2668,
8624,
7292,
273,
272,
63,
1752,
26894,
272,
273,
272,
10531,
1752,
65,
1323,
272,
471,
12116,
30,
468,
309,
12116,
353,
300,
21,
16,
732,
854,
2731,
309,
12116,
63,
20,
65,
631,
7305,
67,
6694,
30,
898,
468,
374,
30,
283,
17,
1202,
1142,
1041,
1261,
316,
926,
305,
379,
1327,
12116,
63,
20,
65,
5,
33,
20,
30,
468,
2567,
1142,
1041,
1041,
33,
25592,
63,
20,
65,
12116,
33,
25592,
63,
21,
26894,
309,
563,
30,
563,
33,
87,
18919,
1655,
30,
3737,
4896,
3292,
451,
24810,
67,
10814,
3546,
15,
2088,
695,
1121,
1011,
404,
469,
30,
563,
33,
87,
18919,
1655,
26894,
272,
33,
87,
10531,
17,
1655,
65,
309,
272,
471,
272,
18919,
21,
65,
486,
316,
315,
26684,
6877,
468,
326,
7676,
533,
353,
1338,
7292,
471,
21588,
327,
272,
15,
2088,
15,
9554,
16,
307,
1121,
309,
486,
563,
30,
327,
272,
15,
9554,
16,
307,
1121,
309,
272,
30,
563,
33,
87,
15,
4896,
3292,
451,
24810,
67,
10814,
3546,
15,
2088,
695,
1121,
1011,
404,
327,
563,
15,
9554,
16,
307,
1121,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1655,
12,
87,
4672,
6292,
33,
3729,
17181,
90,
1435,
12116,
33,
4896,
3292,
25592,
3546,
309,
486,
12116,
30,
2463,
261,
87,
16,
374,
13,
563,
1546,
6,
695,
1121,
273,
374,
7292,
273,
1408,
309,
272,
18919,
21,
65,
422,
296,
4290,
1694,
273,
272,
18,
4720,
2668,
8624,
7292,
273,
272,
63,
1752,
26894,
272,
273,
272,
10531,
1752,
65,
1323,
272,
471,
12116,
30,
468,
309,
12116,
353,
300,
21,
16,
732,
854,
2731,
309,
12116,
63,
20,
65,
631,
7305,
67,
6694,
30,
898,
468,
374,
30,
283,
17,
1202,
1142,
1041,
1261,
316,
926,
305,
379,
1327,
12116,
63,
20,
65,
5,
33,
20,
30,
468,
2567,
1142,
1041,
1041,
33,
2
] |
this = apply(_quickfix.new_UnderlyingSecurityExchange, args) | this = _quickfix.new_UnderlyingSecurityExchange(*args) | def __init__(self, *args): this = apply(_quickfix.new_UnderlyingSecurityExchange, 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,
14655,
6291,
4368,
11688,
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,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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,
14655,
6291,
4368,
11688,
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,
-100
] |
tests[port] = {"port": port, "data": '%08x' % random.randint(0, 0xffffffff)} | test_data[port] = '%08x' % random.randint(0, 0xffffffff) if len(test_ports) == 0: log.debug("%s: no testable ports.") router.last_tested = int(time.time()) return | def exit_test(self, router): tests = {} results = [] test_ports = [] recv_sockets = [] self.test_exit = router exit = router.router # FIXME | edf3e1ef6dbdfa62fde9e97a9acdba9c0ebf2af5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/edf3e1ef6dbdfa62fde9e97a9acdba9c0ebf2af5/torbel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2427,
67,
3813,
12,
2890,
16,
4633,
4672,
7434,
273,
2618,
1686,
273,
5378,
1842,
67,
4363,
273,
5378,
10665,
67,
7814,
87,
273,
5378,
365,
18,
3813,
67,
8593,
273,
4633,
2427,
273,
4633,
18,
10717,
468,
9852,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2427,
67,
3813,
12,
2890,
16,
4633,
4672,
7434,
273,
2618,
1686,
273,
5378,
1842,
67,
4363,
273,
5378,
10665,
67,
7814,
87,
273,
5378,
365,
18,
3813,
67,
8593,
273,
4633,
2427,
273,
4633,
18,
10717,
468,
9852,
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
] |
self.short_name = self.station['infos']['short_name'] + '_' + str(self.channel_id) self.channel.name = self.station['infos']['name'] + '_' + str(self.channel_id) | self.short_name = self.station['infos']['short_name'] self.channel.name = self.station['infos']['name'] | def __init__(self, station, channel_id): Thread.__init__(self) #self.channel_q = channel_q self.station = station self.buffer_size = 16384 self.channel_id = channel_id self.channel = Shout() self.id = 999999 self.counter = 0 self.rand_list = [] self.command = "cat " # Media self.media_dir = self.station['media']['dir'] self.channel.format = self.station['media']['format'] self.mode_shuffle = int(self.station['media']['shuffle']) # Infos self.short_name = self.station['infos']['short_name'] + '_' + str(self.channel_id) self.channel.name = self.station['infos']['name'] + '_' + str(self.channel_id) self.channel.genre = self.station['infos']['genre'] self.channel.description = self.station['infos']['description'] self.channel.url = self.station['infos']['url'] # Server self.channel.protocol = 'http' # | 'xaudiocast' | 'icy' self.channel.host = self.station['server']['host'] self.channel.port = int(self.station['server']['port']) self.channel.user = 'source' self.channel.password = self.station['server']['sourcepassword'] self.channel.mount = '/' + self.short_name + '.' + self.channel.format #print self.channel.mount self.channel.public = int(self.station['server']['public']) # s.audio_info = { 'key': 'val', ... } # (keys are shout.SHOUT_AI_BITRATE, shout.SHOUT_AI_SAMPLERATE, # shout.SHOUT_AI_CHANNELS, shout.SHOUT_AI_QUALITY) | ab8799f1c339289c045d33156b803d545ac43f7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/ab8799f1c339289c045d33156b803d545ac43f7b/defuzz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13282,
16,
1904,
67,
350,
4672,
4884,
16186,
2738,
972,
12,
2890,
13,
468,
2890,
18,
4327,
67,
85,
273,
1904,
67,
85,
365,
18,
17894,
273,
13282,
365,
18,
4106,
67,
1467,
273,
2872,
17295,
365,
18,
4327,
67,
350,
273,
1904,
67,
350,
365,
18,
4327,
273,
2638,
659,
1435,
365,
18,
350,
273,
23841,
29,
365,
18,
7476,
273,
374,
365,
18,
7884,
67,
1098,
273,
5378,
365,
18,
3076,
273,
315,
2574,
315,
468,
6128,
365,
18,
5829,
67,
1214,
273,
365,
18,
17894,
3292,
5829,
21712,
1214,
3546,
365,
18,
4327,
18,
2139,
273,
365,
18,
17894,
3292,
5829,
21712,
2139,
3546,
365,
18,
3188,
67,
31980,
273,
509,
12,
2890,
18,
17894,
3292,
5829,
21712,
31980,
19486,
468,
657,
5075,
365,
18,
6620,
67,
529,
273,
365,
18,
17894,
3292,
18227,
21712,
6620,
67,
529,
3546,
365,
18,
4327,
18,
529,
273,
365,
18,
17894,
3292,
18227,
21712,
529,
3546,
365,
18,
4327,
18,
4507,
266,
273,
365,
18,
17894,
3292,
18227,
21712,
4507,
266,
3546,
365,
18,
4327,
18,
3384,
273,
365,
18,
17894,
3292,
18227,
21712,
3384,
3546,
365,
18,
4327,
18,
718,
273,
365,
18,
17894,
3292,
18227,
21712,
718,
3546,
468,
3224,
365,
18,
4327,
18,
8373,
273,
296,
2505,
11,
377,
468,
571,
296,
6995,
1100,
77,
504,
689,
11,
571,
296,
335,
93,
11,
365,
18,
4327,
18,
2564,
273,
365,
18,
17894,
3292,
3567,
21712,
2564,
3546,
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,
13282,
16,
1904,
67,
350,
4672,
4884,
16186,
2738,
972,
12,
2890,
13,
468,
2890,
18,
4327,
67,
85,
273,
1904,
67,
85,
365,
18,
17894,
273,
13282,
365,
18,
4106,
67,
1467,
273,
2872,
17295,
365,
18,
4327,
67,
350,
273,
1904,
67,
350,
365,
18,
4327,
273,
2638,
659,
1435,
365,
18,
350,
273,
23841,
29,
365,
18,
7476,
273,
374,
365,
18,
7884,
67,
1098,
273,
5378,
365,
18,
3076,
273,
315,
2574,
315,
468,
6128,
365,
18,
5829,
67,
1214,
273,
365,
18,
17894,
3292,
5829,
21712,
1214,
3546,
365,
18,
4327,
18,
2139,
273,
365,
18,
17894,
3292,
5829,
21712,
2139,
3546,
365,
18,
3188,
67,
31980,
2
] |
sys.stderr.write("WARNING: %s can not be found - standard extensions may not be found" % mapFileName) | sys.stderr.write("WARNING: %s can not be found - standard extensions may not be found\n" % defaultMapName) | def checkextensions(unknown, extra_inis, prefix): # Create a table of frozen extensions defaultMapName = os.path.join( os.path.split(sys.argv[0])[0], "extensions_win32.ini") if not os.path.isfile(defaultMapName): sys.stderr.write("WARNING: %s can not be found - standard extensions may not be found" % mapFileName) else: # must go on end, so other inis can override. extra_inis.append(defaultMapName) ret = [] for mod in unknown: for ini in extra_inis: | f190bfbe7746865ad81e5b8938b9b12b15e0b868 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f190bfbe7746865ad81e5b8938b9b12b15e0b868/checkextensions_win32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
9489,
12,
8172,
16,
2870,
67,
267,
291,
16,
1633,
4672,
468,
1788,
279,
1014,
434,
12810,
4418,
225,
805,
863,
461,
273,
1140,
18,
803,
18,
5701,
12,
1140,
18,
803,
18,
4939,
12,
9499,
18,
19485,
63,
20,
5717,
63,
20,
6487,
315,
9489,
67,
8082,
1578,
18,
8767,
7923,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
1886,
863,
461,
4672,
2589,
18,
11241,
18,
2626,
2932,
9511,
30,
738,
87,
848,
486,
506,
1392,
300,
4529,
4418,
2026,
486,
506,
1392,
64,
82,
6,
738,
805,
863,
461,
13,
469,
30,
468,
1297,
1960,
603,
679,
16,
1427,
1308,
316,
291,
848,
3849,
18,
2870,
67,
267,
291,
18,
6923,
12,
1886,
863,
461,
13,
225,
325,
273,
5378,
364,
681,
316,
5917,
30,
364,
6896,
316,
2870,
67,
267,
291,
30,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
9489,
12,
8172,
16,
2870,
67,
267,
291,
16,
1633,
4672,
468,
1788,
279,
1014,
434,
12810,
4418,
225,
805,
863,
461,
273,
1140,
18,
803,
18,
5701,
12,
1140,
18,
803,
18,
4939,
12,
9499,
18,
19485,
63,
20,
5717,
63,
20,
6487,
315,
9489,
67,
8082,
1578,
18,
8767,
7923,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
1886,
863,
461,
4672,
2589,
18,
11241,
18,
2626,
2932,
9511,
30,
738,
87,
848,
486,
506,
1392,
300,
4529,
4418,
2026,
486,
506,
1392,
64,
82,
6,
738,
805,
863,
461,
13,
469,
30,
468,
1297,
1960,
603,
679,
16,
1427,
1308,
316,
291,
848,
3849,
18,
2870,
67,
267,
291,
18,
6923,
12,
1886,
2
] |
self.splitter = wxSplitterWindow(self, -1, style=wxSP_NOBORDER | wxSP_3DSASH | wxSP_FULLSASH) | self.splitter = wxSplitterWindow(self, -1, style=wxSP_NOBORDER | wxSP_3DSASH | wxSP_FULLSASH) use_images = (1 or wxPlatform == '__WXMSW__') if use_images: (stackImgIdx, breaksImgIdx, watchesImgIdx, localsImgIdx, globalsImgIdx) = range(5) else: stackImgIdx=breaksImgIdx=watchesImgIdx=localsImgIdx=globalsImgIdx=-1 | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4858,
16,
1544,
33,
7036,
16,
11735,
67,
3188,
33,
21,
4672,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
4858,
16,
300,
21,
16,
296,
24113,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
self.msgText("findNextBlock Found " + self.giveBlockName(blockTest) + "\n") | if (self.debugLevel >= LowDebug) : self.msgText("findNextBlock Found " + self.giveBlockName(blockTest) + "\n") | def findNextBlock(self, cB) : # look down list of getToBlockDirection for match # use 'suggestion' flag if current block doesn't have direction nB = None dirFlag = cB.getDirection() if (dirFlag == jmri.Path.NONE) : if (self.blockDirection.isSelected() == True) : dirFlag = dirFlag or jmri.Path.EAST else : dirFlag = dirFlag or jmri.Path.WEST pathList = cB.getPaths() #self.msgText("searching " + len(pathList).toString() + " paths from " + self.giveBlockName(cB) + "\n") for p in pathList : blockTest = p.getBlock() if (p.checkPathSet()) : dirTest = p.getToBlockDirection() #self.msgText("findNextBlock path traversable: " + self.giveBlockName(cB) + " to " + self.giveBlockName(blockTest) + " dirTest: " + jmri.Path.decodeDirection(dirTest) + ":" + dirTest.toString() + " dirFlag: " + jmri.Path.decodeDirection(dirFlag) + ":" + dirFlag.toString() + " result: " + (dirTest & dirFlag).toString() + "\n") if (dirTest & dirFlag != 0) : nB = blockTest self.msgText("findNextBlock Found " + self.giveBlockName(blockTest) + "\n") #break #else : #self.msgText("findNextBlock path not traversable: " + self.giveBlockName(cB) + " to " + self.giveBlockName(blockTest) + "\n") return nB | 637586c522dc4614e3aa55f7046de00d6eaa8ae0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1660/637586c522dc4614e3aa55f7046de00d6eaa8ae0/RobotThrottle2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19429,
1768,
12,
2890,
16,
276,
38,
13,
294,
468,
2324,
2588,
666,
434,
19478,
1768,
8212,
364,
845,
468,
999,
296,
87,
21166,
11,
2982,
309,
783,
1203,
3302,
1404,
1240,
4068,
290,
38,
273,
599,
1577,
4678,
273,
276,
38,
18,
588,
8212,
1435,
309,
261,
1214,
4678,
422,
28296,
566,
18,
743,
18,
9826,
13,
294,
309,
261,
2890,
18,
2629,
8212,
18,
291,
7416,
1435,
422,
1053,
13,
294,
1577,
4678,
273,
1577,
4678,
578,
28296,
566,
18,
743,
18,
41,
9053,
469,
294,
1577,
4678,
273,
1577,
4678,
578,
28296,
566,
18,
743,
18,
31285,
589,
682,
273,
276,
38,
18,
588,
4466,
1435,
468,
2890,
18,
3576,
1528,
2932,
3072,
310,
315,
397,
562,
12,
803,
682,
2934,
10492,
1435,
397,
315,
2953,
628,
315,
397,
365,
18,
75,
688,
1768,
461,
12,
71,
38,
13,
397,
1548,
82,
7923,
364,
293,
316,
589,
682,
294,
1203,
4709,
273,
293,
18,
588,
1768,
1435,
309,
261,
84,
18,
1893,
743,
694,
10756,
294,
1577,
4709,
273,
293,
18,
588,
774,
1768,
8212,
1435,
468,
2890,
18,
3576,
1528,
2932,
4720,
2134,
1768,
589,
10704,
429,
30,
315,
225,
397,
365,
18,
75,
688,
1768,
461,
12,
71,
38,
13,
397,
315,
358,
315,
397,
365,
18,
75,
688,
1768,
461,
12,
2629,
4709,
13,
397,
315,
1577,
4709,
30,
315,
397,
28296,
566,
18,
743,
18,
3922,
8212,
12,
1214,
4709,
13,
397,
6153,
397,
1577,
4709,
18,
10492,
1435,
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,
19429,
1768,
12,
2890,
16,
276,
38,
13,
294,
468,
2324,
2588,
666,
434,
19478,
1768,
8212,
364,
845,
468,
999,
296,
87,
21166,
11,
2982,
309,
783,
1203,
3302,
1404,
1240,
4068,
290,
38,
273,
599,
1577,
4678,
273,
276,
38,
18,
588,
8212,
1435,
309,
261,
1214,
4678,
422,
28296,
566,
18,
743,
18,
9826,
13,
294,
309,
261,
2890,
18,
2629,
8212,
18,
291,
7416,
1435,
422,
1053,
13,
294,
1577,
4678,
273,
1577,
4678,
578,
28296,
566,
18,
743,
18,
41,
9053,
469,
294,
1577,
4678,
273,
1577,
4678,
578,
28296,
566,
18,
743,
18,
31285,
589,
682,
273,
276,
38,
18,
588,
4466,
1435,
468,
2890,
18,
3576,
1528,
2932,
3072,
310,
315,
2
] |
dist = lamp.getDist() | def export_lights(lmp): # only lamps type 0, 1 and 4 supported at the moment # lamp types are: 0 - Lamp, 1 - Sun, 2 - Spot, 3 - Hemi, 4 - Area # Spots are replaced by directional (cylinrical) lights: adjust dist as close as possible to the ground receiving the # cone of light if you want Radius as close as possible lamp = lmp.getData() print "o exporting lamps" if lamp.type == 0: print " o exporting lamp "+lmp.name+"..." # get the rgb component for the lamp red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] power = lamp.energy * LAMPPOWER.val # get the location of the lamp objmatrix = lmp.matrix lampV = Mathutils.Vector([0, 0, 0, 1]) lampV = lampV * objmatrix FILE.write("\n\nlight {\n") FILE.write("\ttype point\n") FILE.write("\tcolor { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("\tpower %s\n" % (power)) FILE.write("\tp %s %s %s\n" % (lampV[0], lampV[1], lampV[2])) FILE.write("}") elif lamp.type == 1: if IMP_SUN.val == 1: print " o exporting sun-light "+lmp.name+"..." invmatrix = Mathutils.Matrix(lmp.getInverseMatrix()) FILE.write("\nlight {\n") FILE.write("\ttype sunsky\n") FILE.write("\tup 0 0 1\n") FILE.write("\teast 0 1 0\n") FILE.write("\tsundir %f %f %f\n" % (invmatrix[0][2], invmatrix[1][2], invmatrix[2][2])) FILE.write("\tturbidity %s\n" % SUN_TURB.val) FILE.write("\tsamples %s\n" % SUN_SAMPLES.val) FILE.write("}") else: print " o exporting lamp "+lmp.name+"..." # get the rgb component for the lamp red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] power = lamp.energy * LAMPPOWER.val # get the location of the lamp objmatrix = lmp.matrix lampV = Mathutils.Vector([0, 0, 0, 1]) lampV = lampV * objmatrix FILE.write("\n\nlight {\n") FILE.write("\ttype point\n") FILE.write("\tcolor { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("\tpower %s\n" % (power)) FILE.write("\tp %s %s %s\n" % (lampV[0], lampV[1], lampV[2])) FILE.write("}") elif lamp.type == 4: print " o exporting area-light "+lmp.name+"..." objmatrix = lmp.matrix xsize = lamp.areaSizeX * 0.5 if lamp.areaSizeY: # If rectangular area: print "o exporting rectangular area-light "+lmp.name+"..." ysize = lamp.areaSizeY * 0.5 else: # Else, square area: print "o exporting square area-light "+lmp.name+"..." ysize = xsize lampV0 = Mathutils.Vector([-xsize, ysize, 0, 1]) lampV1 = Mathutils.Vector([ xsize, ysize, 0, 1]) lampV2 = Mathutils.Vector([ xsize, -ysize, 0, 1]) lampV3 = Mathutils.Vector([-xsize, -ysize, 0, 1]) lampV0 = lampV0 * objmatrix lampV1 = lampV1 * objmatrix lampV2 = lampV2 * objmatrix lampV3 = lampV3 * objmatrix red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] radiance = lamp.energy * MESHLIGHTPOWER.val FILE.write("\n\nlight {\n") FILE.write("\ttype meshlight\n") FILE.write("\tname \"%s\"\n" % (lmp.name)) FILE.write("\temit { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("\tradiance %s\n" % (radiance)) FILE.write("\tsamples %s\n" % DSAMPLES.val) FILE.write("\tpoints 4\n") FILE.write("\t\t%s %s %s\n" % (lampV0[0], lampV0[1], lampV0[2])) FILE.write("\t\t%s %s %s\n" % (lampV1[0], lampV1[1], lampV1[2])) FILE.write("\t\t%s %s %s\n" % (lampV2[0], lampV2[1], lampV2[2])) FILE.write("\t\t%s %s %s\n" % (lampV3[0], lampV3[1], lampV3[2])) FILE.write("\ttriangles 2\n") FILE.write("\t\t0 1 2\n") FILE.write("\t\t0 2 3\n") FILE.write("}") elif lamp.type == 2: print " o exporting spotlight "+lmp.name+"..." objmatrix = lmp.matrix targetV = Mathutils.Vector([0, 0, -1, 1]) targetV = targetV * objmatrix lampV = Mathutils.Vector([0, 0, 0, 1]) lampV = lampV * objmatrix angle = lamp.getSpotSize()*pi/360 dist = lamp.getDist() radius = dist/cos(angle)*sin(angle) red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] radiance = lamp.energy * LAMPPOWER.val FILE.write("\n\nlight {\n") FILE.write("\ttype directional\n") FILE.write("\tsource %s %s %s\n" % (lampV[0], lampV[1], lampV[2])) FILE.write("\ttarget %s %s %s\n" % (targetV[0], targetV[1], targetV[2])) FILE.write("\tradius %s\n" % (radius)) FILE.write("\temit { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("}") elif lamp.type == 3: print " o exporting spherical light "+lmp.name+"..." objmatrix = lmp.matrix lampV = Mathutils.Vector([0, 0, 0, 1]) lampV = lampV * objmatrix dist = lamp.getDist() red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] power = lamp.energy * LAMPPOWER.val FILE.write("\n\nlight {\n") FILE.write("\ttype spherical\n") FILE.write("\tcolor { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("\tradiance %s\n" % (power)) FILE.write("\tcenter %s %s %s\n" % (lampV[0], lampV[1], lampV[2])) FILE.write("\tradius %s\n" % (dist)) FILE.write("\tsamples %s\n" % DSAMPLES.val) FILE.write("}") else: print "Unsupported type lamp detected" if CONVLAMP.val == 1: print " o exporting lamp "+lmp.name+"..." # get the rgb component for the lamp red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] power = lamp.energy * LAMPPOWER.val # get the location of the lamp objmatrix = lmp.matrix lampV = Mathutils.Vector([0, 0, 0, 1]) lampV = lampV * objmatrix FILE.write("\n\nlight {\n") FILE.write("\ttype point\n") FILE.write("\tcolor { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("\tpower %s\n" % (power)) FILE.write("\tp %s %s %s\n" % (lampV[0], lampV[1], lampV[2])) FILE.write("}") | 223dfc1c7b8557f033095eceba9a38be84b7749e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12400/223dfc1c7b8557f033095eceba9a38be84b7749e/sunflow_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
5099,
87,
12,
80,
1291,
4672,
468,
1338,
328,
25508,
618,
374,
16,
404,
471,
1059,
3260,
622,
326,
10382,
468,
328,
931,
1953,
854,
30,
374,
300,
511,
931,
16,
404,
300,
31608,
16,
576,
300,
26523,
16,
890,
300,
670,
351,
77,
16,
1059,
300,
16668,
468,
5878,
6968,
854,
8089,
635,
4068,
287,
261,
2431,
7511,
1512,
287,
13,
26269,
30,
5765,
2411,
487,
1746,
487,
3323,
358,
326,
19209,
15847,
326,
468,
356,
73,
434,
9052,
309,
1846,
2545,
16378,
8384,
487,
1746,
487,
3323,
328,
931,
273,
328,
1291,
18,
588,
751,
1435,
1172,
315,
83,
3359,
310,
328,
25508,
6,
225,
309,
328,
931,
18,
723,
422,
374,
30,
1172,
315,
225,
320,
3359,
310,
328,
931,
13773,
80,
1291,
18,
529,
9078,
7070,
468,
336,
326,
6917,
1794,
364,
326,
328,
931,
1755,
282,
273,
328,
931,
18,
1293,
63,
20,
65,
10004,
273,
328,
931,
18,
1293,
63,
21,
65,
8024,
225,
273,
328,
931,
18,
1293,
63,
22,
65,
7212,
273,
328,
931,
18,
15358,
380,
511,
8900,
2419,
18839,
18,
1125,
225,
468,
336,
326,
2117,
434,
326,
328,
931,
1081,
5667,
273,
328,
1291,
18,
5667,
328,
931,
58,
273,
2361,
5471,
18,
5018,
3816,
20,
16,
374,
16,
374,
16,
404,
5717,
328,
931,
58,
273,
328,
931,
58,
380,
1081,
5667,
225,
7527,
18,
2626,
31458,
82,
64,
82,
5099,
18890,
82,
7923,
7527,
18,
2626,
31458,
88,
723,
1634,
64,
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,
3359,
67,
5099,
87,
12,
80,
1291,
4672,
468,
1338,
328,
25508,
618,
374,
16,
404,
471,
1059,
3260,
622,
326,
10382,
468,
328,
931,
1953,
854,
30,
374,
300,
511,
931,
16,
404,
300,
31608,
16,
576,
300,
26523,
16,
890,
300,
670,
351,
77,
16,
1059,
300,
16668,
468,
5878,
6968,
854,
8089,
635,
4068,
287,
261,
2431,
7511,
1512,
287,
13,
26269,
30,
5765,
2411,
487,
1746,
487,
3323,
358,
326,
19209,
15847,
326,
468,
356,
73,
434,
9052,
309,
1846,
2545,
16378,
8384,
487,
1746,
487,
3323,
328,
931,
273,
328,
1291,
18,
588,
751,
1435,
1172,
315,
83,
3359,
310,
328,
25508,
6,
225,
309,
328,
931,
18,
723,
422,
374,
30,
1172,
2
] |
|
print repr(data) d = self.sendGlobalRequest('tcpip-forward', data, 1) | d = self.sendGlobalRequest('tcpip-forward', data) | def serviceStarted(self): if not options['notty']: self.openChannel(SSHSession()) if options.localForwards: for localPort, hostport in options.localForwards: reactor.listenTCP(localPort, forwarding.SSHLocalForwardingFactory(self, hostport)) if options.remoteForwards: for remotePort, hostport in options.remoteForwards: log.msg('asking for remote forwarding for %s:%s' % (remotePort, hostport)) data = forwarding.packGlobal_tcpip_forward( ('0.0.0.0', remotePort)) print repr(data) d = self.sendGlobalRequest('tcpip-forward', data, 1) self.remoteForwards[remotePort] = hostport d.addCallback(self.reply) | 10190f1e6ff609457b68d8105e9a08ea93d3daf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/10190f1e6ff609457b68d8105e9a08ea93d3daf6/conch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1156,
9217,
12,
2890,
4672,
309,
486,
702,
3292,
902,
4098,
3546,
30,
365,
18,
3190,
2909,
12,
12559,
2157,
10756,
309,
702,
18,
3729,
1290,
6397,
30,
364,
1191,
2617,
16,
27143,
316,
702,
18,
3729,
1290,
6397,
30,
19178,
18,
18085,
13891,
12,
3729,
2617,
16,
20635,
18,
12559,
2042,
21487,
1733,
12,
2890,
16,
27143,
3719,
309,
702,
18,
7222,
1290,
6397,
30,
364,
2632,
2617,
16,
27143,
316,
702,
18,
7222,
1290,
6397,
30,
613,
18,
3576,
2668,
835,
310,
364,
2632,
20635,
364,
738,
87,
5319,
87,
11,
738,
261,
7222,
2617,
16,
27143,
3719,
501,
273,
20635,
18,
2920,
5160,
67,
14832,
625,
67,
11565,
12,
7707,
20,
18,
20,
18,
20,
18,
20,
2187,
2632,
2617,
3719,
302,
273,
365,
18,
4661,
5160,
691,
2668,
14832,
625,
17,
11565,
2187,
501,
13,
365,
18,
7222,
1290,
6397,
63,
7222,
2617,
65,
273,
27143,
302,
18,
1289,
2428,
12,
2890,
18,
10629,
13,
2,
0,
0,
0,
0,
0,
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585,
326,
22398,
316,
326,
981,
30,
1652,
1156,
9217,
12,
2890,
4672,
309,
486,
702,
3292,
902,
4098,
3546,
30,
365,
18,
3190,
2909,
12,
12559,
2157,
10756,
309,
702,
18,
3729,
1290,
6397,
30,
364,
1191,
2617,
16,
27143,
316,
702,
18,
3729,
1290,
6397,
30,
19178,
18,
18085,
13891,
12,
3729,
2617,
16,
20635,
18,
12559,
2042,
21487,
1733,
12,
2890,
16,
27143,
3719,
309,
702,
18,
7222,
1290,
6397,
30,
364,
2632,
2617,
16,
27143,
316,
702,
18,
7222,
1290,
6397,
30,
613,
18,
3576,
2668,
835,
310,
364,
2632,
20635,
364,
738,
87,
5319,
87,
11,
738,
261,
7222,
2617,
16,
27143,
3719,
501,
273,
20635,
18,
2920,
5160,
67,
14832,
625,
67,
11565,
12,
7707,
20,
18,
20,
18,
20,
2
] |
save = self.definingMacro self.definingMacro = macroName | if not self.metal: self.interpret(macro) return self.pushMacro("define-macro", macroName, None) | def do_defineMacro(self, macroName, macro): save = self.definingMacro self.definingMacro = macroName self.interpret(macro) self.definingMacro = save | 16e9bae32a04e1cc90bd99d273eafe765aba3b03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/16e9bae32a04e1cc90bd99d273eafe765aba3b03/TALInterpreter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
11255,
17392,
12,
2890,
16,
11522,
461,
16,
11522,
4672,
309,
486,
365,
18,
10578,
287,
30,
365,
18,
24713,
12,
26448,
13,
327,
365,
18,
6206,
17392,
2932,
11255,
17,
26448,
3113,
11522,
461,
16,
599,
13,
365,
18,
24713,
12,
26448,
13,
365,
18,
5649,
310,
17392,
273,
1923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
11255,
17392,
12,
2890,
16,
11522,
461,
16,
11522,
4672,
309,
486,
365,
18,
10578,
287,
30,
365,
18,
24713,
12,
26448,
13,
327,
365,
18,
6206,
17392,
2932,
11255,
17,
26448,
3113,
11522,
461,
16,
599,
13,
365,
18,
24713,
12,
26448,
13,
365,
18,
5649,
310,
17392,
273,
1923,
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
] |
elif value.isdigit(): if value.startswith("0"): | elif value.isdigit() or value.startswith("-") and value[1:].isdigit(): if value.startswith("0") or value.startswith("-0"): | def ParseCPJFile(filepath): networks = [] # Read file text cpj_file = open(filepath,'r').read() sections = ExtractSections(cpj_file) # Parse assignments for each section for section_name, assignments in sections: # Verify that section name is TOPOLOGY if section_name.upper() in "TOPOLOGY": # Reset values for topology topology = {"Name" : "", "Nodes" : {}} for assignment in assignments: # Escape any comment if assignment.startswith(";"): pass # Verify that line is a valid assignment elif assignment.find('=') > 0: # Split assignment into the two values keyname and value keyname, value = assignment.split("=", 1) # keyname must be immediately followed by the "=" sign, so we # verify that there is no whitespace into keyname if keyname.isalnum(): # value can be preceded and followed by whitespaces, so we escape them value = value.strip() # First case, value starts with "0x", then it's an hexadecimal value if value.startswith("0x"): try: computed_value = int(value, 16) except: raise SyntaxError, "\"%s\" is not a valid value for attribute \"%s\" of section \"[%s]\""%(value, keyname, section_name) elif value.isdigit(): # Second case, value is a number and starts with "0", then it's an octal value if value.startswith("0"): computed_value = int(value, 8) # Third case, value is a number and don't start with "0", then it's a decimal value else: computed_value = int(value) # In any other case, we keep string value else: computed_value = value # Search if the section name match any cpj expression nodepresent_result = nodepresent_model.match(keyname.upper()) nodename_result = nodename_model.match(keyname.upper()) nodedcfname_result = nodedcfname_model.match(keyname.upper()) if keyname.upper() == "NETNAME": if not is_string(computed_value): raise SyntaxError, "Invalid value \"%s\" for keyname \"%s\" of section \"[%s]\""%(value, keyname, section_name) topology["Name"] = computed_value elif keyname.upper() == "NODES": if not is_integer(computed_value): raise SyntaxError, "Invalid value \"%s\" for keyname \"%s\" of section \"[%s]\""%(value, keyname, section_name) topology["Number"] = computed_value elif keyname.upper() == "EDSBASENAME": if not is_string(computed_value): raise SyntaxError, "Invalid value \"%s\" for keyname \"%s\" of section \"[%s]\""%(value, keyname, section_name) topology["Path"] = computed_value elif nodepresent_result: if not is_boolean(computed_value): raise SyntaxError, "Invalid value \"%s\" for keyname \"%s\" of section \"[%s]\""%(value, keyname, section_name) nodeid = int(nodepresent_result.groups()[0]) if nodeid not in topology["Nodes"].keys(): topology["Nodes"][nodeid] = {} topology["Nodes"][nodeid]["Present"] = computed_value elif nodename_result: if not is_string(value): raise SyntaxError, "Invalid value \"%s\" for keyname \"%s\" of section \"[%s]\""%(value, keyname, section_name) nodeid = int(nodename_result.groups()[0]) if nodeid not in topology["Nodes"].keys(): topology["Nodes"][nodeid] = {} topology["Nodes"][nodeid]["Name"] = computed_value elif nodedcfname_result: if not is_string(computed_value): raise SyntaxError, "Invalid value \"%s\" for keyname \"%s\" of section \"[%s]\""%(value, keyname, section_name) nodeid = int(nodedcfname_result.groups()[0]) if nodeid not in topology["Nodes"].keys(): topology["Nodes"][nodeid] = {} topology["Nodes"][nodeid]["DCFName"] = computed_value else: raise SyntaxError, "Keyname \"%s\" not recognised for section \"[%s]\""%(keyname, section_name) # All lines that are not empty and are neither a comment neither not a valid assignment elif assignment.strip() != "": raise SyntaxError, "\"%s\" is not a valid CPJ line"%assignment.strip() if "Number" not in topology.keys(): raise SyntaxError, "\"Nodes\" keyname in \"[%s]\" section is missing"%section_name if topology["Number"] != len(topology["Nodes"]): raise SyntaxError, "\"Nodes\" value not corresponding to number of nodes defined" for nodeid, node in topology["Nodes"].items(): if "Present" not in node.keys(): raise SyntaxError, "\"Node%dPresent\" keyname in \"[%s]\" section is missing"%(nodeid, section_name) networks.append(topology) # In other case, there is a syntax problem into CPJ file else: raise SyntaxError, "Section \"[%s]\" is unrecognized"%section_name return networks | 377e3b02a272798306727eecf174777a489d3f3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/116/377e3b02a272798306727eecf174777a489d3f3d/eds_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
4258,
46,
812,
12,
10561,
4672,
13884,
273,
5378,
468,
2720,
585,
977,
3283,
78,
67,
768,
273,
1696,
12,
10561,
11189,
86,
16063,
896,
1435,
7178,
273,
8152,
15965,
12,
4057,
78,
67,
768,
13,
468,
2884,
13610,
364,
1517,
2442,
364,
2442,
67,
529,
16,
13610,
316,
7178,
30,
225,
468,
8553,
716,
2442,
508,
353,
8493,
2419,
4842,
61,
309,
2442,
67,
529,
18,
5797,
1435,
316,
315,
4296,
2419,
4842,
61,
6877,
225,
468,
7151,
924,
364,
9442,
9442,
273,
12528,
461,
6,
294,
23453,
315,
3205,
6,
294,
2618,
97,
225,
364,
6661,
316,
13610,
30,
468,
18025,
1281,
2879,
309,
6661,
18,
17514,
1918,
2932,
4868,
4672,
1342,
468,
8553,
716,
980,
353,
279,
923,
6661,
1327,
6661,
18,
4720,
2668,
2218,
13,
405,
374,
30,
468,
5385,
6661,
1368,
326,
2795,
924,
27567,
471,
460,
27567,
16,
460,
273,
6661,
18,
4939,
2932,
1546,
16,
404,
13,
225,
468,
27567,
1297,
506,
7636,
10860,
635,
326,
9671,
1573,
16,
1427,
732,
468,
3929,
716,
1915,
353,
1158,
7983,
1368,
27567,
309,
27567,
18,
291,
287,
2107,
13332,
468,
460,
848,
506,
29953,
471,
10860,
635,
28186,
16,
1427,
732,
4114,
2182,
460,
273,
460,
18,
6406,
1435,
225,
468,
5783,
648,
16,
460,
2542,
598,
315,
20,
92,
3113,
1508,
518,
1807,
392,
20070,
460,
309,
460,
18,
17514,
1918,
2932,
20,
92,
6,
4672,
775,
30,
8470,
67,
1132,
273,
509,
12,
1132,
16,
2872,
13,
1335,
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,
2884,
4258,
46,
812,
12,
10561,
4672,
13884,
273,
5378,
468,
2720,
585,
977,
3283,
78,
67,
768,
273,
1696,
12,
10561,
11189,
86,
16063,
896,
1435,
7178,
273,
8152,
15965,
12,
4057,
78,
67,
768,
13,
468,
2884,
13610,
364,
1517,
2442,
364,
2442,
67,
529,
16,
13610,
316,
7178,
30,
225,
468,
8553,
716,
2442,
508,
353,
8493,
2419,
4842,
61,
309,
2442,
67,
529,
18,
5797,
1435,
316,
315,
4296,
2419,
4842,
61,
6877,
225,
468,
7151,
924,
364,
9442,
9442,
273,
12528,
461,
6,
294,
23453,
315,
3205,
6,
294,
2618,
97,
225,
364,
6661,
316,
13610,
30,
468,
18025,
1281,
2879,
309,
6661,
18,
17514,
1918,
2932,
4868,
4672,
1342,
468,
8553,
716,
2
] |
data_rows=s.getvalue(), | data_rows=''.join(s), | def make_table(self,fromlines,tolines,fromdesc='',todesc='',context=False, numlines=5): """Returns HTML table of side by side comparison with change highlights | 37a93df12625acb7635b8d1d2f949000f6eba0b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/37a93df12625acb7635b8d1d2f949000f6eba0b0/difflib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2121,
12,
2890,
16,
2080,
3548,
16,
3490,
1465,
16,
2080,
5569,
2218,
2187,
88,
369,
742,
2218,
2187,
2472,
33,
8381,
16,
818,
3548,
33,
25,
4672,
3536,
1356,
3982,
1014,
434,
4889,
635,
4889,
5826,
598,
2549,
8839,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2121,
12,
2890,
16,
2080,
3548,
16,
3490,
1465,
16,
2080,
5569,
2218,
2187,
88,
369,
742,
2218,
2187,
2472,
33,
8381,
16,
818,
3548,
33,
25,
4672,
3536,
1356,
3982,
1014,
434,
4889,
635,
4889,
5826,
598,
2549,
8839,
87,
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
] |
msg.setId(self._generate_id()) | newid = self._generate_id() if options["globals", "verbose"]: print "[imapfilter] saving %s with new id:" % msg.uid, newid msg.setId(newid) | def __getitem__(self, key): """Return message matching the given *uid*. | 706ff615bb6d13331fedc0849e94d029ad4e9af5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6126/706ff615bb6d13331fedc0849e94d029ad4e9af5/sb_imapfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
3536,
990,
883,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
3536,
990,
883,
3607,
326,
864,
380,
1911,
11146,
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
] |
self.windows.get_widget('goMenuItem').show() self.windows.get_widget('bookmarksMenuItem').show() | self.windows.get_widget('go').show() self.windows.get_widget('bookmarks').show() self.windows.get_widget('backButton').show() | def __init__(self, view, showMethodTree = False, showObjectTree = False, showMethodInteraction = False): self.view = view self.session = view.session self.showMethodTree = showMethodTree self.showObjectTree = showObjectTree self.showMethodInteraction = showMethodInteraction self.windows = gtk.glade.XML(os.path.join(os.path.split(gnomoire.__file__)[0], "_gnomoire", "gnomoire.glade")) | f6d209fd3fc3a67ecfe53a6deb3942f1fe07afae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/f6d209fd3fc3a67ecfe53a6deb3942f1fe07afae/gnomoire.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1476,
16,
2405,
1305,
2471,
273,
1083,
16,
2405,
921,
2471,
273,
1083,
16,
2405,
1305,
17419,
273,
1083,
4672,
365,
18,
1945,
273,
1476,
365,
18,
3184,
273,
1476,
18,
3184,
365,
18,
4500,
1305,
2471,
273,
2405,
1305,
2471,
365,
18,
4500,
921,
2471,
273,
2405,
921,
2471,
365,
18,
4500,
1305,
17419,
273,
2405,
1305,
17419,
365,
18,
13226,
273,
22718,
18,
7043,
2486,
18,
4201,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
4939,
12,
1600,
362,
19847,
16186,
768,
972,
25146,
20,
6487,
4192,
1600,
362,
19847,
3113,
315,
1600,
362,
19847,
18,
7043,
2486,
6,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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273,
1476,
18,
3184,
365,
18,
4500,
1305,
2471,
273,
2405,
1305,
2471,
365,
18,
4500,
921,
2471,
273,
2405,
921,
2471,
365,
18,
4500,
1305,
17419,
273,
2405,
1305,
17419,
365,
18,
13226,
273,
22718,
18,
7043,
2486,
18,
4201,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
4939,
12,
1600,
362,
19847,
16186,
768,
972,
25146,
20,
6487,
4192,
1600,
362,
19847,
3113,
315,
1600,
362,
19847,
18,
7043,
2486,
6,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise | raise ValueError, "Name: Can't be empty" | def __validate_name(self): """Validate the name value from textbox""" try: name = self._textctrl_name.GetValue().strip() if len(name) == 0: raise except: display_error_message("Name: Can't be empty") set_focus_on_textctrl(self._textctrl_name) raise return name | 01f62a12ca8547e7a54951a0e67c95aa57328a81 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5252/01f62a12ca8547e7a54951a0e67c95aa57328a81/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5662,
67,
529,
12,
2890,
4672,
3536,
4270,
326,
508,
460,
628,
977,
2147,
8395,
775,
30,
508,
273,
365,
6315,
955,
16277,
67,
529,
18,
967,
620,
7675,
6406,
1435,
309,
562,
12,
529,
13,
422,
374,
30,
1002,
2068,
16,
315,
461,
30,
4480,
1404,
506,
1008,
6,
1335,
30,
2562,
67,
1636,
67,
2150,
2932,
461,
30,
4480,
1404,
506,
1008,
7923,
444,
67,
13923,
67,
265,
67,
955,
16277,
12,
2890,
6315,
955,
16277,
67,
529,
13,
1002,
2068,
16,
315,
461,
30,
4480,
1404,
506,
1008,
6,
327,
508,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5662,
67,
529,
12,
2890,
4672,
3536,
4270,
326,
508,
460,
628,
977,
2147,
8395,
775,
30,
508,
273,
365,
6315,
955,
16277,
67,
529,
18,
967,
620,
7675,
6406,
1435,
309,
562,
12,
529,
13,
422,
374,
30,
1002,
2068,
16,
315,
461,
30,
4480,
1404,
506,
1008,
6,
1335,
30,
2562,
67,
1636,
67,
2150,
2932,
461,
30,
4480,
1404,
506,
1008,
7923,
444,
67,
13923,
67,
265,
67,
955,
16277,
12,
2890,
6315,
955,
16277,
67,
529,
13,
1002,
2068,
16,
315,
461,
30,
4480,
1404,
506,
1008,
6,
327,
508,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if account and account.tax_ids: for tax in self.pool.get('account.tax').compute_inv(cr,uid,[account.tax_ids[0]],total,1.00): total -= tax['amount'] data['account_tax_id'] = account.tax_ids[0].id | def _default_get(self, cr, uid, fields, context={}): # Compute simple values data = super(account_move_line, self).default_get(cr, uid, fields, context) | 5bf1b8d2855666ea607f32dea4df15d6a1ea462e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/5bf1b8d2855666ea607f32dea4df15d6a1ea462e/account_move_line.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1886,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
16,
819,
12938,
4672,
468,
8155,
4143,
924,
501,
273,
2240,
12,
4631,
67,
8501,
67,
1369,
16,
365,
2934,
1886,
67,
588,
12,
3353,
16,
4555,
16,
1466,
16,
819,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1886,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
16,
819,
12938,
4672,
468,
8155,
4143,
924,
501,
273,
2240,
12,
4631,
67,
8501,
67,
1369,
16,
365,
2934,
1886,
67,
588,
12,
3353,
16,
4555,
16,
1466,
16,
819,
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
] |
|
self.log("Error in HTTP stream handler") print traceback.format_exc() self.log("Closing due to error") self.close() | if sys.exc_info()[0] is SystemExit: self.log("Caught SystemExit, propagating") raise else: self.log("Error in HTTP stream handler") print traceback.format_exc() self.log("Closing due to error") self.close() | def handle_error(self): self.log("Error in HTTP stream handler") print traceback.format_exc() self.log("Closing due to error") self.close() | e43c0c6116f9131646b5df0aa1ec03d6478ef9cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/119/e43c0c6116f9131646b5df0aa1ec03d6478ef9cc/https.py |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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1636,
12,
2890,
4672,
365,
18,
1330,
2932,
668,
316,
2239,
1407,
1838,
7923,
1172,
10820,
18,
2139,
67,
10075,
1435,
365,
18,
1330,
2932,
15745,
6541,
358,
555,
7923,
365,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
num_updates = updates+obsoletes self.emit(num_updates) def doShutdown(self): | if not self.opts.do_update: num_updates = updates+obsoletes self.emitAvailable(num_updates) self.closeRpmDB() | def updatesCheck(self): updates = len(self.up.getUpdatesList()) obsoletes = len(self.up.getObsoletesTuples()) | e2d410c6d27e539632284c34aafe0b0bf67c6b04 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/e2d410c6d27e539632284c34aafe0b0bf67c6b04/yum-updatesd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4533,
1564,
12,
2890,
4672,
4533,
273,
562,
12,
2890,
18,
416,
18,
588,
5121,
682,
10756,
7160,
355,
278,
281,
273,
562,
12,
2890,
18,
416,
18,
588,
27637,
355,
278,
281,
25813,
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,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4533,
1564,
12,
2890,
4672,
4533,
273,
562,
12,
2890,
18,
416,
18,
588,
5121,
682,
10756,
7160,
355,
278,
281,
273,
562,
12,
2890,
18,
416,
18,
588,
27637,
355,
278,
281,
25813,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
PARAMETER["false_easting",2000000.063000002], PARAMETER["false_northing",0]]""" | PARAMETER["false_easting",2000000], PARAMETER["false_northing",0], AUTHORITY["EPSG","32049"], AXIS["X",EAST], AXIS["Y",NORTH]]""" | def genbin_1(): tst = gdaltest.GDALTest( 'GenBin', 'tm4628_96.bil', 1, 5738, 0, 0, 500, 1 ) prj = """PROJCS["NAD27 / Washington South", GEOGCS["NAD27", DATUM["North_American_Datum_1927", SPHEROID["Clarke 1866",6378206.4,294.9786982139103, AUTHORITY["EPSG","7008"]], AUTHORITY["EPSG","6267"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4267"]], UNIT["feet",0.3048006], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["standard_parallel_1",45.83333333333334], PARAMETER["standard_parallel_2",47.33333333333334], PARAMETER["latitude_of_origin",45.33333333333334], PARAMETER["central_meridian",-120.5], PARAMETER["false_easting",2000000.063000002], PARAMETER["false_northing",0]]""" gt = (1181700.9894981384, 82.021003723042099, 0.0, 596254.01050186157, 0.0, -82.021003723045894 ) return tst.testOpen( check_prj = prj, check_gt = gt ) | f811069d718ab76034cddbf47c695f10cc3d9151 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10289/f811069d718ab76034cddbf47c695f10cc3d9151/genbin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
4757,
67,
21,
13332,
225,
268,
334,
273,
15551,
2390,
395,
18,
27338,
1013,
4709,
12,
296,
7642,
9913,
2187,
296,
16925,
8749,
6030,
67,
10525,
18,
70,
330,
2187,
404,
16,
15981,
7414,
16,
374,
16,
374,
16,
6604,
16,
404,
262,
225,
27378,
273,
3536,
3373,
46,
4596,
9614,
50,
1880,
5324,
342,
678,
961,
310,
1917,
348,
15347,
3113,
17788,
13369,
4596,
9614,
50,
1880,
5324,
3113,
12364,
2799,
9614,
50,
7825,
67,
9864,
3036,
304,
67,
18268,
67,
3657,
5324,
3113,
11405,
3891,
12945,
9614,
2009,
1313,
73,
404,
5292,
26,
3113,
4449,
8285,
3462,
26,
18,
24,
16,
5540,
24,
18,
10580,
5292,
10689,
22,
24347,
23494,
16,
12790,
14751,
9614,
41,
5857,
43,
15937,
26874,
28,
11929,
6487,
12790,
14751,
9614,
41,
5857,
43,
15937,
26,
5558,
27,
11929,
6487,
10365,
12286,
9614,
21453,
91,
1354,
3113,
20,
16,
12790,
14751,
9614,
41,
5857,
43,
15937,
6675,
1611,
11929,
6487,
28721,
9614,
21361,
3113,
20,
18,
1611,
5608,
25,
1578,
29,
2947,
19818,
24,
1578,
28,
16,
12790,
14751,
9614,
41,
5857,
43,
15937,
29,
22266,
11929,
6487,
12790,
14751,
9614,
41,
5857,
43,
15937,
24,
5558,
27,
11929,
6487,
28721,
9614,
3030,
278,
3113,
20,
18,
23,
3028,
17374,
26,
6487,
4629,
30781,
3106,
9614,
48,
301,
25925,
67,
442,
687,
287,
67,
442,
335,
67,
22,
3118,
6,
6487,
18120,
9614,
10005,
67,
18054,
67,
21,
3113,
7950,
18,
28,
18094,
18094,
18094,
24,
6487,
18120,
9614,
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,
4757,
67,
21,
13332,
225,
268,
334,
273,
15551,
2390,
395,
18,
27338,
1013,
4709,
12,
296,
7642,
9913,
2187,
296,
16925,
8749,
6030,
67,
10525,
18,
70,
330,
2187,
404,
16,
15981,
7414,
16,
374,
16,
374,
16,
6604,
16,
404,
262,
225,
27378,
273,
3536,
3373,
46,
4596,
9614,
50,
1880,
5324,
342,
678,
961,
310,
1917,
348,
15347,
3113,
17788,
13369,
4596,
9614,
50,
1880,
5324,
3113,
12364,
2799,
9614,
50,
7825,
67,
9864,
3036,
304,
67,
18268,
67,
3657,
5324,
3113,
11405,
3891,
12945,
9614,
2009,
1313,
73,
404,
5292,
26,
3113,
4449,
8285,
3462,
26,
18,
24,
16,
5540,
24,
18,
10580,
5292,
10689,
22,
24347,
23494,
16,
12790,
14751,
9614,
41,
2
] |
if package: | if not package: | def testAllCreate(self): package = PackagePages(self.request.rootpage.page_name, self.request) temp = tempfile.NamedTemporaryFile(suffix='.zip') package.collectpackage(self.request.rootpage.getPageList( include_underlay=False, filter=lambda name: not wikiutil.isSystemPage(self.request, name)), temp) if package: py.test.skip("No user created pages in wiki!") assert zipfile.is_zipfile(temp.name) | f2d010b7db5853b392a3165777ef04c4489df09c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/f2d010b7db5853b392a3165777ef04c4489df09c/test_packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1595,
1684,
12,
2890,
4672,
2181,
273,
7508,
5716,
12,
2890,
18,
2293,
18,
3085,
2433,
18,
2433,
67,
529,
16,
365,
18,
2293,
13,
1906,
273,
13275,
18,
7604,
23808,
12,
8477,
2218,
18,
4450,
6134,
2181,
18,
14676,
5610,
12,
2890,
18,
2293,
18,
3085,
2433,
18,
588,
1964,
682,
12,
2341,
67,
9341,
5544,
33,
8381,
16,
1034,
33,
14661,
508,
30,
486,
9050,
1367,
18,
291,
3163,
1964,
12,
2890,
18,
2293,
16,
508,
13,
3631,
1906,
13,
309,
486,
2181,
30,
2395,
18,
3813,
18,
7457,
2932,
2279,
729,
2522,
4689,
316,
9050,
4442,
13,
1815,
18823,
18,
291,
67,
4450,
768,
12,
5814,
18,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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808,
12,
8477,
2218,
18,
4450,
6134,
2181,
18,
14676,
5610,
12,
2890,
18,
2293,
18,
3085,
2433,
18,
588,
1964,
682,
12,
2341,
67,
9341,
5544,
33,
8381,
16,
1034,
33,
14661,
508,
30,
486,
9050,
1367,
18,
291,
3163,
1964,
12,
2890,
18,
2293,
16,
508,
13,
3631,
1906,
13,
309,
486,
2181,
30,
2395,
18,
3813,
18,
7457,
2932,
2279,
729,
2522,
4689,
316,
9050,
4442,
13,
1815,
18823,
18,
291,
67,
4450,
768,
12,
5814,
18,
529,
13,
2,
-100,
-100,
-100,
-100,
-100
] |
self.buffer_thickness = max(radii) + self.covalent_bond_tolerance | self.buffer_thickness = 2*max(radii) + self.covalent_bond_tolerance | def __init__(self, structure, geometrical_constraints, **kwds): """ Construct for the given instance of xray.structure subject to the given sequence of constraints. Each constraint instance shall understand: constraint.add_to(self). That method shall perform 2 tasks: | 81046a99c652365c1da7f082871593cd7d3be2c5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/81046a99c652365c1da7f082871593cd7d3be2c5/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3695,
16,
7364,
1591,
287,
67,
11967,
16,
2826,
25577,
4672,
3536,
14291,
364,
326,
864,
791,
434,
619,
435,
18,
7627,
3221,
358,
326,
864,
3102,
434,
6237,
18,
8315,
4954,
791,
24315,
22413,
30,
4954,
18,
1289,
67,
869,
12,
2890,
2934,
12466,
707,
24315,
3073,
576,
4592,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
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,
3695,
16,
7364,
1591,
287,
67,
11967,
16,
2826,
25577,
4672,
3536,
14291,
364,
326,
864,
791,
434,
619,
435,
18,
7627,
3221,
358,
326,
864,
3102,
434,
6237,
18,
8315,
4954,
791,
24315,
22413,
30,
4954,
18,
1289,
67,
869,
12,
2890,
2934,
12466,
707,
24315,
3073,
576,
4592,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log_and_exec(DELETE + " profile --group responsibilisateurs") log_and_exec(DELETE + " group --name=test_users_B -vv") | log_and_exec(DEL + " profile --group responsibilisateurs") log_and_exec(DEL + " group --name=test_users_B -vv") | def test_users(): """Test ADD/MOD/DEL on user accounts in various ways.""" test_message('''starting users related tests.''') log_and_exec(ADD + " group --name test_users_A --description 'groupe créé pour la suite de tests sur les utilisateurs, vous pouvez effacer'") log_and_exec(ADD + " profile --name Utilisagers --group utilisagers --comment 'profil normal créé pour la suite de tests utilisateurs'") log_and_exec(ADD + " profile --name Responsibilisateurs --group responsibilisateurs --groups cdrom,lpadmin,plugdev,audio,video,scanner,fuse --comment 'profil power user créé pour la suite de tests utilisateurs.'") log_and_exec(ADD + " group --name test_users_B --description 'groupe créé pour la suite de tests sur les utilisateurs, vous pouvez effacer'") os.system(GETENT + " groups") os.system(GETENT + " profiles") log_and_exec(ADD + " user --firstname Utiliçateur --lastname Accentué") log_and_exec(ADD + " user --gecos 'Utilisateur Accentué n°2'", True, 12, comment = "can't build a login from only a GECOS field.") log_and_exec(ADD + " user --login utilisager.normal --profile utilisagers") log_and_exec(MODIFY + " user --login=utilisager.normal -v --add-groups test_users_A") log_and_exec(MODIFY + " user --login=utilisager.normal -v --add-groups test_users_B") # should produce nothing, because nothing is wrong. log_and_exec(CHECK + " group -v --name test_users_B") os.system("rm ~utilisager.normal/test_users_A") # all must be OK, extended checks are not enabled, the program will not "see" the missing link. log_and_exec(CHECK + " group -v --name test_users_A") # the link to group_A isn't here ! log_and_exec(CHECK + " group -vv --name test_users_A --extended --auto-no", True, 7, comment = "a user lacks a symlink.") log_and_exec(CHECK + " group -vv --name test_users_A --extended --auto-yes") # the same check, but checking from users.py #os.system("rm ~utilisager.normal/test_users_A") #log_and_exec(CHECK + " user --name utilisager.normal") # not yet implemented #log_and_exec(CHECK + " user --name utilisager.normal --extended --auto-no", True, 7, comment="user lacks symlink") #log_and_exec(CHECK + " user --name utilisager.normal --extended --auto-yes") # checking for Maildir repair capacity... if configuration.users.mailbox_type == configuration.MAIL_TYPE_HOME_MAILDIR: os.system("rm -rf ~utilisager.normal/" + configuration.users.mailbox) log_and_exec(CHECK + " user -v --name utilisager.normal --auto-no", True, 7, comment="user lacks ~/" + configuration.users.mailbox) log_and_exec(CHECK + " user -v --name utilisager.normal --auto-yes") os.system("touch ~utilisager.normal/.dmrc ; chmod 666 ~utilisager.normal/.dmrc") log_and_exec(CHECK + " user -v --name utilisager.normal --auto-yes") os.system("mv -f ~utilisager.normal/test_users_B ~utilisager.normal/mon_groupe_B_préféré") # all must be ok, the link is just renamed... log_and_exec(CHECK + " group -vv --name test_users_B --extended") # FIXME: verify the user can create things in shared group dirs. log_and_exec(MODIFY + " user --login=utilisager.normal --del-groups test_users_A") # should fail log_and_exec(MODIFY + " user --login=utilisager.normal --del-groups test_users_A", comment = "already not a member.") log_and_exec(ADD + " user --login test.responsibilly --profile responsibilisateurs") log_and_exec(MODIFY + " profile --group utilisagers --add-groups cdrom") log_and_exec(MODIFY + " profile --group utilisagers --add-groups cdrom,test_users_B") log_and_exec(MODIFY + " profile --group utilisagers --apply-groups") log_and_exec(MODIFY + " profile --group responsibilisateurs --add-groups plugdev,audio,test_users_A") log_and_exec(MODIFY + " profile --group responsibilisateurs --del-groups audio") log_and_exec(MODIFY + " profile --group responsibilisateurs --apply-groups") # clean the system log_and_exec(DELETE + " user --login utilicateur.accentue") log_and_exec(DELETE + " user --login utilisateur.accentuen2", True, 5, comment = "this user has *NOT* been created previously.") log_and_exec(DELETE + " profile -vvv --group utilisagers --del-users --no-archive") #os.system(GETENT + " users") log_and_exec(DELETE + " profile --group responsibilisateurs", True, 12, comment = "there are still some users in the pri group of this profile.") log_and_exec(DELETE + " group --name=test_users_A --del-users --no-archive") log_and_exec(DELETE + " user --login test.responsibilly") # this should work now that the last user has been deleted log_and_exec(DELETE + " profile --group responsibilisateurs") log_and_exec(DELETE + " group --name=test_users_B -vv") # already deleted before #log_and_exec(DELETE + " user --login utilisager.normal") #log_and_exec(DELETE + " user --login test.responsibilly") test_message('''users related tests finished.''') | 07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/07cb13c975b820cb15074a8378ec89357e5846f4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5577,
13332,
3536,
4709,
11689,
19,
6720,
19,
24733,
603,
729,
9484,
316,
11191,
16226,
12123,
225,
1842,
67,
2150,
2668,
6309,
18526,
3677,
3746,
7434,
1093,
11,
6134,
225,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
1041,
1493,
529,
1842,
67,
5577,
67,
37,
1493,
3384,
296,
75,
15995,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
7434,
5056,
18022,
1709,
24954,
87,
16,
331,
1481,
293,
1395,
537,
94,
20986,
507,
2750,
4970,
13,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
3042,
1493,
529,
3564,
291,
346,
414,
1493,
1655,
1709,
291,
346,
414,
1493,
3469,
296,
685,
7540,
2212,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
7434,
1709,
24954,
87,
4970,
13,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
3042,
1493,
529,
1124,
500,
6044,
330,
24954,
87,
1493,
1655,
7899,
6044,
330,
24954,
87,
1493,
4650,
7976,
520,
16,
9953,
3666,
16,
22045,
5206,
16,
11509,
16,
9115,
16,
26842,
16,
74,
1202,
1493,
3469,
296,
685,
7540,
7212,
729,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
7434,
1709,
24954,
87,
1093,
7923,
225,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
1041,
1493,
529,
1842,
67,
5577,
67,
38,
1493,
3384,
296,
75,
15995,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
7434,
5056,
18022,
1709,
24954,
87,
16,
331,
1481,
293,
1395,
537,
94,
20986,
507,
2750,
4970,
13,
225,
1140,
18,
4299,
12,
3264,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5577,
13332,
3536,
4709,
11689,
19,
6720,
19,
24733,
603,
729,
9484,
316,
11191,
16226,
12123,
225,
1842,
67,
2150,
2668,
6309,
18526,
3677,
3746,
7434,
1093,
11,
6134,
225,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
1041,
1493,
529,
1842,
67,
5577,
67,
37,
1493,
3384,
296,
75,
15995,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
7434,
5056,
18022,
1709,
24954,
87,
16,
331,
1481,
293,
1395,
537,
94,
20986,
507,
2750,
4970,
13,
613,
67,
464,
67,
4177,
12,
8355,
397,
315,
3042,
1493,
529,
3564,
291,
346,
414,
1493,
1655,
1709,
291,
346,
414,
1493,
3469,
296,
685,
7540,
2212,
4422,
132,
107,
132,
107,
24601,
7125,
11371,
443,
2
] |
wizard_run('base_setup.base_setup', { 'profile': idprof[0], 'charts': idl10n[0], }, 'menu') for lang in langs: print '\t\tTesting Language', lang, '...' wizard_run('module.lang.install', {'lang': lang}) | else: idl10n = [-1] wizard_run('base_setup.base_setup', { 'profile': idprof[0], 'charts': idl10n[0], }, 'menu') for lang in langs: print '\t\tTesting Language', lang, '...' wizard_run('module.lang.install', {'lang': lang}) | def wizard_run(wizname, fieldvalues={}, endstate='end'): wiz_id = sock4.create(dbname, uid, 'admin', wizname) state = 'init' datas = {'form':{}} while state!=endstate: res = sock4.execute(dbname, uid, 'admin', wiz_id, datas, state, {}) if 'datas' in res: datas['form'].update( res['datas'] ) if res['type']=='form': for field in res['fields'].keys(): datas['form'][field] = res['fields'][field].get('value', False) state = res['state'][-1][0] datas['form'].update(fieldvalues) elif res['type']=='state': state = res['state'] return True | 2915d47a71d551c55ab089f64cfffefc0393f5f3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/2915d47a71d551c55ab089f64cfffefc0393f5f3/check_profile_l10n_all.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24204,
67,
2681,
12,
91,
452,
529,
16,
652,
2372,
28793,
679,
2019,
2218,
409,
11,
4672,
341,
452,
67,
350,
273,
7313,
24,
18,
2640,
12,
20979,
16,
4555,
16,
296,
3666,
2187,
341,
452,
529,
13,
919,
273,
296,
2738,
11,
5386,
273,
13666,
687,
4278,
2916,
97,
1323,
919,
5,
33,
409,
2019,
30,
400,
273,
7313,
24,
18,
8837,
12,
20979,
16,
4555,
16,
296,
3666,
2187,
341,
452,
67,
350,
16,
5386,
16,
919,
16,
2618,
13,
309,
296,
13178,
11,
316,
400,
30,
5386,
3292,
687,
29489,
2725,
12,
400,
3292,
13178,
3546,
262,
309,
400,
3292,
723,
3546,
18920,
687,
4278,
364,
652,
316,
400,
3292,
2821,
29489,
2452,
13332,
5386,
3292,
687,
3546,
63,
1518,
65,
273,
400,
3292,
2821,
3546,
63,
1518,
8009,
588,
2668,
1132,
2187,
1083,
13,
919,
273,
400,
3292,
2019,
3546,
18919,
21,
6362,
20,
65,
5386,
3292,
687,
29489,
2725,
12,
1518,
2372,
13,
1327,
400,
3292,
723,
3546,
18920,
2019,
4278,
919,
273,
400,
3292,
2019,
3546,
327,
1053,
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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,
13,
919,
273,
296,
2738,
11,
5386,
273,
13666,
687,
4278,
2916,
97,
1323,
919,
5,
33,
409,
2019,
30,
400,
273,
7313,
24,
18,
8837,
12,
20979,
16,
4555,
16,
296,
3666,
2187,
341,
452,
67,
350,
16,
5386,
16,
919,
16,
2618,
13,
309,
296,
13178,
11,
316,
400,
30,
5386,
3292,
687,
29489,
2725,
12,
400,
3292,
13178,
3546,
262,
309,
400,
3292,
723,
3546,
18920,
687,
4278,
364,
652,
316,
400,
3292,
2821,
29489,
2452,
13332,
5386,
2
] |
def _CheckNodeFreeMemory(cfg, node, reason, requested, hypervisor): | def _CheckNodeFreeMemory(lu, node, reason, requested, hypervisor): | def _CheckNodeFreeMemory(cfg, node, reason, requested, hypervisor): """Checks if a node has enough free memory. This function check if a given node has the needed amount of free memory. In case the node has less memory or we cannot get the information from the node, this function raise an OpPrereqError exception. @type cfg: C{config.ConfigWriter} @param cfg: the ConfigWriter instance from which we get configuration data @type node: C{str} @param node: the node to check @type reason: C{str} @param reason: string to use in the error message @type requested: C{int} @param requested: the amount of memory in MiB to check for @type hypervisor: C{str} @param hypervisor: the hypervisor to ask for memory stats @raise errors.OpPrereqError: if the node doesn't have enough memory, or we cannot check the node """ nodeinfo = rpc.call_node_info([node], cfg.GetVGName(), hypervisor) if not nodeinfo or not isinstance(nodeinfo, dict): raise errors.OpPrereqError("Could not contact node %s for resource" " information" % (node,)) free_mem = nodeinfo[node].get('memory_free') if not isinstance(free_mem, int): raise errors.OpPrereqError("Can't compute free memory on node %s, result" " was '%s'" % (node, free_mem)) if requested > free_mem: raise errors.OpPrereqError("Not enough memory on node %s for %s:" " needed %s MiB, available %s MiB" % (node, reason, requested, free_mem)) | b9bddb6bdf7ac5841c732845ce0122c64bb026b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/b9bddb6bdf7ac5841c732845ce0122c64bb026b1/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1564,
907,
9194,
6031,
12,
28832,
16,
756,
16,
3971,
16,
3764,
16,
9512,
10227,
4672,
3536,
4081,
309,
279,
756,
711,
7304,
4843,
3778,
18,
225,
1220,
445,
866,
309,
279,
864,
756,
711,
326,
3577,
3844,
434,
4843,
3778,
18,
657,
648,
326,
756,
711,
5242,
3778,
578,
732,
2780,
336,
326,
1779,
628,
326,
756,
16,
333,
445,
1002,
392,
6066,
2050,
822,
85,
668,
1520,
18,
225,
632,
723,
2776,
30,
385,
95,
1425,
18,
809,
2289,
97,
632,
891,
2776,
30,
326,
1903,
2289,
791,
628,
1492,
732,
336,
1664,
501,
632,
723,
756,
30,
385,
95,
701,
97,
632,
891,
756,
30,
326,
756,
358,
866,
632,
723,
3971,
30,
385,
95,
701,
97,
632,
891,
3971,
30,
533,
358,
999,
316,
326,
555,
883,
632,
723,
3764,
30,
385,
95,
474,
97,
632,
891,
3764,
30,
326,
3844,
434,
3778,
316,
490,
17632,
358,
866,
364,
632,
723,
9512,
10227,
30,
385,
95,
701,
97,
632,
891,
9512,
10227,
30,
326,
9512,
10227,
358,
6827,
364,
3778,
3177,
632,
11628,
1334,
18,
3817,
2050,
822,
85,
668,
30,
309,
326,
756,
3302,
1404,
1240,
7304,
3778,
16,
578,
732,
2780,
866,
326,
756,
225,
3536,
756,
1376,
273,
6724,
18,
1991,
67,
2159,
67,
1376,
3816,
2159,
6487,
2776,
18,
967,
9266,
461,
9334,
9512,
10227,
13,
309,
486,
756,
1376,
578,
486,
1549,
12,
2159,
1376,
16,
2065,
4672,
1002,
1334,
18,
3817,
2050,
822,
85,
668,
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,
1564,
907,
9194,
6031,
12,
28832,
16,
756,
16,
3971,
16,
3764,
16,
9512,
10227,
4672,
3536,
4081,
309,
279,
756,
711,
7304,
4843,
3778,
18,
225,
1220,
445,
866,
309,
279,
864,
756,
711,
326,
3577,
3844,
434,
4843,
3778,
18,
657,
648,
326,
756,
711,
5242,
3778,
578,
732,
2780,
336,
326,
1779,
628,
326,
756,
16,
333,
445,
1002,
392,
6066,
2050,
822,
85,
668,
1520,
18,
225,
632,
723,
2776,
30,
385,
95,
1425,
18,
809,
2289,
97,
632,
891,
2776,
30,
326,
1903,
2289,
791,
628,
1492,
732,
336,
1664,
501,
632,
723,
756,
30,
385,
95,
701,
97,
632,
891,
756,
30,
326,
756,
358,
866,
632,
723,
3971,
30,
385,
2
] |
raise ParserError("while scanning a block mapping", self.marks[-1], | raise ParserError("while parsing a block mapping", self.marks[-1], | def parse_block_mapping_key(self): if self.check_token(KeyToken): token = self.get_token() if not self.check_token(KeyToken, ValueToken, BlockEndToken): self.states.append(self.parse_block_mapping_value) return self.parse_block_node_or_indentless_sequence() else: self.state = self.parse_block_mapping_value return self.process_empty_scalar(token.end_mark) if not self.check_token(BlockEndToken): token = self.peek_token() raise ParserError("while scanning a block mapping", self.marks[-1], "expected <block end>, but found %r" % token.id, token.start_mark) token = self.get_token() event = MappingEndEvent(token.start_mark, token.end_mark) self.state = self.states.pop() self.marks.pop() return event | 95c8976b37428c048ea78c18be63c03897557c21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12018/95c8976b37428c048ea78c18be63c03897557c21/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2629,
67,
6770,
67,
856,
12,
2890,
4672,
309,
365,
18,
1893,
67,
2316,
12,
653,
1345,
4672,
1147,
273,
365,
18,
588,
67,
2316,
1435,
309,
486,
365,
18,
1893,
67,
2316,
12,
653,
1345,
16,
1445,
1345,
16,
3914,
1638,
1345,
4672,
365,
18,
7992,
18,
6923,
12,
2890,
18,
2670,
67,
2629,
67,
6770,
67,
1132,
13,
327,
365,
18,
2670,
67,
2629,
67,
2159,
67,
280,
67,
9355,
2656,
67,
6178,
1435,
469,
30,
365,
18,
2019,
273,
365,
18,
2670,
67,
2629,
67,
6770,
67,
1132,
327,
365,
18,
2567,
67,
5531,
67,
8748,
12,
2316,
18,
409,
67,
3355,
13,
309,
486,
365,
18,
1893,
67,
2316,
12,
1768,
1638,
1345,
4672,
1147,
273,
365,
18,
347,
3839,
67,
2316,
1435,
1002,
6783,
668,
2932,
17523,
5811,
279,
1203,
2874,
3113,
365,
18,
17439,
18919,
21,
6487,
315,
3825,
411,
2629,
679,
20401,
1496,
1392,
738,
86,
6,
738,
1147,
18,
350,
16,
1147,
18,
1937,
67,
3355,
13,
1147,
273,
365,
18,
588,
67,
2316,
1435,
871,
273,
9408,
1638,
1133,
12,
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
67,
6770,
67,
856,
12,
2890,
4672,
309,
365,
18,
1893,
67,
2316,
12,
653,
1345,
4672,
1147,
273,
365,
18,
588,
67,
2316,
1435,
309,
486,
365,
18,
1893,
67,
2316,
12,
653,
1345,
16,
1445,
1345,
16,
3914,
1638,
1345,
4672,
365,
18,
7992,
18,
6923,
12,
2890,
18,
2670,
67,
2629,
67,
6770,
67,
1132,
13,
327,
365,
18,
2670,
67,
2629,
67,
2159,
67,
280,
67,
9355,
2656,
67,
6178,
1435,
469,
30,
365,
18,
2019,
273,
365,
18,
2670,
67,
2629,
67,
6770,
67,
1132,
327,
365,
18,
2567,
67,
5531,
67,
8748,
12,
2316,
18,
409,
67,
3355,
13,
309,
486,
365,
18,
1893,
67,
2316,
12,
1768,
1638,
2
] |
file = os.path.abspath(file) | def rename(self, src, dest, options=''): """ Move (rename) the given file. | ac9f108c6f21c3ad8c2941ced5e59d4ddf264682 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/ac9f108c6f21c3ad8c2941ced5e59d4ddf264682/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
2890,
16,
1705,
16,
1570,
16,
702,
2218,
11,
4672,
3536,
9933,
261,
18539,
13,
326,
864,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
2890,
16,
1705,
16,
1570,
16,
702,
2218,
11,
4672,
3536,
9933,
261,
18539,
13,
326,
864,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
ATEventBaseSchema = ATContentTypeSchema.copy() ATEventBaseSchema['description'].primary = True ATEventSchema = ATEventBaseSchema + Schema(( | ATEventSchema = ATContentTypeSchema.copy + Schema(( | def __init__(self, prefix='', archive=False): pass | f98eabe813032df83369483850534aca1fdfcb3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11956/f98eabe813032df83369483850534aca1fdfcb3b/schemata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1633,
2218,
2187,
5052,
33,
8381,
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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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,
1001,
2738,
972,
12,
2890,
16,
1633,
2218,
2187,
5052,
33,
8381,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
laterID = None file = None | def loseConnection(self): "Kill rsync process" if self.transport: if self.transport.pid: log.debug("killing rsync child" + str(self.transport.pid), 'rsync_client') os.kill(self.transport.pid, signal.SIGTERM) #self.transport.loseConnection() | d1edb4f2d936c29931d17ce8be7dd263a355beea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7531/d1edb4f2d936c29931d17ce8be7dd263a355beea/apt_proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29612,
1952,
12,
2890,
4672,
315,
19045,
3597,
1209,
1207,
6,
309,
365,
18,
13049,
30,
309,
365,
18,
13049,
18,
6610,
30,
613,
18,
4148,
2932,
79,
5789,
3597,
1209,
1151,
6,
397,
609,
12,
2890,
18,
13049,
18,
6610,
3631,
296,
5453,
1209,
67,
2625,
6134,
1140,
18,
16418,
12,
2890,
18,
13049,
18,
6610,
16,
4277,
18,
18513,
15176,
13,
468,
2890,
18,
13049,
18,
2061,
1952,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
29612,
1952,
12,
2890,
4672,
315,
19045,
3597,
1209,
1207,
6,
309,
365,
18,
13049,
30,
309,
365,
18,
13049,
18,
6610,
30,
613,
18,
4148,
2932,
79,
5789,
3597,
1209,
1151,
6,
397,
609,
12,
2890,
18,
13049,
18,
6610,
3631,
296,
5453,
1209,
67,
2625,
6134,
1140,
18,
16418,
12,
2890,
18,
13049,
18,
6610,
16,
4277,
18,
18513,
15176,
13,
468,
2890,
18,
13049,
18,
2061,
1952,
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
] |
|
p.setContentHandler(xml.sax.XMLGenerator()) | p.setContentHandler(xml.sax.saxutils.XMLGenerator()) | def create_parser(*args, **kwargs): return ExpatParser(*args, **kwargs) | 410df5ffc21bd01223f05f5d20c137371286dcf4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/410df5ffc21bd01223f05f5d20c137371286dcf4/expatreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4288,
30857,
1968,
16,
2826,
4333,
4672,
327,
7784,
270,
2678,
30857,
1968,
16,
2826,
4333,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4288,
30857,
1968,
16,
2826,
4333,
4672,
327,
7784,
270,
2678,
30857,
1968,
16,
2826,
4333,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.attrAddButton.setIcon(QIcon(os.path.join(self.widgetDir, r"icons\Dlg_up3.png"))) | self.attrAddButton.setIcon(QIcon(os.path.join(self.widgetDir, "icons/Dlg_up3.png"))) | def createShowHiddenLists(self, placementTab, callback = None): maxWidth = 180 self.updateCallbackFunction = callback self.shownAttributes = [] self.selectedShown = [] self.hiddenAttributes = [] self.selectedHidden = [] | 20cd349af4eca1b2cf713f1f711552e61b55ec3b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/20cd349af4eca1b2cf713f1f711552e61b55ec3b/OWVisWidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
5706,
9345,
7432,
12,
2890,
16,
12607,
5661,
16,
1348,
273,
599,
4672,
17681,
273,
9259,
365,
18,
2725,
2428,
2083,
273,
1348,
365,
18,
674,
995,
2498,
273,
5378,
365,
18,
8109,
27042,
273,
5378,
365,
18,
6345,
2498,
273,
5378,
365,
18,
8109,
9345,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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752,
5706,
9345,
7432,
12,
2890,
16,
12607,
5661,
16,
1348,
273,
599,
4672,
17681,
273,
9259,
365,
18,
2725,
2428,
2083,
273,
1348,
365,
18,
674,
995,
2498,
273,
5378,
365,
18,
8109,
27042,
273,
5378,
365,
18,
6345,
2498,
273,
5378,
365,
18,
8109,
9345,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
directory}) | directory}, short_title='Differences') | def cmd_diff_file(self, filename): if self.opt('meld_integration', 'use_meld_for_diff'): self.boss.call_command('meldembed', 'diff', filename=filename) else: directory = os.path.dirname(filename) basename = os.path.basename(filename) vcs = self.call('get_vcs_for_directory', directory=directory) if vcs.NAME == 'Null': self.log.info('"%s" is not version controlled', directory) else: try: commandargs = vcs.diff_command() + [basename] self.boss.call_command('terminal', 'execute', command_args=commandargs, icon_name='vcs_diff', term_type='dumb', kwdict = {'directory': directory}) except NotImplementedError: self.log.info('Not implemented for %s' % vcs.NAME) | 9653b9dcd82c0834a3faa949a817968ff9c3cc18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/9653b9dcd82c0834a3faa949a817968ff9c3cc18/versioncontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
5413,
67,
768,
12,
2890,
16,
1544,
4672,
309,
365,
18,
3838,
2668,
81,
488,
67,
27667,
2187,
296,
1202,
67,
81,
488,
67,
1884,
67,
5413,
11,
4672,
365,
18,
70,
8464,
18,
1991,
67,
3076,
2668,
81,
292,
323,
1627,
329,
2187,
296,
5413,
2187,
1544,
33,
3459,
13,
469,
30,
1867,
273,
1140,
18,
803,
18,
12287,
12,
3459,
13,
4882,
273,
1140,
18,
803,
18,
13909,
12,
3459,
13,
20255,
273,
365,
18,
1991,
2668,
588,
67,
18982,
67,
1884,
67,
5149,
2187,
1867,
33,
5149,
13,
309,
20255,
18,
1985,
422,
296,
2041,
4278,
365,
18,
1330,
18,
1376,
22076,
9,
87,
6,
353,
486,
1177,
25934,
2187,
1867,
13,
469,
30,
775,
30,
1296,
1968,
273,
20255,
18,
5413,
67,
3076,
1435,
397,
306,
13909,
65,
365,
18,
70,
8464,
18,
1991,
67,
3076,
2668,
15979,
2187,
296,
8837,
2187,
1296,
67,
1968,
33,
3076,
1968,
16,
4126,
67,
529,
2218,
18982,
67,
5413,
2187,
2481,
67,
723,
2218,
72,
3592,
2187,
5323,
1576,
273,
13666,
5149,
4278,
1867,
5779,
3025,
67,
2649,
2218,
10428,
2980,
6134,
1335,
11206,
30,
365,
18,
1330,
18,
1376,
2668,
1248,
8249,
364,
738,
87,
11,
738,
20255,
18,
1985,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
5413,
67,
768,
12,
2890,
16,
1544,
4672,
309,
365,
18,
3838,
2668,
81,
488,
67,
27667,
2187,
296,
1202,
67,
81,
488,
67,
1884,
67,
5413,
11,
4672,
365,
18,
70,
8464,
18,
1991,
67,
3076,
2668,
81,
292,
323,
1627,
329,
2187,
296,
5413,
2187,
1544,
33,
3459,
13,
469,
30,
1867,
273,
1140,
18,
803,
18,
12287,
12,
3459,
13,
4882,
273,
1140,
18,
803,
18,
13909,
12,
3459,
13,
20255,
273,
365,
18,
1991,
2668,
588,
67,
18982,
67,
1884,
67,
5149,
2187,
1867,
33,
5149,
13,
309,
20255,
18,
1985,
422,
296,
2041,
4278,
365,
18,
1330,
18,
1376,
22076,
9,
87,
6,
353,
486,
1177,
25934,
2187,
1867,
13,
469,
2
] |
counters_command = ('%s -start:coverage -shutdown' % | counters_command = ('%s -shutdown' % | def TearDown(self): """Tear down method. | 3039e8499d9e67b0f9d59f0c0c4a6fe541e073c5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/3039e8499d9e67b0f9d59f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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
399,
2091,
4164,
12,
2890,
4672,
3536,
56,
2091,
2588,
707,
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,
-100,
-100,
-100,
-100
] |
checkin, checkout = self.checkin, self.checkout | self.checkin_mutex.acquire() self.waiting = self.waiting + 1 if self.waiting == self.num_threads: self.waiting = self.num_threads - 1 self.checkout_mutex.release() return self.checkin_mutex.release() | def enter(self): checkin, checkout = self.checkin, self.checkout | 157f92e2b29d073ecbc5a79ea012f85cd0478331 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/157f92e2b29d073ecbc5a79ea012f85cd0478331/test_thread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
12,
2890,
4672,
866,
267,
16,
13926,
273,
365,
18,
1893,
267,
16,
365,
18,
17300,
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
] | [
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
12,
2890,
4672,
866,
267,
16,
13926,
273,
365,
18,
1893,
267,
16,
365,
18,
17300,
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 makeSuiteForClasses(SplitFrameParagraphTest,FragmentTestCase, ParagraphSplitTestCase, ULTestCase, JustifyTestCase, AutoLeadingTestCase) | return makeSuiteForClasses(ParagraphCorners,SplitFrameParagraphTest,FragmentTestCase, ParagraphSplitTestCase, ULTestCase, JustifyTestCase, AutoLeadingTestCase) | def makeSuite(): return makeSuiteForClasses(SplitFrameParagraphTest,FragmentTestCase, ParagraphSplitTestCase, ULTestCase, JustifyTestCase, AutoLeadingTestCase) | b1649deef41024e32a251eb9c4ab940e5ac52f2c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7053/b1649deef41024e32a251eb9c4ab940e5ac52f2c/test_platypus_paragraphs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
13587,
13332,
327,
1221,
13587,
1290,
4818,
12,
17719,
6217,
9646,
16,
5521,
3219,
17719,
4709,
16,
7456,
4709,
2449,
16,
24963,
5521,
4709,
2449,
16,
587,
48,
4709,
2449,
16,
12526,
1164,
4709,
2449,
16,
8064,
19112,
4709,
2449,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
13587,
13332,
327,
1221,
13587,
1290,
4818,
12,
17719,
6217,
9646,
16,
5521,
3219,
17719,
4709,
16,
7456,
4709,
2449,
16,
24963,
5521,
4709,
2449,
16,
587,
48,
4709,
2449,
16,
12526,
1164,
4709,
2449,
16,
8064,
19112,
4709,
2449,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
config_entry = self.config.merge('base', None, arch, subarch, flavour) | config_entry = self.config.merge('base', arch, subarch, flavour) | def do_flavour(self, packages, makefile, arch, subarch, flavour, vars, makeflags, extra): config_entry = self.config.merge('base', None, arch, subarch, flavour) if config_entry.get('modules', True) is False: return | 3a617fc46a6dd1cb9a3b3c205e230c0a88eb1a45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5794/3a617fc46a6dd1cb9a3b3c205e230c0a88eb1a45/gencontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2242,
842,
477,
12,
2890,
16,
5907,
16,
1221,
768,
16,
6637,
16,
720,
991,
16,
31227,
477,
16,
4153,
16,
1221,
7133,
16,
2870,
4672,
642,
67,
4099,
273,
365,
18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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2242,
842,
477,
12,
2890,
16,
5907,
16,
1221,
768,
16,
6637,
16,
720,
991,
16,
31227,
477,
16,
4153,
16,
1221,
7133,
16,
2870,
4672,
642,
67,
4099,
273,
365,
18,
1425,
18,
2702,
2668,
1969,
2187,
6637,
16,
720,
991,
16,
31227,
477,
13,
309,
642,
67,
4099,
18,
588,
2668,
6400,
2187,
1053,
13,
353,
1083,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" try: return x.real() except AttributeError: return CDF(x).real() | sage: real(5/3) 5/3 sage: a = 2.5 sage: real(a) 2.50000000000000 sage: type(real(a)) <type 'sage.rings.real_mpfr.RealNumber'> """ try: return x.real() except AttributeError: pass try: rdf_x = RDF(x) return x except TypeError: pass return CDF(x).real() | def real(x): """ Return the real part of x. EXAMPLES: sage: z = 1+2*I sage: real(z) 1 """ try: return x.real() except AttributeError: return CDF(x).real() | 313fb865f84ffd0853b9ff9c9b291aa56c032b08 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/313fb865f84ffd0853b9ff9c9b291aa56c032b08/functional.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
12,
92,
4672,
3536,
2000,
326,
2863,
1087,
434,
619,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
998,
273,
404,
15,
22,
14,
45,
272,
410,
30,
2863,
12,
94,
13,
404,
272,
410,
30,
2863,
12,
25,
19,
23,
13,
1381,
19,
23,
272,
410,
30,
279,
273,
576,
18,
25,
272,
410,
30,
2863,
12,
69,
13,
576,
18,
25,
12648,
11706,
272,
410,
30,
618,
12,
7688,
12,
69,
3719,
411,
723,
296,
87,
410,
18,
86,
899,
18,
7688,
67,
1291,
4840,
18,
6955,
1854,
29256,
3536,
282,
775,
30,
327,
619,
18,
7688,
1435,
1335,
6394,
30,
1342,
565,
775,
30,
9160,
67,
92,
273,
13539,
12,
92,
13,
327,
619,
1335,
3580,
30,
1342,
565,
327,
31971,
12,
92,
2934,
7688,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
12,
92,
4672,
3536,
2000,
326,
2863,
1087,
434,
619,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
998,
273,
404,
15,
22,
14,
45,
272,
410,
30,
2863,
12,
94,
13,
404,
272,
410,
30,
2863,
12,
25,
19,
23,
13,
1381,
19,
23,
272,
410,
30,
279,
273,
576,
18,
25,
272,
410,
30,
2863,
12,
69,
13,
576,
18,
25,
12648,
11706,
272,
410,
30,
618,
12,
7688,
12,
69,
3719,
411,
723,
296,
87,
410,
18,
86,
899,
18,
7688,
67,
1291,
4840,
18,
6955,
1854,
29256,
3536,
282,
775,
30,
327,
619,
18,
7688,
1435,
1335,
6394,
30,
1342,
565,
775,
30,
9160,
67,
92,
273,
13539,
12,
92,
13,
327,
2
] |
if self._base != None: result += Registers[self._base] + "+" if self._index != None: result += Registers[self._index] if self._scale > 1: result += "*%d" % self._scale if self._disp >= 0: result += "+0x%x" % self._disp | if self.base != None: result += Registers[self.base] + "+" if self.index != None: result += Registers[self.index] if self.scale > 1: result += "*%d" % self.scale if self.disp >= 0: result += "+0x%x" % self.disp | def _toText(self): if self._type == OPERAND_IMMEDIATE: if self._value >= 0: return "0x%x" % self._value else: return "-0x%x" % abs(self._value) elif self._type == OPERAND_REGISTER: return self.GetName() elif self._type == OPERAND_ABSOLUTE_ADDRESS: return '[0x%x]' % self._disp elif self._type == OPERAND_FAR_MEMORY: return '%s:%s' % (hex(self._seg), hex(self._off)) elif (self._type == OPERAND_MEMORY): result = "[" if self._base != None: result += Registers[self._base] + "+" if self._index != None: result += Registers[self._index] if self._scale > 1: result += "*%d" % self._scale if self._disp >= 0: result += "+0x%x" % self._disp else: result += "-0x%x" % abs(self._disp) return result + "]" | 7c2914851425839fab07457054443c7767eb9683 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8360/7c2914851425839fab07457054443c7767eb9683/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
869,
1528,
12,
2890,
4672,
309,
365,
6315,
723,
422,
17205,
4307,
67,
3445,
15971,
1777,
30,
309,
365,
6315,
1132,
1545,
374,
30,
327,
315,
20,
92,
9,
92,
6,
738,
365,
6315,
1132,
469,
30,
327,
3701,
20,
92,
9,
92,
6,
738,
2417,
12,
2890,
6315,
1132,
13,
1327,
365,
6315,
723,
422,
17205,
4307,
67,
27511,
30,
327,
365,
18,
967,
461,
1435,
1327,
365,
6315,
723,
422,
17205,
4307,
67,
2090,
26786,
67,
15140,
30,
327,
5271,
20,
92,
9,
92,
3864,
738,
365,
6315,
25453,
1327,
365,
6315,
723,
422,
17205,
4307,
67,
42,
985,
67,
24329,
30,
327,
1995,
87,
5319,
87,
11,
738,
261,
7118,
12,
2890,
6315,
5680,
3631,
3827,
12,
2890,
6315,
3674,
3719,
1327,
261,
2890,
6315,
723,
422,
17205,
4307,
67,
24329,
4672,
563,
273,
13626,
309,
365,
18,
1969,
480,
599,
30,
563,
1011,
2526,
6045,
63,
2890,
18,
1969,
65,
397,
17487,
309,
365,
18,
1615,
480,
599,
30,
563,
1011,
2526,
6045,
63,
2890,
18,
1615,
65,
309,
365,
18,
5864,
405,
404,
30,
563,
1011,
15902,
9,
72,
6,
738,
365,
18,
5864,
309,
365,
18,
25453,
1545,
374,
30,
563,
1011,
13773,
20,
92,
9,
92,
6,
738,
365,
18,
25453,
469,
30,
563,
1011,
3701,
20,
92,
9,
92,
6,
738,
2417,
12,
2890,
6315,
25453,
13,
327,
563,
397,
9870,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
869,
1528,
12,
2890,
4672,
309,
365,
6315,
723,
422,
17205,
4307,
67,
3445,
15971,
1777,
30,
309,
365,
6315,
1132,
1545,
374,
30,
327,
315,
20,
92,
9,
92,
6,
738,
365,
6315,
1132,
469,
30,
327,
3701,
20,
92,
9,
92,
6,
738,
2417,
12,
2890,
6315,
1132,
13,
1327,
365,
6315,
723,
422,
17205,
4307,
67,
27511,
30,
327,
365,
18,
967,
461,
1435,
1327,
365,
6315,
723,
422,
17205,
4307,
67,
2090,
26786,
67,
15140,
30,
327,
5271,
20,
92,
9,
92,
3864,
738,
365,
6315,
25453,
1327,
365,
6315,
723,
422,
17205,
4307,
67,
42,
985,
67,
24329,
30,
327,
1995,
87,
5319,
87,
11,
738,
261,
7118,
12,
2890,
6315,
5680,
2
] |
finally: hdlr.release() | finally: _releaseLock() | def removeHandler(self, hdlr): """ Remove the specified handler from this logger. """ if hdlr in self.handlers: hdlr.acquire() try: self.handlers.remove(hdlr) finally: hdlr.release() | 32fb6a81f992d86bb4c227912602c224dbbc7d7f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/32fb6a81f992d86bb4c227912602c224dbbc7d7f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
1503,
12,
2890,
16,
366,
5761,
86,
4672,
3536,
3581,
326,
1269,
1838,
628,
333,
1194,
18,
3536,
309,
366,
5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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
1503,
12,
2890,
16,
366,
5761,
86,
4672,
3536,
3581,
326,
1269,
1838,
628,
333,
1194,
18,
3536,
309,
366,
5761,
86,
316,
365,
18,
11046,
30,
366,
5761,
86,
18,
1077,
1039,
1435,
775,
30,
365,
18,
11046,
18,
4479,
12,
76,
5761,
86,
13,
3095,
30,
366,
5761,
86,
18,
9340,
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
] |
self.attach(self.city, 0, 1, 2, 3, gtk.FILL, gtk.FILL) self.attach(self.region, 1, 2, 2, 3, gtk.EXPAND|gtk.FILL, gtk.FILL) self.attach(self.code, 2, 3, 2, 3, gtk.EXPAND|gtk.FILL, gtk.FILL) | self.table.attach(self.city, 0, 1, 2, 3, gtk.FILL, gtk.FILL) self.table.attach(self.region, 1, 2, 2, 3, gtk.EXPAND|gtk.FILL, gtk.FILL) self.table.attach(self.code, 2, 3, 2, 3, gtk.EXPAND|gtk.FILL, gtk.FILL) | def build_interface(self): self.box = LabelField([self.content.value.box, types["BOX"]], False) self.extended = LabelField([self.content.value.extended, types["EXTENDED"]], False) self.street = LabelField([self.content.value.street, types["STREET"]], False) self.city = LabelField([self.content.value.city, types["CITY"]], False) self.region = LabelField([self.content.value.region, types["REGION"]], False) self.code = LabelField([self.content.value.code, types["CODE"]], False) self.country = LabelField([self.content.value.country, types["COUNTRY"]], False) | a8a4c6ca09f6afe3062c9a37ce6363c545145985 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/a8a4c6ca09f6afe3062c9a37ce6363c545145985/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5831,
12,
2890,
4672,
365,
18,
2147,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
2147,
16,
1953,
9614,
16876,
11929,
6487,
1083,
13,
365,
18,
14948,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
14948,
16,
1953,
9614,
4142,
22088,
11929,
6487,
1083,
13,
365,
18,
22424,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
22424,
16,
1953,
9614,
882,
862,
1584,
11929,
6487,
1083,
13,
365,
18,
14240,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
14240,
16,
1953,
9614,
39,
4107,
11929,
6487,
1083,
13,
365,
18,
6858,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
6858,
16,
1953,
9614,
28314,
11929,
6487,
1083,
13,
365,
18,
710,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
710,
16,
1953,
9614,
5572,
11929,
6487,
1083,
13,
365,
18,
9082,
273,
5287,
974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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5831,
12,
2890,
4672,
365,
18,
2147,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
2147,
16,
1953,
9614,
16876,
11929,
6487,
1083,
13,
365,
18,
14948,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
14948,
16,
1953,
9614,
4142,
22088,
11929,
6487,
1083,
13,
365,
18,
22424,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
22424,
16,
1953,
9614,
882,
862,
1584,
11929,
6487,
1083,
13,
365,
18,
14240,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
14240,
16,
1953,
9614,
39,
4107,
11929,
6487,
1083,
13,
365,
18,
6858,
273,
5287,
974,
3816,
2890,
18,
1745,
18,
1132,
18,
6858,
16,
1953,
9614,
28314,
11929,
6487,
2
] |
self.assertEquals(util.wait(d), self.RESULT) | return d.addCallback(lambda result: self.assertEquals(result, self.RESULT)) | def stopAndGo(ign): c.stop() outstandingD.callback('arglebargle') | f3a56bc136e5b5fa4542bd86397d2b4297734a70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7078/f3a56bc136e5b5fa4542bd86397d2b4297734a70/test_cooperator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
1876,
5741,
12,
724,
4672,
276,
18,
5681,
1435,
20974,
40,
18,
3394,
2668,
3175,
298,
70,
3175,
298,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
2132,
1876,
5741,
12,
724,
4672,
276,
18,
5681,
1435,
20974,
40,
18,
3394,
2668,
3175,
298,
70,
3175,
298,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
exe_path = libtbx.env.under_build("ksdssp/exe/ksdssp") if not os.path.isfile(exe_path) : raise RuntimeError("KSDSSP not available.") | exe_path = get_ksdssp_exe_path() | def run_ksdssp (file_name, log=sys.stderr) : if not os.path.isfile(file_name) : raise RuntimeError("File %s not found.") exe_path = libtbx.env.under_build("ksdssp/exe/ksdssp") if not os.path.isfile(exe_path) : raise RuntimeError("KSDSSP not available.") print >> log, " Running KSDSSP to generate HELIX and SHEET records" ksdssp_out = easy_run.fully_buffered(command="%s %s" % (exe_path, file_name)) | 0bc14071d9364def7d33a409fac526a38f23f248 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/0bc14071d9364def7d33a409fac526a38f23f248/secondary_structure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
79,
6427,
1049,
84,
261,
768,
67,
529,
16,
613,
33,
9499,
18,
11241,
13,
294,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
768,
67,
529,
13,
294,
1002,
7265,
2932,
812,
738,
87,
486,
1392,
1199,
13,
15073,
67,
803,
273,
336,
67,
79,
6427,
1049,
84,
67,
14880,
67,
803,
1435,
1172,
1671,
613,
16,
315,
225,
20480,
1475,
9903,
1260,
52,
358,
2103,
4194,
2053,
60,
471,
348,
3900,
1584,
3853,
6,
417,
6427,
1049,
84,
67,
659,
273,
12779,
67,
2681,
18,
4095,
67,
26385,
12,
3076,
11613,
87,
738,
87,
6,
738,
261,
14880,
67,
803,
16,
585,
67,
529,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
79,
6427,
1049,
84,
261,
768,
67,
529,
16,
613,
33,
9499,
18,
11241,
13,
294,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
768,
67,
529,
13,
294,
1002,
7265,
2932,
812,
738,
87,
486,
1392,
1199,
13,
15073,
67,
803,
273,
336,
67,
79,
6427,
1049,
84,
67,
14880,
67,
803,
1435,
1172,
1671,
613,
16,
315,
225,
20480,
1475,
9903,
1260,
52,
358,
2103,
4194,
2053,
60,
471,
348,
3900,
1584,
3853,
6,
417,
6427,
1049,
84,
67,
659,
273,
12779,
67,
2681,
18,
4095,
67,
26385,
12,
3076,
11613,
87,
738,
87,
6,
738,
261,
14880,
67,
803,
16,
585,
67,
529,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}, domain="[('type', '=', 'storage')]") | }, domain="[('type', 'not in', " \ "('supplier', 'customer', 'warehouse'))]") | def button_draft(self, cursor, user, ids, context=None): workflow_service = LocalService('workflow') for packing in self.browse(cursor, user, ids, context=context): workflow_service.trg_create(user, self._name, packing.id, cursor, context=context) | 9421ee0cb4b5bf757b877a086c543d6842d209a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/9421ee0cb4b5bf757b877a086c543d6842d209a3/packing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
17153,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
6095,
67,
3278,
273,
3566,
1179,
2668,
13815,
6134,
364,
2298,
310,
316,
365,
18,
25731,
12,
9216,
16,
729,
16,
3258,
16,
819,
33,
2472,
4672,
6095,
67,
3278,
18,
313,
75,
67,
2640,
12,
1355,
16,
365,
6315,
529,
16,
2298,
310,
18,
350,
16,
3347,
16,
819,
33,
2472,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
17153,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
6095,
67,
3278,
273,
3566,
1179,
2668,
13815,
6134,
364,
2298,
310,
316,
365,
18,
25731,
12,
9216,
16,
729,
16,
3258,
16,
819,
33,
2472,
4672,
6095,
67,
3278,
18,
313,
75,
67,
2640,
12,
1355,
16,
365,
6315,
529,
16,
2298,
310,
18,
350,
16,
3347,
16,
819,
33,
2472,
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
] |
img = None | Image = None | def _test(): import EasyDialogs try: import img except ImportError: img = None import MacOS Qt.EnterMovies() path = EasyDialogs.AskFileForOpen(message='Video to convert') if not path: sys.exit(0) rdr = reader(path) if not rdr: sys.exit(1) dstdir = EasyDialogs.AskFileForSave(message='Name for output folder') if not dstdir: sys.exit(0) num = 0 os.mkdir(dstdir) videofmt = rdr.GetVideoFormat() imgfmt = videofmt.getformat() imgw, imgh = videofmt.getsize() timestamp, data = rdr.ReadVideo() while data: fname = 'frame%04.4d.jpg'%num num = num+1 pname = os.path.join(dstdir, fname) if not img: print 'Not', print 'Writing %s, size %dx%d, %d bytes'%(fname, imgw, imgh, len(data)) if img: wrt = img.writer(imgfmt, pname) wrt.width = imgw wrt.height = imgh wrt.write(data) timestamp, data = rdr.ReadVideo() MacOS.SetCreatorAndType(pname, 'ogle', 'JPEG') if num > 20: print 'stopping at 20 frames so your disk does not fill up:-)' break print 'Total frames:', num | 19fd33128b9c345b26a7a08d56069bb76e3c15b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/19fd33128b9c345b26a7a08d56069bb76e3c15b3/videoreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
1930,
29442,
11885,
14072,
775,
30,
1930,
3774,
1335,
11308,
30,
3421,
273,
599,
1930,
13217,
4618,
7354,
18,
10237,
16727,
29028,
1435,
589,
273,
29442,
11885,
14072,
18,
23663,
812,
1290,
3678,
12,
2150,
2218,
10083,
358,
1765,
6134,
309,
486,
589,
30,
2589,
18,
8593,
12,
20,
13,
436,
3069,
273,
2949,
12,
803,
13,
309,
486,
436,
3069,
30,
2589,
18,
8593,
12,
21,
13,
3046,
1214,
273,
29442,
11885,
14072,
18,
23663,
812,
1290,
4755,
12,
2150,
2218,
461,
364,
876,
3009,
6134,
309,
486,
3046,
1214,
30,
2589,
18,
8593,
12,
20,
13,
818,
273,
374,
1140,
18,
26686,
12,
11057,
1214,
13,
331,
831,
792,
1010,
273,
436,
3069,
18,
967,
10083,
1630,
1435,
3774,
8666,
273,
331,
831,
792,
1010,
18,
588,
2139,
1435,
3774,
91,
16,
3774,
76,
273,
331,
831,
792,
1010,
18,
588,
1467,
1435,
2858,
16,
501,
273,
436,
3069,
18,
1994,
10083,
1435,
1323,
501,
30,
5299,
273,
296,
3789,
9,
3028,
18,
24,
72,
18,
14362,
11,
9,
2107,
818,
273,
818,
15,
21,
19952,
273,
1140,
18,
803,
18,
5701,
12,
11057,
1214,
16,
5299,
13,
309,
486,
3774,
30,
1172,
296,
1248,
2187,
1172,
296,
18835,
738,
87,
16,
963,
738,
13437,
9,
72,
16,
738,
72,
1731,
11,
17105,
12749,
16,
3774,
91,
16,
3774,
76,
16,
562,
12,
892,
3719,
309,
3774,
30,
31565,
273,
3774,
18,
6299,
12,
6081,
8666,
16,
19952,
13,
31565,
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,
389,
3813,
13332,
1930,
29442,
11885,
14072,
775,
30,
1930,
3774,
1335,
11308,
30,
3421,
273,
599,
1930,
13217,
4618,
7354,
18,
10237,
16727,
29028,
1435,
589,
273,
29442,
11885,
14072,
18,
23663,
812,
1290,
3678,
12,
2150,
2218,
10083,
358,
1765,
6134,
309,
486,
589,
30,
2589,
18,
8593,
12,
20,
13,
436,
3069,
273,
2949,
12,
803,
13,
309,
486,
436,
3069,
30,
2589,
18,
8593,
12,
21,
13,
3046,
1214,
273,
29442,
11885,
14072,
18,
23663,
812,
1290,
4755,
12,
2150,
2218,
461,
364,
876,
3009,
6134,
309,
486,
3046,
1214,
30,
2589,
18,
8593,
12,
20,
13,
818,
273,
374,
1140,
18,
26686,
12,
11057,
1214,
13,
331,
831,
792,
1010,
273,
436,
3069,
2
] |
flags['fortify_source'] = '0' | flags['fortify_source'] = 0 | def get_binary_flags(self, file): """ Function to get binary flags from a file """ flags = {} | db3e09aa0517efc638ded0f40524a2b41dc13d44 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8578,
67,
7133,
12,
2890,
16,
585,
4672,
3536,
4284,
358,
336,
3112,
2943,
628,
279,
585,
3536,
2943,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def Read(self): | def Read(self, template = False): | def Read(self): write = False try: conf = ConfigParser.ConfigParser() conf.read(self._filename) except ConfigParser.Error: return False for sect in self._settings: for name in self._settings[sect][1]: try: val = conf.get(section = sect, option = name) if self._settings[sect][0]: # is binary? val = binascii.a2b_hex(val) self._settings[sect][1][name] = val except ConfigParser.Error: pass # for older version set display infected only to 1 if self._settings['UI'][1]['Version'] == '': self._settings['ClamAV'][1]['InfectedOnly'] = '1' write = True | 479ae4a453370d59d25f3d548b12a87ebe6e2642 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3644/479ae4a453370d59d25f3d548b12a87ebe6e2642/Config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
12,
2890,
16,
1542,
273,
1083,
4672,
1045,
273,
1083,
775,
30,
2195,
273,
25076,
18,
809,
2678,
1435,
2195,
18,
896,
12,
2890,
6315,
3459,
13,
1335,
25076,
18,
668,
30,
327,
1083,
364,
29140,
316,
365,
6315,
4272,
30,
364,
508,
316,
365,
6315,
4272,
63,
5709,
6362,
21,
14542,
775,
30,
1244,
273,
2195,
18,
588,
12,
3464,
273,
29140,
16,
1456,
273,
508,
13,
309,
365,
6315,
4272,
63,
5709,
6362,
20,
14542,
468,
353,
3112,
35,
1244,
273,
28222,
18,
69,
22,
70,
67,
7118,
12,
1125,
13,
365,
6315,
4272,
63,
5709,
6362,
21,
6362,
529,
65,
273,
1244,
1335,
25076,
18,
668,
30,
1342,
468,
364,
12156,
1177,
444,
2562,
8286,
828,
1338,
358,
404,
309,
365,
6315,
4272,
3292,
5370,
3546,
63,
21,
23962,
1444,
3546,
422,
875,
30,
365,
6315,
4272,
3292,
2009,
301,
5856,
3546,
63,
21,
23962,
13149,
828,
3386,
3546,
273,
296,
21,
11,
1045,
273,
1053,
2,
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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
4672,
1045,
273,
1083,
775,
30,
2195,
273,
25076,
18,
809,
2678,
1435,
2195,
18,
896,
12,
2890,
6315,
3459,
13,
1335,
25076,
18,
668,
30,
327,
1083,
364,
29140,
316,
365,
6315,
4272,
30,
364,
508,
316,
365,
6315,
4272,
63,
5709,
6362,
21,
14542,
775,
30,
1244,
273,
2195,
18,
588,
12,
3464,
273,
29140,
16,
1456,
273,
508,
13,
309,
365,
6315,
4272,
63,
5709,
6362,
20,
14542,
468,
353,
3112,
35,
1244,
273,
28222,
18,
69,
22,
70,
67,
7118,
12,
1125,
13,
365,
6315,
4272,
63,
5709,
6362,
21,
6362,
529,
65,
273,
1244,
1335,
25076,
18,
668,
30,
1342,
468,
364,
12156,
1177,
444,
2562,
2
] |
def readSingleRecordToMSR(self, filename, reclen = -1, dataflag = 1, skipnotdata = 1, verbose = 0, record_number = 0): | def readSingleRecordToMSR(self, filename, reclen= -1, dataflag=1, skipnotdata=1, verbose=0, record_number=0): | def readFileToTraceGroup(self, filename, reclen = -1, timetol = -1, sampratetol = -1, dataflag = 1, skipnotdata = 1, dataquality = 1, verbose = 0): """ Reads Mini-SEED data from file. Returns MSTraceGroup structure. @param filename: Name of Mini-SEED file. @param reclen: If reclen is 0 the length of the first record is auto- detected. All subsequent records are then expected to have the same record length. If reclen is negative the length of every record is automatically detected. Defaults to -1. @param timetol: Time tolerance, default to -1 (1/2 sample period). @param sampratetol: Sample rate tolerance, defaults to -1 (rate dependent) @param dataflag: Controls whether data samples are unpacked, defaults to true (0). @param skipnotdata: If true (not zero) any data chunks read that to do not have valid data record indicators will be skipped. Defaults to true (1). @param dataquality: If the dataquality flag is true traces will be grouped by quality in addition to the source name identifiers. Defaults to true (1). @param verbose: Controls verbosity from 0 to 2. Defaults to None (0). """ # Creates MSTraceGroup Structure mstg = C.pointer(MSTraceGroup()) # Uses libmseed to read the file and populate the MSTraceGroup errcode = clibmseed.ms_readtraces( C.pointer(mstg), str(filename), C.c_int(reclen), C.c_double(timetol), C.c_double(sampratetol), C.c_short(dataquality), C.c_short(skipnotdata), C.c_short(dataflag), C.c_short(verbose)) if errcode != 0: assert 0, "\n\nError while reading Mini-SEED file: " + filename return mstg | da81b4ce7064a28a168b56663efe435b307a52d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/da81b4ce7064a28a168b56663efe435b307a52d4/libmseed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10413,
774,
3448,
1114,
12,
2890,
16,
1544,
16,
283,
830,
275,
273,
300,
21,
16,
26668,
355,
273,
300,
21,
16,
16260,
683,
270,
278,
355,
273,
300,
21,
16,
501,
6420,
273,
404,
16,
2488,
902,
892,
273,
404,
16,
501,
16495,
273,
404,
16,
3988,
273,
374,
4672,
3536,
29185,
27987,
17,
1090,
2056,
501,
628,
585,
18,
2860,
490,
882,
9963,
1114,
3695,
18,
225,
632,
891,
1544,
30,
1770,
434,
27987,
17,
1090,
2056,
585,
18,
632,
891,
283,
830,
275,
30,
971,
283,
830,
275,
353,
374,
326,
769,
434,
326,
1122,
1409,
353,
3656,
17,
8316,
18,
4826,
10815,
3853,
854,
1508,
2665,
358,
1240,
326,
1967,
1409,
769,
18,
971,
283,
830,
275,
353,
6092,
326,
769,
434,
3614,
1409,
353,
6635,
8316,
18,
14159,
358,
300,
21,
18,
632,
891,
26668,
355,
30,
2647,
10673,
16,
805,
358,
300,
21,
261,
21,
19,
22,
3296,
3879,
2934,
632,
891,
16260,
683,
270,
278,
355,
30,
11474,
4993,
10673,
16,
3467,
358,
300,
21,
261,
5141,
10460,
13,
632,
891,
501,
6420,
30,
8888,
87,
2856,
501,
5216,
854,
24195,
16,
3467,
358,
638,
261,
20,
2934,
632,
891,
2488,
902,
892,
30,
971,
638,
261,
902,
3634,
13,
1281,
501,
6055,
855,
716,
358,
741,
486,
1240,
923,
501,
1409,
27121,
903,
506,
9700,
18,
14159,
358,
638,
261,
21,
2934,
632,
891,
501,
16495,
30,
971,
326,
501,
16495,
2982,
353,
638,
19649,
903,
506,
10303,
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,
10413,
774,
3448,
1114,
12,
2890,
16,
1544,
16,
283,
830,
275,
273,
300,
21,
16,
26668,
355,
273,
300,
21,
16,
16260,
683,
270,
278,
355,
273,
300,
21,
16,
501,
6420,
273,
404,
16,
2488,
902,
892,
273,
404,
16,
501,
16495,
273,
404,
16,
3988,
273,
374,
4672,
3536,
29185,
27987,
17,
1090,
2056,
501,
628,
585,
18,
2860,
490,
882,
9963,
1114,
3695,
18,
225,
632,
891,
1544,
30,
1770,
434,
27987,
17,
1090,
2056,
585,
18,
632,
891,
283,
830,
275,
30,
971,
283,
830,
275,
353,
374,
326,
769,
434,
326,
1122,
1409,
353,
3656,
17,
8316,
18,
4826,
10815,
3853,
854,
1508,
2665,
358,
1240,
326,
1967,
1409,
769,
18,
971,
2
] |
"""Returns current line number within a string, counting newlines as line separators | """Returns current line number within a string, counting newlines as line separators. | def lineno(loc,strg): """Returns current line number within a string, counting newlines as line separators The first line is number 1. """ return strg.count("\n",0,loc) + 1 | a4a9edc430c1f433f7d01c71c795b1656411c38c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12364/a4a9edc430c1f433f7d01c71c795b1656411c38c/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7586,
12,
1829,
16,
701,
75,
4672,
3536,
1356,
783,
980,
1300,
3470,
279,
533,
16,
22075,
19181,
487,
980,
14815,
18,
1021,
1122,
980,
353,
1300,
404,
18,
3536,
327,
609,
75,
18,
1883,
31458,
82,
3113,
20,
16,
1829,
13,
397,
404,
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,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181,
487,
980,
14815,
18,
1021,
1122,
980,
353,
1300,
404,
18,
3536,
327,
609,
75,
18,
1883,
31458,
82,
3113,
20,
16,
1829,
13,
397,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.feedUnaryFloatOperation(in_data, expected_data, builtins.Sin) | self.feedBuiltin(in_data, builtins.Sin) | def testSin(self): in_data = [0.0, 1.0, 4.0, -1.0, -4.0, 10.0] expected_data = [0.0, 0.841470984808, -0.756802495308, -0.841470984808, 0.756802495308, -0.544021110889] self.feedUnaryFloatOperation(in_data, expected_data, builtins.Sin) | cc8fa694fe2a35a8d4a0dd6abe32834453e713e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10307/cc8fa694fe2a35a8d4a0dd6abe32834453e713e8/test_builtins.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
55,
267,
12,
2890,
4672,
316,
67,
892,
273,
306,
20,
18,
20,
16,
404,
18,
20,
16,
1059,
18,
20,
16,
300,
21,
18,
20,
16,
300,
24,
18,
20,
16,
1728,
18,
20,
65,
2665,
67,
892,
273,
306,
20,
18,
20,
16,
374,
18,
5193,
29488,
5908,
5193,
3672,
28,
16,
300,
20,
18,
27,
4313,
31644,
7616,
25,
5082,
28,
16,
300,
20,
18,
5193,
29488,
5908,
5193,
3672,
28,
16,
374,
18,
27,
4313,
31644,
7616,
25,
5082,
28,
16,
300,
20,
18,
25,
6334,
3103,
2499,
2163,
5482,
29,
65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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
55,
267,
12,
2890,
4672,
316,
67,
892,
273,
306,
20,
18,
20,
16,
404,
18,
20,
16,
1059,
18,
20,
16,
300,
21,
18,
20,
16,
300,
24,
18,
20,
16,
1728,
18,
20,
65,
2665,
67,
892,
273,
306,
20,
18,
20,
16,
374,
18,
5193,
29488,
5908,
5193,
3672,
28,
16,
300,
20,
18,
27,
4313,
31644,
7616,
25,
5082,
28,
16,
300,
20,
18,
5193,
29488,
5908,
5193,
3672,
28,
16,
374,
18,
27,
4313,
31644,
7616,
25,
5082,
28,
16,
300,
20,
18,
25,
6334,
3103,
2499,
2163,
5482,
29,
65,
365,
18,
7848,
15972,
4723,
2988,
12,
267,
67,
892,
16,
2665,
67,
892,
16,
6650,
2679,
18,
55,
267,
13,
2
] |
A->A B->G C->F D->G E->G F->F G->G H->G I->A J->G K->A L->A M->G | A->A B->G C->F D->G E->G F->F G->G H->G I->A J->G K->A L->A M->G | ... def __str__(self): | 7bada064f17fe94764857ba822d8ce942b636aca /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/7bada064f17fe94764857ba822d8ce942b636aca/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
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,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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,
1372,
377,
1652,
1001,
701,
972,
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
] |
left join stock_picking p on (m.picking_id=p.id) left join product_product pp on (m.product_id=pp.id) left join product_template pt on (pp.product_tmpl_id=pt.id) left join product_uom u on (m.product_uom=u.id) left join stock_location l on (m.location_id=l.id) group by | LEFT JOIN stock_picking p ON (m.picking_id=p.id) LEFT JOIN product_product pp ON (m.product_id=pp.id) LEFT JOIN product_template pt ON (pp.product_tmpl_id=pt.id) LEFT JOIN product_uom u ON (m.product_uom=u.id) LEFT JOIN stock_location l ON (m.location_id=l.id) GROUP BY | def init(self, cr): tools.drop_view_if_exists(cr, 'report_stock_inventory') cr.execute(""" | 70911f1e6859e4f03d8351e60e310cc25e5794f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/70911f1e6859e4f03d8351e60e310cc25e5794f9/report_stock_move.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
8513,
18,
7285,
67,
1945,
67,
430,
67,
1808,
12,
3353,
16,
296,
6006,
67,
15381,
67,
26024,
6134,
4422,
18,
8837,
2932,
3660,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
8513,
18,
7285,
67,
1945,
67,
430,
67,
1808,
12,
3353,
16,
296,
6006,
67,
15381,
67,
26024,
6134,
4422,
18,
8837,
2932,
3660,
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
] |
v = model.Person('hacker', '[email protected]', | v = model.core.Person('hacker', '[email protected]', | def test_create(self): """Test creation of a Submission object""" self.model = 'submission.Submission' | 41d9ae5f909a58b749142d2b3ba3cfd27cb58570 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/41d9ae5f909a58b749142d2b3ba3cfd27cb58570/test_submission.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2640,
12,
2890,
4672,
3536,
4709,
6710,
434,
279,
2592,
3951,
733,
8395,
225,
365,
18,
2284,
273,
296,
12684,
18,
17865,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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12684,
18,
17865,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if seg and reg in _REGMAP: return idaapi.SetDefaultRegisterValue(seg, _REGMAP[reg], value) | reg = idaapi.str2reg(reg); if seg and reg >= 0: return idaapi.SetDefaultRegisterValue(seg, reg, value) | def SetSegDefReg(ea, reg, value): """ Set default segment register value for a segment @param ea: any address in the segment if no segment is present at the specified address then all segments will be affected @param reg: name of segment register @param value: default value of the segment register. -1-undefined. """ seg = idaapi.getseg(ea) if seg and reg in _REGMAP: return idaapi.SetDefaultRegisterValue(seg, _REGMAP[reg], value) else: return False | d7c6f94f08492db2c5746018864f511714e64efc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4773/d7c6f94f08492db2c5746018864f511714e64efc/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
3289,
3262,
1617,
12,
24852,
16,
960,
16,
460,
4672,
3536,
1000,
805,
3267,
1744,
460,
364,
279,
3267,
225,
632,
891,
24164,
30,
1281,
1758,
316,
326,
3267,
309,
1158,
3267,
353,
3430,
622,
326,
1269,
1758,
1508,
777,
5155,
903,
506,
9844,
632,
891,
960,
30,
508,
434,
3267,
1744,
632,
891,
460,
30,
805,
460,
434,
326,
3267,
1744,
18,
300,
21,
17,
5978,
18,
3536,
2291,
273,
612,
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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,
1000,
3289,
3262,
1617,
12,
24852,
16,
960,
16,
460,
4672,
3536,
1000,
805,
3267,
1744,
460,
364,
279,
3267,
225,
632,
891,
24164,
30,
1281,
1758,
316,
326,
3267,
309,
1158,
3267,
353,
3430,
622,
326,
1269,
1758,
1508,
777,
5155,
903,
506,
9844,
632,
891,
960,
30,
508,
434,
3267,
1744,
632,
891,
460,
30,
805,
460,
434,
326,
3267,
1744,
18,
300,
21,
17,
5978,
18,
3536,
2291,
273,
612,
69,
2425,
18,
588,
5680,
12,
24852,
13,
225,
960,
273,
612,
69,
2425,
18,
701,
22,
1574,
12,
1574,
1769,
309,
2291,
471,
960,
1545,
374,
30,
327,
612,
69,
2425,
18,
694,
1868,
3996,
620,
12,
5680,
16,
960,
16,
460,
13,
469,
2
] |
print 'request', self.path, self.input | def delegate(self, *args): self.args = args self.input = web.input(_method='GET') self.path = web.ctx.path if web.ctx.method in ['POST', 'PUT']: self.data = web.data() else: self.data = None headers = dict((k[len('HTTP_'):].replace('-', '_').lower(), v) for k, v in web.ctx.environ.items()) self.before_request() try: print 'request', self.path, self.input server = web.config.infobase_server req = urllib2.Request(server + self.path + '?' + urllib.urlencode(self.input), self.data, headers=headers) response = urllib2.urlopen(req) except urllib2.HTTPError, e: response = e self.status_code = response.code self.status_msg = response.msg self.output = response.read() self.headers = dict(response.headers.items()) for k in ['transfer-encoding', 'server', 'connection', 'date']: self.headers.pop(k, None) if self.status_code == 200: self.after_request() else: self.process_error() | c6110a31b35829199f1e2c5d882a70b14e4fea79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/c6110a31b35829199f1e2c5d882a70b14e4fea79/adapter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7152,
12,
2890,
16,
380,
1968,
4672,
365,
18,
1968,
273,
833,
365,
18,
2630,
273,
3311,
18,
2630,
24899,
2039,
2218,
3264,
6134,
365,
18,
803,
273,
3311,
18,
5900,
18,
803,
225,
309,
3311,
18,
5900,
18,
2039,
316,
10228,
3798,
2187,
296,
4762,
3546,
30,
365,
18,
892,
273,
3311,
18,
892,
1435,
469,
30,
365,
18,
892,
273,
599,
225,
1607,
273,
2065,
12443,
79,
63,
1897,
2668,
3693,
4623,
4672,
8009,
2079,
2668,
17,
2187,
4427,
2934,
8167,
9334,
331,
13,
364,
417,
16,
331,
316,
3311,
18,
5900,
18,
28684,
18,
3319,
10756,
225,
365,
18,
5771,
67,
2293,
1435,
775,
30,
1438,
273,
3311,
18,
1425,
18,
1376,
1969,
67,
3567,
1111,
273,
11527,
22,
18,
691,
12,
3567,
397,
365,
18,
803,
397,
6787,
397,
11527,
18,
718,
3015,
12,
2890,
18,
2630,
3631,
365,
18,
892,
16,
1607,
33,
2485,
13,
766,
273,
11527,
22,
18,
295,
18589,
12,
3658,
13,
1335,
11527,
22,
18,
3693,
668,
16,
425,
30,
766,
273,
425,
365,
18,
2327,
67,
710,
273,
766,
18,
710,
365,
18,
2327,
67,
3576,
273,
766,
18,
3576,
365,
18,
2844,
273,
766,
18,
896,
1435,
225,
365,
18,
2485,
273,
2065,
12,
2740,
18,
2485,
18,
3319,
10756,
364,
417,
316,
10228,
13866,
17,
5999,
2187,
296,
3567,
2187,
296,
4071,
2187,
296,
712,
3546,
30,
365,
18,
2485,
18,
5120,
12,
79,
16,
599,
13,
225,
309,
365,
18,
2327,
67,
710,
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,
7152,
12,
2890,
16,
380,
1968,
4672,
365,
18,
1968,
273,
833,
365,
18,
2630,
273,
3311,
18,
2630,
24899,
2039,
2218,
3264,
6134,
365,
18,
803,
273,
3311,
18,
5900,
18,
803,
225,
309,
3311,
18,
5900,
18,
2039,
316,
10228,
3798,
2187,
296,
4762,
3546,
30,
365,
18,
892,
273,
3311,
18,
892,
1435,
469,
30,
365,
18,
892,
273,
599,
225,
1607,
273,
2065,
12443,
79,
63,
1897,
2668,
3693,
4623,
4672,
8009,
2079,
2668,
17,
2187,
4427,
2934,
8167,
9334,
331,
13,
364,
417,
16,
331,
316,
3311,
18,
5900,
18,
28684,
18,
3319,
10756,
225,
365,
18,
5771,
67,
2293,
1435,
775,
30,
1438,
273,
3311,
18,
1425,
18,
1376,
1969,
67,
3567,
2
] |
|
scheduler = '' | def killTask(self, taskSpecId): """ | 816c7c30814438d8c9489740376256b3aef8ff85 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/816c7c30814438d8c9489740376256b3aef8ff85/BossLiteKiller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
2174,
12,
2890,
16,
1562,
1990,
548,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
|
logo_height = IntOption('header_logo', 'height', 73, | logo_height = IntOption('header_logo', 'height', -1, | def get_templates_dirs(): """Return a list of directories containing the provided ClearSilver templates. """ | 83d832e55124e84ac351ee9e326cc862aae4d910 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/83d832e55124e84ac351ee9e326cc862aae4d910/chrome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8502,
67,
8291,
13332,
3536,
990,
279,
666,
434,
6402,
4191,
326,
2112,
10121,
19740,
502,
5539,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8502,
67,
8291,
13332,
3536,
990,
279,
666,
434,
6402,
4191,
326,
2112,
10121,
19740,
502,
5539,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return None | from mwlib.siteinfo import get_siteinfo return get_siteinfo('de') | def get_siteinfo(self): return None | 6d9052ea107159ebe39a82fd9c2bfea63d45fa46 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/6d9052ea107159ebe39a82fd9c2bfea63d45fa46/test_zipcreator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4256,
1376,
12,
2890,
4672,
628,
14721,
2941,
18,
4256,
1376,
1930,
336,
67,
4256,
1376,
327,
336,
67,
4256,
1376,
2668,
323,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4256,
1376,
12,
2890,
4672,
628,
14721,
2941,
18,
4256,
1376,
1930,
336,
67,
4256,
1376,
327,
336,
67,
4256,
1376,
2668,
323,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise SMTPServerDisconnected | raise SMTPServerDisconnected('please run connect() first') | def send(self, str): """Send `str' to the server.""" if self.debuglevel > 0: print 'send:', `str` if self.sock: try: self.sock.send(str) except socket.error: raise SMTPServerDisconnected else: raise SMTPServerDisconnected | 6db5b8e16dd193fbed573cb344da0a84b1bbe19f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/6db5b8e16dd193fbed573cb344da0a84b1bbe19f/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
609,
4672,
3536,
3826,
1375,
701,
11,
358,
326,
1438,
12123,
309,
365,
18,
4148,
2815,
405,
374,
30,
1172,
296,
4661,
30,
2187,
1375,
701,
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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,
1366,
12,
2890,
16,
609,
4672,
3536,
3826,
1375,
701,
11,
358,
326,
1438,
12123,
309,
365,
18,
4148,
2815,
405,
374,
30,
1172,
296,
4661,
30,
2187,
1375,
701,
68,
309,
365,
18,
15031,
30,
775,
30,
365,
18,
15031,
18,
4661,
12,
701,
13,
1335,
2987,
18,
1636,
30,
1002,
18102,
2081,
26303,
2668,
1802,
448,
1086,
3077,
1435,
1122,
6134,
469,
30,
1002,
18102,
2081,
26303,
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
] |
temp = (array(hcol), array(hrow)) print temp return temp | return (array(hcol), array(hrow)) | def eval_h(x, lagrange, obj_factor, flag, user_data = None): if flag: #print "Here" hrow = [0, 1, 1, 2, 2, 2, 3, 3, 3, 3] hcol = [0, 0, 1, 0, 1, 2, 0, 1, 2, 3] temp = (array(hcol), array(hrow)) print temp return temp else: print "H called" print obj_factor print x print lagrange values = zeros((10), float_) values[0] = obj_factor * (2*x[3]) values[1] = obj_factor * (x[3]) values[2] = 0 values[3] = obj_factor * (x[3]) values[4] = 0 values[5] = 0 values[6] = obj_factor * (2*x[0] + x[1] + x[2]) values[7] = obj_factor * (x[0]) values[8] = obj_factor * (x[0]) values[9] = 0 values[1] += lagrange[0] * (x[2] * x[3]) values[3] += lagrange[0] * (x[1] * x[3]) values[4] += lagrange[0] * (x[0] * x[3]) values[6] += lagrange[0] * (x[1] * x[2]) values[7] += lagrange[0] * (x[0] * x[2]) values[8] += lagrange[0] * (x[0] * x[1]) values[0] += lagrange[1] * 2 values[2] += lagrange[1] * 2 values[5] += lagrange[1] * 2 values[9] += lagrange[1] * 2 print values return values | f07713a9801aa2bfe7badd1fd535cca44424eea5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12033/f07713a9801aa2bfe7badd1fd535cca44424eea5/example.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
67,
76,
12,
92,
16,
17241,
3676,
16,
1081,
67,
6812,
16,
2982,
16,
729,
67,
892,
273,
599,
4672,
309,
2982,
30,
468,
1188,
315,
26715,
6,
366,
492,
273,
306,
20,
16,
404,
16,
404,
16,
576,
16,
576,
16,
576,
16,
890,
16,
890,
16,
890,
16,
890,
65,
366,
1293,
273,
306,
20,
16,
374,
16,
404,
16,
374,
16,
404,
16,
576,
16,
374,
16,
404,
16,
576,
16,
890,
65,
327,
261,
1126,
12,
76,
1293,
3631,
526,
12,
76,
492,
3719,
469,
30,
1172,
315,
44,
2566,
6,
1172,
1081,
67,
6812,
1172,
619,
1172,
17241,
3676,
924,
273,
4922,
12443,
2163,
3631,
1431,
67,
13,
924,
63,
20,
65,
273,
1081,
67,
6812,
380,
261,
22,
14,
92,
63,
23,
5717,
924,
63,
21,
65,
273,
1081,
67,
6812,
380,
261,
92,
63,
23,
5717,
924,
63,
22,
65,
273,
374,
924,
63,
23,
65,
273,
1081,
67,
6812,
380,
261,
92,
63,
23,
5717,
924,
63,
24,
65,
273,
374,
924,
63,
25,
65,
273,
374,
924,
63,
26,
65,
273,
1081,
67,
6812,
380,
261,
22,
14,
92,
63,
20,
65,
397,
619,
63,
21,
65,
397,
619,
63,
22,
5717,
924,
63,
27,
65,
273,
1081,
67,
6812,
380,
261,
92,
63,
20,
5717,
924,
63,
28,
65,
273,
1081,
67,
6812,
380,
261,
92,
63,
20,
5717,
924,
63,
29,
65,
273,
374,
924,
63,
21,
65,
1011,
17241,
3676,
63,
20,
65,
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,
5302,
67,
76,
12,
92,
16,
17241,
3676,
16,
1081,
67,
6812,
16,
2982,
16,
729,
67,
892,
273,
599,
4672,
309,
2982,
30,
468,
1188,
315,
26715,
6,
366,
492,
273,
306,
20,
16,
404,
16,
404,
16,
576,
16,
576,
16,
576,
16,
890,
16,
890,
16,
890,
16,
890,
65,
366,
1293,
273,
306,
20,
16,
374,
16,
404,
16,
374,
16,
404,
16,
576,
16,
374,
16,
404,
16,
576,
16,
890,
65,
327,
261,
1126,
12,
76,
1293,
3631,
526,
12,
76,
492,
3719,
469,
30,
1172,
315,
44,
2566,
6,
1172,
1081,
67,
6812,
1172,
619,
1172,
17241,
3676,
924,
273,
4922,
12443,
2163,
3631,
1431,
67,
13,
924,
63,
20,
65,
2
] |
if len(changesFile) > 0: | if len(self.changesFile) > 0: | def run(self, args): self.branch = "refs/heads/" + self.branch self.globalPrefix = self.previousDepotPath = os.popen("git-repo-config --get p4.depotpath").read() if len(self.globalPrefix) != 0: self.globalPrefix = self.globalPrefix[:-1] | 19d73797bca78a225d3ddc0134a33ec0ce48b167 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12824/19d73797bca78a225d3ddc0134a33ec0ce48b167/git-p4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
833,
4672,
365,
18,
7500,
273,
315,
9316,
19,
20263,
4898,
397,
365,
18,
7500,
365,
18,
6347,
2244,
273,
365,
18,
11515,
758,
13130,
743,
273,
1140,
18,
84,
3190,
2932,
6845,
17,
7422,
17,
1425,
1493,
588,
293,
24,
18,
323,
13130,
803,
20387,
896,
1435,
309,
562,
12,
2890,
18,
6347,
2244,
13,
480,
374,
30,
365,
18,
6347,
2244,
273,
365,
18,
6347,
2244,
10531,
17,
21,
65,
2,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
833,
4672,
365,
18,
7500,
273,
315,
9316,
19,
20263,
4898,
397,
365,
18,
7500,
365,
18,
6347,
2244,
273,
365,
18,
11515,
758,
13130,
743,
273,
1140,
18,
84,
3190,
2932,
6845,
17,
7422,
17,
1425,
1493,
588,
293,
24,
18,
323,
13130,
803,
20387,
896,
1435,
309,
562,
12,
2890,
18,
6347,
2244,
13,
480,
374,
30,
365,
18,
6347,
2244,
273,
365,
18,
6347,
2244,
10531,
17,
21,
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
] |
return key and [i for __, i in lst] or lst | return [i[-1] for i in lst] | def sorted(iterable, cmp=None, key=None, reverse=False): """Partial implementation of the "sorted" function from Python 2.4""" lst = key and [(key(i), i) for i in iterable] or list(iterable) lst.sort() if reverse: lst = reversed(lst) return key and [i for __, i in lst] or lst | 3b2fbe5b648b457a98eae9daf17c7f1d0637fb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/3b2fbe5b648b457a98eae9daf17c7f1d0637fb02/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3115,
12,
15364,
16,
9411,
33,
7036,
16,
498,
33,
7036,
16,
4219,
33,
8381,
4672,
3536,
9447,
4471,
434,
326,
315,
10350,
6,
445,
628,
6600,
576,
18,
24,
8395,
9441,
273,
498,
471,
306,
12,
856,
12,
77,
3631,
277,
13,
364,
277,
316,
6087,
65,
578,
666,
12,
15364,
13,
9441,
18,
3804,
1435,
309,
4219,
30,
9441,
273,
9553,
12,
16923,
13,
327,
498,
471,
306,
77,
364,
1001,
16,
277,
316,
9441,
65,
578,
9441,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3115,
12,
15364,
16,
9411,
33,
7036,
16,
498,
33,
7036,
16,
4219,
33,
8381,
4672,
3536,
9447,
4471,
434,
326,
315,
10350,
6,
445,
628,
6600,
576,
18,
24,
8395,
9441,
273,
498,
471,
306,
12,
856,
12,
77,
3631,
277,
13,
364,
277,
316,
6087,
65,
578,
666,
12,
15364,
13,
9441,
18,
3804,
1435,
309,
4219,
30,
9441,
273,
9553,
12,
16923,
13,
327,
498,
471,
306,
77,
364,
1001,
16,
277,
316,
9441,
65,
578,
9441,
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
] |
usage() | usage() | def main(argv): try: opts, args = getopt.getopt(argv, "hb:p:cd", ["help", "binary=", "profileName=", "clobber"]) except getopt.GetoptError: usage() sys.exit(2) binary = "" profileName = "default" clobber=0 for o,a in opts: if o in ("-h", "--help"): usage() sys.exit() if o in ("-b","--binary"): binary=a if o in ("-p","--profileName"): profileName=a if o in ("-c","--clobber"): clobber=1 if binary=="" or not os.path.exists(binary): usage() sys.exit(2) profileLocation = runCreateProfile(binary,profileName) if not profileLocation or not os.path.exists(profileLocation): print "Couldn't find profile location" sys.exit(2) # Delete the existing profile directory if clobber is requested. # -CreateProfile will re-create it in the right place. if clobber: dirname = os.path.dirname(profileLocation) shutil.rmtree(dirname) profileLocation = runCreateProfile(binary,profileName) if not profileLocation or not os.path.exists(profileLocation): print "Couldn't find profile location on second pass" sys.exit(2) populatePrefs(profileLocation) | 3dd9b6fa2752be865565e32c8b6744cb98f0c30c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/3dd9b6fa2752be865565e32c8b6744cb98f0c30c/createTestingProfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
19485,
16,
315,
76,
70,
30,
84,
30,
4315,
3113,
8247,
5201,
3113,
315,
8578,
1546,
16,
315,
5040,
461,
1546,
16,
315,
71,
1295,
744,
6,
5717,
1335,
336,
3838,
18,
967,
3838,
668,
30,
4084,
1435,
2589,
18,
8593,
12,
22,
13,
225,
3112,
273,
1408,
3042,
461,
273,
315,
1886,
6,
30152,
33,
20,
364,
320,
16,
69,
316,
1500,
30,
309,
320,
316,
7566,
17,
76,
3113,
5238,
5201,
6,
4672,
4084,
1435,
2589,
18,
8593,
1435,
309,
320,
316,
7566,
17,
70,
15937,
413,
8578,
6,
4672,
3112,
33,
69,
309,
320,
316,
7566,
17,
84,
15937,
413,
5040,
461,
6,
4672,
3042,
461,
33,
69,
309,
320,
316,
7566,
17,
71,
15937,
413,
71,
1295,
744,
6,
4672,
30152,
33,
21,
309,
3112,
631,
3660,
578,
486,
1140,
18,
803,
18,
1808,
12,
8578,
4672,
4084,
1435,
2589,
18,
8593,
12,
22,
13,
225,
3042,
2735,
273,
1086,
1684,
4029,
12,
8578,
16,
5040,
461,
13,
309,
486,
3042,
2735,
578,
486,
1140,
18,
803,
18,
1808,
12,
5040,
2735,
4672,
1172,
315,
16342,
1404,
1104,
3042,
2117,
6,
2589,
18,
8593,
12,
22,
13,
468,
2504,
326,
2062,
3042,
1867,
309,
30152,
353,
3764,
18,
468,
300,
1684,
4029,
903,
283,
17,
2640,
518,
316,
326,
2145,
3166,
18,
309,
30152,
30,
4283,
273,
1140,
18,
803,
18,
12287,
12,
5040,
2735,
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,
2774,
12,
19485,
4672,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
19485,
16,
315,
76,
70,
30,
84,
30,
4315,
3113,
8247,
5201,
3113,
315,
8578,
1546,
16,
315,
5040,
461,
1546,
16,
315,
71,
1295,
744,
6,
5717,
1335,
336,
3838,
18,
967,
3838,
668,
30,
4084,
1435,
2589,
18,
8593,
12,
22,
13,
225,
3112,
273,
1408,
3042,
461,
273,
315,
1886,
6,
30152,
33,
20,
364,
320,
16,
69,
316,
1500,
30,
309,
320,
316,
7566,
17,
76,
3113,
5238,
5201,
6,
4672,
4084,
1435,
2589,
18,
8593,
1435,
309,
320,
316,
7566,
17,
70,
15937,
413,
8578,
6,
4672,
3112,
33,
69,
309,
320,
316,
7566,
17,
84,
15937,
2
] |
def layout_banner(maxheight, session): | def layout_banner(maxheight, session, baseurl): | def layout_banner(maxheight, session): """calculates dimensions, image name for banner""" logo_width, logo_height = min((98*maxheight/130, maxheight), (98, 130)) banner_width, banner_height = min((290*maxheight/160, maxheight), (290, 160)) if logo_width <= 61: logo_image = getattr(getattr(session.instance, "logos", None), "medium", "/images/pootle-medium.png") else: logo_image = getattr(getattr(session.instance, "logos", None), "normal", "/images/pootle.png") banner_image = getattr(getattr(session.instance, "logos", None), "banner", "/images/WordForge-white.png") return {"logo_width": logo_width, "logo_height": logo_height, "banner_width": banner_width, "banner_height": banner_height, "logo_image": logo_image, "banner_image": banner_image} | 4ec0ef2508050836566698fb746f963104a1e896 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11388/4ec0ef2508050836566698fb746f963104a1e896/pagelayout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3511,
67,
16563,
12,
1896,
4210,
16,
1339,
16,
25427,
4672,
3536,
12780,
815,
5769,
16,
1316,
508,
364,
14090,
8395,
19128,
67,
2819,
16,
19128,
67,
4210,
273,
1131,
12443,
10689,
14,
1896,
4210,
19,
24417,
16,
943,
4210,
3631,
261,
10689,
16,
404,
5082,
3719,
14090,
67,
2819,
16,
14090,
67,
4210,
273,
1131,
12443,
5540,
20,
14,
1896,
4210,
19,
16874,
16,
943,
4210,
3631,
261,
5540,
20,
16,
25430,
3719,
225,
309,
19128,
67,
2819,
1648,
17845,
30,
19128,
67,
2730,
273,
3869,
12,
588,
1747,
12,
3184,
18,
1336,
16,
315,
1330,
538,
3113,
599,
3631,
315,
19011,
3113,
2206,
7369,
19,
1631,
352,
298,
17,
19011,
18,
6446,
7923,
469,
30,
19128,
67,
2730,
273,
3869,
12,
588,
1747,
12,
3184,
18,
1336,
16,
315,
1330,
538,
3113,
599,
3631,
315,
6130,
3113,
2206,
7369,
19,
1631,
352,
298,
18,
6446,
7923,
14090,
67,
2730,
273,
3869,
12,
588,
1747,
12,
3184,
18,
1336,
16,
315,
1330,
538,
3113,
599,
3631,
315,
16563,
3113,
2206,
7369,
19,
3944,
1290,
908,
17,
14739,
18,
6446,
7923,
327,
12528,
19882,
67,
2819,
6877,
19128,
67,
2819,
16,
315,
19882,
67,
4210,
6877,
19128,
67,
4210,
16,
315,
16563,
67,
2819,
6877,
14090,
67,
2819,
16,
315,
16563,
67,
4210,
6877,
14090,
67,
4210,
16,
315,
19882,
67,
2730,
6877,
19128,
67,
2730,
16,
315,
16563,
67,
2730,
6877,
14090,
67,
2730,
97,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3511,
67,
16563,
12,
1896,
4210,
16,
1339,
16,
25427,
4672,
3536,
12780,
815,
5769,
16,
1316,
508,
364,
14090,
8395,
19128,
67,
2819,
16,
19128,
67,
4210,
273,
1131,
12443,
10689,
14,
1896,
4210,
19,
24417,
16,
943,
4210,
3631,
261,
10689,
16,
404,
5082,
3719,
14090,
67,
2819,
16,
14090,
67,
4210,
273,
1131,
12443,
5540,
20,
14,
1896,
4210,
19,
16874,
16,
943,
4210,
3631,
261,
5540,
20,
16,
25430,
3719,
225,
309,
19128,
67,
2819,
1648,
17845,
30,
19128,
67,
2730,
273,
3869,
12,
588,
1747,
12,
3184,
18,
1336,
16,
315,
1330,
538,
3113,
599,
3631,
315,
19011,
3113,
2206,
7369,
19,
1631,
352,
298,
17,
19011,
18,
6446,
7923,
469,
30,
19128,
2
] |
Subsets and Splits