rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
duration = zi.Attribute("a float representing how long, in seconds, the framework should wait before timing out") excClass = zi.Attribute("the exception to raise if the timeout duration is exceeded") excArg = zi.Attribute("the argument to excClass that the timeout will raise")
|
duration = zi.Attribute("a float representing how long, in seconds, the " "framework should wait before timing out") excClass = zi.Attribute("the exception to raise if the timeout duration " "is exceeded") excArg = zi.Attribute( "the argument to excClass that the timeout will raise")
|
def __add__(other): """returns .msg + other, for string concatenation"""
|
0890a2331ecc0224902839aa0bfb229eaa875f68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/0890a2331ecc0224902839aa0bfb229eaa875f68/itrial.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
3011,
4672,
3536,
6154,
263,
3576,
397,
1308,
16,
364,
533,
26833,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
364,
533,
26833,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
delay = 500
|
delay = 10
|
def start_server(listen_port, delay=500): global errors, send_cnt, recv_cnt lsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) lsock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) lsock.bind(('', listen_port)) lsock.listen(100) while True: try: csock = None print 'listening on port %s' % listen_port csock, address = lsock.accept() print 'Got client connection from %s' % address[0] handshake(csock) send_cnt = 0 recv_cnt = 0 responder(csock, delay=delay) except Exception: print "accumulated errors:", errors errors = 0 print "Ignoring exception:" print traceback.format_exc() if csock: csock.close()
|
1e633bc8eeef5e92f134ec0cf705a1f7644b9f93 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13207/1e633bc8eeef5e92f134ec0cf705a1f7644b9f93/wstest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
3567,
12,
18085,
67,
655,
16,
4624,
33,
12483,
4672,
2552,
1334,
16,
1366,
67,
13085,
16,
10665,
67,
13085,
7180,
975,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
7180,
975,
18,
4424,
27844,
12,
7814,
18,
19815,
67,
25699,
16,
2987,
18,
3584,
67,
862,
8001,
14142,
16,
404,
13,
7180,
975,
18,
4376,
12,
2668,
2187,
6514,
67,
655,
3719,
7180,
975,
18,
18085,
12,
6625,
13,
1323,
1053,
30,
775,
30,
2873,
975,
273,
599,
1172,
296,
18085,
310,
603,
1756,
738,
87,
11,
738,
6514,
67,
655,
2873,
975,
16,
1758,
273,
7180,
975,
18,
9436,
1435,
1172,
296,
15617,
1004,
1459,
628,
738,
87,
11,
738,
1758,
63,
20,
65,
11942,
12,
2143,
975,
13,
225,
1366,
67,
13085,
273,
374,
10665,
67,
13085,
273,
374,
18878,
12,
2143,
975,
16,
4624,
33,
10790,
13,
225,
1335,
1185,
30,
1172,
315,
8981,
5283,
690,
1334,
2773,
16,
1334,
1334,
273,
374,
1172,
315,
21702,
1520,
2773,
1172,
10820,
18,
2139,
67,
10075,
1435,
309,
2873,
975,
30,
2873,
975,
18,
4412,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
3567,
12,
18085,
67,
655,
16,
4624,
33,
12483,
4672,
2552,
1334,
16,
1366,
67,
13085,
16,
10665,
67,
13085,
7180,
975,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
7180,
975,
18,
4424,
27844,
12,
7814,
18,
19815,
67,
25699,
16,
2987,
18,
3584,
67,
862,
8001,
14142,
16,
404,
13,
7180,
975,
18,
4376,
12,
2668,
2187,
6514,
67,
655,
3719,
7180,
975,
18,
18085,
12,
6625,
13,
1323,
1053,
30,
775,
30,
2873,
975,
273,
599,
1172,
296,
18085,
310,
603,
1756,
738,
87,
11,
738,
6514,
67,
655,
2873,
975,
16,
1758,
273,
7180,
975,
18,
9436,
1435,
1172,
296,
15617,
1004,
2
] |
gtk.Entry.do_expose_event(self, event) x, y = self._calc_image_position()
|
gtk.EventBox.do_expose_event(self, event) self.entry.style.paint_shadow(event.window, gtk.STATE_NORMAL, gtk.SHADOW_IN, event.area, self.entry, "entry", 0, 0, self.allocation.width, self.allocation.height) x, y = self._icon_position()
|
def do_expose_event(self, event): gtk.Entry.do_expose_event(self, event) x, y = self._calc_image_position() exposed = event.area.intersect(gtk.gdk.Rectangle(x, y, 16, 16)) event.window.draw_pixbuf(None, self.pixbuf, exposed.x-x, exposed.y-y, exposed.x, exposed.y, exposed.width, exposed.height)
|
006b0b1783dee80eaa3b03dcd298253d0de14390 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/006b0b1783dee80eaa3b03dcd298253d0de14390/searchentry.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
338,
4150,
67,
2575,
12,
2890,
16,
871,
4672,
22718,
18,
1133,
3514,
18,
2896,
67,
338,
4150,
67,
2575,
12,
2890,
16,
871,
13,
365,
18,
4099,
18,
4060,
18,
84,
1598,
67,
19119,
12,
2575,
18,
5668,
16,
22718,
18,
7998,
67,
15480,
16,
22718,
18,
2664,
1880,
7306,
67,
706,
16,
871,
18,
5036,
16,
365,
18,
4099,
16,
315,
4099,
3113,
374,
16,
374,
16,
365,
18,
29299,
18,
2819,
16,
365,
18,
29299,
18,
4210,
13,
619,
16,
677,
273,
365,
6315,
3950,
67,
3276,
1435,
16265,
273,
871,
18,
5036,
18,
12288,
12,
4521,
79,
18,
75,
2883,
18,
19463,
12,
92,
16,
677,
16,
2872,
16,
2872,
3719,
871,
18,
5668,
18,
9446,
67,
14861,
4385,
12,
7036,
16,
365,
18,
14861,
4385,
16,
16265,
18,
92,
17,
92,
16,
16265,
18,
93,
17,
93,
16,
16265,
18,
92,
16,
16265,
18,
93,
16,
16265,
18,
2819,
16,
16265,
18,
4210,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
338,
4150,
67,
2575,
12,
2890,
16,
871,
4672,
22718,
18,
1133,
3514,
18,
2896,
67,
338,
4150,
67,
2575,
12,
2890,
16,
871,
13,
365,
18,
4099,
18,
4060,
18,
84,
1598,
67,
19119,
12,
2575,
18,
5668,
16,
22718,
18,
7998,
67,
15480,
16,
22718,
18,
2664,
1880,
7306,
67,
706,
16,
871,
18,
5036,
16,
365,
18,
4099,
16,
315,
4099,
3113,
374,
16,
374,
16,
365,
18,
29299,
18,
2819,
16,
365,
18,
29299,
18,
4210,
13,
619,
16,
677,
273,
365,
6315,
3950,
67,
3276,
1435,
16265,
273,
871,
18,
5036,
18,
12288,
12,
4521,
79,
18,
75,
2883,
18,
19463,
12,
92,
16,
677,
16,
2872,
16,
2872,
3719,
871,
2
] |
console.debug_stdoutln(">Entering: gnuplots.py->CA_TLS_Differance_Plot()::make_script()...")
|
console.debug_stdoutln(">Entering: gnuplots.py->CA_TLS_Differance_Plot()::make_script()...")
|
def make_script(self): console.debug_stdoutln(">Entering: gnuplots.py->CA_TLS_Differance_Plot()::make_script()...") ## DEBUG basename = "%s_CHAIN%s_NTLS%s_CADIFF" % ( self.chain.struct.structure_id, self.chain.chain_id, self.cpartition.num_tls_segments())
|
f921e2ace6e58d6ef561ac8457beb9b577456e33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/f921e2ace6e58d6ef561ac8457beb9b577456e33/gnuplots.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
4263,
12,
2890,
4672,
2983,
18,
4148,
67,
10283,
2370,
2932,
34,
10237,
310,
30,
314,
13053,
13214,
18,
2074,
2122,
3587,
67,
9905,
67,
10428,
586,
1359,
67,
11532,
1435,
2866,
6540,
67,
4263,
1435,
7070,
13,
7541,
6369,
4882,
273,
2213,
87,
67,
1792,
6964,
9,
87,
67,
1784,
3045,
9,
87,
67,
39,
1880,
16962,
6,
738,
261,
365,
18,
5639,
18,
1697,
18,
7627,
67,
350,
16,
365,
18,
5639,
18,
5639,
67,
350,
16,
365,
18,
71,
10534,
18,
2107,
67,
17116,
67,
12838,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
4263,
12,
2890,
4672,
2983,
18,
4148,
67,
10283,
2370,
2932,
34,
10237,
310,
30,
314,
13053,
13214,
18,
2074,
2122,
3587,
67,
9905,
67,
10428,
586,
1359,
67,
11532,
1435,
2866,
6540,
67,
4263,
1435,
7070,
13,
7541,
6369,
4882,
273,
2213,
87,
67,
1792,
6964,
9,
87,
67,
1784,
3045,
9,
87,
67,
39,
1880,
16962,
6,
738,
261,
365,
18,
5639,
18,
1697,
18,
7627,
67,
350,
16,
365,
18,
5639,
18,
5639,
67,
350,
16,
365,
18,
71,
10534,
18,
2107,
67,
17116,
67,
12838,
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
] |
l = self._convert_to_basis(self.hecke_operator(self._basis_cache[j], self.prime()))
|
l = self._convert_to_basis(self.hecke_operator(self._basis_cache[j], m))
|
def hecke_matrix(self, m, n, use_recurrence = False, exact_arith = False): r""" Calculate the matrix of the `T_m` operator in the basis of this space, truncated to an `n \times n` matrix. Conventions are that operators act on the left on column vectors (this is the opposite of the conventions of the sage.modules.matrix_morphism class!) Uses naive q-expansion arguments if use_recurrence=False and uses the Kolberg style recurrences if use_recurrence=True.
|
3585551616e64b7ecefd90f53b929dc9de8efd18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3585551616e64b7ecefd90f53b929dc9de8efd18/genus0.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
5667,
12,
2890,
16,
312,
16,
290,
16,
999,
67,
266,
17131,
273,
1083,
16,
5565,
67,
297,
483,
273,
1083,
4672,
436,
8395,
9029,
326,
3148,
434,
326,
1375,
56,
67,
81,
68,
3726,
316,
326,
10853,
434,
333,
3476,
16,
15282,
358,
392,
1375,
82,
521,
8293,
290,
68,
3148,
18,
735,
24862,
854,
716,
12213,
1328,
603,
326,
2002,
603,
1057,
10046,
261,
2211,
353,
326,
20759,
434,
326,
356,
24862,
434,
326,
272,
410,
18,
6400,
18,
5667,
67,
81,
7657,
6228,
667,
24949,
14854,
28224,
1043,
17,
2749,
12162,
1775,
309,
999,
67,
266,
17131,
33,
8381,
471,
4692,
326,
1475,
355,
31317,
2154,
8112,
12228,
309,
999,
67,
266,
17131,
33,
5510,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
5667,
12,
2890,
16,
312,
16,
290,
16,
999,
67,
266,
17131,
273,
1083,
16,
5565,
67,
297,
483,
273,
1083,
4672,
436,
8395,
9029,
326,
3148,
434,
326,
1375,
56,
67,
81,
68,
3726,
316,
326,
10853,
434,
333,
3476,
16,
15282,
358,
392,
1375,
82,
521,
8293,
290,
68,
3148,
18,
735,
24862,
854,
716,
12213,
1328,
603,
326,
2002,
603,
1057,
10046,
261,
2211,
353,
326,
20759,
434,
326,
356,
24862,
434,
326,
272,
410,
18,
6400,
18,
5667,
67,
81,
7657,
6228,
667,
24949,
14854,
28224,
1043,
17,
2749,
12162,
1775,
309,
999,
67,
266,
17131,
33,
8381,
471,
4692,
326,
1475,
355,
31317,
2154,
8112,
12228,
309,
999,
67,
2
] |
return ChangeSet.addFileContents(hash, repostitory.FileContentsFromChangeSet(cs, hash))
|
return ChangeSet.addFileContents(self, hash, repository.FileContentsFromChangeSet(self.absCS, hash))
|
def addFileContents(self, hash):
|
fea08405e6d1d5b251edea8e2edc34ab5ebeb785 /local1/tlutelli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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18671,
6323,
12,
2890,
16,
1651,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'user theme'
|
def LoadThemeCfg(self): ##current theme type radiobutton self.themeIsBuiltin.set(idleConf.GetOption('main','Theme','default', type='bool',default=1)) ##currently set theme currentOption=idleConf.CurrentTheme() print 'current option',currentOption ##load available theme option menus if self.themeIsBuiltin.get(): #default theme selected print 'builtin theme' itemList=idleConf.GetSectionList('default','highlight') itemList.sort() print 'builtin items:',itemList self.optMenuThemeBuiltin.SetMenu(itemList,currentOption) itemList=idleConf.GetSectionList('user','highlight') itemList.sort() print 'user items:',itemList if not itemList: self.radioThemeCustom.config(state=DISABLED) self.customTheme.set('- no custom themes -') else: self.optMenuThemeCustom.SetMenu(itemList,itemList[0]) else: #user theme selected print 'user theme' itemList=idleConf.GetSectionList('user','highlight') itemList.sort() print 'user items:',itemList self.optMenuThemeCustom.SetMenu(itemList,currentOption) itemList=idleConf.GetSectionList('default','highlight') itemList.sort() print 'builtin items:',itemList self.optMenuThemeBuiltin.SetMenu(itemList,itemList[0]) self.SetThemeType() ##load theme element option menu themeNames=self.themeElements.keys() themeNames.sort(self.__ThemeNameIndexCompare) self.optMenuHighlightTarget.SetMenu(themeNames,themeNames[0]) self.PaintThemeSample() self.SetHighlightTarget()
|
9b1724cdfb0920fcdd61ccee7684a62a64c2609a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9b1724cdfb0920fcdd61ccee7684a62a64c2609a/configDialog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8335,
8198,
12,
2890,
4672,
7541,
2972,
5006,
618,
12094,
947,
2644,
365,
18,
7997,
2520,
28032,
18,
542,
12,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
8335,
17023,
1886,
2187,
618,
2218,
6430,
2187,
1886,
33,
21,
3719,
7541,
2972,
715,
444,
5006,
783,
1895,
33,
20390,
3976,
18,
3935,
8335,
1435,
1172,
296,
2972,
1456,
2187,
2972,
1895,
7541,
945,
2319,
5006,
1456,
21374,
309,
365,
18,
7997,
2520,
28032,
18,
588,
13332,
468,
1886,
5006,
3170,
1172,
296,
24553,
5006,
11,
761,
682,
33,
20390,
3976,
18,
967,
5285,
682,
2668,
1886,
17023,
15978,
6134,
761,
682,
18,
3804,
1435,
1172,
296,
24553,
1516,
30,
2187,
1726,
682,
365,
18,
3838,
4599,
8335,
28032,
18,
694,
4599,
12,
1726,
682,
16,
2972,
1895,
13,
761,
682,
33,
20390,
3976,
18,
967,
5285,
682,
2668,
1355,
17023,
15978,
6134,
761,
682,
18,
3804,
1435,
1172,
296,
1355,
1516,
30,
2187,
1726,
682,
309,
486,
761,
682,
30,
365,
18,
17006,
8335,
3802,
18,
1425,
12,
2019,
33,
24493,
13,
365,
18,
3662,
8335,
18,
542,
2668,
17,
1158,
1679,
15455,
300,
6134,
469,
30,
365,
18,
3838,
4599,
8335,
3802,
18,
694,
4599,
12,
1726,
682,
16,
1726,
682,
63,
20,
5717,
469,
30,
468,
1355,
5006,
3170,
761,
682,
33,
20390,
3976,
18,
967,
5285,
682,
2668,
1355,
17023,
15978,
6134,
761,
682,
18,
3804,
1435,
1172,
296,
1355,
1516,
30,
2187,
1726,
682,
365,
18,
3838,
4599,
8335,
3802,
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,
4444,
8335,
8198,
12,
2890,
4672,
7541,
2972,
5006,
618,
12094,
947,
2644,
365,
18,
7997,
2520,
28032,
18,
542,
12,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
8335,
17023,
1886,
2187,
618,
2218,
6430,
2187,
1886,
33,
21,
3719,
7541,
2972,
715,
444,
5006,
783,
1895,
33,
20390,
3976,
18,
3935,
8335,
1435,
1172,
296,
2972,
1456,
2187,
2972,
1895,
7541,
945,
2319,
5006,
1456,
21374,
309,
365,
18,
7997,
2520,
28032,
18,
588,
13332,
468,
1886,
5006,
3170,
1172,
296,
24553,
5006,
11,
761,
682,
33,
20390,
3976,
18,
967,
5285,
682,
2668,
1886,
17023,
15978,
6134,
761,
682,
18,
3804,
1435,
1172,
296,
24553,
1516,
30,
2187,
1726,
682,
365,
18,
3838,
4599,
8335,
2
] |
|
"""
|
"""Return a detailed description of the functions in a
|
def _func_details(self, functions, cls, heading='Function Details'): """## Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</TABLE>'
|
89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
6395,
12,
2890,
16,
4186,
16,
2028,
16,
11053,
2218,
2083,
21897,
11,
4672,
3536,
1189,
2000,
279,
6864,
2477,
434,
326,
4186,
316,
279,
667,
578,
1605,
12123,
990,
279,
6864,
2477,
434,
326,
4186,
316,
279,
4186,
273,
365,
6315,
3804,
12,
10722,
13,
309,
562,
12,
10722,
13,
422,
374,
30,
327,
875,
609,
273,
365,
6315,
2121,
67,
3374,
12,
19948,
16,
296,
6395,
6134,
6797,
1757,
7775,
1870,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
644,
67,
6395,
12,
2890,
16,
4186,
16,
2028,
16,
11053,
2218,
2083,
21897,
11,
4672,
3536,
1189,
2000,
279,
6864,
2477,
434,
326,
4186,
316,
279,
667,
578,
1605,
12123,
990,
279,
6864,
2477,
434,
326,
4186,
316,
279,
4186,
273,
365,
6315,
3804,
12,
10722,
13,
309,
562,
12,
10722,
13,
422,
374,
30,
327,
875,
609,
273,
365,
6315,
2121,
67,
3374,
12,
19948,
16,
296,
6395,
6134,
6797,
1757,
7775,
1870,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sec.setLNBTunerMask(tunermask)
|
def addLNBSimple(self, sec, slotid, diseqcmode, toneburstmode = 0, diseqcpos = 0, orbpos = 0, longitude = 0, latitude = 0, loDirection = 0, laDirection = 0): #simple defaults sec.addLNB() tunermask = 1 << slotid if self.equal.has_key(slotid): tunermask |= (1 << self.equal[slotid]) elif self.linked.has_key(slotid): tunermask |= (1 << self.linked[slotid]) sec.setLNBTunerMask(tunermask) sec.setLNBLOFL(9750000) sec.setLNBLOFH(10600000) sec.setLNBThreshold(11700000) sec.setLNBIncreasedVoltage(lnbParam.OFF) sec.setRepeats(0) sec.setFastDiSEqC(0) sec.setSeqRepeat(0) sec.setVoltageMode(switchParam.HV) sec.setToneMode(switchParam.HILO) sec.setCommandOrder(0)
|
29595f9e351b8d7b4f77b0a9885209d45929d2b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/29595f9e351b8d7b4f77b0a9885209d45929d2b1/NimManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
48,
20626,
5784,
12,
2890,
16,
1428,
16,
4694,
350,
16,
302,
784,
30675,
3188,
16,
30600,
70,
18593,
3188,
273,
374,
16,
302,
784,
30675,
917,
273,
374,
16,
16823,
917,
273,
374,
16,
9192,
273,
374,
16,
8904,
273,
374,
16,
437,
8212,
273,
374,
16,
7125,
8212,
273,
374,
4672,
468,
9647,
3467,
1428,
18,
1289,
48,
20626,
1435,
268,
318,
1035,
835,
273,
404,
2296,
4694,
350,
309,
365,
18,
9729,
18,
5332,
67,
856,
12,
14194,
350,
4672,
268,
318,
1035,
835,
5626,
261,
21,
2296,
365,
18,
9729,
63,
14194,
350,
5717,
1327,
365,
18,
17738,
18,
5332,
67,
856,
12,
14194,
350,
4672,
268,
318,
1035,
835,
5626,
261,
21,
2296,
365,
18,
17738,
63,
14194,
350,
5717,
1428,
18,
542,
48,
20626,
1502,
19054,
12,
29,
5877,
2787,
13,
1428,
18,
542,
48,
20626,
1502,
42,
44,
12,
22135,
11706,
13,
1428,
18,
542,
48,
20626,
7614,
12,
23454,
11706,
13,
1428,
18,
542,
48,
20626,
27597,
8905,
58,
14198,
12,
2370,
70,
786,
18,
8797,
13,
1428,
18,
542,
426,
347,
2323,
12,
20,
13,
1428,
18,
542,
12305,
14521,
1090,
85,
39,
12,
20,
13,
1428,
18,
542,
6926,
16750,
12,
20,
13,
1428,
18,
542,
58,
14198,
2309,
12,
9610,
786,
18,
44,
58,
13,
1428,
18,
542,
56,
476,
2309,
12,
9610,
786,
18,
29994,
1502,
13,
1428,
18,
542,
2189,
2448,
12,
20,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
48,
20626,
5784,
12,
2890,
16,
1428,
16,
4694,
350,
16,
302,
784,
30675,
3188,
16,
30600,
70,
18593,
3188,
273,
374,
16,
302,
784,
30675,
917,
273,
374,
16,
16823,
917,
273,
374,
16,
9192,
273,
374,
16,
8904,
273,
374,
16,
437,
8212,
273,
374,
16,
7125,
8212,
273,
374,
4672,
468,
9647,
3467,
1428,
18,
1289,
48,
20626,
1435,
268,
318,
1035,
835,
273,
404,
2296,
4694,
350,
309,
365,
18,
9729,
18,
5332,
67,
856,
12,
14194,
350,
4672,
268,
318,
1035,
835,
5626,
261,
21,
2296,
365,
18,
9729,
63,
14194,
350,
5717,
1327,
365,
18,
17738,
18,
5332,
67,
856,
12,
14194,
350,
4672,
268,
318,
1035,
835,
5626,
261,
21,
2
] |
|
cache_salt = searchpath self.searchpath = searchpath
|
cache_salt = self.searchpath
|
def __init__(self, searchpath, use_memcache=False, memcache_size=40, cache_folder=None, auto_reload=True, cache_salt=None): if cache_salt is None: cache_salt = searchpath self.searchpath = searchpath CachedLoaderMixin.__init__(self, use_memcache, memcache_size, cache_folder, auto_reload, cache_salt)
|
fbcd38c463caf7ad040c34ef0327037399cfe1a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14446/fbcd38c463caf7ad040c34ef0327037399cfe1a2/loaders.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1623,
803,
16,
999,
67,
3917,
2493,
33,
8381,
16,
20549,
67,
1467,
33,
7132,
16,
1247,
67,
5609,
33,
7036,
16,
3656,
67,
17517,
33,
5510,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1623,
803,
16,
999,
67,
3917,
2493,
33,
8381,
16,
20549,
67,
1467,
33,
7132,
16,
1247,
67,
5609,
33,
7036,
16,
3656,
67,
17517,
33,
5510,
16,
1247,
67,
5759,
33,
7036,
4672,
309,
1247,
67,
5759,
353,
599,
30,
1247,
67,
5759,
273,
365,
18,
3072,
803,
15771,
2886,
14439,
16186,
2738,
972,
12,
2890,
16,
999,
67,
3917,
2493,
16,
20549,
67,
1467,
16,
1247,
67,
5609,
16,
3656,
67,
17517,
16,
1247,
67,
5759,
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
] |
EXAMPLES:
|
EXAMPLES::
|
def victor_miller_basis(k, prec=10, cusp_only=False, var='q'): r""" Compute and return the Victor-Miller basis for modular forms of weight k and level 1 to precision $O(q^prec)$. if \code{cusp\_only} is True, return only a basis for the cuspidal subspace. INPUT: k -- an integer prec -- (default: 10) a positive integer cusp_only -- bool (default: False) var -- string (default: 'q' OUTPUT: A sequence whose entries are power series in ZZ[[var]]. EXAMPLES: sage: victor_miller_basis(1, 6) [] sage: victor_miller_basis(0, 6) [ 1 + O(q^6) ] sage: victor_miller_basis(2, 6) [] sage: victor_miller_basis(4, 6) [ 1 + 240*q + 2160*q^2 + 6720*q^3 + 17520*q^4 + 30240*q^5 + O(q^6) ] sage: victor_miller_basis(6, 6, var='w') [ 1 - 504*w - 16632*w^2 - 122976*w^3 - 532728*w^4 - 1575504*w^5 + O(w^6) ] sage: victor_miller_basis(6, 6) [ 1 - 504*q - 16632*q^2 - 122976*q^3 - 532728*q^4 - 1575504*q^5 + O(q^6) ] sage: victor_miller_basis(12, 6) [ 1 + 196560*q^2 + 16773120*q^3 + 398034000*q^4 + 4629381120*q^5 + O(q^6), q - 24*q^2 + 252*q^3 - 1472*q^4 + 4830*q^5 + O(q^6) ] sage: victor_miller_basis(12, 6, cusp_only=True) [ q - 24*q^2 + 252*q^3 - 1472*q^4 + 4830*q^5 + O(q^6) ] sage: victor_miller_basis(24, 6, cusp_only=True) [ q + 195660*q^3 + 12080128*q^4 + 44656110*q^5 + O(q^6), q^2 - 48*q^3 + 1080*q^4 - 15040*q^5 + O(q^6) ] sage: victor_miller_basis(24, 6) [ 1 + 52416000*q^3 + 39007332000*q^4 + 6609020221440*q^5 + O(q^6), q + 195660*q^3 + 12080128*q^4 + 44656110*q^5 + O(q^6), q^2 - 48*q^3 + 1080*q^4 - 15040*q^5 + O(q^6) ] sage: victor_miller_basis(32, 6) [ 1 + 2611200*q^3 + 19524758400*q^4 + 19715347537920*q^5 + O(q^6), q + 50220*q^3 + 87866368*q^4 + 18647219790*q^5 + O(q^6), q^2 + 432*q^3 + 39960*q^4 - 1418560*q^5 + O(q^6) ] sage: victor_miller_basis(40,200)[1:] == victor_miller_basis(40,200,cusp_only=True) True sage: victor_miller_basis(200,40)[1:] == victor_miller_basis(200,40,cusp_only=True) True """ k = Integer(k) if k%2 == 1 or k==2: return Sequence([]) elif k < 0: raise ValueError, "k must be non-negative" elif k == 0: return Sequence([PowerSeriesRing(ZZ,var)(1).add_bigoh(prec)], cr=True) e = k.mod(12) if e == 2: e += 12 n = (k-e) // 12 if n == 0 and cusp_only: return Sequence([]) # If prec is less than or equal to the dimension of the space of # cusp forms, which is just n, then we know the answer, and we # simply return it. if prec <= n: q = PowerSeriesRing(ZZ,var).gen(0) err = bigO(q**prec) ls = [0] * (n+1) if not cusp_only: ls[0] = 1 + err for i in range(1,prec): ls[i] = q**i + err for i in range(prec,n+1): ls[i] = err return Sequence(ls, cr=True) F6 = ((-504)*eisenstein_series_qexp(6,prec,var=var)).change_ring(ZZ) if e == 0: A = F6.parent()(1) elif e == 4: A = (240*eisenstein_series_qexp(4,prec,var=var)).change_ring(ZZ) elif e == 6: A = F6 elif e == 8: A = (480*eisenstein_series_qexp(8,prec,var=var)).change_ring(ZZ) elif e == 10: A = (-264*eisenstein_series_qexp(10,prec,var=var)).change_ring(ZZ) else: # e == 14 A = (-24*eisenstein_series_qexp(14,prec,var=var)).change_ring(ZZ) if n == 0: return Sequence([A], cr=True) F6_squared = F6**2 D = delta_qexp(prec,var=var) Fprod = F6_squared Dprod = D R = A.parent() if cusp_only: ls = [R(0)] + [A] * n start = 1 else: ls = [A] * (n+1) start = 0 for i in range(1,n+1): ls[n-i] *= Fprod ls[i] *= Dprod Fprod *= F6_squared Dprod *= D Dprod = Dprod.add_bigoh(prec) if cusp_only: M = Matrix(ZZ, n, prec, [x.list() for x in ls[1:]]) for i in range(n): for j in range(i): M.add_multiple_of_row(j,i,-M[j][i+1]) else: M = Matrix(ZZ, n+1, prec, [x.list() for x in ls]) for i in range(1,n+1): for j in range(i): M.add_multiple_of_row(j,i,-M[j][i]) return Sequence([ R(x.list()).add_bigoh(prec) for x in M.rows() ], cr=True)
|
ee4ef2ed2571d7a5d47eb83402ce0da607fbc323 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ee4ef2ed2571d7a5d47eb83402ce0da607fbc323/vm_basis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28873,
280,
67,
81,
24462,
67,
23774,
12,
79,
16,
13382,
33,
2163,
16,
27964,
84,
67,
3700,
33,
8381,
16,
569,
2218,
85,
11,
4672,
436,
8395,
8155,
471,
327,
326,
776,
933,
280,
17,
49,
24462,
10853,
364,
681,
2490,
10138,
434,
3119,
417,
471,
1801,
404,
358,
6039,
271,
51,
12,
85,
66,
4036,
21877,
18,
225,
309,
521,
710,
95,
71,
407,
84,
64,
67,
3700,
97,
353,
1053,
16,
327,
1338,
279,
10853,
364,
326,
27964,
6610,
287,
720,
2981,
18,
225,
12943,
30,
417,
1493,
392,
3571,
13382,
1493,
261,
1886,
30,
1728,
13,
279,
6895,
3571,
27964,
84,
67,
3700,
1493,
1426,
261,
1886,
30,
1083,
13,
569,
1493,
533,
261,
1886,
30,
296,
85,
11,
225,
11550,
30,
432,
3102,
8272,
3222,
854,
7212,
4166,
316,
2285,
62,
31128,
1401,
65,
8009,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
28873,
280,
67,
81,
24462,
67,
23774,
12,
21,
16,
1666,
13,
5378,
272,
410,
30,
28873,
280,
67,
81,
24462,
67,
23774,
12,
20,
16,
1666,
13,
306,
404,
397,
531,
12,
85,
66,
26,
13,
308,
272,
410,
30,
28873,
280,
67,
81,
24462,
67,
23774,
12,
22,
16,
1666,
13,
5378,
272,
410,
30,
28873,
280,
67,
81,
24462,
67,
23774,
12,
24,
16,
1666,
13,
306,
404,
397,
27610,
14,
85,
397,
576,
16874,
14,
85,
66,
22,
397,
21017,
3462,
14,
85,
66,
23,
397,
404,
5877,
3462,
14,
85,
66,
24,
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,
28873,
280,
67,
81,
24462,
67,
23774,
12,
79,
16,
13382,
33,
2163,
16,
27964,
84,
67,
3700,
33,
8381,
16,
569,
2218,
85,
11,
4672,
436,
8395,
8155,
471,
327,
326,
776,
933,
280,
17,
49,
24462,
10853,
364,
681,
2490,
10138,
434,
3119,
417,
471,
1801,
404,
358,
6039,
271,
51,
12,
85,
66,
4036,
21877,
18,
225,
309,
521,
710,
95,
71,
407,
84,
64,
67,
3700,
97,
353,
1053,
16,
327,
1338,
279,
10853,
364,
326,
27964,
6610,
287,
720,
2981,
18,
225,
12943,
30,
417,
1493,
392,
3571,
13382,
1493,
261,
1886,
30,
1728,
13,
279,
6895,
3571,
27964,
84,
67,
3700,
1493,
1426,
261,
1886,
30,
1083,
13,
569,
1493,
533,
261,
2
] |
def showState(self,stateID):
|
def showState(self, stateID):
|
def showState(self,stateID): """Show the state matching stateID""" state = self.cn.getState(stateID) state.showNodes()
|
8e1235056f34134b4407cd34d81f66b1b71e2c24 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13131/8e1235056f34134b4407cd34d81f66b1b71e2c24/Ector.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
1119,
12,
2890,
16,
919,
734,
4672,
3536,
5706,
326,
919,
3607,
919,
734,
8395,
919,
3639,
273,
365,
18,
10305,
18,
588,
1119,
12,
2019,
734,
13,
919,
18,
4500,
3205,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
1119,
12,
2890,
16,
919,
734,
4672,
3536,
5706,
326,
919,
3607,
919,
734,
8395,
919,
3639,
273,
365,
18,
10305,
18,
588,
1119,
12,
2019,
734,
13,
919,
18,
4500,
3205,
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
] |
print >> sys.stdout, "Should output the version."
|
try: from invenio.config import CFG_VERSION print >> sys.stdout, ("CDS Invenio/%s bibclassify/%s" % (CFG_VERSION, CFG_VERSION)) except ImportError: print >> sys.stdout, "CDS Invenio bibclassify/standalone"
|
def read_options(options_string): """Reads the options, test if the specified values are consistent and populates the options dictionary.""" global _OPTIONS _OPTIONS = {} _OPTIONS["spires"] = False _OPTIONS["output_limit"] = 20 _OPTIONS["text_files"] = [] _OPTIONS["ontology_file"] = "" _OPTIONS["output_mode"] = "text" _OPTIONS["verbose"] = 0 _OPTIONS["match_mode"] = "full" _OPTIONS["output_prefix"] = None _OPTIONS["rebuild_cache"] = False _OPTIONS["no_cache"] = False _OPTIONS["check_ontology"] = False _OPTIONS["with_explicit"] = False output_modes = ("html", "text", "marcxml") modes = ("full", "partial") try: long_flags = ["ontology=", "output-mode=", "verbose=", "spires", "keywords-number=", "matching-mode=", "help", "version", "file", "rebuild-cache", "no-limit", "no-cache", "check-ontology", "with-explicit"] short_flags = "f:k:o:n:m:v:sqhV" opts, args = getopt.gnu_getopt(options_string, short_flags, long_flags) except getopt.GetoptError, err1: print >> sys.stderr, "Options problem: %s" % err1 usage() for opt, arg in opts: if opt in ("-h", "--help"): display_help() elif opt in ("-V", "--version"): # TODO Fix version print >> sys.stdout, "Should output the version." sys.exit(1) elif opt in ("-v", "--verbose"): _OPTIONS["verbose"] = arg elif opt in ("-k", "--ontology"): _OPTIONS["ontology_file"] = arg elif opt in ("-o", "--output-mode"): _OPTIONS["output_mode"] = arg.lower() elif opt in ("-m", "--matching-mode"): _OPTIONS["match_mode"] = arg.lower() # -q for backward compatibility elif opt in ("-s", "--spires", "-q"): _OPTIONS["spires"] = True elif opt in ("-n", "--nkeywords"): _OPTIONS["output_limit"] = arg elif opt == "--rebuild-cache": _OPTIONS["rebuild_cache"] = True elif opt == "--no-cache": _OPTIONS["no_cache"] = True elif opt == "--write-to-file": _OPTIONS["output_prefix"] = arg # -f for compatibility reasons elif opt in ("-f", "--file"): _OPTIONS["text_files"].append(arg) elif opt == "--check-ontology": _OPTIONS["check_ontology"] = True elif opt == "--with-explicit": _OPTIONS["with_explicit"] = True if not opts and not args: display_help() _OPTIONS["text_files"] += args # Test if the options are consistent. if not args: if not _OPTIONS["check_ontology"] and not _OPTIONS["text_files"]: print >> sys.stderr, "ERROR: please specify a file or directory." usage() if not _OPTIONS["ontology_file"]: print >> sys.stderr, "ERROR: please specify an ontology file (-k)." usage() if _OPTIONS["output_mode"] not in output_modes: print >> sys.stderr, ("ERROR: output (-o) should be TEXT, MARCXML or " "HTML.") usage() if _OPTIONS["match_mode"] not in modes: print >> sys.stderr, "ERROR: mode (-m) should be FULL or PARTIAL." usage() try: _OPTIONS["output_limit"] = int(_OPTIONS["output_limit"]) if _OPTIONS["output_limit"] < 0: print >> sys.stderr, ("ERROR: output limit must be a positive " "integer.") except ValueError: print >> sys.stderr, ("ERROR: output limit must be a positive " "integer.") usage()
|
b7a42590308deb38aca52c76bec6ae7be3ae88f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2594/b7a42590308deb38aca52c76bec6ae7be3ae88f5/bibclassify_cli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2116,
12,
2116,
67,
1080,
4672,
3536,
7483,
326,
702,
16,
1842,
309,
326,
1269,
924,
854,
11071,
471,
22065,
326,
702,
3880,
12123,
2552,
389,
12422,
389,
12422,
273,
2618,
389,
12422,
9614,
1752,
2814,
11929,
273,
1083,
389,
12422,
9614,
2844,
67,
3595,
11929,
273,
4200,
389,
12422,
9614,
955,
67,
2354,
11929,
273,
5378,
389,
12422,
9614,
1580,
4676,
67,
768,
11929,
273,
1408,
389,
12422,
9614,
2844,
67,
3188,
11929,
273,
315,
955,
6,
389,
12422,
9614,
11369,
11929,
273,
374,
389,
12422,
9614,
1916,
67,
3188,
11929,
273,
315,
2854,
6,
389,
12422,
9614,
2844,
67,
3239,
11929,
273,
599,
389,
12422,
9614,
266,
3510,
67,
2493,
11929,
273,
1083,
389,
12422,
9614,
2135,
67,
2493,
11929,
273,
1083,
389,
12422,
9614,
1893,
67,
1580,
4676,
11929,
273,
1083,
389,
12422,
9614,
1918,
67,
16511,
11929,
273,
1083,
225,
876,
67,
19282,
273,
7566,
2620,
3113,
315,
955,
3113,
315,
3684,
71,
2902,
7923,
12382,
273,
7566,
2854,
3113,
315,
11601,
7923,
225,
775,
30,
1525,
67,
7133,
273,
8247,
1580,
4676,
1546,
16,
315,
2844,
17,
3188,
1546,
16,
315,
11369,
1546,
16,
315,
1752,
2814,
3113,
315,
11771,
17,
2696,
1546,
16,
315,
16271,
17,
3188,
1546,
16,
315,
5201,
3113,
315,
1589,
3113,
315,
768,
3113,
315,
266,
3510,
17,
2493,
3113,
315,
2135,
17,
3595,
3113,
315,
2135,
17,
2493,
3113,
315,
1893,
17,
1580,
4676,
3113,
315,
1918,
17,
16511,
11929,
3025,
67,
7133,
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,
855,
67,
2116,
12,
2116,
67,
1080,
4672,
3536,
7483,
326,
702,
16,
1842,
309,
326,
1269,
924,
854,
11071,
471,
22065,
326,
702,
3880,
12123,
2552,
389,
12422,
389,
12422,
273,
2618,
389,
12422,
9614,
1752,
2814,
11929,
273,
1083,
389,
12422,
9614,
2844,
67,
3595,
11929,
273,
4200,
389,
12422,
9614,
955,
67,
2354,
11929,
273,
5378,
389,
12422,
9614,
1580,
4676,
67,
768,
11929,
273,
1408,
389,
12422,
9614,
2844,
67,
3188,
11929,
273,
315,
955,
6,
389,
12422,
9614,
11369,
11929,
273,
374,
389,
12422,
9614,
1916,
67,
3188,
11929,
273,
315,
2854,
6,
389,
12422,
9614,
2844,
67,
3239,
11929,
273,
599,
389,
12422,
9614,
266,
3510,
67,
2493,
11929,
273,
1083,
389,
2
] |
"Please confirm you want to abort.\n", "Confirm", "Cancel", "", 1, 1)
|
"Please confirm you want to abort.\n", "Confirm", "Cancel", "", 1, 1)
|
def simAbort(self): '''Original slot for Abort button. ''' if platform.atom_debug and self.sim_abort_button_pressed: #bruce 060106 print "atom_debug: self.sim_abort_button_pressed is already True before we even put up our dialog" # Added confirmation before aborting as part of fix to bug 915. Mark 050824. # Bug 915 had to do with a problem if the user accidently hit the space bar or espace key, # which would call this slot and abort the simulation. This should no longer be an issue here # since we aren't using a dialog. I still like having this confirmation anyway. # IMHO, it should be kept. Mark 060106. ret = QMessageBox.warning( self, "Confirm", "Please confirm you want to abort.\n", "Confirm", "Cancel", "", 1, # The "default" button, when user presses Enter or Return (1 = Cancel) 1) # Escape (1= Cancel) if ret==0: # Confirmed self.sim_abort_button_pressed = True
|
c25263540add024396d4bcf7631292f1fd2d50bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/c25263540add024396d4bcf7631292f1fd2d50bb/MWsemantics.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3142,
13572,
12,
2890,
4672,
9163,
8176,
4694,
364,
14263,
3568,
18,
9163,
309,
4072,
18,
7466,
67,
4148,
471,
365,
18,
9812,
67,
18623,
67,
5391,
67,
10906,
30,
468,
2848,
3965,
13026,
1611,
7677,
1172,
315,
7466,
67,
4148,
30,
365,
18,
9812,
67,
18623,
67,
5391,
67,
10906,
353,
1818,
1053,
1865,
732,
5456,
1378,
731,
3134,
6176,
6,
225,
468,
25808,
14296,
1865,
6263,
310,
487,
1087,
434,
2917,
358,
7934,
2468,
3600,
18,
6622,
374,
3361,
28,
3247,
18,
468,
16907,
2468,
3600,
9323,
358,
741,
598,
279,
6199,
309,
326,
729,
25961,
715,
6800,
326,
3476,
4653,
578,
5001,
909,
498,
16,
468,
1492,
4102,
745,
333,
4694,
471,
6263,
326,
14754,
18,
225,
1220,
1410,
1158,
7144,
506,
392,
5672,
2674,
468,
3241,
732,
11526,
1404,
1450,
279,
6176,
18,
225,
467,
4859,
3007,
7999,
333,
14296,
13466,
18,
468,
6246,
7995,
16,
518,
1410,
506,
16555,
18,
6622,
13026,
1611,
7677,
18,
325,
273,
30728,
18,
8551,
12,
365,
16,
315,
11269,
3113,
315,
8496,
6932,
1846,
2545,
358,
6263,
8403,
82,
3113,
315,
11269,
3113,
315,
6691,
3113,
23453,
404,
16,
225,
468,
1021,
315,
1886,
6,
3568,
16,
1347,
729,
11779,
281,
15439,
578,
2000,
261,
21,
273,
10347,
13,
404,
13,
225,
468,
18025,
261,
21,
33,
10347,
13,
225,
309,
325,
631,
20,
30,
468,
9675,
11222,
365,
18,
9812,
67,
18623,
67,
5391,
67,
10906,
273,
1053,
225,
2,
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,
1,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3142,
13572,
12,
2890,
4672,
9163,
8176,
4694,
364,
14263,
3568,
18,
9163,
309,
4072,
18,
7466,
67,
4148,
471,
365,
18,
9812,
67,
18623,
67,
5391,
67,
10906,
30,
468,
2848,
3965,
13026,
1611,
7677,
1172,
315,
7466,
67,
4148,
30,
365,
18,
9812,
67,
18623,
67,
5391,
67,
10906,
353,
1818,
1053,
1865,
732,
5456,
1378,
731,
3134,
6176,
6,
225,
468,
25808,
14296,
1865,
6263,
310,
487,
1087,
434,
2917,
358,
7934,
2468,
3600,
18,
6622,
374,
3361,
28,
3247,
18,
468,
16907,
2468,
3600,
9323,
358,
741,
598,
279,
6199,
309,
326,
729,
25961,
715,
6800,
326,
3476,
4653,
578,
5001,
909,
498,
16,
468,
1492,
4102,
745,
333,
4694,
471,
6263,
326,
14754,
2
] |
return totalSize;
|
return totalSize
|
def GetSourceSize(path): if os.path.isfile( path ): return os.path.getsize( path ); totalSize = 0; for ( dirPath, dirNames, fileNames ) in os.walk( path ): for file in fileNames: filePath = os.path.join( dirPath, file ); totalSize += os.path.getsize( filePath );
|
ca0495ab78c84deca1a018d0b12fe9182749f03c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4785/ca0495ab78c84deca1a018d0b12fe9182749f03c/MakeTorrent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1830,
1225,
12,
803,
4672,
309,
1140,
18,
803,
18,
291,
768,
12,
589,
262,
30,
327,
1140,
18,
803,
18,
588,
1467,
12,
589,
11272,
225,
24611,
273,
374,
31,
364,
261,
15891,
16,
1577,
1557,
16,
27375,
262,
316,
1140,
18,
11348,
12,
589,
262,
30,
364,
585,
316,
27375,
30,
4612,
273,
1140,
18,
803,
18,
5701,
12,
15891,
16,
585,
11272,
24611,
1011,
1140,
18,
803,
18,
588,
1467,
12,
4612,
11272,
2,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1830,
1225,
12,
803,
4672,
309,
1140,
18,
803,
18,
291,
768,
12,
589,
262,
30,
327,
1140,
18,
803,
18,
588,
1467,
12,
589,
11272,
225,
24611,
273,
374,
31,
364,
261,
15891,
16,
1577,
1557,
16,
27375,
262,
316,
1140,
18,
11348,
12,
589,
262,
30,
364,
585,
316,
27375,
30,
4612,
273,
1140,
18,
803,
18,
5701,
12,
15891,
16,
585,
11272,
24611,
1011,
1140,
18,
803,
18,
588,
1467,
12,
4612,
11272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
reactor.spawnProcess(p, '/bin/false', ['false'])
|
reactor.spawnProcess(p, cmd, ['false'])
|
def testAbnormalTermination(self): p = TrivialProcessProtocol() reactor.spawnProcess(p, '/bin/false', ['false']) while not p.finished: reactor.iterate(0.01) p.reason.trap(error.ProcessTerminated) self.assertEquals(p.reason.value.exitCode, 1)
|
9e5c20b4869ecbb1215928c6b9210a85cca1e974 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9e5c20b4869ecbb1215928c6b9210a85cca1e974/test_process.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5895,
6130,
16516,
12,
2890,
4672,
293,
273,
840,
20109,
2227,
5752,
1435,
19178,
18,
1752,
9533,
2227,
12,
84,
16,
1797,
16,
10228,
5743,
19486,
225,
1323,
486,
293,
18,
13527,
30,
19178,
18,
18793,
12,
20,
18,
1611,
13,
293,
18,
10579,
18,
27170,
12,
1636,
18,
2227,
21888,
13,
365,
18,
11231,
8867,
12,
84,
18,
10579,
18,
1132,
18,
8593,
1085,
16,
404,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5895,
6130,
16516,
12,
2890,
4672,
293,
273,
840,
20109,
2227,
5752,
1435,
19178,
18,
1752,
9533,
2227,
12,
84,
16,
1797,
16,
10228,
5743,
19486,
225,
1323,
486,
293,
18,
13527,
30,
19178,
18,
18793,
12,
20,
18,
1611,
13,
293,
18,
10579,
18,
27170,
12,
1636,
18,
2227,
21888,
13,
365,
18,
11231,
8867,
12,
84,
18,
10579,
18,
1132,
18,
8593,
1085,
16,
404,
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
] |
_fl_popup_get_title_font = cfuncproto(so_libforms, "fl_popup_get_title_font",
|
_fl_popup_get_title_font = cfuncproto(so_libforms, "fl_popup_get_title_font",
|
def fl_popup_set_callback(p1, py_cb): """ fl_popup_set_callback(p1, py_cb) -> popup callback """ c_cb = FL_POPUP_CB(py_cb) _cfunc_refs[get_rand_dictkey()] = c_cb retval = _fl_popup_set_callback(p1, c_cb) return retval
|
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,
16086,
67,
542,
67,
3394,
12,
84,
21,
16,
2395,
67,
7358,
4672,
3536,
1183,
67,
16086,
67,
542,
67,
3394,
12,
84,
21,
16,
2395,
67,
7358,
13,
317,
10431,
1348,
3536,
225,
276,
67,
7358,
273,
31358,
67,
30374,
3079,
67,
8876,
12,
2074,
67,
7358,
13,
389,
71,
644,
67,
9316,
63,
588,
67,
7884,
67,
1576,
856,
1435,
65,
273,
276,
67,
7358,
5221,
273,
389,
2242,
67,
16086,
67,
542,
67,
3394,
12,
84,
21,
16,
276,
67,
7358,
13,
327,
5221,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
16086,
67,
542,
67,
3394,
12,
84,
21,
16,
2395,
67,
7358,
4672,
3536,
1183,
67,
16086,
67,
542,
67,
3394,
12,
84,
21,
16,
2395,
67,
7358,
13,
317,
10431,
1348,
3536,
225,
276,
67,
7358,
273,
31358,
67,
30374,
3079,
67,
8876,
12,
2074,
67,
7358,
13,
389,
71,
644,
67,
9316,
63,
588,
67,
7884,
67,
1576,
856,
1435,
65,
273,
276,
67,
7358,
5221,
273,
389,
2242,
67,
16086,
67,
542,
67,
3394,
12,
84,
21,
16,
276,
67,
7358,
13,
327,
5221,
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
] |
ipath = [PREFIX+"/tmp"] + ipath + [PREFIX+"/include"]
|
def Interrogate(ipath=0, opts=0, outd=0, outc=0, src=0, module=0, library=0, files=0): if ((ipath==0)|(opts==0)|(outd==0)|(outc==0)|(src==0)|(module==0)|(library==0)|(files==0)): sys.exit("syntax error in Interrogate directive") ALLIN.append(outd) ipath = [PREFIX+"/tmp"] + ipath + [PREFIX+"/include"] outd = PREFIX+"/pandac/input/"+outd outc = PREFIX+"/tmp/"+outc paths = xpaths(src+"/",files,"") dep = CxxCalcDependenciesAll(paths, ipath) dotdots = "" for i in range(0,src.count("/")+1): dotdots = dotdots + "../" building = 0 for x in opts: if (x[:9]=="BUILDING_"): building = x[9:] if (older(outc, dep) or older(outd, dep)): if (COMPILER=="MSVC7"): cmd = dotdots + PREFIX + "/bin/interrogate.exe" cmd = cmd + ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -longlong __int64 -D_X86_ -DWIN32_VC -D_WIN32' cmd = cmd + ' -D"_declspec(param)=" -D_near -D_far -D__near -D__far -D__stdcall' if (OPTIMIZE==1): cmd = cmd + ' ' if (OPTIMIZE==2): cmd = cmd + ' ' if (OPTIMIZE==3): cmd = cmd + ' -DFORCE_INLINING' if (OPTIMIZE==4): cmd = cmd + ' -DFORCE_INLINING' cmd = cmd + ' -S' + dotdots + PREFIX + '/include/parser-inc' cmd = cmd + ' -I' + dotdots + PREFIX + '/python/include' for pkg in PACKAGES: if (PkgSelected(opts,pkg)): cmd = cmd + ' -I' + dotdots + THIRDPARTY + "/win-libs-vc7/" + pkg.lower() + "/include" if (COMPILER=="LINUXA"): cmd = dotdots + PREFIX + '/bin/interrogate' cmd = cmd + ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__i386__ -D__const=const' if (OPTIMIZE==1): cmd = cmd + ' ' if (OPTIMIZE==2): cmd = cmd + ' ' if (OPTIMIZE==3): cmd = cmd + ' ' if (OPTIMIZE==4): cmd = cmd + ' ' cmd = cmd + ' -S' + dotdots + PREFIX + '/include/parser-inc -S/usr/include' cmd = cmd + ' -I' + dotdots + PREFIX + '/python/include' for pkg in PACKAGES: if (PkgSelected(opts,pkg)): cmd = cmd + ' -I' + dotdots + THIRDPARTY + "/linux-libs-a/" + pkg.lower() + "/include" cmd = cmd + ' -oc ' + dotdots + outc + ' -od ' + dotdots + outd cmd = cmd + ' -fnames -string -refcount -assert -python' for x in ipath: cmd = cmd + ' -I' + dotdots + x if (building): cmd = cmd + " -DBUILDING_"+building if (opts.count("WITHINPANDA")): cmd = cmd + " -DWITHIN_PANDA" cmd = cmd + ' -module ' + module + ' -library ' + library if ((COMPILER=="MSVC7") and opts.count("DXSDK")): cmd = cmd + ' -I"' + DIRECTXSDK + '/include"' for ver in ["MAYA5","MAYA6","MAYA65"]: if ((COMPILER=="MSVC7") and opts.count(ver)): cmd = cmd + ' -I"' + MAYASDK[ver] + '/include"' for x in files: cmd = cmd + ' ' + x oslocalcmd(src, cmd) updatefiledate(outd) updatefiledate(outc)
|
8fd5a5147d54776cde7f8879cd333f478ebf3714 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/8fd5a5147d54776cde7f8879cd333f478ebf3714/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5294,
15283,
12,
625,
421,
33,
20,
16,
1500,
33,
20,
16,
596,
72,
33,
20,
16,
596,
71,
33,
20,
16,
1705,
33,
20,
16,
1605,
33,
20,
16,
5313,
33,
20,
16,
1390,
33,
20,
4672,
309,
14015,
625,
421,
631,
20,
14047,
12,
4952,
631,
20,
14047,
12,
659,
72,
631,
20,
14047,
12,
659,
71,
631,
20,
14047,
12,
4816,
631,
20,
14047,
12,
2978,
631,
20,
14047,
12,
12083,
631,
20,
14047,
12,
2354,
631,
20,
3719,
30,
2589,
18,
8593,
2932,
14308,
555,
316,
5294,
15283,
8655,
7923,
8061,
706,
18,
6923,
12,
659,
72,
13,
596,
72,
273,
17154,
9078,
19,
84,
464,
1077,
19,
2630,
4898,
15,
659,
72,
596,
71,
273,
17154,
9078,
19,
5645,
4898,
15,
659,
71,
2953,
273,
619,
4481,
12,
4816,
9078,
19,
3113,
2354,
16,
3660,
13,
5993,
273,
385,
5279,
25779,
8053,
1595,
12,
4481,
16,
277,
803,
13,
3928,
72,
6968,
273,
1408,
364,
277,
316,
1048,
12,
20,
16,
4816,
18,
1883,
2932,
4898,
27921,
21,
4672,
3928,
72,
6968,
273,
3928,
72,
6968,
397,
315,
838,
4898,
10504,
273,
374,
364,
619,
316,
1500,
30,
309,
261,
92,
10531,
29,
65,
31713,
20215,
1360,
9548,
4672,
10504,
273,
619,
63,
29,
26894,
309,
261,
1498,
12,
659,
71,
16,
5993,
13,
578,
12156,
12,
659,
72,
16,
5993,
3719,
30,
309,
261,
31075,
14668,
31713,
3537,
13464,
27,
6,
4672,
1797,
273,
3928,
72,
6968,
397,
17154,
397,
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,
5294,
15283,
12,
625,
421,
33,
20,
16,
1500,
33,
20,
16,
596,
72,
33,
20,
16,
596,
71,
33,
20,
16,
1705,
33,
20,
16,
1605,
33,
20,
16,
5313,
33,
20,
16,
1390,
33,
20,
4672,
309,
14015,
625,
421,
631,
20,
14047,
12,
4952,
631,
20,
14047,
12,
659,
72,
631,
20,
14047,
12,
659,
71,
631,
20,
14047,
12,
4816,
631,
20,
14047,
12,
2978,
631,
20,
14047,
12,
12083,
631,
20,
14047,
12,
2354,
631,
20,
3719,
30,
2589,
18,
8593,
2932,
14308,
555,
316,
5294,
15283,
8655,
7923,
8061,
706,
18,
6923,
12,
659,
72,
13,
596,
72,
273,
17154,
9078,
19,
84,
464,
1077,
19,
2630,
4898,
15,
659,
72,
596,
2
] |
|
PriorityEvaluation.eval(self, vtx_id, context)
|
PriorityEvaluation.eval(self, vtx_id, context, self.lambda_value)
|
def eval (self, vtx_id=None, context=None) : """ Eval the dataflow from vtx_id with a particular context @param vtx_id : vertex id to start the evaluation @param context : list a value to assign to lambda variables """ self.lambda_value.clear() if(context) : context.reverse() PriorityEvaluation.eval(self, vtx_id, context) self.lambda_value.clear() # do not keep context in memory
|
49c93827c3ec75c45b8f515faf86a10d4274cac3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/49c93827c3ec75c45b8f515faf86a10d4274cac3/dataflow_evaluation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
261,
2890,
16,
331,
978,
67,
350,
33,
7036,
16,
819,
33,
7036,
13,
294,
3536,
13163,
326,
501,
2426,
628,
331,
978,
67,
350,
598,
279,
6826,
819,
632,
891,
331,
978,
67,
350,
294,
5253,
612,
358,
787,
326,
9873,
632,
891,
819,
294,
666,
279,
460,
358,
2683,
358,
3195,
3152,
3536,
225,
365,
18,
14661,
67,
1132,
18,
8507,
1435,
309,
12,
2472,
13,
294,
819,
18,
9845,
1435,
13354,
13468,
18,
8622,
12,
2890,
16,
331,
978,
67,
350,
16,
819,
16,
365,
18,
14661,
67,
1132,
13,
365,
18,
14661,
67,
1132,
18,
8507,
1435,
468,
741,
486,
3455,
819,
316,
3778,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
261,
2890,
16,
331,
978,
67,
350,
33,
7036,
16,
819,
33,
7036,
13,
294,
3536,
13163,
326,
501,
2426,
628,
331,
978,
67,
350,
598,
279,
6826,
819,
632,
891,
331,
978,
67,
350,
294,
5253,
612,
358,
787,
326,
9873,
632,
891,
819,
294,
666,
279,
460,
358,
2683,
358,
3195,
3152,
3536,
225,
365,
18,
14661,
67,
1132,
18,
8507,
1435,
309,
12,
2472,
13,
294,
819,
18,
9845,
1435,
13354,
13468,
18,
8622,
12,
2890,
16,
331,
978,
67,
350,
16,
819,
16,
365,
18,
14661,
67,
1132,
13,
365,
18,
14661,
67,
1132,
18,
8507,
1435,
468,
741,
486,
3455,
819,
316,
3778,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.CheckMenuBlock("EditTransparency", "status", dict[field])
|
self.CheckMenuBlock("EditTransparency", "status", value)
|
def Check_DetailView(self, dict): """ Check expected values by comparation to the data diplayed in the detail view @type dict : dictionary @param dict : dictionary with expected item attributes values for checking {"attributeName":"expected value",...} """ if self.logger: self.logger.SetChecked(True) self.SelectItem() # call the check methods for field in dict.keys(): if field == "displayName": # display name checking self.CheckEditableBlock("HeadlineBlock", "display name", dict[field]) elif field == "startDate": # start date checking self.CheckEditableBlock("EditCalendarStartDate", "start date", self.formatDate(dict[field])) elif field == "startTime": # start time checking self.CheckEditableBlock("EditCalendarStartTime", "start time", dict[field]) elif field == "endDate": # end date checking self.CheckEditableBlock("EditCalendarEndDate", "end date", self.formatDate(dict[field])) elif field == "endTime": # end time checking self.CheckEditableBlock("EditCalendarEndTime", "end time", dict[field]) elif field == "location": # location checking self.CheckEditableBlock("CalendarLocation", "location", dict[field]) elif field == "body": # body checking self.CheckEditableBlock("NotesBlock", "body", dict[field]) elif field == "fromAddress": # from address checking self.CheckEditableBlock("EditMailFrom", "from address", dict[field]) elif field == "toAddress": # to address checking self.CheckEditableBlock("EditMailTo", "to address", dict[field]) elif field == "ccAddress": # cc address checking self.CheckEditableBlock("EditMailCc", "cc address", dict[field]) elif field == "bccAddress": # bcc address checking self.CheckEditableBlock("EditMailBcc", "bcc address", dict[field]) elif field == "status": # status checking self.CheckMenuBlock("EditTransparency", "status", dict[field]) elif field == "timeZone": # time zone checking self.CheckMenuBlock("EditTimeZone", "time-zone", dict[field]) elif field == "recurrence": # recurrence checking self.CheckMenuBlock("EditRecurrence", "recurrence", dict[field]) elif field == "recurrenceEnd": # recurrence end date checking self.CheckEditableBlock("EditRecurrenceEnd", "recurrence end", self.formatDate(dict[field])) elif field == "alarm": # status checking self.CheckMenuBlock("EditReminder", "alarm", dict[field]) elif field == "allDay": # status checking self.CheckEditableBlock("EditAllDay", "all-day", dict[field]) elif field == "stampMail": # Mail stamp checking self.CheckButton("MailMessageButton", "mail stamp", dict[field]) elif field == "stampTask": # Task stamp checking self.CheckButton("TaskStamp", "task stamp", dict[field]) elif field == "stampEvent": # Event stamp checking self.CheckButton("CalendarStamp", "calendar stamp", dict[field]) else: # Wrong check => set the report state to unchecked if self.logger: self.logger.SetChecked(False) #report the checkings if self.logger: self.logger.Report("Detail View")
|
5c6ba404b99947f3210082287c79a9b81a402c26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5c6ba404b99947f3210082287c79a9b81a402c26/QAUITestAppLib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
67,
6109,
1767,
12,
2890,
16,
2065,
4672,
3536,
2073,
2665,
924,
635,
532,
20961,
358,
326,
501,
4314,
1601,
329,
316,
326,
7664,
1476,
632,
723,
2065,
294,
3880,
632,
891,
2065,
294,
3880,
598,
2665,
761,
1677,
924,
364,
6728,
12528,
4589,
461,
15563,
3825,
460,
3113,
2777,
97,
3536,
309,
365,
18,
4901,
30,
365,
18,
4901,
18,
694,
11454,
12,
5510,
13,
365,
18,
3391,
1180,
1435,
468,
745,
326,
866,
2590,
364,
652,
316,
2065,
18,
2452,
13332,
309,
652,
422,
315,
5417,
461,
6877,
468,
2562,
508,
6728,
365,
18,
1564,
15470,
1768,
2932,
1414,
1369,
1768,
3113,
315,
5417,
508,
3113,
2065,
63,
1518,
5717,
1327,
652,
422,
315,
1937,
1626,
6877,
468,
787,
1509,
6728,
365,
18,
1564,
15470,
1768,
2932,
4666,
7335,
22635,
3113,
315,
1937,
1509,
3113,
365,
18,
2139,
1626,
12,
1576,
63,
1518,
22643,
1327,
652,
422,
315,
1937,
950,
6877,
468,
787,
813,
6728,
365,
18,
1564,
15470,
1768,
2932,
4666,
7335,
13649,
3113,
315,
1937,
813,
3113,
2065,
63,
1518,
5717,
1327,
652,
422,
315,
409,
1626,
6877,
468,
679,
1509,
6728,
365,
18,
1564,
15470,
1768,
2932,
4666,
7335,
24640,
3113,
315,
409,
1509,
3113,
365,
18,
2139,
1626,
12,
1576,
63,
1518,
22643,
1327,
652,
422,
315,
409,
950,
6877,
468,
679,
813,
6728,
365,
18,
1564,
15470,
1768,
2932,
4666,
7335,
25255,
3113,
315,
409,
813,
3113,
2065,
63,
1518,
5717,
1327,
652,
422,
315,
3562,
6877,
468,
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,
2073,
67,
6109,
1767,
12,
2890,
16,
2065,
4672,
3536,
2073,
2665,
924,
635,
532,
20961,
358,
326,
501,
4314,
1601,
329,
316,
326,
7664,
1476,
632,
723,
2065,
294,
3880,
632,
891,
2065,
294,
3880,
598,
2665,
761,
1677,
924,
364,
6728,
12528,
4589,
461,
15563,
3825,
460,
3113,
2777,
97,
3536,
309,
365,
18,
4901,
30,
365,
18,
4901,
18,
694,
11454,
12,
5510,
13,
365,
18,
3391,
1180,
1435,
468,
745,
326,
866,
2590,
364,
652,
316,
2065,
18,
2452,
13332,
309,
652,
422,
315,
5417,
461,
6877,
468,
2562,
508,
6728,
365,
18,
1564,
15470,
1768,
2932,
1414,
1369,
1768,
3113,
315,
5417,
508,
3113,
2065,
63,
1518,
5717,
1327,
652,
422,
315,
1937,
2
] |
new_flags.sort()
|
def test_flags_irrelevant(self): # check that the result (numeric result + flags raised) of an # arithmetic operation doesn't depend on the current flags
|
f6fcf1773375414de2096c5062c3bbd03540e518 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/f6fcf1773375414de2096c5062c3bbd03540e518/test_decimal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7133,
67,
481,
27719,
12,
2890,
4672,
468,
866,
716,
326,
563,
261,
5246,
563,
397,
2943,
11531,
13,
434,
392,
468,
30828,
1674,
3302,
1404,
2447,
603,
326,
783,
2943,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7133,
67,
481,
27719,
12,
2890,
4672,
468,
866,
716,
326,
563,
261,
5246,
563,
397,
2943,
11531,
13,
434,
392,
468,
30828,
1674,
3302,
1404,
2447,
603,
326,
783,
2943,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
items = name2target.items() items.sort()
|
items = name2target.items() items.sort()
|
def addlink(linkname, linktarget): assert linkname and linkname != '/' if linktarget in name2target: if linkname in name2target[linktarget]: return name2target.setdefault(linktarget, []).append(linkname)
|
725b75eded22275b6be92a7549983e27d0340b0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/725b75eded22275b6be92a7549983e27d0340b0b/makeref.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1232,
12,
1232,
529,
16,
1692,
3299,
4672,
1815,
1692,
529,
471,
1692,
529,
480,
2023,
309,
1692,
3299,
316,
508,
22,
3299,
30,
309,
1692,
529,
316,
508,
22,
3299,
63,
1232,
3299,
14542,
327,
508,
22,
3299,
18,
542,
1886,
12,
1232,
3299,
16,
5378,
2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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1232,
12,
1232,
529,
16,
1692,
3299,
4672,
1815,
1692,
529,
471,
1692,
529,
480,
2023,
309,
1692,
3299,
316,
508,
22,
3299,
30,
309,
1692,
529,
316,
508,
22,
3299,
63,
1232,
3299,
14542,
327,
508,
22,
3299,
18,
542,
1886,
12,
1232,
3299,
16,
5378,
2934,
6923,
12,
1232,
529,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
frameworkdir = sysconfig.get_config_var('PYTHONFRAMEWORKDIR') exts.append( Extension('gestalt', ['gestaltmodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('MacOS', ['macosmodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('icglue', ['icgluemodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('macfs', ['macfsmodule.c', '../Python/getapplbycreator.c'], extra_link_args=['-framework', 'Carbon']) )
|
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
9e04a91f3e776f2d142773778d67748407a5acc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9e04a91f3e776f2d142773778d67748407a5acc4/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
try: nextChar = line[i + 1] except: nextChar = None
|
def rainbow(self, text=None, offset=None, style='rainbow', bg=None, colorWhitespace=False): if text is None: return if offset is None: try: offset = self.rainbowOffset[style] except KeyError: offset = 0
|
85484e21963c19bb73e83b65fa0d2a7a00f1684b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10942/85484e21963c19bb73e83b65fa0d2a7a00f1684b/colorlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
767,
267,
70,
543,
12,
2890,
16,
977,
33,
7036,
16,
1384,
33,
7036,
16,
2154,
2218,
7596,
70,
543,
2187,
7611,
33,
7036,
16,
2036,
9431,
33,
8381,
4672,
309,
977,
353,
599,
30,
327,
309,
1384,
353,
599,
30,
775,
30,
1384,
273,
365,
18,
7596,
70,
543,
2335,
63,
4060,
65,
1335,
4999,
30,
1384,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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267,
70,
543,
12,
2890,
16,
977,
33,
7036,
16,
1384,
33,
7036,
16,
2154,
2218,
7596,
70,
543,
2187,
7611,
33,
7036,
16,
2036,
9431,
33,
8381,
4672,
309,
977,
353,
599,
30,
327,
309,
1384,
353,
599,
30,
775,
30,
1384,
273,
365,
18,
7596,
70,
543,
2335,
63,
4060,
65,
1335,
4999,
30,
1384,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
"""Append latex href and pdfbookmarks for titles. """
|
"""Append latex href and pdfbookmarks for titles."""
|
def bookmark(self, node): """Append latex href and pdfbookmarks for titles. """ if node.parent['ids']: self.body += ['\\hypertarget{%s}{}\n' % id for id in node.parent['ids']] if not self.use_latex_toc: # BUG level depends on style. pdflatex allows level 0 to 3. # ToC would be the only on level 0 so i choose to decrement # the rest. "Table of contents" bookmark to see the ToC. To # avoid this we set all zeroes to one. l = self.section_level if l>0: l = l-1 # pdftex does not like '_' subscripts in titles text = self.encode(node.astext()) self.body += ['\\pdfbookmark[%d]{%s}{%s}\n' % (l, text, id) for id in node.parent['ids']]
|
46a0c8dd14843f2383711724a77c799cd55db324 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/46a0c8dd14843f2383711724a77c799cd55db324/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13696,
12,
2890,
16,
756,
4672,
3536,
5736,
25079,
3897,
471,
8169,
3618,
17439,
364,
14693,
12123,
309,
756,
18,
2938,
3292,
2232,
3546,
30,
365,
18,
3432,
1011,
10228,
1695,
18112,
672,
826,
95,
9,
87,
97,
25902,
82,
11,
738,
612,
364,
612,
316,
756,
18,
2938,
3292,
2232,
3546,
65,
309,
486,
365,
18,
1202,
67,
26264,
67,
1391,
30,
468,
10937,
43,
1801,
10935,
603,
2154,
18,
8169,
26264,
5360,
1801,
374,
358,
890,
18,
468,
2974,
39,
4102,
506,
326,
1338,
603,
1801,
374,
1427,
277,
9876,
358,
15267,
468,
326,
3127,
18,
315,
1388,
434,
2939,
6,
13696,
358,
2621,
326,
2974,
39,
18,
2974,
468,
4543,
333,
732,
444,
777,
3634,
281,
358,
1245,
18,
328,
273,
365,
18,
3464,
67,
2815,
309,
328,
34,
20,
30,
328,
273,
328,
17,
21,
468,
4863,
1222,
338,
1552,
486,
3007,
4427,
720,
12827,
316,
14693,
977,
273,
365,
18,
3015,
12,
2159,
18,
689,
408,
10756,
365,
18,
3432,
1011,
10228,
1695,
7699,
3618,
3355,
14451,
72,
7073,
9,
87,
8637,
9,
87,
6280,
82,
11,
738,
261,
80,
16,
977,
16,
612,
13,
364,
612,
316,
756,
18,
2938,
3292,
2232,
3546,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13696,
12,
2890,
16,
756,
4672,
3536,
5736,
25079,
3897,
471,
8169,
3618,
17439,
364,
14693,
12123,
309,
756,
18,
2938,
3292,
2232,
3546,
30,
365,
18,
3432,
1011,
10228,
1695,
18112,
672,
826,
95,
9,
87,
97,
25902,
82,
11,
738,
612,
364,
612,
316,
756,
18,
2938,
3292,
2232,
3546,
65,
309,
486,
365,
18,
1202,
67,
26264,
67,
1391,
30,
468,
10937,
43,
1801,
10935,
603,
2154,
18,
8169,
26264,
5360,
1801,
374,
358,
890,
18,
468,
2974,
39,
4102,
506,
326,
1338,
603,
1801,
374,
1427,
277,
9876,
358,
15267,
468,
326,
3127,
18,
315,
1388,
434,
2939,
6,
13696,
358,
2621,
326,
2974,
39,
18,
2974,
468,
4543,
333,
732,
444,
777,
3634,
2
] |
self.set_irq_columns(row, irq, irq_info, nics)
|
try: self.set_irq_columns(row, irq, irq_info, nics) except: self.list_store.remove(row)
|
def show(self): new_irqs = [] for sirq in self.irqs.keys(): try: new_irqs.append(int(sirq)) except: continue
|
f2bc41569d3f9834e574cd9c9147d977e018d277 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3406/f2bc41569d3f9834e574cd9c9147d977e018d277/irqview.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
394,
67,
481,
12926,
273,
5378,
364,
272,
481,
85,
316,
365,
18,
481,
12926,
18,
2452,
13332,
775,
30,
394,
67,
481,
12926,
18,
6923,
12,
474,
12,
87,
481,
85,
3719,
1335,
30,
1324,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
394,
67,
481,
12926,
273,
5378,
364,
272,
481,
85,
316,
365,
18,
481,
12926,
18,
2452,
13332,
775,
30,
394,
67,
481,
12926,
18,
6923,
12,
474,
12,
87,
481,
85,
3719,
1335,
30,
1324,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
requires('urlfetch')
|
def open_urlresource(url): import urllib, urlparse filename = urlparse.urlparse(url)[2].split('/')[-1] # '/': it's URL! for path in [os.path.curdir, os.path.pardir]: fn = os.path.join(path, filename) if os.path.exists(fn): return open(fn) requires('urlfetch') print >> get_original_stdout(), '\tfetching %s ...' % url fn, _ = urllib.urlretrieve(url, filename) return open(fn)
|
a36cbabc2f666c3d7fd3e2375fce68690f291c61 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/a36cbabc2f666c3d7fd3e2375fce68690f291c61/test_support.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
718,
3146,
12,
718,
4672,
1930,
11527,
16,
15185,
225,
1544,
273,
15185,
18,
718,
2670,
12,
718,
25146,
22,
8009,
4939,
2668,
2473,
13,
18919,
21,
65,
468,
2023,
30,
518,
1807,
1976,
5,
225,
364,
589,
316,
306,
538,
18,
803,
18,
1397,
1214,
16,
1140,
18,
803,
18,
84,
1060,
481,
14542,
2295,
273,
1140,
18,
803,
18,
5701,
12,
803,
16,
1544,
13,
309,
1140,
18,
803,
18,
1808,
12,
4293,
4672,
327,
1696,
12,
4293,
13,
225,
1172,
1671,
336,
67,
8830,
67,
10283,
9334,
2337,
88,
5754,
310,
738,
87,
25956,
738,
880,
2295,
16,
389,
273,
11527,
18,
718,
17466,
12,
718,
16,
1544,
13,
327,
1696,
12,
4293,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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8009,
4939,
2668,
2473,
13,
18919,
21,
65,
468,
2023,
30,
518,
1807,
1976,
5,
225,
364,
589,
316,
306,
538,
18,
803,
18,
1397,
1214,
16,
1140,
18,
803,
18,
84,
1060,
481,
14542,
2295,
273,
1140,
18,
803,
18,
5701,
12,
803,
16,
1544,
13,
309,
1140,
18,
803,
18,
1808,
12,
4293,
4672,
327,
1696,
12,
4293,
13,
225,
1172,
1671,
336,
67,
8830,
67,
10283,
9334,
2337,
88,
5754,
310,
738,
87,
25956,
738,
880,
2295,
16,
389,
273,
11527,
18,
718,
17466,
12,
718,
16,
1544,
13,
327,
1696,
12,
4293,
2
] |
|
print 'Unknown 3 CHAR ID: %s' % (sid,)
|
print 'Unknown 3 CHAR ID: %s %s' % (sid, tp.get_product_id())
|
def process_site(tp, sid, ts, data): """ I process a dictionary of data for a particular site """ isCOOP = 0 if len(sid) == 3: if CHAR3LOOKUP.has_key(sid): state = CHAR3LOOKUP[sid] else: print 'Unknown 3 CHAR ID: %s' % (sid,) return elif len(sid) == 5: if mesonet.nwsli2state.has_key( sid[-2:]): state = mesonet.nwsli2state[ sid[-2:]] else: print 'Unknown 5 CHAR State ID: %s' % (sid,) return else: print 'Unknown ID: %s' % (sid,) return #print sid, ts, mydata[sid][ts].keys() # Loop thru vars to see if we have a COOP site? for var in data.keys(): if var in COOPVARS and tp.afos[:3] not in ['RR5',]: isCOOP = 1 if (not MAPPING.has_key(var)): print "Couldn't map var: %s for SID: %s" % (var, sid) MAPPING[var] = "" if (not MULTIPLIER.has_key(var[:2])): MULTIPLIER[var[:2]] = 1.0 HADSDB.runOperation("""INSERT into raw%s (station, valid, key, value) VALUES('%s','%s+00', '%s', '%s')""" % (ts.strftime("%Y_%m"), sid, ts.strftime("%Y-%m-%d %H:%M"), var, data[var])).addErrback(email_error, data, tp) #print sid, state, isCOOP # Deterime if we want to waste the DB's time # If COOP in MW, process it if (isCOOP): print "COOP? %s %s %s" % (sid, tp.get_product_id(), data.keys()) network = "%s_COOP" % (state,) # We are left with DCP else: network = "%s_DCP" % (state,) # Lets do this, finally. #print "ACTUALLY PROCESSED", sid, network iemob = MyIEMOB(sid, network) iemob.setObTimeGMT(ts) iemob.data['year'] = ts.year if not iemob.load_and_compare(IEMACCESS) and ts.strftime("%Y%m%d") == mx.DateTime.now().strftime("%Y%m%d"): #print 'Unknown StationID %s %s' % (sid, tp.get_product_id() ) HADSDB.runOperation(""" INSERT into unknown(nwsli, product, network) values ('%s', '%s', '%s') """ % (sid, tp.get_product_id() , network)) for var in data.keys(): myval = data[var] * MULTIPLIER[var[:2]] iemob.data[ MAPPING[var] ] = myval iemob.updateDatabaseSummaryTemps(None, ACCESSDB) iemob.updateDatabase(None, ACCESSDB) del iemob
|
8fca5dde9ec568dc01ac5d770f509a772c3dedc5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11186/8fca5dde9ec568dc01ac5d770f509a772c3dedc5/shef_parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
4256,
12,
6834,
16,
7348,
16,
3742,
16,
501,
4672,
3536,
467,
1207,
279,
3880,
434,
501,
364,
279,
6826,
2834,
3536,
353,
3865,
3665,
273,
374,
309,
562,
12,
7453,
13,
422,
890,
30,
309,
12090,
23,
1502,
31581,
18,
5332,
67,
856,
12,
7453,
4672,
919,
273,
12090,
23,
1502,
31581,
63,
7453,
65,
469,
30,
1172,
296,
4874,
890,
12090,
1599,
30,
738,
87,
738,
87,
11,
738,
261,
7453,
16,
8071,
18,
588,
67,
5896,
67,
350,
10756,
327,
1327,
562,
12,
7453,
13,
422,
1381,
30,
309,
15216,
265,
278,
18,
82,
4749,
549,
22,
2019,
18,
5332,
67,
856,
12,
7348,
18919,
22,
26894,
4672,
919,
273,
15216,
265,
278,
18,
82,
4749,
549,
22,
2019,
63,
7348,
18919,
22,
30,
13563,
469,
30,
1172,
296,
4874,
1381,
12090,
3287,
1599,
30,
738,
87,
11,
738,
261,
7453,
16,
13,
327,
469,
30,
1172,
296,
4874,
1599,
30,
738,
87,
11,
738,
261,
7453,
16,
13,
327,
468,
1188,
7348,
16,
3742,
16,
3399,
892,
63,
7453,
6362,
3428,
8009,
2452,
1435,
468,
9720,
286,
8653,
4153,
358,
2621,
309,
732,
1240,
279,
7910,
3665,
2834,
35,
364,
569,
316,
501,
18,
2452,
13332,
309,
569,
316,
7910,
3665,
26088,
471,
8071,
18,
1727,
538,
10531,
23,
65,
486,
316,
10228,
17950,
25,
2187,
14542,
353,
3865,
3665,
273,
404,
309,
261,
902,
28801,
18,
5332,
67,
856,
12,
1401,
3719,
30,
1172,
315,
16342,
1404,
852,
569,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
4256,
12,
6834,
16,
7348,
16,
3742,
16,
501,
4672,
3536,
467,
1207,
279,
3880,
434,
501,
364,
279,
6826,
2834,
3536,
353,
3865,
3665,
273,
374,
309,
562,
12,
7453,
13,
422,
890,
30,
309,
12090,
23,
1502,
31581,
18,
5332,
67,
856,
12,
7453,
4672,
919,
273,
12090,
23,
1502,
31581,
63,
7453,
65,
469,
30,
1172,
296,
4874,
890,
12090,
1599,
30,
738,
87,
738,
87,
11,
738,
261,
7453,
16,
8071,
18,
588,
67,
5896,
67,
350,
10756,
327,
1327,
562,
12,
7453,
13,
422,
1381,
30,
309,
15216,
265,
278,
18,
82,
4749,
549,
22,
2019,
18,
5332,
67,
856,
12,
7348,
18919,
22,
26894,
4672,
919,
273,
15216,
265,
278,
2
] |
sys.stderr.write("ERROR: couldn't create the logfile directory\n") handler = logging.StreamHandler(sys.stdout)
|
sys.stderr.write("ERROR: couldn't create the logfile directory. Logging to the standard output.\n") handler = logging.StreamHandler(sys.stdout) logging_to_stdout = True
|
def init_logger(): import os logger = logging.getLogger() # create a format for log messages and dates formatter = logging.Formatter('[%(asctime)s] %(levelname)s:%(name)s:%(message)s', '%a %b %d %Y %H:%M:%S') if tools.config['syslog']: # SysLog Handler if os.name == 'nt': handler = logging.handlers.NTEventLogHandler("%s %s" % (release.description, release.version)) else: handler = logging.handlers.SysLogHandler('/dev/log') formatter = logging.Formatter("%s %s" % (release.description, release.version) + ':%(levelname)s:%(name)s:%(message)s') elif tools.config['logfile']: # LogFile Handler logf = tools.config['logfile'] try: dirname = os.path.dirname(logf) if dirname and not os.path.isdir(dirname): os.makedirs(dirname) handler = logging.handlers.TimedRotatingFileHandler(logf,'D',1,30) except Exception, ex: sys.stderr.write("ERROR: couldn't create the logfile directory\n") handler = logging.StreamHandler(sys.stdout) else: # Normal Handler on standard output handler = logging.StreamHandler(sys.stdout) # tell the handler to use this format handler.setFormatter(formatter) # add the handler to the root logger logger.addHandler(handler) logger.setLevel(tools.config['log_level'] or '0') if handler is logging.StreamHandler and os.name != 'nt': # change color of level names # uses of ANSI color codes # see http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html # maybe use http://code.activestate.com/recipes/574451/ colors = ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white', None, 'default'] foreground = lambda f: 30 + colors.index(f) background = lambda f: 40 + colors.index(f) mapping = { 'DEBUG_RPC': ('blue', 'white'), 'DEBUG': ('blue', 'default'), 'INFO': ('green', 'default'), 'WARNING': ('yellow', 'default'), 'ERROR': ('red', 'default'), 'CRITICAL': ('white', 'red'), } for level, (fg, bg) in mapping.items(): msg = "\x1b[%dm\x1b[%dm%s\x1b[0m" % (foreground(fg), background(bg), level) logging.addLevelName(getattr(logging, level), msg)
|
27240361ca5ead2597ae8f0c63043bab0e969001 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/27240361ca5ead2597ae8f0c63043bab0e969001/netsvc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
4901,
13332,
1930,
1140,
225,
1194,
273,
2907,
18,
588,
3328,
1435,
468,
752,
279,
740,
364,
613,
2743,
471,
7811,
4453,
273,
2907,
18,
5074,
2668,
14451,
12,
345,
21261,
13,
87,
65,
8975,
31994,
13,
87,
5319,
12,
529,
13,
87,
5319,
12,
2150,
13,
87,
2187,
1995,
69,
738,
70,
738,
72,
738,
61,
738,
44,
5319,
49,
5319,
55,
6134,
225,
309,
8513,
18,
1425,
3292,
9499,
1330,
3546,
30,
468,
16995,
1343,
4663,
309,
1140,
18,
529,
422,
296,
496,
4278,
1838,
273,
2907,
18,
11046,
18,
1784,
1133,
1343,
1503,
27188,
87,
738,
87,
6,
738,
261,
9340,
18,
3384,
16,
3992,
18,
1589,
3719,
469,
30,
1838,
273,
2907,
18,
11046,
18,
12712,
1343,
1503,
2668,
19,
5206,
19,
1330,
6134,
4453,
273,
2907,
18,
5074,
27188,
87,
738,
87,
6,
738,
261,
9340,
18,
3384,
16,
3992,
18,
1589,
13,
397,
4290,
17105,
31994,
13,
87,
5319,
12,
529,
13,
87,
5319,
12,
2150,
13,
87,
6134,
225,
1327,
8513,
18,
1425,
3292,
28806,
3546,
30,
468,
1827,
812,
4663,
27345,
273,
8513,
18,
1425,
3292,
28806,
3546,
775,
30,
4283,
273,
1140,
18,
803,
18,
12287,
12,
1330,
74,
13,
309,
4283,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
12287,
4672,
1140,
18,
81,
9477,
10539,
12,
12287,
13,
1838,
273,
2907,
18,
11046,
18,
19336,
8570,
1776,
28942,
12,
1330,
74,
11189,
40,
2187,
21,
16,
5082,
13,
1335,
1185,
16,
431,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
4901,
13332,
1930,
1140,
225,
1194,
273,
2907,
18,
588,
3328,
1435,
468,
752,
279,
740,
364,
613,
2743,
471,
7811,
4453,
273,
2907,
18,
5074,
2668,
14451,
12,
345,
21261,
13,
87,
65,
8975,
31994,
13,
87,
5319,
12,
529,
13,
87,
5319,
12,
2150,
13,
87,
2187,
1995,
69,
738,
70,
738,
72,
738,
61,
738,
44,
5319,
49,
5319,
55,
6134,
225,
309,
8513,
18,
1425,
3292,
9499,
1330,
3546,
30,
468,
16995,
1343,
4663,
309,
1140,
18,
529,
422,
296,
496,
4278,
1838,
273,
2907,
18,
11046,
18,
1784,
1133,
1343,
1503,
27188,
87,
738,
87,
6,
738,
261,
9340,
18,
3384,
16,
3992,
18,
1589,
3719,
469,
30,
1838,
273,
2907,
2
] |
result.append( str(response.find(k.replace('/', '')[1:]+' On') > 0))
|
regex = re.compile('O(n|ff)\s{1,2}OK', re.I | re.M) match = regex.search(response) if match: result.append(match.group()[:-4]) else: result.append('Communication error')
|
def get(self, keys=[]): result = [] if keys == []: result = self.__kwds[:] else: for k in keys: response = self.__conn.roundtrip( 'get %s\r\n' % (' '.join(k.split('/'))), 'iBootBar > ') #!!! Parse feedback and add to results result.append( str(response.find(k.replace('/', '')[1:]+' On') > 0)) return result
|
5c5d62c8ee0c046bb04be315992854284884cd3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14654/5c5d62c8ee0c046bb04be315992854284884cd3e/powerstrip_agent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
1311,
33,
8526,
4672,
563,
273,
5378,
309,
1311,
422,
5378,
30,
563,
273,
365,
16186,
25577,
10531,
65,
469,
30,
364,
417,
316,
1311,
30,
766,
273,
365,
16186,
4646,
18,
2260,
25125,
12,
296,
588,
738,
87,
64,
86,
64,
82,
11,
738,
7707,
2418,
5701,
12,
79,
18,
4939,
2668,
2473,
3719,
3631,
296,
77,
15817,
5190,
405,
8624,
468,
25885,
2884,
10762,
471,
527,
358,
1686,
225,
3936,
273,
283,
18,
11100,
2668,
51,
12,
82,
96,
1403,
5153,
87,
95,
21,
16,
22,
97,
3141,
2187,
283,
18,
45,
571,
283,
18,
49,
13,
845,
273,
3936,
18,
3072,
12,
2740,
13,
309,
845,
30,
563,
18,
6923,
12,
1916,
18,
1655,
1435,
10531,
17,
24,
5717,
469,
30,
563,
18,
6923,
2668,
25219,
555,
6134,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
1311,
33,
8526,
4672,
563,
273,
5378,
309,
1311,
422,
5378,
30,
563,
273,
365,
16186,
25577,
10531,
65,
469,
30,
364,
417,
316,
1311,
30,
766,
273,
365,
16186,
4646,
18,
2260,
25125,
12,
296,
588,
738,
87,
64,
86,
64,
82,
11,
738,
7707,
2418,
5701,
12,
79,
18,
4939,
2668,
2473,
3719,
3631,
296,
77,
15817,
5190,
405,
8624,
468,
25885,
2884,
10762,
471,
527,
358,
1686,
225,
3936,
273,
283,
18,
11100,
2668,
51,
12,
82,
96,
1403,
5153,
87,
95,
21,
16,
22,
97,
3141,
2187,
283,
18,
45,
571,
283,
18,
49,
13,
845,
273,
3936,
18,
3072,
12,
2740,
13,
309,
845,
30,
563,
18,
6923,
12,
2
] |
def RevEBuild(self, commit_id="", redirect_file=None):
|
def RevEBuild(self, commit_id='', redirect_file=None):
|
def RevEBuild(self, commit_id="", redirect_file=None): """Revs an ebuild given the git commit id.
|
804ad7df2772bbb0df99bab523e0e6acca66ef39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/804ad7df2772bbb0df99bab523e0e6acca66ef39/cros_mark_as_stable.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14477,
41,
3116,
12,
2890,
16,
3294,
67,
350,
2218,
2187,
3136,
67,
768,
33,
7036,
4672,
3536,
426,
6904,
392,
425,
3510,
864,
326,
5071,
3294,
612,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14477,
41,
3116,
12,
2890,
16,
3294,
67,
350,
2218,
2187,
3136,
67,
768,
33,
7036,
4672,
3536,
426,
6904,
392,
425,
3510,
864,
326,
5071,
3294,
612,
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
] |
del self._pages[page.name]
|
del self._index[page.name]
|
def wiki_page_deleted(self, page): if self.has_page(page.name): self.log.debug('Removing page %s from index' % page.name) del self._pages[page.name]
|
6dc1e2ad50ff028cdb9f7af8c91260974857c895 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/6dc1e2ad50ff028cdb9f7af8c91260974857c895/api.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9050,
67,
2433,
67,
8600,
12,
2890,
16,
1363,
4672,
309,
365,
18,
5332,
67,
2433,
12,
2433,
18,
529,
4672,
365,
18,
1330,
18,
4148,
2668,
18939,
1363,
738,
87,
628,
770,
11,
738,
1363,
18,
529,
13,
1464,
365,
6315,
7267,
63,
2433,
18,
529,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
628,
770,
11,
738,
1363,
18,
529,
13,
1464,
365,
6315,
7267,
63,
2433,
18,
529,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
chentry.oldname= fname[1:-1]
|
chentry.old_name= fname[1:-1]
|
def convertDiff(self, chset): """ Fills a chset with the details data coming by a diff beetween chset lin_ancestor and revision (i.e. the linearized history) """ if not chset.lin_ancestor or not chset.revision or chset.lin_ancestor == chset.revision: raise GetUpstreamChangesetsFailure("internal error: MonotoneDiffParser.convertDiff called with invalid parameters: lin_ancestor %s, revision %s" % (chset.lin_ancestor, chset.revision)) # the order of revisions is very important. Monotone gives a diff from the first to the second cmd = self.repository.command("diff", "--db", self.repository.repository, "--revision", chset.lin_ancestor, "--revision", chset.revision)
|
5e96a5241ce99ae8e4ab742e13940953a5e18db2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/5e96a5241ce99ae8e4ab742e13940953a5e18db2/monotone.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
5938,
12,
2890,
16,
462,
542,
4672,
3536,
14192,
87,
279,
462,
542,
598,
326,
3189,
501,
19283,
635,
279,
3122,
506,
8458,
462,
542,
4739,
67,
28798,
471,
6350,
261,
77,
18,
73,
18,
326,
9103,
1235,
4927,
13,
3536,
309,
486,
462,
542,
18,
7511,
67,
28798,
578,
486,
462,
542,
18,
13057,
578,
462,
542,
18,
7511,
67,
28798,
422,
462,
542,
18,
13057,
30,
1002,
968,
1211,
3256,
7173,
2413,
5247,
2932,
7236,
555,
30,
225,
9041,
352,
476,
5938,
2678,
18,
6283,
5938,
2566,
598,
2057,
1472,
30,
4739,
67,
28798,
738,
87,
16,
6350,
738,
87,
6,
738,
261,
343,
542,
18,
7511,
67,
28798,
16,
462,
542,
18,
13057,
3719,
225,
468,
326,
1353,
434,
18325,
353,
8572,
10802,
18,
9041,
352,
476,
14758,
279,
3122,
628,
326,
1122,
358,
326,
2205,
1797,
273,
365,
18,
9071,
18,
3076,
2932,
5413,
3113,
5238,
1966,
3113,
365,
18,
9071,
18,
9071,
16,
5238,
13057,
3113,
462,
542,
18,
7511,
67,
28798,
16,
5238,
13057,
3113,
462,
542,
18,
13057,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1765,
5938,
12,
2890,
16,
462,
542,
4672,
3536,
14192,
87,
279,
462,
542,
598,
326,
3189,
501,
19283,
635,
279,
3122,
506,
8458,
462,
542,
4739,
67,
28798,
471,
6350,
261,
77,
18,
73,
18,
326,
9103,
1235,
4927,
13,
3536,
309,
486,
462,
542,
18,
7511,
67,
28798,
578,
486,
462,
542,
18,
13057,
578,
462,
542,
18,
7511,
67,
28798,
422,
462,
542,
18,
13057,
30,
1002,
968,
1211,
3256,
7173,
2413,
5247,
2932,
7236,
555,
30,
225,
9041,
352,
476,
5938,
2678,
18,
6283,
5938,
2566,
598,
2057,
1472,
30,
4739,
67,
28798,
738,
87,
16,
6350,
738,
87,
6,
738,
261,
343,
542,
18,
7511,
67,
28798,
16,
462,
542,
18,
13057,
3719,
2
] |
def populate_list_from_results (self, treeview_name):
|
def populate_list_from_results (self, treeview_name, thread):
|
def populate_list_from_results (self, treeview_name): """Check and acquire the lock""" if self.entry_lock.acquire (False) == False: if (self.last_pulse + 0.035) < time.time(): self.progress_bar.pulse () self.last_pulse = time.time() return True
|
46523ddcd022328735d34c97303e166c1ff3dd97 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11070/46523ddcd022328735d34c97303e166c1ff3dd97/youtube.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
6490,
67,
1098,
67,
2080,
67,
4717,
261,
2890,
16,
2151,
1945,
67,
529,
16,
2650,
4672,
3536,
1564,
471,
10533,
326,
2176,
8395,
309,
365,
18,
4099,
67,
739,
18,
1077,
1039,
261,
8381,
13,
422,
1083,
30,
309,
261,
2890,
18,
2722,
67,
84,
24667,
397,
374,
18,
4630,
25,
13,
411,
813,
18,
957,
13332,
365,
18,
8298,
67,
3215,
18,
84,
24667,
1832,
365,
18,
2722,
67,
84,
24667,
273,
813,
18,
957,
1435,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
6490,
67,
1098,
67,
2080,
67,
4717,
261,
2890,
16,
2151,
1945,
67,
529,
16,
2650,
4672,
3536,
1564,
471,
10533,
326,
2176,
8395,
309,
365,
18,
4099,
67,
739,
18,
1077,
1039,
261,
8381,
13,
422,
1083,
30,
309,
261,
2890,
18,
2722,
67,
84,
24667,
397,
374,
18,
4630,
25,
13,
411,
813,
18,
957,
13332,
365,
18,
8298,
67,
3215,
18,
84,
24667,
1832,
365,
18,
2722,
67,
84,
24667,
273,
813,
18,
957,
1435,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
('KEYM', bolt.csvFormat('ssfiss')+'\n',
|
('KEYM', bolt.csvFormat('ssfisss')+'\n',
|
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
|
aeca1db1240364fac710811ccc7f19b3a36b644a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/aeca1db1240364fac710811ccc7f19b3a36b644a/bosh.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15175,
329,
2673,
12,
5296,
4672,
1525,
2232,
273,
3177,
18,
2452,
1435,
1525,
2232,
18,
3804,
12,
856,
33,
14661,
279,
30,
3177,
63,
69,
6362,
20,
5717,
1525,
2232,
18,
3804,
12,
856,
33,
1726,
11990,
12,
20,
3719,
327,
1525,
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,
0,
0,
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,
15175,
329,
2673,
12,
5296,
4672,
1525,
2232,
273,
3177,
18,
2452,
1435,
1525,
2232,
18,
3804,
12,
856,
33,
14661,
279,
30,
3177,
63,
69,
6362,
20,
5717,
1525,
2232,
18,
3804,
12,
856,
33,
1726,
11990,
12,
20,
3719,
327,
1525,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if isinstance(other, spmatrix):
|
if isspmatrix(other):
|
def __mul__(self, other): if isinstance(other, spmatrix): return self.matmat(other) other = asarray(other) if rank(other) > 0: return self.matvec(other) res = dok_matrix() for key in self.keys(): res[key] = other * self[key] return res
|
bdabf856b614694a8ef20c73a7d82bda3a7cf386 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/bdabf856b614694a8ef20c73a7d82bda3a7cf386/sparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16411,
972,
12,
2890,
16,
1308,
4672,
309,
353,
1752,
5667,
12,
3011,
4672,
327,
365,
18,
7373,
7373,
12,
3011,
13,
1308,
273,
10455,
12,
3011,
13,
309,
6171,
12,
3011,
13,
405,
374,
30,
327,
365,
18,
7373,
8799,
12,
3011,
13,
400,
273,
302,
601,
67,
5667,
1435,
364,
498,
316,
365,
18,
2452,
13332,
400,
63,
856,
65,
273,
1308,
380,
365,
63,
856,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
1752,
5667,
12,
3011,
4672,
327,
365,
18,
7373,
7373,
12,
3011,
13,
1308,
273,
10455,
12,
3011,
13,
309,
6171,
12,
3011,
13,
405,
374,
30,
327,
365,
18,
7373,
8799,
12,
3011,
13,
400,
273,
302,
601,
67,
5667,
1435,
364,
498,
316,
365,
18,
2452,
13332,
400,
63,
856,
65,
273,
1308,
380,
365,
63,
856,
65,
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
] |
'integer', """\ count(CASE WHEN NOT virus_%s_name is null AND virus_%s_name != '' THEN 1 ELSE null END)\ """ % (self.__vendor_name, self.__vendor_name)))
|
'integer', 'count(virus_%s_clean)' % self.__vendor_name))
|
def setup(self, start_date, end_date): self.__update_n_http_events(start_date, end_date) self.__update_n_mail_table('n_mail_msgs', start_date, end_date) self.__update_n_mail_table('n_mail_addrs', start_date, end_date)
|
e3bd9ff326663a60b6e32123547458ef772a5cdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/e3bd9ff326663a60b6e32123547458ef772a5cdc/untangle_base_virus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
16,
787,
67,
712,
16,
679,
67,
712,
4672,
365,
16186,
2725,
67,
82,
67,
2505,
67,
5989,
12,
1937,
67,
712,
16,
679,
67,
712,
13,
365,
16186,
2725,
67,
82,
67,
4408,
67,
2121,
2668,
82,
67,
4408,
67,
27439,
2187,
787,
67,
712,
16,
679,
67,
712,
13,
365,
16186,
2725,
67,
82,
67,
4408,
67,
2121,
2668,
82,
67,
4408,
67,
23305,
2187,
787,
67,
712,
16,
679,
67,
712,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
16,
787,
67,
712,
16,
679,
67,
712,
4672,
365,
16186,
2725,
67,
82,
67,
2505,
67,
5989,
12,
1937,
67,
712,
16,
679,
67,
712,
13,
365,
16186,
2725,
67,
82,
67,
4408,
67,
2121,
2668,
82,
67,
4408,
67,
27439,
2187,
787,
67,
712,
16,
679,
67,
712,
13,
365,
16186,
2725,
67,
82,
67,
4408,
67,
2121,
2668,
82,
67,
4408,
67,
23305,
2187,
787,
67,
712,
16,
679,
67,
712,
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
] |
match = pattern.search(remaining)
|
match = pattern_search(remaining)
|
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
|
018a79821ccb1056404d43dbe32e444d1a0e03c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/018a79821ccb1056404d43dbe32e444d1a0e03c1/states.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
7586,
16,
11063,
16,
982,
4672,
3536,
2000,
576,
6035,
30,
2199,
261,
955,
471,
6370,
2186,
3631,
471,
2619,
67,
6833,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
7586,
16,
11063,
16,
982,
4672,
3536,
2000,
576,
6035,
30,
2199,
261,
955,
471,
6370,
2186,
3631,
471,
2619,
67,
6833,
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
] |
elif initial in numchars:
|
elif initial in numchars \ or (initial == '.' and token != '.'):
|
def tokenize(readline, tokeneater=printtoken): lnum = parenlev = continued = 0 namechars, numchars = string.letters + '_', string.digits contstr = '' indents = [0] while 1: # loop over lines in stream line = readline() lnum = lnum + 1 pos, max = 0, len(line) if contstr: # continued string if not line: raise TokenError, "EOF within multi-line string" if endprog.search(line) >= 0: pos = end = endprog.regs[0][1] tokeneater(STRING, contstr + line[:end], strstart, (lnum, end), line) contstr = '' else: contstr = contstr + line continue elif parenlev == 0 and not continued: # new statement if not line: break column = 0 while pos < max: # measure leading whitespace if line[pos] == ' ': column = column + 1 elif line[pos] == '\t': column = (column/tabsize + 1)*tabsize elif line[pos] == '\f': column = 0 else: break pos = pos + 1 if pos == max: break if line[pos] in '#\r\n': # skip comments or blank lines tokeneater((NEWLINE, COMMENT)[line[pos] == '#'], line[pos:], (lnum, pos), (lnum, len(line)), line) continue if column > indents[-1]: # count indents or dedents indents.append(column) tokeneater(INDENT, line[:pos], (lnum, 0), (lnum, pos), line) while column < indents[-1]: indents = indents[:-1] tokeneater(DEDENT, line[:pos], (lnum, 0), (lnum, pos), line) else: # continued statement if not line: raise TokenError, "EOF within multi-line statement" continued = 0 while pos < max: if pseudoprog.match(line, pos) > 0: # scan for tokens start, end = pseudoprog.regs[1] spos, epos = (lnum, start), (lnum, end) token, initial = line[start:end], line[start] pos = end if initial in namechars: # ordinary name tokeneater(NAME, token, spos, epos, line) elif initial in numchars: # ordinary number tokeneater(NUMBER, token, spos, epos, line) elif initial in '\r\n': tokeneater(NEWLINE, token, spos, epos, line) elif initial == '#': tokeneater(COMMENT, token, spos, epos, line) elif initial == '\\': # continued stmt continued = 1 elif token in ('\'\'\'', '"""'): # triple-quoted endprog = endprogs[token] if endprog.search(line, pos) >= 0: # all on one line pos = endprog.regs[0][1] token = line[start:pos] tokeneater(STRING, token, spos, (lnum, pos), line) else: strstart = (lnum, start) # multiple lines contstr = line[start:] break elif initial in '\'"': if token[-1] == '\n': # continued string strstart = (lnum, start) endprog, contstr = endprogs[initial], line[start:] break else: # ordinary string tokeneater(STRING, token, spos, epos, line) else: if initial in '([{': parenlev = parenlev + 1 elif initial in ')]}': parenlev = parenlev - 1 tokeneater(OP, token, spos, epos, line) else: tokeneater(ERRORTOKEN, line[pos], spos, (lnum, pos+1), line) pos = pos + 1 for indent in indents[1:]: # pop remaining indent levels tokeneater(DEDENT, '', (lnum, 0), (lnum, 0), '')
|
da67869f766cef01e3126399eb209553c39dc565 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/da67869f766cef01e3126399eb209553c39dc565/tokenize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13672,
12,
896,
1369,
16,
1147,
73,
2045,
33,
1188,
2316,
4672,
328,
2107,
273,
22146,
298,
90,
273,
17545,
5957,
273,
374,
508,
7549,
16,
818,
7549,
273,
533,
18,
26054,
397,
2070,
2187,
533,
18,
16649,
466,
701,
273,
875,
3504,
87,
273,
306,
20,
65,
225,
1323,
404,
30,
4766,
282,
468,
2798,
1879,
2362,
316,
1407,
980,
273,
12023,
1435,
328,
2107,
273,
328,
2107,
397,
404,
949,
16,
943,
273,
374,
16,
562,
12,
1369,
13,
225,
309,
466,
701,
30,
18701,
468,
17545,
5957,
533,
309,
486,
980,
30,
1002,
3155,
668,
16,
315,
12706,
3470,
3309,
17,
1369,
533,
6,
309,
679,
14654,
18,
3072,
12,
1369,
13,
1545,
374,
30,
949,
273,
679,
273,
679,
14654,
18,
266,
564,
63,
20,
6362,
21,
65,
1147,
73,
2045,
12,
5804,
16,
466,
701,
397,
980,
10531,
409,
6487,
609,
1937,
16,
261,
80,
2107,
16,
679,
3631,
980,
13,
466,
701,
273,
875,
469,
30,
466,
701,
273,
466,
701,
397,
980,
1324,
225,
1327,
22146,
298,
90,
422,
374,
471,
486,
17545,
5957,
30,
225,
468,
394,
3021,
309,
486,
980,
30,
898,
1057,
273,
374,
1323,
949,
411,
943,
30,
10402,
468,
6649,
7676,
7983,
309,
980,
63,
917,
65,
422,
296,
4290,
1057,
273,
1057,
397,
404,
1327,
980,
63,
917,
65,
422,
2337,
88,
4278,
1057,
273,
261,
2827,
19,
7032,
1467,
397,
404,
17653,
7032,
1467,
1327,
980,
63,
917,
65,
422,
2337,
74,
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,
13672,
12,
896,
1369,
16,
1147,
73,
2045,
33,
1188,
2316,
4672,
328,
2107,
273,
22146,
298,
90,
273,
17545,
5957,
273,
374,
508,
7549,
16,
818,
7549,
273,
533,
18,
26054,
397,
2070,
2187,
533,
18,
16649,
466,
701,
273,
875,
3504,
87,
273,
306,
20,
65,
225,
1323,
404,
30,
4766,
282,
468,
2798,
1879,
2362,
316,
1407,
980,
273,
12023,
1435,
328,
2107,
273,
328,
2107,
397,
404,
949,
16,
943,
273,
374,
16,
562,
12,
1369,
13,
225,
309,
466,
701,
30,
18701,
468,
17545,
5957,
533,
309,
486,
980,
30,
1002,
3155,
668,
16,
315,
12706,
3470,
3309,
17,
1369,
533,
6,
309,
679,
14654,
18,
3072,
12,
1369,
13,
1545,
374,
30,
2
] |
if self.isSimpleElementDeclaration(op):
|
simpleType = self.isSimpleElementDeclaration(op) if simpleType:
|
'\n%sdef %s(self, request):' % \
|
d9d3337d4084d54d35a9489cf9880e594989841c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/d9d3337d4084d54d35a9489cf9880e594989841c/wsdl2python.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2337,
82,
9,
87,
536,
738,
87,
12,
2890,
16,
590,
13,
2497,
738,
521,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
def logmaker(wsite, welcomed_users): safety = list() rightime = time.localtime(time.time()) year = str(rightime[0]) month = str(rightime[1]) day = str(rightime[2]) if len(month) == 1: month = u'0' + month if wsite.lang == 'it': target = logg + '/' + day + '/' + month + '/' + year else: target = logg + '/' + year + '/' + month + '/' + day page = wikipedia.Page(wsite, target) try: safety.append(page.get()) except wikipedia.NoPage: if wsite.lang == 'it': safety.append(u'[[Categoria:Benvenuto log|{{subst:PAGENAME}}]]\n{|border="2" cellpadding="4" cellspacing="0" style="margin: 0.5em 0.5em 0.5em 1em; padding: 0.5em; background: elif wsite.lang == 'no': safety.append(u'[[Kategori:Velkomstlogg|{{PAGENAME}}]]\n{| class="wikitable"') else: safety.append(u'{|border="2" cellpadding="4" cellspacing="0" style="margin: 0.5em 0.5em 0.5em 1em; padding: 0.5em; background: safety.append('\n!' + usernam) safety.append(u'\n!' + contrib) for found_result in welcomed_users: luserpage = str(found_result[0]) luser = wikipedia.url2link(luserpage, wsite, wsite) edit_count = str(found_result[1]) logtext = u'\n{{WLE|user=%s|contribs=%s}}' % (luser, edit_count) safety.append(logtext) welcomed_users = list() try: page.put(''.join(safety), summ2) return True except wikipedia.EditConflict: wikipedia.output(u'An edit conflict has occured. Pausing for 10 seconds before continuing.') time.sleep(10) page = wikipedia.Page(wsite, target) try: page.put(u''.join(safety), summ2) return True except wikipedia.EditConflict: wikipedia.output(u'Another edit conflict... Skipping...') return False
|
def defineSign(wsite, signPageTitle): #A little function to load the random signatures. signPage = wikipedia.Page(wsite, signPageTitle) signText = signPage.get() reg = "\* ?(.*?)\n" listSign = re.findall(reg, signText) return listSign
|
7ec1f6271a4f088127d5a472e09cba4495a1851a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/7ec1f6271a4f088127d5a472e09cba4495a1851a/welcome.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4426,
2766,
12,
91,
4256,
16,
1573,
1964,
4247,
4672,
468,
37,
12720,
445,
358,
1262,
326,
2744,
14862,
18,
1573,
1964,
273,
21137,
18,
1964,
12,
91,
4256,
16,
1573,
1964,
4247,
13,
1573,
1528,
273,
1573,
1964,
18,
588,
1435,
960,
273,
1548,
14,
692,
27482,
82,
6,
666,
2766,
273,
283,
18,
4720,
454,
12,
1574,
16,
1573,
1528,
13,
327,
666,
2766,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4426,
2766,
12,
91,
4256,
16,
1573,
1964,
4247,
4672,
468,
37,
12720,
445,
358,
1262,
326,
2744,
14862,
18,
1573,
1964,
273,
21137,
18,
1964,
12,
91,
4256,
16,
1573,
1964,
4247,
13,
1573,
1528,
273,
1573,
1964,
18,
588,
1435,
960,
273,
1548,
14,
692,
27482,
82,
6,
666,
2766,
273,
283,
18,
4720,
454,
12,
1574,
16,
1573,
1528,
13,
327,
666,
2766,
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
] |
|
elif 0: pass
|
def _lookup_point(self, x, y): """ Finds the point closest to a screen point if it is within self.threshold Parameters ========== x : float screen x-coordinate y : float screen y-coordinate
|
2857888daec82715ce2c031b01777818af3ae3ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/2857888daec82715ce2c031b01777818af3ae3ae/edit_line.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8664,
67,
1153,
12,
2890,
16,
619,
16,
677,
4672,
3536,
4163,
87,
326,
1634,
9219,
358,
279,
5518,
1634,
309,
518,
353,
3470,
365,
18,
8699,
225,
7012,
422,
1432,
619,
294,
1431,
5518,
619,
17,
29191,
677,
294,
1431,
5518,
677,
17,
29191,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
3536,
4163,
87,
326,
1634,
9219,
358,
279,
5518,
1634,
309,
518,
353,
3470,
365,
18,
8699,
225,
7012,
422,
1432,
619,
294,
1431,
5518,
619,
17,
29191,
677,
294,
1431,
5518,
677,
17,
29191,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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, parent, x=None, check=True, is_gen=False, construct=False):
|
def __init__(self, parent, x=None, check=True, is_gen=False, construct=False):
|
def __init__(self, parent, x=None, check=True, is_gen=False, construct=False): Polynomial.__init__(self, parent, is_gen=is_gen)
|
95344256113633f3acd6280f89285a1bcf7387d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/95344256113633f3acd6280f89285a1bcf7387d9/polynomial_element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
33,
7036,
16,
866,
33,
5510,
16,
353,
67,
4507,
33,
8381,
16,
4872,
33,
8381,
4672,
6730,
13602,
16186,
2738,
972,
12,
2890,
16,
982,
16,
353,
67,
4507,
33,
291,
67,
4507,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
33,
7036,
16,
866,
33,
5510,
16,
353,
67,
4507,
33,
8381,
16,
4872,
33,
8381,
4672,
6730,
13602,
16186,
2738,
972,
12,
2890,
16,
982,
16,
353,
67,
4507,
33,
291,
67,
4507,
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
] |
if reset or not nb.user_exists('admin'):
|
if reset or (not nb.user_exists('admin') and not nb.user_exists('root')):
|
def notebook_twisted(self, directory = 'sage_notebook', port = 8000, address = 'localhost', port_tries = 50, secure = False, reset = False, accounts = False, server_pool = None, ulimit = None, open_viewer = True): if not os.path.exists(directory): os.makedirs(directory) port = int(port) conf = '%s/twistedconf.tac'%directory nb = notebook.load_notebook(directory) if reset or not nb.user_exists('admin'): while True: print "Setting password for the admin user." passwd = getpass.getpass("Enter new password: ") passwd2 = getpass.getpass("Retype new password: ") if passwd != passwd2: print "Sorry, passwords do not match." else: break if reset: nb.user('admin').set_password(passwd) print "Password changed for user 'admin'." else: nb.create_default_users(passwd) print "User admin created with the password you specified." print "\n\n" print "*"*70 print "\n" if secure: print "Login to the SAGE notebook as admin with the password you specified above." if not server_pool is None: nb.set_server_pool(server_pool) if not ulimit is None: nb.set_ulimit(ulimit) nb.set_accounts(accounts) if os.path.exists('%s/nb-older-backup.sobj'%directory): nb._migrate_worksheets() os.unlink('%s/nb-older-backup.sobj'%directory) print "Updating to new format complete." nb.save() del nb def run(port): ## Create the config file if secure: if not os.path.exists(private_pem) or not os.path.exists(public_pem): print "In order to use an SECURE encrypted notebook, you must first run notebook.setup()." print "Now running notebook.setup()" notebook_setup() if not os.path.exists(private_pem) or not os.path.exists(public_pem): print "Failed to setup notebook. Please try notebook.setup() again manually." strport = 'tls:%s:privateKey=%s:certKey=%s'%(port, private_pem, public_pem) else: strport = 'tcp:%s'%port notebook_opts = '"%s",address="%s",port=%s,secure=%s' % (os.path.abspath(directory), address, port, secure) if open_viewer: open_page = "from sage.server.misc import open_page; open_page('%s', %s, %s)"%(address, port, secure) else: open_page = '' config = open(conf, 'w') config.write("""
|
78b0cce242229169d86f9635ac4420a4b379f498 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/78b0cce242229169d86f9635ac4420a4b379f498/run_notebook.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
11246,
25444,
12,
2890,
16,
1867,
282,
273,
296,
87,
410,
67,
24422,
2187,
1756,
3639,
273,
1725,
3784,
16,
1758,
377,
273,
296,
13014,
2187,
1756,
67,
2007,
225,
273,
6437,
16,
8177,
1377,
273,
1083,
16,
2715,
4202,
273,
1083,
16,
9484,
565,
273,
1083,
16,
225,
1438,
67,
6011,
273,
599,
16,
7493,
1038,
1377,
273,
599,
16,
225,
1696,
67,
25256,
273,
1053,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
5149,
4672,
1140,
18,
81,
9477,
10539,
12,
5149,
13,
1756,
273,
509,
12,
655,
13,
2195,
273,
1995,
87,
19,
11246,
25444,
3923,
18,
88,
1077,
11,
9,
5149,
225,
4264,
273,
14718,
18,
945,
67,
24422,
12,
5149,
13,
309,
2715,
578,
261,
902,
4264,
18,
1355,
67,
1808,
2668,
3666,
6134,
471,
486,
4264,
18,
1355,
67,
1808,
2668,
3085,
26112,
30,
1323,
1053,
30,
1172,
315,
5568,
2201,
364,
326,
3981,
729,
1199,
19093,
273,
31889,
18,
588,
5466,
2932,
10237,
394,
2201,
30,
9369,
19093,
22,
273,
31889,
18,
588,
5466,
2932,
54,
5872,
394,
2201,
30,
9369,
309,
19093,
480,
19093,
22,
30,
1172,
315,
28898,
16,
24210,
741,
486,
845,
1199,
469,
30,
898,
309,
2715,
30,
4264,
18,
1355,
2668,
3666,
16063,
542,
67,
3664,
12,
24002,
13,
1172,
315,
3913,
3550,
364,
729,
296,
3666,
14550,
469,
30,
4264,
18,
2640,
67,
1886,
67,
5577,
12,
24002,
13,
1172,
315,
1299,
3981,
2522,
598,
326,
2201,
1846,
1269,
1199,
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,
14718,
67,
11246,
25444,
12,
2890,
16,
1867,
282,
273,
296,
87,
410,
67,
24422,
2187,
1756,
3639,
273,
1725,
3784,
16,
1758,
377,
273,
296,
13014,
2187,
1756,
67,
2007,
225,
273,
6437,
16,
8177,
1377,
273,
1083,
16,
2715,
4202,
273,
1083,
16,
9484,
565,
273,
1083,
16,
225,
1438,
67,
6011,
273,
599,
16,
7493,
1038,
1377,
273,
599,
16,
225,
1696,
67,
25256,
273,
1053,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
5149,
4672,
1140,
18,
81,
9477,
10539,
12,
5149,
13,
1756,
273,
509,
12,
655,
13,
2195,
273,
1995,
87,
19,
11246,
25444,
3923,
18,
88,
1077,
11,
9,
5149,
225,
4264,
273,
14718,
18,
945,
67,
24422,
12,
5149,
2
] |
occurrence of '$' followed by a name, or a name enclosed in braces, is considered a variable. Every variable is substituted by the value found in the 'local_vars' dictionary, or in 'os.environ' if it's not in 'local_vars'. 'os.environ' is first checked/ augmented to guarantee that it contains certain values: see '_check_environ()'. Raise ValueError for any variables not found in either 'local_vars' or 'os.environ'.
|
occurrence of '$' followed by a name is considered a variable, and variable is substituted by the value found in the 'local_vars' dictionary, or in 'os.environ' if it's not in 'local_vars'. 'os.environ' is first checked/augmented to guarantee that it contains certain values: see 'check_environ()'. Raise ValueError for any variables not found in either 'local_vars' or 'os.environ'.
|
def subst_vars (str, local_vars): """Perform shell/Perl-style variable substitution on 'string'. Every occurrence of '$' followed by a name, or a name enclosed in braces, is considered a variable. Every variable is substituted by the value found in the 'local_vars' dictionary, or in 'os.environ' if it's not in 'local_vars'. 'os.environ' is first checked/ augmented to guarantee that it contains certain values: see '_check_environ()'. Raise ValueError for any variables not found in either 'local_vars' or 'os.environ'. """ check_environ() def _subst (match, local_vars=local_vars): var_name = match.group(1) if local_vars.has_key(var_name): return str(local_vars[var_name]) else: return os.environ[var_name] return re.sub(r'\$([a-zA-Z_][a-zA-Z_0-9]*)', _subst, str)
|
940e6ca14112cd3890ce05e3a9374535dc165ea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/940e6ca14112cd3890ce05e3a9374535dc165ea8/util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27750,
67,
4699,
261,
701,
16,
1191,
67,
4699,
4672,
3536,
4990,
5972,
19,
2173,
80,
17,
4060,
2190,
12785,
603,
296,
1080,
10332,
225,
16420,
13083,
434,
11874,
10860,
635,
279,
508,
353,
7399,
279,
2190,
16,
471,
2190,
353,
7461,
4817,
635,
326,
460,
1392,
316,
326,
296,
3729,
67,
4699,
11,
3880,
16,
578,
316,
296,
538,
18,
28684,
11,
309,
518,
1807,
486,
316,
296,
3729,
67,
4699,
10332,
296,
538,
18,
28684,
11,
353,
1122,
5950,
19,
6480,
475,
329,
358,
18779,
716,
518,
1914,
8626,
924,
30,
2621,
296,
1893,
67,
28684,
1435,
10332,
225,
20539,
2068,
364,
1281,
3152,
486,
1392,
316,
3344,
296,
3729,
67,
4699,
11,
578,
296,
538,
18,
28684,
10332,
3536,
866,
67,
28684,
1435,
1652,
389,
1717,
334,
261,
1916,
16,
1191,
67,
4699,
33,
3729,
67,
4699,
4672,
569,
67,
529,
273,
845,
18,
1655,
12,
21,
13,
309,
1191,
67,
4699,
18,
5332,
67,
856,
12,
1401,
67,
529,
4672,
327,
609,
12,
3729,
67,
4699,
63,
1401,
67,
529,
5717,
469,
30,
327,
1140,
18,
28684,
63,
1401,
67,
529,
65,
225,
327,
283,
18,
1717,
12,
86,
8314,
8,
3816,
69,
17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
2190,
12785,
603,
296,
1080,
10332,
225,
16420,
13083,
434,
11874,
10860,
635,
279,
508,
353,
7399,
279,
2190,
16,
471,
2190,
353,
7461,
4817,
635,
326,
460,
1392,
316,
326,
296,
3729,
67,
4699,
11,
3880,
16,
578,
316,
296,
538,
18,
28684,
11,
309,
518,
1807,
486,
316,
296,
3729,
67,
4699,
10332,
296,
538,
18,
28684,
11,
353,
1122,
5950,
19,
6480,
475,
329,
358,
18779,
716,
518,
1914,
8626,
924,
30,
2621,
296,
1893,
67,
28684,
1435,
10332,
225,
20539,
2068,
364,
1281,
3152,
486,
1392,
316,
3344,
296,
3729,
67,
4699,
11,
578,
296,
538,
2
] |
for uid in uids and (user not in users):
|
for uid in uids:
|
def get_moderatorUserObjects(self): """ Get the user objects corresponding to the moderator, assuming we can. """ member_groups = self.getProperty('moderator_groups', []) uids = [] for gid in member_groups: group = self.acl_users.getGroupById(gid) uids += group.getUsers() uids += self.getProperty('moderator_members', []) users = [] for uid in uids and (user not in users): user = self.acl_users.getUser(uid) if user: users.append(user) return users
|
6cd237344be4b0794ee3a67c1bcc57ea94657315 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6274/6cd237344be4b0794ee3a67c1bcc57ea94657315/XWFMailingList.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1711,
7385,
1299,
4710,
12,
2890,
4672,
3536,
968,
326,
729,
2184,
4656,
358,
326,
681,
7385,
16,
15144,
732,
848,
18,
225,
3536,
3140,
67,
4650,
273,
365,
18,
588,
1396,
2668,
1711,
7385,
67,
4650,
2187,
5378,
13,
21550,
273,
5378,
364,
11399,
316,
3140,
67,
4650,
30,
1041,
273,
365,
18,
10150,
67,
5577,
18,
588,
1114,
5132,
12,
15780,
13,
21550,
1011,
1041,
18,
588,
6588,
1435,
225,
21550,
1011,
365,
18,
588,
1396,
2668,
1711,
7385,
67,
7640,
2187,
5378,
13,
225,
3677,
273,
5378,
364,
4555,
316,
21550,
30,
729,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1711,
7385,
1299,
4710,
12,
2890,
4672,
3536,
968,
326,
729,
2184,
4656,
358,
326,
681,
7385,
16,
15144,
732,
848,
18,
225,
3536,
3140,
67,
4650,
273,
365,
18,
588,
1396,
2668,
1711,
7385,
67,
4650,
2187,
5378,
13,
21550,
273,
5378,
364,
11399,
316,
3140,
67,
4650,
30,
1041,
273,
365,
18,
10150,
67,
5577,
18,
588,
1114,
5132,
12,
15780,
13,
21550,
1011,
1041,
18,
588,
6588,
1435,
225,
21550,
1011,
365,
18,
588,
1396,
2668,
1711,
7385,
67,
7640,
2187,
5378,
13,
225,
3677,
273,
5378,
364,
4555,
316,
21550,
30,
729,
273,
365,
18,
10150,
67,
5577,
18,
588,
1299,
12,
1911,
13,
309,
729,
30,
3677,
18,
6923,
12,
1355,
2
] |
form_tool.setValidators("base_edit", ["validate_base"])
|
form_tool.setValidators("base_metadata", ["validate_base"])
|
def install_validation(self, out, types): form_tool = getToolByName(self, 'portal_form') type_tool = getToolByName(self, 'portal_types') # No validation on references form_tool.setValidators('reference_edit', []) # Default validation for types form_tool.setValidators("base_edit", ["validate_base"]) form_tool.setValidators("base_edit", ["validate_base"]) form_tool.setValidators("base_translation", ["validate_base"]) form_tool.setValidators("manage_translations_form", ["validate_translations"])
|
dff4e5cfa787567631fcb94b61b972744571eeac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/dff4e5cfa787567631fcb94b61b972744571eeac/utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
8685,
12,
2890,
16,
596,
16,
1953,
4672,
646,
67,
6738,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
687,
6134,
618,
67,
6738,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
2352,
6134,
225,
468,
2631,
3379,
603,
5351,
646,
67,
6738,
18,
542,
19420,
2668,
6180,
67,
4619,
2187,
5378,
13,
225,
468,
2989,
3379,
364,
1953,
646,
67,
6738,
18,
542,
19420,
2932,
1969,
67,
4165,
3113,
8247,
5662,
67,
1969,
6,
5717,
646,
67,
6738,
18,
542,
19420,
2932,
1969,
67,
4165,
3113,
8247,
5662,
67,
1969,
6,
5717,
646,
67,
6738,
18,
542,
19420,
2932,
1969,
67,
10173,
3113,
8247,
5662,
67,
1969,
6,
5717,
646,
67,
6738,
18,
542,
19420,
2932,
12633,
67,
13457,
67,
687,
3113,
8247,
5662,
67,
13457,
6,
5717,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
8685,
12,
2890,
16,
596,
16,
1953,
4672,
646,
67,
6738,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
687,
6134,
618,
67,
6738,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
2352,
6134,
225,
468,
2631,
3379,
603,
5351,
646,
67,
6738,
18,
542,
19420,
2668,
6180,
67,
4619,
2187,
5378,
13,
225,
468,
2989,
3379,
364,
1953,
646,
67,
6738,
18,
542,
19420,
2932,
1969,
67,
4165,
3113,
8247,
5662,
67,
1969,
6,
5717,
646,
67,
6738,
18,
542,
19420,
2932,
1969,
67,
4165,
3113,
8247,
5662,
67,
1969,
6,
5717,
646,
67,
6738,
18,
542,
19420,
2932,
1969,
67,
10173,
3113,
8247,
5662,
67,
1969,
6,
5717,
646,
67,
2
] |
return self.open_https(newurl)
|
return self.open_https(newurl, data)
|
def retry_https_basic_auth(self, url, realm, data=None): host, selector = splithost(url) i = host.find('@') + 1 host = host[i:] user, passwd = self.get_user_passwd(host, realm, i) if not (user or passwd): return None host = user + ':' + passwd + '@' + host newurl = '//' + host + selector return self.open_https(newurl)
|
c49129f55e53fbee7e8e0a0ce7e9ed3e2f1e5776 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c49129f55e53fbee7e8e0a0ce7e9ed3e2f1e5776/urllib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3300,
67,
4528,
67,
13240,
67,
1944,
12,
2890,
16,
880,
16,
11319,
16,
501,
33,
7036,
4672,
1479,
16,
3451,
273,
6121,
483,
669,
12,
718,
13,
277,
273,
1479,
18,
4720,
2668,
36,
6134,
397,
404,
1479,
273,
1479,
63,
77,
26894,
729,
16,
19093,
273,
365,
18,
588,
67,
1355,
67,
24002,
12,
2564,
16,
11319,
16,
277,
13,
309,
486,
261,
1355,
578,
19093,
4672,
327,
599,
1479,
273,
729,
397,
3921,
397,
19093,
397,
9175,
397,
1479,
394,
718,
273,
19696,
397,
1479,
397,
3451,
327,
365,
18,
3190,
67,
4528,
12,
2704,
718,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3300,
67,
4528,
67,
13240,
67,
1944,
12,
2890,
16,
880,
16,
11319,
16,
501,
33,
7036,
4672,
1479,
16,
3451,
273,
6121,
483,
669,
12,
718,
13,
277,
273,
1479,
18,
4720,
2668,
36,
6134,
397,
404,
1479,
273,
1479,
63,
77,
26894,
729,
16,
19093,
273,
365,
18,
588,
67,
1355,
67,
24002,
12,
2564,
16,
11319,
16,
277,
13,
309,
486,
261,
1355,
578,
19093,
4672,
327,
599,
1479,
273,
729,
397,
3921,
397,
19093,
397,
9175,
397,
1479,
394,
718,
273,
19696,
397,
1479,
397,
3451,
327,
365,
18,
3190,
67,
4528,
12,
2704,
718,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def by_twos( self, it ): iterator = iter( it ) try: while True: yield iterator.next(),iterator.next() except StopIteration, err: pass
|
def by_twos( self, it ): iterator = iter( it ) try: while True: yield iterator.next(),iterator.next() except StopIteration, err: pass
|
9416b3067be8e9ced457297dd4a3aef6d1612b0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1545/9416b3067be8e9ced457297dd4a3aef6d1612b0f/spike.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
635,
67,
11246,
538,
12,
365,
16,
518,
262,
30,
2775,
273,
1400,
12,
518,
262,
775,
30,
1323,
1053,
30,
2824,
2775,
18,
4285,
9334,
9838,
18,
4285,
1435,
1335,
16179,
16,
393,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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365,
16,
518,
262,
30,
2775,
273,
1400,
12,
518,
262,
775,
30,
1323,
1053,
30,
2824,
2775,
18,
4285,
9334,
9838,
18,
4285,
1435,
1335,
16179,
16,
393,
30,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
and self.verbose == other.verbose
|
and self.verbose == other.verbose \ and self.kshp == other.kshp
|
def __eq__(self, other): return type(self) == type(other) \ and self.border_mode == other.border_mode \ and self.subsample == other.subsample \ and self.logical_img_hw == other.logical_img_hw \ and self.logical_kern_hw == other.logical_kern_hw \ and self.logical_kern_align_top == other.logical_kern_align_top \ and self.version == other.version \ and self.verbose == other.verbose
|
25d6298fb7a41b613d7ad6fa9fe9f774bbabba71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/25d6298fb7a41b613d7ad6fa9fe9f774bbabba71/blas.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
327,
618,
12,
2890,
13,
422,
618,
12,
3011,
13,
521,
471,
365,
18,
8815,
67,
3188,
422,
1308,
18,
8815,
67,
3188,
521,
471,
365,
18,
1717,
6358,
422,
1308,
18,
1717,
6358,
521,
471,
365,
18,
20300,
67,
6081,
67,
20701,
422,
1308,
18,
20300,
67,
6081,
67,
20701,
521,
471,
365,
18,
20300,
67,
79,
8865,
67,
20701,
422,
1308,
18,
20300,
67,
79,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
327,
618,
12,
2890,
13,
422,
618,
12,
3011,
13,
521,
471,
365,
18,
8815,
67,
3188,
422,
1308,
18,
8815,
67,
3188,
521,
471,
365,
18,
1717,
6358,
422,
1308,
18,
1717,
6358,
521,
471,
365,
18,
20300,
67,
6081,
67,
20701,
422,
1308,
18,
20300,
67,
6081,
67,
20701,
521,
471,
365,
18,
20300,
67,
79,
8865,
67,
20701,
422,
1308,
18,
20300,
67,
79,
8865,
67,
20701,
521,
471,
365,
18,
20300,
67,
79,
8865,
67,
7989,
67,
3669,
422,
1308,
18,
20300,
67,
79,
8865,
67,
7989,
67,
3669,
521,
471,
365,
18,
1589,
422,
1308,
18,
1589,
521,
471,
365,
18,
11369,
422,
1308,
18,
2
] |
patt = re.compile("^\s+Table\s+C.[0-9a-z-]+\s*$")
|
patt = re.compile("^\s+Table\s+C.[0-9A-Za-z-]+\s*$")
|
def IsStartTable(self,s): #patt = re.compile("^\s+Table C[0-9a-z\.-]+.*\s+$") patt = re.compile("^\s+Table\s+C.[0-9a-z-]+\s*$") m = patt.match(s) assert self._IsInTable != True self._IsInTable = False if(m): print "Start", s self._IsInTable = True return True return False
|
1d98d58968a693abcf40bf18e15775b8ec3b67d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13995/1d98d58968a693abcf40bf18e15775b8ec3b67d8/ParseAttributes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
1685,
1388,
12,
2890,
16,
87,
4672,
468,
84,
4558,
273,
283,
18,
11100,
2932,
17134,
87,
15,
1388,
385,
63,
20,
17,
29,
69,
17,
94,
5834,
23238,
4509,
64,
87,
26020,
7923,
28560,
273,
283,
18,
11100,
2932,
17134,
87,
15,
1388,
64,
87,
15,
39,
18,
63,
20,
17,
29,
37,
17,
15948,
17,
94,
23238,
64,
87,
26788,
7923,
312,
273,
28560,
18,
1916,
12,
87,
13,
1815,
365,
6315,
2520,
382,
1388,
480,
1053,
365,
6315,
2520,
382,
1388,
273,
1083,
309,
12,
81,
4672,
1172,
315,
1685,
3113,
272,
365,
6315,
2520,
382,
1388,
273,
1053,
327,
1053,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
1685,
1388,
12,
2890,
16,
87,
4672,
468,
84,
4558,
273,
283,
18,
11100,
2932,
17134,
87,
15,
1388,
385,
63,
20,
17,
29,
69,
17,
94,
5834,
23238,
4509,
64,
87,
26020,
7923,
28560,
273,
283,
18,
11100,
2932,
17134,
87,
15,
1388,
64,
87,
15,
39,
18,
63,
20,
17,
29,
37,
17,
15948,
17,
94,
23238,
64,
87,
26788,
7923,
312,
273,
28560,
18,
1916,
12,
87,
13,
1815,
365,
6315,
2520,
382,
1388,
480,
1053,
365,
6315,
2520,
382,
1388,
273,
1083,
309,
12,
81,
4672,
1172,
315,
1685,
3113,
272,
365,
6315,
2520,
382,
1388,
273,
1053,
327,
1053,
327,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
packageIds = packages.keys()
|
def _optimizePackages(self, packages, parts, variants, minPackageSize, minPackageSizeForUnshared): # Support for merging small packages # The first common package before the selected package between two # or more parts is allowed to merge with. As the package which should be merged # may have requirements, these must be solved. The easiest way to be sure regarding # this issue, is to look out for another common package.
|
5071c7db0f61dffe1c1382f6368e86a563d2ceb3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/5071c7db0f61dffe1c1382f6368e86a563d2ceb3/PartBuilder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
29155,
11425,
12,
2890,
16,
5907,
16,
2140,
16,
12935,
16,
1131,
2261,
1225,
16,
1131,
2261,
1225,
1290,
984,
11574,
4672,
468,
13619,
364,
17256,
5264,
5907,
468,
1021,
1122,
2975,
2181,
1865,
326,
3170,
2181,
3086,
2795,
468,
578,
1898,
2140,
353,
2935,
358,
2691,
598,
18,
2970,
326,
2181,
1492,
1410,
506,
5384,
468,
2026,
1240,
8433,
16,
4259,
1297,
506,
3704,
2155,
18,
1021,
7264,
77,
395,
4031,
358,
506,
3071,
29012,
468,
333,
5672,
16,
353,
358,
2324,
596,
364,
4042,
2975,
2181,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
29155,
11425,
12,
2890,
16,
5907,
16,
2140,
16,
12935,
16,
1131,
2261,
1225,
16,
1131,
2261,
1225,
1290,
984,
11574,
4672,
468,
13619,
364,
17256,
5264,
5907,
468,
1021,
1122,
2975,
2181,
1865,
326,
3170,
2181,
3086,
2795,
468,
578,
1898,
2140,
353,
2935,
358,
2691,
598,
18,
2970,
326,
2181,
1492,
1410,
506,
5384,
468,
2026,
1240,
8433,
16,
4259,
1297,
506,
3704,
2155,
18,
1021,
7264,
77,
395,
4031,
358,
506,
3071,
29012,
468,
333,
5672,
16,
353,
358,
2324,
596,
364,
4042,
2975,
2181,
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
] |
|
if type(l.members) is type([]):
|
if type(l.members) is ListType:
|
def PreferStored(oldname, newname, newdefault=uniqueval, l=l, state=stored_state): """Use specified old value if new value does is not in stored state.
|
994228ca3f4154246e0b2cb8a8e4cb43e62bb866 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/994228ca3f4154246e0b2cb8a8e4cb43e62bb866/versions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2962,
586,
18005,
12,
1673,
529,
16,
26722,
16,
394,
1886,
33,
6270,
1125,
16,
328,
33,
80,
16,
919,
33,
22601,
67,
2019,
4672,
3536,
3727,
1269,
1592,
460,
309,
394,
460,
1552,
353,
486,
316,
4041,
919,
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,
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981,
30,
1652,
2962,
586,
18005,
12,
1673,
529,
16,
26722,
16,
394,
1886,
33,
6270,
1125,
16,
328,
33,
80,
16,
919,
33,
22601,
67,
2019,
4672,
3536,
3727,
1269,
1592,
460,
309,
394,
460,
1552,
353,
486,
316,
4041,
919,
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
] |
* If obj is a numpy.ndarray with compatible shape, a copy of obj with the given dtype, order and class vigra.%(name)s is created.
|
* If obj is another subtype of numpy.ndarray with compatible shape, a *transposed* copy of obj with the given dtype, order and class vigra.%(name)s is created. Transposition changes the order of the spatial dimensions from (x,y) or (z,y,x) to (x,y) and (x,y,z) respectively. The channel dimension is assumed to be the last dimension and remains in that position. (Use numpy.rollaxis() to adjust the input if necessary.) transform [y,x] indexing order into VIGRA's [x,y] convention.)
|
def _array_docstring_(name, shape, compat): return ''' Constructor: .. method:: %(name)s(obj, dtype=numpy.float32, order='V', init = True, value = None) :param obj: a data or shape object (see below) :param dtype: desired element type :param order: desired memory layout (see below) :param init: True: initialize the image with zeros; False: do not initialize the image :type init: boolean :param value: initialize the image with this value (overrides init) :type value: convertible to dtype **obj** may be one of the following * If obj is a vigra.%(name)s or a subclass, a copy of obj with the given dtype and order is created, and obj's class is transferred. * If obj is a numpy.ndarray with compatible shape, a copy of obj with the given dtype, order and class vigra.%(name)s is created. * If obj is a sequence, it is interpreted as a shape. When the shape is compatible, a new vigra.%(name)s with the given dtype and order is created. * Otherwise, or if the shape is not compatible, an exception is raised.
|
c8c5e8df5cd356966ecdb055ae2032453b9d17b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12582/c8c5e8df5cd356966ecdb055ae2032453b9d17b0/arraytypes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1126,
67,
24675,
67,
12,
529,
16,
2179,
16,
4796,
4672,
327,
9163,
11417,
30,
225,
6116,
707,
2866,
8975,
529,
13,
87,
12,
2603,
16,
3182,
33,
15974,
18,
5659,
1578,
16,
1353,
2218,
58,
2187,
1208,
273,
1053,
16,
460,
273,
599,
13,
225,
294,
891,
1081,
30,
279,
501,
578,
2179,
733,
261,
5946,
5712,
13,
294,
891,
3182,
30,
6049,
930,
618,
294,
891,
1353,
30,
6049,
3778,
3511,
261,
5946,
5712,
13,
294,
891,
1208,
30,
1053,
30,
4046,
326,
1316,
598,
4922,
31,
1083,
30,
741,
486,
4046,
326,
1316,
294,
723,
1208,
30,
1250,
294,
891,
460,
30,
4046,
326,
1316,
598,
333,
460,
261,
19775,
1208,
13,
294,
723,
460,
30,
1765,
1523,
358,
3182,
225,
2826,
2603,
636,
2026,
506,
1245,
434,
326,
3751,
225,
380,
971,
1081,
353,
279,
331,
360,
354,
7866,
12,
529,
13,
87,
578,
279,
10177,
16,
279,
1610,
434,
1081,
598,
326,
864,
3182,
471,
1353,
353,
2522,
16,
471,
1081,
1807,
667,
353,
906,
4193,
18,
380,
971,
1081,
353,
4042,
12308,
434,
3972,
18,
25681,
598,
7318,
2179,
16,
279,
380,
2338,
7423,
14,
1610,
434,
1081,
598,
326,
864,
3182,
16,
1353,
471,
667,
331,
360,
354,
7866,
12,
529,
13,
87,
353,
2522,
18,
2604,
3276,
3478,
326,
1353,
434,
326,
15010,
5769,
628,
261,
92,
16,
93,
13,
578,
261,
94,
16,
93,
16,
92,
13,
358,
261,
92,
16,
93,
13,
471,
261,
92,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1126,
67,
24675,
67,
12,
529,
16,
2179,
16,
4796,
4672,
327,
9163,
11417,
30,
225,
6116,
707,
2866,
8975,
529,
13,
87,
12,
2603,
16,
3182,
33,
15974,
18,
5659,
1578,
16,
1353,
2218,
58,
2187,
1208,
273,
1053,
16,
460,
273,
599,
13,
225,
294,
891,
1081,
30,
279,
501,
578,
2179,
733,
261,
5946,
5712,
13,
294,
891,
3182,
30,
6049,
930,
618,
294,
891,
1353,
30,
6049,
3778,
3511,
261,
5946,
5712,
13,
294,
891,
1208,
30,
1053,
30,
4046,
326,
1316,
598,
4922,
31,
1083,
30,
741,
486,
4046,
326,
1316,
294,
723,
1208,
30,
1250,
294,
891,
460,
30,
4046,
326,
1316,
598,
333,
460,
261,
19775,
1208,
13,
294,
723,
2
] |
if (not sys.argv[i] in allowed_commandline_options) and (not i in self.processedArgs):
|
if (not sys.argv[i] in self.allowed_commandline_options) and \ (not i in self.processedArgs):
|
def getParam(self, noDialog=None, nCol = 1, checkArgs=True, useTkinter=None, verbose=False): ''' Get parameters from commandline option, configuration file, a parameter input dialog (if ``tkInter`` or ``wxPython`` is available and if *noDialog* is ``False``), and from interactive user input. ''' if noDialog in [True, False]: self.noDialog = noDialog elif '--noDialog' in sys.argv: self.noDialog = True else: self.noDialog = False # if useTkinter in [True, False]: self.useTkinter = useTkinter elif '--useTkinter' in sys.argv: self.useTkinter = True else: self.useTkinter = None # first try to use wxPython if not self.useTkinter: try: # wxPython might not exist imp.find_module('wx') except: self.useWxPython = False else: self.useWxPython = True # then tkInter if self.useTkinter or not self.useWxPython: # Tkinter should almost always exists, but ... try: imp.find_module('Tkinter') except: print "Tkinter can not be loaded. Please check your Python installation." self.useTkinter = False else: self.useTkinter = True # if self.noDialog or '-h' in sys.argv[1:] or '--help' in sys.argv[1:] \ or True not in map(lambda x:x.has_key('label'), self.options): return self.__termGetParam(False, True) else: # first assign values from non-GUI sources self.processedArgs = [] if self.configFile is not None: self.__getParamConfigFile() self.__getParamLongArg() self.__getParamShortArg() # for opt in self.options: if opt.has_key('separator'): continue if opt['value'] is None and opt.has_key('default'): opt['value'] = opt['default'] # look if any argument was not processed for i in range(1, len(sys.argv)): if (not sys.argv[i] in allowed_commandline_options) and (not i in self.processedArgs): raise exceptions.ValueError("Unprocessed command line argument: " + sys.argv[i]) # call dialog title = os.path.split(sys.argv[0])[-1] if self.useTkinter: return _tkParamDialog(self.options, title, self.doc, self.details, nCol).getParam() elif self.useWxPython: return _wxParamDialog(self.options, title, self.doc, self.details, nCol).getParam() else: return self.__termGetParam(self.options, False, True) return False
|
84f4cb18ad1ca1b3b2af57319388a364da1f8f6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/84f4cb18ad1ca1b3b2af57319388a364da1f8f6a/simuOpt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9027,
12,
2890,
16,
1158,
6353,
33,
7036,
16,
290,
914,
273,
404,
16,
866,
2615,
33,
5510,
16,
999,
56,
79,
2761,
33,
7036,
16,
3988,
33,
8381,
4672,
9163,
968,
1472,
628,
28305,
1456,
16,
1664,
585,
16,
279,
1569,
810,
6176,
261,
430,
12176,
16099,
2465,
10335,
578,
12176,
27226,
15774,
10335,
353,
2319,
471,
309,
380,
2135,
6353,
14,
353,
12176,
8381,
10335,
3631,
471,
628,
12625,
729,
810,
18,
9163,
309,
1158,
6353,
316,
306,
5510,
16,
1083,
14542,
365,
18,
2135,
6353,
273,
1158,
6353,
1327,
3534,
2135,
6353,
11,
316,
2589,
18,
19485,
30,
365,
18,
2135,
6353,
273,
1053,
469,
30,
365,
18,
2135,
6353,
273,
1083,
468,
309,
999,
56,
79,
2761,
316,
306,
5510,
16,
1083,
14542,
365,
18,
1202,
56,
79,
2761,
273,
999,
56,
79,
2761,
1327,
3534,
1202,
56,
79,
2761,
11,
316,
2589,
18,
19485,
30,
365,
18,
1202,
56,
79,
2761,
273,
1053,
469,
30,
365,
18,
1202,
56,
79,
2761,
273,
599,
468,
1122,
775,
358,
999,
7075,
15774,
309,
486,
365,
18,
1202,
56,
79,
2761,
30,
775,
30,
468,
7075,
15774,
4825,
486,
1005,
1646,
18,
4720,
67,
2978,
2668,
27226,
6134,
1335,
30,
365,
18,
1202,
59,
92,
15774,
273,
1083,
469,
30,
365,
18,
1202,
59,
92,
15774,
273,
1053,
468,
1508,
13030,
2465,
309,
365,
18,
1202,
56,
79,
2761,
578,
486,
365,
18,
1202,
59,
92,
15774,
30,
468,
399,
79,
2761,
1410,
23889,
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,
9027,
12,
2890,
16,
1158,
6353,
33,
7036,
16,
290,
914,
273,
404,
16,
866,
2615,
33,
5510,
16,
999,
56,
79,
2761,
33,
7036,
16,
3988,
33,
8381,
4672,
9163,
968,
1472,
628,
28305,
1456,
16,
1664,
585,
16,
279,
1569,
810,
6176,
261,
430,
12176,
16099,
2465,
10335,
578,
12176,
27226,
15774,
10335,
353,
2319,
471,
309,
380,
2135,
6353,
14,
353,
12176,
8381,
10335,
3631,
471,
628,
12625,
729,
810,
18,
9163,
309,
1158,
6353,
316,
306,
5510,
16,
1083,
14542,
365,
18,
2135,
6353,
273,
1158,
6353,
1327,
3534,
2135,
6353,
11,
316,
2589,
18,
19485,
30,
365,
18,
2135,
6353,
273,
1053,
469,
30,
365,
18,
2135,
6353,
273,
1083,
468,
309,
999,
2
] |
if self.input.get('details'):
|
if self.input.get('details', '').lower() == 'true':
|
def after_request(self): if self.output: d = simplejson.loads(self.output)
|
83bddfbaf490bbdf1b456ce5c277c4d80c21d9ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/83bddfbaf490bbdf1b456ce5c277c4d80c21d9ca/adapter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
2293,
12,
2890,
4672,
309,
365,
18,
2844,
30,
302,
273,
4143,
1977,
18,
17135,
12,
2890,
18,
2844,
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,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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: version.save(absolute_version_path, quality=VERSION_QUALITY, optimize=(os.path.splitext(version_path)[1].lower() != '.gif')) except IOError: version.save(absolute_version_path, quality=VERSION_QUALITY)
|
if version: try: version.save(absolute_version_path, quality=VERSION_QUALITY, optimize=(os.path.splitext(version_path)[1].lower() != '.gif')) except IOError: version.save(absolute_version_path, quality=VERSION_QUALITY) else: pass
|
def version_generator(value, version_prefix, force=None): """ Generate Version for an Image. value has to be a serverpath relative to MEDIA_ROOT. """ # PIL's Error "Suspension not allowed here" work around: # s. http://mail.python.org/pipermail/image-sig/1999-August/000816.html if STRICT_PIL: from PIL import ImageFile else: try: from PIL import ImageFile except ImportError: import ImageFile ImageFile.MAXBLOCK = IMAGE_MAXBLOCK # default is 64k try: im = Image.open(smart_str(os.path.join(MEDIA_ROOT, value))) version_path = get_version_path(value, version_prefix) absolute_version_path = smart_str(os.path.join(MEDIA_ROOT, version_path)) version_dir = os.path.split(absolute_version_path)[0] if not os.path.isdir(version_dir): os.makedirs(version_dir) os.chmod(version_dir, 0775) version = scale_and_crop(im, VERSIONS[version_prefix]['width'], VERSIONS[version_prefix]['height'], VERSIONS[version_prefix]['opts']) try: version.save(absolute_version_path, quality=VERSION_QUALITY, optimize=(os.path.splitext(version_path)[1].lower() != '.gif')) except IOError: version.save(absolute_version_path, quality=VERSION_QUALITY) return version_path except: return None
|
d1cb694a85d6f04c748c9ab0b9564be7f004377d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12975/d1cb694a85d6f04c748c9ab0b9564be7f004377d/functions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1177,
67,
8812,
12,
1132,
16,
1177,
67,
3239,
16,
2944,
33,
7036,
4672,
3536,
6654,
4049,
364,
392,
3421,
18,
460,
711,
358,
506,
279,
1438,
803,
3632,
358,
26312,
67,
9185,
18,
3536,
225,
468,
29407,
1807,
1068,
315,
55,
407,
84,
1451,
486,
2935,
2674,
6,
1440,
6740,
30,
468,
272,
18,
1062,
2207,
4408,
18,
8103,
18,
3341,
19,
7259,
457,
4408,
19,
2730,
17,
7340,
19,
21,
11984,
17,
37,
637,
641,
19,
3784,
28,
2313,
18,
2620,
309,
2347,
2259,
1268,
67,
1102,
48,
30,
628,
29407,
1930,
3421,
812,
469,
30,
775,
30,
628,
29407,
1930,
3421,
812,
1335,
11308,
30,
1930,
3421,
812,
3421,
812,
18,
6694,
11403,
273,
10757,
67,
6694,
11403,
468,
805,
353,
5178,
79,
225,
775,
30,
709,
273,
3421,
18,
3190,
12,
26416,
67,
701,
12,
538,
18,
803,
18,
5701,
12,
26368,
67,
9185,
16,
460,
20349,
1177,
67,
803,
273,
336,
67,
1589,
67,
803,
12,
1132,
16,
1177,
67,
3239,
13,
4967,
67,
1589,
67,
803,
273,
13706,
67,
701,
12,
538,
18,
803,
18,
5701,
12,
26368,
67,
9185,
16,
1177,
67,
803,
3719,
1177,
67,
1214,
273,
1140,
18,
803,
18,
4939,
12,
12547,
67,
1589,
67,
803,
25146,
20,
65,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
1589,
67,
1214,
4672,
1140,
18,
81,
9477,
10539,
12,
1589,
67,
1214,
13,
1140,
18,
343,
1711,
12,
1589,
67,
1214,
16,
374,
27714,
13,
1177,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1177,
67,
8812,
12,
1132,
16,
1177,
67,
3239,
16,
2944,
33,
7036,
4672,
3536,
6654,
4049,
364,
392,
3421,
18,
460,
711,
358,
506,
279,
1438,
803,
3632,
358,
26312,
67,
9185,
18,
3536,
225,
468,
29407,
1807,
1068,
315,
55,
407,
84,
1451,
486,
2935,
2674,
6,
1440,
6740,
30,
468,
272,
18,
1062,
2207,
4408,
18,
8103,
18,
3341,
19,
7259,
457,
4408,
19,
2730,
17,
7340,
19,
21,
11984,
17,
37,
637,
641,
19,
3784,
28,
2313,
18,
2620,
309,
2347,
2259,
1268,
67,
1102,
48,
30,
628,
29407,
1930,
3421,
812,
469,
30,
775,
30,
628,
29407,
1930,
3421,
812,
1335,
11308,
30,
1930,
3421,
812,
3421,
812,
18,
6694,
11403,
273,
10757,
2
] |
if tarinfo.chksum not in calc_chksums(buf): self._dbg(1, "tarfile: Bad Checksum %r" % tarinfo.name)
|
def next(self): """Return the next member of the archive as a TarInfo object, when TarFile is opened for reading. Return None if there is no more available. """ self._check("ra") if self.firstmember is not None: m = self.firstmember self.firstmember = None return m
|
fd5733053dc6a088a58dd9de2321ef1c14fb7cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fd5733053dc6a088a58dd9de2321ef1c14fb7cf4/tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
3536,
990,
326,
1024,
3140,
434,
326,
5052,
487,
279,
20334,
966,
733,
16,
1347,
20334,
812,
353,
10191,
364,
6453,
18,
2000,
599,
309,
1915,
353,
1158,
1898,
2319,
18,
3536,
365,
6315,
1893,
2932,
354,
7923,
309,
365,
18,
3645,
5990,
353,
486,
599,
30,
312,
273,
365,
18,
3645,
5990,
365,
18,
3645,
5990,
273,
599,
327,
312,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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024,
12,
2890,
4672,
3536,
990,
326,
1024,
3140,
434,
326,
5052,
487,
279,
20334,
966,
733,
16,
1347,
20334,
812,
353,
10191,
364,
6453,
18,
2000,
599,
309,
1915,
353,
1158,
1898,
2319,
18,
3536,
365,
6315,
1893,
2932,
354,
7923,
309,
365,
18,
3645,
5990,
353,
486,
599,
30,
312,
273,
365,
18,
3645,
5990,
365,
18,
3645,
5990,
273,
599,
327,
312,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 _AssembleInstanceDisks(instance, cfg, ignore_secondaries=False):
|
def _AssembleInstanceDisks(lu, instance, ignore_secondaries=False):
|
def _AssembleInstanceDisks(instance, cfg, ignore_secondaries=False): """Prepare the block devices for an instance. This sets up the block devices on all nodes. Args: instance: a ganeti.objects.Instance object ignore_secondaries: if true, errors on secondary nodes won't result in an error return from the function Returns: false if the operation failed list of (host, instance_visible_name, node_visible_name) if the operation suceeded with the mapping from node devices to instance devices """ device_info = [] disks_ok = True iname = instance.name # With the two passes mechanism we try to reduce the window of # opportunity for the race condition of switching DRBD to primary # before handshaking occured, but we do not eliminate it # The proper fix would be to wait (with some limits) until the # connection has been made and drbd transitions from WFConnection # into any other network-connected state (Connected, SyncTarget, # SyncSource, etc.) # 1st pass, assemble on all nodes in secondary mode for inst_disk in instance.disks: for node, node_disk in inst_disk.ComputeNodeTree(instance.primary_node): cfg.SetDiskID(node_disk, node) result = rpc.call_blockdev_assemble(node, node_disk, iname, False) if not result: logger.Error("could not prepare block device %s on node %s" " (is_primary=False, pass=1)" % (inst_disk.iv_name, node)) if not ignore_secondaries: disks_ok = False # FIXME: race condition on drbd migration to primary # 2nd pass, do only the primary node for inst_disk in instance.disks: for node, node_disk in inst_disk.ComputeNodeTree(instance.primary_node): if node != instance.primary_node: continue cfg.SetDiskID(node_disk, node) result = rpc.call_blockdev_assemble(node, node_disk, iname, True) if not result: logger.Error("could not prepare block device %s on node %s" " (is_primary=True, pass=2)" % (inst_disk.iv_name, node)) disks_ok = False device_info.append((instance.primary_node, inst_disk.iv_name, result)) # leave the disks configured for the primary node # this is a workaround that would be fixed better by # improving the logical/physical id handling for disk in instance.disks: cfg.SetDiskID(disk, instance.primary_node) return disks_ok, device_info
|
b9bddb6bdf7ac5841c732845ce0122c64bb026b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/b9bddb6bdf7ac5841c732845ce0122c64bb026b1/cmdlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1463,
10045,
1442,
22021,
12,
28832,
16,
791,
16,
2305,
67,
8538,
5646,
33,
8381,
4672,
3536,
7543,
326,
1203,
7166,
364,
392,
791,
18,
225,
1220,
1678,
731,
326,
1203,
7166,
603,
777,
2199,
18,
225,
6634,
30,
791,
30,
279,
314,
304,
278,
77,
18,
6911,
18,
1442,
733,
2305,
67,
8538,
5646,
30,
309,
638,
16,
1334,
603,
9946,
2199,
8462,
1404,
563,
316,
392,
555,
327,
628,
326,
445,
225,
2860,
30,
629,
309,
326,
1674,
2535,
666,
434,
261,
2564,
16,
791,
67,
8613,
67,
529,
16,
756,
67,
8613,
67,
529,
13,
309,
326,
1674,
1597,
5816,
598,
326,
2874,
628,
756,
7166,
358,
791,
7166,
3536,
2346,
67,
1376,
273,
5378,
17164,
67,
601,
273,
1053,
316,
339,
273,
791,
18,
529,
468,
3423,
326,
2795,
11656,
12860,
732,
775,
358,
5459,
326,
2742,
434,
468,
1061,
655,
13352,
364,
326,
17996,
2269,
434,
30882,
16801,
18096,
358,
3354,
468,
1865,
948,
674,
6159,
16206,
16,
1496,
732,
741,
486,
29529,
518,
225,
468,
1021,
5338,
2917,
4102,
506,
358,
2529,
261,
1918,
2690,
8181,
13,
3180,
326,
468,
1459,
711,
2118,
7165,
471,
5081,
16410,
13136,
628,
678,
42,
1952,
468,
1368,
1281,
1308,
2483,
17,
8537,
919,
261,
8932,
16,
9721,
2326,
16,
468,
9721,
1830,
16,
5527,
12998,
225,
468,
404,
334,
1342,
16,
19540,
603,
777,
2199,
316,
9946,
1965,
364,
1804,
67,
10863,
316,
791,
18,
28577,
30,
364,
756,
16,
756,
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,
1463,
10045,
1442,
22021,
12,
28832,
16,
791,
16,
2305,
67,
8538,
5646,
33,
8381,
4672,
3536,
7543,
326,
1203,
7166,
364,
392,
791,
18,
225,
1220,
1678,
731,
326,
1203,
7166,
603,
777,
2199,
18,
225,
6634,
30,
791,
30,
279,
314,
304,
278,
77,
18,
6911,
18,
1442,
733,
2305,
67,
8538,
5646,
30,
309,
638,
16,
1334,
603,
9946,
2199,
8462,
1404,
563,
316,
392,
555,
327,
628,
326,
445,
225,
2860,
30,
629,
309,
326,
1674,
2535,
666,
434,
261,
2564,
16,
791,
67,
8613,
67,
529,
16,
756,
67,
8613,
67,
529,
13,
309,
326,
1674,
1597,
5816,
598,
326,
2874,
628,
756,
7166,
358,
791,
7166,
3536,
2346,
67,
1376,
273,
2
] |
if segments[i] == '..' and segments[i-1]:
|
if (segments[i] == '..' and segments[i-1] not in ('', '..')):
|
def urljoin(base, url, allow_fragments = 1): """Join a base URL and a possibly relative URL to form an absolute interpretation of the latter.""" if not base: return url bscheme, bnetloc, bpath, bparams, bquery, bfragment = \ urlparse(base, '', allow_fragments) scheme, netloc, path, params, query, fragment = \ urlparse(url, bscheme, allow_fragments) if scheme != bscheme or scheme not in uses_relative: return urlunparse((scheme, netloc, path, params, query, fragment)) if scheme in uses_netloc: if netloc: return urlunparse((scheme, netloc, path, params, query, fragment)) netloc = bnetloc if path[:1] == '/': return urlunparse((scheme, netloc, path, params, query, fragment)) if not path: return urlunparse((scheme, netloc, bpath, params, query or bquery, fragment)) segments = bpath.split('/')[:-1] + path.split('/') # XXX The stuff below is bogus in various ways... if segments[-1] == '.': segments[-1] = '' while '.' in segments: segments.remove('.') while 1: i = 1 n = len(segments) - 1 while i < n: if segments[i] == '..' and segments[i-1]: del segments[i-1:i+1] break i = i+1 else: break if len(segments) == 2 and segments[1] == '..' and segments[0] == '': segments[-1] = '' elif len(segments) >= 2 and segments[-1] == '..': segments[-2:] = [''] return urlunparse((scheme, netloc, '/'.join(segments), params, query, fragment))
|
62c68225b7fc812b6d680e83f854e31ec5dee9a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/62c68225b7fc812b6d680e83f854e31ec5dee9a5/urlparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25447,
12,
1969,
16,
880,
16,
1699,
67,
29528,
273,
404,
4672,
3536,
4572,
279,
1026,
1976,
471,
279,
10016,
3632,
1976,
358,
646,
392,
4967,
10634,
367,
434,
326,
23740,
12123,
309,
486,
1026,
30,
327,
880,
7081,
2905,
16,
324,
2758,
1829,
16,
324,
803,
16,
324,
2010,
16,
324,
2271,
16,
324,
11956,
273,
521,
15185,
12,
1969,
16,
10226,
1699,
67,
29528,
13,
4355,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
273,
521,
15185,
12,
718,
16,
7081,
2905,
16,
1699,
67,
29528,
13,
309,
4355,
480,
7081,
2905,
578,
4355,
486,
316,
4692,
67,
11626,
30,
327,
880,
318,
2670,
12443,
9068,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
3719,
309,
4355,
316,
4692,
67,
2758,
1829,
30,
309,
17345,
30,
327,
880,
318,
2670,
12443,
9068,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
3719,
17345,
273,
324,
2758,
1829,
309,
589,
10531,
21,
65,
422,
2023,
30,
327,
880,
318,
2670,
12443,
9068,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
3719,
309,
486,
589,
30,
327,
880,
318,
2670,
12443,
9068,
16,
17345,
16,
324,
803,
16,
859,
16,
843,
578,
324,
2271,
16,
5481,
3719,
5155,
273,
324,
803,
18,
4939,
2668,
2473,
13,
10531,
17,
21,
65,
397,
589,
18,
4939,
2668,
2473,
13,
468,
11329,
1021,
10769,
5712,
353,
324,
28774,
316,
11191,
16226,
2777,
309,
5155,
18919,
21,
65,
422,
2611,
30,
5155,
18919,
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,
25447,
12,
1969,
16,
880,
16,
1699,
67,
29528,
273,
404,
4672,
3536,
4572,
279,
1026,
1976,
471,
279,
10016,
3632,
1976,
358,
646,
392,
4967,
10634,
367,
434,
326,
23740,
12123,
309,
486,
1026,
30,
327,
880,
7081,
2905,
16,
324,
2758,
1829,
16,
324,
803,
16,
324,
2010,
16,
324,
2271,
16,
324,
11956,
273,
521,
15185,
12,
1969,
16,
10226,
1699,
67,
29528,
13,
4355,
16,
17345,
16,
589,
16,
859,
16,
843,
16,
5481,
273,
521,
15185,
12,
718,
16,
7081,
2905,
16,
1699,
67,
29528,
13,
309,
4355,
480,
7081,
2905,
578,
4355,
486,
316,
4692,
67,
11626,
30,
327,
880,
318,
2670,
12443,
9068,
16,
17345,
16,
589,
16,
859,
16,
843,
2
] |
r"(?P<ltgt>'[^']+'|\"[^\"]+\"|[^\] ]+)"
|
r"(?P<ltgt>'[^']+'|\"[^\"]+\"|[^\] ]*)"
|
def process(self, req, text, inline=False): if self.error: return system_message('Error: Failed to load processor <code>%s</code>' % self.name, self.error) text = self.processor(req, text) if inline: code_block_start = re.compile('^<div class="code-block">') code_block_end = re.compile('</div>$') text, nr = code_block_start.subn('<span class="code-block">', text, 1 ) if nr: text, nr = code_block_end.subn('</span>', text, 1 ) return text else: return text
|
64d6de0d5419586e616750f711a9e08eef3be2a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/64d6de0d5419586e616750f711a9e08eef3be2a2/formatter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
1111,
16,
977,
16,
6370,
33,
8381,
4672,
309,
365,
18,
1636,
30,
327,
2619,
67,
2150,
2668,
668,
30,
11175,
358,
1262,
6659,
411,
710,
9822,
87,
1757,
710,
1870,
738,
365,
18,
529,
16,
365,
18,
1636,
13,
977,
273,
365,
18,
8700,
12,
3658,
16,
977,
13,
309,
6370,
30,
981,
67,
2629,
67,
1937,
273,
283,
18,
11100,
2668,
66,
32,
2892,
667,
1546,
710,
17,
2629,
7918,
13,
981,
67,
2629,
67,
409,
273,
283,
18,
11100,
2668,
1757,
2892,
16200,
6134,
977,
16,
9884,
273,
981,
67,
2629,
67,
1937,
18,
1717,
82,
2668,
32,
3969,
667,
1546,
710,
17,
2629,
7918,
16,
977,
16,
404,
262,
309,
9884,
30,
977,
16,
9884,
273,
981,
67,
2629,
67,
409,
18,
1717,
82,
2668,
1757,
3969,
1870,
16,
977,
16,
404,
262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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
1111,
16,
977,
16,
6370,
33,
8381,
4672,
309,
365,
18,
1636,
30,
327,
2619,
67,
2150,
2668,
668,
30,
11175,
358,
1262,
6659,
411,
710,
9822,
87,
1757,
710,
1870,
738,
365,
18,
529,
16,
365,
18,
1636,
13,
977,
273,
365,
18,
8700,
12,
3658,
16,
977,
13,
309,
6370,
30,
981,
67,
2629,
67,
1937,
273,
283,
18,
11100,
2668,
66,
32,
2892,
667,
1546,
710,
17,
2629,
7918,
13,
981,
67,
2629,
67,
409,
273,
283,
18,
11100,
2668,
1757,
2892,
16200,
6134,
977,
16,
9884,
273,
981,
67,
2629,
67,
1937,
18,
1717,
82,
2668,
32,
3969,
667,
1546,
710,
17,
2629,
7918,
16,
977,
16,
404,
262,
309,
2
] |
if traceVerbosity>=7: print "
|
if traceVerbosity>=7: iface.debug("getNecessary(%s) -> %s" % (pkg, sorted(necdct.keys())))
|
def getNecessary(self, pkg, ignorepkgs={}): """ Return the set of packages for which pkg is necessary (i.e., a chain of requires with no alternatives). """
|
82a6041bbf39ce3c6dc9b0e073bf02eb34d8cc34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/82a6041bbf39ce3c6dc9b0e073bf02eb34d8cc34/transaction.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11069,
4128,
12,
2890,
16,
3475,
16,
2305,
25376,
12938,
4672,
3536,
2000,
326,
444,
434,
5907,
364,
1492,
3475,
353,
4573,
261,
77,
18,
73,
12990,
279,
2687,
434,
4991,
598,
1158,
20699,
2934,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11069,
4128,
12,
2890,
16,
3475,
16,
2305,
25376,
12938,
4672,
3536,
2000,
326,
444,
434,
5907,
364,
1492,
3475,
353,
4573,
261,
77,
18,
73,
12990,
279,
2687,
434,
4991,
598,
1158,
20699,
2934,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
manager.unregisterUtility(name, spec.iface)
|
manager.unregisterUtility(local_utility, spec.iface, name)
|
def setUpUtilities(site, specs): manager = site.getSiteManager() default = zapi.traverse(site, '++etc++site/default') for spec in specs: local_utility = getLocalUtility(default, spec) if local_utility is not None: if spec.override: # override existing utility name = local_utility.__name__ manager.unregisterUtility(name, spec.iface) del default[name] else: # do not register this utility; we already got it continue utility = spec.factory() default[spec.storage_name] = utility if spec.setUp is not None: spec.setUp(utility) manager.registerUtility(utility, spec.iface, spec.utility_name)
|
53c3c12aea080763a7af7b8f20ad2548aca8a8a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7127/53c3c12aea080763a7af7b8f20ad2548aca8a8a4/utility.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
11864,
12,
4256,
16,
10607,
4672,
3301,
273,
2834,
18,
588,
4956,
1318,
1435,
805,
273,
998,
2425,
18,
2033,
2476,
12,
4256,
16,
296,
9904,
14175,
9904,
4256,
19,
1886,
6134,
364,
857,
316,
10607,
30,
1191,
67,
1367,
560,
273,
6993,
6497,
12,
1886,
16,
857,
13,
309,
1191,
67,
1367,
560,
353,
486,
599,
30,
309,
857,
18,
10601,
30,
468,
3849,
2062,
12788,
508,
273,
1191,
67,
1367,
560,
16186,
529,
972,
3301,
18,
318,
4861,
6497,
12,
3729,
67,
1367,
560,
16,
857,
18,
31479,
16,
508,
13,
1464,
805,
63,
529,
65,
469,
30,
468,
741,
486,
1744,
333,
12788,
31,
732,
1818,
2363,
518,
1324,
12788,
273,
857,
18,
6848,
1435,
805,
63,
2793,
18,
5697,
67,
529,
65,
273,
12788,
309,
857,
18,
542,
1211,
353,
486,
599,
30,
857,
18,
542,
1211,
12,
1367,
560,
13,
3301,
18,
4861,
6497,
12,
1367,
560,
16,
857,
18,
31479,
16,
857,
18,
1367,
560,
67,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
11864,
12,
4256,
16,
10607,
4672,
3301,
273,
2834,
18,
588,
4956,
1318,
1435,
805,
273,
998,
2425,
18,
2033,
2476,
12,
4256,
16,
296,
9904,
14175,
9904,
4256,
19,
1886,
6134,
364,
857,
316,
10607,
30,
1191,
67,
1367,
560,
273,
6993,
6497,
12,
1886,
16,
857,
13,
309,
1191,
67,
1367,
560,
353,
486,
599,
30,
309,
857,
18,
10601,
30,
468,
3849,
2062,
12788,
508,
273,
1191,
67,
1367,
560,
16186,
529,
972,
3301,
18,
318,
4861,
6497,
12,
3729,
67,
1367,
560,
16,
857,
18,
31479,
16,
508,
13,
1464,
805,
63,
529,
65,
469,
30,
468,
741,
486,
1744,
333,
12788,
31,
732,
1818,
2363,
518,
1324,
12788,
273,
857,
18,
6848,
2
] |
SHIFT=4
|
SHIFT=0
|
def processHistos(image, pos, p): out = [[] for t in range(0, image.get_header()['dim'][4])] #generate the histogram for measurements for t in range(0, image.get_header()['dim'][4]): upper = image.get_data()[pos[0],pos[1],pos[2],t,p, -2] lower = image.get_data()[pos[0],pos[1],pos[2],t,p, -3] count = image.get_header()['dim'][6] - 3 width = (upper-lower)/count # print lower, upper, count, width if isinf(lower) : print image.get_data()[pos[0],pos[1],pos[2],t, p, 0:-3] histinput = [[] for j in range(0, image.get_header()['dim'][6]-3)] for j in range(0, image.get_header()['dim'][6]-3): histinput[j] = [image.get_data()[pos[0],pos[1],pos[2],t, p, j], lower+width*j, \ lower+width*(j+1)] out[t] = histo(histinput) return out
|
f60d63a4afd00ce55bdba6e863061dff3401f117 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5491/f60d63a4afd00ce55bdba6e863061dff3401f117/makehist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
8648,
538,
12,
2730,
16,
949,
16,
293,
4672,
596,
273,
306,
8526,
364,
268,
316,
1048,
12,
20,
16,
1316,
18,
588,
67,
3374,
1435,
3292,
3509,
3546,
63,
24,
5717,
65,
468,
7163,
326,
8892,
364,
16725,
364,
268,
316,
1048,
12,
20,
16,
1316,
18,
588,
67,
3374,
1435,
3292,
3509,
3546,
63,
24,
65,
4672,
3854,
273,
1316,
18,
588,
67,
892,
1435,
63,
917,
63,
20,
6487,
917,
63,
21,
6487,
917,
63,
22,
6487,
88,
16,
84,
16,
300,
22,
65,
2612,
273,
1316,
18,
588,
67,
892,
1435,
63,
917,
63,
20,
6487,
917,
63,
21,
6487,
917,
63,
22,
6487,
88,
16,
84,
16,
300,
23,
65,
1056,
273,
1316,
18,
588,
67,
3374,
1435,
3292,
3509,
3546,
63,
26,
65,
300,
890,
1835,
273,
261,
5797,
17,
8167,
13176,
1883,
468,
565,
1172,
2612,
16,
3854,
16,
1056,
16,
1835,
309,
353,
10625,
12,
8167,
13,
294,
1172,
1316,
18,
588,
67,
892,
1435,
63,
917,
63,
20,
6487,
917,
63,
21,
6487,
917,
63,
22,
6487,
88,
16,
293,
16,
374,
30,
17,
23,
65,
5356,
2630,
273,
306,
8526,
364,
525,
316,
1048,
12,
20,
16,
1316,
18,
588,
67,
3374,
1435,
3292,
3509,
3546,
63,
26,
65,
17,
23,
25887,
364,
525,
316,
1048,
12,
20,
16,
1316,
18,
588,
67,
3374,
1435,
3292,
3509,
3546,
63,
26,
65,
17,
23,
4672,
5356,
2630,
63,
78,
65,
273,
306,
2730,
18,
588,
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,
1207,
8648,
538,
12,
2730,
16,
949,
16,
293,
4672,
596,
273,
306,
8526,
364,
268,
316,
1048,
12,
20,
16,
1316,
18,
588,
67,
3374,
1435,
3292,
3509,
3546,
63,
24,
5717,
65,
468,
7163,
326,
8892,
364,
16725,
364,
268,
316,
1048,
12,
20,
16,
1316,
18,
588,
67,
3374,
1435,
3292,
3509,
3546,
63,
24,
65,
4672,
3854,
273,
1316,
18,
588,
67,
892,
1435,
63,
917,
63,
20,
6487,
917,
63,
21,
6487,
917,
63,
22,
6487,
88,
16,
84,
16,
300,
22,
65,
2612,
273,
1316,
18,
588,
67,
892,
1435,
63,
917,
63,
20,
6487,
917,
63,
21,
6487,
917,
63,
22,
6487,
88,
16,
84,
16,
300,
23,
65,
1056,
273,
2
] |
wtd = wtd - len(decdata)
|
wtd = totalwtd - len(decdata)
|
def read(self, wtd):
|
e3c3ec9c4e7c9095d966bf4ecb7ace0824410412 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e3c3ec9c4e7c9095d966bf4ecb7ace0824410412/binhex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
341,
4465,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
855,
12,
2890,
16,
341,
4465,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cr = pooler.get_db(db).cursor() if password: cr.execute('select id from res_users where login=%s and password=%s and active', (tools.ustr(login), tools.ustr(password))) else: cr.execute('select id from res_users where login=%s and password is null and active', (tools.ustr(login),))
|
if not password: return False cr = pooler.get_db(db).cursor() cr.execute('select id from res_users where login=%s and password=%s and active', (tools.ustr(login), tools.ustr(password)))
|
def login(db, login, password): cr = pooler.get_db(db).cursor() if password: cr.execute('select id from res_users where login=%s and password=%s and active', (tools.ustr(login), tools.ustr(password))) else: cr.execute('select id from res_users where login=%s and password is null and active', (tools.ustr(login),)) res = cr.fetchone() cr.close() if res: return res[0] else: return False
|
055e2de6ed4666ab9a52b4bd3f96d33acf374251 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/055e2de6ed4666ab9a52b4bd3f96d33acf374251/security.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
1966,
16,
3925,
16,
2201,
4672,
309,
486,
2201,
30,
327,
1083,
4422,
273,
2845,
264,
18,
588,
67,
1966,
12,
1966,
2934,
9216,
1435,
4422,
18,
8837,
2668,
4025,
612,
628,
400,
67,
5577,
1625,
3925,
5095,
87,
471,
2201,
5095,
87,
471,
2695,
2187,
261,
6642,
18,
27008,
12,
5819,
3631,
8513,
18,
27008,
12,
3664,
20349,
400,
273,
4422,
18,
5754,
476,
1435,
4422,
18,
4412,
1435,
309,
400,
30,
327,
400,
63,
20,
65,
469,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
1966,
16,
3925,
16,
2201,
4672,
309,
486,
2201,
30,
327,
1083,
4422,
273,
2845,
264,
18,
588,
67,
1966,
12,
1966,
2934,
9216,
1435,
4422,
18,
8837,
2668,
4025,
612,
628,
400,
67,
5577,
1625,
3925,
5095,
87,
471,
2201,
5095,
87,
471,
2695,
2187,
261,
6642,
18,
27008,
12,
5819,
3631,
8513,
18,
27008,
12,
3664,
20349,
400,
273,
4422,
18,
5754,
476,
1435,
4422,
18,
4412,
1435,
309,
400,
30,
327,
400,
63,
20,
65,
469,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fill(mat, p-[1,dir], -dir)
|
fill(mat, p - [1, dir], -dir)
|
def fill(mat,p,dir): """ Fill a curve drawn in matrix mat, as 1's over a background of 0's, with 1's. p is V(i,j) of a point to fill from. dir is 1 or -1 for the standard recursive fill algorithm. Here is an explanation of how this is used and how it works then, by Huaicai: This function is used to fill the area between the rectangle bounding box and the boundary of the curve with 1's. The bounding box is extended by (lower left corner -2, right top corner + 2). The curve boundary is filled with 1's. So mat[1,:] = 0, mat[-1,:]=0, mat[:, 1]=0; mat[:, -1]=0, which means the area is connected. If we start from mat[1,1], dir =1, then we scan the first line from left to right. If it's 0, fill it as 1 until we touch 1. For each element in the line, we also check it's neighbor above and below. For the neighbor elements, if the neighbor touches 1 but previous neighbor is 0, then scan the neighbor line in the reverse order. I think this algorithm is better than the simple recursive flood filling algorithm. The seed mat[1,1] is always inside the area, and most probably this filling area is smaller than that inside the curve. I think it also reduces repeated checking/filling of the classical algorithm. """ if mat[p]: return up = dn = 0 o1 = array([1,0]) od = array([0, dir]) while not mat[p-od]: p -= od while not mat[p]: mat[p] = 1 if mat[p-o1]: if up: fill(mat, p-[1,dir], -dir) up = 0 else: up = 1 if mat[p+o1]: if dn: fill(mat, p+[1,-dir], -dir) dn = 0 else: dn = 1 p += od fill(mat, p-od+o1, -dir) fill(mat, p-od-o1, -dir) # note: we have (probably) seen recursion limit errors from this line. [bruce 070605 comment]
|
be7153ce421a674e97de640e3063c3bb1bccf4a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/be7153ce421a674e97de640e3063c3bb1bccf4a9/shape.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
12,
7373,
16,
84,
16,
1214,
4672,
3536,
14192,
279,
8882,
19377,
316,
3148,
4834,
16,
487,
404,
1807,
1879,
279,
5412,
434,
374,
1807,
16,
598,
404,
1807,
18,
293,
353,
776,
12,
77,
16,
78,
13,
434,
279,
1634,
358,
3636,
628,
18,
1577,
353,
404,
578,
300,
21,
364,
326,
4529,
5904,
3636,
4886,
18,
225,
13743,
353,
392,
21285,
434,
3661,
333,
353,
1399,
471,
3661,
518,
6330,
1508,
16,
635,
670,
11886,
335,
10658,
30,
1220,
445,
353,
1399,
358,
3636,
326,
5091,
3086,
326,
11845,
7552,
3919,
471,
326,
7679,
434,
326,
8882,
598,
404,
1807,
18,
1021,
7552,
3919,
353,
7021,
635,
261,
8167,
2002,
11055,
300,
22,
16,
2145,
1760,
11055,
397,
576,
2934,
1021,
8882,
7679,
353,
6300,
598,
404,
1807,
18,
6155,
4834,
63,
21,
16,
26894,
273,
374,
16,
4834,
18919,
21,
16,
26894,
33,
20,
16,
4834,
10531,
16,
404,
65,
33,
20,
31,
4834,
10531,
16,
300,
21,
65,
33,
20,
16,
1492,
4696,
326,
5091,
353,
5840,
18,
971,
732,
787,
628,
4834,
63,
21,
16,
21,
6487,
1577,
273,
21,
16,
1508,
732,
4135,
326,
1122,
980,
628,
2002,
358,
2145,
18,
971,
518,
1807,
374,
16,
3636,
518,
487,
404,
3180,
732,
6920,
404,
18,
2457,
1517,
930,
316,
326,
980,
16,
732,
2546,
866,
518,
1807,
10553,
5721,
471,
5712,
18,
2457,
326,
10553,
2186,
16,
309,
326,
10553,
18796,
404,
1496,
2416,
10553,
353,
374,
16,
1508,
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,
3636,
12,
7373,
16,
84,
16,
1214,
4672,
3536,
14192,
279,
8882,
19377,
316,
3148,
4834,
16,
487,
404,
1807,
1879,
279,
5412,
434,
374,
1807,
16,
598,
404,
1807,
18,
293,
353,
776,
12,
77,
16,
78,
13,
434,
279,
1634,
358,
3636,
628,
18,
1577,
353,
404,
578,
300,
21,
364,
326,
4529,
5904,
3636,
4886,
18,
225,
13743,
353,
392,
21285,
434,
3661,
333,
353,
1399,
471,
3661,
518,
6330,
1508,
16,
635,
670,
11886,
335,
10658,
30,
1220,
445,
353,
1399,
358,
3636,
326,
5091,
3086,
326,
11845,
7552,
3919,
471,
326,
7679,
434,
326,
8882,
598,
404,
1807,
18,
1021,
7552,
3919,
353,
7021,
635,
261,
8167,
2002,
11055,
300,
22,
16,
2145,
2
] |
k = len(G.rows())
|
def assmus_mattson_designs(self,t,mode=None): r""" Assmus and Mattson Theorem (section 8.4, page 303 of [HP]): Let $A_0, A_1, ..., A_n$ be the weights of the codewords in a binary linear $[n , k, d]$ code $C$, and let $A_0^*, A_1^*, ..., A_n^*$ be the weights of the codewords in its dual $[n, n-k, d^*]$ code $C^*$. Fix a $t$, $0<t<d$, and let $$ s = |{ i | A_i^* \not= 0, 0<i\leq n-t}|. $$ Assume $s\leq d-t$. (1) If $Ai\not= 0$ and $d\leq i\leq n then Ci = { c in C | wt(c) = i}$ holds a simple t-design.
|
3a7625918ca06799454663aea3e731edc0d084bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3a7625918ca06799454663aea3e731edc0d084bf/linear_code.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1551,
81,
407,
67,
81,
4558,
816,
67,
16934,
87,
12,
2890,
16,
88,
16,
3188,
33,
7036,
4672,
436,
8395,
4725,
81,
407,
471,
490,
4558,
816,
1021,
479,
81,
261,
3464,
1725,
18,
24,
16,
1363,
890,
4630,
434,
306,
2500,
65,
4672,
10559,
271,
37,
67,
20,
16,
432,
67,
21,
16,
1372,
16,
432,
67,
82,
8,
506,
326,
5376,
434,
326,
981,
3753,
316,
279,
3112,
9103,
271,
63,
82,
269,
417,
16,
302,
65,
8,
981,
271,
39,
8,
16,
471,
2231,
271,
37,
67,
20,
66,
14,
16,
432,
67,
21,
66,
14,
16,
1372,
16,
432,
67,
82,
66,
26788,
506,
326,
5376,
434,
326,
981,
3753,
316,
2097,
24557,
271,
63,
82,
16,
290,
17,
79,
16,
302,
66,
14,
65,
8,
981,
271,
39,
66,
26788,
18,
225,
12139,
279,
271,
88,
8,
16,
271,
20,
32,
88,
32,
72,
8,
16,
471,
2231,
5366,
272,
273,
571,
95,
277,
571,
432,
67,
77,
66,
14,
521,
902,
33,
374,
16,
374,
32,
77,
64,
298,
85,
290,
17,
88,
28077,
18,
5366,
15983,
271,
87,
64,
298,
85,
302,
17,
88,
8,
18,
225,
261,
21,
13,
971,
271,
37,
77,
64,
902,
33,
374,
8,
471,
271,
72,
64,
298,
85,
277,
64,
298,
85,
290,
1508,
385,
77,
273,
288,
276,
316,
385,
571,
18201,
12,
71,
13,
273,
277,
22496,
14798,
279,
4143,
268,
17,
16934,
18,
2,
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,
1,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1551,
81,
407,
67,
81,
4558,
816,
67,
16934,
87,
12,
2890,
16,
88,
16,
3188,
33,
7036,
4672,
436,
8395,
4725,
81,
407,
471,
490,
4558,
816,
1021,
479,
81,
261,
3464,
1725,
18,
24,
16,
1363,
890,
4630,
434,
306,
2500,
65,
4672,
10559,
271,
37,
67,
20,
16,
432,
67,
21,
16,
1372,
16,
432,
67,
82,
8,
506,
326,
5376,
434,
326,
981,
3753,
316,
279,
3112,
9103,
271,
63,
82,
269,
417,
16,
302,
65,
8,
981,
271,
39,
8,
16,
471,
2231,
271,
37,
67,
20,
66,
14,
16,
432,
67,
21,
66,
14,
16,
1372,
16,
432,
67,
82,
66,
26788,
506,
326,
5376,
434,
326,
981,
3753,
316,
2097,
24557,
2
] |
|
an_integer = Integer() a_float = Float()
|
an_integer = Integer(required=False) a_float = Float(required=False)
|
def prepare_widget(self, spinbutton): Display_Number_As_Spinbutton.prepare_widget(self, spinbutton) spinbutton.set_digits(0)
|
5eb8599b421a4aaf3fec3e1a4ac12381b2b69d9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2510/5eb8599b421a4aaf3fec3e1a4ac12381b2b69d9d/checkwidgets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
6587,
12,
2890,
16,
12490,
5391,
4672,
9311,
67,
1854,
67,
1463,
67,
3389,
267,
5391,
18,
9366,
67,
6587,
12,
2890,
16,
12490,
5391,
13,
12490,
5391,
18,
542,
67,
16649,
12,
20,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
6587,
12,
2890,
16,
12490,
5391,
4672,
9311,
67,
1854,
67,
1463,
67,
3389,
267,
5391,
18,
9366,
67,
6587,
12,
2890,
16,
12490,
5391,
13,
12490,
5391,
18,
542,
67,
16649,
12,
20,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tempFile.setFormat(getFormat(session, format));
|
tempFile.setFormat(getFormat(queryService, CSV_FORMAT));
|
def createFileFromData(updateService, filename, data, format): """ Create a file from the data of type format, setting sha1, .. @param updateService The updateService to create the annotation link. @param filename The name of the file. @param data The data to save. @param format The Format of the file. @return The newly created OriginalFile. """ tempFile = omero.model.OriginalFileI(); tempFile.setName(omero.rtypes.rstring(filename)); tempFile.setPath(omero.rtypes.rstring(filename)); tempFile.setFormat(getFormat(session, format)); tempFile.setSize(omero.rtypes.rlong(len(data))); tempFile.setSha1(omero.rtypes.rstring(calcSha1FromData(data))); return updateService.saveAndReturnObject(tempFile);
|
08781ea68d3dd27bb2aeac94d373095edd6ca82c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/08781ea68d3dd27bb2aeac94d373095edd6ca82c/script_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21266,
1265,
751,
12,
2725,
1179,
16,
1544,
16,
501,
16,
740,
4672,
3536,
1788,
279,
585,
628,
326,
501,
434,
618,
740,
16,
3637,
6056,
21,
16,
6116,
632,
891,
1089,
1179,
1021,
1089,
1179,
358,
752,
326,
3204,
1692,
18,
632,
891,
1544,
1021,
508,
434,
326,
585,
18,
632,
891,
501,
1021,
501,
358,
1923,
18,
632,
891,
740,
1021,
4077,
434,
326,
585,
18,
632,
2463,
1021,
10894,
2522,
19225,
812,
18,
3536,
18286,
273,
8068,
2439,
18,
2284,
18,
8176,
812,
45,
5621,
18286,
18,
542,
461,
12,
362,
2439,
18,
86,
2352,
18,
86,
1080,
12,
3459,
10019,
18286,
18,
542,
743,
12,
362,
2439,
18,
86,
2352,
18,
86,
1080,
12,
3459,
10019,
18286,
18,
542,
1630,
12,
588,
1630,
12,
2271,
1179,
16,
10381,
67,
7254,
10019,
18286,
18,
542,
1225,
12,
362,
2439,
18,
86,
2352,
18,
1321,
932,
12,
1897,
12,
892,
3719,
1769,
18286,
18,
542,
20375,
21,
12,
362,
2439,
18,
86,
2352,
18,
86,
1080,
12,
12448,
20375,
21,
1265,
751,
12,
892,
3719,
1769,
327,
1089,
1179,
18,
5688,
1876,
990,
921,
12,
5814,
812,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21266,
1265,
751,
12,
2725,
1179,
16,
1544,
16,
501,
16,
740,
4672,
3536,
1788,
279,
585,
628,
326,
501,
434,
618,
740,
16,
3637,
6056,
21,
16,
6116,
632,
891,
1089,
1179,
1021,
1089,
1179,
358,
752,
326,
3204,
1692,
18,
632,
891,
1544,
1021,
508,
434,
326,
585,
18,
632,
891,
501,
1021,
501,
358,
1923,
18,
632,
891,
740,
1021,
4077,
434,
326,
585,
18,
632,
2463,
1021,
10894,
2522,
19225,
812,
18,
3536,
18286,
273,
8068,
2439,
18,
2284,
18,
8176,
812,
45,
5621,
18286,
18,
542,
461,
12,
362,
2439,
18,
86,
2352,
18,
86,
1080,
12,
3459,
10019,
18286,
18,
542,
743,
12,
362,
2439,
18,
86,
2352,
18,
86,
1080,
12,
2
] |
instruc = instruc.replace(","," ") instruc = instruc.lower() instruc = instruc.split(" ") for element in instruc: if element.find(" ") != -1: print "element " + element + "had whitespace... sanitizing" element.replace(" ", "") print "sanitized: element" if element == "": instruc.remove(element)
|
instruc = sanitize(instruc)
|
def parse_alu(instruc = "", word_buf = ""): if instruc == "" or word_buf == "": print "ERROR: someone accidentally the code in parse_alu" return "-1" instruc = instruc.replace(","," ") instruc = instruc.lower() instruc = instruc.split(" ") #instruc is now a list for element in instruc: if element.find(" ") != -1: print "element " + element + "had whitespace... sanitizing" element.replace(" ", "") print "sanitized: element" if element == "": instruc.remove(element) ins = instruc[0] regD = instruc[1] regS = instruc[2] regT = instruc[3] regD = reg2bin(regD) regS = reg2bin(regS) word_buf += regD word_buf += regS if ins == "add": if isInt(regT): word_buf += "1" regT = int(regT) word_buf += int2bin(regT, 5) else: word_buf += "000" word_buf += reg2bin(regT) elif ins == "mul": word_buf += "001" word_buf += reg2bin(regT) elif ins == "sub": word_buf += "010" word_buf += reg2bin(regT) elif ins == "div": word_buf += "011" word_buf += reg2bin(regT) else: print "ERROR: someone accidentally'd the parse_alu method" return "-1" return word_buf
|
c9041b22a5fae24347e6995b51cec7b258f41bc2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4891/c9041b22a5fae24347e6995b51cec7b258f41bc2/assembler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
700,
12,
267,
701,
5286,
273,
23453,
2076,
67,
4385,
273,
1408,
4672,
309,
16170,
5286,
422,
1408,
578,
2076,
67,
4385,
422,
1408,
30,
1172,
315,
3589,
30,
18626,
25961,
1230,
326,
981,
316,
1109,
67,
700,
6,
327,
3701,
21,
6,
225,
16170,
5286,
273,
16170,
5286,
18,
2079,
2932,
16,
15937,
9369,
16170,
5286,
273,
16170,
5286,
18,
8167,
1435,
16170,
5286,
273,
16170,
5286,
18,
4939,
2932,
9369,
468,
267,
701,
5286,
353,
2037,
279,
666,
364,
930,
316,
16170,
5286,
30,
309,
930,
18,
4720,
2932,
9369,
480,
300,
21,
30,
1172,
315,
2956,
315,
397,
930,
397,
315,
76,
361,
7983,
2777,
6764,
6894,
6,
930,
18,
2079,
2932,
3104,
1408,
13,
1172,
315,
87,
5241,
1235,
30,
930,
6,
309,
930,
422,
1408,
30,
16170,
5286,
18,
4479,
12,
2956,
13,
282,
2763,
273,
16170,
5286,
63,
20,
65,
960,
40,
273,
16170,
5286,
63,
21,
65,
960,
55,
273,
16170,
5286,
63,
22,
65,
960,
56,
273,
16170,
5286,
63,
23,
65,
225,
960,
40,
273,
960,
22,
4757,
12,
1574,
40,
13,
960,
55,
273,
960,
22,
4757,
12,
1574,
55,
13,
2076,
67,
4385,
1011,
960,
40,
2076,
67,
4385,
1011,
960,
55,
225,
309,
2763,
422,
315,
1289,
6877,
309,
353,
1702,
12,
1574,
56,
4672,
2076,
67,
4385,
1011,
315,
21,
6,
960,
56,
273,
509,
12,
1574,
56,
13,
2076,
67,
4385,
1011,
509,
22,
4757,
12,
1574,
56,
16,
1381,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
700,
12,
267,
701,
5286,
273,
23453,
2076,
67,
4385,
273,
1408,
4672,
309,
16170,
5286,
422,
1408,
578,
2076,
67,
4385,
422,
1408,
30,
1172,
315,
3589,
30,
18626,
25961,
1230,
326,
981,
316,
1109,
67,
700,
6,
327,
3701,
21,
6,
225,
16170,
5286,
273,
16170,
5286,
18,
2079,
2932,
16,
15937,
9369,
16170,
5286,
273,
16170,
5286,
18,
8167,
1435,
16170,
5286,
273,
16170,
5286,
18,
4939,
2932,
9369,
468,
267,
701,
5286,
353,
2037,
279,
666,
364,
930,
316,
16170,
5286,
30,
309,
930,
18,
4720,
2932,
9369,
480,
300,
21,
30,
1172,
315,
2956,
315,
397,
930,
397,
315,
76,
361,
7983,
2777,
6764,
6894,
6,
930,
18,
2079,
2932,
3104,
2
] |
""" underscores in literals shouldn't do unterlining """
|
""" underscores in literals shouldn't do underlining """
|
def testUnderlinesWithoutWithspaces(self): """ underscores in literals shouldn't do unterlining """
|
3f6e2ae459b5a30ba3ce41daba7d96cdd1fe0431 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/3f6e2ae459b5a30ba3ce41daba7d96cdd1fe0431/testStructuredText.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
14655,
3548,
8073,
1190,
9554,
12,
2890,
4672,
3536,
24714,
316,
18228,
12044,
1404,
741,
640,
387,
7511,
310,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
14655,
3548,
8073,
1190,
9554,
12,
2890,
4672,
3536,
24714,
316,
18228,
12044,
1404,
741,
640,
387,
7511,
310,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
el1 = etree.SubElement(root, 'meta:editing-cycles')
|
el1 = SubElement(root, 'meta:editing-cycles')
|
def create_meta(self): root = etree.Element('office:document-meta', attrib=META_NAMESPACE_DICT) doc = etree.ElementTree(root) root = etree.SubElement(root, 'office:meta') el1 = etree.SubElement(root, 'meta:generator') el1.text = 'Docutils/rst2odf.py/%s' % (VERSION, ) s1 = os.environ.get('USER', '') el1 = etree.SubElement(root, 'meta:initial-creator') el1.text = s1 s2 = time.strftime('%Y-%m-%dT%H:%M:%S', time.localtime()) el1 = etree.SubElement(root, 'meta:creation-date') el1.text = s2 el1 = etree.SubElement(root, 'dc:creator') el1.text = s1 el1 = etree.SubElement(root, 'dc:date') el1.text = s2 el1 = etree.SubElement(root, 'dc:language') el1.text = 'en-US' el1 = etree.SubElement(root, 'meta:editing-cycles') el1.text = '1' el1 = etree.SubElement(root, 'meta:editing-duration') el1.text = 'PT00M01S' title = self.visitor.get_title() el1 = etree.SubElement(root, 'dc:title') if title: el1.text = title else: el1.text = '[no title]' s1 = etree.tostring(doc) #doc = minidom.parseString(s1) #s1 = doc.toprettyxml(' ') return s1
|
57ceb741b8ea9b94d9b9e314a03912d12bd3c5c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/57ceb741b8ea9b94d9b9e314a03912d12bd3c5c5/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3901,
12,
2890,
4672,
1365,
273,
12031,
18,
1046,
2668,
19789,
30,
5457,
17,
3901,
2187,
5885,
33,
19294,
67,
11368,
67,
31456,
13,
997,
273,
12031,
18,
1046,
2471,
12,
3085,
13,
1365,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
19789,
30,
3901,
6134,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
8812,
6134,
415,
21,
18,
955,
273,
296,
1759,
5471,
19,
16114,
22,
369,
74,
18,
2074,
5258,
87,
11,
738,
261,
5757,
16,
262,
272,
21,
273,
1140,
18,
28684,
18,
588,
2668,
4714,
2187,
28707,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
6769,
17,
20394,
6134,
415,
21,
18,
955,
273,
272,
21,
272,
22,
273,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
23148,
9,
44,
5319,
49,
5319,
55,
2187,
813,
18,
3729,
957,
10756,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
17169,
17,
712,
6134,
415,
21,
18,
955,
273,
272,
22,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
7201,
30,
20394,
6134,
415,
21,
18,
955,
273,
272,
21,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
7201,
30,
712,
6134,
415,
21,
18,
955,
273,
272,
22,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
7201,
30,
4923,
6134,
415,
21,
18,
955,
273,
296,
275,
17,
3378,
11,
415,
21,
273,
5479,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3901,
12,
2890,
4672,
1365,
273,
12031,
18,
1046,
2668,
19789,
30,
5457,
17,
3901,
2187,
5885,
33,
19294,
67,
11368,
67,
31456,
13,
997,
273,
12031,
18,
1046,
2471,
12,
3085,
13,
1365,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
19789,
30,
3901,
6134,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
8812,
6134,
415,
21,
18,
955,
273,
296,
1759,
5471,
19,
16114,
22,
369,
74,
18,
2074,
5258,
87,
11,
738,
261,
5757,
16,
262,
272,
21,
273,
1140,
18,
28684,
18,
588,
2668,
4714,
2187,
28707,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
6769,
17,
20394,
6134,
415,
21,
2
] |
pushre = re.compile('^push .*$')
|
def sendCMD(self, cmdline, newline = True, sleep = 0): promptre = re.compile(self.prompt_regex + '$')
|
02223128cd056cb013609966605554a83eff291d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/02223128cd056cb013609966605554a83eff291d/devicemanager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
19473,
12,
2890,
16,
22877,
16,
9472,
273,
1053,
16,
5329,
273,
374,
4672,
6866,
266,
273,
283,
18,
11100,
12,
2890,
18,
13325,
67,
7584,
397,
3365,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
19473,
12,
2890,
16,
22877,
16,
9472,
273,
1053,
16,
5329,
273,
374,
4672,
6866,
266,
273,
283,
18,
11100,
12,
2890,
18,
13325,
67,
7584,
397,
3365,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.storage._log(msg, zLOG.ERROR)
|
log(msg, zLOG.ERROR)
|
def store(self, oid, serial, data, version): try: newserial = self.storage.store(oid, serial, data, version, self.txn) except TransactionError, err: # Storage errors are passed to the client newserial = err except Exception: # Unexpected storage errors are logged and passed to the client exc_info = sys.exc_info() self.storage._log("store error: %s, %s" % exc_info[:2], zLOG.ERROR, error=exc_info) newserial = exc_info[1] del exc_info else: if serial != "\0\0\0\0\0\0\0\0": self.invalidated.append((oid, version))
|
3366502b09a2c607316c80421c66d2ebc4026c22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/3366502b09a2c607316c80421c66d2ebc4026c22/StorageServer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
12,
2890,
16,
7764,
16,
2734,
16,
501,
16,
1177,
4672,
775,
30,
394,
8818,
273,
365,
18,
5697,
18,
2233,
12,
839,
16,
2734,
16,
501,
16,
1177,
16,
365,
18,
24790,
13,
1335,
5947,
668,
16,
393,
30,
468,
5235,
1334,
854,
2275,
358,
326,
1004,
394,
8818,
273,
393,
1335,
1185,
30,
468,
9649,
2502,
1334,
854,
7545,
471,
2275,
358,
326,
1004,
3533,
67,
1376,
273,
2589,
18,
10075,
67,
1376,
1435,
365,
18,
5697,
6315,
1330,
2932,
2233,
555,
30,
738,
87,
16,
738,
87,
6,
738,
3533,
67,
1376,
10531,
22,
6487,
998,
4842,
18,
3589,
16,
555,
33,
10075,
67,
1376,
13,
394,
8818,
273,
3533,
67,
1376,
63,
21,
65,
1464,
3533,
67,
1376,
469,
30,
309,
2734,
480,
1548,
20,
64,
20,
64,
20,
64,
20,
64,
20,
64,
20,
64,
20,
64,
20,
6877,
365,
18,
5387,
690,
18,
6923,
12443,
839,
16,
1177,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
12,
2890,
16,
7764,
16,
2734,
16,
501,
16,
1177,
4672,
775,
30,
394,
8818,
273,
365,
18,
5697,
18,
2233,
12,
839,
16,
2734,
16,
501,
16,
1177,
16,
365,
18,
24790,
13,
1335,
5947,
668,
16,
393,
30,
468,
5235,
1334,
854,
2275,
358,
326,
1004,
394,
8818,
273,
393,
1335,
1185,
30,
468,
9649,
2502,
1334,
854,
7545,
471,
2275,
358,
326,
1004,
3533,
67,
1376,
273,
2589,
18,
10075,
67,
1376,
1435,
365,
18,
5697,
6315,
1330,
2932,
2233,
555,
30,
738,
87,
16,
738,
87,
6,
738,
3533,
67,
1376,
10531,
22,
6487,
998,
4842,
18,
3589,
16,
555,
33,
10075,
67,
1376,
13,
394,
8818,
273,
3533,
67,
1376,
63,
21,
2
] |
'state': fields.function(_state, method=True, string='Membership State', type='selection', selection=STATE, store=True),
|
'state': fields.function( _state, method=True, string='Membership State', type='selection', selection=STATE, store = { 'account.invoice':(_get_membership_lines, ['state'], 10), }),
|
def _state(self, cr, uid, ids, name, args, context=None): """Compute the state lines @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of Membership Line IDs @param name: Field Name @param context: A standard dictionary for contextual values @param return: Dictionary of state Value """ res = {} for line in self.browse(cr, uid, ids): cr.execute(''' SELECT i.state, i.id FROM account_invoice i WHERE i.id = ( SELECT l.invoice_id FROM account_invoice_line l WHERE l.id = ( SELECT ml.account_invoice_line FROM membership_membership_line ml WHERE ml.id = %s ) ) ''', (line.id,)) fetched = cr.fetchone() if not fetched : res[line.id] = 'canceled' continue istate = fetched[0] state = 'none' if (istate == 'draft') | (istate == 'proforma'): state = 'waiting' elif istate == 'open': state = 'invoiced' elif istate == 'paid': state = 'paid' inv = self.pool.get('account.invoice').browse(cr, uid, fetched[1]) for payment in inv.payment_ids: if payment.invoice and payment.invoice.type == 'out_refund': state = 'canceled' elif istate == 'cancel': state = 'canceled' res[line.id] = state return res
|
2a4c1e50cb967d4599507ed63424b4f85c7753ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/2a4c1e50cb967d4599507ed63424b4f85c7753ea/membership.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
3536,
7018,
326,
919,
2362,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891,
4555,
30,
326,
783,
729,
163,
227,
252,
87,
1599,
364,
4373,
4271,
16,
632,
891,
3258,
30,
987,
434,
28100,
5377,
7115,
632,
891,
508,
30,
2286,
1770,
632,
891,
819,
30,
432,
4529,
3880,
364,
22724,
924,
632,
891,
327,
30,
16447,
434,
919,
1445,
3536,
400,
273,
2618,
364,
980,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
4422,
18,
8837,
2668,
6309,
9111,
277,
18,
2019,
16,
277,
18,
350,
4571,
2236,
67,
16119,
277,
4852,
277,
18,
350,
273,
261,
9111,
328,
18,
16119,
67,
350,
4571,
2236,
67,
16119,
67,
1369,
328,
4852,
328,
18,
350,
273,
261,
9111,
225,
12931,
18,
4631,
67,
16119,
67,
1369,
4571,
12459,
67,
19679,
67,
1369,
12931,
4852,
12931,
18,
350,
273,
738,
87,
262,
262,
875,
2187,
261,
1369,
18,
350,
16,
3719,
12807,
273,
4422,
18,
5754,
476,
1435,
309,
486,
12807,
294,
400,
63,
1369,
18,
350,
65,
273,
296,
10996,
329,
11,
1324,
277,
2019,
273,
12807,
63,
20,
65,
919,
273,
296,
6102,
11,
309,
261,
376,
340,
422,
296,
17153,
6134,
571,
261,
376,
340,
422,
296,
685,
687,
69,
11,
4672,
919,
273,
296,
20241,
11,
1327,
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,
2019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
3536,
7018,
326,
919,
2362,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891,
4555,
30,
326,
783,
729,
163,
227,
252,
87,
1599,
364,
4373,
4271,
16,
632,
891,
3258,
30,
987,
434,
28100,
5377,
7115,
632,
891,
508,
30,
2286,
1770,
632,
891,
819,
30,
432,
4529,
3880,
364,
22724,
924,
632,
891,
327,
30,
16447,
434,
919,
1445,
3536,
400,
273,
2618,
364,
980,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
4422,
18,
8837,
2668,
6309,
9111,
277,
18,
2
] |
TestModule)
|
TestModule] if random._urandom is not None: testclasses.append(HardwareRandom_TestBasicOps)
|
def test_main(verbose=None): testclasses = (WichmannHill_TestBasicOps, MersenneTwister_TestBasicOps, HardwareRandom_TestBasicOps, TestDistributions, TestModule) test_support.run_unittest(*testclasses) # verify reference counting import sys if verbose and hasattr(sys, "gettotalrefcount"): counts = [None] * 5 for i in xrange(len(counts)): test_support.run_unittest(*testclasses) counts[i] = sys.gettotalrefcount() print counts
|
b8717631561fec74cb1ab1963d918e53ead29a97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b8717631561fec74cb1ab1963d918e53ead29a97/test_random.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
12,
11369,
33,
7036,
4672,
1842,
4701,
273,
565,
261,
59,
1354,
81,
1072,
44,
737,
67,
4709,
8252,
8132,
16,
490,
414,
275,
4644,
23539,
1249,
67,
4709,
8252,
8132,
16,
27438,
8529,
67,
4709,
8252,
8132,
16,
7766,
1669,
15326,
16,
7766,
3120,
65,
225,
309,
2744,
6315,
295,
2111,
353,
486,
599,
30,
1842,
4701,
18,
6923,
12,
44,
14519,
8529,
67,
4709,
8252,
8132,
13,
225,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
30857,
3813,
4701,
13,
225,
468,
3929,
2114,
22075,
1930,
2589,
309,
3988,
471,
3859,
12,
9499,
16,
315,
588,
4963,
1734,
1883,
6,
4672,
6880,
273,
306,
7036,
65,
380,
1381,
364,
277,
316,
12314,
12,
1897,
12,
8008,
3719,
30,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
30857,
3813,
4701,
13,
6880,
63,
77,
65,
273,
2589,
18,
588,
4963,
1734,
1883,
1435,
1172,
6880,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
12,
11369,
33,
7036,
4672,
1842,
4701,
273,
565,
261,
59,
1354,
81,
1072,
44,
737,
67,
4709,
8252,
8132,
16,
490,
414,
275,
4644,
23539,
1249,
67,
4709,
8252,
8132,
16,
27438,
8529,
67,
4709,
8252,
8132,
16,
7766,
1669,
15326,
16,
7766,
3120,
65,
225,
309,
2744,
6315,
295,
2111,
353,
486,
599,
30,
1842,
4701,
18,
6923,
12,
44,
14519,
8529,
67,
4709,
8252,
8132,
13,
225,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
30857,
3813,
4701,
13,
225,
468,
3929,
2114,
22075,
1930,
2589,
309,
3988,
471,
3859,
12,
9499,
16,
315,
588,
4963,
1734,
1883,
6,
4672,
6880,
273,
306,
7036,
65,
380,
1381,
364,
277,
316,
12314,
12,
2
] |
paramval = getattr(operation, parameter.name)
|
paramval = str(getattr(operation, parameter.name)) if paramval.find("%")>0: paramval = paramval.split("%")[0]+"%%"+paramval.split("%")[1]
|
def logop(self, operation): """ Writes name and parameters of operations, in the same format as the config file. The intention is to record the provenance of analyses and facilitate reproduction of results. """ self._format_doc(operation.__class__.__doc__) print >> self.ostream, "#[%s]"%operation.__class__.__name__ for parameter in operation.params: self._format_doc(parameter.description) paramval = getattr(operation, parameter.name) print >> self.ostream, "#%s = %s"%(parameter.name, paramval) print >> self.ostream
|
ef114d566269f178313878b91ddf8981111212be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7241/ef114d566269f178313878b91ddf8981111212be/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
556,
12,
2890,
16,
1674,
4672,
3536,
30053,
508,
471,
1472,
434,
5295,
16,
316,
326,
1967,
740,
487,
326,
642,
585,
18,
225,
1021,
509,
5054,
353,
358,
1409,
326,
24185,
434,
22813,
471,
5853,
330,
305,
340,
283,
17273,
434,
1686,
18,
3536,
365,
6315,
2139,
67,
2434,
12,
7624,
16186,
1106,
972,
16186,
2434,
972,
13,
1172,
1671,
365,
18,
669,
793,
16,
6619,
14451,
87,
4279,
9,
7624,
16186,
1106,
972,
16186,
529,
972,
364,
1569,
316,
1674,
18,
2010,
30,
365,
6315,
2139,
67,
2434,
12,
6775,
18,
3384,
13,
579,
1125,
273,
609,
12,
588,
1747,
12,
7624,
16,
1569,
18,
529,
3719,
309,
579,
1125,
18,
4720,
27188,
7923,
34,
20,
30,
579,
1125,
273,
579,
1125,
18,
4939,
27188,
7923,
63,
20,
3737,
6,
11438,
6,
15,
891,
1125,
18,
4939,
27188,
7923,
63,
21,
65,
1172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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
556,
12,
2890,
16,
1674,
4672,
3536,
30053,
508,
471,
1472,
434,
5295,
16,
316,
326,
1967,
740,
487,
326,
642,
585,
18,
225,
1021,
509,
5054,
353,
358,
1409,
326,
24185,
434,
22813,
471,
5853,
330,
305,
340,
283,
17273,
434,
1686,
18,
3536,
365,
6315,
2139,
67,
2434,
12,
7624,
16186,
1106,
972,
16186,
2434,
972,
13,
1172,
1671,
365,
18,
669,
793,
16,
6619,
14451,
87,
4279,
9,
7624,
16186,
1106,
972,
16186,
529,
972,
364,
1569,
316,
1674,
18,
2010,
30,
365,
6315,
2139,
67,
2434,
12,
6775,
18,
3384,
13,
579,
1125,
273,
609,
12,
588,
1747,
12,
7624,
16,
1569,
18,
529,
3719,
309,
579,
1125,
18,
4720,
27188,
7923,
34,
2
] |
users1 = run_sql("""SELECT id, email FROM user WHERE email RLIKE '%s' ORDER BY email """ % (email_user_pattern, ))
|
users1 = run_sql("""SELECT id, email FROM user WHERE email RLIKE %s ORDER BY email """, (email_user_pattern, ))
|
def perform_delegate_adduserrole(req, id_role=0, email_user_pattern='', id_user=0, confirm=0): """let a lower level web admin add users to a limited set of roles. id_role - the role to connect to a user id_user - the user to connect to a role confirm - make the connection happen """ # finding the allowed roles for this user id_admin = getUid(req) id_action = acca.acc_get_action_id(name_action=DELEGATEADDUSERROLE) actions = acca.acc_find_possible_actions_user(id_user=id_admin, id_action=id_action) allowed_roles = [] allowed_id_roles = [] for (id, arglistid, name_role_help) in actions[1:]: id_role_help = acca.acc_get_role_id(name_role=name_role_help) if id_role_help and [id_role_help, name_role_help, ''] not in allowed_roles: allowed_roles.append([id_role_help, name_role_help, '']) allowed_id_roles.append(str(id_role_help)) output = '' if not allowed_roles: subtitle = 'no delegation rights' output += """ <p> You do not have the delegation rights over any roles.<br> If you think you should have such rights, contact a WebAccess Administrator. </p>""" extra = '' else: subtitle = 'step 1 - select role' output += """ <p> Lower level delegation of access rights to roles.<br> An administrator with all rights have to give you these rights. </p>""" email_out = acca.acc_get_user_email(id_user=id_user) name_role = acca.acc_get_role_name(id_role=id_role) output += createroleselect(id_role=id_role, step=1, name='id_role', action='delegate_adduserrole', roles=allowed_roles) if str(id_role) != '0' and str(id_role) in allowed_id_roles: subtitle = 'step 2 - search for users' # remove letters not allowed in an email email_user_pattern = cleanstring_email(email_user_pattern) text = ' <span class="adminlabel">2. search for user </span>\n' text += ' <input class="admin_wvar" type="text" name="email_user_pattern" value="%s" />\n' % (email_user_pattern, ) output += createhiddenform(action="delegate_adduserrole", text=text, button="search for users", id_role=id_role) # pattern is entered if email_user_pattern: # users with matching email-address users1 = run_sql("""SELECT id, email FROM user WHERE email RLIKE '%s' ORDER BY email """ % (email_user_pattern, )) # users that are connected users2 = run_sql("""SELECT DISTINCT u.id, u.email FROM user u LEFT JOIN user_accROLE ur ON u.id = ur.id_user WHERE ur.id_accROLE = '%s' AND u.email RLIKE '%s' ORDER BY u.email """ % (id_role, email_user_pattern)) # no users that match the pattern if not (users1 or users2): output += '<p>no qualified users, try new search.</p>' # too many matching users elif len(users1) > MAXSELECTUSERS: output += '<p><strong>%s hits</strong>, too many qualified users, specify more narrow search. (limit %s)</p>' % (len(users1), MAXSELECTUSERS) # show matching users else: subtitle = 'step 3 - select a user' users = [] extrausers = [] for (id, email) in users1: if (id, email) not in users2: users.append([id,email,'']) for (id, email) in users2: extrausers.append([-id, email,'']) output += createuserselect(id_user=id_user, action="delegate_adduserrole", step=3, users=users, extrausers=extrausers, button="add this user", id_role=id_role, email_user_pattern=email_user_pattern) try: id_user = int(id_user) except ValueError: pass # user selected already connected to role if id_user < 0: output += '<p>users in brackets are already attached to the role, try another one...</p>' # a user is selected elif email_out: subtitle = "step 4 - confirm to add user" output += createhiddenform(action="delegate_adduserrole", text='add user <strong>%s</strong> to role <strong>%s</strong>?' % (email_out, name_role), id_role=id_role, email_user_pattern=email_user_pattern, id_user=id_user, confirm=1) # it is confirmed that this user should be added if confirm: # add user result = acca.acc_add_user_role(id_user=id_user, id_role=id_role) if result and result[2]: subtitle = 'step 5 - confirm user added' output += '<p>confirm: user <strong>%s</strong> added to role <strong>%s</strong>.</p>' % (email_out, name_role) else: subtitle = 'step 5 - user could not be added' output += '<p>sorry, but user could not be added.</p>' extra = """ <dl> <dt><a href="delegate_deleteuserrole?id_role=%s">Remove users from role</a></dt> <dd>remove users from the roles you have delegating rights to.</dd> </dl> """ % (id_role, ) return index(req=req, title='Connect users to roles', subtitle=subtitle, body=[output, extra], adminarea=1, authorized=1)
|
6ea5d72a403945bb48459d4ea7eed6856c3451fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1931/6ea5d72a403945bb48459d4ea7eed6856c3451fb/webaccessadmin_lib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
22216,
67,
1289,
1355,
4615,
12,
3658,
16,
612,
67,
4615,
33,
20,
16,
2699,
67,
1355,
67,
4951,
2218,
2187,
612,
67,
1355,
33,
20,
16,
6932,
33,
20,
4672,
3536,
1810,
279,
2612,
1801,
3311,
3981,
527,
3677,
358,
279,
13594,
444,
434,
4900,
18,
225,
612,
67,
4615,
300,
326,
2478,
358,
3077,
358,
279,
729,
225,
612,
67,
1355,
300,
326,
729,
358,
3077,
358,
279,
2478,
225,
6932,
300,
1221,
326,
1459,
5865,
3536,
225,
468,
13727,
326,
2935,
4900,
364,
333,
729,
612,
67,
3666,
273,
31652,
12,
3658,
13,
612,
67,
1128,
273,
4078,
69,
18,
8981,
67,
588,
67,
1128,
67,
350,
12,
529,
67,
1128,
33,
1639,
19384,
1777,
8355,
4714,
16256,
13,
4209,
273,
4078,
69,
18,
8981,
67,
4720,
67,
12708,
67,
4905,
67,
1355,
12,
350,
67,
1355,
33,
350,
67,
3666,
16,
612,
67,
1128,
33,
350,
67,
1128,
13,
225,
2935,
67,
7774,
273,
5378,
2935,
67,
350,
67,
7774,
273,
5378,
364,
261,
350,
16,
31805,
350,
16,
508,
67,
4615,
67,
5201,
13,
316,
4209,
63,
21,
30,
14542,
612,
67,
4615,
67,
5201,
273,
4078,
69,
18,
8981,
67,
588,
67,
4615,
67,
350,
12,
529,
67,
4615,
33,
529,
67,
4615,
67,
5201,
13,
309,
612,
67,
4615,
67,
5201,
471,
306,
350,
67,
4615,
67,
5201,
16,
508,
67,
4615,
67,
5201,
16,
875,
65,
486,
316,
2935,
67,
7774,
30,
2935,
67,
7774,
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,
3073,
67,
22216,
67,
1289,
1355,
4615,
12,
3658,
16,
612,
67,
4615,
33,
20,
16,
2699,
67,
1355,
67,
4951,
2218,
2187,
612,
67,
1355,
33,
20,
16,
6932,
33,
20,
4672,
3536,
1810,
279,
2612,
1801,
3311,
3981,
527,
3677,
358,
279,
13594,
444,
434,
4900,
18,
225,
612,
67,
4615,
300,
326,
2478,
358,
3077,
358,
279,
729,
225,
612,
67,
1355,
300,
326,
729,
358,
3077,
358,
279,
2478,
225,
6932,
300,
1221,
326,
1459,
5865,
3536,
225,
468,
13727,
326,
2935,
4900,
364,
333,
729,
612,
67,
3666,
273,
31652,
12,
3658,
13,
612,
67,
1128,
273,
4078,
69,
18,
8981,
67,
588,
67,
1128,
67,
350,
12,
529,
67,
1128,
33,
1639,
2
] |
def visit_term(self, node): pass
|
def visit_term(self, node): pass
|
139779d7bc12cf5badb7b0aaa20c58544d65af8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/541/139779d7bc12cf5badb7b0aaa20c58544d65af8e/rst_parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
6408,
12,
2890,
16,
756,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
6408,
12,
2890,
16,
756,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
'certificate': terp.get('certificate', ''),
|
'certificate': terp.get('certificate'),
|
def download(self, cr, uid, ids, download=True, context=None): res = [] for mod in self.browse(cr, uid, ids, context=context): if not mod.url: continue match = re.search('-([a-zA-Z0-9\._-]+)(\.zip)', mod.url, re.I) version = '0' if match: version = match.group(1) if parse_version(mod.installed_version or '0') >= parse_version(version): continue res.append(mod.url) if not download: continue zipfile = urllib.urlopen(mod.url).read() fname = addons.get_module_path(mod.name+'.zip') try: fp = file(fname, 'wb') fp.write(zipfile) fp.close() except IOError, e: raise orm.except_orm(_('Error'), _('Can not create the module file:\n %s') % (fname,)) terp = self.get_module_info(mod.name) self.write(cr, uid, mod.id, { 'description': terp.get('description', ''), 'shortdesc': terp.get('name', ''), 'author': terp.get('author', 'Unknown'), 'website': terp.get('website', ''), 'license': terp.get('license', 'GPL-2'), 'certificate': terp.get('certificate', ''), }) cr.execute('DELETE FROM ir_module_module_dependency ' \ 'WHERE module_id = %s', (mod.id,)) self._update_dependencies(cr, uid, mod.id, terp.get('depends', [])) self._update_category(cr, uid, mod.id, terp.get('category', 'Uncategorized')) # Import module zimp = zipimport.zipimporter(fname) zimp.load_module(mod.name) return res
|
36d897d37168599861152e8c3f0ed42ee0a6ada8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/36d897d37168599861152e8c3f0ed42ee0a6ada8/module.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4224,
33,
5510,
16,
819,
33,
7036,
4672,
400,
273,
5378,
364,
681,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
309,
486,
681,
18,
718,
30,
1324,
845,
273,
283,
18,
3072,
2668,
17,
3816,
69,
17,
9600,
17,
62,
20,
17,
29,
5834,
67,
17,
7941,
4713,
18,
4450,
13,
2187,
681,
18,
718,
16,
283,
18,
45,
13,
1177,
273,
296,
20,
11,
309,
845,
30,
1177,
273,
845,
18,
1655,
12,
21,
13,
309,
1109,
67,
1589,
12,
1711,
18,
13435,
67,
1589,
578,
296,
20,
6134,
1545,
1109,
67,
1589,
12,
1589,
4672,
1324,
400,
18,
6923,
12,
1711,
18,
718,
13,
309,
486,
4224,
30,
1324,
18823,
273,
11527,
18,
295,
18589,
12,
1711,
18,
718,
2934,
896,
1435,
5299,
273,
31439,
18,
588,
67,
2978,
67,
803,
12,
1711,
18,
529,
6797,
18,
4450,
6134,
775,
30,
4253,
273,
585,
12,
12749,
16,
296,
9464,
6134,
4253,
18,
2626,
12,
4450,
768,
13,
4253,
18,
4412,
1435,
1335,
8340,
16,
425,
30,
1002,
13969,
18,
14137,
67,
535,
24899,
2668,
668,
19899,
389,
2668,
2568,
486,
752,
326,
1605,
585,
5581,
82,
738,
87,
6134,
738,
261,
12749,
16,
3719,
19272,
84,
273,
365,
18,
588,
67,
2978,
67,
1376,
12,
1711,
18,
529,
13,
365,
18,
2626,
12,
3353,
16,
4555,
16,
681,
18,
350,
16,
288,
296,
3384,
4278,
19272,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4224,
33,
5510,
16,
819,
33,
7036,
4672,
400,
273,
5378,
364,
681,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
309,
486,
681,
18,
718,
30,
1324,
845,
273,
283,
18,
3072,
2668,
17,
3816,
69,
17,
9600,
17,
62,
20,
17,
29,
5834,
67,
17,
7941,
4713,
18,
4450,
13,
2187,
681,
18,
718,
16,
283,
18,
45,
13,
1177,
273,
296,
20,
11,
309,
845,
30,
1177,
273,
845,
18,
1655,
12,
21,
13,
309,
1109,
67,
1589,
12,
1711,
18,
13435,
67,
1589,
578,
296,
20,
6134,
1545,
1109,
67,
1589,
12,
1589,
4672,
1324,
400,
18,
2
] |
g = G(self.gens()[0])
|
g = G(self.gens()[0])
|
def B(self): G = self.group()
|
6d07ee6e4f019e37154d5cc748c7e39d7e7d7588 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/6d07ee6e4f019e37154d5cc748c7e39d7e7d7588/cubegroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
605,
12,
2890,
4672,
611,
273,
365,
18,
1655,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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605,
12,
2890,
4672,
611,
273,
365,
18,
1655,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
SpecializedSetup<%(name)s, 0>();
|
SpecializedSetup<%(name)s, 0>(true);
|
def WriteImmediateServiceUnitTest(self, func, file): """Writes the service unit test for a command.""" valid_test = """
|
c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d/build_gles2_cmd_buffer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
8368,
326,
1156,
2836,
1842,
364,
279,
1296,
12123,
923,
67,
3813,
273,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
8368,
326,
1156,
2836,
1842,
364,
279,
1296,
12123,
923,
67,
3813,
273,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return S_ERROR('LFCClient.removeDirectory: Must supply a path or list of paths') if len(lfns) > 2:
|
return S_ERROR('LFCClient.listDirectory: Must supply a path or list of paths') if len(paths) > 2:
|
def listDirectory(self, path): if type(path) == types.StringType: paths = [path] elif type(paths) == types.ListType: paths = path else: return S_ERROR('LFCClient.removeDirectory: Must supply a path or list of paths') # If we have less than three lfns to query a session doesn't make sense if len(lfns) > 2: self.__openSession() failed = {} successful = {} for path in paths: res = self.__getDirectoryContents(path) if res['OK']: successful[path] = res['Value']['Files'].keys() else: failed[path] = res['Message'] if self.session: self.__closeSession() resDict = {'Failed':failed,'Successful':successful} return S_OK(resDict)
|
24878006a97fc6c0a40ff01095f00d930f79b1e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/24878006a97fc6c0a40ff01095f00d930f79b1e6/LcgFileCatalogClient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
2853,
12,
2890,
16,
589,
4672,
309,
618,
12,
803,
13,
422,
1953,
18,
780,
559,
30,
2953,
273,
306,
803,
65,
1327,
618,
12,
4481,
13,
422,
1953,
18,
19366,
30,
2953,
273,
589,
469,
30,
327,
348,
67,
3589,
2668,
48,
4488,
1227,
18,
4479,
2853,
30,
6753,
14467,
279,
589,
578,
666,
434,
2953,
6134,
468,
971,
732,
1240,
5242,
2353,
8925,
18594,
2387,
358,
843,
279,
1339,
3302,
1404,
1221,
12764,
309,
562,
12,
20850,
2387,
13,
405,
576,
30,
365,
16186,
3190,
2157,
1435,
2535,
273,
2618,
6873,
273,
2618,
364,
589,
316,
2953,
30,
400,
273,
365,
16186,
588,
2853,
6323,
12,
803,
13,
309,
400,
3292,
3141,
3546,
30,
6873,
63,
803,
65,
273,
400,
3292,
620,
21712,
2697,
29489,
2452,
1435,
469,
30,
2535,
63,
803,
65,
273,
400,
3292,
1079,
3546,
309,
365,
18,
3184,
30,
365,
16186,
4412,
2157,
1435,
400,
5014,
273,
13666,
2925,
4278,
7307,
11189,
14277,
4278,
18418,
97,
327,
348,
67,
3141,
12,
455,
5014,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
2853,
12,
2890,
16,
589,
4672,
309,
618,
12,
803,
13,
422,
1953,
18,
780,
559,
30,
2953,
273,
306,
803,
65,
1327,
618,
12,
4481,
13,
422,
1953,
18,
19366,
30,
2953,
273,
589,
469,
30,
327,
348,
67,
3589,
2668,
48,
4488,
1227,
18,
4479,
2853,
30,
6753,
14467,
279,
589,
578,
666,
434,
2953,
6134,
468,
971,
732,
1240,
5242,
2353,
8925,
18594,
2387,
358,
843,
279,
1339,
3302,
1404,
1221,
12764,
309,
562,
12,
20850,
2387,
13,
405,
576,
30,
365,
16186,
3190,
2157,
1435,
2535,
273,
2618,
6873,
273,
2618,
364,
589,
316,
2953,
30,
400,
273,
365,
16186,
588,
2853,
6323,
12,
803,
13,
309,
400,
3292,
3141,
3546,
30,
6873,
2
] |
write( "Total size of video files, before multiplexing, is %s Mbytes, audio is %s MBytes, menus are %s MBytes." % (totalvideosize,totalaudiosize,totalmenusize)) dvdrsize-=totalaudiosize dvdrsize-=totalmenusize totalvideosize=totalvideosize*1.08 if dvdrsize<0: fatalError("Audio and menu files are greater than the size of a recordable DVD disk. Giving up!") if totalvideosize>dvdrsize: write( "Need to shrink MPEG2 video files to fit onto recordable DVD, video is %s MBytes too big." % (totalvideosize - dvdrsize)) scalepercentage=totalvideosize/dvdrsize write( "Need to scale by %s" % scalepercentage) if scalepercentage>3: write( "Large scale to shrink, may not work!") if path_tcrequant[0] == "": fatalError("tcrequant is not available to resize the files. Giving up!")
|
write( "Total video %.2f Mb, audio %.2f Mb, menus %.2f Mb." % (totalvideosize/mega,totalaudiosize/mega,totalmenusize/mega)) mv2space=((dvdrsize*mega-totalmenusize)/fudge_pack)-totalaudiosize if mv2space<0: fatalError("Audio and menu files are too big. No room for video. Giving up!") if totalvideosize>mv2space: write( "Video files are %.1f Mb too big. Need to shrink." % ((totalvideosize - mv2space)/mega) ) if path_M2VRequantiser[0] == "": fatalError("M2VRequantiser is not available to resize the files. Giving up!") vsize=0 duration=0
|
def performMPEG2Shrink(files,dvdrsize): checkCancelFlag() totalvideosize,totalaudiosize,totalmenusize=calculateFileSizes(files) #Report findings write( "Total size of video files, before multiplexing, is %s Mbytes, audio is %s MBytes, menus are %s MBytes." % (totalvideosize,totalaudiosize,totalmenusize)) #Subtract the audio and menus from the size of the disk (we cannot shrink this further) dvdrsize-=totalaudiosize dvdrsize-=totalmenusize #Add a little bit for the multiplexing stream data totalvideosize=totalvideosize*1.08 if dvdrsize<0: fatalError("Audio and menu files are greater than the size of a recordable DVD disk. Giving up!") if totalvideosize>dvdrsize: write( "Need to shrink MPEG2 video files to fit onto recordable DVD, video is %s MBytes too big." % (totalvideosize - dvdrsize)) scalepercentage=totalvideosize/dvdrsize write( "Need to scale by %s" % scalepercentage) if scalepercentage>3: write( "Large scale to shrink, may not work!") #tcrequant (transcode) is an optional install so may not be available if path_tcrequant[0] == "": fatalError("tcrequant is not available to resize the files. Giving up!") filecount=0 for node in files: filecount+=1 runTcrequant(os.path.join(getItemTempPath(filecount),"stream.mv2"),os.path.join(getItemTempPath(filecount),"video.small.m2v"),scalepercentage) os.remove(os.path.join(getItemTempPath(filecount),"stream.mv2")) os.rename(os.path.join(getItemTempPath(filecount),"video.small.m2v"),os.path.join(getItemTempPath(filecount),"stream.mv2")) totalvideosize,totalaudiosize,totalmenusize=calculateFileSizes(files) write( "Total DVD size AFTER TCREQUANT is %s MBytes" % (totalaudiosize + totalmenusize + (totalvideosize*1.05))) else: dvdrsize-=totalvideosize write( "Video will fit onto DVD. %s MBytes of space remaining on recordable DVD." % dvdrsize)
|
fe2a3bbe33f9454e9fa98bae37d53582fd2d4bb8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/fe2a3bbe33f9454e9fa98bae37d53582fd2d4bb8/mythburn.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
49,
16533,
22,
28747,
12,
2354,
16,
15679,
3069,
1467,
4672,
866,
6691,
4678,
1435,
225,
2078,
6768,
538,
554,
16,
4963,
24901,
7441,
554,
16,
4963,
26065,
554,
33,
11162,
812,
11923,
12,
2354,
13,
225,
468,
4820,
1104,
899,
1045,
12,
315,
5269,
963,
434,
6191,
1390,
16,
1865,
30232,
310,
16,
353,
738,
87,
490,
3890,
16,
7447,
353,
738,
87,
490,
2160,
16,
21374,
854,
738,
87,
490,
2160,
1199,
738,
261,
4963,
6768,
538,
554,
16,
4963,
24901,
7441,
554,
16,
4963,
26065,
554,
3719,
225,
468,
27904,
326,
7447,
471,
21374,
628,
326,
963,
434,
326,
4234,
261,
1814,
2780,
17697,
333,
9271,
13,
12494,
3069,
1467,
17,
33,
4963,
24901,
7441,
554,
12494,
3069,
1467,
17,
33,
4963,
26065,
554,
225,
468,
986,
279,
12720,
2831,
364,
326,
30232,
310,
1407,
501,
2078,
6768,
538,
554,
33,
4963,
6768,
538,
554,
14,
21,
18,
6840,
225,
309,
12494,
3069,
1467,
32,
20,
30,
10081,
668,
2932,
12719,
471,
3824,
1390,
854,
6802,
2353,
326,
963,
434,
279,
1409,
429,
463,
21544,
4234,
18,
225,
611,
9288,
731,
4442,
13,
225,
309,
2078,
6768,
538,
554,
34,
15679,
3069,
1467,
30,
1045,
12,
315,
14112,
358,
17697,
490,
16533,
22,
6191,
1390,
358,
4845,
10170,
1409,
429,
463,
21544,
16,
6191,
353,
738,
87,
490,
2160,
4885,
5446,
1199,
738,
261,
4963,
6768,
538,
554,
300,
12494,
3069,
1467,
3719,
3159,
18687,
33,
4963,
6768,
538,
554,
19,
15679,
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,
3073,
49,
16533,
22,
28747,
12,
2354,
16,
15679,
3069,
1467,
4672,
866,
6691,
4678,
1435,
225,
2078,
6768,
538,
554,
16,
4963,
24901,
7441,
554,
16,
4963,
26065,
554,
33,
11162,
812,
11923,
12,
2354,
13,
225,
468,
4820,
1104,
899,
1045,
12,
315,
5269,
963,
434,
6191,
1390,
16,
1865,
30232,
310,
16,
353,
738,
87,
490,
3890,
16,
7447,
353,
738,
87,
490,
2160,
16,
21374,
854,
738,
87,
490,
2160,
1199,
738,
261,
4963,
6768,
538,
554,
16,
4963,
24901,
7441,
554,
16,
4963,
26065,
554,
3719,
225,
468,
27904,
326,
7447,
471,
21374,
628,
326,
963,
434,
326,
4234,
261,
1814,
2780,
17697,
333,
9271,
13,
12494,
3069,
1467,
17,
33,
4963,
24901,
2
] |
if e.errno == errno.EFTYPE and not self.isdir():
|
if e.errno == 79 and not self.isdir():
|
def chmod(self, permissions): """Wrapper around os.chmod""" try: self.conn.os.chmod(self.path, permissions & Globals.permission_mask) except OSError, e: if e.errno == errno.EFTYPE and not self.isdir(): # Some systems throw this error if try to set sticky bit # on a non-directory. Remove sticky bit and try again. log.Log("Unable to set permissions of %s to %o - trying again" "without sticky bit (%o)" % (self.path, permissions, permissions & 06777), 2) self.conn.os.chmod(self.path, permissions & 06777 & Globals.permission_mask) else: raise self.data['perms'] = permissions
|
6fb50ebeec4062a87be3e5bd527e5f2683c0662c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/783/6fb50ebeec4062a87be3e5bd527e5f2683c0662c/rpath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13413,
12,
2890,
16,
4371,
4672,
3536,
3611,
6740,
1140,
18,
343,
1711,
8395,
775,
30,
365,
18,
4646,
18,
538,
18,
343,
1711,
12,
2890,
18,
803,
16,
4371,
473,
18901,
1031,
18,
9827,
67,
4455,
13,
1335,
10002,
16,
425,
30,
225,
309,
425,
18,
19088,
422,
26517,
471,
486,
365,
18,
291,
1214,
13332,
468,
10548,
14908,
604,
333,
555,
309,
775,
358,
444,
21750,
2831,
468,
603,
279,
1661,
17,
5149,
18,
3581,
21750,
2831,
471,
775,
3382,
18,
613,
18,
1343,
2932,
3370,
358,
444,
4371,
434,
738,
87,
358,
738,
83,
300,
8374,
3382,
6,
315,
13299,
21750,
2831,
6142,
83,
2225,
738,
261,
2890,
18,
803,
16,
4371,
16,
4371,
473,
13026,
14509,
3631,
576,
13,
365,
18,
4646,
18,
538,
18,
343,
1711,
12,
2890,
18,
803,
16,
4371,
473,
13026,
14509,
473,
18901,
1031,
18,
9827,
67,
4455,
13,
469,
30,
1002,
365,
18,
892,
3292,
15969,
3546,
273,
4371,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13413,
12,
2890,
16,
4371,
4672,
3536,
3611,
6740,
1140,
18,
343,
1711,
8395,
775,
30,
365,
18,
4646,
18,
538,
18,
343,
1711,
12,
2890,
18,
803,
16,
4371,
473,
18901,
1031,
18,
9827,
67,
4455,
13,
1335,
10002,
16,
425,
30,
225,
309,
425,
18,
19088,
422,
26517,
471,
486,
365,
18,
291,
1214,
13332,
468,
10548,
14908,
604,
333,
555,
309,
775,
358,
444,
21750,
2831,
468,
603,
279,
1661,
17,
5149,
18,
3581,
21750,
2831,
471,
775,
3382,
18,
613,
18,
1343,
2932,
3370,
358,
444,
4371,
434,
738,
87,
358,
738,
83,
300,
8374,
3382,
6,
315,
13299,
21750,
2831,
6142,
83,
2225,
738,
261,
2890,
18,
803,
16,
4371,
16,
4371,
473,
2
] |
SyntaxError: assignment to None (<doctest test.test_syntax[18]>, line 1)
|
SyntaxError: cannot assign to None (<doctest test.test_syntax[18]>, line 1)
|
>>> def f(**None):
|
0328490bdfbeb742609ad5b4ede915138f15ac8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/0328490bdfbeb742609ad5b4ede915138f15ac8a/test_syntax.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
636,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
636,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
name = self.stripColors(match.group('name')) if int(match.group('cid')) == 0 and client.name != name: self.debug('UrT bug spotted: cid does not match name on a Sayteam line') client2 = self.clients.getClientsByName(name) if not client2: self.warning('Could not get client with name %s' % name) return None self.debug('cid should be %s' % client2.cid) return b3.events.Event(b3.events.EVT_CLIENT_TEAM_SAY, data, client2, client2.team) else: return b3.events.Event(b3.events.EVT_CLIENT_TEAM_SAY, data, client, client.team)
|
return b3.events.Event(b3.events.EVT_CLIENT_TEAM_SAY, data, client, client.team)
|
def OnSayteam(self, action, data, match=None): #2:28 sayteam: 12 New_UrT_Player_v4.1: wokele client = self.getByCidOrJoinPlayer(match.group('cid'))
|
8be17802b60bcda2d50efa553c1d9b18fe9e769d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12909/8be17802b60bcda2d50efa553c1d9b18fe9e769d/iourt41.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
55,
528,
10035,
12,
2890,
16,
1301,
16,
501,
16,
845,
33,
7036,
4672,
468,
22,
30,
6030,
12532,
10035,
30,
2593,
1166,
67,
57,
86,
56,
67,
12148,
67,
90,
24,
18,
21,
30,
341,
601,
6516,
1004,
273,
365,
18,
588,
858,
19844,
1162,
4572,
12148,
12,
1916,
18,
1655,
2668,
13478,
26112,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
55,
528,
10035,
12,
2890,
16,
1301,
16,
501,
16,
845,
33,
7036,
4672,
468,
22,
30,
6030,
12532,
10035,
30,
2593,
1166,
67,
57,
86,
56,
67,
12148,
67,
90,
24,
18,
21,
30,
341,
601,
6516,
1004,
273,
365,
18,
588,
858,
19844,
1162,
4572,
12148,
12,
1916,
18,
1655,
2668,
13478,
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,
-100,
-100,
-100,
-100,
-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.check_sizeof(abs, h + 3*p)
|
self.check_sizeof(abs, size(h + '3P'))
|
def get_gen(): yield 1
|
300a10ceb1febf233333c4843a55c526b4019feb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/300a10ceb1febf233333c4843a55c526b4019feb/test_sys.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4507,
13332,
2824,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
336,
67,
4507,
13332,
2824,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self._profileDt
|
return self._profileInfo.dt
|
def _getTaskProfileDt(self): return self._profileDt
|
9b36b7b487327db0ba0615acb1d91d79e2fce589 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/9b36b7b487327db0ba0615acb1d91d79e2fce589/Task.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
2174,
4029,
19739,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
2174,
4029,
19739,
12,
2890,
4672,
327,
365,
6315,
5040,
19739,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Abelian variety factor of dimension 2 of J0(125), Abelian variety factor of dimension 2 of J0(125), Abelian variety factor of dimension 4 of J0(125)
|
Simple abelian subvariety 125a(1,125) of dimension 2 of J0(125), Simple abelian subvariety 125b(1,125) of dimension 2 of J0(125), Simple abelian subvariety 125c(1,125) of dimension 4 of J0(125)
|
def __getslice__(self, i, j): """ The slice i:j of decompositions of self.
|
83d03c9b2d797a52ad4e3f2fe47728d1f93f64bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/83d03c9b2d797a52ad4e3f2fe47728d1f93f64bc/abvar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
6665,
972,
12,
2890,
16,
277,
16,
525,
4672,
3536,
1021,
2788,
277,
30,
78,
434,
9862,
12388,
434,
365,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
6665,
972,
12,
2890,
16,
277,
16,
525,
4672,
3536,
1021,
2788,
277,
30,
78,
434,
9862,
12388,
434,
365,
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
] |
""" TODO unit tests """
|
def __setitem__(self, index, value): """
|
0479d0e6e0fff5104b463a62dcd9d0f78ec3e2cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/0479d0e6e0fff5104b463a62dcd9d0f78ec3e2cb/collections_.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
770,
16,
460,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
sep + "vppen size=r vpstyle=n gridnum=%d,2 $SOURCES" % (n/2),
|
vppen + " size=r vpstyle=n gridnum=%d,2 $SOURCES" % (n/2),
|
def retrieve(target=None,source=None,env=None): "Fetch data from the web" top = env.get('top') folder = top + os.sep +env['dir'] private = env.get('private') if private: login = private['login'] password = private['password'] server = private['server'] try: session = ftplib.FTP(server,login,password) session.cwd(folder) except: print 'Could not establish connection with "%s/%s" ' % (server, folder) return 3 for file in map(str,target): remote = os.path.basename(file) try: download = open(file,'wb') session.retrbinary('RETR '+remote, lambda x: download.write(x)) download.close() except: print 'Could not download file "%s" ' % file return 1 if not os.stat(file)[6]: print 'Could not download file "%s" ' % file os.unlink(file) return 4 session.quit() else: server = env.get('server') for file in map(str,target): remote = os.path.basename(file) rdir = string.join([server,folder,remote],'/') try: urllib.urlretrieve(rdir,file) if not os.stat(file)[6]: print 'Could not download file "%s" ' % file os.unlink(file) return 2 except: print 'Could not download "%s" from "%s" ' % (file,rdir) return 5 return 0
|
9826f7cd9d8f2da6836e7df78950cf03bbee4dc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3143/9826f7cd9d8f2da6836e7df78950cf03bbee4dc5/rsfproj.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4614,
12,
3299,
33,
7036,
16,
3168,
33,
7036,
16,
3074,
33,
7036,
4672,
315,
5005,
501,
628,
326,
3311,
6,
1760,
273,
1550,
18,
588,
2668,
3669,
6134,
3009,
273,
1760,
397,
1140,
18,
10814,
397,
3074,
3292,
1214,
3546,
3238,
273,
1550,
18,
588,
2668,
1152,
6134,
309,
3238,
30,
3925,
273,
3238,
3292,
5819,
3546,
2201,
273,
3238,
3292,
3664,
3546,
1438,
273,
3238,
3292,
3567,
3546,
775,
30,
1339,
273,
11038,
6673,
18,
17104,
12,
3567,
16,
5819,
16,
3664,
13,
1339,
18,
11089,
12,
5609,
13,
1335,
30,
1172,
296,
4445,
486,
18312,
1459,
598,
2213,
87,
5258,
87,
6,
296,
738,
261,
3567,
16,
3009,
13,
327,
890,
364,
585,
316,
852,
12,
701,
16,
3299,
4672,
2632,
273,
1140,
18,
803,
18,
13909,
12,
768,
13,
775,
30,
4224,
273,
1696,
12,
768,
11189,
9464,
6134,
1339,
18,
266,
313,
8578,
2668,
862,
4349,
15126,
7222,
16,
3195,
619,
30,
4224,
18,
2626,
12,
92,
3719,
4224,
18,
4412,
1435,
1335,
30,
1172,
296,
4445,
486,
4224,
585,
2213,
87,
6,
296,
738,
585,
327,
404,
309,
486,
1140,
18,
5642,
12,
768,
25146,
26,
14542,
1172,
296,
4445,
486,
4224,
585,
2213,
87,
6,
296,
738,
585,
1140,
18,
318,
1232,
12,
768,
13,
327,
1059,
1339,
18,
27176,
1435,
469,
30,
1438,
273,
1550,
18,
588,
2668,
3567,
6134,
364,
585,
316,
852,
12,
701,
16,
3299,
4672,
2632,
273,
1140,
18,
803,
18,
13909,
12,
768,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4614,
12,
3299,
33,
7036,
16,
3168,
33,
7036,
16,
3074,
33,
7036,
4672,
315,
5005,
501,
628,
326,
3311,
6,
1760,
273,
1550,
18,
588,
2668,
3669,
6134,
3009,
273,
1760,
397,
1140,
18,
10814,
397,
3074,
3292,
1214,
3546,
3238,
273,
1550,
18,
588,
2668,
1152,
6134,
309,
3238,
30,
3925,
273,
3238,
3292,
5819,
3546,
2201,
273,
3238,
3292,
3664,
3546,
1438,
273,
3238,
3292,
3567,
3546,
775,
30,
1339,
273,
11038,
6673,
18,
17104,
12,
3567,
16,
5819,
16,
3664,
13,
1339,
18,
11089,
12,
5609,
13,
1335,
30,
1172,
296,
4445,
486,
18312,
1459,
598,
2213,
87,
5258,
87,
6,
296,
738,
261,
3567,
16,
3009,
13,
327,
890,
364,
585,
316,
852,
2
] |
import datetime typ = self._makeOne() date = datetime.date.today()
|
typ = self._makeOne() date = self._today()
|
def test_serialize_with_date(self): import datetime typ = self._makeOne() date = datetime.date.today() node = DummySchemaNode(None) result = typ.serialize(node, date) expected = date.isoformat() self.assertEqual(result, expected)
|
605f1489d7515c2d4261831fe6b5a17f338fb86e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13089/605f1489d7515c2d4261831fe6b5a17f338fb86e/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6288,
67,
1918,
67,
712,
12,
2890,
4672,
3815,
273,
365,
6315,
6540,
3335,
1435,
1509,
273,
365,
6315,
30064,
1435,
756,
273,
28622,
3078,
907,
12,
7036,
13,
563,
273,
3815,
18,
6288,
12,
2159,
16,
1509,
13,
2665,
273,
1509,
18,
9699,
2139,
1435,
365,
18,
11231,
5812,
12,
2088,
16,
2665,
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,
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
13,
2665,
273,
1509,
18,
9699,
2139,
1435,
365,
18,
11231,
5812,
12,
2088,
16,
2665,
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
] |
return s.replace(SAGE_BEGIN,'').replace(SAGE_END,'').replace(SC)
|
return s.replace(SAGE_BEGIN,'').replace(SAGE_END,'').replace(SC,'')
|
def _process_output(self, s): s = re.sub('\x08.','',s) s = self._strip_synchro_from_start_of_output(s) if SAGE_ERROR in s: i = s.rfind('>>>') if i >= 0: return s[:i-1] # Remove any control codes that might have not got stripped out. return s.replace(SAGE_BEGIN,'').replace(SAGE_END,'').replace(SC)
|
6898d1ceffb6d8593f18cf0f0bd79d4bef3d484f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/6898d1ceffb6d8593f18cf0f0bd79d4bef3d484f/worksheet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
2844,
12,
2890,
16,
272,
4672,
272,
273,
283,
18,
1717,
2668,
64,
92,
6840,
1093,
11189,
2187,
87,
13,
272,
273,
365,
6315,
6406,
67,
87,
2515,
303,
67,
2080,
67,
1937,
67,
792,
67,
2844,
12,
87,
13,
309,
348,
2833,
67,
3589,
316,
272,
30,
277,
273,
272,
18,
86,
4720,
2668,
9778,
1870,
13,
309,
277,
1545,
374,
30,
327,
272,
10531,
77,
17,
21,
65,
468,
3581,
1281,
3325,
6198,
716,
4825,
1240,
486,
2363,
13300,
596,
18,
327,
272,
18,
2079,
12,
55,
2833,
67,
16061,
16,
6309,
2934,
2079,
12,
55,
2833,
67,
4415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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
2844,
12,
2890,
16,
272,
4672,
272,
273,
283,
18,
1717,
2668,
64,
92,
6840,
1093,
11189,
2187,
87,
13,
272,
273,
365,
6315,
6406,
67,
87,
2515,
303,
67,
2080,
67,
1937,
67,
792,
67,
2844,
12,
87,
13,
309,
348,
2833,
67,
3589,
316,
272,
30,
277,
273,
272,
18,
86,
4720,
2668,
9778,
1870,
13,
309,
277,
1545,
374,
30,
327,
272,
10531,
77,
17,
21,
65,
468,
3581,
1281,
3325,
6198,
716,
4825,
1240,
486,
2363,
13300,
596,
18,
327,
272,
18,
2079,
12,
55,
2833,
67,
16061,
16,
6309,
2934,
2079,
12,
55,
2833,
67,
4415,
16,
6309,
2934,
2079,
12,
2312,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.setDaemon(False)
|
self.daemon = True
|
def __init__(self, certificate, ssl_version=None, certreqs=None, cacerts=None, expect_bad_connects=False, chatty=True, connectionchatty=False, starttls_server=False, wrap_accepting_socket=False):
|
c048eba81671002b900e506217b944305a2b1042 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/c048eba81671002b900e506217b944305a2b1042/test_ssl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4944,
16,
5832,
67,
1589,
33,
7036,
16,
3320,
25782,
33,
7036,
16,
276,
1077,
1051,
87,
33,
7036,
16,
4489,
67,
8759,
67,
3612,
87,
33,
8381,
16,
7916,
4098,
33,
5510,
16,
1459,
10880,
4098,
33,
8381,
16,
787,
17116,
67,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4944,
16,
5832,
67,
1589,
33,
7036,
16,
3320,
25782,
33,
7036,
16,
276,
1077,
1051,
87,
33,
7036,
16,
4489,
67,
8759,
67,
3612,
87,
33,
8381,
16,
7916,
4098,
33,
5510,
16,
1459,
10880,
4098,
33,
8381,
16,
787,
17116,
67,
3567,
33,
8381,
16,
2193,
67,
9436,
310,
67,
7814,
33,
8381,
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
] |
if key in self.setkeys and hasattr(self, key):
|
if key in self.setkeys or hasattr(self, key):
|
def getAttribute(self, key): if key in self.setkeys and hasattr(self, key): return getattr(self, key) return None
|
40ac440efcf9686e7f1c5dd4c1d91575db10ef95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/40ac440efcf9686e7f1c5dd4c1d91575db10ef95/repos.py
|
[
1,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4061,
12,
2890,
16,
498,
4672,
309,
498,
316,
365,
18,
542,
2452,
578,
3859,
12,
2890,
16,
498,
4672,
327,
3869,
12,
2890,
16,
498,
13,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
os.makedirs(d)
|
os.rmdir(d)
|
def _teardown(self, files): # sort and reverse so that we're tearing down directories in the # reverse order that we built them. files.sort() files.reverse()
|
9fd3262d71d4dbc130d848e33cb36e58b369ea89 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11836/9fd3262d71d4dbc130d848e33cb36e58b369ea89/test_pathinfo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
736,
20684,
12,
2890,
16,
1390,
4672,
468,
1524,
471,
4219,
1427,
716,
732,
4565,
268,
2091,
310,
2588,
6402,
316,
326,
468,
4219,
1353,
716,
732,
6650,
2182,
18,
1390,
18,
3804,
1435,
1390,
18,
9845,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
736,
20684,
12,
2890,
16,
1390,
4672,
468,
1524,
471,
4219,
1427,
716,
732,
4565,
268,
2091,
310,
2588,
6402,
316,
326,
468,
4219,
1353,
716,
732,
6650,
2182,
18,
1390,
18,
3804,
1435,
1390,
18,
9845,
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
] |
PangoCoverageLevel = enum_anon_1
|
PangoCoverageLevel = enum_anon_2
|
def load_lib(name): libname = ctypes.util.find_library(name) if not libname: raise OSError("Could not find library '%s'" % name) else: return CDLL(libname)
|
92bb4862df49194567fad21ea00d921ffc62dd6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/92bb4862df49194567fad21ea00d921ffc62dd6a/pango.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,
508,
13,
469,
30,
327,
21508,
4503,
12,
2941,
529,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,
508,
13,
469,
30,
327,
21508,
4503,
12,
2941,
529,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.label_conntype = wx.StaticText(self, -1, _("label_conntype"))
|
self.label_conntype = wx.StaticText(self, -1, "")
|
def __init__(self, config_data, *args, **kwds): self.config_data = config_data
|
5531c7562a3f66db83d67b6f0c20ad3f8f40010f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/5531c7562a3f66db83d67b6f0c20ad3f8f40010f/ConnectDialog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
67,
892,
16,
380,
1968,
16,
2826,
25577,
4672,
365,
18,
1425,
67,
892,
273,
642,
67,
892,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
67,
892,
16,
380,
1968,
16,
2826,
25577,
4672,
365,
18,
1425,
67,
892,
273,
642,
67,
892,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.