rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
self.serverSocket.push(cooked + '\r\n') | self.serverSocket.push(cooked) | def found_terminator(self): """Asynchat override.""" verb = self.request.strip().upper() if verb == 'KILL': self.socket.shutdown(2) self.close() raise SystemExit | ee1dfb7d5ed0e8c3724fa999640a7317aaf4a67b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/ee1dfb7d5ed0e8c3724fa999640a7317aaf4a67b/smtpproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1392,
67,
9505,
639,
12,
2890,
4672,
3536,
1463,
2515,
270,
3849,
12123,
6405,
273,
365,
18,
2293,
18,
6406,
7675,
5797,
1435,
309,
6405,
422,
296,
47,
15125,
4278,
365,
18,
7814,
18,
15132,
12,
22,
13,
365,
18,
4412,
1435,
1002,
25454,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
13,
365,
18,
4412,
1435,
1002,
25454,
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
] |
Compares strings after stripping off 'The' to be "smarter" Also obviously ignores the full path when looking for 'The' | Compares strings after stripping off 'The' and 'A' to be 'smarter' Also obviously ignores the full path when looking for 'The' and 'A' | def smartsort(x,y): # A compare function for use in list.sort() """ Compares strings after stripping off 'The' to be "smarter" Also obviously ignores the full path when looking for 'The' """ m = os.path.basename(x) n = os.path.basename(y) if m.find('The ') == 0: m = m.replace('The ','',1) if n.find('The ') == 0: n = n.replace('The ','',1) return cmp(m.upper(),n.upper()) # be case insensitive | 547b910d2acd2b253c27764814e7d3eec82cc495 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/547b910d2acd2b253c27764814e7d3eec82cc495/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13706,
3804,
12,
92,
16,
93,
4672,
468,
432,
3400,
445,
364,
999,
316,
666,
18,
3804,
1435,
3536,
5427,
4807,
2064,
1839,
2569,
1382,
3397,
296,
1986,
11,
471,
296,
37,
11,
358,
506,
296,
87,
3684,
387,
11,
8080,
28067,
715,
17868,
326,
1983,
589,
1347,
7849,
364,
296,
1986,
11,
471,
296,
37,
11,
3536,
312,
273,
1140,
18,
803,
18,
13909,
12,
92,
13,
290,
273,
1140,
18,
803,
18,
13909,
12,
93,
13,
225,
309,
312,
18,
4720,
2668,
1986,
8624,
422,
374,
30,
312,
273,
312,
18,
2079,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13706,
3804,
12,
92,
16,
93,
4672,
468,
432,
3400,
445,
364,
999,
316,
666,
18,
3804,
1435,
3536,
5427,
4807,
2064,
1839,
2569,
1382,
3397,
296,
1986,
11,
471,
296,
37,
11,
358,
506,
296,
87,
3684,
387,
11,
8080,
28067,
715,
17868,
326,
1983,
589,
1347,
7849,
364,
296,
1986,
11,
471,
296,
37,
11,
3536,
312,
273,
1140,
18,
803,
18,
13909,
12,
92,
13,
290,
273,
1140,
18,
803,
18,
13909,
12,
93,
13,
225,
309,
312,
18,
4720,
2668,
1986,
8624,
422,
374,
30,
312,
273,
312,
18,
2079,
2668,
1986,
3316,
2187,
21,
13,
309,
290,
18,
4720,
2668,
1986,
8624,
422,
374,
30,
290,
273,
290,
18,
2079,
2668,
1986,
3316,
2
] |
self.Bind( wx.EVT_BUTTON, self.OnTestResizeDivisionButton, btn ) | self.Bind( wx.EVT_BUTTON, self.OnButtonTestResizeDivision, btn ) | def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE ) self.log = log | 6d021842b3ffdeb8b9c605b4f0ac48e94294bf83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6d021842b3ffdeb8b9c605b4f0ac48e94294bf83/ColumnHeader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
982,
16,
613,
262,
30,
7075,
18,
5537,
16186,
2738,
972,
12,
365,
16,
982,
16,
300,
21,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
982,
16,
613,
262,
30,
7075,
18,
5537,
16186,
2738,
972,
12,
365,
16,
982,
16,
300,
21,
16,
2154,
33,
27226,
18,
3417,
67,
18111,
67,
862,
4066,
3217,
67,
673,
67,
862,
4574,
262,
365,
18,
1330,
273,
613,
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
] |
name = m.group (1) | name = m.group (1) | def read_encoding (file): sys.stderr.write(_("Using encoding file: `%s'\n") % file) str = open (file).read () str = re.sub ("%.*", '', str) str = re.sub ("[\n\t \f]+", ' ', str) m = re.search ('/([^ ]+) \[([^\]]+)\] def', str) if not m: raise 'Encoding file invalid.' name = m.group (1) cod = m.group (2) cod = re.sub ('[ /]+', ' ',cod) cods = string.split (cod) return (name, cods) | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
5999,
261,
768,
4672,
2589,
18,
11241,
18,
2626,
24899,
2932,
7736,
2688,
585,
30,
12430,
87,
8314,
82,
7923,
738,
585,
13,
225,
609,
273,
1696,
261,
768,
2934,
896,
1832,
609,
273,
283,
18,
1717,
7566,
9,
4509,
3113,
10226,
609,
13,
609,
273,
283,
18,
1717,
7566,
7438,
82,
64,
88,
521,
74,
3737,
3113,
296,
2265,
609,
13,
312,
273,
283,
18,
3072,
7707,
19,
8178,
308,
6975,
521,
63,
19042,
65,
16004,
65,
1652,
2187,
609,
13,
309,
486,
312,
30,
1002,
296,
4705,
585,
2057,
1093,
225,
508,
273,
312,
18,
1655,
261,
21,
13,
11012,
273,
312,
18,
1655,
261,
22,
13,
11012,
273,
283,
18,
1717,
7707,
63,
342,
3737,
2187,
296,
2265,
1559,
13,
11012,
87,
273,
533,
18,
4939,
261,
1559,
13,
225,
327,
261,
529,
16,
11012,
87,
13,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
5999,
261,
768,
4672,
2589,
18,
11241,
18,
2626,
24899,
2932,
7736,
2688,
585,
30,
12430,
87,
8314,
82,
7923,
738,
585,
13,
225,
609,
273,
1696,
261,
768,
2934,
896,
1832,
609,
273,
283,
18,
1717,
7566,
9,
4509,
3113,
10226,
609,
13,
609,
273,
283,
18,
1717,
7566,
7438,
82,
64,
88,
521,
74,
3737,
3113,
296,
2265,
609,
13,
312,
273,
283,
18,
3072,
7707,
19,
8178,
308,
6975,
521,
63,
19042,
65,
16004,
65,
1652,
2187,
609,
13,
309,
486,
312,
30,
1002,
296,
4705,
585,
2057,
1093,
225,
508,
273,
312,
18,
1655,
261,
21,
13,
11012,
273,
312,
18,
1655,
261,
22,
13,
11012,
273,
283,
18,
1717,
7707,
63,
2
] |
strip --strip-all "$PREFIX/bin/avformat-52.dll strip --strip-all "$PREFIX/bin/swscale-0.dll strip --strip-all "$PREFIX/bin/avcodec-52.dll strip --strip-all "$PREFIX/bin/avutil-50.dll | strip --strip-all "$PREFIX/bin/avformat-52.dll" strip --strip-all "$PREFIX/bin/swscale-0.dll" strip --strip-all "$PREFIX/bin/avcodec-52.dll" strip --strip-all "$PREFIX/bin/avutil-50.dll" | cat > portmidi.def << 'THE_END' | d8e7af12220da81641445ed5352cb8e24da1e427 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d8e7af12220da81641445ed5352cb8e24da1e427/msys_build_deps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6573,
405,
1756,
13138,
77,
18,
536,
2296,
296,
24644,
67,
4415,
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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
1,
8585,
326,
22398,
316,
326,
981,
30,
6573,
405,
1756,
13138,
77,
18,
536,
2296,
296,
24644,
67,
4415,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if cnt: | if not cnt: | def _result_get(x, keys): if x[1] in keys: return False keys.append(x[1]) if x[3]: model,id = x[2].split(',') id = int(id) fields = self.pool.get(model).fields_get_keys(cr, uid) pos = 0 while pos<len(fields): if fields[pos] in ('report_sxw_content', 'report_rml_content', 'report_sxw', 'report_rml', 'report_sxw_content_data', 'report_rml_content_data'): del fields[pos] else: pos+=1 try: datas = self.pool.get(model).read(cr, uid, [id], fields, context) except except_orm, e: return False datas= datas and datas[0] or None if not datas: #ir_del(cr, uid, x[0]) return False else: datas = pickle.loads(str(x[2].encode('utf-8'))) if meta: meta2 = pickle.loads(x[4]) return (x[0],x[1],datas,meta2) return (x[0],x[1],datas) | fa369ce13c73f32d8763e070322821cfd6a81789 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fa369ce13c73f32d8763e070322821cfd6a81789/ir_values.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2088,
67,
588,
12,
92,
16,
1311,
4672,
309,
619,
63,
21,
65,
316,
1311,
30,
327,
1083,
1311,
18,
6923,
12,
92,
63,
21,
5717,
309,
619,
63,
23,
14542,
938,
16,
350,
273,
619,
63,
22,
8009,
4939,
12,
2187,
6134,
612,
273,
509,
12,
350,
13,
1466,
273,
365,
18,
6011,
18,
588,
12,
2284,
2934,
2821,
67,
588,
67,
2452,
12,
3353,
16,
4555,
13,
949,
273,
374,
1323,
949,
32,
1897,
12,
2821,
4672,
309,
1466,
63,
917,
65,
316,
7707,
6006,
67,
30319,
91,
67,
1745,
2187,
296,
6006,
67,
86,
781,
67,
1745,
2187,
296,
6006,
67,
30319,
91,
2187,
296,
6006,
67,
86,
781,
2187,
296,
6006,
67,
30319,
91,
67,
1745,
67,
892,
2187,
296,
6006,
67,
86,
781,
67,
1745,
67,
892,
11,
4672,
1464,
1466,
63,
917,
65,
469,
30,
949,
15,
33,
21,
775,
30,
5386,
273,
365,
18,
6011,
18,
588,
12,
2284,
2934,
896,
12,
3353,
16,
4555,
16,
306,
350,
6487,
1466,
16,
819,
13,
1335,
1335,
67,
535,
16,
425,
30,
327,
1083,
5386,
33,
5386,
471,
5386,
63,
20,
65,
578,
599,
309,
486,
5386,
30,
468,
481,
67,
3771,
12,
3353,
16,
4555,
16,
619,
63,
20,
5717,
327,
1083,
469,
30,
5386,
273,
13379,
18,
17135,
12,
701,
12,
92,
63,
22,
8009,
3015,
2668,
3158,
17,
28,
11,
20349,
309,
2191,
30,
2191,
22,
273,
13379,
18,
17135,
12,
92,
63,
24,
5717,
327,
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,
2088,
67,
588,
12,
92,
16,
1311,
4672,
309,
619,
63,
21,
65,
316,
1311,
30,
327,
1083,
1311,
18,
6923,
12,
92,
63,
21,
5717,
309,
619,
63,
23,
14542,
938,
16,
350,
273,
619,
63,
22,
8009,
4939,
12,
2187,
6134,
612,
273,
509,
12,
350,
13,
1466,
273,
365,
18,
6011,
18,
588,
12,
2284,
2934,
2821,
67,
588,
67,
2452,
12,
3353,
16,
4555,
13,
949,
273,
374,
1323,
949,
32,
1897,
12,
2821,
4672,
309,
1466,
63,
917,
65,
316,
7707,
6006,
67,
30319,
91,
67,
1745,
2187,
296,
6006,
67,
86,
781,
67,
1745,
2187,
296,
6006,
67,
30319,
91,
2187,
296,
6006,
67,
86,
781,
2187,
296,
6006,
67,
30319,
2
] |
WhoAmI().do(self).chainDeferred(self.addrDiscDef) | self.whoami().chainDeferred(self.addrDiscDef) | def connectionMade(self): WhoAmI().do(self).chainDeferred(self.addrDiscDef) | dc91dae16633444486b1b42443e16f485990c261 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/dc91dae16633444486b1b42443e16f485990c261/q2q.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
49,
2486,
12,
2890,
4672,
3497,
83,
9864,
45,
7675,
2896,
12,
2890,
2934,
5639,
16886,
12,
2890,
18,
4793,
28912,
3262,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1459,
49,
2486,
12,
2890,
4672,
3497,
83,
9864,
45,
7675,
2896,
12,
2890,
2934,
5639,
16886,
12,
2890,
18,
4793,
28912,
3262,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.killer[id].append(txt.lower()) | self.killer[id].append(txt) | def rehash(self): self.killer = {} | 41bc55849b10de09bb9ea394bff3654c54fe83a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11468/41bc55849b10de09bb9ea394bff3654c54fe83a8/AttackPage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
2816,
12,
2890,
4672,
365,
18,
16418,
264,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
283,
2816,
12,
2890,
4672,
365,
18,
16418,
264,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else | else: | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 808) else quickfix.IntField.__init__(self, 808, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
6840,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
6840,
16,
501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
6840,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
6840,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 __init__(self, master=None): """Construct a variable with an optional MASTER as master widget. The variable is named PY_VAR_number in Tcl. | def __init__(self, master=None, value=None, name=None): """Construct a variable MASTER can be given as master widget. VALUE is an optional value (defaults to "") NAME is an optional Tcl name (defaults to PY_VARnum). If NAME matches an existing variable and VALUE is omitted then the existing value is retained. | def __init__(self, master=None): """Construct a variable with an optional MASTER as master widget. The variable is named PY_VAR_number in Tcl. """ global _varnum if not master: master = _default_root self._master = master self._tk = master.tk self._name = 'PY_VAR' + repr(_varnum) _varnum = _varnum + 1 self.set(self._default) | 337487e3b87f887abdb3b47781508c6437cd7e94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/337487e3b87f887abdb3b47781508c6437cd7e94/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
460,
33,
7036,
16,
508,
33,
7036,
4672,
3536,
7249,
279,
2190,
225,
27312,
848,
506,
864,
487,
4171,
3604,
18,
5848,
353,
392,
3129,
460,
261,
7606,
358,
1408,
13,
6048,
353,
392,
3129,
399,
830,
508,
261,
7606,
358,
12191,
67,
7716,
2107,
2934,
225,
971,
6048,
1885,
392,
2062,
2190,
471,
5848,
353,
16195,
1508,
326,
2062,
460,
353,
25227,
18,
3536,
2552,
389,
90,
1303,
379,
309,
486,
4171,
30,
4171,
273,
389,
1886,
67,
3085,
365,
6315,
7525,
273,
4171,
365,
6315,
16099,
273,
4171,
18,
16099,
365,
6315,
529,
273,
296,
16235,
67,
7716,
11,
397,
8480,
24899,
90,
1303,
379,
13,
389,
90,
1303,
379,
273,
389,
90,
1303,
379,
397,
404,
365,
18,
542,
12,
2890,
6315,
1886,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
460,
33,
7036,
16,
508,
33,
7036,
4672,
3536,
7249,
279,
2190,
225,
27312,
848,
506,
864,
487,
4171,
3604,
18,
5848,
353,
392,
3129,
460,
261,
7606,
358,
1408,
13,
6048,
353,
392,
3129,
399,
830,
508,
261,
7606,
358,
12191,
67,
7716,
2107,
2934,
225,
971,
6048,
1885,
392,
2062,
2190,
471,
5848,
353,
16195,
1508,
326,
2062,
460,
353,
25227,
18,
3536,
2552,
389,
90,
1303,
379,
309,
486,
4171,
30,
4171,
273,
389,
1886,
67,
3085,
365,
6315,
7525,
273,
4171,
365,
6315,
16099,
273,
4171,
18,
16099,
365,
6315,
529,
273,
296,
16235,
67,
7716,
11,
397,
8480,
24899,
90,
1303,
379,
13,
2
] |
elif os.path.isfile(file_path): | elif os.path.isfile(file_path) or os.path.islink(file_path): | def revert(self, options, args, file_list): """Reverts local modifications. Subversion specific. | 8e2abc753bb1fd87e1f389dfa04777d9ee09a88d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/8e2abc753bb1fd87e1f389dfa04777d9ee09a88d/gclient_scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
12,
2890,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
12,
2890,
16,
702,
16,
833,
16,
585,
67,
1098,
4672,
3536,
426,
31537,
1191,
17953,
18,
2592,
1589,
2923,
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
] |
self.myRequests[-1].append(self.raw_requestline) | self.myRequests[self.reqidx].append(self.raw_requestline) | def handle_one_request(self): result = self.parentClass.handle_one_request(self) self.myRequests[-1].append(self.raw_requestline) return result | 22d3e135102ba92f29384533c4ed8ce7afaaf554 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/22d3e135102ba92f29384533c4ed8ce7afaaf554/test_xmlrpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
476,
67,
2293,
12,
2890,
4672,
563,
273,
365,
18,
2938,
797,
18,
4110,
67,
476,
67,
2293,
12,
2890,
13,
365,
18,
4811,
6421,
63,
2890,
18,
3658,
3465,
8009,
6923,
12,
2890,
18,
1899,
67,
2293,
1369,
13,
327,
563,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
476,
67,
2293,
12,
2890,
4672,
563,
273,
365,
18,
2938,
797,
18,
4110,
67,
476,
67,
2293,
12,
2890,
13,
365,
18,
4811,
6421,
63,
2890,
18,
3658,
3465,
8009,
6923,
12,
2890,
18,
1899,
67,
2293,
1369,
13,
327,
563,
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.action_error(e) | self.signal('error',{'data':self.data,'type':'exception','error':str(e)}) | def process(self): try: while True: row={} data=self.reader.next() for d in data.contents: row[unicode(d)]=eval('data.'+unicode(d)+'.value') yield row,'main' except IOError,e: self.action_error(e) | b57faef4b4dc5cba3310535b20936f203f0483a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/b57faef4b4dc5cba3310535b20936f203f0483a5/vcard_in.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
775,
30,
1323,
1053,
30,
1027,
12938,
501,
33,
2890,
18,
10530,
18,
4285,
1435,
364,
302,
316,
501,
18,
3980,
30,
1027,
63,
9124,
12,
72,
25887,
33,
8622,
2668,
892,
1093,
15,
9124,
12,
72,
13,
6797,
18,
1132,
6134,
2824,
1027,
11189,
5254,
11,
1335,
8340,
16,
73,
30,
365,
18,
1128,
67,
1636,
12,
73,
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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
4285,
1435,
364,
302,
316,
501,
18,
3980,
30,
1027,
63,
9124,
12,
72,
25887,
33,
8622,
2668,
892,
1093,
15,
9124,
12,
72,
13,
6797,
18,
1132,
6134,
2824,
1027,
11189,
5254,
11,
1335,
8340,
16,
73,
30,
365,
18,
1128,
67,
1636,
12,
73,
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
] |
fullname = os.path.join(ConfigDir, filename) | fullname = os.path.join(wc.ConfigDir, filename) | def update (config, baseurl, dryrun=False, log=None): """Update the given configuration object with .zap files found at baseurl. If dryrun is True, only print out the changes but do nothing throws IOError on error """ url = baseurl+"filter-md5sums.txt" try: page = open_url(url) except IOError, msg: print >>log, "error fetching %s:"%url, msg return False chg = False filemap = {} for filename in filterconf_files(): filemap[os.path.basename(filename)] = filename lines = page.read().splitlines() for line in lines: if "<" in line: print >>log, "error fetching", url return False if not line: continue md5sum, filename = line.split() assert filename.endswith('.zap') fullname = os.path.join(ConfigDir, filename) # compare checksums if filemap.has_key(filename): f = file(fullname) data = f.read() digest = list(md5.new(data).digest()) f.close() digest = "".join([ "%0.2x"%ord(c) for c in digest ]) if digest==md5sum: print >>log, "filter", filename, "not changed, ignoring" continue print >>log, "updating filter", filename else: print >>log, "adding new filter", filename url = baseurl+filename+".gz" page = open_url(url) p = ZapperParser(fullname) p.parse(page, config) chg = config.merge_folder(p.folder, dryrun=dryrun, log=log) or chg url = baseurl+"extern-md5sums.txt" try: page = open_url(url) except IOError, msg: print >>log, "error fetching %s:"%url, msg return False lines = page.read().splitlines() for line in lines: if "<" in line: print >>log, "error fetching", url return False if not line: continue md5sum, filename = line.split() # XXX UNIX-generated md5sum filenames with subdirs are not portable fullname = os.path.join(ConfigDir, filename) # compare checksums if os.path.exists(fullname): f = file(fullname) data = f.read() digest = list(md5.new(data).digest()) f.close() digest = "".join([ "%0.2x"%ord(c) for c in digest ]) if digest==md5sum: print >>log, "extern filter", filename, "not changed, ignoring" continue print >>log, "updating extern filter", filename else: print >>log, "adding new extern filter", filename chg = True if not dryrun: url = baseurl+filename try: page = open_url(url) except IOError, msg: print >>log, "error fetching", url continue f = file(fullname, 'wb') f.write(page.read()) f.close() return chg | ff26d3c4dce7bb18e52370745ecc28f73cd601b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/ff26d3c4dce7bb18e52370745ecc28f73cd601b5/update.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
261,
1425,
16,
25427,
16,
10299,
2681,
33,
8381,
16,
613,
33,
7036,
4672,
3536,
1891,
326,
864,
1664,
733,
598,
263,
94,
438,
1390,
1392,
622,
25427,
18,
971,
10299,
2681,
353,
1053,
16,
1338,
1172,
596,
326,
3478,
1496,
741,
5083,
1216,
8340,
603,
555,
3536,
880,
273,
25427,
9078,
2188,
17,
1264,
25,
1364,
87,
18,
5830,
6,
775,
30,
1363,
273,
1696,
67,
718,
12,
718,
13,
1335,
8340,
16,
1234,
30,
1172,
1671,
1330,
16,
315,
1636,
16191,
738,
87,
2773,
9,
718,
16,
1234,
327,
1083,
462,
75,
273,
1083,
585,
1458,
273,
2618,
364,
1544,
316,
1034,
3923,
67,
2354,
13332,
585,
1458,
63,
538,
18,
803,
18,
13909,
12,
3459,
25887,
273,
1544,
2362,
273,
1363,
18,
896,
7675,
4939,
3548,
1435,
364,
980,
316,
2362,
30,
309,
18165,
316,
980,
30,
1172,
1671,
1330,
16,
315,
1636,
16191,
3113,
880,
327,
1083,
309,
486,
980,
30,
1324,
3481,
25,
1364,
16,
1544,
273,
980,
18,
4939,
1435,
1815,
1544,
18,
5839,
1918,
2668,
18,
94,
438,
6134,
13321,
273,
1140,
18,
803,
18,
5701,
12,
27594,
18,
809,
1621,
16,
1544,
13,
468,
3400,
26829,
309,
585,
1458,
18,
5332,
67,
856,
12,
3459,
4672,
284,
273,
585,
12,
21885,
13,
501,
273,
284,
18,
896,
1435,
5403,
273,
666,
12,
1264,
25,
18,
2704,
12,
892,
2934,
10171,
10756,
284,
18,
4412,
1435,
5403,
273,
1408,
18,
5701,
3816,
2213,
20,
18,
22,
92,
28385,
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,
1089,
261,
1425,
16,
25427,
16,
10299,
2681,
33,
8381,
16,
613,
33,
7036,
4672,
3536,
1891,
326,
864,
1664,
733,
598,
263,
94,
438,
1390,
1392,
622,
25427,
18,
971,
10299,
2681,
353,
1053,
16,
1338,
1172,
596,
326,
3478,
1496,
741,
5083,
1216,
8340,
603,
555,
3536,
880,
273,
25427,
9078,
2188,
17,
1264,
25,
1364,
87,
18,
5830,
6,
775,
30,
1363,
273,
1696,
67,
718,
12,
718,
13,
1335,
8340,
16,
1234,
30,
1172,
1671,
1330,
16,
315,
1636,
16191,
738,
87,
2773,
9,
718,
16,
1234,
327,
1083,
462,
75,
273,
1083,
585,
1458,
273,
2618,
364,
1544,
316,
1034,
3923,
67,
2354,
13332,
585,
1458,
63,
538,
18,
803,
18,
13909,
12,
2
] |
If you enter the above you obtain an interact campus. Entering | If you enter the above you obtain an interact canvas. Entering | ... def _(a=('xyz',5)): | 6bab7bc31ff6a7cd0b2e0a5182530c20931d18ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6bab7bc31ff6a7cd0b2e0a5182530c20931d18ce/interact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
1652,
389,
12,
69,
33,
2668,
17177,
2187,
25,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
1652,
389,
12,
69,
33,
2668,
17177,
2187,
25,
3719,
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
] |
if self.db: | if self.db is not None: | def _setState(self, msg): if self.db: self.db[msg.getId()] = (msg.c, msg.t) | a7b4a8973327da45ec5074926a87a42d25f45a43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/a7b4a8973327da45ec5074926a87a42d25f45a43/message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1119,
12,
2890,
16,
1234,
4672,
309,
365,
18,
1966,
353,
486,
599,
30,
365,
18,
1966,
63,
3576,
18,
26321,
1435,
65,
273,
261,
3576,
18,
71,
16,
1234,
18,
88,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1119,
12,
2890,
16,
1234,
4672,
309,
365,
18,
1966,
353,
486,
599,
30,
365,
18,
1966,
63,
3576,
18,
26321,
1435,
65,
273,
261,
3576,
18,
71,
16,
1234,
18,
88,
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
] |
value = self.get_property(name) | value = self._properties[name] | def to_string(self): '''packs message into binary stream''' if not len(self.types) == len(self.properties): raise WrongMessageTypeSpecified('Message "%s" has %s properties, but %s types' % (self, len(self.properties), len(self.types))) # first encode the message type identifier buf = struct.pack('!B', self.packet_type) # iterate thru all attributes for i,_type in enumerate(self.types): # get name and value of the attribute name = self.properties[i] value = self.get_property(name) # for composite type, pack it looping over each subtype if type(_type) == type(()): pack_func = getattr(self, 'pack_' + name, None) if pack_func: for j,v in enumerate(pack_func(value)): buf = self.pack_attr(_type[j], buf, v, name) else: for j,v in enumerate(value): buf = self.pack_attr(_type[j], buf, v, name) # for mono types, just pack it else: buf = self.pack_attr(_type, buf, value, name) return buf | cc0757730fddad1f603d1e9532ad9506e87cc1e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6175/cc0757730fddad1f603d1e9532ad9506e87cc1e3/system.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
1080,
12,
2890,
4672,
9163,
2920,
87,
883,
1368,
3112,
1407,
26418,
309,
486,
562,
12,
2890,
18,
2352,
13,
422,
562,
12,
2890,
18,
4738,
4672,
1002,
24668,
24563,
17068,
2668,
1079,
2213,
87,
6,
711,
738,
87,
1790,
16,
1496,
738,
87,
1953,
11,
738,
261,
2890,
16,
562,
12,
2890,
18,
4738,
3631,
562,
12,
2890,
18,
2352,
20349,
468,
1122,
2017,
326,
883,
618,
2756,
1681,
273,
1958,
18,
2920,
2668,
5,
38,
2187,
365,
18,
11482,
67,
723,
13,
468,
7401,
286,
8653,
777,
1677,
364,
277,
16,
67,
723,
316,
4241,
12,
2890,
18,
2352,
4672,
468,
336,
508,
471,
460,
434,
326,
1566,
508,
273,
365,
18,
4738,
63,
77,
65,
460,
273,
365,
6315,
4738,
63,
529,
65,
468,
364,
9635,
618,
16,
2298,
518,
25004,
1879,
1517,
12308,
309,
618,
24899,
723,
13,
422,
618,
12,
1435,
4672,
2298,
67,
644,
273,
3869,
12,
2890,
16,
296,
2920,
4623,
397,
508,
16,
599,
13,
309,
2298,
67,
644,
30,
364,
525,
16,
90,
316,
4241,
12,
2920,
67,
644,
12,
1132,
3719,
30,
1681,
273,
365,
18,
2920,
67,
1747,
24899,
723,
63,
78,
6487,
1681,
16,
331,
16,
508,
13,
469,
30,
364,
525,
16,
90,
316,
4241,
12,
1132,
4672,
1681,
273,
365,
18,
2920,
67,
1747,
24899,
723,
63,
78,
6487,
1681,
16,
331,
16,
508,
13,
468,
364,
6921,
83,
1953,
16,
2537,
2298,
518,
469,
30,
1681,
273,
365,
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,
358,
67,
1080,
12,
2890,
4672,
9163,
2920,
87,
883,
1368,
3112,
1407,
26418,
309,
486,
562,
12,
2890,
18,
2352,
13,
422,
562,
12,
2890,
18,
4738,
4672,
1002,
24668,
24563,
17068,
2668,
1079,
2213,
87,
6,
711,
738,
87,
1790,
16,
1496,
738,
87,
1953,
11,
738,
261,
2890,
16,
562,
12,
2890,
18,
4738,
3631,
562,
12,
2890,
18,
2352,
20349,
468,
1122,
2017,
326,
883,
618,
2756,
1681,
273,
1958,
18,
2920,
2668,
5,
38,
2187,
365,
18,
11482,
67,
723,
13,
468,
7401,
286,
8653,
777,
1677,
364,
277,
16,
67,
723,
316,
4241,
12,
2890,
18,
2352,
4672,
468,
336,
508,
471,
460,
434,
326,
1566,
508,
273,
365,
18,
4738,
63,
2
] |
('test_run_defaults', { | ('test_run_parsing', { | def test_deserialize_clears_old_error_on_success(self): BundleDeserializationError.objects.create( bundle = self.bundle, error_message="not important").save() mock = self.mocker.patch(self.bundle) expect(mock._do_deserialize()) self.mocker.replay() self.bundle.deserialize() # note we cannot check for self.bundle.deserialization_error # directly due to the way django handles operations that affect # existing instances (it does not touch them like storm would # IIRC). self.assertRaises( BundleDeserializationError.DoesNotExist, BundleDeserializationError.objects.get, bundle=self.bundle) | 957b0eab837f40bbe8180ecadeffedaf82ab9311 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12617/957b0eab837f40bbe8180ecadeffedaf82ab9311/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18109,
67,
2131,
5913,
67,
1673,
67,
1636,
67,
265,
67,
4768,
12,
2890,
4672,
8539,
20765,
1588,
668,
18,
6911,
18,
2640,
12,
3440,
273,
365,
18,
9991,
16,
555,
67,
2150,
1546,
902,
10802,
20387,
5688,
1435,
5416,
273,
365,
18,
81,
6203,
18,
2272,
12,
2890,
18,
9991,
13,
4489,
12,
22851,
6315,
2896,
67,
18109,
10756,
365,
18,
81,
6203,
18,
266,
1601,
1435,
365,
18,
9991,
18,
18109,
1435,
468,
4721,
732,
2780,
866,
364,
365,
18,
9991,
18,
5489,
24662,
1588,
67,
1636,
468,
5122,
6541,
358,
326,
4031,
13710,
7372,
5295,
716,
13418,
468,
2062,
3884,
261,
305,
1552,
486,
6920,
2182,
3007,
26792,
4102,
468,
467,
30240,
2934,
365,
18,
11231,
12649,
6141,
12,
8539,
20765,
1588,
668,
18,
15264,
16,
8539,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18109,
67,
2131,
5913,
67,
1673,
67,
1636,
67,
265,
67,
4768,
12,
2890,
4672,
8539,
20765,
1588,
668,
18,
6911,
18,
2640,
12,
3440,
273,
365,
18,
9991,
16,
555,
67,
2150,
1546,
902,
10802,
20387,
5688,
1435,
5416,
273,
365,
18,
81,
6203,
18,
2272,
12,
2890,
18,
9991,
13,
4489,
12,
22851,
6315,
2896,
67,
18109,
10756,
365,
18,
81,
6203,
18,
266,
1601,
1435,
365,
18,
9991,
18,
18109,
1435,
468,
4721,
732,
2780,
866,
364,
365,
18,
9991,
18,
5489,
24662,
1588,
67,
1636,
468,
5122,
6541,
358,
326,
4031,
13710,
7372,
5295,
716,
13418,
468,
2062,
3884,
261,
305,
1552,
486,
6920,
2182,
3007,
26792,
4102,
468,
467,
30240,
2934,
2
] |
b = ScrollBehaviour((start, 0), (stop, 0), '_scroll') self._row_animation = self.animate(secs) self._row_animation.behave(b) if self._cell0[1] != col: | self.__row_animation = self.animate(secs) self.__row_animation.behave(ScrollBehaviour((x, 0), '_scroll')) if self.items.cell0[1] != col: | def scroll_to(self, (row, col), secs): """ Scroll to row / cell position | b47bb145b9afab8cd03f9ba37d4dcd175be8f666 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11702/b47bb145b9afab8cd03f9ba37d4dcd175be8f666/grid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5532,
67,
869,
12,
2890,
16,
261,
492,
16,
645,
3631,
18043,
4672,
3536,
23134,
358,
1027,
342,
2484,
1754,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5532,
67,
869,
12,
2890,
16,
261,
492,
16,
645,
3631,
18043,
4672,
3536,
23134,
358,
1027,
342,
2484,
1754,
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
] |
[b, a] = iirfilter(corners, freq / fe, btype='lowpass', ftype='butter', | f = freq / fe if f > 1: f = 1.0 msg = "Selected corner frequency is above Nyquist. " + \ "Setting Nyquist as high corner." warnings.warn(msg) [b, a] = iirfilter(corners, f, btype='lowpass', ftype='butter', | def lowpass(data, freq, df, corners=4, zerophase=False): """ Butterworth-Lowpass Filter. Filter data removing data over certain frequency freq using corners corners. :param data: Data to filter, type numpy.ndarray. :param freq: Filter corner frequency. :param df: Sampling rate in Hz. :param corners: Filter corners. Note: This is twice the value of PITSA's filter sections :param zerophase: If True, apply filter once forwards and once backwards. This results in twice the number of corners but zero phase shift in the resulting filtered trace. :return: Filtered data. """ fe = 0.5 * df [b, a] = iirfilter(corners, freq / fe, btype='lowpass', ftype='butter', output='ba') if zerophase: firstpass = lfilter(b, a, data) return lfilter(b, a, firstpass[::-1])[::-1] else: return lfilter(b, a, data) | 0307632cc2bbb65f7d8257b93a090a652fa0bcca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/0307632cc2bbb65f7d8257b93a090a652fa0bcca/filter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4587,
5466,
12,
892,
16,
7684,
16,
3013,
16,
18398,
33,
24,
16,
24910,
23169,
448,
33,
8381,
4672,
3536,
12484,
387,
91,
7825,
17,
10520,
5466,
4008,
18,
225,
4008,
501,
9427,
501,
1879,
8626,
8670,
7684,
1450,
18398,
18398,
18,
225,
294,
891,
501,
30,
1910,
358,
1034,
16,
618,
3972,
18,
25681,
18,
294,
891,
7684,
30,
4008,
11055,
8670,
18,
294,
891,
3013,
30,
348,
7639,
4993,
316,
670,
94,
18,
294,
891,
18398,
30,
4008,
18398,
18,
3609,
30,
1220,
353,
13605,
326,
460,
434,
453,
1285,
5233,
1807,
1034,
7178,
294,
891,
24910,
23169,
448,
30,
971,
1053,
16,
2230,
1034,
3647,
24578,
471,
3647,
12727,
18,
1220,
1686,
316,
13605,
326,
1300,
434,
18398,
1496,
3634,
6855,
4654,
316,
326,
8156,
5105,
2606,
18,
294,
2463,
30,
4008,
329,
501,
18,
3536,
1656,
273,
374,
18,
25,
380,
3013,
284,
273,
7684,
342,
1656,
225,
309,
284,
405,
404,
30,
284,
273,
404,
18,
20,
1234,
273,
315,
7416,
11055,
8670,
353,
5721,
423,
93,
372,
376,
18,
315,
397,
521,
315,
5568,
423,
93,
372,
376,
487,
3551,
11055,
1199,
5599,
18,
8935,
12,
3576,
13,
306,
70,
16,
279,
65,
273,
277,
481,
2188,
12,
3850,
9646,
16,
284,
16,
324,
723,
2218,
821,
5466,
2187,
21219,
2218,
12885,
387,
2187,
876,
2218,
12124,
6134,
309,
24910,
23169,
448,
30,
1122,
5466,
273,
328,
2188,
12,
70,
16,
279,
16,
501,
13,
327,
328,
2188,
12,
70,
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,
4587,
5466,
12,
892,
16,
7684,
16,
3013,
16,
18398,
33,
24,
16,
24910,
23169,
448,
33,
8381,
4672,
3536,
12484,
387,
91,
7825,
17,
10520,
5466,
4008,
18,
225,
4008,
501,
9427,
501,
1879,
8626,
8670,
7684,
1450,
18398,
18398,
18,
225,
294,
891,
501,
30,
1910,
358,
1034,
16,
618,
3972,
18,
25681,
18,
294,
891,
7684,
30,
4008,
11055,
8670,
18,
294,
891,
3013,
30,
348,
7639,
4993,
316,
670,
94,
18,
294,
891,
18398,
30,
4008,
18398,
18,
3609,
30,
1220,
353,
13605,
326,
460,
434,
453,
1285,
5233,
1807,
1034,
7178,
294,
891,
24910,
23169,
448,
30,
971,
1053,
16,
2230,
1034,
3647,
24578,
471,
3647,
12727,
18,
1220,
1686,
316,
13605,
326,
2
] |
pylib.GCC_BACKEND = True pylib.OMIT_GCC = False os.environ["GCC_BACKEND"] = "yes" os.environ.pop("OMIT_GCC", None) reload(pylib) | os.environ["CM3_TARGET"] = "NT386GNU" reload(pylib) | def Hack1(): # appropriate pylib.GCC_BACKEND = True pylib.OMIT_GCC = False # hack os.environ["GCC_BACKEND"] = "yes" os.environ.pop("OMIT_GCC", None) reload(pylib) | f79eddf7420d7ecca90b9ab0d9d7d03ff433e039 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/f79eddf7420d7ecca90b9ab0d9d7d03ff433e039/bootntgnu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
670,
484,
21,
13332,
225,
468,
5505,
2395,
2941,
18,
43,
6743,
67,
8720,
4415,
273,
1053,
2395,
2941,
18,
1872,
1285,
67,
43,
6743,
273,
1083,
225,
468,
11769,
1140,
18,
28684,
9614,
43,
6743,
67,
8720,
4415,
11929,
273,
315,
9707,
6,
1140,
18,
28684,
18,
5120,
2932,
1872,
1285,
67,
43,
6743,
3113,
599,
13,
7749,
12,
2074,
2941,
13,
225,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
670,
484,
21,
13332,
225,
468,
5505,
2395,
2941,
18,
43,
6743,
67,
8720,
4415,
273,
1053,
2395,
2941,
18,
1872,
1285,
67,
43,
6743,
273,
1083,
225,
468,
11769,
1140,
18,
28684,
9614,
43,
6743,
67,
8720,
4415,
11929,
273,
315,
9707,
6,
1140,
18,
28684,
18,
5120,
2932,
1872,
1285,
67,
43,
6743,
3113,
599,
13,
7749,
12,
2074,
2941,
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
] |
Table:[DefinitionList, DefinitionDescription] | Table:[DefinitionList, DefinitionDescription], | def __init__(self, tree, save_reports=False, nesting_strictness='loose', status_cb=None): """Init with parsetree. | ff0c7d1724932b13bb5dcd5e0eb182a608844829 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12391/ff0c7d1724932b13bb5dcd5e0eb182a608844829/treecleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2151,
16,
1923,
67,
20195,
33,
8381,
16,
17174,
67,
13948,
4496,
2218,
383,
2584,
2187,
1267,
67,
7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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2151,
16,
1923,
67,
20195,
33,
8381,
16,
17174,
67,
13948,
4496,
2218,
383,
2584,
2187,
1267,
67,
7358,
33,
7036,
4672,
3536,
2570,
598,
779,
542,
992,
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
] |
line=line.replace(r'\"','"') | line=line.replace(r'\"','"') | def revert_unicode(document): '''Transform unicode symbols according to the unicode list. | d4fb1108654182babcff450d454dbc0b706c4649 /local1/tlutelli/issta_data/temp/all_python//python/2007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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
9124,
12,
5457,
4672,
9163,
4059,
5252,
7963,
4888,
358,
326,
5252,
666,
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
] |
yield "<option>%s</option>" % compiler | yield "<option>%s</option>\n" % compiler | def main_menu(): """main page""" yield "<form method='GET'>" yield "<div id='build-menu'>" yield "<select name='host'>" for host in hosts: yield "<option value='%s'>%s -- %s</option>" % (host, hosts[host], host) yield "</select>" yield "<select name='tree'>" for tree, t in trees.iteritems(): yield "<option value='%s'>%s:%s</option>" % (tree, tree, t.branch) yield "</select>" yield "<select name='compiler'>" for compiler in compilers: yield "<option>%s</option>" % compiler yield "</select>" yield "<br/>" yield "<input type='submit' name='function' value='View Build'/>" yield "<input type='submit' name='function' value='View Host'/>" yield "<input type='submit' name='function' value='Recent Checkins'/>" yield "<input type='submit' name='function' value='Summary'/>" yield "<input type='submit' name='function' value='Recent Builds'/>" yield "</div>" yield "</form>" | 2f96994b0560407d1d9a82cb63b4ca80644ab796 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/2f96994b0560407d1d9a82cb63b4ca80644ab796/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
5414,
13332,
3536,
5254,
1363,
8395,
225,
2824,
3532,
687,
707,
2218,
3264,
28533,
2824,
3532,
2892,
612,
2218,
3510,
17,
5414,
28533,
2824,
3532,
4025,
508,
2218,
2564,
28533,
364,
1479,
316,
7206,
30,
2824,
3532,
3482,
460,
28713,
87,
11,
9822,
87,
1493,
738,
87,
1757,
3482,
2984,
738,
261,
2564,
16,
7206,
63,
2564,
6487,
1479,
13,
2824,
6823,
4025,
2984,
2824,
3532,
4025,
508,
2218,
3413,
28533,
364,
2151,
16,
268,
316,
11491,
18,
2165,
3319,
13332,
2824,
3532,
3482,
460,
28713,
87,
11,
9822,
87,
5319,
87,
1757,
3482,
2984,
738,
261,
3413,
16,
2151,
16,
268,
18,
7500,
13,
2824,
6823,
4025,
2984,
2824,
3532,
4025,
508,
2218,
9576,
28533,
364,
5274,
316,
1161,
330,
414,
30,
2824,
3532,
3482,
9822,
87,
1757,
3482,
5333,
82,
6,
738,
5274,
2824,
6823,
4025,
2984,
2824,
3532,
2848,
26293,
2824,
3532,
2630,
618,
2218,
9297,
11,
508,
2218,
915,
11,
460,
2218,
1767,
3998,
11,
26293,
2824,
3532,
2630,
618,
2218,
9297,
11,
508,
2218,
915,
11,
460,
2218,
1767,
4893,
11,
26293,
2824,
3532,
2630,
618,
2218,
9297,
11,
508,
2218,
915,
11,
460,
2218,
17076,
2073,
2679,
11,
26293,
2824,
3532,
2630,
618,
2218,
9297,
11,
508,
2218,
915,
11,
460,
2218,
4733,
11,
26293,
2824,
3532,
2630,
618,
2218,
9297,
11,
508,
2218,
915,
11,
460,
2218,
17076,
3998,
87,
11,
26293,
2824,
6823,
2892,
2984,
2824,
6823,
687,
2984,
282,
2,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
5414,
13332,
3536,
5254,
1363,
8395,
225,
2824,
3532,
687,
707,
2218,
3264,
28533,
2824,
3532,
2892,
612,
2218,
3510,
17,
5414,
28533,
2824,
3532,
4025,
508,
2218,
2564,
28533,
364,
1479,
316,
7206,
30,
2824,
3532,
3482,
460,
28713,
87,
11,
9822,
87,
1493,
738,
87,
1757,
3482,
2984,
738,
261,
2564,
16,
7206,
63,
2564,
6487,
1479,
13,
2824,
6823,
4025,
2984,
2824,
3532,
4025,
508,
2218,
3413,
28533,
364,
2151,
16,
268,
316,
11491,
18,
2165,
3319,
13332,
2824,
3532,
3482,
460,
28713,
87,
11,
9822,
87,
5319,
87,
1757,
3482,
2984,
738,
261,
3413,
16,
2151,
16,
268,
18,
7500,
13,
2824,
6823,
4025,
2984,
2824,
3532,
4025,
508,
2218,
9576,
28533,
2
] |
the sax parsed DOM tree for the reply. | the sax parsed DOM tree for the reply before it is unmarshalled. | def parsed(self, context): """ Suds has sax parsed the received reply. Provides the plugin with the opportunity to inspect/modify the sax parsed DOM tree for the reply. @param context: The reply context. The I{reply} is DOM tree. @type context: L{MessageContext} """ pass | 612e4f68af3c77ad34593ee91ec30c4ff3b727cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1242/612e4f68af3c77ad34593ee91ec30c4ff3b727cb/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2707,
12,
2890,
16,
819,
4672,
3536,
348,
1100,
87,
711,
20319,
2707,
326,
5079,
4332,
18,
28805,
326,
1909,
598,
326,
1061,
655,
13352,
358,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2707,
12,
2890,
16,
819,
4672,
3536,
348,
1100,
87,
711,
20319,
2707,
326,
5079,
4332,
18,
28805,
326,
1909,
598,
326,
1061,
655,
13352,
358,
5334,
19,
17042,
326,
20319,
2707,
4703,
2151,
364,
326,
4332,
1865,
518,
353,
11401,
1259,
18,
632,
891,
819,
30,
1021,
4332,
819,
18,
1021,
467,
95,
10629,
97,
353,
4703,
2151,
18,
632,
723,
819,
30,
511,
95,
1079,
1042,
97,
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
] |
res['value'].update({'purchase_price': purchase_price}) | price = self.pool.get('res.currency').compute(cr, uid, frm_cur, to_cur, purchase_price, round=False) res['value'].update({'purchase_price': price}) | def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False): res = super(sale_order_line, self).product_id_change(cr, uid, ids, pricelist, product, qty=qty, uom=uom, qty_uos=qty_uos, uos=uos, name=name, partner_id=partner_id, lang=lang, update_tax=update_tax, date_order=date_order, packaging=packaging, fiscal_position=fiscal_position, flag=flag) if product: purchase_price = self.pool.get('product.product').browse(cr, uid, product).standard_price res['value'].update({'purchase_price': purchase_price}) return res | f32adf267a672519e1fc6125fcf596e6e6c504d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f32adf267a672519e1fc6125fcf596e6e6c504d8/sale_margin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
20,
16,
582,
362,
33,
8381,
16,
26667,
67,
89,
538,
33,
20,
16,
582,
538,
33,
8381,
16,
508,
2218,
2187,
19170,
67,
350,
33,
8381,
16,
3303,
33,
8381,
16,
1089,
67,
8066,
33,
5510,
16,
1509,
67,
1019,
33,
8381,
16,
2298,
5755,
33,
8381,
16,
15324,
771,
67,
3276,
33,
8381,
16,
2982,
33,
8381,
4672,
400,
273,
2240,
12,
87,
5349,
67,
1019,
67,
1369,
16,
365,
2934,
5896,
67,
350,
67,
3427,
12,
3353,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
85,
4098,
16,
582,
362,
33,
89,
362,
16,
26667,
67,
89,
538,
33,
85,
4098,
67,
89,
538,
16,
582,
538,
33,
89,
538,
16,
508,
33,
529,
16,
19170,
67,
350,
33,
31993,
67,
350,
16,
3303,
33,
4936,
16,
1089,
67,
8066,
33,
2725,
67,
8066,
16,
1509,
67,
1019,
33,
712,
67,
1019,
16,
2298,
5755,
33,
2920,
5755,
16,
15324,
771,
67,
3276,
33,
74,
291,
771,
67,
3276,
16,
2982,
33,
6420,
13,
309,
3017,
30,
23701,
67,
8694,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
5896,
16063,
25731,
12,
3353,
16,
4555,
16,
3017,
2934,
10005,
67,
8694,
6205,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
7095,
16063,
9200,
12,
3353,
16,
4555,
16,
31074,
67,
1397,
16,
358,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
20,
16,
582,
362,
33,
8381,
16,
26667,
67,
89,
538,
33,
20,
16,
582,
538,
33,
8381,
16,
508,
2218,
2187,
19170,
67,
350,
33,
8381,
16,
3303,
33,
8381,
16,
1089,
67,
8066,
33,
5510,
16,
1509,
67,
1019,
33,
8381,
16,
2298,
5755,
33,
8381,
16,
15324,
771,
67,
3276,
33,
8381,
16,
2982,
33,
8381,
4672,
400,
273,
2240,
12,
87,
5349,
67,
1019,
67,
1369,
16,
365,
2934,
5896,
67,
350,
67,
3427,
12,
3353,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
85,
4098,
16,
2
] |
for account_id, sums in cursor.fetchall(): | for row in cursor.fetchall(): account_id = row[0] | def get_credit_debit(self, cursor, user, ids, names, arg, context=None): ''' Function to compute debit, credit for account ids. | 7230b07e554e5ff4f8c12776f9af6e7f3ecc0caf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/7230b07e554e5ff4f8c12776f9af6e7f3ecc0caf/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20688,
67,
323,
3682,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
1257,
16,
1501,
16,
819,
33,
7036,
4672,
9163,
4284,
358,
3671,
443,
3682,
16,
12896,
364,
2236,
3258,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20688,
67,
323,
3682,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
1257,
16,
1501,
16,
819,
33,
7036,
4672,
9163,
4284,
358,
3671,
443,
3682,
16,
12896,
364,
2236,
3258,
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
] |
cmd = base + "adp.convert_to_aniso=true selection='%s'"%str(selection_str) | cmd = base + 'adp.convert_to_aniso=true selection="%s"'%str(selection_str) | def run(file_name = "phe_e.pdb"): file_name = libtbx.env.find_in_repositories( relative_path="phenix_regression/pdb/%s"%file_name, test=os.path.isfile) output = "modified.pdb" xrsp_init = xray_structure_plus(file_name = file_name) base = \ "mmtbx.pdbtools %s output.pdb.file_name=%s --quiet "%(file_name, output) for selection_str in [None, "chain A or chain C"]: selection = xrsp_init.selection(selection_strings = selection_str) if(selection_str is None): assert selection.size() == selection.count(True) else: assert selection.size() == 36 and selection.count(True) == 24 # cmd = base + "adp.randomize=true selection='%s'"%str(selection_str) check_adp_rand(cmd, xrsp_init, output, selection, selection_str) # cmd = base + "adp.set_b_iso=10.0 selection='%s'"%str(selection_str) check_adp_set_b_iso(cmd, xrsp_init, output, selection, selection_str) # cmd = base + "adp.shift_b_iso=20.0 selection='%s'"%str(selection_str) check_adp_rand(cmd, xrsp_init, output, selection, selection_str) # cmd = base + "adp.scale_adp=2.0 selection='%s'"%str(selection_str) check_adp_rand(cmd, xrsp_init, output, selection, selection_str) # cmd = base + "adp.convert_to_iso=true selection='%s'"%str(selection_str) check_adp_to_iso(cmd, xrsp_init, output, selection, selection_str) # cmd = base + "adp.convert_to_aniso=true selection='%s'"%str(selection_str) check_adp_to_aniso(cmd, xrsp_init, output, selection, selection_str) # shake = 1.5 cmd = base+"sites.shake=%s selection='%s'"%(str(shake), str(selection_str)) check_sites_shake(cmd, xrsp_init, output, selection, selection_str, shake) # cmd = base+"sites.rotate='1 2 3' sites.translate='4 5 6' selection='%s'"%( str(selection_str)) check_sites_rt(cmd, xrsp_init, output, selection, selection_str) # cmd = base+"occupancies.randomize=true selection='%s'"%(str(selection_str)) check_occ_randomize(cmd, xrsp_init, output, selection, selection_str) # remove_selection_str = "element C" cmd = base+"remove.selection='%s' selection='%s'"%( str(remove_selection_str),str(selection_str)) check_remove_selection(cmd, xrsp_init, output, selection, selection_str, remove_selection_str) # test_quiet(file_name) # cmd = base check_all_none(cmd, xrsp_init, output) | d3b962327f9bfcab4633f0d80f058ec29ecde30b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/d3b962327f9bfcab4633f0d80f058ec29ecde30b/tst_pdbtools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
768,
67,
529,
273,
315,
84,
580,
67,
73,
18,
17414,
6,
4672,
585,
67,
529,
273,
2561,
18587,
92,
18,
3074,
18,
4720,
67,
267,
67,
26626,
12,
3632,
67,
803,
1546,
13819,
697,
67,
1574,
16345,
19,
17414,
5258,
87,
28385,
768,
67,
529,
16,
1842,
33,
538,
18,
803,
18,
291,
768,
13,
876,
273,
315,
7342,
18,
17414,
6,
20912,
1752,
67,
2738,
273,
619,
435,
67,
7627,
67,
10103,
12,
768,
67,
529,
273,
585,
67,
529,
13,
1026,
273,
521,
315,
81,
1010,
70,
92,
18,
17414,
6642,
738,
87,
876,
18,
17414,
18,
768,
67,
529,
5095,
87,
1493,
20380,
22061,
768,
67,
529,
16,
876,
13,
364,
4421,
67,
701,
316,
306,
7036,
16,
315,
5639,
432,
578,
2687,
385,
11929,
30,
4421,
273,
20912,
1752,
67,
2738,
18,
10705,
12,
10705,
67,
10219,
273,
4421,
67,
701,
13,
309,
12,
10705,
67,
701,
353,
599,
4672,
1815,
4421,
18,
1467,
1435,
422,
4421,
18,
1883,
12,
5510,
13,
469,
30,
1815,
4421,
18,
1467,
1435,
422,
6580,
471,
4421,
18,
1883,
12,
5510,
13,
422,
4248,
468,
1797,
273,
1026,
397,
315,
361,
84,
18,
9188,
554,
33,
3767,
4421,
28713,
87,
4970,
9,
701,
12,
10705,
67,
701,
13,
866,
67,
361,
84,
67,
7884,
12,
4172,
16,
20912,
1752,
67,
2738,
16,
876,
16,
4421,
16,
4421,
67,
701,
13,
468,
1797,
273,
1026,
397,
315,
361,
84,
18,
542,
67,
70,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
768,
67,
529,
273,
315,
84,
580,
67,
73,
18,
17414,
6,
4672,
585,
67,
529,
273,
2561,
18587,
92,
18,
3074,
18,
4720,
67,
267,
67,
26626,
12,
3632,
67,
803,
1546,
13819,
697,
67,
1574,
16345,
19,
17414,
5258,
87,
28385,
768,
67,
529,
16,
1842,
33,
538,
18,
803,
18,
291,
768,
13,
876,
273,
315,
7342,
18,
17414,
6,
20912,
1752,
67,
2738,
273,
619,
435,
67,
7627,
67,
10103,
12,
768,
67,
529,
273,
585,
67,
529,
13,
1026,
273,
521,
315,
81,
1010,
70,
92,
18,
17414,
6642,
738,
87,
876,
18,
17414,
18,
768,
67,
529,
5095,
87,
1493,
20380,
22061,
768,
67,
529,
16,
876,
13,
364,
4421,
2
] |
<small>%(status)s</small> | %(status)s | def tmpl_yoursubmissions(self, ln, order, doctypes, submissions): """ Displays the list of the user's submissions. | 6d185ff7c7519929a2829d5830f7b917f21f75ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/6d185ff7c7519929a2829d5830f7b917f21f75ae/websubmit_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
93,
477,
25675,
12,
2890,
16,
7211,
16,
1353,
16,
31263,
989,
16,
22071,
4672,
3536,
9311,
87,
326,
666,
434,
326,
729,
1807,
22071,
18,
2,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
93,
477,
25675,
12,
2890,
16,
7211,
16,
1353,
16,
31263,
989,
16,
22071,
4672,
3536,
9311,
87,
326,
666,
434,
326,
729,
1807,
22071,
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
] |
folder = os.path.dirname(filename) | def save_all_fanart(self, filename, images): print "Fetching extra art" folder = os.path.dirname(filename) extrafolder = os.path.join(folder, "extrafanart") if not os.path.exists(extrafolder): os.mkdir(extrafolder) for image in images: index = images.index(image) + 1 imagepath = self.get_artpath(filename, image['original'], "backdrop") base = os.path.splitext(imagepath)[0] url = os.path.splitext(image['original'])[0] + ".jpg" dest = os.path.join(extrafolder, "%s%s.jpg") % (base, index) self.save_art(url, dest) | 1c17eaad83d445306d6fc14977a6403c7d64c959 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14583/1c17eaad83d445306d6fc14977a6403c7d64c959/pyXBMCscrape.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
454,
67,
74,
304,
485,
12,
2890,
16,
1544,
16,
4602,
4672,
1172,
315,
30806,
2870,
3688,
6,
7582,
1727,
1498,
273,
1140,
18,
803,
18,
5701,
12,
5609,
16,
315,
14523,
1727,
304,
485,
7923,
309,
486,
1140,
18,
803,
18,
1808,
12,
14523,
1727,
1498,
4672,
1140,
18,
26686,
12,
14523,
1727,
1498,
13,
364,
1316,
316,
4602,
30,
770,
273,
4602,
18,
1615,
12,
2730,
13,
397,
404,
1316,
803,
273,
365,
18,
588,
67,
485,
803,
12,
3459,
16,
1316,
3292,
8830,
17337,
315,
823,
7285,
7923,
1026,
273,
1140,
18,
803,
18,
4939,
408,
12,
2730,
803,
25146,
20,
65,
880,
273,
1140,
18,
803,
18,
4939,
408,
12,
2730,
3292,
8830,
19486,
63,
20,
65,
397,
3552,
14362,
6,
1570,
273,
1140,
18,
803,
18,
5701,
12,
14523,
1727,
1498,
16,
2213,
87,
9,
87,
18,
14362,
7923,
738,
261,
1969,
16,
770,
13,
365,
18,
5688,
67,
485,
12,
718,
16,
1570,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
454,
67,
74,
304,
485,
12,
2890,
16,
1544,
16,
4602,
4672,
1172,
315,
30806,
2870,
3688,
6,
7582,
1727,
1498,
273,
1140,
18,
803,
18,
5701,
12,
5609,
16,
315,
14523,
1727,
304,
485,
7923,
309,
486,
1140,
18,
803,
18,
1808,
12,
14523,
1727,
1498,
4672,
1140,
18,
26686,
12,
14523,
1727,
1498,
13,
364,
1316,
316,
4602,
30,
770,
273,
4602,
18,
1615,
12,
2730,
13,
397,
404,
1316,
803,
273,
365,
18,
588,
67,
485,
803,
12,
3459,
16,
1316,
3292,
8830,
17337,
315,
823,
7285,
7923,
1026,
273,
1140,
18,
803,
18,
4939,
408,
12,
2730,
803,
25146,
20,
65,
880,
273,
1140,
18,
803,
18,
4939,
408,
12,
2730,
3292,
2
] | |
r""" Largest prime dividing $n$ (with $a(1)=1$). INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A006530;a Largest prime dividing n (with a(1)=1). sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 1 sage: a(2) 2 sage: a(8) 2 sage: a(11) 11 sage: a.list(15) [1, 2, 3, 2, 5, 3, 7, 2, 3, 5, 11, 3, 13, 7, 5] AUTHOR: -- Jaap Spies (2007-01-25) """ def __init__(self): | def __init__(self): r""" Largest prime dividing $n$ (with $a(1)=1$). INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A006530;a Largest prime dividing n (with a(1)=1). sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 1 sage: a(2) 2 sage: a(8) 2 sage: a(11) 11 sage: a.list(15) [1, 2, 3, 2, 5, 3, 7, 2, 3, 5, 11, 3, 13, 7, 5] AUTHOR: -- Jaap Spies (2007-01-25) """ | def _eval(self, n): return self.nwf(n, n) | 7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
365,
18,
82,
15581,
12,
82,
16,
290,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
365,
18,
82,
15581,
12,
82,
16,
290,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ID_SCHEMATOOL in self.objectIds(): schema_tool = self._getOb(ID_SCHEMATOOL) if pitem['module'] not in schema_tool.objectIds() and pitem['default_schema']: schema_tool.addSchema(pitem['module'], title=pitem['label'], defaults=pitem['default_schema']) | def manage_install_pluggableitem(self, meta_type=None, REQUEST=None): """ Makes the content with the given meta_type available for usage in the portal. Raises ValueError if content does not exist. If the content specifies an `on_install` function in it's `config` this method will call `[on_install](self)` """ data_path = join(self.get_data_path(), 'skel', 'forms') if meta_type is not None: pitem = self.get_pluggable_item(meta_type) if pitem == None: raise ValueError('Missing pluggable content type "%s"' % meta_type) | f0589e8daf7dedc2410a9f4066870f4fa85062af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/f0589e8daf7dedc2410a9f4066870f4fa85062af/NySite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
5425,
67,
412,
30382,
1726,
12,
2890,
16,
2191,
67,
723,
33,
7036,
16,
12492,
33,
7036,
4672,
3536,
490,
3223,
326,
913,
598,
326,
864,
2191,
67,
723,
2319,
364,
4084,
316,
326,
11899,
18,
20497,
2068,
309,
913,
1552,
486,
1005,
18,
971,
326,
913,
11470,
392,
1375,
265,
67,
5425,
68,
445,
316,
518,
1807,
1375,
1425,
68,
333,
707,
903,
745,
1375,
63,
265,
67,
5425,
29955,
2890,
22025,
3536,
501,
67,
803,
273,
1233,
12,
2890,
18,
588,
67,
892,
67,
803,
9334,
296,
7771,
292,
2187,
296,
9741,
6134,
309,
2191,
67,
723,
353,
486,
599,
30,
293,
1726,
273,
365,
18,
588,
67,
412,
30382,
67,
1726,
12,
3901,
67,
723,
13,
309,
293,
1726,
422,
599,
30,
1002,
2068,
2668,
4841,
886,
30382,
913,
618,
2213,
87,
5187,
738,
2191,
67,
723,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
5425,
67,
412,
30382,
1726,
12,
2890,
16,
2191,
67,
723,
33,
7036,
16,
12492,
33,
7036,
4672,
3536,
490,
3223,
326,
913,
598,
326,
864,
2191,
67,
723,
2319,
364,
4084,
316,
326,
11899,
18,
20497,
2068,
309,
913,
1552,
486,
1005,
18,
971,
326,
913,
11470,
392,
1375,
265,
67,
5425,
68,
445,
316,
518,
1807,
1375,
1425,
68,
333,
707,
903,
745,
1375,
63,
265,
67,
5425,
29955,
2890,
22025,
3536,
501,
67,
803,
273,
1233,
12,
2890,
18,
588,
67,
892,
67,
803,
9334,
296,
7771,
292,
2187,
296,
9741,
6134,
309,
2191,
67,
723,
353,
486,
599,
30,
293,
1726,
273,
365,
18,
588,
67,
412,
30382,
67,
1726,
12,
3901,
2
] | |
print 'Already have this version of', filename | print 'Already have this version of',`filename` | def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', localdir try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", localdir return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open(infofilename, 'r').read() except IOError, msg: text = '{}' try: info = eval(text) except (SyntaxError, NameError): print 'Bad mirror info in %s' % infofilename info = {} subdirs = [] listing = [] if verbose: print 'Listing remote directory %s...' % pwd f.retrlines('LIST', listing.append) filesfound = [] for line in listing: if verbose > 1: print '-->', `line` if mac: # Mac listing has just filenames; # trailing / means subdirectory filename = string.strip(line) mode = '-' if filename[-1:] == '/': filename = filename[:-1] mode = 'd' infostuff = '' else: # Parse, assuming a UNIX listing words = string.split(line, None, 8) if len(words) < 6: if verbose > 1: print 'Skipping short line' continue filename = words[-1] if string.find(filename, " -> ") >= 0: if verbose > 1: print 'Skipping symbolic link %s' % \ filename continue infostuff = words[-5:-1] mode = words[0] skip = 0 for pat in skippats: if fnmatch(filename, pat): if verbose > 1: print 'Skip pattern', pat, print 'matches', filename skip = 1 break if skip: continue if mode[0] == 'd': if verbose > 1: print 'Remembering subdirectory', filename subdirs.append(filename) continue filesfound.append(filename) if info.has_key(filename) and info[filename] == infostuff: if verbose > 1: print 'Already have this version of', filename continue fullname = os.path.join(localdir, filename) tempname = os.path.join(localdir, '@'+filename) if interactive: doit = askabout('file', filename, pwd) if not doit: if not info.has_key(filename): info[filename] = 'Not retrieved' continue try: os.unlink(tempname) except os.error: pass try: fp = open(tempname, 'wb') except IOError, msg: print "Can't create %s: %s" % (tempname, str(msg)) continue if verbose: print 'Retrieving %s from %s as %s...' % \ (filename, pwd, fullname) if verbose: fp1 = LoggingFile(fp, 1024, sys.stdout) else: fp1 = fp t0 = time.time() try: f.retrbinary('RETR ' + filename, fp1.write, 8*1024) except ftplib.error_perm, msg: print msg t1 = time.time() bytes = fp.tell() fp.close() if fp1 != fp: fp1.close() try: os.unlink(fullname) except os.error: pass # Ignore the error try: os.rename(tempname, fullname) except os.error, msg: print "Can't rename %s to %s: %s" % (tempname, fullname, str(msg)) continue info[filename] = infostuff writedict(info, infofilename) if verbose: dt = t1 - t0 kbytes = bytes / 1024.0 print int(round(kbytes)), print 'Kbytes in', print int(round(dt)), print 'seconds', if t1 > t0: print '(~%d Kbytes/sec)' % \ int(round(kbytes/dt),) print # # Remove files from info that are no longer remote deletions = 0 for filename in info.keys(): if filename not in filesfound: if verbose: print "Removing obsolete info entry for", print filename, "in", localdir or "." del info[filename] deletions = deletions + 1 if deletions: writedict(info, infofilename) # # Remove local files that are no longer in the remote directory try: if not localdir: names = os.listdir(os.curdir) else: names = os.listdir(localdir) except os.error: names = [] for name in names: if name[0] == '.' or info.has_key(name) or name in subdirs: continue skip = 0 for pat in skippats: if fnmatch(name, pat): if verbose > 1: print 'Skip pattern', pat, print 'matches', name skip = 1 break if skip: continue fullname = os.path.join(localdir, name) if not rmok: if verbose: print 'Local file', fullname, print 'is no longer pertinent' continue if verbose: print 'Removing local file/dir', fullname remove(fullname) # # Recursively mirror subdirectories for subdir in subdirs: if interactive: doit = askabout('subdirectory', subdir, pwd) if not doit: continue if verbose: print 'Processing subdirectory', subdir localsubdir = os.path.join(localdir, subdir) pwd = f.pwd() if verbose > 1: print 'Remote directory now:', pwd print 'Remote cwd', subdir try: f.cwd(subdir) except ftplib.error_perm, msg: print "Can't chdir to", subdir, ":", msg else: if verbose: print 'Mirroring as', localsubdir mirrorsubdir(f, localsubdir) if verbose > 1: print 'Remote cwd ..' f.cwd('..') newpwd = f.pwd() if newpwd != pwd: print 'Ended up in wrong directory after cd + cd ..' print 'Giving up now.' break else: if verbose > 1: print 'OK.' | a25969620ad128c95dde9cf500b28fa3e57611c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a25969620ad128c95dde9cf500b28fa3e57611c9/ftpmirror.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
30,
1172,
296,
11092,
1191,
1867,
2187,
1191,
1214,
775,
30,
11882,
481,
12,
3729,
1214,
13,
1335,
1140,
18,
1636,
16,
1234,
30,
1172,
315,
2925,
358,
18312,
1191,
1867,
3113,
1191,
1214,
327,
1123,
3459,
273,
1140,
18,
803,
18,
5701,
12,
3729,
1214,
16,
2418,
27197,
1376,
6134,
775,
30,
977,
273,
1696,
12,
1376,
3459,
16,
296,
86,
16063,
896,
1435,
1335,
8340,
16,
1234,
30,
977,
273,
7485,
775,
30,
1123,
273,
5302,
12,
955,
13,
1335,
261,
22510,
16,
25473,
4672,
1172,
296,
6434,
15593,
1123,
316,
738,
87,
11,
738,
1123,
3459,
1123,
273,
2618,
720,
8291,
273,
5378,
11591,
273,
5378,
309,
3988,
30,
1172,
296,
19081,
2632,
1867,
738,
87,
7821,
738,
14720,
284,
18,
266,
313,
3548,
2668,
7085,
2187,
11591,
18,
6923,
13,
1390,
7015,
273,
5378,
364,
980,
316,
11591,
30,
309,
3988,
405,
404,
30,
1172,
3534,
1870,
16,
1375,
1369,
68,
309,
5318,
30,
468,
13217,
11591,
711,
2537,
9066,
31,
468,
7341,
342,
4696,
29869,
1544,
273,
533,
18,
6406,
12,
1369,
13,
1965,
273,
4014,
309,
1544,
18919,
21,
26894,
422,
2023,
30,
1544,
273,
1544,
10531,
17,
21,
65,
1965,
273,
296,
72,
11,
1123,
334,
3809,
273,
875,
469,
30,
468,
2884,
16,
15144,
279,
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,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
30,
1172,
296,
11092,
1191,
1867,
2187,
1191,
1214,
775,
30,
11882,
481,
12,
3729,
1214,
13,
1335,
1140,
18,
1636,
16,
1234,
30,
1172,
315,
2925,
358,
18312,
1191,
1867,
3113,
1191,
1214,
327,
1123,
3459,
273,
1140,
18,
803,
18,
5701,
12,
3729,
1214,
16,
2418,
27197,
1376,
6134,
775,
30,
977,
273,
1696,
12,
1376,
3459,
16,
296,
86,
16063,
896,
1435,
1335,
8340,
16,
1234,
30,
977,
273,
7485,
775,
30,
1123,
273,
5302,
12,
955,
13,
1335,
261,
22510,
16,
2
] |
if dlg.ShowModal() == wx.ID_OK: | try: if dlg.ShowModal() == wx.ID_OK: filepath = dlg.GetPath() except(wx._core.PyAssertionError): | def ShowOpenProjectDialog(): # Default system path current_dir = os.path.abspath(".") dlg = wx.FileDialog(None, message=_("Open InVesalius 3 project..."), defaultDir="", defaultFile="", wildcard=WILDCARD_OPEN, style=wx.OPEN|wx.CHANGE_DIR) # inv3 filter is default dlg.SetFilterIndex(0) # Show the dialog and retrieve the user response. If it is the OK response, # process the data. filepath = None if dlg.ShowModal() == wx.ID_OK: # This returns a Python list of files that were selected. filepath = dlg.GetPath() # Destroy the dialog. Don't do this until you are done with it! # BAD things can happen otherwise! dlg.Destroy() os.chdir(current_dir) return filepath | 4e301724d72c134a526db8352f7e0a22ce969364 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/4e301724d72c134a526db8352f7e0a22ce969364/dialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
3678,
4109,
6353,
13332,
468,
2989,
2619,
589,
783,
67,
1214,
273,
1140,
18,
803,
18,
5113,
803,
2932,
1199,
13,
25840,
273,
7075,
18,
812,
6353,
12,
7036,
16,
883,
33,
67,
2932,
3678,
657,
58,
281,
287,
8384,
890,
1984,
7070,
3631,
805,
1621,
1546,
3113,
805,
812,
1546,
3113,
8531,
33,
59,
29067,
67,
11437,
16,
2154,
33,
27226,
18,
11437,
96,
27226,
18,
14473,
67,
4537,
13,
225,
468,
2198,
23,
1034,
353,
805,
25840,
18,
694,
1586,
1016,
12,
20,
13,
225,
468,
9674,
326,
6176,
471,
4614,
326,
729,
766,
18,
971,
518,
353,
326,
7791,
766,
16,
468,
1207,
326,
501,
18,
3608,
273,
599,
309,
25840,
18,
5706,
20191,
1435,
422,
7075,
18,
734,
67,
3141,
30,
468,
1220,
1135,
279,
6600,
666,
434,
1390,
716,
4591,
3170,
18,
3608,
273,
25840,
18,
967,
743,
1435,
225,
468,
15701,
326,
6176,
18,
7615,
1404,
741,
333,
3180,
1846,
854,
2731,
598,
518,
5,
468,
16467,
9198,
848,
5865,
3541,
5,
25840,
18,
10740,
1435,
1140,
18,
343,
1214,
12,
2972,
67,
1214,
13,
327,
3608,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
3678,
4109,
6353,
13332,
468,
2989,
2619,
589,
783,
67,
1214,
273,
1140,
18,
803,
18,
5113,
803,
2932,
1199,
13,
25840,
273,
7075,
18,
812,
6353,
12,
7036,
16,
883,
33,
67,
2932,
3678,
657,
58,
281,
287,
8384,
890,
1984,
7070,
3631,
805,
1621,
1546,
3113,
805,
812,
1546,
3113,
8531,
33,
59,
29067,
67,
11437,
16,
2154,
33,
27226,
18,
11437,
96,
27226,
18,
14473,
67,
4537,
13,
225,
468,
2198,
23,
1034,
353,
805,
25840,
18,
694,
1586,
1016,
12,
20,
13,
225,
468,
9674,
326,
6176,
471,
4614,
326,
729,
766,
18,
971,
518,
353,
326,
7791,
766,
16,
468,
1207,
326,
501,
18,
3608,
273,
599,
309,
25840,
18,
5706,
20191,
2
] |
def get_proc_data(stats_list): ''' Read /proc/stat info and store in dictionary ''' try: file_procstat = open("/proc/stat", 'r') for line in file_procstat: if line.startswith('cpu'): data = line.split() stats_list[data[0]] = data file_procstat.close() except OSError, e: print "Could not read statistics", e | def count_num_cpu(): ''' Returns number of cpu's in system ''' try: cpuinfo = open('/proc/cpuinfo', 'r') global cpu_count for line in cpuinfo: if line.startswith('processor'): cpu_count += 1 cpuinfo.close() except IOError, e: print "Could not get cpu count", e sys.exit(1) def count_num_sockets(): ''' Returns number of cpu's in system ''' socket_list = [] global socket_count try: for i in range(0, cpu_count): phy_pkg_file = '/sys/devices/system/cpu/cpu%s' % i phy_pkg_file += '/topology/physical_package_id' socket_id = open(phy_pkg_file).read().rstrip() if socket_id not in socket_list: socket_list.append(socket_id) socket_count = socket_count + 1 except Exception, details: print "INFO: Failed to get number of sockets in system", details sys.exit(1) def is_multi_socket(): '''Return 1 if the system is multi socket else return 0 ''' try: if socket_count > 1: return 1 else: return 0 except Exception: print "Failed to check if system is multi socket system" | def get_proc_data(stats_list): ''' Read /proc/stat info and store in dictionary ''' try: file_procstat = open("/proc/stat", 'r') for line in file_procstat: if line.startswith('cpu'): data = line.split() stats_list[data[0]] = data file_procstat.close() except OSError, e: print "Could not read statistics", e sys.exit(1) | b2c7cd73607f781c03a9475f07333b594ed7d1a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/b2c7cd73607f781c03a9475f07333b594ed7d1a5/sched_mc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
67,
2107,
67,
11447,
13332,
9163,
2860,
1300,
434,
8326,
1807,
316,
2619,
9163,
775,
30,
8326,
1376,
273,
1696,
2668,
19,
9381,
19,
11447,
1376,
2187,
296,
86,
6134,
2552,
8326,
67,
1883,
364,
980,
316,
8326,
1376,
30,
309,
980,
18,
17514,
1918,
2668,
8700,
11,
4672,
8326,
67,
1883,
1011,
404,
8326,
1376,
18,
4412,
1435,
1335,
8340,
16,
425,
30,
1172,
315,
4445,
486,
336,
8326,
1056,
3113,
425,
2589,
18,
8593,
12,
21,
13,
225,
1652,
1056,
67,
2107,
67,
7814,
87,
13332,
9163,
2860,
1300,
434,
8326,
1807,
316,
2619,
9163,
2987,
67,
1098,
273,
5378,
2552,
2987,
67,
1883,
775,
30,
364,
277,
316,
1048,
12,
20,
16,
8326,
67,
1883,
4672,
1844,
93,
67,
10657,
67,
768,
273,
1173,
9499,
19,
12506,
19,
4299,
19,
11447,
19,
11447,
9,
87,
11,
738,
277,
1844,
93,
67,
10657,
67,
768,
1011,
1173,
25572,
19,
20441,
67,
5610,
67,
350,
11,
2987,
67,
350,
273,
1696,
12,
844,
93,
67,
10657,
67,
768,
2934,
896,
7675,
86,
6406,
1435,
309,
2987,
67,
350,
486,
316,
2987,
67,
1098,
30,
2987,
67,
1098,
18,
6923,
12,
7814,
67,
350,
13,
2987,
67,
1883,
273,
2987,
67,
1883,
397,
404,
1335,
1185,
16,
3189,
30,
1172,
315,
5923,
30,
11175,
358,
336,
1300,
434,
16762,
316,
2619,
3113,
3189,
2589,
18,
8593,
12,
21,
13,
225,
1652,
353,
67,
7027,
67,
7814,
13332,
9163,
990,
404,
309,
326,
2619,
353,
3309,
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,
1056,
67,
2107,
67,
11447,
13332,
9163,
2860,
1300,
434,
8326,
1807,
316,
2619,
9163,
775,
30,
8326,
1376,
273,
1696,
2668,
19,
9381,
19,
11447,
1376,
2187,
296,
86,
6134,
2552,
8326,
67,
1883,
364,
980,
316,
8326,
1376,
30,
309,
980,
18,
17514,
1918,
2668,
8700,
11,
4672,
8326,
67,
1883,
1011,
404,
8326,
1376,
18,
4412,
1435,
1335,
8340,
16,
425,
30,
1172,
315,
4445,
486,
336,
8326,
1056,
3113,
425,
2589,
18,
8593,
12,
21,
13,
225,
1652,
1056,
67,
2107,
67,
7814,
87,
13332,
9163,
2860,
1300,
434,
8326,
1807,
316,
2619,
9163,
2987,
67,
1098,
273,
5378,
2552,
2987,
67,
1883,
775,
30,
364,
277,
316,
1048,
12,
20,
16,
8326,
67,
2
] |
""" | """ | def fl_unpack_bits(p1, p2, p3): """ fl_unpack_bits(p1, p2, p3) """ _fl_unpack_bits(p1, p2, p3) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
17309,
67,
6789,
12,
84,
21,
16,
293,
22,
16,
293,
23,
4672,
3536,
1183,
67,
17309,
67,
6789,
12,
84,
21,
16,
293,
22,
16,
293,
23,
13,
3536,
225,
389,
2242,
67,
17309,
67,
6789,
12,
84,
21,
16,
293,
22,
16,
293,
23,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
17309,
67,
6789,
12,
84,
21,
16,
293,
22,
16,
293,
23,
4672,
3536,
1183,
67,
17309,
67,
6789,
12,
84,
21,
16,
293,
22,
16,
293,
23,
13,
3536,
225,
389,
2242,
67,
17309,
67,
6789,
12,
84,
21,
16,
293,
22,
16,
293,
23,
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
] |
res.append(node_res_dir(dirr.name,self,self.context,dirr)) | res.append(node_res_dir(dirr.name,self,self.context, dirr, {'active_id': self.res_id})) | def _child_get(self,cr,name = None): dirobj = self.context._dirobj uid = self.context.uid ctx = self.context.context.copy() ctx.update(self.dctx) directory = dirobj.browse(cr, uid, self.dir_id) obj = dirobj.pool.get(self.res_model) where = [] res = [] if name: where.append(('name','=',name)) if self.res_id and directory.ressource_tree: if obj._parent_name in obj.fields_get(cr, uid): where.append((obj._parent_name, '=', self.res_id)) resids = obj.search(cr,uid, where, context=ctx) for bo in obj.browse(cr,uid,resids,context=ctx): namefield = directory.resource_field or 'name' if not bo: continue name = getattr(bo, namefield) if not name: continue res.append(node_res_obj(name, self, self.context, self.res_model, res_bo = bo)) if name: where.append(('name','=',name)) where = [('parent_id','=',self.dir_id) ] ids = dirobj.search(cr, uid, where,context=ctx) if ids: for dirr in dirobj.browse(cr,uid,ids,context=ctx): if dirr.type == 'directory': res.append(node_res_obj(dirr.name,self,self.context,self.res_model,res_bo = None, res_id = self.res_id)) elif dirr.type == 'ressource': # child resources can be controlled by properly set dctx res.append(node_res_dir(dirr.name,self,self.context,dirr)) fil_obj=dirobj.pool.get('ir.attachment') where2 = where + [('res_model', '=', self.res_model), ('res_id','=',self.res_id)] # print "where clause for dir_obj", where2 ids = fil_obj.search(cr,uid,where2,context=ctx) if ids: for fil in fil_obj.browse(cr,uid,ids,context=ctx): res.append(node_file(fil.name,self,self.context,fil)) return res | 4a6d0a4a5112de7c89e8fe468f5ea0470ab01acf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/4a6d0a4a5112de7c89e8fe468f5ea0470ab01acf/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2890,
16,
3353,
16,
529,
273,
599,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
4555,
273,
365,
18,
2472,
18,
1911,
1103,
273,
365,
18,
2472,
18,
2472,
18,
3530,
1435,
1103,
18,
2725,
12,
2890,
18,
72,
5900,
13,
1867,
273,
4314,
303,
441,
18,
25731,
12,
3353,
16,
4555,
16,
365,
18,
1214,
67,
350,
13,
1081,
273,
4314,
303,
441,
18,
6011,
18,
588,
12,
2890,
18,
455,
67,
2284,
13,
1625,
273,
5378,
400,
273,
5378,
309,
508,
30,
1625,
18,
6923,
12,
2668,
529,
17023,
33,
2187,
529,
3719,
309,
365,
18,
455,
67,
350,
471,
1867,
18,
663,
552,
67,
3413,
30,
309,
1081,
6315,
2938,
67,
529,
316,
1081,
18,
2821,
67,
588,
12,
3353,
16,
4555,
4672,
1625,
18,
6923,
12443,
2603,
6315,
2938,
67,
529,
16,
15196,
2187,
365,
18,
455,
67,
350,
3719,
400,
2232,
273,
1081,
18,
3072,
12,
3353,
16,
1911,
16,
1625,
16,
819,
33,
5900,
13,
364,
800,
316,
1081,
18,
25731,
12,
3353,
16,
1911,
16,
455,
2232,
16,
2472,
33,
5900,
4672,
508,
1518,
273,
1867,
18,
3146,
67,
1518,
578,
296,
529,
11,
309,
486,
800,
30,
1324,
508,
273,
3869,
12,
1075,
16,
508,
1518,
13,
309,
486,
508,
30,
1324,
400,
18,
6923,
12,
2159,
67,
455,
67,
2603,
12,
529,
16,
365,
16,
365,
18,
2472,
16,
365,
18,
455,
67,
2284,
16,
400,
67,
1075,
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,
3624,
67,
588,
12,
2890,
16,
3353,
16,
529,
273,
599,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
4555,
273,
365,
18,
2472,
18,
1911,
1103,
273,
365,
18,
2472,
18,
2472,
18,
3530,
1435,
1103,
18,
2725,
12,
2890,
18,
72,
5900,
13,
1867,
273,
4314,
303,
441,
18,
25731,
12,
3353,
16,
4555,
16,
365,
18,
1214,
67,
350,
13,
1081,
273,
4314,
303,
441,
18,
6011,
18,
588,
12,
2890,
18,
455,
67,
2284,
13,
1625,
273,
5378,
400,
273,
5378,
309,
508,
30,
1625,
18,
6923,
12,
2668,
529,
17023,
33,
2187,
529,
3719,
309,
365,
18,
455,
67,
350,
471,
1867,
18,
663,
552,
67,
3413,
30,
2
] |
mitem_prefs.connect('activate', self.on_mitem_prefs_activate); | mitem_prefs.connect('activate', self.on_mitem_prefs_activate) | def build_gui(self): self.window = gtk.Window() gtk.window_set_default_icon_from_file( utils.get_ui_object('imgs/ic64_hotot_classics.png')) self.window.set_icon_from_file( utils.get_ui_object('imgs/ic64_hotot_classics.png')) | 1b72b0ee57eb1ab604e64b31b416cae895174552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12179/1b72b0ee57eb1ab604e64b31b416cae895174552/hotot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
20292,
12,
2890,
4672,
365,
18,
5668,
273,
22718,
18,
3829,
1435,
22718,
18,
5668,
67,
542,
67,
1886,
67,
3950,
67,
2080,
67,
768,
12,
2990,
18,
588,
67,
4881,
67,
1612,
2668,
381,
564,
19,
335,
1105,
67,
15224,
352,
67,
1106,
2102,
18,
6446,
26112,
365,
18,
5668,
18,
542,
67,
3950,
67,
2080,
67,
768,
12,
2990,
18,
588,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
20292,
12,
2890,
4672,
365,
18,
5668,
273,
22718,
18,
3829,
1435,
22718,
18,
5668,
67,
542,
67,
1886,
67,
3950,
67,
2080,
67,
768,
12,
2990,
18,
588,
67,
4881,
67,
1612,
2668,
381,
564,
19,
335,
1105,
67,
15224,
352,
67,
1106,
2102,
18,
6446,
26112,
365,
18,
5668,
18,
542,
67,
3950,
67,
2080,
67,
768,
12,
2990,
18,
588,
67,
4881,
67,
1612,
2668,
381,
564,
19,
335,
1105,
67,
15224,
352,
67,
1106,
2102,
18,
6446,
26112,
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
] |
def paste_clipboard(self): self._vte.paste_clipboard() | def paste_clipboard(self, primary = False): if self._group: for term in self.terminator.term_list: if term._group == self._group: if primary: term._vte.paste_primary () else: term._vte.paste_clipboard () else: if primary: self._vte.paste_primary () else: self._vte.paste_clipboard () | def paste_clipboard(self): self._vte.paste_clipboard() self._vte.grab_focus() | 40a1f6e209e7eb47c450194d7489c941f31300e7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/40a1f6e209e7eb47c450194d7489c941f31300e7/terminatorterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19401,
67,
14161,
3752,
12,
2890,
16,
3354,
273,
1083,
4672,
309,
365,
6315,
1655,
30,
364,
2481,
316,
365,
18,
9505,
639,
18,
6408,
67,
1098,
30,
309,
2481,
6315,
1655,
422,
365,
6315,
1655,
30,
309,
3354,
30,
2481,
6315,
90,
736,
18,
29795,
67,
8258,
1832,
469,
30,
2481,
6315,
90,
736,
18,
29795,
67,
14161,
3752,
1832,
469,
30,
309,
3354,
30,
365,
6315,
90,
736,
18,
29795,
67,
8258,
1832,
469,
30,
365,
6315,
90,
736,
18,
29795,
67,
14161,
3752,
1832,
365,
6315,
90,
736,
18,
2752,
70,
67,
13923,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19401,
67,
14161,
3752,
12,
2890,
16,
3354,
273,
1083,
4672,
309,
365,
6315,
1655,
30,
364,
2481,
316,
365,
18,
9505,
639,
18,
6408,
67,
1098,
30,
309,
2481,
6315,
1655,
422,
365,
6315,
1655,
30,
309,
3354,
30,
2481,
6315,
90,
736,
18,
29795,
67,
8258,
1832,
469,
30,
2481,
6315,
90,
736,
18,
29795,
67,
14161,
3752,
1832,
469,
30,
309,
3354,
30,
365,
6315,
90,
736,
18,
29795,
67,
8258,
1832,
469,
30,
365,
6315,
90,
736,
18,
29795,
67,
14161,
3752,
1832,
365,
6315,
90,
736,
18,
2752,
70,
67,
13923,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if True: | if 1: | def build(platform, clean): if platform == "Win32": dest = os.path.join(ROOT, "tcltk") machine = "X86" elif platform == "x64": dest = os.path.join(ROOT, "tcltk64") machine = "X64" else: raise ValueError(platform) # TCL tcldir = os.path.join(ROOT, TCL) if True: os.chdir(os.path.join(tcldir, "win")) if clean: system(NMAKE + "/f makefile.vc clean") system(NMAKE + "/f makefile.vc") system(NMAKE + "/f makefile.vc INSTALLDIR=%s install" % dest) # TK if True: os.chdir(os.path.join(ROOT, TK, "win")) if clean: system(NMAKE + "/f makefile.vc clean") system(NMAKE + "/f makefile.vc TCLDIR=%s" % tcldir) system(NMAKE + "/f makefile.vc TCLDIR=%s INSTALLDIR=%s install" % (tcldir, dest)) # TIX if True: # python9.mak is available at http://svn.python.org os.chdir(os.path.join(ROOT, TIX, "win")) if clean: system(NMAKE + "/f python9.mak clean") system(NMAKE + "/f python9.mak MACHINE=%s" % machine) system(NMAKE + "/f python9.mak install") | 9c9d9a11828c3c6b2086909f73503f7d759715db /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/9c9d9a11828c3c6b2086909f73503f7d759715db/build_tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
9898,
16,
2721,
4672,
309,
4072,
422,
315,
18049,
1578,
6877,
1570,
273,
1140,
18,
803,
18,
5701,
12,
9185,
16,
315,
88,
830,
16099,
7923,
5228,
273,
315,
60,
5292,
6,
1327,
4072,
422,
315,
92,
1105,
6877,
1570,
273,
1140,
18,
803,
18,
5701,
12,
9185,
16,
315,
88,
830,
16099,
1105,
7923,
5228,
273,
315,
60,
1105,
6,
469,
30,
1002,
2068,
12,
9898,
13,
225,
468,
399,
5017,
268,
830,
1214,
273,
1140,
18,
803,
18,
5701,
12,
9185,
16,
399,
5017,
13,
309,
404,
30,
1140,
18,
343,
1214,
12,
538,
18,
803,
18,
5701,
12,
88,
830,
1214,
16,
315,
8082,
6,
3719,
309,
2721,
30,
2619,
12,
50,
5535,
6859,
397,
2206,
74,
1221,
768,
18,
4227,
2721,
7923,
2619,
12,
50,
5535,
6859,
397,
2206,
74,
1221,
768,
18,
4227,
7923,
2619,
12,
50,
5535,
6859,
397,
2206,
74,
1221,
768,
18,
4227,
22880,
4685,
4537,
5095,
87,
3799,
6,
738,
1570,
13,
225,
468,
399,
47,
309,
404,
30,
1140,
18,
343,
1214,
12,
538,
18,
803,
18,
5701,
12,
9185,
16,
399,
47,
16,
315,
8082,
6,
3719,
309,
2721,
30,
2619,
12,
50,
5535,
6859,
397,
2206,
74,
1221,
768,
18,
4227,
2721,
7923,
2619,
12,
50,
5535,
6859,
397,
2206,
74,
1221,
768,
18,
4227,
399,
5017,
4537,
5095,
87,
6,
738,
268,
830,
1214,
13,
2619,
12,
50,
5535,
6859,
397,
2206,
74,
1221,
768,
18,
4227,
399,
5017,
4537,
5095,
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,
1361,
12,
9898,
16,
2721,
4672,
309,
4072,
422,
315,
18049,
1578,
6877,
1570,
273,
1140,
18,
803,
18,
5701,
12,
9185,
16,
315,
88,
830,
16099,
7923,
5228,
273,
315,
60,
5292,
6,
1327,
4072,
422,
315,
92,
1105,
6877,
1570,
273,
1140,
18,
803,
18,
5701,
12,
9185,
16,
315,
88,
830,
16099,
1105,
7923,
5228,
273,
315,
60,
1105,
6,
469,
30,
1002,
2068,
12,
9898,
13,
225,
468,
399,
5017,
268,
830,
1214,
273,
1140,
18,
803,
18,
5701,
12,
9185,
16,
399,
5017,
13,
309,
404,
30,
1140,
18,
343,
1214,
12,
538,
18,
803,
18,
5701,
12,
88,
830,
1214,
16,
315,
8082,
6,
3719,
309,
2721,
30,
2619,
12,
50,
5535,
2
] |
assert_equal(amax(b),[8.0,10.0,9.0]) | assert_equal(amax(b,axis=0),[8.0,10.0,9.0]) | def check_basic(self): a = [3,4,5,10,-3,-5,6.0] assert_equal(amax(a),10.0) b = [[3,6.0, 9.0], [4,10.0,5.0], [8,3.0,2.0]] assert_equal(amax(b),[8.0,10.0,9.0]) assert_equal(amax(b,axis=1),[9.0,10.0,8.0]) | 5d776d8493fd3981f0349df78bccd09a593e3fbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5d776d8493fd3981f0349df78bccd09a593e3fbf/test_function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
13240,
12,
2890,
4672,
279,
273,
306,
23,
16,
24,
16,
25,
16,
2163,
16,
17,
23,
16,
17,
25,
16,
26,
18,
20,
65,
1815,
67,
9729,
12,
301,
651,
12,
69,
3631,
2163,
18,
20,
13,
324,
273,
12167,
23,
16,
26,
18,
20,
16,
2468,
18,
20,
6487,
306,
24,
16,
2163,
18,
20,
16,
25,
18,
20,
6487,
306,
28,
16,
23,
18,
20,
16,
22,
18,
20,
13563,
1815,
67,
9729,
12,
301,
651,
12,
70,
16,
4890,
33,
20,
3631,
63,
28,
18,
20,
16,
2163,
18,
20,
16,
29,
18,
20,
5717,
1815,
67,
9729,
12,
301,
651,
12,
70,
16,
4890,
33,
21,
3631,
63,
29,
18,
20,
16,
2163,
18,
20,
16,
28,
18,
20,
5717,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
13240,
12,
2890,
4672,
279,
273,
306,
23,
16,
24,
16,
25,
16,
2163,
16,
17,
23,
16,
17,
25,
16,
26,
18,
20,
65,
1815,
67,
9729,
12,
301,
651,
12,
69,
3631,
2163,
18,
20,
13,
324,
273,
12167,
23,
16,
26,
18,
20,
16,
2468,
18,
20,
6487,
306,
24,
16,
2163,
18,
20,
16,
25,
18,
20,
6487,
306,
28,
16,
23,
18,
20,
16,
22,
18,
20,
13563,
1815,
67,
9729,
12,
301,
651,
12,
70,
16,
4890,
33,
20,
3631,
63,
28,
18,
20,
16,
2163,
18,
20,
16,
29,
18,
20,
5717,
1815,
67,
9729,
12,
301,
651,
12,
70,
16,
4890,
33,
21,
3631,
63,
29,
18,
20,
2
] |
png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/plugin.png")) | png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/icons/plugin.png")) | def PluginDownloadComponent(plugin, name): res = [ plugin ] res.append(MultiContentEntryText(pos=(120, 5), size=(320, 25), font=0, text=name)) res.append(MultiContentEntryText(pos=(120, 26), size=(320, 17), font=1, text=plugin.description)) if plugin.icon is None: png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/plugin.png")) else: png = plugin.icon res.append(MultiContentEntryPixmapAlphaTest(pos=(10, 0), size=(100, 50), png = png)) return res | 679475dbb4c18821055c9b9d632f689aaa9f3516 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/679475dbb4c18821055c9b9d632f689aaa9f3516/PluginList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6258,
7109,
1841,
12,
4094,
16,
508,
4672,
400,
273,
306,
1909,
308,
225,
400,
18,
6923,
12,
5002,
1350,
1622,
1528,
12,
917,
28657,
22343,
16,
1381,
3631,
963,
28657,
31273,
16,
6969,
3631,
3512,
33,
20,
16,
977,
33,
529,
3719,
400,
18,
6923,
12,
5002,
1350,
1622,
1528,
12,
917,
28657,
22343,
16,
10659,
3631,
963,
28657,
31273,
16,
8043,
3631,
3512,
33,
21,
16,
977,
33,
4094,
18,
3384,
3719,
225,
309,
1909,
18,
3950,
353,
599,
30,
14476,
273,
4444,
21816,
1458,
12,
10828,
5359,
12,
19444,
67,
11129,
706,
67,
13603,
16,
315,
7771,
267,
67,
1886,
19,
14516,
19,
4094,
18,
6446,
6,
3719,
469,
30,
14476,
273,
1909,
18,
3950,
400,
18,
6923,
12,
5002,
1350,
1622,
21816,
1458,
9690,
4709,
12,
917,
28657,
2163,
16,
374,
3631,
963,
28657,
6625,
16,
6437,
3631,
14476,
273,
14476,
3719,
225,
327,
400,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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529,
3719,
400,
18,
6923,
12,
5002,
1350,
1622,
1528,
12,
917,
28657,
22343,
16,
10659,
3631,
963,
28657,
31273,
16,
8043,
3631,
3512,
33,
21,
16,
977,
33,
4094,
18,
3384,
3719,
225,
309,
1909,
18,
3950,
353,
599,
30,
14476,
273,
4444,
21816,
1458,
12,
10828,
5359,
12,
19444,
67,
11129,
706,
67,
13603,
16,
315,
7771,
267,
67,
1886,
19,
14516,
19,
4094,
18,
6446,
6,
3719,
469,
30,
14476,
273,
1909,
18,
3950,
2
] |
self.dpi = cps.Float( "Resolution (pixels per inch)",96.0,minval=1.0, doc="""This is the resolution to be used when displaying the image (in pixels per inch).""") | self.font_size = cps.Integer( "Font size (points)", 12, minval=1) self.decimals = cps.Integer( "Number of decimals", 2, minval=0) | def object_fn(): if self.objects_or_image == OI_OBJECTS: return self.objects_name.value else: return cpmeas.IMAGE | edc598b9bdc386736a3751d962a840353fbc9c99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2870/edc598b9bdc386736a3751d962a840353fbc9c99/displaydataonimage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
733,
67,
4293,
13332,
309,
365,
18,
6911,
67,
280,
67,
2730,
422,
531,
45,
67,
9422,
55,
30,
327,
365,
18,
6911,
67,
529,
18,
1132,
469,
30,
327,
3283,
21992,
18,
13603,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
733,
67,
4293,
13332,
309,
365,
18,
6911,
67,
280,
67,
2730,
422,
531,
45,
67,
9422,
55,
30,
327,
365,
18,
6911,
67,
529,
18,
1132,
469,
30,
327,
3283,
21992,
18,
13603,
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
] |
if self.options.output_encoding.lower() == 'unicode': | if self.settings.output_encoding \ and self.settings.output_encoding.lower() == 'unicode': | def write(self, data): """Encode `data`, store it in `self.destination`, and return it.""" if self.options.output_encoding.lower() == 'unicode': self.destination = data else: self.destination = data.encode(self.options.output_encoding) return self.destination | 4dc05f6313b31ed168d03606d78b896f61e0699c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/4dc05f6313b31ed168d03606d78b896f61e0699c/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
4672,
3536,
5509,
1375,
892,
9191,
1707,
518,
316,
1375,
2890,
18,
10590,
9191,
471,
327,
518,
12123,
309,
365,
18,
4272,
18,
2844,
67,
5999,
521,
471,
365,
18,
4272,
18,
2844,
67,
5999,
18,
8167,
1435,
422,
296,
9124,
4278,
365,
18,
10590,
273,
501,
469,
30,
365,
18,
10590,
273,
501,
18,
3015,
12,
2890,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
4672,
3536,
5509,
1375,
892,
9191,
1707,
518,
316,
1375,
2890,
18,
10590,
9191,
471,
327,
518,
12123,
309,
365,
18,
4272,
18,
2844,
67,
5999,
521,
471,
365,
18,
4272,
18,
2844,
67,
5999,
18,
8167,
1435,
422,
296,
9124,
4278,
365,
18,
10590,
273,
501,
469,
30,
365,
18,
10590,
273,
501,
18,
3015,
12,
2890,
18,
2116,
18,
2844,
67,
5999,
13,
327,
365,
18,
10590,
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
] |
while self._list[-1]._is_exact_zero(): | while len(self._list) > 0 and self._list[-1]._is_exact_zero(): | def _comp_list(self): if self.degree() == -1 and self._valbase == infinity: self._list = [] return self._list polylist = self._poly.list() polylen = len(polylist) self._list = [self.base_ring()(polylist[i], absprec = self._relprecs[i]) << self._valbase for i in range(polylen)] \ + [self.base_ring()(0, absprec = self._relprecs[i] + self._valbase) for i in range(polylen, len(self._relprecs))] while self._list[-1]._is_exact_zero(): self._list.pop() | 544cf20a0a5f0600afa08e4bc3642619ac7904d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/544cf20a0a5f0600afa08e4bc3642619ac7904d1/polynomial_padic_capped_relative_dense.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2919,
67,
1098,
12,
2890,
4672,
309,
365,
18,
21361,
1435,
422,
300,
21,
471,
365,
6315,
1125,
1969,
422,
27272,
30,
365,
6315,
1098,
273,
5378,
327,
365,
6315,
1098,
7573,
1098,
273,
365,
6315,
16353,
18,
1098,
1435,
7573,
1897,
273,
562,
12,
16353,
1098,
13,
365,
6315,
1098,
273,
306,
2890,
18,
1969,
67,
8022,
1435,
12,
16353,
1098,
63,
77,
6487,
2417,
4036,
273,
365,
6315,
2878,
1484,
2143,
63,
77,
5717,
2296,
365,
6315,
1125,
1969,
364,
277,
316,
1048,
12,
16353,
1897,
25887,
521,
397,
306,
2890,
18,
1969,
67,
8022,
1435,
12,
20,
16,
2417,
4036,
273,
365,
6315,
2878,
1484,
2143,
63,
77,
65,
397,
365,
6315,
1125,
1969,
13,
364,
277,
316,
1048,
12,
16353,
1897,
16,
562,
12,
2890,
6315,
2878,
1484,
2143,
3719,
65,
1323,
562,
12,
2890,
6315,
1098,
13,
405,
374,
471,
365,
6315,
1098,
18919,
21,
65,
6315,
291,
67,
17165,
67,
7124,
13332,
365,
6315,
1098,
18,
5120,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2919,
67,
1098,
12,
2890,
4672,
309,
365,
18,
21361,
1435,
422,
300,
21,
471,
365,
6315,
1125,
1969,
422,
27272,
30,
365,
6315,
1098,
273,
5378,
327,
365,
6315,
1098,
7573,
1098,
273,
365,
6315,
16353,
18,
1098,
1435,
7573,
1897,
273,
562,
12,
16353,
1098,
13,
365,
6315,
1098,
273,
306,
2890,
18,
1969,
67,
8022,
1435,
12,
16353,
1098,
63,
77,
6487,
2417,
4036,
273,
365,
6315,
2878,
1484,
2143,
63,
77,
5717,
2296,
365,
6315,
1125,
1969,
364,
277,
316,
1048,
12,
16353,
1897,
25887,
521,
397,
306,
2890,
18,
1969,
67,
8022,
1435,
12,
20,
16,
2417,
4036,
273,
365,
6315,
2878,
1484,
2143,
63,
77,
65,
397,
365,
6315,
1125,
1969,
2
] |
ans = ans._fix(context=context) | ans = ans._fix(context) | def __add__(self, other, context=None): """Returns self + other. | dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
365,
397,
1308,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
365,
397,
1308,
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
] |
assert(self.mcl_state_machine.state == MCAP_STATE_READY) | assert(self.mcl_sm.state == MCAP_STATE_READY) | def check_asserts(self, counter): if (self.counter == 2): assert(self.mcl.count_mdls() == 1) assert(self.mcl_state_machine.state == MCAP_STATE_READY) assert(self.mcl.state == MCAP_MCL_STATE_ACTIVE) elif (self.counter == 3): assert(self.mcl.count_mdls() == 2) assert(self.mcl_state_machine.state == MCAP_STATE_READY) assert(self.mcl.state == MCAP_MCL_STATE_ACTIVE) elif (self.counter == 4): assert(self.mcl.count_mdls() == 3) assert(self.mcl_state_machine.state == MCAP_STATE_READY) assert(self.mcl.state == MCAP_MCL_STATE_ACTIVE) elif (self.counter == 5): assert(self.mcl.count_mdls() == 3) assert(self.mcl.state == MCAP_MCL_STATE_ACTIVE) assert(self.mcl_state_machine.state == MCAP_STATE_READY) elif (self.counter == 6): assert(self.mcl.count_mdls() == 2) assert(self.mcl.state == MCAP_MCL_STATE_ACTIVE) assert(self.mcl_state_machine.state == MCAP_STATE_READY) elif (self.counter == 7): assert(self.mcl.count_mdls() == 0) assert(self.mcl.state == MCAP_MCL_STATE_CONNECTED) assert(self.mcl_state_machine.state == MCAP_STATE_READY) | 58de439d6e74c4b1556bf0b35da03b7a41012af1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/58de439d6e74c4b1556bf0b35da03b7a41012af1/test1_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11231,
87,
12,
2890,
16,
3895,
4672,
309,
261,
2890,
18,
7476,
422,
576,
4672,
1815,
12,
2890,
18,
81,
830,
18,
1883,
67,
1264,
3251,
1435,
422,
404,
13,
1815,
12,
2890,
18,
81,
830,
67,
4808,
18,
2019,
422,
490,
17296,
67,
7998,
67,
20305,
13,
1815,
12,
2890,
18,
81,
830,
18,
2019,
422,
490,
17296,
67,
49,
5017,
67,
7998,
67,
13301,
13,
1327,
261,
2890,
18,
7476,
422,
890,
4672,
1815,
12,
2890,
18,
81,
830,
18,
1883,
67,
1264,
3251,
1435,
422,
576,
13,
1815,
12,
2890,
18,
81,
830,
67,
4808,
18,
2019,
422,
490,
17296,
67,
7998,
67,
20305,
13,
1815,
12,
2890,
18,
81,
830,
18,
2019,
422,
490,
17296,
67,
49,
5017,
67,
7998,
67,
13301,
13,
1327,
261,
2890,
18,
7476,
422,
1059,
4672,
1815,
12,
2890,
18,
81,
830,
18,
1883,
67,
1264,
3251,
1435,
422,
890,
13,
1815,
12,
2890,
18,
81,
830,
67,
4808,
18,
2019,
422,
490,
17296,
67,
7998,
67,
20305,
13,
1815,
12,
2890,
18,
81,
830,
18,
2019,
422,
490,
17296,
67,
49,
5017,
67,
7998,
67,
13301,
13,
1327,
261,
2890,
18,
7476,
422,
1381,
4672,
1815,
12,
2890,
18,
81,
830,
18,
1883,
67,
1264,
3251,
1435,
422,
890,
13,
1815,
12,
2890,
18,
81,
830,
18,
2019,
422,
490,
17296,
67,
49,
5017,
67,
7998,
67,
13301,
13,
1815,
12,
2890,
18,
81,
830,
67,
4808,
18,
2019,
422,
490,
17296,
67,
7998,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11231,
87,
12,
2890,
16,
3895,
4672,
309,
261,
2890,
18,
7476,
422,
576,
4672,
1815,
12,
2890,
18,
81,
830,
18,
1883,
67,
1264,
3251,
1435,
422,
404,
13,
1815,
12,
2890,
18,
81,
830,
67,
4808,
18,
2019,
422,
490,
17296,
67,
7998,
67,
20305,
13,
1815,
12,
2890,
18,
81,
830,
18,
2019,
422,
490,
17296,
67,
49,
5017,
67,
7998,
67,
13301,
13,
1327,
261,
2890,
18,
7476,
422,
890,
4672,
1815,
12,
2890,
18,
81,
830,
18,
1883,
67,
1264,
3251,
1435,
422,
576,
13,
1815,
12,
2890,
18,
81,
830,
67,
4808,
18,
2019,
422,
490,
17296,
67,
7998,
67,
20305,
13,
1815,
12,
2890,
18,
81,
830,
18,
2019,
2
] |
def bpCall(id=None,grp=None,cfg=None,iff=True,frameCount=1,onEnter=1,onExit=0): | def bpCall(id=None,grp=None,cfg=None,iff=True,test=None,frameCount=1,onEnter=1,onExit=0): | def bpCall(id=None,grp=None,cfg=None,iff=True,frameCount=1,onEnter=1,onExit=0): def decorator(f): return f | ff599cf9abda48677c7e0cc83e14db348aa882e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ff599cf9abda48677c7e0cc83e14db348aa882e5/PythonUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9107,
1477,
12,
350,
33,
7036,
16,
17532,
33,
7036,
16,
7066,
33,
7036,
16,
3048,
33,
5510,
16,
3813,
33,
7036,
16,
3789,
1380,
33,
21,
16,
265,
10237,
33,
21,
16,
265,
6767,
33,
20,
4672,
1652,
7367,
12,
74,
4672,
327,
284,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9107,
1477,
12,
350,
33,
7036,
16,
17532,
33,
7036,
16,
7066,
33,
7036,
16,
3048,
33,
5510,
16,
3813,
33,
7036,
16,
3789,
1380,
33,
21,
16,
265,
10237,
33,
21,
16,
265,
6767,
33,
20,
4672,
1652,
7367,
12,
74,
4672,
327,
284,
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
] |
upload_form(pagename, request, msg=_("Move aborted because empty page name")) | upload_form(pagename, request, msg=_("Move aborted because new page name is empty.")) | def _do_attachment_move(pagename, request): _ = request.getText if 'cancel' in request.form: return _('Move aborted!') if not wikiutil.checkTicket(request, request.form['ticket'][0]): return _('Please use the interactive user interface to move attachments!') if not request.user.may.delete(pagename): return _('You are not allowed to move attachments from this page.') if 'newpagename' in request.form: new_pagename = request.form.get('newpagename')[0] else: upload_form(pagename, request, msg=_("Move aborted because empty page name")) if 'newattachmentname' in request.form: new_attachment = request.form.get('newattachmentname')[0] if new_attachment != wikiutil.taintfilename(new_attachment): upload_form(pagename, request, msg=_("Please use a valid filename for attachment '%(filename)s'.") % { 'filename': new_attachment}) return else: upload_form(pagename, request, msg=_("Move aborted because empty attachment name")) attachment = request.form.get('oldattachmentname')[0] move_file(request, pagename, new_pagename, attachment, new_attachment) | 2cfeb118962f3d68f52f7fdb20123d8cb896505f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/2cfeb118962f3d68f52f7fdb20123d8cb896505f/AttachFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
11461,
67,
8501,
12,
9095,
1069,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
225,
309,
296,
10996,
11,
316,
590,
18,
687,
30,
327,
389,
2668,
7607,
18166,
5124,
13,
309,
486,
9050,
1367,
18,
1893,
13614,
12,
2293,
16,
590,
18,
687,
3292,
16282,
3546,
63,
20,
65,
4672,
327,
389,
2668,
8496,
999,
326,
12625,
729,
1560,
358,
3635,
10065,
5124,
13,
309,
486,
590,
18,
1355,
18,
24877,
18,
3733,
12,
9095,
1069,
4672,
327,
389,
2668,
6225,
854,
486,
2935,
358,
3635,
10065,
628,
333,
1363,
1093,
13,
225,
309,
296,
2704,
9095,
1069,
11,
316,
590,
18,
687,
30,
394,
67,
9095,
1069,
273,
590,
18,
687,
18,
588,
2668,
2704,
9095,
1069,
6134,
63,
20,
65,
469,
30,
3617,
67,
687,
12,
9095,
1069,
16,
590,
16,
1234,
33,
67,
2932,
7607,
18166,
2724,
394,
1363,
508,
353,
1008,
1199,
3719,
309,
296,
2704,
11461,
529,
11,
316,
590,
18,
687,
30,
394,
67,
11461,
273,
590,
18,
687,
18,
588,
2668,
2704,
11461,
529,
6134,
63,
20,
65,
309,
394,
67,
11461,
480,
9050,
1367,
18,
88,
1598,
3459,
12,
2704,
67,
11461,
4672,
3617,
67,
687,
12,
9095,
1069,
16,
590,
16,
1234,
33,
67,
2932,
8496,
999,
279,
923,
1544,
364,
6042,
21063,
3459,
13,
87,
14550,
13,
738,
288,
296,
3459,
4278,
394,
67,
11461,
6792,
327,
469,
30,
3617,
67,
687,
12,
9095,
1069,
16,
590,
16,
1234,
33,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
11461,
67,
8501,
12,
9095,
1069,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
225,
309,
296,
10996,
11,
316,
590,
18,
687,
30,
327,
389,
2668,
7607,
18166,
5124,
13,
309,
486,
9050,
1367,
18,
1893,
13614,
12,
2293,
16,
590,
18,
687,
3292,
16282,
3546,
63,
20,
65,
4672,
327,
389,
2668,
8496,
999,
326,
12625,
729,
1560,
358,
3635,
10065,
5124,
13,
309,
486,
590,
18,
1355,
18,
24877,
18,
3733,
12,
9095,
1069,
4672,
327,
389,
2668,
6225,
854,
486,
2935,
358,
3635,
10065,
628,
333,
1363,
1093,
13,
225,
309,
296,
2704,
9095,
1069,
11,
316,
590,
18,
687,
30,
394,
67,
9095,
1069,
273,
590,
18,
687,
18,
2
] |
r = dialog.run() | ret = dialog.run() | def delete_confirmation_dialog(parent): """Return boolean whether OK to delete files.""" dialog = gtk.Dialog(title = _("Delete confirmation"), parent = parent, flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT) dialog.set_default_size(300, -1) hbox = gtk.HBox(homogeneous=False, spacing=10) icon = gtk.Image() icon.set_from_stock(gtk.STOCK_DIALOG_WARNING, gtk.ICON_SIZE_DIALOG) hbox.pack_start(icon, False) question = gtk.Label(_("Are you sure you want to delete files according to the selected operations? The actual files that will be deleted may have changed since you ran the preview. Files cannot be undeleted.")) question.set_line_wrap(True) hbox.pack_start(question, False) dialog.vbox.pack_start(hbox, False) dialog.vbox.set_spacing(10) dialog.add_button(gtk.STOCK_CANCEL, False) dialog.add_button(gtk.STOCK_DELETE, True) dialog.set_default_response(gtk.RESPONSE_CANCEL) dialog.show_all() r = dialog.run() dialog.destroy() return r | 9d492cae068d04dccea7b824cceed2984729452a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/9d492cae068d04dccea7b824cceed2984729452a/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
22275,
67,
12730,
12,
2938,
4672,
3536,
990,
1250,
2856,
7791,
358,
1430,
1390,
12123,
6176,
273,
22718,
18,
6353,
12,
2649,
273,
389,
2932,
2613,
14296,
6,
3631,
982,
273,
982,
16,
2943,
273,
22718,
18,
2565,
18683,
67,
6720,
1013,
571,
22718,
18,
2565,
18683,
67,
1639,
25870,
61,
67,
9147,
67,
14943,
13,
6176,
18,
542,
67,
1886,
67,
1467,
12,
19249,
16,
300,
21,
13,
225,
366,
2147,
273,
22718,
18,
44,
3514,
12,
17125,
30075,
1481,
33,
8381,
16,
13259,
33,
2163,
13,
4126,
273,
22718,
18,
2040,
1435,
4126,
18,
542,
67,
2080,
67,
15381,
12,
4521,
79,
18,
31487,
3507,
67,
2565,
18683,
67,
9511,
16,
22718,
18,
21745,
67,
4574,
67,
2565,
18683,
13,
366,
2147,
18,
2920,
67,
1937,
12,
3950,
16,
1083,
13,
5073,
273,
22718,
18,
2224,
24899,
2932,
4704,
1846,
3071,
1846,
2545,
358,
1430,
1390,
4888,
358,
326,
3170,
5295,
35,
225,
1021,
3214,
1390,
716,
903,
506,
4282,
2026,
1240,
3550,
3241,
1846,
18892,
326,
10143,
18,
225,
6471,
2780,
506,
640,
8600,
1199,
3719,
5073,
18,
542,
67,
1369,
67,
4113,
12,
5510,
13,
366,
2147,
18,
2920,
67,
1937,
12,
4173,
16,
1083,
13,
6176,
18,
90,
2147,
18,
2920,
67,
1937,
12,
76,
2147,
16,
1083,
13,
6176,
18,
90,
2147,
18,
542,
67,
14080,
12,
2163,
13,
225,
6176,
18,
1289,
67,
5391,
12,
4521,
79,
18,
31487,
3507,
67,
25268,
16,
1083,
13,
6176,
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,
1430,
67,
22275,
67,
12730,
12,
2938,
4672,
3536,
990,
1250,
2856,
7791,
358,
1430,
1390,
12123,
6176,
273,
22718,
18,
6353,
12,
2649,
273,
389,
2932,
2613,
14296,
6,
3631,
982,
273,
982,
16,
2943,
273,
22718,
18,
2565,
18683,
67,
6720,
1013,
571,
22718,
18,
2565,
18683,
67,
1639,
25870,
61,
67,
9147,
67,
14943,
13,
6176,
18,
542,
67,
1886,
67,
1467,
12,
19249,
16,
300,
21,
13,
225,
366,
2147,
273,
22718,
18,
44,
3514,
12,
17125,
30075,
1481,
33,
8381,
16,
13259,
33,
2163,
13,
4126,
273,
22718,
18,
2040,
1435,
4126,
18,
542,
67,
2080,
67,
15381,
12,
4521,
79,
18,
31487,
3507,
67,
2565,
18683,
67,
9511,
16,
22718,
18,
21745,
2
] |
base=find_class(self, b) bases.append(base) | raise 'Invalid class', b | def manage_addZClass(self, id, title='', baseclasses=[], meta_type='', CreateAFactory=0, REQUEST=None, zope_object=0): """Add a Z Class """ bases=[] for b in baseclasses: if Products.meta_classes.has_key(b): bases.append(Products.meta_classes[b]) else: base=find_class(self, b) bases.append(base) Z=ZClass(id, title, bases, zope_object=zope_object) if meta_type: Z._zclass_.meta_type=meta_type self._setObject(id, Z) if CreateAFactory and meta_type: self.manage_addDTMLMethod( id+'_addForm', id+' constructor input form', addFormDefault % {'id': id, 'meta_type': meta_type}, ) self.manage_addDTMLMethod( id+'_add', id+' constructor', addDefault % {'id': id}, ) self.manage_addPermission( id+'_add_permission', id+' constructor permission', 'Add %ss' % meta_type ) self.manage_addPrincipiaFactory( id+'_factory', id+' factory', meta_type, id+'_addForm', 'Add %ss' % meta_type ) Z=self._getOb(id) Z.propertysheets.permissions.manage_edit( selected=['Add %ss' % id]) Z.manage_setPermissionMapping( permission_names=['Create class instances'], class_permissions=['Add %ss' % meta_type] ) if REQUEST is not None: return self.manage_main(self,REQUEST, update_menu=1) | fb1b39c9b03ed638e715aa3ed10bdc8cc6b187dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/fb1b39c9b03ed638e715aa3ed10bdc8cc6b187dc/ZClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
1289,
62,
797,
12,
2890,
16,
612,
16,
2077,
2218,
2187,
1026,
4701,
22850,
6487,
2191,
67,
723,
2218,
2187,
1788,
37,
1733,
33,
20,
16,
12492,
33,
7036,
16,
998,
1306,
67,
1612,
33,
20,
4672,
3536,
986,
279,
2285,
1659,
3536,
8337,
33,
8526,
364,
324,
316,
1026,
4701,
30,
309,
8094,
87,
18,
3901,
67,
4701,
18,
5332,
67,
856,
12,
70,
4672,
8337,
18,
6923,
12,
13344,
18,
3901,
67,
4701,
63,
70,
5717,
469,
30,
1002,
296,
1941,
667,
2187,
324,
225,
2285,
33,
62,
797,
12,
350,
16,
2077,
16,
8337,
16,
998,
1306,
67,
1612,
33,
94,
1306,
67,
1612,
13,
309,
2191,
67,
723,
30,
2285,
6315,
94,
1106,
27799,
3901,
67,
723,
33,
3901,
67,
723,
365,
6315,
542,
921,
12,
350,
16,
2285,
13,
225,
309,
1788,
37,
1733,
471,
2191,
67,
723,
30,
365,
18,
12633,
67,
1289,
40,
2838,
1305,
12,
612,
6797,
67,
1289,
1204,
2187,
612,
6797,
3885,
810,
646,
2187,
527,
1204,
1868,
738,
13666,
350,
4278,
612,
16,
296,
3901,
67,
723,
4278,
2191,
67,
723,
5779,
262,
365,
18,
12633,
67,
1289,
40,
2838,
1305,
12,
612,
6797,
67,
1289,
2187,
612,
6797,
3885,
2187,
28297,
738,
13666,
350,
4278,
612,
5779,
262,
365,
18,
12633,
67,
1289,
5041,
12,
612,
6797,
67,
1289,
67,
9827,
2187,
612,
6797,
3885,
4132,
2187,
296,
986,
738,
1049,
11,
738,
2191,
67,
723,
262,
365,
18,
12633,
67,
1289,
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,
10680,
67,
1289,
62,
797,
12,
2890,
16,
612,
16,
2077,
2218,
2187,
1026,
4701,
22850,
6487,
2191,
67,
723,
2218,
2187,
1788,
37,
1733,
33,
20,
16,
12492,
33,
7036,
16,
998,
1306,
67,
1612,
33,
20,
4672,
3536,
986,
279,
2285,
1659,
3536,
8337,
33,
8526,
364,
324,
316,
1026,
4701,
30,
309,
8094,
87,
18,
3901,
67,
4701,
18,
5332,
67,
856,
12,
70,
4672,
8337,
18,
6923,
12,
13344,
18,
3901,
67,
4701,
63,
70,
5717,
469,
30,
1002,
296,
1941,
667,
2187,
324,
225,
2285,
33,
62,
797,
12,
350,
16,
2077,
16,
8337,
16,
998,
1306,
67,
1612,
33,
94,
1306,
67,
1612,
13,
309,
2191,
67,
723,
30,
2285,
6315,
94,
2
] |
if mapPrefix == 'de': | if len(es.createentitylist('func_bomb_target')): | def unload(): global gungameWeaponOrderMenu # Unload all enabled addons for addonName in gungamelib.getRegisteredAddonlist(): if addonName in list_includedAddonsDir: es.unload('gungame/included_addons/%s' % addonName) elif addonName in list_customAddonsDir: es.unload('gungame/custom_addons/%s' % addonName) # Enable Buyzones userid = es.getuserid() es.server.cmd('es_xfire %d func_buyzone Enable' % userid) # Get map if try: mapObjectives = gungamelib.getVariableValue('gg_map_obj') mapPrefix = gungamelib.getGlobal('gungame_currentmap_prefix') # Re-enable objectives if mapObjectives < 3: # Re-enable all objectives if mapObjectives == 0: if mapPrefix == 'de': es.server.cmd('es_xfire %d func_bomb_target Enable' %userid) elif mapPrefix == 'cs': es.server.cmd('es_xfire %d func_hostage_rescue Enable' %userid) # Enable bomb zone elif mapObjectives == 1: if mapPrefix == 'de': es.server.cmd('es_xfire %d func_bomb_target Enable' %userid) # Enable hostage objectives elif mapObjectives == 2: if mapPrefix == 'cs': es.server.cmd('es_xfire %d func_hostage_rescue Enable' %userid) except: pass # Fire gg_unload event es.event('initialize', 'gg_unload') es.event('fire', 'gg_unload') # Remove the notify flag from all GunGame Console Variables list_gungameVariables = gungamelib.getVariableList() for variable in list_gungameVariables: es.ServerVar(variable).removeFlag('notify') es.server.cmd('%s 0' % variable) # Unregister this addon gungamelib.unregisterAddon('gungame') gungamelib.clearGunGame() | 7e69bb95a56d48637acdc3e83635e6a7231045a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4575/7e69bb95a56d48637acdc3e83635e6a7231045a3/gungame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27060,
13332,
2552,
31475,
13957,
3218,
28629,
2448,
4599,
225,
468,
1351,
945,
777,
3696,
31439,
364,
15466,
461,
316,
314,
20651,
9925,
495,
18,
588,
10868,
27901,
1098,
13332,
309,
15466,
461,
316,
666,
67,
20405,
986,
7008,
1621,
30,
5001,
18,
318,
945,
2668,
19339,
13957,
19,
20405,
67,
1289,
7008,
5258,
87,
11,
738,
15466,
461,
13,
1327,
15466,
461,
316,
666,
67,
3662,
986,
7008,
1621,
30,
5001,
18,
318,
945,
2668,
19339,
13957,
19,
3662,
67,
1289,
7008,
5258,
87,
11,
738,
15466,
461,
13,
225,
468,
9677,
605,
9835,
14203,
6709,
273,
5001,
18,
588,
8339,
1435,
5001,
18,
3567,
18,
4172,
2668,
281,
67,
5841,
577,
738,
72,
1326,
67,
70,
9835,
3486,
9677,
11,
738,
6709,
13,
225,
468,
968,
852,
309,
775,
30,
852,
921,
3606,
273,
314,
20651,
9925,
495,
18,
588,
3092,
620,
2668,
14253,
67,
1458,
67,
2603,
6134,
852,
2244,
273,
314,
20651,
9925,
495,
18,
588,
5160,
2668,
19339,
13957,
67,
2972,
1458,
67,
3239,
6134,
225,
468,
868,
17,
7589,
733,
3606,
309,
852,
921,
3606,
411,
890,
30,
468,
868,
17,
7589,
777,
733,
3606,
309,
852,
921,
3606,
422,
374,
30,
309,
562,
12,
281,
18,
2640,
1096,
1098,
2668,
644,
67,
70,
16659,
67,
3299,
26112,
30,
5001,
18,
3567,
18,
4172,
2668,
281,
67,
5841,
577,
738,
72,
1326,
67,
70,
16659,
67,
3299,
9677,
11,
738,
8339,
13,
1327,
852,
2244,
422,
296,
2143,
4278,
5001,
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,
27060,
13332,
2552,
31475,
13957,
3218,
28629,
2448,
4599,
225,
468,
1351,
945,
777,
3696,
31439,
364,
15466,
461,
316,
314,
20651,
9925,
495,
18,
588,
10868,
27901,
1098,
13332,
309,
15466,
461,
316,
666,
67,
20405,
986,
7008,
1621,
30,
5001,
18,
318,
945,
2668,
19339,
13957,
19,
20405,
67,
1289,
7008,
5258,
87,
11,
738,
15466,
461,
13,
1327,
15466,
461,
316,
666,
67,
3662,
986,
7008,
1621,
30,
5001,
18,
318,
945,
2668,
19339,
13957,
19,
3662,
67,
1289,
7008,
5258,
87,
11,
738,
15466,
461,
13,
225,
468,
9677,
605,
9835,
14203,
6709,
273,
5001,
18,
588,
8339,
1435,
5001,
18,
3567,
18,
4172,
2668,
281,
67,
5841,
577,
738,
72,
1326,
67,
70,
2
] |
n = (n**2 - n)/2 return Rational(self.size())/Rational(n) | if self.is_directed(): return Rational(self.size())/Rational((n**2 -n)) else: return Rational(self.size())/Rational((n**2 -n)/2) | def density(self): """ Returns the density (number of edges divided by number of possible edges). EXAMPLE: sage: d = {0: [1,4,5], 1: [2,6], 2: [3,7], 3: [4,8], 4: [9], 5: [7, 8], 6: [8,9], 7: [9]} sage: G = Graph(d); G.density() 1/3 | 9e7959b86e527b6a8ee901c399d9526d26e69fd5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9e7959b86e527b6a8ee901c399d9526d26e69fd5/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12142,
12,
2890,
4672,
3536,
2860,
326,
12142,
261,
2696,
434,
5231,
26057,
635,
1300,
434,
3323,
5231,
2934,
225,
5675,
21373,
30,
272,
410,
30,
302,
273,
288,
20,
30,
306,
21,
16,
24,
16,
25,
6487,
404,
30,
306,
22,
16,
26,
6487,
576,
30,
306,
23,
16,
27,
6487,
890,
30,
306,
24,
16,
28,
6487,
1059,
30,
306,
29,
6487,
1381,
30,
306,
27,
16,
1725,
6487,
1666,
30,
306,
28,
16,
29,
6487,
2371,
30,
306,
29,
18322,
272,
410,
30,
611,
273,
5601,
12,
72,
1769,
611,
18,
18781,
1435,
404,
19,
23,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12142,
12,
2890,
4672,
3536,
2860,
326,
12142,
261,
2696,
434,
5231,
26057,
635,
1300,
434,
3323,
5231,
2934,
225,
5675,
21373,
30,
272,
410,
30,
302,
273,
288,
20,
30,
306,
21,
16,
24,
16,
25,
6487,
404,
30,
306,
22,
16,
26,
6487,
576,
30,
306,
23,
16,
27,
6487,
890,
30,
306,
24,
16,
28,
6487,
1059,
30,
306,
29,
6487,
1381,
30,
306,
27,
16,
1725,
6487,
1666,
30,
306,
28,
16,
29,
6487,
2371,
30,
306,
29,
18322,
272,
410,
30,
611,
273,
5601,
12,
72,
1769,
611,
18,
18781,
1435,
404,
19,
23,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "partners",partner_ids | def _get_member_state(self, cr, uid, ids, name, args, context=None): res={} partner_ids = self.browse(cr,uid,ids) print "partners",partner_ids for pid in partner_ids: print "pid",pid res[pid.id]=pid.membership_state print "rs",res return res | 6cabe5111ec0564c84fa70a54bf695fafb164df1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/6cabe5111ec0564c84fa70a54bf695fafb164df1/cci_mission.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5990,
67,
2019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
400,
12938,
19170,
67,
2232,
273,
365,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
13,
364,
4231,
316,
19170,
67,
2232,
30,
1172,
315,
6610,
3113,
6610,
400,
63,
6610,
18,
350,
65,
33,
6610,
18,
19679,
67,
2019,
1172,
315,
5453,
3113,
455,
327,
400,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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316,
326,
981,
30,
1652,
389,
588,
67,
5990,
67,
2019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
400,
12938,
19170,
67,
2232,
273,
365,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
13,
364,
4231,
316,
19170,
67,
2232,
30,
1172,
315,
6610,
3113,
6610,
400,
63,
6610,
18,
350,
65,
33,
6610,
18,
19679,
67,
2019,
1172,
315,
5453,
3113,
455,
327,
400,
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
] | |
DebugPrint(0, "Info: suppressing record with " + jobIdType + " " + jobId + "due to unknown or null VOName") usageRecord.parentNode.removeChild(usageRecord) usageRecord.unlink() continue if external and resourceType != None: UpdateResource(xmlDoc, usageRecord, namespace, prefix, 'ResourceType', resourceType) JobIdentityNodes = usageRecord.getElementsByTagNameNS(namespace, 'JobIdentity') if not JobIdentityNodes: [jobIdType, jobId] = FindBestJobId(usageRecord, namespace, prefix) DebugPrint(0, "Warning: no jobIdentity block in " + jobIdType + " " + | DebugPrint(0, "Warning: too many JobIdentity blocks in " + jobIdType + " " + | def UsageCheckXmldoc(xmlDoc,external): "Fill in missing field in the xml document if needed" "If external is true, also check for ProbeName, SiteName and ResourceType" # Local namespace namespace = xmlDoc.documentElement.namespaceURI # Loop over (posibly multiple) jobUsageRecords for usageRecord in getUsageRecords(xmlDoc): # Local namespace and prefix, if any prefix = "" for child in usageRecord.childNodes: if child.nodeType == xml.dom.minidom.Node.ELEMENT_NODE and \ child.prefix: prefix = child.prefix + ":" break [VOName, ReportableVOName] = [None, None] UserIdentityNodes = usageRecord.getElementsByTagNameNS(namespace, 'UserIdentity') if not UserIdentityNodes: [jobIdType, jobId] = FindBestJobId(usageRecord, namespace, prefix) DebugPrint(0, "Warning: no UserIdentity block in " + jobIdType + " " + jobId) else: if len(UserIdentityNodes) > 1: [jobIdType, jobId] = FindBestJobId(usageRecord, namespace, prefix) DebugPrint(0, "Warning: too many UserIdentity blocks in " + jobIdType + " " + jobId) [VOName, ReportableVOName] = \ CheckAndExtendUserIdentity(xmlDoc, UserIdentityNodes[0], namespace, prefix) # If we are trying to handle only GRID jobs, suppress records # with a null or unknown VOName if Config.get_SuppressUnknownVORecords() and ((not VOName) or VOName == "Unknown"): [jobIdType, jobId] = FindBestJobId(usageRecord, namespace, prefix) DebugPrint(0, "Info: suppressing record with " + jobIdType + " " + jobId + "due to unknown or null VOName") usageRecord.parentNode.removeChild(usageRecord) usageRecord.unlink() continue # Add ResourceType if appropriate if external and resourceType != None: UpdateResource(xmlDoc, usageRecord, namespace, prefix, 'ResourceType', resourceType) # Add Grid. JobIdentityNodes = usageRecord.getElementsByTagNameNS(namespace, 'JobIdentity') if not JobIdentityNodes: [jobIdType, jobId] = FindBestJobId(usageRecord, namespace, prefix) DebugPrint(0, "Warning: no jobIdentity block in " + jobIdType + " " + jobId) else: if len(JobIdentityNodes) > 1: [jobIdType, jobId] = FindBestJobId(usageRecord, namespace, prefix) DebugPrint(0, "Warning: too many JobIdentity blocks in " + jobIdType + " " + jobId) Grid = CheckAndExtendJobIdentity(xmlDoc, JobIdentityNodes[0], namespace, prefix) StandardCheckXmldoc(xmlDoc,usageRecord,external) return len(getUsageRecords(xmlDoc)) | 56bee758f7cfb2158e4bf6f00e2591f22068707b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/56bee758f7cfb2158e4bf6f00e2591f22068707b/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
1564,
4432,
2434,
12,
2902,
1759,
16,
9375,
4672,
315,
8026,
316,
3315,
652,
316,
326,
2025,
1668,
309,
3577,
6,
315,
2047,
3903,
353,
638,
16,
2546,
866,
364,
25490,
461,
16,
9063,
461,
471,
16849,
6,
225,
468,
3566,
1981,
1981,
273,
2025,
1759,
18,
5457,
1046,
18,
4937,
3098,
468,
9720,
1879,
261,
917,
24755,
3229,
13,
1719,
5357,
6499,
364,
4084,
2115,
316,
336,
5357,
6499,
12,
2902,
1759,
4672,
468,
3566,
1981,
471,
1633,
16,
309,
1281,
1633,
273,
1408,
364,
1151,
316,
4084,
2115,
18,
3624,
3205,
30,
309,
1151,
18,
2159,
559,
422,
2025,
18,
9859,
18,
1154,
350,
362,
18,
907,
18,
10976,
67,
8744,
471,
521,
1151,
18,
3239,
30,
1633,
273,
1151,
18,
3239,
397,
6153,
898,
225,
306,
16169,
461,
16,
8706,
429,
16169,
461,
65,
273,
306,
7036,
16,
599,
65,
225,
2177,
4334,
3205,
273,
4084,
2115,
18,
588,
3471,
10401,
3156,
12,
4937,
16,
296,
1299,
4334,
6134,
309,
486,
2177,
4334,
3205,
30,
306,
4688,
548,
559,
16,
13845,
65,
273,
4163,
14173,
23378,
12,
9167,
2115,
16,
1981,
16,
1633,
13,
4015,
5108,
12,
20,
16,
315,
6210,
30,
1158,
2177,
4334,
1203,
316,
315,
397,
13845,
559,
397,
315,
315,
397,
13845,
13,
469,
30,
309,
562,
12,
1299,
4334,
3205,
13,
405,
404,
30,
306,
4688,
548,
559,
16,
13845,
65,
273,
4163,
14173,
23378,
12,
9167,
2115,
16,
1981,
16,
1633,
13,
4015,
5108,
12,
20,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
1564,
4432,
2434,
12,
2902,
1759,
16,
9375,
4672,
315,
8026,
316,
3315,
652,
316,
326,
2025,
1668,
309,
3577,
6,
315,
2047,
3903,
353,
638,
16,
2546,
866,
364,
25490,
461,
16,
9063,
461,
471,
16849,
6,
225,
468,
3566,
1981,
1981,
273,
2025,
1759,
18,
5457,
1046,
18,
4937,
3098,
468,
9720,
1879,
261,
917,
24755,
3229,
13,
1719,
5357,
6499,
364,
4084,
2115,
316,
336,
5357,
6499,
12,
2902,
1759,
4672,
468,
3566,
1981,
471,
1633,
16,
309,
1281,
1633,
273,
1408,
364,
1151,
316,
4084,
2115,
18,
3624,
3205,
30,
309,
1151,
18,
2159,
559,
422,
2025,
18,
9859,
18,
1154,
350,
362,
18,
907,
18,
10976,
67,
8744,
471,
521,
1151,
18,
2
] |
type(self.dsage_server.get_jobs_by_username('yqiang')), | type(self.dsage_server.get_jobs_by_username('yqiang', 'new')), | def testget_jobs_by_username(self): self.assertEquals( type(self.dsage_server.get_jobs_by_username('yqiang')), list) self.assertEquals( len(self.dsage_server.get_jobs_by_username('test')), 0) job = expand_job(self.dsage_server.get_job()) job.username = 'testing123' job.code = '' jdict = self.dsage_server.submit_job(job._reduce()) j = expand_job( self.dsage_server.get_jobs_by_username('testing123')[0]) self.assertEquals(j.username, job.username) | 551de33fde8d0f6ce992bc0bc45ca6a71fc9c588 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/551de33fde8d0f6ce992bc0bc45ca6a71fc9c588/test_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
588,
67,
10088,
67,
1637,
67,
5053,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
618,
12,
2890,
18,
2377,
410,
67,
3567,
18,
588,
67,
10088,
67,
1637,
67,
5053,
2668,
93,
85,
77,
539,
2187,
296,
2704,
6134,
3631,
666,
13,
365,
18,
11231,
8867,
12,
562,
12,
2890,
18,
2377,
410,
67,
3567,
18,
588,
67,
10088,
67,
1637,
67,
5053,
2668,
3813,
6134,
3631,
374,
13,
225,
1719,
273,
4542,
67,
4688,
12,
2890,
18,
2377,
410,
67,
3567,
18,
588,
67,
4688,
10756,
1719,
18,
5053,
273,
296,
3813,
310,
12936,
11,
1719,
18,
710,
273,
875,
525,
1576,
273,
365,
18,
2377,
410,
67,
3567,
18,
9297,
67,
4688,
12,
4688,
6315,
12498,
10756,
525,
273,
4542,
67,
4688,
12,
365,
18,
2377,
410,
67,
3567,
18,
588,
67,
10088,
67,
1637,
67,
5053,
2668,
3813,
310,
12936,
6134,
63,
20,
5717,
365,
18,
11231,
8867,
12,
78,
18,
5053,
16,
1719,
18,
5053,
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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,
67,
5053,
2668,
93,
85,
77,
539,
2187,
296,
2704,
6134,
3631,
666,
13,
365,
18,
11231,
8867,
12,
562,
12,
2890,
18,
2377,
410,
67,
3567,
18,
588,
67,
10088,
67,
1637,
67,
5053,
2668,
3813,
6134,
3631,
374,
13,
225,
1719,
273,
4542,
67,
4688,
12,
2890,
18,
2377,
410,
67,
3567,
18,
588,
67,
4688,
10756,
1719,
18,
5053,
273,
296,
3813,
310,
12936,
11,
1719,
18,
710,
273,
875,
525,
1576,
273,
365,
18,
2377,
410,
67,
3567,
18,
9297,
67,
4688,
12,
4688,
2
] |
def getPersonInfo(self): | def test_getPersonInfo(self): | def getPersonInfo(self): from schooltool.wxclient import SchoolToolClient body = ( '<html>\n' ' <h1>Foo!</h1>\n' '</html>\n' ) version = 'UnitTest/0.0' person_id = 'foo' response = ResponseStub(200, 'OK', body, server=version) factory = ConnectionFactory(response) client = SchoolToolClient() client.connectionFactory = factory result = client.getPersonInfo(person_id) self.assertEquals(result, body) self.assertEquals(len(factory.connections), 1) conn = factory.connections[0] self.assertEquals(conn.path, '/people/foo') | 8c4fa77bdd0911d4df9a73bcf718642ce0efb93f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/8c4fa77bdd0911d4df9a73bcf718642ce0efb93f/test_wxclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
8346,
966,
12,
2890,
4672,
628,
18551,
1371,
6738,
18,
27226,
2625,
1930,
348,
343,
1371,
6364,
1227,
1417,
273,
261,
2368,
2620,
5333,
82,
11,
296,
225,
411,
76,
21,
34,
42,
5161,
5,
1757,
76,
21,
5333,
82,
11,
4357,
2620,
5333,
82,
11,
262,
1177,
273,
296,
2802,
4709,
19,
20,
18,
20,
11,
6175,
67,
350,
273,
296,
11351,
11,
766,
273,
2306,
11974,
12,
6976,
16,
296,
3141,
2187,
1417,
16,
1438,
33,
1589,
13,
3272,
273,
4050,
1733,
12,
2740,
13,
1004,
273,
348,
343,
1371,
6364,
1227,
1435,
1004,
18,
4071,
1733,
273,
3272,
563,
273,
1004,
18,
588,
8346,
966,
12,
12479,
67,
350,
13,
365,
18,
11231,
8867,
12,
2088,
16,
1417,
13,
365,
18,
11231,
8867,
12,
1897,
12,
6848,
18,
13313,
3631,
404,
13,
1487,
273,
3272,
18,
13313,
63,
20,
65,
365,
18,
11231,
8867,
12,
4646,
18,
803,
16,
1173,
28035,
19,
11351,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
8346,
966,
12,
2890,
4672,
628,
18551,
1371,
6738,
18,
27226,
2625,
1930,
348,
343,
1371,
6364,
1227,
1417,
273,
261,
2368,
2620,
5333,
82,
11,
296,
225,
411,
76,
21,
34,
42,
5161,
5,
1757,
76,
21,
5333,
82,
11,
4357,
2620,
5333,
82,
11,
262,
1177,
273,
296,
2802,
4709,
19,
20,
18,
20,
11,
6175,
67,
350,
273,
296,
11351,
11,
766,
273,
2306,
11974,
12,
6976,
16,
296,
3141,
2187,
1417,
16,
1438,
33,
1589,
13,
3272,
273,
4050,
1733,
12,
2740,
13,
1004,
273,
348,
343,
1371,
6364,
1227,
1435,
1004,
18,
4071,
1733,
273,
3272,
563,
273,
1004,
18,
588,
8346,
966,
12,
12479,
67,
350,
13,
365,
18,
2
] |
"notices_url": notices_url, | def send(users, notice_type_label, message_template, object_list=[], issue_notice=True): """ create a new notice. This is intended to be how other apps create new notices. """ notice_type = NoticeType.objects.get(label=notice_type_label) message = encode_message(message_template, *object_list) recipients = [] notices_url = u"http://%s%s" % ( unicode(Site.objects.get_current()), reverse("notification_notices"), ) subject = render_to_string("notification/notification_subject.txt", { "display": notice_type.display, "notices_url": notices_url, }) message_body = render_to_string("notification/notification_body.txt", { "message": message_to_text(message), }) for user in users: if issue_notice: notice = Notice(user=user, message=message, notice_type=notice_type) notice.save() if should_send(user, notice_type, "1", default=True) and user.email: # Email recipients.append(user.email) send_mail(subject, message_body, settings.DEFAULT_FROM_EMAIL, recipients) | 7edaadd2b125c08c46e9c5c708481b4d42c54830 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11515/7edaadd2b125c08c46e9c5c708481b4d42c54830/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
5577,
16,
11690,
67,
723,
67,
1925,
16,
883,
67,
3202,
16,
733,
67,
1098,
22850,
6487,
5672,
67,
20392,
33,
5510,
4672,
3536,
752,
279,
394,
11690,
18,
225,
1220,
353,
12613,
358,
506,
3661,
1308,
8279,
752,
394,
486,
1242,
18,
3536,
11690,
67,
723,
273,
24914,
559,
18,
6911,
18,
588,
12,
1925,
33,
20392,
67,
723,
67,
1925,
13,
883,
273,
2017,
67,
2150,
12,
2150,
67,
3202,
16,
380,
1612,
67,
1098,
13,
12045,
273,
5378,
225,
486,
1242,
67,
718,
273,
582,
6,
2505,
23155,
87,
9,
87,
6,
738,
261,
5252,
12,
4956,
18,
6911,
18,
588,
67,
2972,
1435,
3631,
4219,
2932,
9927,
67,
902,
1242,
6,
3631,
262,
225,
3221,
273,
1743,
67,
869,
67,
1080,
2932,
9927,
19,
9927,
67,
7857,
18,
5830,
3113,
288,
315,
5417,
6877,
11690,
67,
723,
18,
5417,
16,
289,
13,
883,
67,
3432,
273,
1743,
67,
869,
67,
1080,
2932,
9927,
19,
9927,
67,
3432,
18,
5830,
3113,
288,
315,
2150,
6877,
883,
67,
869,
67,
955,
12,
2150,
3631,
289,
13,
225,
364,
729,
316,
3677,
30,
309,
5672,
67,
20392,
30,
11690,
273,
24914,
12,
1355,
33,
1355,
16,
883,
33,
2150,
16,
11690,
67,
723,
33,
20392,
67,
723,
13,
11690,
18,
5688,
1435,
309,
1410,
67,
4661,
12,
1355,
16,
11690,
67,
723,
16,
315,
21,
3113,
805,
33,
5510,
13,
471,
729,
18,
3652,
30,
468,
8166,
12045,
18,
6923,
12,
1355,
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,
1366,
12,
5577,
16,
11690,
67,
723,
67,
1925,
16,
883,
67,
3202,
16,
733,
67,
1098,
22850,
6487,
5672,
67,
20392,
33,
5510,
4672,
3536,
752,
279,
394,
11690,
18,
225,
1220,
353,
12613,
358,
506,
3661,
1308,
8279,
752,
394,
486,
1242,
18,
3536,
11690,
67,
723,
273,
24914,
559,
18,
6911,
18,
588,
12,
1925,
33,
20392,
67,
723,
67,
1925,
13,
883,
273,
2017,
67,
2150,
12,
2150,
67,
3202,
16,
380,
1612,
67,
1098,
13,
12045,
273,
5378,
225,
486,
1242,
67,
718,
273,
582,
6,
2505,
23155,
87,
9,
87,
6,
738,
261,
5252,
12,
4956,
18,
6911,
18,
588,
67,
2972,
1435,
3631,
4219,
2932,
9927,
67,
902,
1242,
6,
3631,
2
] | |
key = winreg.OpenKeyEx(_winreg.HKEY_CURRENT_USER, | key = winreg.OpenKeyEx(winreg.HKEY_CURRENT_USER, | def has_sound(sound): """Find out if a particular event is configured with a default sound""" try: key = winreg.OpenKeyEx(_winreg.HKEY_CURRENT_USER, "AppEvents\Schemes\Apps\.Default\{0}\.Default".format(sound)) value = winreg.EnumValue(key, 0)[1] if value is not "": return True else: return False except WindowsError: return False | eccaaf7aa5942d99ba49eb54ee58a1d6b5b0019d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/eccaaf7aa5942d99ba49eb54ee58a1d6b5b0019d/test_winsound.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
29671,
12,
29671,
4672,
3536,
3125,
596,
309,
279,
6826,
871,
353,
4351,
598,
279,
805,
14190,
8395,
775,
30,
498,
273,
5657,
1574,
18,
3678,
653,
424,
12,
8082,
1574,
18,
44,
3297,
67,
15487,
67,
4714,
16,
315,
3371,
3783,
64,
55,
13268,
64,
16339,
5834,
1868,
64,
95,
20,
97,
5834,
1868,
9654,
2139,
12,
29671,
3719,
460,
273,
5657,
1574,
18,
3572,
620,
12,
856,
16,
374,
25146,
21,
65,
309,
460,
353,
486,
1408,
30,
327,
1053,
469,
30,
327,
1083,
1335,
8202,
668,
30,
327,
1083,
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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,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
29671,
12,
29671,
4672,
3536,
3125,
596,
309,
279,
6826,
871,
353,
4351,
598,
279,
805,
14190,
8395,
775,
30,
498,
273,
5657,
1574,
18,
3678,
653,
424,
12,
8082,
1574,
18,
44,
3297,
67,
15487,
67,
4714,
16,
315,
3371,
3783,
64,
55,
13268,
64,
16339,
5834,
1868,
64,
95,
20,
97,
5834,
1868,
9654,
2139,
12,
29671,
3719,
460,
273,
5657,
1574,
18,
3572,
620,
12,
856,
16,
374,
25146,
21,
65,
309,
460,
353,
486,
1408,
30,
327,
1053,
469,
30,
327,
1083,
1335,
8202,
668,
30,
327,
1083,
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
] |
parser.add_option("-H","--threshold",action="store",type="string",\ default=None, metavar=" THRESHOLD", help="threshold for the coire steps in hipecoire") | def symlinksafe( target, linkname ): """ Creates a link, does not nag about when it already exists """ try: os.symlink( target, linkname ) except OSError, (errno, strerror): if errno==17: print "WARNING: link %s already exist" % (linkname) else: raise | 8df8a6d85329fcb14aa2997b4a9f6708e492bf9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/8df8a6d85329fcb14aa2997b4a9f6708e492bf9b/upperlimit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10563,
4626,
12,
1018,
16,
1692,
529,
262,
30,
3536,
10210,
279,
1692,
16,
1552,
486,
290,
346,
2973,
1347,
518,
1818,
1704,
3536,
775,
30,
1140,
18,
21278,
12,
1018,
16,
1692,
529,
262,
1335,
10002,
16,
261,
19088,
16,
609,
1636,
4672,
309,
8402,
631,
4033,
30,
1172,
315,
9511,
30,
1692,
738,
87,
1818,
1005,
6,
738,
261,
1232,
529,
13,
469,
30,
1002,
225,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10563,
4626,
12,
1018,
16,
1692,
529,
262,
30,
3536,
10210,
279,
1692,
16,
1552,
486,
290,
346,
2973,
1347,
518,
1818,
1704,
3536,
775,
30,
1140,
18,
21278,
12,
1018,
16,
1692,
529,
262,
1335,
10002,
16,
261,
19088,
16,
609,
1636,
4672,
309,
8402,
631,
4033,
30,
1172,
315,
9511,
30,
1692,
738,
87,
1818,
1005,
6,
738,
261,
1232,
529,
13,
469,
30,
1002,
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
] | |
"ignore-module=", "ignore-dir="]) | "ignore-module=", "ignore-dir=", "coverdir="]) | def main(argv = None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:m", ["help", "version", "trace", "count", "report", "no-report", "file=", "logdir=", "missing", "ignore-module=", "ignore-dir="]) except getopt.error, msg: sys.stderr.write("%s: %s\n" % (sys.argv[0], msg)) sys.stderr.write("Try `%s --help' for more information\n" % sys.argv[0]) sys.exit(1) trace = 0 count = 0 report = 0 no_report = 0 counts_file = None logdir = "." missing = 0 ignore_modules = [] ignore_dirs = [] for opt, val in opts: if opt == "--help": usage(sys.stdout) sys.exit(0) if opt == "--version": sys.stdout.write("trace 2.0\n") sys.exit(0) if opt == "-t" or opt == "--trace": trace = 1 continue if opt == "-c" or opt == "--count": count = 1 continue if opt == "-r" or opt == "--report": report = 1 continue if opt == "-R" or opt == "--no-report": no_report = 1 continue if opt == "-f" or opt == "--file": counts_file = val continue if opt == "-d" or opt == "--logdir": logdir = val continue if opt == "-m" or opt == "--missing": missing = 1 continue if opt == "--ignore-module": ignore_modules.append(val) continue if opt == "--ignore-dir": for s in string.split(val, os.pathsep): s = os.path.expandvars(s) # should I also call expanduser? (after all, could use $HOME) s = string.replace(s, "$prefix", os.path.join(sys.prefix, "lib", "python" + sys.version[:3])) s = string.replace(s, "$exec_prefix", os.path.join(sys.exec_prefix, "lib", "python" + sys.version[:3])) s = os.path.normpath(s) ignore_dirs.append(s) continue assert 0, "Should never get here" if len(prog_argv) == 0: _err_exit("missing name of file to run") if count + trace + report > 1: _err_exit("can only specify one of --trace, --count or --report") if count + trace + report == 0: _err_exit("must specify one of --trace, --count or --report") if report and counts_file is None: _err_exit("--report requires a --file") if report and no_report: _err_exit("cannot specify both --report and --no-report") if logdir is not None: # warn if the directory doesn't exist, but keep on going # (is this the correct behaviour?) if not os.path.isdir(logdir): sys.stderr.write( "trace: WARNING, --logdir directory %s is not available\n" % `logdir`) sys.argv = prog_argv progname = prog_argv[0] if eval(sys.version[:3])>1.3: sys.path[0] = os.path.split(progname)[0] # ??? # everything is ready ignore = Ignore(ignore_modules, ignore_dirs) if trace: t = Trace(ignore) try: run(t.trace, 'execfile(' + `progname` + ')') except IOError, err: _err_exit("Cannot run file %s because: %s" % \ (`sys.argv[0]`, err.strerror)) elif count: t = Coverage(ignore) try: run(t.trace, 'execfile(' + `progname` + ')') except IOError, err: _err_exit("Cannot run file %s because: %s" % \ (`sys.argv[0]`, err.strerror)) except SystemExit: pass results = t.results() # Add another lookup from the program's file name to its import name # This give the right results, but I'm not sure why ... results.modules[progname] = os.path.splitext(progname)[0] if counts_file: # add in archived data, if available try: old_counts, old_modules = marshal.load(open(counts_file, 'rb')) except IOError: pass else: results.update(CoverageResults(old_counts, old_modules)) if not no_report: create_results_log(results, logdir, missing) if counts_file: try: marshal.dump( (results.counts, results.modules), open(counts_file, 'wb')) except IOError, err: _err_exit("Cannot save counts file %s because: %s" % \ (`counts_file`, err.strerror)) elif report: old_counts, old_modules = marshal.load(open(counts_file, 'rb')) results = CoverageResults(old_counts, old_modules) create_results_log(results, logdir, missing) else: assert 0, "Should never get here" | 894961335102d1da3e013a6c403542d89fcb4d40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/894961335102d1da3e013a6c403542d89fcb4d40/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
19485,
63,
21,
30,
6487,
315,
88,
3353,
54,
74,
30,
72,
30,
81,
3113,
8247,
5201,
3113,
315,
1589,
3113,
315,
5129,
3113,
315,
1883,
3113,
315,
6006,
3113,
315,
2135,
17,
6006,
3113,
315,
768,
1546,
16,
315,
1330,
1214,
1546,
16,
315,
7337,
3113,
315,
6185,
17,
2978,
1546,
16,
315,
6185,
17,
1214,
1546,
16,
315,
3165,
1214,
1546,
5717,
225,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
2589,
18,
11241,
18,
2626,
27188,
87,
30,
738,
87,
64,
82,
6,
738,
261,
9499,
18,
19485,
63,
20,
6487,
1234,
3719,
2589,
18,
11241,
18,
2626,
2932,
7833,
12430,
87,
1493,
5201,
11,
364,
1898,
1779,
64,
82,
6,
738,
2589,
18,
19485,
63,
20,
5717,
2589,
18,
8593,
12,
21,
13,
225,
2606,
273,
374,
1056,
273,
374,
2605,
273,
374,
1158,
67,
6006,
273,
374,
6880,
67,
768,
273,
599,
613,
1214,
273,
4585,
3315,
273,
374,
2305,
67,
6400,
273,
5378,
2305,
67,
8291,
273,
5378,
225,
364,
2153,
16,
1244,
316,
1500,
30,
309,
2153,
422,
5238,
5201,
6877,
4084,
12,
9499,
18,
10283,
13,
2589,
18,
8593,
12,
20,
13,
225,
309,
2153,
422,
5238,
1589,
6877,
2589,
18,
10283,
18,
2626,
2932,
5129,
576,
18,
20,
64,
82,
7923,
2589,
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,
2774,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
19485,
63,
21,
30,
6487,
315,
88,
3353,
54,
74,
30,
72,
30,
81,
3113,
8247,
5201,
3113,
315,
1589,
3113,
315,
5129,
3113,
315,
1883,
3113,
315,
6006,
3113,
315,
2135,
17,
6006,
3113,
315,
768,
1546,
16,
315,
1330,
1214,
1546,
16,
315,
7337,
3113,
315,
6185,
17,
2978,
1546,
16,
315,
6185,
17,
1214,
1546,
16,
315,
3165,
1214,
1546,
5717,
225,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
2589,
18,
11241,
18,
2626,
27188,
87,
30,
738,
87,
64,
2
] |
txt = self.get(); except NoPage: | txt = self.get(force=True); except (NoPage, IsRedirectPage): | def botMayEdit(self): """ True if page doesn't contain {{bots}} or {{nobots}} or contains them and active bot is allowed or not allowed to edit said page | db4f51281eb7feb4646aa18e24c089984533cf72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/db4f51281eb7feb4646aa18e24c089984533cf72/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2512,
49,
528,
4666,
12,
2890,
4672,
3536,
1053,
309,
1363,
3302,
1404,
912,
10179,
4819,
87,
9090,
578,
10179,
82,
947,
6968,
9090,
578,
1914,
2182,
471,
2695,
2512,
353,
2935,
578,
486,
2935,
358,
3874,
7864,
350,
1363,
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,
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,
2512,
49,
528,
4666,
12,
2890,
4672,
3536,
1053,
309,
1363,
3302,
1404,
912,
10179,
4819,
87,
9090,
578,
10179,
82,
947,
6968,
9090,
578,
1914,
2182,
471,
2695,
2512,
353,
2935,
578,
486,
2935,
358,
3874,
7864,
350,
1363,
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
] |
verbose = 1 | verbosity = 1 | def get_info(name): cl = {'atlas':atlas_info, 'x11':x11_info, 'fftw':fftw_info, 'dfftw':dfftw_info, 'sfftw':sfftw_info, 'fftw_threads':fftw_threads_info, 'dfftw_threads':dfftw_threads_info, 'sfftw_threads':sfftw_threads_info, 'djbfft':djbfft_info, 'blas':blas_info, 'lapack':lapack_info, 'lapack_src':lapack_src_info, 'blas_src':blas_src_info, }.get(name.lower(),system_info) return cl().get_info() | 11cffa55fceeda7a779a5a596b22fb98270f22b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/11cffa55fceeda7a779a5a596b22fb98270f22b8/system_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
529,
4672,
927,
273,
13666,
270,
9521,
4278,
270,
9521,
67,
1376,
16,
296,
92,
2499,
4278,
92,
2499,
67,
1376,
16,
296,
25174,
91,
4278,
25174,
91,
67,
1376,
16,
296,
2180,
1222,
91,
4278,
2180,
1222,
91,
67,
1376,
16,
296,
21668,
1222,
91,
4278,
21668,
1222,
91,
67,
1376,
16,
296,
25174,
91,
67,
12495,
4278,
25174,
91,
67,
12495,
67,
1376,
16,
296,
2180,
1222,
91,
67,
12495,
4278,
2180,
1222,
91,
67,
12495,
67,
1376,
16,
296,
21668,
1222,
91,
67,
12495,
4278,
21668,
1222,
91,
67,
12495,
67,
1376,
16,
296,
72,
10649,
25174,
4278,
72,
10649,
25174,
67,
1376,
16,
296,
3083,
345,
4278,
3083,
345,
67,
1376,
16,
296,
3762,
484,
4278,
3762,
484,
67,
1376,
16,
296,
3762,
484,
67,
4816,
4278,
3762,
484,
67,
4816,
67,
1376,
16,
296,
3083,
345,
67,
4816,
4278,
3083,
345,
67,
4816,
67,
1376,
16,
289,
18,
588,
12,
529,
18,
8167,
9334,
4299,
67,
1376,
13,
327,
927,
7675,
588,
67,
1376,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
529,
4672,
927,
273,
13666,
270,
9521,
4278,
270,
9521,
67,
1376,
16,
296,
92,
2499,
4278,
92,
2499,
67,
1376,
16,
296,
25174,
91,
4278,
25174,
91,
67,
1376,
16,
296,
2180,
1222,
91,
4278,
2180,
1222,
91,
67,
1376,
16,
296,
21668,
1222,
91,
4278,
21668,
1222,
91,
67,
1376,
16,
296,
25174,
91,
67,
12495,
4278,
25174,
91,
67,
12495,
67,
1376,
16,
296,
2180,
1222,
91,
67,
12495,
4278,
2180,
1222,
91,
67,
12495,
67,
1376,
16,
296,
21668,
1222,
91,
67,
12495,
4278,
21668,
1222,
91,
67,
12495,
67,
1376,
16,
296,
72,
10649,
25174,
4278,
72,
10649,
25174,
67,
1376,
16,
296,
3083,
345,
4278,
3083,
345,
67,
2
] |
return self.write(cr, uid, ids, {'state':'cancel'}) | return self.write(cr, uid, ids, {'state': 'cancel'}) | def button_cancel(self, cr, uid, ids, context={}): for line in self.browse(cr, uid, ids, context=context): if line.invoiced: raise osv.except_osv(_('Invalid action !'), _('You cannot cancel a sale order line that has already been invoiced !')) return self.write(cr, uid, ids, {'state':'cancel'}) | fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
10996,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
364,
980,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
309,
980,
18,
16119,
72,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
1941,
1301,
401,
19899,
389,
2668,
6225,
2780,
3755,
279,
272,
5349,
1353,
980,
716,
711,
1818,
2118,
9179,
72,
401,
26112,
327,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
11,
2497,
10996,
11,
6792,
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,
3568,
67,
10996,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
364,
980,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
309,
980,
18,
16119,
72,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
1941,
1301,
401,
19899,
389,
2668,
6225,
2780,
3755,
279,
272,
5349,
1353,
980,
716,
711,
1818,
2118,
9179,
72,
401,
26112,
327,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
11,
2497,
10996,
11,
6792,
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
] |
self.factory.dispatcher.opensips_management.end_dialog(session.dialog_id) | if stats["to_tag"] is not None: self.factory.dispatcher.opensips_management.end_dialog(session.dialog_id) | def lineReceived(self, line): try: first, rest = line.split(" ", 1) except ValueError: log.error("Could not decode reply from relay %s: %s" % (self.ip, line)) return if first == "expired": try: stats = cjson.decode(rest) except cjson.DecodeError: log.error("Error decoding JSON from relay at %s" % self.ip) else: session = self.factory.sessions[stats["call_id"]] if session.dialog_id is not None: self.factory.dispatcher.opensips_management.end_dialog(session.dialog_id) stats["dialog_id"] = session.dialog_id stats["timed_out"] = True self.factory.dispatcher.update_statistics(stats) del self.factory.sessions[stats["call_id"]] return try: command, defer, timer = self.commands.pop(first) except KeyError: log.error("Got unexpected response from relay at %s: %s" % (self.ip, line)) return timer.cancel() if rest == "error": defer.errback(RelayError('Received error from relay at %s in response to "%s" command' % (self.ip, command))) elif rest == "halting": self.ready = False defer.errback(RelayError("Relay at %s is shutting down" % self.ip)) elif command == "remove": try: stats = cjson.decode(rest) except cjson.DecodeError: log.error("Error decoding JSON from relay at %s" % self.ip) else: stats["timed_out"] = False self.factory.dispatcher.update_statistics(stats) del self.factory.sessions[stats["call_id"]] defer.callback("removed") else: # update command defer.callback(rest) | 5756bc3dcc6e6923e166a57111d54a297a95ecd2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/5756bc3dcc6e6923e166a57111d54a297a95ecd2/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
8872,
12,
2890,
16,
980,
4672,
775,
30,
1122,
16,
3127,
273,
980,
18,
4939,
2932,
3104,
404,
13,
1335,
2068,
30,
613,
18,
1636,
2932,
4445,
486,
2495,
4332,
628,
18874,
738,
87,
30,
738,
87,
6,
738,
261,
2890,
18,
625,
16,
980,
3719,
327,
309,
1122,
422,
315,
15820,
6877,
775,
30,
3177,
273,
276,
1977,
18,
3922,
12,
8792,
13,
1335,
276,
1977,
18,
20229,
30,
613,
18,
1636,
2932,
668,
13547,
1796,
628,
18874,
622,
738,
87,
6,
738,
365,
18,
625,
13,
469,
30,
1339,
273,
365,
18,
6848,
18,
16794,
63,
5296,
9614,
1991,
67,
350,
11929,
65,
309,
1339,
18,
12730,
67,
350,
353,
486,
599,
30,
309,
3177,
9614,
869,
67,
2692,
11929,
353,
486,
599,
30,
365,
18,
6848,
18,
18495,
18,
20346,
7146,
67,
17381,
18,
409,
67,
12730,
12,
3184,
18,
12730,
67,
350,
13,
3177,
9614,
12730,
67,
350,
11929,
273,
1339,
18,
12730,
67,
350,
3177,
9614,
20905,
67,
659,
11929,
273,
1053,
365,
18,
6848,
18,
18495,
18,
2725,
67,
14438,
12,
5296,
13,
1464,
365,
18,
6848,
18,
16794,
63,
5296,
9614,
1991,
67,
350,
11929,
65,
327,
775,
30,
1296,
16,
2220,
16,
5441,
273,
365,
18,
7847,
18,
5120,
12,
3645,
13,
1335,
4999,
30,
613,
18,
1636,
2932,
15617,
9733,
766,
628,
18874,
622,
738,
87,
30,
738,
87,
6,
738,
261,
2890,
18,
625,
16,
980,
3719,
327,
5441,
18,
10996,
1435,
309,
3127,
422,
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,
980,
8872,
12,
2890,
16,
980,
4672,
775,
30,
1122,
16,
3127,
273,
980,
18,
4939,
2932,
3104,
404,
13,
1335,
2068,
30,
613,
18,
1636,
2932,
4445,
486,
2495,
4332,
628,
18874,
738,
87,
30,
738,
87,
6,
738,
261,
2890,
18,
625,
16,
980,
3719,
327,
309,
1122,
422,
315,
15820,
6877,
775,
30,
3177,
273,
276,
1977,
18,
3922,
12,
8792,
13,
1335,
276,
1977,
18,
20229,
30,
613,
18,
1636,
2932,
668,
13547,
1796,
628,
18874,
622,
738,
87,
6,
738,
365,
18,
625,
13,
469,
30,
1339,
273,
365,
18,
6848,
18,
16794,
63,
5296,
9614,
1991,
67,
350,
11929,
65,
309,
1339,
18,
12730,
67,
350,
353,
486,
599,
30,
309,
3177,
2
] |
def handle_codec_(self, evt): self.reverse_codec = {} self.codec = {} | class IPCServerConduit(_ConduitMixin, _IPCServerConduit): pass | def handle_codec_(self, evt): self.reverse_codec = {} self.codec = {} codec_datum = evt.value() for k in codec_datum.keys(): name = codec_datum[k]["tagname"] self.codec[k] = name self.reverse_codec[name] = k | e26e3ce657e4043d0f87dfd2a936b19e33edef39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12313/e26e3ce657e4043d0f87dfd2a936b19e33edef39/conduit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
2971,
39,
2081,
442,
2544,
305,
24899,
442,
2544,
305,
14439,
16,
389,
2579,
39,
2081,
442,
2544,
305,
4672,
1342,
225,
9196,
67,
3404,
379,
273,
6324,
18,
1132,
1435,
225,
364,
417,
316,
9196,
67,
3404,
379,
18,
2452,
13332,
508,
273,
9196,
67,
3404,
379,
63,
79,
6362,
6,
2692,
529,
11929,
365,
18,
21059,
63,
79,
65,
273,
508,
365,
18,
9845,
67,
21059,
63,
529,
65,
273,
417,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
2971,
39,
2081,
442,
2544,
305,
24899,
442,
2544,
305,
14439,
16,
389,
2579,
39,
2081,
442,
2544,
305,
4672,
1342,
225,
9196,
67,
3404,
379,
273,
6324,
18,
1132,
1435,
225,
364,
417,
316,
9196,
67,
3404,
379,
18,
2452,
13332,
508,
273,
9196,
67,
3404,
379,
63,
79,
6362,
6,
2692,
529,
11929,
365,
18,
21059,
63,
79,
65,
273,
508,
365,
18,
9845,
67,
21059,
63,
529,
65,
273,
417,
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
] |
_pruneweight = self._pruneweight | pruneweight = self._pruneweight | def _pending(self, pending): trans = self._trans changeset = self._changeset locked = self._locked depth = self._depth if traceVerbosity<4: self.trace(1, "_pending(pw=%f, yw=%f)", (self._pruneweight, self._yieldweight)) else: self.trace(4, "_pending(%s, pw=%f, yw=%f)", (pending, self._pruneweight, self._yieldweight)) | 116b3104f9f25853bc5c11b5627cadd98de51e44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/116b3104f9f25853bc5c11b5627cadd98de51e44/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9561,
12,
2890,
16,
4634,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365,
6315,
6329,
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
309,
2606,
30594,
32,
24,
30,
365,
18,
5129,
12,
21,
16,
4192,
9561,
12,
14921,
5095,
74,
16,
677,
91,
5095,
74,
2225,
16,
261,
2890,
6315,
683,
318,
359,
1274,
16,
365,
6315,
23604,
4865,
3719,
469,
30,
365,
18,
5129,
12,
24,
16,
4192,
9561,
9275,
87,
16,
8772,
5095,
74,
16,
677,
91,
5095,
74,
2225,
16,
261,
9561,
16,
365,
6315,
683,
318,
359,
1274,
16,
365,
6315,
23604,
4865,
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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
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9561,
12,
2890,
16,
4634,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365,
6315,
6329,
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
309,
2606,
30594,
32,
24,
30,
365,
18,
5129,
12,
21,
16,
4192,
9561,
12,
14921,
5095,
74,
16,
677,
91,
5095,
74,
2225,
16,
261,
2890,
6315,
683,
318,
359,
1274,
16,
365,
6315,
23604,
4865,
3719,
469,
30,
365,
18,
5129,
12,
24,
16,
4192,
9561,
9275,
87,
16,
8772,
5095,
74,
16,
677,
91,
5095,
74,
2225,
16,
261,
9561,
16,
365,
6315,
683,
318,
359,
1274,
16,
365,
6315,
23604,
4865,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
@beaker_cache(expire=600, cache_response=False) | def subnav_link(c, text, action, **kwargs): return link_to( text, url_for(action=action, **kwargs), class_=('active' if c.action == action else '') ) | 5ee08bc249e017ccf2892af517e8444928da5aa3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/5ee08bc249e017ccf2892af517e8444928da5aa3/helpers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
11589,
67,
1232,
12,
71,
16,
977,
16,
1301,
16,
2826,
4333,
4672,
327,
1692,
67,
869,
12,
977,
16,
880,
67,
1884,
12,
1128,
33,
1128,
16,
2826,
4333,
3631,
667,
67,
33,
2668,
3535,
11,
309,
276,
18,
1128,
422,
1301,
469,
28707,
262,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
720,
11589,
67,
1232,
12,
71,
16,
977,
16,
1301,
16,
2826,
4333,
4672,
327,
1692,
67,
869,
12,
977,
16,
880,
67,
1884,
12,
1128,
33,
1128,
16,
2826,
4333,
3631,
667,
67,
33,
2668,
3535,
11,
309,
276,
18,
1128,
422,
1301,
469,
28707,
262,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
end = self.chunkOffset | if self.chunkOffset != self.chunkSize: break | def charsUntil(self, characters, opposite = False): """ Returns a string of characters from the stream up to but not including any character in 'characters' or EOF. 'characters' must be a container that supports the 'in' method and iteration over its characters. """ | 22576899f6818607280a09536f87d1bd1d42359e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4487/22576899f6818607280a09536f87d1bd1d42359e/inputstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5230,
9716,
12,
2890,
16,
3949,
16,
20759,
273,
1083,
4672,
3536,
2860,
279,
533,
434,
3949,
628,
326,
1407,
731,
358,
1496,
486,
6508,
1281,
3351,
316,
296,
20558,
11,
578,
6431,
18,
296,
20558,
11,
1297,
506,
279,
1478,
716,
6146,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5230,
9716,
12,
2890,
16,
3949,
16,
20759,
273,
1083,
4672,
3536,
2860,
279,
533,
434,
3949,
628,
326,
1407,
731,
358,
1496,
486,
6508,
1281,
3351,
316,
296,
20558,
11,
578,
6431,
18,
296,
20558,
11,
1297,
506,
279,
1478,
716,
6146,
326,
296,
267,
11,
707,
471,
6532,
1879,
2097,
3949,
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
] |
if ext == '.html': | if ext in ['.html', '.htm', '.xhtml', '.tsv']: | def LibraryDoc(libname): ext = os.path.splitext(libname)[1].lower() if ext == '.html': return ResourceDoc(libname) if ext == '.java': return JavaLibraryDoc(libname) return PythonLibraryDoc(libname) | 443f38ad2012ce389156469c063a346998ab605e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/443f38ad2012ce389156469c063a346998ab605e/libdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18694,
1759,
12,
2941,
529,
4672,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
2941,
529,
25146,
21,
8009,
8167,
1435,
309,
225,
1110,
316,
10228,
18,
2620,
2187,
2418,
31180,
2187,
2418,
26341,
2187,
2418,
25338,
3546,
30,
327,
2591,
1759,
12,
2941,
529,
13,
309,
1110,
422,
2418,
6290,
4278,
327,
5110,
9313,
1759,
12,
2941,
529,
13,
327,
6600,
9313,
1759,
12,
2941,
529,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18694,
1759,
12,
2941,
529,
4672,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
2941,
529,
25146,
21,
8009,
8167,
1435,
309,
225,
1110,
316,
10228,
18,
2620,
2187,
2418,
31180,
2187,
2418,
26341,
2187,
2418,
25338,
3546,
30,
327,
2591,
1759,
12,
2941,
529,
13,
309,
1110,
422,
2418,
6290,
4278,
327,
5110,
9313,
1759,
12,
2941,
529,
13,
327,
6600,
9313,
1759,
12,
2941,
529,
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
] |
self.addOption(JoinedOrSeparateOption('-client_name')) self.addOption(JoinedOrSeparateOption('-compatibility_version')) self.addOption(JoinedOrSeparateOption('-current_version')) | self.client_nameOption = self.addOption(JoinedOrSeparateOption('-client_name')) self.compatibility_versionOption = self.addOption(JoinedOrSeparateOption('-compatibility_version')) self.current_versionOption = self.addOption(JoinedOrSeparateOption('-current_version')) self.dylinkerOption = self.addOption(FlagOption('-dylinker')) self.dylinker_install_nameOption = self.addOption(JoinedOrSeparateOption('-dylinker_install_name')) | def __init__(self): self.options = [] self.inputOption = InputOption() self.unknownOption = UnknownOption() | 9eea75c6ddd33093aaadf6046009a6c3269173bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11986/9eea75c6ddd33093aaadf6046009a6c3269173bd/Arguments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
2116,
273,
5378,
365,
18,
2630,
1895,
273,
15365,
1435,
365,
18,
8172,
1895,
273,
9077,
1895,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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2738,
972,
12,
2890,
4672,
365,
18,
2116,
273,
5378,
365,
18,
2630,
1895,
273,
15365,
1435,
365,
18,
8172,
1895,
273,
9077,
1895,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{'dest': 'record_dependencies', 'metavar': '<file>', 'validator': validate_dependency_file}), | {'metavar': '<file>', 'validator': validate_dependency_file, 'default': None}), | def process(self, opt, value, values, parser): """ Call the validator function on applicable settings and evaluate the 'overrides' option. Extends `optparse.Option.process`. """ result = optparse.Option.process(self, opt, value, values, parser) setting = self.dest if setting: if self.validator: value = getattr(values, setting) try: new_value = self.validator(setting, value, parser) except Exception, error: raise (optparse.OptionValueError( 'Error in option "%s":\n %s: %s' % (opt, error.__class__.__name__, error)), None, sys.exc_info()[2]) setattr(values, setting, new_value) if self.overrides: setattr(values, self.overrides, None) return result | e15006d99779ceff0da924090a901a8d4d19c097 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/e15006d99779ceff0da924090a901a8d4d19c097/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
2153,
16,
460,
16,
924,
16,
2082,
4672,
3536,
3049,
326,
4213,
445,
603,
12008,
1947,
471,
5956,
326,
296,
19775,
11,
1456,
18,
6419,
5839,
1375,
3838,
2670,
18,
1895,
18,
2567,
8338,
3536,
563,
273,
2153,
2670,
18,
1895,
18,
2567,
12,
2890,
16,
2153,
16,
460,
16,
924,
16,
2082,
13,
3637,
273,
365,
18,
10488,
309,
3637,
30,
309,
365,
18,
7357,
30,
460,
273,
3869,
12,
2372,
16,
3637,
13,
775,
30,
394,
67,
1132,
273,
365,
18,
7357,
12,
8920,
16,
460,
16,
2082,
13,
1335,
1185,
16,
555,
30,
1002,
261,
3838,
2670,
18,
13366,
668,
12,
296,
668,
316,
1456,
2213,
87,
6,
5581,
82,
565,
738,
87,
30,
738,
87,
11,
738,
261,
3838,
16,
555,
16186,
1106,
972,
16186,
529,
972,
16,
555,
13,
3631,
599,
16,
2589,
18,
10075,
67,
1376,
1435,
63,
22,
5717,
9241,
12,
2372,
16,
3637,
16,
394,
67,
1132,
13,
309,
365,
18,
19775,
30,
9241,
12,
2372,
16,
365,
18,
19775,
16,
599,
13,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
2153,
16,
460,
16,
924,
16,
2082,
4672,
3536,
3049,
326,
4213,
445,
603,
12008,
1947,
471,
5956,
326,
296,
19775,
11,
1456,
18,
6419,
5839,
1375,
3838,
2670,
18,
1895,
18,
2567,
8338,
3536,
563,
273,
2153,
2670,
18,
1895,
18,
2567,
12,
2890,
16,
2153,
16,
460,
16,
924,
16,
2082,
13,
3637,
273,
365,
18,
10488,
309,
3637,
30,
309,
365,
18,
7357,
30,
460,
273,
3869,
12,
2372,
16,
3637,
13,
775,
30,
394,
67,
1132,
273,
365,
18,
7357,
12,
8920,
16,
460,
16,
2082,
13,
1335,
1185,
16,
555,
30,
1002,
261,
3838,
2670,
18,
13366,
668,
12,
296,
668,
316,
1456,
2213,
87,
6,
5581,
82,
565,
2
] |
progress = dict(map(lambda x: (x[0], (x[1], x[2], x[3])), cr.fetchall())) | progress = dict(map(lambda x: (x[0], (x[1] or 0.0, x[2] or 0.0, x[3] or 0.0)), cr.fetchall())) | def _get_all_child_projects(ids): """Recursively get child project ids""" child_ids = flatten([project_hierarchy.get(idn, []) for idn in ids]) if child_ids: child_ids = _get_all_child_projects(child_ids) return ids + child_ids | 567f02338b5c7e30d51fc9f0ec5d630d3cee7449 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/567f02338b5c7e30d51fc9f0ec5d630d3cee7449/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
454,
67,
3624,
67,
13582,
12,
2232,
4672,
3536,
12474,
336,
1151,
1984,
3258,
8395,
1151,
67,
2232,
273,
5341,
3816,
4406,
67,
17937,
18,
588,
12,
350,
82,
16,
5378,
13,
364,
612,
82,
316,
3258,
5717,
309,
1151,
67,
2232,
30,
1151,
67,
2232,
273,
389,
588,
67,
454,
67,
3624,
67,
13582,
12,
3624,
67,
2232,
13,
327,
3258,
397,
1151,
67,
2232,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
588,
67,
454,
67,
3624,
67,
13582,
12,
2232,
4672,
3536,
12474,
336,
1151,
1984,
3258,
8395,
1151,
67,
2232,
273,
5341,
3816,
4406,
67,
17937,
18,
588,
12,
350,
82,
16,
5378,
13,
364,
612,
82,
316,
3258,
5717,
309,
1151,
67,
2232,
30,
1151,
67,
2232,
273,
389,
588,
67,
454,
67,
3624,
67,
13582,
12,
3624,
67,
2232,
13,
327,
3258,
397,
1151,
67,
2232,
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
] |
if reason[:3] != '550': | if str(reason)[:3] != '550': | def retrfile(self, file, type): import ftplib self.endtransfer() if type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1 else: cmd = 'TYPE ' + type; isdir = 0 try: self.ftp.voidcmd(cmd) except ftplib.all_errors: self.init() self.ftp.voidcmd(cmd) conn = None if file and not isdir: # Use nlst to see if the file exists at all try: self.ftp.nlst(file) except ftplib.error_perm, reason: raise IOError, ('ftp error', reason), sys.exc_info()[2] # Restore the transfer mode! self.ftp.voidcmd(cmd) # Try to retrieve as a file try: cmd = 'RETR ' + file conn = self.ftp.ntransfercmd(cmd) except ftplib.error_perm, reason: if reason[:3] != '550': raise IOError, ('ftp error', reason), sys.exc_info()[2] if not conn: # Set transfer mode to ASCII! self.ftp.voidcmd('TYPE A') # Try a directory listing if file: cmd = 'LIST ' + file else: cmd = 'LIST' conn = self.ftp.ntransfercmd(cmd) self.busy = 1 # Pass back both a suitably decorated object and a retrieval length return (addclosehook(conn[0].makefile('rb'), self.endtransfer), conn[1]) | 71b965f6e0b5f68cbaa0e8ee02f092736e43e951 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/71b965f6e0b5f68cbaa0e8ee02f092736e43e951/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17343,
768,
12,
2890,
16,
585,
16,
618,
4672,
1930,
11038,
6673,
365,
18,
409,
13866,
1435,
309,
618,
316,
7707,
72,
2187,
296,
40,
11,
4672,
1797,
273,
296,
2399,
432,
13506,
9783,
273,
404,
469,
30,
1797,
273,
296,
2399,
296,
397,
618,
31,
9783,
273,
374,
775,
30,
365,
18,
11727,
18,
6459,
4172,
12,
4172,
13,
1335,
11038,
6673,
18,
454,
67,
4324,
30,
365,
18,
2738,
1435,
365,
18,
11727,
18,
6459,
4172,
12,
4172,
13,
1487,
273,
599,
309,
585,
471,
486,
9783,
30,
468,
2672,
7741,
334,
358,
2621,
309,
326,
585,
1704,
622,
777,
775,
30,
365,
18,
11727,
18,
14039,
334,
12,
768,
13,
1335,
11038,
6673,
18,
1636,
67,
12160,
16,
3971,
30,
1002,
8340,
16,
7707,
11727,
555,
2187,
3971,
3631,
2589,
18,
10075,
67,
1376,
1435,
63,
22,
65,
468,
11197,
326,
7412,
1965,
5,
365,
18,
11727,
18,
6459,
4172,
12,
4172,
13,
468,
6161,
358,
4614,
487,
279,
585,
775,
30,
1797,
273,
296,
862,
4349,
296,
397,
585,
1487,
273,
365,
18,
11727,
18,
82,
13866,
4172,
12,
4172,
13,
1335,
11038,
6673,
18,
1636,
67,
12160,
16,
3971,
30,
309,
609,
12,
10579,
13,
10531,
23,
65,
480,
296,
2539,
20,
4278,
1002,
8340,
16,
7707,
11727,
555,
2187,
3971,
3631,
2589,
18,
10075,
67,
1376,
1435,
63,
22,
65,
309,
486,
1487,
30,
468,
1000,
7412,
1965,
358,
11768,
5,
365,
18,
11727,
18,
6459,
4172,
2668,
2399,
432,
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,
17343,
768,
12,
2890,
16,
585,
16,
618,
4672,
1930,
11038,
6673,
365,
18,
409,
13866,
1435,
309,
618,
316,
7707,
72,
2187,
296,
40,
11,
4672,
1797,
273,
296,
2399,
432,
13506,
9783,
273,
404,
469,
30,
1797,
273,
296,
2399,
296,
397,
618,
31,
9783,
273,
374,
775,
30,
365,
18,
11727,
18,
6459,
4172,
12,
4172,
13,
1335,
11038,
6673,
18,
454,
67,
4324,
30,
365,
18,
2738,
1435,
365,
18,
11727,
18,
6459,
4172,
12,
4172,
13,
1487,
273,
599,
309,
585,
471,
486,
9783,
30,
468,
2672,
7741,
334,
358,
2621,
309,
326,
585,
1704,
622,
777,
775,
30,
365,
18,
11727,
18,
14039,
334,
12,
768,
13,
1335,
11038,
6673,
18,
1636,
2
] |
rx = re.compile("package_id=(\d+).*\>kvm\<", re.IGNORECASE) | rx = re.compile("kvm-(\d+).tar.gz", re.IGNORECASE) | def get_latest_kvm_release_tag(release_dir): """ Fetches the latest release tag for KVM. @param release_dir: KVM source forge download location. """ try: page_url = os.path.join(release_dir, "showfiles.php") local_web_page = utils.unmap_url("/", page_url, "/tmp") f = open(local_web_page, "r") data = f.read() f.close() rx = re.compile("package_id=(\d+).*\>kvm\<", re.IGNORECASE) matches = rx.findall(data) package_id = matches[0] #package_id = 209008 rx = re.compile("package_id=%s.*release_id=\d+\">(\d+)" % package_id, re.IGNORECASE) matches = rx.findall(data) return matches[0] # the first match contains the latest release tag except Exception, e: message = "Could not fetch latest KVM release tag: %s" % str(e) logging.error(message) raise error.TestError(message) | 071d4e5c44a16063e7b52f631e14a46471e95109 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/071d4e5c44a16063e7b52f631e14a46471e95109/kvm_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13550,
67,
79,
3489,
67,
9340,
67,
2692,
12,
9340,
67,
1214,
4672,
3536,
8065,
281,
326,
4891,
3992,
1047,
364,
1475,
7397,
18,
225,
632,
891,
3992,
67,
1214,
30,
1475,
7397,
1084,
21388,
4224,
2117,
18,
3536,
775,
30,
1363,
67,
718,
273,
1140,
18,
803,
18,
5701,
12,
9340,
67,
1214,
16,
315,
4500,
2354,
18,
2684,
7923,
1191,
67,
4875,
67,
2433,
273,
2990,
18,
318,
1458,
67,
718,
2932,
19,
3113,
1363,
67,
718,
16,
2206,
5645,
7923,
284,
273,
1696,
12,
3729,
67,
4875,
67,
2433,
16,
315,
86,
7923,
501,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
8581,
273,
283,
18,
11100,
2932,
79,
3489,
17,
4713,
72,
15,
2934,
11718,
18,
9764,
3113,
283,
18,
20118,
13415,
13,
1885,
273,
8581,
18,
4720,
454,
12,
892,
13,
2181,
67,
350,
273,
1885,
63,
20,
65,
468,
5610,
67,
350,
273,
4200,
29,
713,
28,
8581,
273,
283,
18,
11100,
2932,
5610,
67,
350,
5095,
87,
4509,
9340,
67,
350,
18206,
72,
15,
24735,
4713,
72,
15,
2225,
738,
2181,
67,
350,
16,
283,
18,
20118,
13415,
13,
1885,
273,
8581,
18,
4720,
454,
12,
892,
13,
327,
1885,
63,
20,
65,
468,
326,
1122,
845,
1914,
326,
4891,
3992,
1047,
1335,
1185,
16,
425,
30,
883,
273,
315,
4445,
486,
2158,
4891,
1475,
7397,
3992,
1047,
30,
738,
87,
6,
738,
609,
12,
73,
13,
2907,
18,
1636,
12,
2150,
13,
1002,
555,
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,
336,
67,
13550,
67,
79,
3489,
67,
9340,
67,
2692,
12,
9340,
67,
1214,
4672,
3536,
8065,
281,
326,
4891,
3992,
1047,
364,
1475,
7397,
18,
225,
632,
891,
3992,
67,
1214,
30,
1475,
7397,
1084,
21388,
4224,
2117,
18,
3536,
775,
30,
1363,
67,
718,
273,
1140,
18,
803,
18,
5701,
12,
9340,
67,
1214,
16,
315,
4500,
2354,
18,
2684,
7923,
1191,
67,
4875,
67,
2433,
273,
2990,
18,
318,
1458,
67,
718,
2932,
19,
3113,
1363,
67,
718,
16,
2206,
5645,
7923,
284,
273,
1696,
12,
3729,
67,
4875,
67,
2433,
16,
315,
86,
7923,
501,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
8581,
273,
283,
18,
11100,
2932,
79,
3489,
17,
4713,
2
] |
return (addNyGeoPoint(parent_ob, title=title, description=description, coverage='', keywords='', sortorder='', longitude=longitude, latitude=latitude, address=address, geo_type=geo_type, url=URL), None) | ob = addNyGeoPoint(parent_ob, title=title, description=description, coverage='', keywords='', sortorder='', longitude=longitude, latitude=latitude, address=address, geo_type=geo_type, url=URL) ob.approveThis(approved) return (ob, None) | def add_location(self, title, description, address, URL, approved, container, geo_type, latitude, longitude): """ add a location in the database """ from Products.NaayaContent.NyGeoPoint.NyGeoPoint import addNyGeoPoint meta_type = 'Naaya GeoPoint' | 4d47904d87d825c3c69cd120faaa0b11bd74b3ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/4d47904d87d825c3c69cd120faaa0b11bd74b3ba/GeoMapTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3562,
12,
2890,
16,
2077,
16,
2477,
16,
1758,
16,
1976,
16,
20412,
16,
1478,
16,
7856,
67,
723,
16,
8904,
16,
9192,
4672,
3536,
527,
279,
2117,
316,
326,
2063,
3536,
628,
8094,
87,
18,
24101,
528,
69,
1350,
18,
50,
93,
12447,
2148,
18,
50,
93,
12447,
2148,
1930,
527,
50,
93,
12447,
2148,
2191,
67,
723,
273,
296,
24101,
528,
69,
9385,
2148,
11,
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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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3562,
12,
2890,
16,
2077,
16,
2477,
16,
1758,
16,
1976,
16,
20412,
16,
1478,
16,
7856,
67,
723,
16,
8904,
16,
9192,
4672,
3536,
527,
279,
2117,
316,
326,
2063,
3536,
628,
8094,
87,
18,
24101,
528,
69,
1350,
18,
50,
93,
12447,
2148,
18,
50,
93,
12447,
2148,
1930,
527,
50,
93,
12447,
2148,
2191,
67,
723,
273,
296,
24101,
528,
69,
9385,
2148,
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
] |
"""Count method, like that of a python string. This behaves like the python string method of the same name. | """Non-overlapping count method, like that of a python string. This behaves like the python string method of the same name, which does a non-overlapping count! | def count(self, sub, start=0, end=sys.maxint): """Count method, like that of a python string. | 30493b91a5b82d2f3a2d7bc31855c6ded51ed987 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/30493b91a5b82d2f3a2d7bc31855c6ded51ed987/Seq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
12,
2890,
16,
720,
16,
787,
33,
20,
16,
679,
33,
9499,
18,
1896,
474,
4672,
3536,
1380,
707,
16,
3007,
716,
434,
279,
5790,
533,
18,
2,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
12,
2890,
16,
720,
16,
787,
33,
20,
16,
679,
33,
9499,
18,
1896,
474,
4672,
3536,
1380,
707,
16,
3007,
716,
434,
279,
5790,
533,
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
] |
sage: print back_circulant(4).contained_in(elementary_abelian_2group(2)) | sage: back_circulant(4).contained_in(elementary_abelian_2group(2)) | def contained_in(self, Q): r""" Is self \\subseteq Q? | 79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7542,
67,
267,
12,
2890,
16,
2238,
4672,
436,
8395,
2585,
365,
1736,
15657,
11253,
2238,
35,
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.connect((serverName, serverPort)) | try: self.connect((serverName, serverPort)) except socket.error, e: print >>sys.stderr, "Can't connect to %s:%d: %s" % \ (serverName, serverPort, e) self.close() self.lineCallback('') | def __init__(self, serverName, serverPort, lineCallback): BrighterAsyncChat.__init__(self) self.lineCallback = lineCallback self.request = '' self.set_terminator('\r\n') self.create_socket(socket.AF_INET, socket.SOCK_STREAM) self.connect((serverName, serverPort)) | bb67db5e2dc016a7be764205cf241b78d334ff9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/bb67db5e2dc016a7be764205cf241b78d334ff9b/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
10926,
16,
1438,
2617,
16,
980,
2428,
4672,
605,
86,
18117,
2771,
14163,
16186,
2738,
972,
12,
2890,
13,
365,
18,
1369,
2428,
273,
980,
2428,
365,
18,
2293,
273,
875,
365,
18,
542,
67,
9505,
639,
2668,
64,
86,
64,
82,
6134,
365,
18,
2640,
67,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
365,
18,
3612,
12443,
3567,
461,
16,
1438,
2617,
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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,
14163,
16186,
2738,
972,
12,
2890,
13,
365,
18,
1369,
2428,
273,
980,
2428,
365,
18,
2293,
273,
875,
365,
18,
542,
67,
9505,
639,
2668,
64,
86,
64,
82,
6134,
365,
18,
2640,
67,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
365,
18,
3612,
12443,
3567,
461,
16,
1438,
2617,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rev = ExtractCvsRevision("$Revision: 1.72 $") | rev = ExtractCvsRevision("$Revision: 1.73 $") | def __init__(self, config): # Initializer super(self.__class__,self).__init__() DebugPrint(0,"Creating a ProbeDetails record "+TimeToString()) | 91e22cc0338d129b7a433e3aa7c2606925b23568 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/91e22cc0338d129b7a433e3aa7c2606925b23568/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
4672,
468,
4378,
3926,
2240,
12,
2890,
16186,
1106,
972,
16,
2890,
2934,
972,
2738,
972,
1435,
4015,
5108,
12,
20,
10837,
11092,
279,
25490,
3790,
1409,
13773,
950,
5808,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
4672,
468,
4378,
3926,
2240,
12,
2890,
16186,
1106,
972,
16,
2890,
2934,
972,
2738,
972,
1435,
4015,
5108,
12,
20,
10837,
11092,
279,
25490,
3790,
1409,
13773,
950,
5808,
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
] |
string='Start membership date', type='date',store={'membership.membership_line':(_get_partner_id,['state'], 10), | string='Start membership date', type='date',store={'account.invoice':(_get_invoice_partner,['state'], 10), 'membership.membership_line':(_get_partner_id,['state'], 10), | # def _membership_cancel_search(self, cr, uid, obj, name, args): | 07d43fcd2c9d2ea115f75623e1eae184b12f2a6d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/07d43fcd2c9d2ea115f75623e1eae184b12f2a6d/membership.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
565,
1652,
389,
19679,
67,
10996,
67,
3072,
12,
2890,
16,
4422,
16,
4555,
16,
1081,
16,
508,
16,
833,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
565,
1652,
389,
19679,
67,
10996,
67,
3072,
12,
2890,
16,
4422,
16,
4555,
16,
1081,
16,
508,
16,
833,
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
] |
r""" Catalan numbers: $C_n = \frac{{{2n}\choose{n}}}{n+1} = \frac {(2n)!}{n!(n+1)!}$. Also called Segner numbers. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000108;a Catalan numbers: C(n) = binomial(2n,n)/(n+1) = (2n)!/(n!(n+1)!). Also called Segner numbers. sage: a(0) 1 sage: a.offset 0 sage: a(8) 1430 sage: a(40) 2622127042276492108820 sage: a.list(9) [1, 1, 2, 5, 14, 42, 132, 429, 1430] AUTHOR: -- Jaap Spies (2007-01-12) """ def __init__(self): | def __init__(self): r""" Catalan numbers: $C_n = \frac{{{2n}\choose{n}}}{n+1} = \frac {(2n)!}{n!(n+1)!}$. Also called Segner numbers. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000108;a Catalan numbers: C(n) = binomial(2n,n)/(n+1) = (2n)!/(n!(n+1)!). Also called Segner numbers. sage: a(0) 1 sage: a.offset 0 sage: a(8) 1430 sage: a(40) 2622127042276492108820 sage: a.list(9) [1, 1, 2, 5, 14, 42, 132, 429, 1430] AUTHOR: -- Jaap Spies (2007-01-12) """ | def list(self, n): self._eval(n) # force computation return self._b[:n] | 7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
365,
6315,
8622,
12,
82,
13,
282,
468,
2944,
16039,
327,
365,
6315,
70,
10531,
82,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
365,
6315,
8622,
12,
82,
13,
282,
468,
2944,
16039,
327,
365,
6315,
70,
10531,
82,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
[m.forwards_plan for m in self.deps_b]) | [m.forwards_plan() for m in self.deps_b]) | def test_forwards_plan(self): self.assertEqual([[self.deps_a['0001_a']], [self.deps_a['0001_a'], self.deps_a['0002_a']], [self.deps_a['0001_a'], self.deps_a['0002_a'], self.deps_a['0003_a']], [self.deps_a['0001_a'], self.deps_a['0002_a'], self.deps_a['0003_a'], self.deps_b['0001_b'], self.deps_b['0002_b'], self.deps_b['0003_b'], self.deps_a['0004_a']], [self.deps_a['0001_a'], self.deps_a['0002_a'], self.deps_a['0003_a'], self.deps_b['0001_b'], self.deps_b['0002_b'], self.deps_b['0003_b'], self.deps_a['0004_a'], self.deps_a['0005_a']]], [m.forwards_plan for m in self.deps_a]) self.assertEqual([[self.deps_b['0001_b']], [self.deps_b['0001_b'], self.deps_a['0001_a'], self.deps_a['0002_a'], self.deps_b['0002_b']], [self.deps_b['0001_b'], self.deps_a['0001_a'], self.deps_a['0002_a'], self.deps_b['0002_b'], self.deps_a['0003_a'], self.deps_b['0003_b']], [self.deps_b['0001_b'], self.deps_a['0001_a'], self.deps_a['0002_a'], self.deps_b['0002_b'], self.deps_a['0003_a'], self.deps_b['0003_b'], self.deps_b['0004_b']], [self.deps_b['0001_b'], self.deps_a['0001_a'], self.deps_a['0002_a'], self.deps_b['0002_b'], self.deps_a['0003_a'], self.deps_b['0003_b'], self.deps_b['0004_b'], self.deps_b['0005_b']]], [m.forwards_plan for m in self.deps_b]) self.assertEqual([[self.deps_c['0001_c']], [self.deps_c['0001_c'], self.deps_c['0002_c']], [self.deps_c['0001_c'], self.deps_c['0002_c'], self.deps_c['0003_c']], [self.deps_c['0001_c'], self.deps_c['0002_c'], self.deps_c['0003_c'], self.deps_c['0004_c']], [self.deps_c['0001_c'], self.deps_c['0002_c'], self.deps_c['0003_c'], self.deps_c['0004_c'], self.deps_a['0001_a'], self.deps_a['0002_a'], self.deps_c['0005_c']]], [m.forwards_plan for m in self.deps_c]) | 0c0f340bc8be175e12f8ac3631b51f8ab31c3f45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13142/0c0f340bc8be175e12f8ac3631b51f8ab31c3f45/logic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1884,
6397,
67,
7088,
12,
2890,
4672,
365,
18,
11231,
5812,
3816,
63,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
3546,
6487,
306,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
17954,
67,
69,
3546,
6487,
306,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
17954,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
30770,
67,
69,
3546,
6487,
306,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
17954,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
30770,
67,
69,
17337,
365,
18,
14877,
67,
70,
3292,
13304,
67,
70,
17337,
365,
18,
14877,
67,
70,
3292,
17954,
67,
70,
17337,
365,
18,
14877,
67,
70,
3292,
30770,
67,
70,
17337,
365,
18,
14877,
67,
69,
3292,
31262,
67,
69,
3546,
6487,
306,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
17954,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
30770,
67,
69,
17337,
365,
18,
14877,
67,
70,
3292,
13304,
67,
70,
17337,
365,
18,
14877,
67,
70,
3292,
17954,
67,
70,
17337,
365,
18,
14877,
67,
70,
3292,
30770,
67,
70,
17337,
365,
18,
14877,
67,
69,
3292,
31262,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
3784,
25,
67,
69,
3546,
65,
6487,
306,
81,
18,
1884,
6397,
67,
7088,
364,
312,
316,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1884,
6397,
67,
7088,
12,
2890,
4672,
365,
18,
11231,
5812,
3816,
63,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
3546,
6487,
306,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
17954,
67,
69,
3546,
6487,
306,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
17954,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
30770,
67,
69,
3546,
6487,
306,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
17954,
67,
69,
17337,
365,
18,
14877,
67,
69,
3292,
30770,
67,
69,
17337,
365,
18,
14877,
67,
70,
3292,
13304,
2
] |
where account_analytic_line.account_id =ANY(%s) \ | where account_analytic_line.account_id IN %s \ | def _ca_invoiced_calc(self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: acc_set = ",".join(map(str, ids2)) cr.execute("select account_analytic_line.account_id, COALESCE(sum(amount_currency),0.0) \ from account_analytic_line \ join account_analytic_journal \ on account_analytic_line.journal_id = account_analytic_journal.id \ where account_analytic_line.account_id =ANY(%s) \ and account_analytic_journal.type = 'sale' \ group by account_analytic_line.account_id" ,(ids2,)) for account_id, sum in cr.fetchall(): res[account_id] = round(sum,2) return self._compute_currency_for_level_tree(cr, uid, ids, ids2, res, acc_set, context) | 3c18c11c83e2549431192a3a0c1f46403db9d628 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8241/3c18c11c83e2549431192a3a0c1f46403db9d628/account_analytic_analysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5353,
67,
16119,
72,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
3258,
22,
273,
365,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
2938,
67,
350,
2187,
296,
3624,
67,
792,
2187,
3258,
13,
5717,
309,
3258,
22,
30,
4078,
67,
542,
273,
5753,
18,
5701,
12,
1458,
12,
701,
16,
3258,
22,
3719,
4422,
18,
8837,
2932,
4025,
2236,
67,
304,
7834,
335,
67,
1369,
18,
4631,
67,
350,
16,
7910,
37,
11386,
1441,
12,
1364,
12,
8949,
67,
7095,
3631,
20,
18,
20,
13,
521,
628,
2236,
67,
304,
7834,
335,
67,
1369,
521,
1233,
2236,
67,
304,
7834,
335,
67,
22644,
521,
603,
2236,
67,
304,
7834,
335,
67,
1369,
18,
22644,
67,
350,
273,
2236,
67,
304,
7834,
335,
67,
22644,
18,
350,
225,
521,
1625,
2236,
67,
304,
7834,
335,
67,
1369,
18,
4631,
67,
350,
2120,
738,
87,
521,
471,
2236,
67,
304,
7834,
335,
67,
22644,
18,
723,
273,
296,
87,
5349,
11,
521,
1041,
635,
2236,
67,
304,
7834,
335,
67,
1369,
18,
4631,
67,
350,
6,
269,
12,
2232,
22,
16,
3719,
364,
2236,
67,
350,
16,
2142,
316,
4422,
18,
5754,
454,
13332,
400,
63,
4631,
67,
350,
65,
273,
3643,
12,
1364,
16,
22,
13,
225,
327,
365,
6315,
9200,
67,
7095,
67,
1884,
67,
2815,
67,
3413,
12,
3353,
16,
4555,
16,
3258,
16,
3258,
22,
16,
400,
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,
5353,
67,
16119,
72,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
3258,
22,
273,
365,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
2938,
67,
350,
2187,
296,
3624,
67,
792,
2187,
3258,
13,
5717,
309,
3258,
22,
30,
4078,
67,
542,
273,
5753,
18,
5701,
12,
1458,
12,
701,
16,
3258,
22,
3719,
4422,
18,
8837,
2932,
4025,
2236,
67,
304,
7834,
335,
67,
1369,
18,
4631,
67,
350,
16,
7910,
37,
11386,
1441,
12,
1364,
12,
8949,
67,
7095,
3631,
20,
18,
20,
13,
521,
628,
2236,
67,
304,
7834,
335,
67,
1369,
521,
1233,
2236,
67,
304,
7834,
335,
2
] |
print >> out, "ERROR_(inconsistency in f_obs or/and r_free_flags): %s %s"%(hkl[:-4],pdb) | print >> out, "Inconsistency_in_f_obs_or/and_r_free_flags): %s %s"%( hkl,pdb) | def get_fobs_and_rfree_flags_from_mtz(hkl, pdb, out): try: f_obs, r_free_flags = None, None refl = reflection_file_reader.any_reflection_file(file_name = hkl) refl_arrays = refl.as_miller_arrays() for a in refl_arrays: if(str(a.info()).count("FOBS")): f_obs = a assert str(f_obs.observation_type()) == "xray.amplitude" if(str(a.info()).count("FLAGS")): r_free_flags = a if(str(a.info()).count("IOBS")): assert str(a.observation_type()) == "xray.intensity" f_obs = a.f_sq_as_f() r_free_flags = r_free_flags.array(data = (r_free_flags.data() == 1)) b, a = r_free_flags.common_sets(f_obs) if(a.indices().size() != f_obs.indices().size()): assert a.indices().size() == f_obs.indices().size() else: r_free_flags = b assert a.indices().all_eq(f_obs.indices()) assert str(f_obs.observation_type()) == "xray.amplitude" except KeyboardInterrupt: raise except: f_obs, r_free_flags = None, None print >> out, "ERROR_(inconsistency in f_obs or/and r_free_flags): %s %s"%(hkl[:-4],pdb) return f_obs, r_free_flags | 9e0b7031e121e2fc878f68faaa8779137d9fc180 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/9e0b7031e121e2fc878f68faaa8779137d9fc180/pdb_refl_cif_to_mtz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
617,
2038,
67,
464,
67,
5809,
992,
67,
7133,
67,
2080,
67,
1010,
94,
12,
76,
16391,
16,
10892,
16,
596,
4672,
775,
30,
284,
67,
10992,
16,
436,
67,
9156,
67,
7133,
273,
599,
16,
599,
18685,
273,
5463,
67,
768,
67,
10530,
18,
2273,
67,
26606,
67,
768,
12,
768,
67,
529,
273,
366,
16391,
13,
18685,
67,
16223,
273,
18685,
18,
345,
67,
81,
24462,
67,
16223,
1435,
364,
279,
316,
18685,
67,
16223,
30,
309,
12,
701,
12,
69,
18,
1376,
1435,
2934,
1883,
2932,
3313,
12692,
6,
3719,
30,
284,
67,
10992,
273,
279,
1815,
609,
12,
74,
67,
10992,
18,
31743,
67,
723,
10756,
422,
315,
92,
435,
18,
301,
20794,
6,
309,
12,
701,
12,
69,
18,
1376,
1435,
2934,
1883,
2932,
17836,
6,
3719,
30,
436,
67,
9156,
67,
7133,
273,
279,
309,
12,
701,
12,
69,
18,
1376,
1435,
2934,
1883,
2932,
4294,
12692,
6,
3719,
30,
1815,
609,
12,
69,
18,
31743,
67,
723,
10756,
422,
315,
92,
435,
18,
474,
6318,
6,
284,
67,
10992,
273,
279,
18,
74,
67,
11410,
67,
345,
67,
74,
1435,
436,
67,
9156,
67,
7133,
273,
436,
67,
9156,
67,
7133,
18,
1126,
12,
892,
273,
261,
86,
67,
9156,
67,
7133,
18,
892,
1435,
422,
404,
3719,
324,
16,
279,
273,
436,
67,
9156,
67,
7133,
18,
6054,
67,
4424,
12,
74,
67,
10992,
13,
309,
12,
69,
18,
6836,
7675,
1467,
1435,
480,
284,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
617,
2038,
67,
464,
67,
5809,
992,
67,
7133,
67,
2080,
67,
1010,
94,
12,
76,
16391,
16,
10892,
16,
596,
4672,
775,
30,
284,
67,
10992,
16,
436,
67,
9156,
67,
7133,
273,
599,
16,
599,
18685,
273,
5463,
67,
768,
67,
10530,
18,
2273,
67,
26606,
67,
768,
12,
768,
67,
529,
273,
366,
16391,
13,
18685,
67,
16223,
273,
18685,
18,
345,
67,
81,
24462,
67,
16223,
1435,
364,
279,
316,
18685,
67,
16223,
30,
309,
12,
701,
12,
69,
18,
1376,
1435,
2934,
1883,
2932,
3313,
12692,
6,
3719,
30,
284,
67,
10992,
273,
279,
1815,
609,
12,
74,
67,
10992,
18,
31743,
67,
723,
10756,
422,
315,
92,
435,
18,
301,
2
] |
atoms = cluster.copy() | assert n_atoms == atoms_ref.n, 'Number of atoms must match atoms_ref' atoms = atoms_ref.copy() atoms.set_lattice(lattice) | def CastepOutputReader(castep_file, cluster=None, abort=True, save_params=False): """Parse .castep file, and return Atoms object with positions, energy, forces, and possibly stress and atomic populations as well""" if type(castep_file) == type(''): castep_file = open(castep_file,'r') castep_file = iter(castep_file) param = CastepParam() got_header = False eof = False while True: castep_output = [] while True: try: line = castep_file.next() except StopIteration: eof = True break castep_output.append(line) if line == ' | CCC AA SSS TTTTT EEEEE PPPP |\n': if got_header: got_param = True break else: got_header = True if line.startswith(' Starting BFGS iteration'): break if line.startswith(' BFGS: improving iteration'): break # NB: CASTEP doesn't always print 'Total time' run_time = -1.0 total_time = filter(lambda s: s.startswith('Total time'), castep_output) if total_time == []: has_converged = filter(lambda s: s.startswith('Total energy has converged'), castep_output) if abort and has_converged == []: raise ValueError("castep didn't complete") else: run_time = float(total_time[0].split()[3]) # Now we should have contents of a valid .castep file in castep_output # First let's read the user parameters for this run from top of file new_param = CastepParam() try: new_param.read_from_castep_output(castep_output) param.update(new_param) except ValueError: pass #if abort: # raise # Next let's extract the lattice and atomic positions lattice_lines = [i for (i,x) in enumerate(castep_output) if x == ' Unit Cell\n'] if lattice_lines == []: if abort: raise ValueError('No unit cell found in castep file') else: continue lattice_line = lattice_lines[-1] # last lattice lattice_lines = castep_output[lattice_line+3:lattice_line+6] lattice = fzeros((3,3)) lattice[:,1] = map(float, lattice_lines[0].split()[0:3]) lattice[:,2] = map(float, lattice_lines[1].split()[0:3]) lattice[:,3] = map(float, lattice_lines[2].split()[0:3]) cell_contents = [i for (i,x) in enumerate(castep_output) if x == ' Cell Contents\n'] if cell_contents == []: raise ValueError('No cell contents found in castep file') cell_first_line = cell_contents[-1] # last cell contents line try: n_atoms = int(castep_output[cell_first_line+2].split()[-1]) offset = 10 except IndexError: offset = 7 if cluster is not None: # If we were passed in an Atoms object, construct mapping from # CASTEP (element, number) to original atom index atoms = cluster.copy() species_count = {} lookup = {} for i in frange(atoms.n): el = atoms.species[i].stripstrings() if species_count.has_key(el): species_count[el] += 1 else: species_count[el] = 1 lookup[(el,species_count[el])] = i else: # Otherwise we make a new, empty Atoms object. Atoms will # be ordered as they are in .castep file. lookup = {} atoms = Atoms(n=n_atoms,lattice=lattice) atoms.params['castep_run_time'] = run_time cell_lines = castep_output[cell_first_line+offset:cell_first_line+offset+n_atoms] # Fill in species and fractional positions atoms.add_property('frac_pos',0.0,n_cols=3) for i, line in fenumerate(cell_lines): x1, el, num, u, v, w, x2 = line.split() num = int(num) if not (el,num) in lookup: lookup[(el,num)] = i atoms.set_species(lookup[(el,num)], el) atoms.frac_pos[:,lookup[(el,num)]] = map(float, (u,v,w)) # Calculate cartesian postions from fractional positions atoms.pos[:] = numpy.dot(atoms.lattice, atoms.frac_pos) if param.has_key('finite_basis_corr') and param['finite_basis_corr'].lower() == 'true': energy_lines = filter(lambda s: s.startswith('Total energy corrected for finite basis set'), \ castep_output) elif param.has_key('task') and param['task'].lower() == 'geometryoptimization': energy_lines = filter(lambda s: s.startswith(' BFGS: Final Enthalpy'), castep_output) else: energy_lines = filter(lambda s: s.startswith('Final energy') and not s.endswith('<- EDFT\n'), castep_output) if (len(energy_lines) == 0): if abort: raise ValueError('No total energy found in castep file') else: # Energy is second to last field on line (last is "eV") # Use last matching energy line in file atoms.params['energy'] = float(energy_lines[-1].split()[-2]) try: for fn in ('Forces', 'Symmetrised Forces'): force_start_lines = [i for (i,s) in enumerate(castep_output) if s.find('****** %s ******' % fn) != -1] if force_start_lines != []: break if force_start_lines == []: raise ValueError # Use last set of forces force_start = force_start_lines[-1] # Extract force lines from .castep file force_lines = castep_output[force_start+6:force_start+6+atoms.n] atoms.add_property('force',0.0,n_cols=3) # Fill in the forces for i, line in enumerate(force_lines): line = line.replace('*','') # Remove the *s el, num_str, fx, fy, fz = line.split() num = int(num_str) atoms.force[:,lookup[(el,num)]] = (fx,fy,fz) except ValueError, m: if abort: raise ValueError('No forces found in castep file %s: ' % m) # Have we calculated stress? if 'calculate_stress' in param and param['calculate_stress'].lower() == 'true': try: stress_start = castep_output.index(' ***************** Stress Tensor *****************\n') stress_lines = castep_output[stress_start+6:stress_start+9] virial = fzeros((3,3),float) for i, line in fenumerate(stress_lines): star1, label, vx, vy, vz, star2 = line.split() virial[:,i] = [float(v) for v in (vx,vy,vz) ] # Convert to libAtoms units and add to atoms.params atoms.params['virial'] = virial/GPA except ValueError: if abort: raise ValueError('No stress tensor found in .castep file') # Have we calculated local populations and charges? if 'popn_calculate' in param and param['popn_calculate'].lower() == 'true': try: popn_start = castep_output.index(' Atomic Populations\n') popn_lines = castep_output[popn_start+4:popn_start+4+atoms.n] atoms.add_property('popn_s',0.0) atoms.add_property('popn_p',0.0) atoms.add_property('popn_d',0.0) atoms.add_property('popn_f',0.0) atoms.add_property('popn_total',0.0) atoms.add_property('popn_charge',0.0) for line in popn_lines: el, num_str, s, p, d, f, tot, charge = line.split() num = int(num_str) atoms.popn_s[lookup[(el,num)]] = float(s) atoms.popn_p[lookup[(el,num)]] = float(p) atoms.popn_d[lookup[(el,num)]] = float(d) atoms.popn_f[lookup[(el,num)]] = float(f) atoms.popn_total[lookup[(el,num)]] = float(tot) atoms.popn_charge[lookup[(el,num)]] = float(charge) except ValueError: if abort: raise ValueError('No populations found in castep file') if save_params: atoms.params.update(param) yield atoms if eof: break | ec8807b76757684570a516cf1219a2030cb3b7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/ec8807b76757684570a516cf1219a2030cb3b7d0/castep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19782,
881,
1447,
2514,
12,
4155,
881,
67,
768,
16,
2855,
33,
7036,
16,
6263,
33,
5510,
16,
1923,
67,
2010,
33,
8381,
4672,
3536,
3201,
263,
4155,
881,
585,
16,
471,
327,
7149,
87,
733,
598,
6865,
16,
12929,
16,
26376,
16,
471,
10016,
384,
663,
471,
7960,
3650,
1012,
487,
5492,
8395,
225,
309,
618,
12,
4155,
881,
67,
768,
13,
422,
618,
2668,
11,
4672,
4812,
881,
67,
768,
273,
1696,
12,
4155,
881,
67,
768,
11189,
86,
6134,
4812,
881,
67,
768,
273,
1400,
12,
4155,
881,
67,
768,
13,
225,
579,
273,
19782,
881,
786,
1435,
225,
2363,
67,
3374,
273,
1083,
14813,
273,
1083,
1323,
1053,
30,
225,
4812,
881,
67,
2844,
273,
5378,
1323,
1053,
30,
775,
30,
980,
273,
4812,
881,
67,
768,
18,
4285,
1435,
1335,
16179,
30,
14813,
273,
1053,
898,
4812,
881,
67,
2844,
18,
6923,
12,
1369,
13,
225,
309,
980,
422,
296,
571,
1377,
385,
6743,
282,
27343,
565,
348,
1260,
225,
399,
1470,
1470,
225,
512,
9383,
9383,
225,
453,
6584,
52,
3639,
571,
64,
82,
4278,
309,
2363,
67,
3374,
30,
2363,
67,
891,
273,
1053,
898,
469,
30,
2363,
67,
3374,
273,
1053,
225,
309,
980,
18,
17514,
1918,
2668,
24591,
605,
42,
16113,
6532,
11,
4672,
898,
225,
309,
980,
18,
17514,
1918,
2668,
605,
42,
16113,
30,
13069,
6282,
6532,
11,
4672,
898,
225,
468,
20096,
30,
6425,
26951,
3302,
1404,
3712,
1172,
296,
5269,
813,
11,
1086,
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,
19782,
881,
1447,
2514,
12,
4155,
881,
67,
768,
16,
2855,
33,
7036,
16,
6263,
33,
5510,
16,
1923,
67,
2010,
33,
8381,
4672,
3536,
3201,
263,
4155,
881,
585,
16,
471,
327,
7149,
87,
733,
598,
6865,
16,
12929,
16,
26376,
16,
471,
10016,
384,
663,
471,
7960,
3650,
1012,
487,
5492,
8395,
225,
309,
618,
12,
4155,
881,
67,
768,
13,
422,
618,
2668,
11,
4672,
4812,
881,
67,
768,
273,
1696,
12,
4155,
881,
67,
768,
11189,
86,
6134,
4812,
881,
67,
768,
273,
1400,
12,
4155,
881,
67,
768,
13,
225,
579,
273,
19782,
881,
786,
1435,
225,
2363,
67,
3374,
273,
1083,
14813,
273,
1083,
1323,
1053,
30,
225,
4812,
881,
67,
2844,
2
] |
email = email + str return string.strip(comment), string.strip(email) | addr.append(token[1]) return string.join(name, ' '), string.join(addr, '') | def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c == '"': dquote = 1 continue if c in string.whitespace: space = 1 continue if space: str = str + ' ' space = 0 if paren: if c == '(': paren = paren + 1 str = str + c continue if c == ')': paren = paren - 1 if paren == 0: comment = comment + str str = '' continue if c == '(': paren = paren + 1 if bracket: email = email + str str = '' elif not seen_bracket: email = email + str str = '' continue if bracket: if c == '>': bracket = 0 email = email + str str = '' continue if c == '<': bracket = 1 seen_bracket = 1 comment = comment + str str = '' email = '' continue if c == '#' and not bracket and not paren: # rest is comment break str = str + c if str: if seen_bracket: if bracket: email = str else: comment = comment + str else: if paren: comment = comment + str else: email = email + str return string.strip(comment), string.strip(email) | 4fc35f6fe9840dd900330fa5e979466e53ea44e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4fc35f6fe9840dd900330fa5e979466e53ea44e5/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4793,
12,
2867,
4672,
1930,
533,
609,
273,
875,
2699,
273,
875,
2879,
273,
875,
23253,
273,
374,
302,
6889,
273,
374,
3476,
273,
374,
22146,
273,
374,
9843,
273,
374,
5881,
67,
21025,
273,
374,
364,
276,
316,
1758,
30,
309,
23253,
30,
609,
273,
609,
397,
276,
23253,
273,
374,
1324,
309,
276,
422,
3718,
4278,
23253,
273,
404,
1324,
309,
302,
6889,
30,
309,
276,
422,
2119,
4278,
302,
6889,
273,
374,
469,
30,
609,
273,
609,
397,
276,
1324,
309,
276,
422,
2119,
4278,
302,
6889,
273,
404,
1324,
309,
276,
316,
533,
18,
18777,
30,
3476,
273,
404,
1324,
309,
3476,
30,
609,
273,
609,
397,
296,
296,
3476,
273,
374,
309,
22146,
30,
309,
276,
422,
7321,
30,
22146,
273,
22146,
397,
404,
609,
273,
609,
397,
276,
1324,
309,
276,
422,
5777,
30,
22146,
273,
22146,
300,
404,
309,
22146,
422,
374,
30,
2879,
273,
2879,
397,
609,
609,
273,
875,
1324,
309,
276,
422,
7321,
30,
22146,
273,
22146,
397,
404,
309,
9843,
30,
2699,
273,
2699,
397,
609,
609,
273,
875,
1327,
486,
5881,
67,
21025,
30,
2699,
273,
2699,
397,
609,
609,
273,
875,
1324,
309,
9843,
30,
309,
276,
422,
7481,
30,
9843,
273,
374,
2699,
273,
2699,
397,
609,
609,
273,
875,
1324,
309,
276,
422,
2368,
4278,
9843,
273,
404,
5881,
67,
21025,
273,
404,
2879,
273,
2879,
397,
609,
609,
273,
875,
2699,
273,
875,
1324,
309,
276,
422,
6501,
471,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4793,
12,
2867,
4672,
1930,
533,
609,
273,
875,
2699,
273,
875,
2879,
273,
875,
23253,
273,
374,
302,
6889,
273,
374,
3476,
273,
374,
22146,
273,
374,
9843,
273,
374,
5881,
67,
21025,
273,
374,
364,
276,
316,
1758,
30,
309,
23253,
30,
609,
273,
609,
397,
276,
23253,
273,
374,
1324,
309,
276,
422,
3718,
4278,
23253,
273,
404,
1324,
309,
302,
6889,
30,
309,
276,
422,
2119,
4278,
302,
6889,
273,
374,
469,
30,
609,
273,
609,
397,
276,
1324,
309,
276,
422,
2119,
4278,
302,
6889,
273,
404,
1324,
309,
276,
316,
533,
18,
18777,
30,
3476,
273,
404,
1324,
309,
3476,
30,
609,
273,
609,
397,
296,
296,
3476,
273,
374,
309,
2
] |
muleh t0, flags=(CF,OF) | muleh t0 | def macroop IMUL_R_P | 223ca22a9687d28a645fc6017a3302f5f7168ddd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7385/223ca22a9687d28a645fc6017a3302f5f7168ddd/multiply_and_divide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
6246,
1506,
67,
54,
67,
52,
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,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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dblQuotedString = Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\.))*"').setName("string enclosed in double quotes") sglQuotedString = Regex(r"'(?:[^'\n\r\\]|(?:'')|(?:\\.))*'").setName("string enclosed in single quotes") quotedString = Regex(r'''(?:"(?:[^"\n\r\\]|(?:"")|(?:\\.))*")|(?:'(?:[^'\n\r\\]|(?:'')|(?:\\.))*')''').setName("quotedString using single or double quotes") | dblQuotedString = Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\x[0-9a-fA-F]+)|(?:\\.))*"').setName("string enclosed in double quotes") sglQuotedString = Regex(r"'(?:[^'\n\r\\]|(?:'')|(?:\\x[0-9a-fA-F]+)|(?:\\.))*'").setName("string enclosed in single quotes") quotedString = Regex(r'''(?:"(?:[^"\n\r\\]|(?:"")|(?:\\x[0-9a-fA-F]+)|(?:\\.))*")|(?:'(?:[^'\n\r\\]|(?:'')|(?:\\x[0-9a-fA-F]+)|(?:\\.))*')''').setName("quotedString using single or double quotes") unicodeString = Combine('u' + quotedString.copy()) | def operatorPrecedence( baseExpr, opList ): """Helper method for constructing grammars of expressions made up of operators working in a precedence hierarchy. Operators may be unary or binary, left- or right-associative. Parse actions can also be attached to operator expressions. Parameters: - baseExpr - expression representing the most basic element for the nested - opList - list of tuples, one for each operator precedence level in the expression grammar; each tuple is of the form (opExpr, numTerms, rightLeftAssoc, parseAction), where: - opExpr is the pyparsing expression for the operator; may also be a string, which will be converted to a Literal - numTerms is the number of terms for this operator (must be 1 or 2) - rightLeftAssoc is the indicator whether the operator is right or left associative, using the pyparsing-defined constants opAssoc.RIGHT and opAssoc.LEFT. - parseAction is the parse action to be associated with expressions matching this operator expression (the parse action tuple member may be omitted) """ ret = Forward() lastExpr = baseExpr | ( Suppress('(') + ret + Suppress(')') ) for i,operDef in enumerate(opList): opExpr,arity,rightLeftAssoc,pa = (operDef + (None,))[:4] thisExpr = Forward()#.setName("expr%d" % i) if rightLeftAssoc == opAssoc.LEFT: if arity == 1: matchExpr = Group( lastExpr + ZeroOrMore( opExpr ) ) elif arity == 2: matchExpr = Group( lastExpr + ZeroOrMore( opExpr + lastExpr ) ) else: raise ValueError, "operator must be unary (1) or binary (2)" elif rightLeftAssoc == opAssoc.RIGHT: if arity == 1: # try to avoid LR with this extra test if not isinstance(opExpr, Optional): opExpr = Optional(opExpr) matchExpr = FollowedBy(opExpr.expr + thisExpr) + Group( opExpr + thisExpr ) matchExpr |= lastExpr elif arity == 2: matchExpr = Group( lastExpr + ZeroOrMore( opExpr + thisExpr ) ) else: raise ValueError, "operator must be unary (1) or binary (2)" else: raise ValueError, "operator must indicate right or left associativity" if pa: matchExpr.setParseAction( pa ) thisExpr << ( matchExpr ) lastExpr = thisExpr ret << lastExpr ret.setParseAction(_flattenOpPrecTokens) return Group(ret) | e96f0b1cef1ab581cc3cb34f5c6eb89031872390 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3693/e96f0b1cef1ab581cc3cb34f5c6eb89031872390/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3726,
1386,
24092,
12,
1026,
4742,
16,
27571,
262,
30,
3536,
2276,
707,
364,
27389,
6473,
87,
434,
8041,
7165,
731,
434,
12213,
5960,
316,
279,
14172,
9360,
18,
225,
7692,
3062,
2026,
506,
19017,
578,
3112,
16,
2002,
17,
578,
2145,
17,
7836,
1535,
18,
225,
2884,
4209,
848,
2546,
506,
7495,
358,
3726,
8041,
18,
225,
7012,
30,
300,
1026,
4742,
300,
2652,
5123,
326,
4486,
5337,
930,
364,
326,
4764,
300,
27571,
300,
666,
434,
10384,
16,
1245,
364,
1517,
3726,
14172,
1801,
316,
326,
2652,
6473,
31,
1517,
3193,
353,
434,
326,
646,
261,
556,
4742,
16,
818,
11673,
16,
2145,
3910,
16974,
16,
1109,
1803,
3631,
1625,
30,
300,
1061,
4742,
353,
326,
18951,
297,
2470,
2652,
364,
326,
3726,
31,
2026,
2546,
506,
279,
533,
16,
1492,
903,
506,
5970,
358,
279,
14392,
300,
818,
11673,
353,
326,
1300,
434,
6548,
364,
333,
3726,
261,
11926,
506,
404,
578,
576,
13,
300,
2145,
3910,
16974,
353,
326,
10664,
2856,
326,
3726,
353,
2145,
578,
2002,
13983,
16,
1450,
326,
18951,
297,
2470,
17,
2178,
6810,
1061,
16974,
18,
11847,
471,
1061,
16974,
18,
10066,
18,
300,
1109,
1803,
353,
326,
1109,
1301,
358,
506,
3627,
598,
8041,
3607,
333,
3726,
2652,
261,
5787,
1109,
1301,
3193,
3140,
2026,
506,
16195,
13,
3536,
325,
273,
17206,
1435,
1142,
4742,
273,
1026,
4742,
571,
261,
4598,
2668,
2668,
13,
397,
325,
397,
4598,
2668,
2506,
13,
262,
364,
277,
16,
4063,
3262,
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,
3726,
1386,
24092,
12,
1026,
4742,
16,
27571,
262,
30,
3536,
2276,
707,
364,
27389,
6473,
87,
434,
8041,
7165,
731,
434,
12213,
5960,
316,
279,
14172,
9360,
18,
225,
7692,
3062,
2026,
506,
19017,
578,
3112,
16,
2002,
17,
578,
2145,
17,
7836,
1535,
18,
225,
2884,
4209,
848,
2546,
506,
7495,
358,
3726,
8041,
18,
225,
7012,
30,
300,
1026,
4742,
300,
2652,
5123,
326,
4486,
5337,
930,
364,
326,
4764,
300,
27571,
300,
666,
434,
10384,
16,
1245,
364,
1517,
3726,
14172,
1801,
316,
326,
2652,
6473,
31,
1517,
3193,
353,
434,
326,
646,
261,
556,
4742,
16,
818,
11673,
16,
2145,
3910,
16974,
16,
1109,
1803,
3631,
1625,
30,
300,
1061,
4742,
353,
326,
2
] |
elif note.values[0:7] == [78, 105, 107, 111, 110, 00, 02]: | elif note.values[0:7] == [78, 105, 107, 111, 110, 0, 2]: | def decode_maker_note(self): note = self.tags['EXIF MakerNote'] make = self.tags['Image Make'].printable #model = self.tags['Image Model'].printable # unused | aec1b6e06ab32d55718ef19aac00ad91fb860f90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/aec1b6e06ab32d55718ef19aac00ad91fb860f90/EXIF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
29261,
67,
7652,
12,
2890,
4672,
4721,
273,
365,
18,
4156,
3292,
2294,
5501,
490,
6388,
8067,
3546,
1221,
273,
365,
18,
4156,
3292,
2040,
4344,
29489,
1188,
429,
468,
2284,
273,
365,
18,
4156,
3292,
2040,
3164,
29489,
1188,
429,
468,
10197,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
29261,
67,
7652,
12,
2890,
4672,
4721,
273,
365,
18,
4156,
3292,
2294,
5501,
490,
6388,
8067,
3546,
1221,
273,
365,
18,
4156,
3292,
2040,
4344,
29489,
1188,
429,
468,
2284,
273,
365,
18,
4156,
3292,
2040,
3164,
29489,
1188,
429,
468,
10197,
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
] |
ligolw + "'\"" | ligolw += "'\"" | def xml(self): """Convert a table dictionary to LIGO lightweight XML""" if len(self.table) == 0: raise LIGOLwDBError, 'attempt to convert empty table to xml' ligolw = """\ | e7f270d0fa7314ad6f6780e759449e01bfed268d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/e7f270d0fa7314ad6f6780e759449e01bfed268d/ldbd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
12,
2890,
4672,
3536,
2723,
279,
1014,
3880,
358,
511,
3047,
51,
9052,
4865,
3167,
8395,
309,
562,
12,
2890,
18,
2121,
13,
422,
374,
30,
1002,
511,
3047,
1741,
91,
2290,
668,
16,
296,
11764,
358,
1765,
1008,
1014,
358,
2025,
11,
16917,
355,
91,
273,
3536,
64,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
91,
2290,
668,
16,
296,
11764,
358,
1765,
1008,
1014,
358,
2025,
11,
16917,
355,
91,
273,
3536,
64,
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
] |
wikipedia.output(u"WARNING: You don't have set a " + license_name + ", search engine is disabled.") | warn(u"You don't have set a " + license_name + ", search engine is disabled.", prefix = "WARNING") | def check_config(var, license_id, license_name): if var: if not license_id: wikipedia.output(u"WARNING: You don't have set a " + license_name + ", search engine is disabled.") return False return var | df982418feb2fee96037cb0fe13fcf2215c639bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/df982418feb2fee96037cb0fe13fcf2215c639bd/copyright.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1425,
12,
1401,
16,
8630,
67,
350,
16,
8630,
67,
529,
4672,
309,
569,
30,
309,
486,
8630,
67,
350,
30,
1894,
12,
89,
6,
6225,
2727,
1404,
1240,
444,
279,
315,
397,
8630,
67,
529,
397,
3104,
1623,
4073,
353,
5673,
1199,
16,
1633,
273,
315,
9511,
7923,
327,
1083,
327,
569,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1425,
12,
1401,
16,
8630,
67,
350,
16,
8630,
67,
529,
4672,
309,
569,
30,
309,
486,
8630,
67,
350,
30,
1894,
12,
89,
6,
6225,
2727,
1404,
1240,
444,
279,
315,
397,
8630,
67,
529,
397,
3104,
1623,
4073,
353,
5673,
1199,
16,
1633,
273,
315,
9511,
7923,
327,
1083,
327,
569,
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
] |
if self.__pending_removes or self.__pending_adds: lock.acquire() pending_removes = self.__pending_removes while pending_removes: (s, p, o) = pending_removes.pop() self.remove(s, p, o) pending_adds = self.__pending_adds while pending_adds: (s, p, o) = pending_adds.pop() self.add(s, p, o) lock.release() | pending_removes = self.__pending_removes while pending_removes: (s, p, o) = pending_removes.pop() self.remove(s, p, o) pending_adds = self.__pending_adds while pending_adds: (s, p, o) = pending_adds.pop() self.add(s, p, o) lock.release() | def __end_read(self): lock = self.__lock lock.acquire() self.__visit_count = self.__visit_count - 1 lock.release() | 7473a8df41d14a0316d17a40e2eba86810eea641 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/7473a8df41d14a0316d17a40e2eba86810eea641/concurrent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
409,
67,
896,
12,
2890,
4672,
2176,
273,
365,
16186,
739,
2176,
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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,
409,
67,
896,
12,
2890,
4672,
2176,
273,
365,
16186,
739,
2176,
18,
1077,
1039,
1435,
365,
16186,
11658,
67,
1883,
273,
365,
16186,
11658,
67,
1883,
300,
404,
2176,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else | else: | def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 39) else quickfix.CharField.__init__(self, 39, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
16977,
13,
469,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
16977,
16,
501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
16977,
13,
469,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
16977,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
l = map(f,self.res) | l = self.res | def plot(self, f, lfilter=None,**kargs): """Applies a function to each packet to get a value that will be plotted with GnuPlot. A gnuplot object is returned lfilter: a truth function that decides whether a packet must be ploted""" g=Gnuplot.Gnuplot() l = map(f,self.res) if lfilter is not None: l = filter(lfilter, l) g.plot(Gnuplot.Data(l, **kargs)) return g | f7faabd726e5265bbef279e011656bbacd93dd87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/f7faabd726e5265bbef279e011656bbacd93dd87/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
284,
16,
328,
2188,
33,
7036,
16,
636,
79,
1968,
4672,
3536,
13029,
279,
445,
358,
1517,
4414,
358,
336,
279,
460,
716,
903,
506,
3207,
2344,
598,
611,
13053,
11532,
18,
432,
314,
13053,
4032,
733,
353,
2106,
328,
2188,
30,
279,
16512,
445,
716,
2109,
4369,
2856,
279,
4414,
1297,
506,
3207,
329,
8395,
314,
33,
43,
13053,
4032,
18,
43,
13053,
4032,
1435,
328,
273,
365,
18,
455,
309,
328,
2188,
353,
486,
599,
30,
328,
273,
1034,
12,
80,
2188,
16,
328,
13,
314,
18,
4032,
12,
43,
13053,
4032,
18,
751,
12,
80,
16,
2826,
79,
1968,
3719,
327,
314,
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,
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460,
716,
903,
506,
3207,
2344,
598,
611,
13053,
11532,
18,
432,
314,
13053,
4032,
733,
353,
2106,
328,
2188,
30,
279,
16512,
445,
716,
2109,
4369,
2856,
279,
4414,
1297,
506,
3207,
329,
8395,
314,
33,
43,
13053,
4032,
18,
43,
13053,
4032,
1435,
328,
273,
365,
18,
455,
309,
328,
2188,
353,
486,
599,
30,
328,
273,
1034,
12,
80,
2188,
16,
328,
13,
314,
18,
4032,
12,
43,
13053,
4032,
18,
751,
12,
80,
16,
2826,
79,
1968,
3719,
327,
314,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
graph._embedding.pop(extra) | def is_circular_planar(self, ordered=True, kuratowski=False, set_embedding=False, set_pos=False): """ A graph (with nonempty boundary) is circular planar if it has a planar embedding in which all boundary vertices can be drawn in order on a disc boundary, with all the interior vertices drawn inside the disc. Returns True if the graph is circular planar, and False if it is not. If kuratowski is set to True, then this function will return a tuple, with boolean first entry and second entry the Kuratowski subgraph or minor isolated by the Boyer-Myrvold algorithm. Note that this graph might contain a vertex or edges that were not in the initial graph. These would be elements referred to below as parts of the wheel and the star, which were added to the graph to require that the boundary can be drawn on the boundary of a disc, with all other vertices drawn inside (and no edge crossings). For more information, refer to reference [2]. This is a linear time algorithm to test for circular planarity. It relies on the edge-addition planarity algorithm due to Boyer-Myrvold. We accomplish linear time for circular planarity by modifying the graph before running the general planarity algorithm. | 755c16174b2e37df79a60a4018440b4daeaff70f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/755c16174b2e37df79a60a4018440b4daeaff70f/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
11614,
9559,
67,
7088,
297,
12,
2890,
16,
5901,
33,
5510,
16,
417,
295,
270,
543,
7771,
77,
33,
8381,
16,
444,
67,
23744,
33,
8381,
16,
444,
67,
917,
33,
8381,
4672,
3536,
432,
2667,
261,
1918,
1661,
5531,
7679,
13,
353,
15302,
4995,
297,
309,
518,
711,
279,
4995,
297,
15853,
316,
1492,
777,
7679,
6928,
848,
506,
19377,
316,
1353,
603,
279,
19169,
7679,
16,
598,
777,
326,
26230,
6928,
19377,
4832,
326,
19169,
18,
225,
2860,
1053,
309,
326,
2667,
353,
15302,
4995,
297,
16,
471,
1083,
309,
518,
353,
486,
18,
225,
971,
417,
295,
270,
543,
7771,
77,
353,
444,
358,
1053,
16,
1508,
333,
445,
903,
327,
279,
3193,
16,
598,
1250,
1122,
1241,
471,
2205,
1241,
326,
1475,
295,
270,
543,
7771,
77,
21469,
578,
8439,
25790,
635,
326,
605,
13372,
264,
17,
12062,
4962,
1673,
4886,
18,
3609,
716,
333,
2667,
4825,
912,
279,
5253,
578,
5231,
716,
4591,
486,
316,
326,
2172,
2667,
18,
225,
8646,
4102,
506,
2186,
29230,
358,
5712,
487,
2140,
434,
326,
19100,
471,
326,
10443,
16,
1492,
4591,
3096,
358,
326,
2667,
358,
2583,
716,
326,
7679,
848,
506,
19377,
603,
326,
7679,
434,
279,
19169,
16,
598,
777,
1308,
6928,
19377,
4832,
261,
464,
1158,
3591,
6828,
899,
2934,
2457,
1898,
1779,
16,
8884,
358,
2114,
306,
22,
8009,
225,
1220,
353,
279,
9103,
813,
4886,
358,
1842,
364,
15302,
4995,
20498,
18,
225,
2597,
14719,
281,
603,
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,
353,
67,
11614,
9559,
67,
7088,
297,
12,
2890,
16,
5901,
33,
5510,
16,
417,
295,
270,
543,
7771,
77,
33,
8381,
16,
444,
67,
23744,
33,
8381,
16,
444,
67,
917,
33,
8381,
4672,
3536,
432,
2667,
261,
1918,
1661,
5531,
7679,
13,
353,
15302,
4995,
297,
309,
518,
711,
279,
4995,
297,
15853,
316,
1492,
777,
7679,
6928,
848,
506,
19377,
316,
1353,
603,
279,
19169,
7679,
16,
598,
777,
326,
26230,
6928,
19377,
4832,
326,
19169,
18,
225,
2860,
1053,
309,
326,
2667,
353,
15302,
4995,
297,
16,
471,
1083,
309,
518,
353,
486,
18,
225,
971,
417,
295,
270,
543,
7771,
77,
353,
444,
358,
1053,
16,
1508,
333,
445,
903,
327,
279,
3193,
2
] | |
(rc,k) = semanage_seuser_key_create(self.sh, name) | (rc, k) = semanage_seuser_key_create(self.sh, name) | def __modify(self, name, sename = "", serange = ""): if sename == "" and serange == "": raise ValueError(_("Requires seuser or serange")) | 8ad29a27255b6eb5a4f8e1083ce9832034f3e205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/8ad29a27255b6eb5a4f8e1083ce9832034f3e205/seobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17042,
12,
2890,
16,
508,
16,
272,
1069,
273,
23453,
703,
726,
273,
1408,
4672,
309,
272,
1069,
422,
1408,
471,
703,
726,
422,
1408,
30,
1002,
2068,
24899,
2932,
21671,
695,
1355,
578,
703,
726,
6,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17042,
12,
2890,
16,
508,
16,
272,
1069,
273,
23453,
703,
726,
273,
1408,
4672,
309,
272,
1069,
422,
1408,
471,
703,
726,
422,
1408,
30,
1002,
2068,
24899,
2932,
21671,
695,
1355,
578,
703,
726,
6,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
units_qs = store.units | filter = request.GET.get('filter', DEFAULT_FILTER) units_qs = _filter_queryset(store.units, filter) | def get_view_units(request, pootle_path, limit=0): """ @return: An object in JSON notation that contains the source and target texts for units that will be displayed before and after unit C{uid}. This object also contains more information used for rendering the view unit, such as the source/target language codes, direction of the text, ... Success status that indicates if the unit has been succesfully retrieved or not is returned as well. """ if pootle_path[0] != '/': pootle_path = '/' + pootle_path profile = get_profile(request.user) json = {} page = 'page' in request.GET and request.GET['page'] or 1 try: store = Store.objects.select_related('translation_project', 'parent').get(pootle_path=pootle_path) if not check_profile_permission(profile, 'view', store.parent): json["success"] = False json["msg"] = _("You do not have rights to access translation mode.") else: try: if not limit: limit = profile.get_unit_rows() # TODO: Adapt units_qs once we allow filtering units_qs = store.units json["units"] = _filter_view_units(units_qs, int(page), int(limit)) json["success"] = True except Unit.DoesNotExist: json["success"] = False json["msg"] = _("Unit %(uid)s does not exist on %(path)s." % {'uid': uid, 'path': pootle_path}) except Store.DoesNotExist: json["success"] = False json["msg"] = _("Store %(path)s does not exist." % {'path': pootle_path}) response = simplejson.dumps(json) return HttpResponse(response, mimetype="application/json") | 9f3ce7792a374c47521821bbf169d3f084c085c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/9f3ce7792a374c47521821bbf169d3f084c085c7/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1945,
67,
7705,
12,
2293,
16,
293,
1632,
298,
67,
803,
16,
1800,
33,
20,
4672,
3536,
632,
2463,
30,
1922,
733,
316,
1796,
12155,
716,
1914,
326,
1084,
471,
1018,
15219,
364,
4971,
716,
903,
506,
10453,
1865,
471,
1839,
2836,
385,
95,
1911,
5496,
225,
1220,
733,
2546,
1914,
1898,
1779,
1399,
364,
9782,
326,
1476,
2836,
16,
4123,
487,
326,
1084,
19,
3299,
2653,
6198,
16,
4068,
434,
326,
977,
16,
1372,
225,
11958,
1267,
716,
8527,
309,
326,
2836,
711,
2118,
8667,
764,
4095,
10295,
578,
486,
353,
2106,
487,
5492,
18,
3536,
309,
293,
1632,
298,
67,
803,
63,
20,
65,
480,
2023,
30,
293,
1632,
298,
67,
803,
273,
2023,
397,
293,
1632,
298,
67,
803,
3042,
273,
336,
67,
5040,
12,
2293,
18,
1355,
13,
1163,
273,
2618,
1363,
273,
296,
2433,
11,
316,
590,
18,
3264,
471,
590,
18,
3264,
3292,
2433,
3546,
578,
404,
225,
775,
30,
1707,
273,
4994,
18,
6911,
18,
4025,
67,
9243,
2668,
10173,
67,
4406,
2187,
296,
2938,
16063,
588,
12,
1631,
352,
298,
67,
803,
33,
1631,
352,
298,
67,
803,
13,
309,
486,
866,
67,
5040,
67,
9827,
12,
5040,
16,
296,
1945,
2187,
1707,
18,
2938,
4672,
1163,
9614,
4768,
11929,
273,
1083,
1163,
9614,
3576,
11929,
273,
389,
2932,
6225,
741,
486,
1240,
14989,
358,
2006,
4794,
1965,
1199,
13,
469,
30,
775,
30,
309,
486,
1800,
30,
1800,
273,
3042,
18,
588,
67,
4873,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1945,
67,
7705,
12,
2293,
16,
293,
1632,
298,
67,
803,
16,
1800,
33,
20,
4672,
3536,
632,
2463,
30,
1922,
733,
316,
1796,
12155,
716,
1914,
326,
1084,
471,
1018,
15219,
364,
4971,
716,
903,
506,
10453,
1865,
471,
1839,
2836,
385,
95,
1911,
5496,
225,
1220,
733,
2546,
1914,
1898,
1779,
1399,
364,
9782,
326,
1476,
2836,
16,
4123,
487,
326,
1084,
19,
3299,
2653,
6198,
16,
4068,
434,
326,
977,
16,
1372,
225,
11958,
1267,
716,
8527,
309,
326,
2836,
711,
2118,
8667,
764,
4095,
10295,
578,
486,
353,
2106,
487,
5492,
18,
3536,
309,
293,
1632,
298,
67,
803,
63,
20,
65,
480,
2023,
30,
293,
1632,
298,
67,
803,
273,
2023,
2
] |
cr.commit() | cr.commit() | def create(self, cr, uid, values, context={}): res = super(project_task, self).create(cr, uid, values, context=context) cr.commit() task = self.browse(cr, uid, res, context=context) if task.project_id: self.pool.get('project.project')._log_event(cr, uid, task.project_id.id, { 'res_id' : task.id, 'name' : task.name, 'description' : task.description, 'user_id': uid, 'action' : 'create', 'type' : 'task'}) return res | 0944b6859f82afb44e3d9bec8c41e264c9e0a66e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/0944b6859f82afb44e3d9bec8c41e264c9e0a66e/project_event.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
924,
16,
819,
12938,
4672,
400,
273,
2240,
12,
4406,
67,
4146,
16,
365,
2934,
2640,
12,
3353,
16,
4555,
16,
924,
16,
819,
33,
2472,
13,
4422,
18,
7371,
1435,
1562,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
400,
16,
819,
33,
2472,
13,
309,
1562,
18,
4406,
67,
350,
30,
365,
18,
6011,
18,
588,
2668,
4406,
18,
4406,
16063,
67,
1330,
67,
2575,
12,
3353,
16,
4555,
16,
1562,
18,
4406,
67,
350,
18,
350,
16,
288,
296,
455,
67,
350,
11,
294,
1562,
18,
350,
16,
296,
529,
11,
294,
1562,
18,
529,
16,
296,
3384,
11,
294,
1562,
18,
3384,
16,
296,
1355,
67,
350,
4278,
4555,
16,
296,
1128,
11,
294,
296,
2640,
2187,
296,
723,
11,
294,
296,
4146,
11,
6792,
327,
400,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
752,
12,
2890,
16,
4422,
16,
4555,
16,
924,
16,
819,
12938,
4672,
400,
273,
2240,
12,
4406,
67,
4146,
16,
365,
2934,
2640,
12,
3353,
16,
4555,
16,
924,
16,
819,
33,
2472,
13,
4422,
18,
7371,
1435,
1562,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
400,
16,
819,
33,
2472,
13,
309,
1562,
18,
4406,
67,
350,
30,
365,
18,
6011,
18,
588,
2668,
4406,
18,
4406,
16063,
67,
1330,
67,
2575,
12,
3353,
16,
4555,
16,
1562,
18,
4406,
67,
350,
18,
350,
16,
288,
296,
455,
67,
350,
11,
294,
1562,
18,
350,
16,
296,
529,
11,
294,
1562,
18,
529,
16,
296,
3384,
11,
294,
1562,
18,
3384,
16,
296,
1355,
2
] |
elif sys.platform == 'linux2': | elif sys.platform == 'linux2' or sys.platform == 'darwin': | def __raise_on_wrong_settings(self): if not os.path.isfile( self.__config.gccxml_path ): if sys.platform == 'win32': gccxml_name = 'gccxml' + '.exe' environment_var_delimiter = ';' elif sys.platform == 'linux2': gccxml_name = 'gccxml' environment_var_delimiter = ':' else: raise RuntimeError( 'unable to find out location of gccxml' ) may_be_gccxml = os.path.join( self.__config.gccxml_path, gccxml_name ) if os.path.isfile( may_be_gccxml ): self.__config.gccxml_path = may_be_gccxml else: for path in os.environ['PATH'].split( environment_var_delimiter ): gccxml_path = os.path.join( path, gccxml_name ) if os.path.isfile( gccxml_path ): self.__config.gccxml_path = gccxml_path break else: msg = 'gccxml_path("%s") should exists or to be a valid file name.' \ % self.__config.gccxml_path raise RuntimeError( msg ) if not os.path.isdir( self.__config.working_directory ): msg = 'working_directory("%s") should exists or to be a valid directory name.' \ % self.__config.working_directory raise RuntimeError( msg ) for include_path in self.__config.include_paths: if not os.path.isdir( include_path ): msg = 'include path "%s" should exists or to be a valid directory name.' \ % include_path raise RuntimeError( msg ) | fab785a480bc695e9ef047429f814629eafc6c41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7398/fab785a480bc695e9ef047429f814629eafc6c41/source_reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11628,
67,
265,
67,
21530,
67,
4272,
12,
2890,
4672,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
365,
16186,
1425,
18,
75,
952,
2902,
67,
803,
262,
30,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
314,
952,
2902,
67,
529,
273,
296,
75,
952,
2902,
11,
397,
2418,
14880,
11,
3330,
67,
1401,
67,
15751,
273,
7554,
1327,
2589,
18,
9898,
422,
296,
20132,
22,
11,
578,
2589,
18,
9898,
422,
296,
28076,
4278,
314,
952,
2902,
67,
529,
273,
296,
75,
952,
2902,
11,
3330,
67,
1401,
67,
15751,
273,
3921,
469,
30,
1002,
7265,
12,
296,
18828,
358,
1104,
596,
2117,
434,
314,
952,
2902,
11,
262,
2026,
67,
2196,
67,
75,
952,
2902,
273,
1140,
18,
803,
18,
5701,
12,
365,
16186,
1425,
18,
75,
952,
2902,
67,
803,
16,
314,
952,
2902,
67,
529,
262,
309,
1140,
18,
803,
18,
291,
768,
12,
2026,
67,
2196,
67,
75,
952,
2902,
262,
30,
365,
16186,
1425,
18,
75,
952,
2902,
67,
803,
273,
2026,
67,
2196,
67,
75,
952,
2902,
469,
30,
364,
589,
316,
1140,
18,
28684,
3292,
4211,
29489,
4939,
12,
3330,
67,
1401,
67,
15751,
262,
30,
314,
952,
2902,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
589,
16,
314,
952,
2902,
67,
529,
262,
309,
1140,
18,
803,
18,
291,
768,
12,
314,
952,
2902,
67,
803,
262,
30,
365,
16186,
1425,
18,
75,
952,
2902,
67,
803,
273,
314,
952,
2902,
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,
11628,
67,
265,
67,
21530,
67,
4272,
12,
2890,
4672,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
365,
16186,
1425,
18,
75,
952,
2902,
67,
803,
262,
30,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
314,
952,
2902,
67,
529,
273,
296,
75,
952,
2902,
11,
397,
2418,
14880,
11,
3330,
67,
1401,
67,
15751,
273,
7554,
1327,
2589,
18,
9898,
422,
296,
20132,
22,
11,
578,
2589,
18,
9898,
422,
296,
28076,
4278,
314,
952,
2902,
67,
529,
273,
296,
75,
952,
2902,
11,
3330,
67,
1401,
67,
15751,
273,
3921,
469,
30,
1002,
7265,
12,
296,
18828,
358,
1104,
596,
2117,
434,
314,
952,
2902,
11,
262,
2026,
67,
2196,
67,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.