rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
os.mkdir(dst, 0777) | try: os.mkdir(dst, 0777) except OSError, e: if e.errno != errno.EEXIST: raise | def mkdirs(dst): """Make directories leading to 'dst' if they don't exist yet""" if dst == '' or os.path.exists(dst): return head, tail = os.path.split(dst) if os.sep == ':' and not ':' in head: head = head + ':' mkdirs(head) os.mkdir(dst, 0777) | abcc168c69868c447dc976841ce1978f2298d4a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/abcc168c69868c447dc976841ce1978f2298d4a0/macostools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18095,
12,
11057,
4672,
3536,
6464,
6402,
7676,
358,
296,
11057,
11,
309,
2898,
2727,
1404,
1005,
4671,
8395,
309,
3046,
422,
875,
578,
1140,
18,
803,
18,
1808,
12,
11057,
4672,
327,
910,
16,
5798,
273,
1140,
18,
803,
18,
4939,
12,
11057,
13,
309,
1140,
18,
10814,
422,
3921,
471,
486,
3921,
316,
910,
30,
910,
273,
910,
397,
3921,
18095,
12,
1978,
13,
225,
775,
30,
1140,
18,
26686,
12,
11057,
16,
16660,
13,
1335,
10002,
16,
425,
30,
225,
309,
425,
18,
19088,
480,
8402,
18,
41,
11838,
30,
1002,
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,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898,
2727,
1404,
1005,
4671,
8395,
309,
3046,
422,
875,
578,
1140,
18,
803,
18,
1808,
12,
11057,
4672,
327,
910,
16,
5798,
273,
1140,
18,
803,
18,
4939,
12,
11057,
13,
309,
1140,
18,
10814,
422,
3921,
471,
486,
3921,
316,
910,
30,
910,
273,
910,
397,
3921,
18095,
12,
1978,
13,
225,
775,
30,
1140,
18,
26686,
12,
11057,
16,
16660,
13,
1335,
10002,
16,
425,
30,
225,
309,
425,
18,
19088,
480,
8402,
18,
41,
11838,
30,
1002,
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
] |
line = Line(l) if line.idhex not in nodes: n = Node() nodes[line.idhex] = n else: n = nodes[line.idhex] n.add_line(line) | try: line = Line(l) if line.idhex not in nodes: n = Node() nodes[line.idhex] = n else: n = nodes[line.idhex] n.add_line(line) except ValueError,e: print "Conversion error "+str(e)+" at "+l | def main(argv): for d in argv[1:-1]: # First, create a list of the most recent files in the # scan dirs that are recent enough for root, dirs, files in os.walk(d): for f in files: if f.find("-done-"): fp = file(f, "r") ranks = fp.readline() timestamp = float(fp.readline()) fp.close() if ranks not in bw_files or bw_files[ranks][0] < timestamp: bw_files[ranks] = (timestamp, f) for (t,f) in bw_files.itervalues(): fp = file(f, "r") fp.readline() fp.readline() for l in fp.readlines(): line = Line(l) if line.idhex not in nodes: n = Node() nodes[line.idhex] = n else: n = nodes[line.idhex] n.add_line(line) fp.close() pre_strm_avg = sum(map(lambda n: n.avg_strm_bw(), nodes.itervalues()))/ \ float(len(nodes)) pre_filt_avg = sum(map(lambda n: n.avg_filt_bw(), nodes.itervalues()))/ \ float(len(nodes)) for n in nodes.itervalues(): n.choose_strm_bw(pre_strm_avg) n.choose_filt_bw(pre_filt_avg) true_strm_avg = sum(map(lambda n: n.chosen_sbw, nodes.itervalues()))/ \ float(len(nodes)) true_filt_avg = sum(map(lambda n: n.chosen_fbw, nodes.itervalues()))/ \ float(len(nodes)) for n in nodes.itervalues(): n.fbw_ratio = n.filt_bw[n.chosen_fbw]/true_filt_avg n.sbw_ratio = n.strm_bw[n.chosen_sbw]/true_strm_avg if closest_to_one((n.sbw_ratio, n.fbw_ratio)) == 0: n.ratio = n.sbw_ratio n.new_bw = n.ns_bw[n.chosen_sbw]*n.ratio else: n.ratio = n.fbw_ratio n.new_bw = n.ns_bw[n.chosen_fbw]*n.ratio n_print = nodes.values() n_print.sort(lambda x,y: x.new_bw < y.new_bw) oldest_timestamp = min(map(lambda (t,f): t, bw_files.itervalues())) out = file(argv[-1], "w") out.write(str(int(round(oldest_timestamp,0)))+"\n") for n in n_print: out.write("node_id="+n.idhex+" bw="+str(base10_round(n.new_bw))+"\n") out.close() | f83bead330fe47785c58ea75d371332044c48c57 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/f83bead330fe47785c58ea75d371332044c48c57/aggregate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
364,
302,
316,
5261,
63,
21,
30,
17,
21,
14542,
468,
5783,
16,
752,
279,
666,
434,
326,
4486,
8399,
1390,
316,
326,
468,
4135,
7717,
716,
854,
8399,
7304,
364,
1365,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
72,
4672,
364,
284,
316,
1390,
30,
309,
284,
18,
4720,
2932,
17,
8734,
10951,
4672,
4253,
273,
585,
12,
74,
16,
315,
86,
7923,
24828,
273,
4253,
18,
896,
1369,
1435,
2858,
273,
1431,
12,
7944,
18,
896,
1369,
10756,
4253,
18,
4412,
1435,
309,
24828,
486,
316,
12986,
67,
2354,
578,
12986,
67,
2354,
63,
11500,
87,
6362,
20,
65,
411,
2858,
30,
12986,
67,
2354,
63,
11500,
87,
65,
273,
261,
5508,
16,
284,
13,
225,
364,
261,
88,
16,
74,
13,
316,
12986,
67,
2354,
18,
2165,
2372,
13332,
4253,
273,
585,
12,
74,
16,
315,
86,
7923,
4253,
18,
896,
1369,
1435,
4253,
18,
896,
1369,
1435,
364,
328,
316,
4253,
18,
896,
3548,
13332,
775,
30,
980,
273,
5377,
12,
80,
13,
309,
980,
18,
350,
7118,
486,
316,
2199,
30,
290,
273,
2029,
1435,
2199,
63,
1369,
18,
350,
7118,
65,
273,
290,
469,
30,
290,
273,
2199,
63,
1369,
18,
350,
7118,
65,
290,
18,
1289,
67,
1369,
12,
1369,
13,
1335,
2068,
16,
73,
30,
1172,
315,
6814,
555,
13773,
701,
12,
73,
13,
9078,
622,
13773,
80,
4253,
18,
4412,
1435,
225,
675,
67,
701,
81,
67,
14141,
273,
2142,
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,
2774,
12,
19485,
4672,
364,
302,
316,
5261,
63,
21,
30,
17,
21,
14542,
468,
5783,
16,
752,
279,
666,
434,
326,
4486,
8399,
1390,
316,
326,
468,
4135,
7717,
716,
854,
8399,
7304,
364,
1365,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
72,
4672,
364,
284,
316,
1390,
30,
309,
284,
18,
4720,
2932,
17,
8734,
10951,
4672,
4253,
273,
585,
12,
74,
16,
315,
86,
7923,
24828,
273,
4253,
18,
896,
1369,
1435,
2858,
273,
1431,
12,
7944,
18,
896,
1369,
10756,
4253,
18,
4412,
1435,
309,
24828,
486,
316,
12986,
67,
2354,
578,
12986,
67,
2354,
63,
11500,
87,
6362,
20,
65,
411,
2858,
30,
12986,
67,
2354,
63,
11500,
87,
65,
273,
2
] |
self.subplot = stripChartWdg.getSubplot(subplotInd) | self.subplot = stripChartWdg.subplotArr[subplotInd] | def __init__(self, stripChartWdg, subplotInd, **kargs): """Create a line Inputs: - stripChartWdg: the StripChartWdg to which this _Line belongs - subplotInd: the index of the subplot to which this _Line belongs - doAutoscale: if True then autoscale the y axis - **kargs: keyword arguments for matplotlib Line2D, such as color """ self.subplotInd = subplotInd self.subplot = stripChartWdg.getSubplot(subplotInd) self.line = matplotlib.lines.Line2D([], [], animated=True, **kargs) self.subplot.add_line(self.line) | 27a58a0112f1fec646c48234c36396c25acdd031 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6353/27a58a0112f1fec646c48234c36396c25acdd031/StripChartWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2569,
7984,
59,
72,
75,
16,
19826,
3866,
16,
2826,
79,
1968,
4672,
3536,
1684,
279,
980,
225,
24472,
30,
300,
2569,
7984,
59,
72,
75,
30,
326,
15589,
7984,
59,
72,
75,
358,
1492,
333,
389,
1670,
11081,
300,
19826,
3866,
30,
326,
770,
434,
326,
19826,
358,
1492,
333,
389,
1670,
11081,
300,
741,
21023,
1869,
30,
309,
1053,
1508,
13133,
1869,
326,
677,
2654,
300,
2826,
79,
1968,
30,
4932,
1775,
364,
13892,
5377,
22,
40,
16,
4123,
487,
2036,
3536,
365,
18,
24523,
3866,
273,
19826,
3866,
365,
18,
24523,
273,
2569,
7984,
59,
72,
75,
18,
24523,
5715,
63,
24523,
3866,
65,
365,
18,
1369,
273,
13892,
18,
3548,
18,
1670,
22,
40,
3816,
6487,
5378,
16,
29990,
33,
5510,
16,
2826,
79,
1968,
13,
365,
18,
24523,
18,
1289,
67,
1369,
12,
2890,
18,
1369,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2569,
7984,
59,
72,
75,
16,
19826,
3866,
16,
2826,
79,
1968,
4672,
3536,
1684,
279,
980,
225,
24472,
30,
300,
2569,
7984,
59,
72,
75,
30,
326,
15589,
7984,
59,
72,
75,
358,
1492,
333,
389,
1670,
11081,
300,
19826,
3866,
30,
326,
770,
434,
326,
19826,
358,
1492,
333,
389,
1670,
11081,
300,
741,
21023,
1869,
30,
309,
1053,
1508,
13133,
1869,
326,
677,
2654,
300,
2826,
79,
1968,
30,
4932,
1775,
364,
13892,
5377,
22,
40,
16,
4123,
487,
2036,
3536,
365,
18,
24523,
3866,
273,
19826,
3866,
365,
18,
24523,
273,
2569,
7984,
59,
72,
75,
18,
24523,
5715,
63,
24523,
3866,
65,
365,
18,
1369,
273,
13892,
2
] |
text, _href, frag = elem_to_link(elem, href, counter) | text, _href, frag = elem_to_link(elem, href, counter, look_for_link=False) | def elem_to_link(elem, href, counter): text = (u''.join(elem.xpath('string()'))).strip() if not text: return None, None, None t = elem.xpath('descendant-or-self::a[@href]') if t: _href = 'content/' + t[0].get('href', '') parts = _href.split('#') _href = parts[0] frag = None if len(parts) == 1 else parts[-1] else: _href = href id = elem.get('id', 'calibre_chapter_%d'%counter) elem.set('id', id) frag = id return text, _href, frag | f626ae027098dba64367daa0ad6e264c26b443b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/f626ae027098dba64367daa0ad6e264c26b443b7/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3659,
67,
869,
67,
1232,
12,
10037,
16,
3897,
16,
3895,
4672,
977,
273,
261,
89,
6309,
18,
5701,
12,
10037,
18,
18644,
2668,
1080,
11866,
3719,
2934,
6406,
1435,
309,
486,
977,
30,
327,
599,
16,
599,
16,
599,
268,
273,
3659,
18,
18644,
2668,
26236,
970,
17,
280,
17,
2890,
2866,
69,
14782,
7547,
3864,
13,
309,
268,
30,
389,
7547,
273,
296,
1745,
2473,
397,
268,
63,
20,
8009,
588,
2668,
7547,
2187,
28707,
2140,
273,
389,
7547,
18,
4939,
2668,
7,
6134,
389,
7547,
273,
2140,
63,
20,
65,
10111,
273,
599,
309,
562,
12,
6019,
13,
422,
404,
469,
2140,
18919,
21,
65,
469,
30,
389,
7547,
273,
3897,
612,
273,
3659,
18,
588,
2668,
350,
2187,
296,
771,
495,
266,
67,
31254,
10185,
72,
11,
9,
7476,
13,
3659,
18,
542,
2668,
350,
2187,
612,
13,
10111,
273,
612,
327,
977,
16,
389,
7547,
16,
10111,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3659,
67,
869,
67,
1232,
12,
10037,
16,
3897,
16,
3895,
4672,
977,
273,
261,
89,
6309,
18,
5701,
12,
10037,
18,
18644,
2668,
1080,
11866,
3719,
2934,
6406,
1435,
309,
486,
977,
30,
327,
599,
16,
599,
16,
599,
268,
273,
3659,
18,
18644,
2668,
26236,
970,
17,
280,
17,
2890,
2866,
69,
14782,
7547,
3864,
13,
309,
268,
30,
389,
7547,
273,
296,
1745,
2473,
397,
268,
63,
20,
8009,
588,
2668,
7547,
2187,
28707,
2140,
273,
389,
7547,
18,
4939,
2668,
7,
6134,
389,
7547,
273,
2140,
63,
20,
65,
10111,
273,
599,
309,
562,
12,
6019,
13,
422,
404,
469,
2140,
18919,
21,
65,
469,
30,
389,
7547,
273,
3897,
612,
273,
3659,
18,
2
] |
self.zoomOutAction.setStatusTip('Make the text larger') | self.zoomOutAction.setStatusTip('Make the text smaller') | def createActions(self): self.quitAction = QAction('Quit', self) self.connect(self.quitAction, SIGNAL('triggered()'), QApplication.instance().quit) | 6089727d25b87a865d9ffa5623cfc109f94d53cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11141/6089727d25b87a865d9ffa5623cfc109f94d53cb/smewg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6100,
12,
2890,
4672,
365,
18,
27176,
1803,
273,
2238,
1803,
2668,
25365,
2187,
365,
13,
365,
18,
3612,
12,
2890,
18,
27176,
1803,
16,
12057,
1013,
2668,
10668,
329,
11866,
3631,
2238,
3208,
18,
1336,
7675,
27176,
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,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
1803,
273,
2238,
1803,
2668,
25365,
2187,
365,
13,
365,
18,
3612,
12,
2890,
18,
27176,
1803,
16,
12057,
1013,
2668,
10668,
329,
11866,
3631,
2238,
3208,
18,
1336,
7675,
27176,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
b = repo.branchtags() heads = dict.fromkeys(repo.heads(), 1) l = [((n in heads), repo.changelog.rev(n), n, t) for t, n in b.items()] l.sort() l.reverse() for ishead, r, n, t in l: if active and not ishead: break else: hexfunc = ui.debugflag and hex or short | hexfunc = ui.debugflag and hex or short activebranches = [util.tolocal(repo.changectx(n).branch()) for n in repo.heads()] branches = [(tag in activebranches, repo.changelog.rev(node), tag) for tag, node in repo.branchtags().items()] branches.sort(reverse=True) for isactive, node, tag in branches: if (not active) or isactive: | def branches(ui, repo, active=False): """list repository named branches List the repository's named branches, indicating which ones are inactive. If active is specified, only show active branches. A branch is considered active if it contains unmerged heads. Use the command 'hg update' to switch to an existing branch. """ b = repo.branchtags() heads = dict.fromkeys(repo.heads(), 1) l = [((n in heads), repo.changelog.rev(n), n, t) for t, n in b.items()] l.sort() l.reverse() for ishead, r, n, t in l: if active and not ishead: # If we're only displaying active branches, abort the loop on # encountering the first inactive head break else: hexfunc = ui.debugflag and hex or short if ui.quiet: ui.write("%s\n" % t) else: spaces = " " * (30 - util.locallen(t)) # The code only gets here if inactive branches are being # displayed or the branch is active. isinactive = ((not ishead) and " (inactive)") or '' ui.write("%s%s %s:%s%s\n" % (t, spaces, r, hexfunc(n), isinactive)) | 8e8d29fe6aed94e83d5d9dfabf0e0f42fbc9c3fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/8e8d29fe6aed94e83d5d9dfabf0e0f42fbc9c3fc/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11483,
12,
4881,
16,
3538,
16,
2695,
33,
8381,
4672,
3536,
1098,
3352,
4141,
11483,
225,
987,
326,
3352,
1807,
4141,
11483,
16,
11193,
1492,
5945,
854,
16838,
18,
225,
971,
2695,
353,
1269,
16,
1338,
2405,
2695,
11483,
18,
225,
432,
3803,
353,
7399,
2695,
309,
518,
1914,
27013,
22742,
18,
225,
2672,
326,
1296,
296,
26981,
1089,
11,
358,
1620,
358,
392,
2062,
3803,
18,
3536,
324,
273,
3538,
18,
7500,
4156,
1435,
22742,
273,
2065,
18,
2080,
2452,
12,
7422,
18,
20263,
9334,
404,
13,
328,
273,
306,
12443,
82,
316,
22742,
3631,
3538,
18,
24083,
12970,
18,
9083,
12,
82,
3631,
290,
16,
268,
13,
364,
268,
16,
290,
316,
324,
18,
3319,
1435,
65,
328,
18,
3804,
1435,
328,
18,
9845,
1435,
364,
353,
1978,
16,
436,
16,
290,
16,
268,
316,
328,
30,
309,
2695,
471,
486,
353,
1978,
30,
468,
971,
732,
4565,
1338,
23620,
2695,
11483,
16,
6263,
326,
2798,
603,
468,
8273,
310,
326,
1122,
16838,
910,
898,
469,
30,
3827,
644,
273,
5915,
18,
4148,
6420,
471,
3827,
578,
3025,
309,
5915,
18,
20380,
30,
5915,
18,
2626,
27188,
87,
64,
82,
6,
738,
268,
13,
469,
30,
7292,
273,
315,
315,
380,
261,
5082,
300,
1709,
18,
1829,
7862,
12,
88,
3719,
468,
1021,
981,
1338,
5571,
2674,
309,
16838,
11483,
854,
3832,
468,
10453,
578,
326,
3803,
353,
2695,
18,
353,
27366,
273,
14015,
902,
353,
1978,
13,
471,
315,
261,
27366,
2225,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11483,
12,
4881,
16,
3538,
16,
2695,
33,
8381,
4672,
3536,
1098,
3352,
4141,
11483,
225,
987,
326,
3352,
1807,
4141,
11483,
16,
11193,
1492,
5945,
854,
16838,
18,
225,
971,
2695,
353,
1269,
16,
1338,
2405,
2695,
11483,
18,
225,
432,
3803,
353,
7399,
2695,
309,
518,
1914,
27013,
22742,
18,
225,
2672,
326,
1296,
296,
26981,
1089,
11,
358,
1620,
358,
392,
2062,
3803,
18,
3536,
324,
273,
3538,
18,
7500,
4156,
1435,
22742,
273,
2065,
18,
2080,
2452,
12,
7422,
18,
20263,
9334,
404,
13,
328,
273,
306,
12443,
82,
316,
22742,
3631,
3538,
18,
24083,
12970,
18,
9083,
12,
82,
3631,
290,
16,
268,
13,
364,
268,
16,
290,
316,
324,
18,
3319,
1435,
2
] |
return self.filter(coord__in=list(str(key) for key in square.neighbors().keys()), status=1)\ .order_by('pos_x', 'pos_y') | return self.filter(coord__in=list(str(key)\ for key in square.neighbors().keys()), status=1)\ .order_by('pos_x', 'pos_y') | def neighbors(self, square): return self.filter(coord__in=list(str(key) for key in square.neighbors().keys()), status=1)\ .order_by('pos_x', 'pos_y') | 2844c59fafb2226bf343309e7977c99a4dd07b97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4038/2844c59fafb2226bf343309e7977c99a4dd07b97/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11003,
12,
2890,
16,
8576,
4672,
327,
365,
18,
2188,
12,
5732,
972,
267,
33,
1098,
12,
701,
12,
856,
13,
364,
498,
316,
8576,
18,
17549,
7675,
2452,
1435,
3631,
1267,
33,
21,
5153,
263,
1019,
67,
1637,
2668,
917,
67,
92,
2187,
296,
917,
67,
93,
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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
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11003,
12,
2890,
16,
8576,
4672,
327,
365,
18,
2188,
12,
5732,
972,
267,
33,
1098,
12,
701,
12,
856,
13,
364,
498,
316,
8576,
18,
17549,
7675,
2452,
1435,
3631,
1267,
33,
21,
5153,
263,
1019,
67,
1637,
2668,
917,
67,
92,
2187,
296,
917,
67,
93,
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
] |
return self._generate_edges(tree[0], father=father+id, id='0') + \ self._generate_edges(tree[1], father=father+id, id='1') + \ ([(u, father+id)] if (father+id) != '' else []) | left = self._generate_edges(tree[0], parent=s, bit="0") right = self._generate_edges(tree[1], parent=s, bit="1") L = [(u, s)] if s != "" else [] return left + right + L | def _generate_edges(self, tree, father='', id=''): if father=='': u = 'root' else: u = father try: return self._generate_edges(tree[0], father=father+id, id='0') + \ self._generate_edges(tree[1], father=father+id, id='1') + \ ([(u, father+id)] if (father+id) != '' else []) | 0aa5d0e07206199e4e64708c13056046cecfe083 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0aa5d0e07206199e4e64708c13056046cecfe083/huffman.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
8746,
12,
2890,
16,
2151,
16,
284,
4806,
2218,
2187,
612,
2218,
11,
4672,
309,
284,
4806,
18920,
4278,
582,
273,
296,
3085,
11,
469,
30,
582,
273,
284,
4806,
775,
30,
327,
365,
6315,
7163,
67,
8746,
12,
3413,
63,
20,
6487,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
8746,
12,
2890,
16,
2151,
16,
284,
4806,
2218,
2187,
612,
2218,
11,
4672,
309,
284,
4806,
18920,
4278,
582,
273,
296,
3085,
11,
469,
30,
582,
273,
284,
4806,
775,
30,
327,
365,
6315,
7163,
67,
8746,
12,
3413,
63,
20,
6487,
284,
4806,
33,
74,
4806,
15,
350,
16,
612,
2218,
20,
6134,
397,
521,
365,
6315,
7163,
67,
8746,
12,
3413,
63,
21,
6487,
284,
4806,
33,
74,
4806,
15,
350,
16,
612,
2218,
21,
6134,
397,
521,
23265,
12,
89,
16,
284,
4806,
15,
350,
25887,
309,
261,
74,
4806,
15,
350,
13,
480,
875,
469,
5378,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: opts, args = getopt.getopt(sys.argv[1:], 'cd') except getopt.error, msg: print >>sys.stderr, msg print >>sys.stderr, usage sys.exit(1) is_python = pysource.looks_like_python debug = False for o, a in opts: if o == '-c': is_python = pysource.can_be_compiled elif o == '-d': debug = True if not args: print >>sys.stderr, usage sys.exit(1) for fullpath in pysource.walk_python_files(args, is_python): if debug: print "Testing for coding: %s" % fullpath result = needs_declaration(fullpath) if result: print fullpath | paths: a list of files and/or directories to be checked. is_python: a function that takes a file name and checks whether it is a Python source file exclude_dirs: a list of directory base names that should be excluded in the search """ if exclude_dirs is None: exclude_dirs=[] for path in paths: print_debug("testing: %s" % path) if os.path.isfile(path): if is_python(path): yield path elif os.path.isdir(path): print_debug(" it is a directory") for dirpath, dirnames, filenames in os.walk(path): for exclude in exclude_dirs: if exclude in dirnames: dirnames.remove(exclude) for filename in filenames: fullpath = os.path.join(dirpath, filename) print_debug("testing: %s" % fullpath) if is_python(fullpath): yield fullpath else: print_debug(" unknown type") | def needs_declaration(fullpath): try: infile = open(fullpath, 'rU') except IOError: # Oops, the file was removed - ignore it return None line1 = infile.readline() line2 = infile.readline() if get_declaration(line1) or get_declaration(line2): # the file does have an encoding declaration, so trust it infile.close() return False # check the whole file for non-ASCII characters rest = infile.read() infile.close() if has_correct_encoding(line1+line2+rest, "ascii"): return False return True | cf21dba6a3042d2651a66805a6080a3c476ad222 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cf21dba6a3042d2651a66805a6080a3c476ad222/pysource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4260,
67,
22448,
12,
2854,
803,
4672,
775,
30,
14568,
273,
1696,
12,
2854,
803,
16,
296,
86,
57,
6134,
1335,
8340,
30,
468,
531,
4473,
16,
326,
585,
1703,
3723,
300,
2305,
518,
327,
599,
225,
980,
21,
273,
14568,
18,
896,
1369,
1435,
980,
22,
273,
14568,
18,
896,
1369,
1435,
225,
309,
336,
67,
22448,
12,
1369,
21,
13,
578,
336,
67,
22448,
12,
1369,
22,
4672,
468,
326,
585,
1552,
1240,
392,
2688,
8266,
16,
1427,
10267,
518,
14568,
18,
4412,
1435,
327,
1083,
225,
468,
866,
326,
7339,
585,
364,
1661,
17,
13756,
3949,
3127,
273,
14568,
18,
896,
1435,
14568,
18,
4412,
1435,
225,
309,
711,
67,
6746,
67,
5999,
12,
1369,
21,
15,
1369,
22,
15,
8792,
16,
315,
9184,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4260,
67,
22448,
12,
2854,
803,
4672,
775,
30,
14568,
273,
1696,
12,
2854,
803,
16,
296,
86,
57,
6134,
1335,
8340,
30,
468,
531,
4473,
16,
326,
585,
1703,
3723,
300,
2305,
518,
327,
599,
225,
980,
21,
273,
14568,
18,
896,
1369,
1435,
980,
22,
273,
14568,
18,
896,
1369,
1435,
225,
309,
336,
67,
22448,
12,
1369,
21,
13,
578,
336,
67,
22448,
12,
1369,
22,
4672,
468,
326,
585,
1552,
1240,
392,
2688,
8266,
16,
1427,
10267,
518,
14568,
18,
4412,
1435,
327,
1083,
225,
468,
866,
326,
7339,
585,
364,
1661,
17,
13756,
3949,
3127,
273,
14568,
18,
896,
1435,
14568,
18,
4412,
1435,
225,
309,
711,
67,
6746,
67,
5999,
12,
1369,
2
] |
raise TypeError, "The parameter for the initboot in the\ install section needs to be a Boolean." | raise TypeError,("The parameter for the initboot in the"+ " install section needs to be a Boolean.") | def createInstallSection(self, node, info, infoID=None, initBoot=None, bootStopDelay=None, ident=None): """ This method creates the install section used to describe a virtual system collection. | 1e366dda56653bbe1874c94abe9d80a9b34ba33a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/1e366dda56653bbe1874c94abe9d80a9b34ba33a/OvfFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6410,
5285,
12,
2890,
16,
756,
16,
1123,
16,
1123,
734,
33,
7036,
16,
1208,
15817,
33,
7036,
16,
4835,
4947,
6763,
33,
7036,
16,
3390,
33,
7036,
4672,
3536,
1220,
707,
3414,
326,
3799,
2442,
1399,
358,
6401,
279,
5024,
2619,
1849,
18,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6410,
5285,
12,
2890,
16,
756,
16,
1123,
16,
1123,
734,
33,
7036,
16,
1208,
15817,
33,
7036,
16,
4835,
4947,
6763,
33,
7036,
16,
3390,
33,
7036,
4672,
3536,
1220,
707,
3414,
326,
3799,
2442,
1399,
358,
6401,
279,
5024,
2619,
1849,
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
] |
root.tk.call("console", "hide") | tkRoot.tk.call("console", "hide") | def runTUI(): """Run TUI. """ # must do this before setting up preferences root = Tkinter.Tk() root.withdraw() # if console exists, hide it try: root.tk.call("console", "hide") except Tkinter.TclError: pass # create and obtain the TUI model tuiModel = TUI.Models.getModel("tui") # set up background tasks backgroundHandler = TUI.BackgroundTasks.BackgroundKwds() # get locations to look for windows addPathList = TUI.TUIPaths.getAddPaths() # add additional paths to sys.path sys.path += addPathList TUI.LoadStdModules.loadAll() # load additional windows modules for winPath in addPathList: TUI.WindowModuleUtil.loadWindows( path = winPath, tlSet = tuiModel.tlSet, logFunc = tuiModel.logMsg, ) tuiModel.logMsg( "TUI Version %s: ready to connect" % (TUI.Version.VersionStr,) ) # add the main menu TUI.MenuBar.MenuBar() tuiModel.reactor.run() | b769ae070e888c6afeb6201ae1bdb9ebc2926652 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6236/b769ae070e888c6afeb6201ae1bdb9ebc2926652/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
56,
5370,
13332,
3536,
1997,
399,
5370,
18,
3536,
468,
1297,
741,
333,
1865,
3637,
731,
12750,
1365,
273,
399,
79,
2761,
18,
56,
79,
1435,
1365,
18,
1918,
9446,
1435,
468,
309,
2983,
1704,
16,
6853,
518,
775,
30,
13030,
2375,
18,
16099,
18,
1991,
2932,
8698,
3113,
315,
11248,
7923,
1335,
399,
79,
2761,
18,
56,
830,
668,
30,
1342,
225,
468,
752,
471,
7161,
326,
399,
5370,
938,
268,
4881,
1488,
273,
399,
5370,
18,
8430,
18,
588,
1488,
2932,
88,
4881,
7923,
225,
468,
444,
731,
5412,
4592,
5412,
1503,
273,
399,
5370,
18,
8199,
6685,
18,
8199,
31833,
2377,
1435,
225,
468,
336,
7838,
358,
2324,
364,
9965,
25505,
682,
273,
399,
5370,
18,
56,
5370,
4466,
18,
588,
986,
4466,
1435,
225,
468,
527,
3312,
2953,
358,
2589,
18,
803,
2589,
18,
803,
1011,
25505,
682,
225,
399,
5370,
18,
2563,
10436,
7782,
18,
945,
1595,
1435,
225,
468,
1262,
3312,
9965,
4381,
364,
5657,
743,
316,
25505,
682,
30,
399,
5370,
18,
3829,
3120,
1304,
18,
945,
10399,
12,
589,
273,
5657,
743,
16,
8332,
694,
273,
268,
4881,
1488,
18,
6172,
694,
16,
613,
2622,
273,
268,
4881,
1488,
18,
1330,
3332,
16,
262,
225,
268,
4881,
1488,
18,
1330,
3332,
12,
315,
56,
5370,
4049,
738,
87,
30,
5695,
358,
3077,
6,
738,
261,
56,
5370,
18,
1444,
18,
1444,
1585,
16,
13,
262,
225,
468,
527,
326,
2774,
3824,
399,
5370,
18,
4599,
5190,
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,
1086,
56,
5370,
13332,
3536,
1997,
399,
5370,
18,
3536,
468,
1297,
741,
333,
1865,
3637,
731,
12750,
1365,
273,
399,
79,
2761,
18,
56,
79,
1435,
1365,
18,
1918,
9446,
1435,
468,
309,
2983,
1704,
16,
6853,
518,
775,
30,
13030,
2375,
18,
16099,
18,
1991,
2932,
8698,
3113,
315,
11248,
7923,
1335,
399,
79,
2761,
18,
56,
830,
668,
30,
1342,
225,
468,
752,
471,
7161,
326,
399,
5370,
938,
268,
4881,
1488,
273,
399,
5370,
18,
8430,
18,
588,
1488,
2932,
88,
4881,
7923,
225,
468,
444,
731,
5412,
4592,
5412,
1503,
273,
399,
5370,
18,
8199,
6685,
18,
8199,
31833,
2377,
1435,
225,
468,
336,
7838,
358,
2324,
364,
9965,
25505,
682,
273,
399,
2
] |
else return "init_failed" | elif ret == "init_failed": return ret | def Start(hardhatScript, workingDir, cvsVintage, buildVersion, clobber, log): # make sure workingDir is absolute, remove it, and create it workingDir = os.path.abspath(workingDir) if not os.path.exists(workingDir): os.mkdir(workingDir) os.chdir(workingDir) # remove outputDir and create it outputDir = os.path.join(workingDir, "output") if os.path.exists(outputDir): hardhatutil.rmdirRecursive(outputDir) os.mkdir(outputDir) # Initialize external (hardly ever changes) print "Initializing external modules ..." log.write("- - - - external - - - - - - -\n") # not needed here? moduleData["external"] = {} # Do external setup for both debug and release here for releaseMode in ('debug', 'release'): releaseModeDir = os.path.join(workingDir, releaseMode) if not os.path.exists(releaseModeDir): os.mkdir(releaseModeDir) os.chdir(releaseModeDir) print "checking out external" log.write("Checking out: external with " + cvsVintage + "\n") outputList = hardhatutil.executeCommandReturnOutputRetry( [cvsProgram, "-q", "checkout", cvsVintage, "external"]) hardhatutil.dumpOutputList(outputList, log) print "checking out internal" log.write("Checking out: internal with " + cvsVintage + "\n") outputList = hardhatutil.executeCommandReturnOutputRetry( [cvsProgram, "-q", "checkout", cvsVintage, "internal"]) hardhatutil.dumpOutputList(outputList, log) log.write("Checking out: chandler with " + cvsVintage + "\n") outputList = hardhatutil.executeCommandReturnOutputRetry( [cvsProgram, "-q", "checkout", cvsVintage, "chandler"]) hardhatutil.dumpOutputList(outputList, log) if releaseMode == "debug": dbgStr = "DEBUG=1" relStr = "debug" else: dbgStr = "" relStr = "release" # Find out if the initialization was ever done try: extModuleDir = os.path.join(releaseModeDir, "external") intModuleDir = os.path.join(releaseModeDir, "internal") version = getVersion(os.path.join(extModuleDir, "Makefile")) sourceTarball = os.path.join(extModuleDir, "sources-" + version + ".tar") log.write("Checking for source tarball " + sourceTarball + "\n") if not os.path.exists(sourceTarball) : # Now need to do the setup for external - "expand" and "make" os.chdir(extModuleDir) log.write("Environment variables: \n") log.write("GCJ_HOME = " + os.environ['GCJ_HOME'] + "\n") os.environ["BUILD_ROOT"] = extModuleDir log.write("BUILD_ROOT = " + os.environ['BUILD_ROOT'] + "\n") print "Building " + relStr log.write("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n") log.write("Expanding external sources\n") outputList = hardhatutil.executeCommandReturnOutput( [buildenv['make'], "expand" ]) hardhatutil.dumpOutputList(outputList, log) outputList = hardhatutil.executeCommandReturnOutput( [buildenv['make'], dbgStr ]) hardhatutil.dumpOutputList(outputList, log) log.write("Making external (debug) binaries\n") outputList = hardhatutil.executeCommandReturnOutput( [buildenv['make'], dbgStr, "binaries" ]) hardhatutil.dumpOutputList(outputList, log) os.chdir(intModuleDir) log.write("Making internal (debug) programs\n") outputList = hardhatutil.executeCommandReturnOutput( [buildenv['make'], dbgStr ]) hardhatutil.dumpOutputList(outputList, log) log.write("Making internal (debug) binaries\n") outputList = hardhatutil.executeCommandReturnOutput( [buildenv['make'], dbgStr, "binaries" ]) hardhatutil.dumpOutputList(outputList, log) except Exception, e: print "an initialization error" log.write("***Error during initialization***" + "\n") log.write("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n") CopyLog(os.path.join(releaseModeDir, logPath), log) if releaseMode == "debug": # OK to do release dir continue else return "init_failed" # do debug ret = Do(hardhatScript, "debug", workingDir, outputDir, cvsVintage, buildVersion, clobber, log) if ret == "no_changes" or ret =="build_failed" or ret == "test_failed": modeDir = os.path.join(workingDir, "debug") CopyLog(os.path.join(modeDir, logPath), log) pass # return ret # do release ret = Do(hardhatScript, "release", workingDir, outputDir, cvsVintage, buildVersion, clobber, log) modeDir = os.path.join(workingDir, "release") CopyLog(os.path.join(modeDir, logPath), log) return ret | 53e485568cad74251281e8f5a04bbb66f7c61aa8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/53e485568cad74251281e8f5a04bbb66f7c61aa8/chandler-newbuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3603,
12,
20379,
11304,
3651,
16,
5960,
1621,
16,
276,
6904,
58,
474,
410,
16,
1361,
1444,
16,
30152,
16,
613,
4672,
225,
468,
1221,
3071,
5960,
1621,
353,
4967,
16,
1206,
518,
16,
471,
752,
518,
5960,
1621,
273,
1140,
18,
803,
18,
5113,
803,
12,
20478,
1621,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
20478,
1621,
4672,
1140,
18,
26686,
12,
20478,
1621,
13,
1140,
18,
343,
1214,
12,
20478,
1621,
13,
225,
468,
1206,
21412,
471,
752,
518,
21412,
273,
1140,
18,
803,
18,
5701,
12,
20478,
1621,
16,
315,
2844,
7923,
309,
1140,
18,
803,
18,
1808,
12,
2844,
1621,
4672,
7877,
11304,
1367,
18,
8864,
1214,
10483,
12,
2844,
1621,
13,
1140,
18,
26686,
12,
2844,
1621,
13,
468,
9190,
3903,
261,
20379,
715,
14103,
3478,
13,
1172,
315,
29782,
3903,
4381,
18483,
613,
18,
2626,
2932,
17,
300,
300,
300,
3903,
300,
300,
300,
300,
300,
300,
300,
64,
82,
7923,
468,
486,
3577,
2674,
35,
565,
1605,
751,
9614,
9375,
11929,
273,
2618,
225,
468,
2256,
3903,
3875,
364,
3937,
1198,
471,
3992,
2674,
364,
3992,
2309,
316,
7707,
4148,
2187,
296,
9340,
11,
4672,
3992,
2309,
1621,
273,
1140,
18,
803,
18,
5701,
12,
20478,
1621,
16,
3992,
2309,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
9340,
2309,
1621,
4672,
1140,
18,
26686,
12,
9340,
2309,
1621,
13,
1140,
18,
343,
1214,
12,
9340,
2309,
1621,
13,
1172,
315,
24609,
596,
3903,
6,
613,
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,
3603,
12,
20379,
11304,
3651,
16,
5960,
1621,
16,
276,
6904,
58,
474,
410,
16,
1361,
1444,
16,
30152,
16,
613,
4672,
225,
468,
1221,
3071,
5960,
1621,
353,
4967,
16,
1206,
518,
16,
471,
752,
518,
5960,
1621,
273,
1140,
18,
803,
18,
5113,
803,
12,
20478,
1621,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
20478,
1621,
4672,
1140,
18,
26686,
12,
20478,
1621,
13,
1140,
18,
343,
1214,
12,
20478,
1621,
13,
225,
468,
1206,
21412,
471,
752,
518,
21412,
273,
1140,
18,
803,
18,
5701,
12,
20478,
1621,
16,
315,
2844,
7923,
309,
1140,
18,
803,
18,
1808,
12,
2844,
1621,
4672,
7877,
11304,
1367,
18,
8864,
1214,
10483,
12,
2844,
1621,
13,
2
] |
find_associate_test_module_by_test_classs(project, module) | find_associate_test_module_by_test_class(project, module) | def find_test_module(project, test_class): """Find test module that will be good for the given test case. """ for module in test_class.associated_modules: test_module = find_associate_test_module_by_name(project, module) or \ find_associate_test_module_by_test_classs(project, module) if test_module: return test_module | 3088a24b03acae83f73f6f0d72658d1fed6ae49c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11544/3088a24b03acae83f73f6f0d72658d1fed6ae49c/adder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3813,
67,
2978,
12,
4406,
16,
1842,
67,
1106,
4672,
3536,
3125,
1842,
1605,
716,
903,
506,
7494,
364,
326,
864,
1842,
648,
18,
3536,
364,
1605,
316,
1842,
67,
1106,
18,
28441,
67,
6400,
30,
1842,
67,
2978,
273,
1104,
67,
11577,
67,
3813,
67,
2978,
67,
1637,
67,
529,
12,
4406,
16,
1605,
13,
578,
521,
1104,
67,
11577,
67,
3813,
67,
2978,
67,
1637,
67,
3813,
67,
1106,
12,
4406,
16,
1605,
13,
309,
1842,
67,
2978,
30,
327,
1842,
67,
2978,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3813,
67,
2978,
12,
4406,
16,
1842,
67,
1106,
4672,
3536,
3125,
1842,
1605,
716,
903,
506,
7494,
364,
326,
864,
1842,
648,
18,
3536,
364,
1605,
316,
1842,
67,
1106,
18,
28441,
67,
6400,
30,
1842,
67,
2978,
273,
1104,
67,
11577,
67,
3813,
67,
2978,
67,
1637,
67,
529,
12,
4406,
16,
1605,
13,
578,
521,
1104,
67,
11577,
67,
3813,
67,
2978,
67,
1637,
67,
3813,
67,
1106,
12,
4406,
16,
1605,
13,
309,
1842,
67,
2978,
30,
327,
1842,
67,
2978,
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
] |
path = os.curdir | path = add_path | def test(): """Run MysteryMachine unit test on the default python""" path=os.getenv("PYTHONPATH") if path == None: path = os.curdir else: path = path+os.pathsep+os.curdir os.putenv("PYTHONPATH",path) for python in PYTHONS: sys.stderr.write( "Testing under %s:\n" % python ) #TODO: should this inner loop go inside tests/__init__.py ? for module in os.listdir('tests/'): #Turn filenmae into module name testname , replaced =re.subn(STRIP,"",module) # SKip invalid module names if not replaced: continue #run tests. sys.stderr.write("Running %s (%s)" % (module,python) ) os.system("%s %s/%s" % ( python, TESTSDIR, module)) | d275a4bcb6f0458c70a16103e3bf9c835b71f96d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11984/d275a4bcb6f0458c70a16103e3bf9c835b71f96d/pavement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
3536,
1997,
490,
1094,
627,
6981,
2836,
1842,
603,
326,
805,
5790,
8395,
589,
33,
538,
18,
588,
3074,
2932,
16235,
20131,
4211,
7923,
309,
589,
422,
599,
30,
589,
273,
527,
67,
803,
469,
30,
589,
273,
589,
15,
538,
18,
803,
10814,
15,
538,
18,
1397,
1214,
225,
1140,
18,
458,
3074,
2932,
16235,
20131,
4211,
3113,
803,
13,
225,
364,
5790,
316,
12191,
20131,
55,
30,
2589,
18,
11241,
18,
2626,
12,
315,
22218,
3613,
738,
87,
5581,
82,
6,
738,
5790,
262,
468,
6241,
30,
1410,
333,
3443,
2798,
1960,
4832,
7434,
19,
972,
2738,
25648,
2074,
692,
364,
1605,
316,
1140,
18,
1098,
1214,
2668,
16341,
2473,
4672,
468,
15858,
661,
275,
2540,
73,
1368,
1605,
508,
1842,
529,
269,
8089,
273,
266,
18,
1717,
82,
12,
15765,
52,
10837,
3113,
2978,
13,
468,
12038,
625,
2057,
1605,
1257,
309,
486,
8089,
30,
1324,
468,
2681,
7434,
18,
2589,
18,
11241,
18,
2626,
2932,
7051,
738,
87,
6142,
87,
2225,
738,
261,
2978,
16,
8103,
13,
262,
1140,
18,
4299,
27188,
87,
738,
87,
5258,
87,
6,
738,
261,
5790,
16,
225,
22130,
55,
4537,
16,
1605,
3719,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
3536,
1997,
490,
1094,
627,
6981,
2836,
1842,
603,
326,
805,
5790,
8395,
589,
33,
538,
18,
588,
3074,
2932,
16235,
20131,
4211,
7923,
309,
589,
422,
599,
30,
589,
273,
527,
67,
803,
469,
30,
589,
273,
589,
15,
538,
18,
803,
10814,
15,
538,
18,
1397,
1214,
225,
1140,
18,
458,
3074,
2932,
16235,
20131,
4211,
3113,
803,
13,
225,
364,
5790,
316,
12191,
20131,
55,
30,
2589,
18,
11241,
18,
2626,
12,
315,
22218,
3613,
738,
87,
5581,
82,
6,
738,
5790,
262,
468,
6241,
30,
1410,
333,
3443,
2798,
1960,
4832,
7434,
19,
972,
2738,
25648,
2074,
692,
364,
1605,
316,
1140,
18,
1098,
1214,
2668,
16341,
2473,
4672,
468,
15858,
661,
2
] |
new_link = re.search("src=['\"]([^'\"]*)['\"](.*)></iframe>", framereq).group(1) time.sleep(5) | new_link = re.search("src=['\"]([^'\"]*)['\"](.*)></iframe>", framereq).group(1) time.sleep(5) | def proceed(self, url, location): container_id = self.parent.url.split("/")[-1].split("id=")[-1] url = "http://relink.us/view.php?id="+container_id self.html = self.req.load(url, cookies=True) temp_links = [] | ec73cb69f724da8594acad320e0ff1cf9543d131 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/ec73cb69f724da8594acad320e0ff1cf9543d131/RelinkUs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11247,
12,
2890,
16,
880,
16,
2117,
4672,
1478,
67,
350,
273,
365,
18,
2938,
18,
718,
18,
4939,
2932,
4898,
13,
18919,
21,
8009,
4939,
2932,
350,
1546,
13,
18919,
21,
65,
880,
273,
315,
2505,
2207,
266,
1232,
18,
407,
19,
1945,
18,
2684,
35,
350,
1546,
15,
3782,
67,
350,
365,
18,
2620,
273,
365,
18,
3658,
18,
945,
12,
718,
16,
7237,
33,
5510,
13,
1906,
67,
7135,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11247,
12,
2890,
16,
880,
16,
2117,
4672,
1478,
67,
350,
273,
365,
18,
2938,
18,
718,
18,
4939,
2932,
4898,
13,
18919,
21,
8009,
4939,
2932,
350,
1546,
13,
18919,
21,
65,
880,
273,
315,
2505,
2207,
266,
1232,
18,
407,
19,
1945,
18,
2684,
35,
350,
1546,
15,
3782,
67,
350,
365,
18,
2620,
273,
365,
18,
3658,
18,
945,
12,
718,
16,
7237,
33,
5510,
13,
1906,
67,
7135,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rot = [] | rot = [None]*4 | def sendGameStatus(): px,py,pz = ballBody.getPosition() prot = ballBody.getRotation() r1,r2,r3,r4 = row1.getZ(), row2.getZ(), row3.getZ(), row4.getZ() o1,o2,o3,o4 = rrow1.getZ(), rrow2.getZ(), rrow3.getZ(), rrow4.getZ() rot = [] for i in range(0,4): rot[i] = kicker[i].getH() status = PyDatagram() status.addUint16(PACKET_SET) status.addFloat64(px) status.addFloat64(py) status.addFloat64(pz) for r in range(9): #just to be explicit status.addFloat64(prot[i]) status.addFloat64(r1) status.addFloat64(r2) status.addFloat64(r3) status.addFloat64(r4) status.addFloat64(o1) status.addFloat64(o2) status.addFloat64(o3) status.addFloat64(o4) for i in range(0,4): status.addFloat64(rot) toAll(status, activeConnections) | 73d04275d5aecffbeaa4958b270fc22e07a236dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/73d04275d5aecffbeaa4958b270fc22e07a236dc/kickern.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12496,
1482,
13332,
10318,
16,
2074,
16,
84,
94,
273,
26503,
2250,
18,
588,
2555,
1435,
11121,
377,
273,
26503,
2250,
18,
588,
14032,
1435,
225,
436,
21,
16,
86,
22,
16,
86,
23,
16,
86,
24,
273,
1027,
21,
18,
588,
62,
9334,
1027,
22,
18,
588,
62,
9334,
1027,
23,
18,
588,
62,
9334,
1027,
24,
18,
588,
62,
1435,
320,
21,
16,
83,
22,
16,
83,
23,
16,
83,
24,
273,
436,
492,
21,
18,
588,
62,
9334,
436,
492,
22,
18,
588,
62,
9334,
436,
492,
23,
18,
588,
62,
9334,
436,
492,
24,
18,
588,
62,
1435,
225,
4168,
273,
306,
7036,
5772,
24,
364,
277,
316,
1048,
12,
20,
16,
24,
4672,
4168,
63,
77,
65,
273,
417,
5448,
63,
77,
8009,
588,
44,
1435,
225,
1267,
273,
4707,
5139,
17049,
1435,
1267,
18,
1289,
5487,
2313,
12,
12231,
1584,
67,
4043,
13,
225,
1267,
18,
1289,
4723,
1105,
12,
4430,
13,
1267,
18,
1289,
4723,
1105,
12,
2074,
13,
1267,
18,
1289,
4723,
1105,
12,
84,
94,
13,
364,
436,
316,
1048,
12,
29,
4672,
468,
3732,
358,
506,
5515,
1267,
18,
1289,
4723,
1105,
12,
11815,
63,
77,
5717,
225,
1267,
18,
1289,
4723,
1105,
12,
86,
21,
13,
1267,
18,
1289,
4723,
1105,
12,
86,
22,
13,
1267,
18,
1289,
4723,
1105,
12,
86,
23,
13,
1267,
18,
1289,
4723,
1105,
12,
86,
24,
13,
225,
1267,
18,
1289,
4723,
1105,
12,
83,
21,
13,
1267,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12496,
1482,
13332,
10318,
16,
2074,
16,
84,
94,
273,
26503,
2250,
18,
588,
2555,
1435,
11121,
377,
273,
26503,
2250,
18,
588,
14032,
1435,
225,
436,
21,
16,
86,
22,
16,
86,
23,
16,
86,
24,
273,
1027,
21,
18,
588,
62,
9334,
1027,
22,
18,
588,
62,
9334,
1027,
23,
18,
588,
62,
9334,
1027,
24,
18,
588,
62,
1435,
320,
21,
16,
83,
22,
16,
83,
23,
16,
83,
24,
273,
436,
492,
21,
18,
588,
62,
9334,
436,
492,
22,
18,
588,
62,
9334,
436,
492,
23,
18,
588,
62,
9334,
436,
492,
24,
18,
588,
62,
1435,
225,
4168,
273,
306,
7036,
5772,
24,
364,
277,
316,
1048,
12,
20,
16,
24,
2
] |
if self._pool.full(): self._overflow -= 1 | self._overflow -= 1 | def do_return_invalid(self): if self._pool.full(): self._overflow -= 1 | 7626fc5aab8b625bb6e48e7374d4622efc7f1e5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/7626fc5aab8b625bb6e48e7374d4622efc7f1e5a/pool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2463,
67,
5387,
12,
2890,
4672,
365,
6315,
11512,
3947,
404,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2463,
67,
5387,
12,
2890,
4672,
365,
6315,
11512,
3947,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 netsvc.SERVICES[name] | del netsvc.SERVICES[gname] | def registered_wizard(name): """ Register dynamicaly the wizard """ gname = 'wizard.%s' % name if netsvc.service_exist(gname): if isinstance(netsvc.SERVICES[gname], format_choice): return del netsvc.SERVICES[name] format_choice(name) | ddda596f2e44adb02246bb7d9ad1ecb128240b69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6641/ddda596f2e44adb02246bb7d9ad1ecb128240b69/format_choice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4104,
67,
31837,
12,
529,
4672,
3536,
5433,
19468,
1706,
93,
326,
24204,
3536,
314,
529,
273,
296,
31837,
7866,
87,
11,
738,
508,
309,
21954,
4227,
18,
3278,
67,
7398,
12,
75,
529,
4672,
309,
1549,
12,
11296,
4227,
18,
12426,
55,
63,
75,
529,
6487,
740,
67,
11569,
4672,
327,
1464,
21954,
4227,
18,
12426,
55,
63,
75,
529,
65,
740,
67,
11569,
12,
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,
0,
0,
0,
0,
0,
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,
4104,
67,
31837,
12,
529,
4672,
3536,
5433,
19468,
1706,
93,
326,
24204,
3536,
314,
529,
273,
296,
31837,
7866,
87,
11,
738,
508,
309,
21954,
4227,
18,
3278,
67,
7398,
12,
75,
529,
4672,
309,
1549,
12,
11296,
4227,
18,
12426,
55,
63,
75,
529,
6487,
740,
67,
11569,
4672,
327,
1464,
21954,
4227,
18,
12426,
55,
63,
75,
529,
65,
740,
67,
11569,
12,
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
] |
r = 250; g = 0; b = 0; i = 0; | r = 255 g = 0 b = 0 i = 0 j= time.time() | def run ( self ): global ar global status while 1: if self.readline(): if len(ar) > 3 and ar[0] == 'P': #print #received packet print "%s Sender=%d Rec=%d Seq=%d Data:" % (time.time(),ord(ar[3]),ord(ar[2]),ord(ar[1])) print ar[4:] elif len(ar) > 1 and ar[0] == 'D': #debug info if ar[1] != 'f': #print time.time() print "%s Debug: %s" % (time.time() ,''.join(ar[1:])) #ar[0] = 'D' elif len(ar) > 1 and ar[0] == 'E': #debug info print "%s -----------Error: %s-----------------" % (time.time() ,''.join(ar[1:])) elif len(ar) > 1 and ar[0] == 'S': if ar[1] == 'D': #print "Status: done" status = 'D' elif ar[1] == 'T': #print time.time() print "%s ------------------Status: timeout--------------------" % time.time() status = 'T' else: print "?: %s" % ar | df8f7c831c89b8e1eeb2aa8512fe097e89393d42 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11679/df8f7c831c89b8e1eeb2aa8512fe097e89393d42/rfinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
365,
262,
30,
2552,
419,
2552,
1267,
1323,
404,
30,
309,
365,
18,
896,
1369,
13332,
309,
562,
12,
297,
13,
405,
890,
471,
419,
63,
20,
65,
422,
296,
52,
4278,
468,
1188,
5375,
468,
15213,
4414,
1172,
2213,
87,
15044,
5095,
72,
7776,
5095,
72,
14367,
5095,
72,
1910,
2773,
738,
261,
957,
18,
957,
9334,
517,
12,
297,
63,
23,
65,
3631,
517,
12,
297,
63,
22,
65,
3631,
517,
12,
297,
63,
21,
22643,
1172,
419,
63,
24,
26894,
1327,
562,
12,
297,
13,
405,
404,
471,
419,
63,
20,
65,
422,
296,
40,
4278,
13491,
468,
4148,
1123,
309,
419,
63,
21,
65,
480,
296,
74,
4278,
468,
1188,
813,
18,
957,
1435,
1172,
2213,
87,
4015,
30,
738,
87,
6,
738,
261,
957,
18,
957,
1435,
269,
6309,
18,
5701,
12,
297,
63,
21,
30,
22643,
468,
297,
63,
20,
65,
273,
296,
40,
11,
1327,
562,
12,
297,
13,
405,
404,
471,
419,
63,
20,
65,
422,
296,
41,
4278,
13491,
468,
4148,
1123,
1172,
2213,
87,
300,
15392,
668,
30,
738,
87,
1271,
10951,
738,
261,
957,
18,
957,
1435,
269,
6309,
18,
5701,
12,
297,
63,
21,
30,
22643,
1327,
562,
12,
297,
13,
405,
404,
471,
419,
63,
20,
65,
422,
296,
55,
4278,
309,
419,
63,
21,
65,
422,
296,
40,
4278,
468,
1188,
315,
1482,
30,
2731,
6,
1267,
273,
296,
40,
11,
1327,
419,
63,
21,
65,
422,
296,
56,
4278,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
365,
262,
30,
2552,
419,
2552,
1267,
1323,
404,
30,
309,
365,
18,
896,
1369,
13332,
309,
562,
12,
297,
13,
405,
890,
471,
419,
63,
20,
65,
422,
296,
52,
4278,
468,
1188,
5375,
468,
15213,
4414,
1172,
2213,
87,
15044,
5095,
72,
7776,
5095,
72,
14367,
5095,
72,
1910,
2773,
738,
261,
957,
18,
957,
9334,
517,
12,
297,
63,
23,
65,
3631,
517,
12,
297,
63,
22,
65,
3631,
517,
12,
297,
63,
21,
22643,
1172,
419,
63,
24,
26894,
1327,
562,
12,
297,
13,
405,
404,
471,
419,
63,
20,
65,
422,
296,
40,
4278,
13491,
468,
4148,
1123,
309,
419,
63,
21,
65,
480,
296,
74,
4278,
468,
1188,
813,
18,
2
] |
return self.get_child_iters_by_parent(iter) | return self.get_child_iters_by_parent(model, iter) | def get_all_child_beans_by_selected(self): filter_model, paths = self.get_selection().get_selected_rows() model = filter_model.get_model() iter = model.get_iter(paths[0]) return self.get_child_iters_by_parent(iter) | 3a1eef384846fb294d594329d48b4e92447c6347 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/3a1eef384846fb294d594329d48b4e92447c6347/common_tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
3624,
67,
2196,
634,
67,
1637,
67,
8109,
12,
2890,
4672,
1034,
67,
2284,
16,
2953,
273,
365,
18,
588,
67,
10705,
7675,
588,
67,
8109,
67,
3870,
1435,
938,
273,
1034,
67,
2284,
18,
588,
67,
2284,
1435,
1400,
273,
938,
18,
588,
67,
2165,
12,
4481,
63,
20,
5717,
327,
365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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
3624,
67,
2196,
634,
67,
1637,
67,
8109,
12,
2890,
4672,
1034,
67,
2284,
16,
2953,
273,
365,
18,
588,
67,
10705,
7675,
588,
67,
8109,
67,
3870,
1435,
938,
273,
1034,
67,
2284,
18,
588,
67,
2284,
1435,
1400,
273,
938,
18,
588,
67,
2165,
12,
4481,
63,
20,
5717,
327,
365,
18,
588,
67,
3624,
67,
27270,
67,
1637,
67,
2938,
12,
2284,
16,
1400,
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
] |
self._AddError(lineno, 'Must have some modifier (e.g. bug number).', line) | self._AddError(lineno, 'Must have some modifier (e.g. bug number).', line) | def _Read(self, path): """For each test in an expectations file, generate the expectations for it. """ lineno = 0 for line in open(path): lineno += 1 line = StripComments(line) if not line: continue | 64e0ec0be0663c7f520c6cb9728c055edc916a89 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/64e0ec0be0663c7f520c6cb9728c055edc916a89/test_expectations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1994,
12,
2890,
16,
589,
4672,
3536,
1290,
1517,
1842,
316,
392,
26305,
585,
16,
2103,
326,
26305,
364,
518,
18,
3536,
7586,
273,
374,
364,
980,
316,
1696,
12,
803,
4672,
7586,
1011,
404,
980,
273,
15589,
9051,
12,
1369,
13,
309,
486,
980,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1994,
12,
2890,
16,
589,
4672,
3536,
1290,
1517,
1842,
316,
392,
26305,
585,
16,
2103,
326,
26305,
364,
518,
18,
3536,
7586,
273,
374,
364,
980,
316,
1696,
12,
803,
4672,
7586,
1011,
404,
980,
273,
15589,
9051,
12,
1369,
13,
309,
486,
980,
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
] |
length = length - 2 | length = length - 1 break elif platformId == 1 and encodingId == 0 and languageId == 0 \ and nameId == 6: psName = self.get_chunk(string_data_offset + offset, length) for char in psName: char = ord(char) if char < 33 or char > 126 or chr(char) in \ ('[', ']', '(', ')', '{', '}', '<', '>', '/', '%'): raise TTFError, "PostScript contains invalid character %02X" % char break | def extractInfo(self, charInfo=1): """Extract typographic information from the loaded font file. | dc9fc2a23ae8cc092d04aa76950652ec03fc6c00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/dc9fc2a23ae8cc092d04aa76950652ec03fc6c00/ttfonts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
966,
12,
2890,
16,
1149,
966,
33,
21,
4672,
3536,
4976,
3815,
16983,
1779,
628,
326,
4203,
3512,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] |
filename = self.findFileInDir(u"%s.%s" % (available_metadata['title'], ext), self.config[graphicsDirectories[graphic_type]], suffix=self.graphic_suffix[graphic_type], fuzzy_match=True) | filename = self.findFileInDir(u"%s.%s" % (sanitiseFileName(available_metadata['title']), ext), self.config[graphicsDirectories[graphic_type]], suffix=self.graphic_suffix[graphic_type], fuzzy_match=True) | def processMythTvMetaData(self): '''Check each video file in the mythvideo directories download graphics files and meta data then update MythTV data base meta data with any new information. ''' # If there were directories specified move them and update the MythTV db meta data accordingly if self.config['video_dir']: if len(self.config['video_dir']) % 2 == 0: validFiles = self._moveVideoFiles(self.config['video_dir']) else: sys.stderr.write(u"\n! Error: When specifying target (file or directory) to move to a destination (directory) they must always be in pairs (target and destination directory).\nYou specified an uneven number of variables (%d) for target and destination pairs.\nVariable count (%s)\n" % (len(self.config['video_dir']), self.config['video_dir'])) sys.exit(False) | f132146d19febfbd3e15736f0f51f9e3d1f72607 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/f132146d19febfbd3e15736f0f51f9e3d1f72607/jamu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12062,
451,
56,
90,
6998,
12,
2890,
4672,
9163,
1564,
1517,
6191,
585,
316,
326,
3399,
451,
9115,
6402,
4224,
17313,
1390,
471,
2191,
501,
1508,
1089,
8005,
451,
15579,
501,
1026,
2191,
501,
598,
1281,
394,
1779,
18,
9163,
468,
971,
1915,
4591,
6402,
1269,
3635,
2182,
471,
1089,
326,
8005,
451,
15579,
1319,
2191,
501,
15905,
309,
365,
18,
1425,
3292,
9115,
67,
1214,
3546,
30,
309,
562,
12,
2890,
18,
1425,
3292,
9115,
67,
1214,
19486,
738,
576,
422,
374,
30,
923,
2697,
273,
365,
6315,
8501,
10083,
2697,
12,
2890,
18,
1425,
3292,
9115,
67,
1214,
19486,
469,
30,
2589,
18,
11241,
18,
2626,
12,
89,
12691,
82,
5,
1068,
30,
5203,
13664,
1018,
261,
768,
578,
1867,
13,
358,
3635,
358,
279,
2929,
261,
5149,
13,
2898,
1297,
3712,
506,
316,
5574,
261,
3299,
471,
2929,
1867,
2934,
64,
82,
6225,
1269,
392,
640,
16728,
1300,
434,
3152,
6142,
72,
13,
364,
1018,
471,
2929,
5574,
8403,
82,
3092,
1056,
6142,
87,
5153,
82,
6,
738,
261,
1897,
12,
2890,
18,
1425,
3292,
9115,
67,
1214,
3546,
3631,
365,
18,
1425,
3292,
9115,
67,
1214,
3546,
3719,
2589,
18,
8593,
12,
8381,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12062,
451,
56,
90,
6998,
12,
2890,
4672,
9163,
1564,
1517,
6191,
585,
316,
326,
3399,
451,
9115,
6402,
4224,
17313,
1390,
471,
2191,
501,
1508,
1089,
8005,
451,
15579,
501,
1026,
2191,
501,
598,
1281,
394,
1779,
18,
9163,
468,
971,
1915,
4591,
6402,
1269,
3635,
2182,
471,
1089,
326,
8005,
451,
15579,
1319,
2191,
501,
15905,
309,
365,
18,
1425,
3292,
9115,
67,
1214,
3546,
30,
309,
562,
12,
2890,
18,
1425,
3292,
9115,
67,
1214,
19486,
738,
576,
422,
374,
30,
923,
2697,
273,
365,
6315,
8501,
10083,
2697,
12,
2890,
18,
1425,
3292,
9115,
67,
1214,
19486,
469,
30,
2589,
18,
11241,
18,
2626,
12,
89,
12691,
82,
5,
1068,
30,
5203,
13664,
2
] |
global _platform_cache,_platform_aliased_cache if not aliased and (_platform_cache[bool(terse)] is not None): return _platform_cache[bool(terse)] elif _platform_aliased_cache[bool(terse)] is not None: return _platform_aliased_cache[bool(terse)] | global _platform_cache_terse, _platform_cache_not_terse global _platform_aliased_cache_terse, _platform_aliased_cache_not_terse if not aliased and terse and (_platform_cache_terse is not None): return _platform_cache_terse elif not aliased and not terse and (_platform_cache_not_terse is not None): return _platform_cache_not_terse elif terse and _platform_aliased_cache_terse is not None: return _platform_aliased_cache_terse elif not terse and _platform_aliased_cache_not_terse is not None: return _platform_aliased_cache_not_terse | def platform(aliased=0, terse=0): """ Returns a single string identifying the underlying platform with as much useful information as possible (but no more :). The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended. If "aliased" is true, the function will use aliases for various platforms that report system names which differ from their common names, e.g. SunOS will be reported as Solaris. The system_alias() function is used to implement this. Setting terse to true causes the function to return only the absolute minimum information needed to identify the platform. """ global _platform_cache,_platform_aliased_cache if not aliased and (_platform_cache[bool(terse)] is not None): return _platform_cache[bool(terse)] elif _platform_aliased_cache[bool(terse)] is not None: return _platform_aliased_cache[bool(terse)] # Get uname information and then apply platform specific cosmetics # to it... system,node,release,version,machine,processor = uname() if machine == processor: processor = '' if aliased: system,release,version = system_alias(system,release,version) if system == 'Windows': # MS platforms rel,vers,csd,ptype = win32_ver(version) if terse: platform = _platform(system,release) else: platform = _platform(system,release,version,csd) elif system in ('Linux',): # Linux based systems distname,distversion,distid = dist('') if distname and not terse: platform = _platform(system,release,machine,processor, 'with', distname,distversion,distid) else: # If the distribution name is unknown check for libc vs. glibc libcname,libcversion = libc_ver(sys.executable) platform = _platform(system,release,machine,processor, 'with', libcname+libcversion) elif system == 'Java': # Java platforms r,v,vminfo,(os_name,os_version,os_arch) = java_ver() if terse: platform = _platform(system,release,version) else: platform = _platform(system,release,version, 'on', os_name,os_version,os_arch) elif system == 'MacOS': # MacOS platforms if terse: platform = _platform(system,release) else: platform = _platform(system,release,machine) else: # Generic handler if terse: platform = _platform(system,release) else: bits,linkage = architecture(sys.executable) platform = _platform(system,release,machine,processor,bits,linkage) if aliased: _platform_aliased_cache[bool(terse)] = platform elif terse: pass else: _platform_cache[bool(terse)] = platform return platform | 1b1010688617181994c623f282e27d1820adcf26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1b1010688617181994c623f282e27d1820adcf26/platform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4072,
12,
18083,
8905,
33,
20,
16,
19272,
307,
33,
20,
4672,
225,
3536,
2860,
279,
2202,
533,
29134,
326,
6808,
4072,
598,
487,
9816,
5301,
1779,
487,
3323,
261,
12885,
1158,
1898,
294,
2934,
225,
1021,
876,
353,
12613,
358,
506,
8672,
7471,
9178,
2353,
5228,
1109,
429,
18,
2597,
2026,
2324,
3775,
603,
3775,
17422,
471,
333,
353,
12613,
18,
225,
971,
315,
18083,
8905,
6,
353,
638,
16,
326,
445,
903,
999,
6900,
364,
11191,
17422,
716,
2605,
2619,
1257,
1492,
15221,
628,
3675,
2975,
1257,
16,
425,
18,
75,
18,
31608,
4618,
903,
506,
14010,
487,
348,
355,
297,
291,
18,
1021,
2619,
67,
4930,
1435,
445,
353,
1399,
358,
2348,
333,
18,
225,
13274,
19272,
307,
358,
638,
14119,
326,
445,
358,
327,
1338,
326,
4967,
5224,
1779,
3577,
358,
9786,
326,
4072,
18,
225,
3536,
2552,
389,
9898,
67,
2493,
67,
387,
307,
16,
389,
9898,
67,
2493,
67,
902,
67,
387,
307,
2552,
389,
9898,
67,
18083,
8905,
67,
2493,
67,
387,
307,
16,
389,
9898,
67,
18083,
8905,
67,
2493,
67,
902,
67,
387,
307,
225,
309,
486,
19218,
471,
19272,
307,
471,
261,
67,
9898,
67,
2493,
67,
387,
307,
353,
486,
599,
4672,
327,
389,
9898,
67,
2493,
67,
387,
307,
1327,
486,
19218,
471,
486,
19272,
307,
471,
261,
67,
9898,
67,
2493,
67,
902,
67,
387,
307,
353,
486,
599,
4672,
327,
389,
9898,
67,
2493,
67,
902,
67,
387,
307,
1327,
19272,
307,
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,
4072,
12,
18083,
8905,
33,
20,
16,
19272,
307,
33,
20,
4672,
225,
3536,
2860,
279,
2202,
533,
29134,
326,
6808,
4072,
598,
487,
9816,
5301,
1779,
487,
3323,
261,
12885,
1158,
1898,
294,
2934,
225,
1021,
876,
353,
12613,
358,
506,
8672,
7471,
9178,
2353,
5228,
1109,
429,
18,
2597,
2026,
2324,
3775,
603,
3775,
17422,
471,
333,
353,
12613,
18,
225,
971,
315,
18083,
8905,
6,
353,
638,
16,
326,
445,
903,
999,
6900,
364,
11191,
17422,
716,
2605,
2619,
1257,
1492,
15221,
628,
3675,
2975,
1257,
16,
425,
18,
75,
18,
31608,
4618,
903,
506,
14010,
487,
348,
355,
297,
291,
18,
1021,
2619,
67,
4930,
1435,
445,
353,
1399,
358,
2348,
333,
18,
225,
2
] |
def __init__(self,custom_profile=None, untrusted_certificates=False, custom_args=""): | def __init__(self, custom_profile=None, untrusted_certificates=False, custom_args=""): | def __init__(self,custom_profile=None, untrusted_certificates=False, custom_args=""): self._server = None self._profile_dir = custom_profile self._extension_dir = None self._chrome = None self._untrusted_certificates = " --ignore-certificate-errors " if untrusted_certificates else "" self._custom_args = custom_args | e474f441b10a13d9a67358685e0a01f8158c57a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/215/e474f441b10a13d9a67358685e0a01f8158c57a7/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1679,
67,
5040,
33,
7036,
16,
640,
25247,
67,
71,
7696,
33,
8381,
16,
1679,
67,
1968,
1546,
6,
4672,
365,
6315,
3567,
273,
599,
365,
6315,
5040,
67,
1214,
273,
1679,
67,
5040,
365,
6315,
6447,
67,
1214,
273,
599,
365,
6315,
343,
10896,
273,
599,
365,
6315,
318,
25247,
67,
71,
7696,
273,
315,
1493,
6185,
17,
14108,
17,
4324,
315,
309,
640,
25247,
67,
71,
7696,
469,
1408,
365,
6315,
3662,
67,
1968,
273,
1679,
67,
1968,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
67,
5040,
33,
7036,
16,
640,
25247,
67,
71,
7696,
33,
8381,
16,
1679,
67,
1968,
1546,
6,
4672,
365,
6315,
3567,
273,
599,
365,
6315,
5040,
67,
1214,
273,
1679,
67,
5040,
365,
6315,
6447,
67,
1214,
273,
599,
365,
6315,
343,
10896,
273,
599,
365,
6315,
318,
25247,
67,
71,
7696,
273,
315,
1493,
6185,
17,
14108,
17,
4324,
315,
309,
640,
25247,
67,
71,
7696,
469,
1408,
365,
6315,
3662,
67,
1968,
273,
1679,
67,
1968,
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
] |
return {'value':{'server':'smtp.gmail.com', 'port':25, 'ssl':True, 'auth':True}} | return {'value':{'server':'smtp.gmail.com', 'port':'25', 'ssl':True, 'auth':True}} | def change_servertype(self, cr, uid, ids, server): if server == 'gmail': return {'value':{'server':'smtp.gmail.com', 'port':25, 'ssl':True, 'auth':True}} elif server== 'yahoo': return {'value':{'server':'smtp.mail.yahoo.co.in', 'ssl':False, 'port':587, 'auth':True}} else: return {'value':{'server':'localhost', 'port':25, 'ssl':False, 'auth':False}} | 61394052a2f78d89f3b305801591f8fbdce68a18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/61394052a2f78d89f3b305801591f8fbdce68a18/smtpclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
3567,
723,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1438,
4672,
309,
1438,
422,
296,
75,
4408,
4278,
327,
13666,
1132,
4278,
27828,
3567,
11,
2497,
20278,
18,
75,
4408,
18,
832,
2187,
296,
655,
11,
2497,
2947,
2187,
296,
8157,
4278,
5510,
16,
296,
1944,
4278,
5510,
9090,
1327,
1438,
631,
296,
93,
9795,
5161,
4278,
327,
13666,
1132,
4278,
27828,
3567,
11,
2497,
20278,
18,
4408,
18,
93,
9795,
5161,
18,
2894,
18,
267,
2187,
296,
8157,
4278,
8381,
16,
296,
655,
4278,
8204,
27,
16,
296,
1944,
4278,
5510,
9090,
469,
30,
327,
13666,
1132,
4278,
27828,
3567,
11,
2497,
13014,
2187,
296,
655,
4278,
2947,
16,
296,
8157,
4278,
8381,
16,
296,
1944,
4278,
8381,
9090,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
3567,
723,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1438,
4672,
309,
1438,
422,
296,
75,
4408,
4278,
327,
13666,
1132,
4278,
27828,
3567,
11,
2497,
20278,
18,
75,
4408,
18,
832,
2187,
296,
655,
11,
2497,
2947,
2187,
296,
8157,
4278,
5510,
16,
296,
1944,
4278,
5510,
9090,
1327,
1438,
631,
296,
93,
9795,
5161,
4278,
327,
13666,
1132,
4278,
27828,
3567,
11,
2497,
20278,
18,
4408,
18,
93,
9795,
5161,
18,
2894,
18,
267,
2187,
296,
8157,
4278,
8381,
16,
296,
655,
4278,
8204,
27,
16,
296,
1944,
4278,
5510,
9090,
469,
30,
327,
13666,
1132,
4278,
27828,
3567,
11,
2497,
13014,
2187,
296,
655,
4278,
2947,
16,
296,
8157,
4278,
8381,
2
] |
if vc_type not in _version_controls: | if not vcs.get_backend(vc_type): | def parse_editable(editable_req): """Parses svn+http://blahblah@rev#egg=Foobar into a requirement (Foobar) and a URL""" url = editable_req if os.path.isdir(url) and os.path.exists(os.path.join(url, 'setup.py')): # Treating it as code that has already been checked out url = filename_to_url(url) if url.lower().startswith('file:'): return None, url for vc_type in _version_controls: if url.lower().startswith('%s:' % vc_type): url = '%s+' % vc_type + url if '+' not in url: if default_vcs: url = default_vcs + '+' + url else: raise InstallationError( '--editable=%s should be formatted with svn+URL, git+URL or hg+URL' % editable_req) vc_type = url.split('+', 1)[0].lower() if vc_type not in _version_controls: raise InstallationError( 'For --editable=%s only svn (svn+URL), Git (git+URL) and Mercurial (hg+URL) is currently supported' % editable_req) match = re.search(r'(?:#|#.*?&)egg=([^&]*)', editable_req) if (not match or not match.group(1)) and vc_type in _version_controls: parts = [p for p in editable_req.split('#', 1)[0].split('/') if p] if parts[-2] in ('tags', 'branches', 'tag', 'branch'): req = parts[-3] elif parts[-1] == 'trunk': req = parts[-2] else: raise InstallationError( '--editable=%s is not the right format; it must have #egg=Package' % editable_req) else: req = match.group(1) ## FIXME: use package_to_requirement? match = re.search(r'^(.*?)(?:-dev|-\d.*)', req) if match: # Strip off -dev, -0.2, etc. req = match.group(1) return req, url | 404ce4d68b7ccae8baf7b8e9c98d76c7210aa5aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/404ce4d68b7ccae8baf7b8e9c98d76c7210aa5aa/pip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
19653,
12,
19653,
67,
3658,
4672,
3536,
6656,
5893,
82,
15,
2505,
2207,
3083,
9795,
3083,
9795,
36,
9083,
7,
23171,
33,
42,
83,
947,
297,
1368,
279,
12405,
261,
42,
83,
947,
297,
13,
471,
279,
1976,
8395,
880,
273,
13754,
67,
3658,
309,
1140,
18,
803,
18,
291,
1214,
12,
718,
13,
471,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
718,
16,
296,
8401,
18,
2074,
26112,
30,
468,
399,
266,
1776,
518,
487,
981,
716,
711,
1818,
2118,
5950,
596,
880,
273,
1544,
67,
869,
67,
718,
12,
718,
13,
309,
880,
18,
8167,
7675,
17514,
1918,
2668,
768,
2497,
4672,
327,
599,
16,
880,
364,
12802,
67,
723,
316,
389,
1589,
67,
24350,
30,
309,
880,
18,
8167,
7675,
17514,
1918,
29909,
87,
2497,
738,
12802,
67,
723,
4672,
880,
273,
1995,
87,
6797,
738,
12802,
67,
723,
397,
880,
309,
10058,
486,
316,
880,
30,
309,
805,
67,
18982,
30,
880,
273,
805,
67,
18982,
397,
10058,
397,
880,
469,
30,
1002,
10284,
367,
668,
12,
3534,
19653,
5095,
87,
1410,
506,
4955,
598,
5893,
82,
15,
1785,
16,
5071,
15,
1785,
578,
22576,
15,
1785,
11,
738,
13754,
67,
3658,
13,
12802,
67,
723,
273,
880,
18,
4939,
2668,
15,
2187,
404,
25146,
20,
8009,
8167,
1435,
309,
486,
20255,
18,
588,
67,
9993,
12,
4227,
67,
723,
4672,
1002,
10284,
367,
668,
12,
296,
1290,
1493,
19653,
5095,
87,
1338,
5893,
82,
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,
19653,
12,
19653,
67,
3658,
4672,
3536,
6656,
5893,
82,
15,
2505,
2207,
3083,
9795,
3083,
9795,
36,
9083,
7,
23171,
33,
42,
83,
947,
297,
1368,
279,
12405,
261,
42,
83,
947,
297,
13,
471,
279,
1976,
8395,
880,
273,
13754,
67,
3658,
309,
1140,
18,
803,
18,
291,
1214,
12,
718,
13,
471,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
718,
16,
296,
8401,
18,
2074,
26112,
30,
468,
399,
266,
1776,
518,
487,
981,
716,
711,
1818,
2118,
5950,
596,
880,
273,
1544,
67,
869,
67,
718,
12,
718,
13,
309,
880,
18,
8167,
7675,
17514,
1918,
2668,
768,
2497,
4672,
327,
599,
16,
880,
364,
12802,
67,
2
] |
w = self.width * scale - 1 h = self.height * scale - 1 | w = self.image.width * scale h = self.image.height * scale | def scale(self, scale=None): scroll_amount = self.scroll_amount scaling = self.scaling if scale == None: scale = scaling w = self.width * scale - 1 h = self.height * scale - 1 origin = [x * self.scroll_amount for x in self.GetViewStart()] x = max(min(origin[0] * scale / scaling + 1, w - self.GetSize().x) - 2, 0) y = max(min(origin[1] * scale / scaling + 1, h - self.GetSize().y) - 2, 0) self.scaling = scale self.SetScrollbars(scroll_amount, scroll_amount, floor(w / scroll_amount), floor(h / scroll_amount), floor(x / scroll_amount), floor(y / scroll_amount)) self.Clear() self.Refresh(0, rect=wxRect(0, 0, self.GetSize().x, self.GetSize().y)) | 2933083de4a9e93226072bcc8aa7851a6a2b86c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/2933083de4a9e93226072bcc8aa7851a6a2b86c7/gamera_display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
12,
2890,
16,
3159,
33,
7036,
4672,
5532,
67,
8949,
273,
365,
18,
12033,
67,
8949,
10612,
273,
365,
18,
24576,
309,
3159,
422,
599,
30,
3159,
273,
10612,
341,
273,
365,
18,
2730,
18,
2819,
380,
3159,
366,
273,
365,
18,
2730,
18,
4210,
380,
3159,
4026,
273,
306,
92,
380,
365,
18,
12033,
67,
8949,
364,
619,
316,
365,
18,
967,
1767,
1685,
1435,
65,
619,
273,
943,
12,
1154,
12,
10012,
63,
20,
65,
380,
3159,
342,
10612,
397,
404,
16,
341,
300,
365,
18,
967,
1225,
7675,
92,
13,
300,
576,
16,
374,
13,
677,
273,
943,
12,
1154,
12,
10012,
63,
21,
65,
380,
3159,
342,
10612,
397,
404,
16,
366,
300,
365,
18,
967,
1225,
7675,
93,
13,
300,
576,
16,
374,
13,
365,
18,
24576,
273,
3159,
365,
18,
694,
6806,
13518,
12,
12033,
67,
8949,
16,
5532,
67,
8949,
16,
6346,
12,
91,
342,
5532,
67,
8949,
3631,
6346,
12,
76,
342,
5532,
67,
8949,
3631,
6346,
12,
92,
342,
5532,
67,
8949,
3631,
6346,
12,
93,
342,
5532,
67,
8949,
3719,
365,
18,
9094,
1435,
365,
18,
8323,
12,
20,
16,
4917,
33,
27226,
6120,
12,
20,
16,
374,
16,
365,
18,
967,
1225,
7675,
92,
16,
365,
18,
967,
1225,
7675,
93,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
12,
2890,
16,
3159,
33,
7036,
4672,
5532,
67,
8949,
273,
365,
18,
12033,
67,
8949,
10612,
273,
365,
18,
24576,
309,
3159,
422,
599,
30,
3159,
273,
10612,
341,
273,
365,
18,
2730,
18,
2819,
380,
3159,
366,
273,
365,
18,
2730,
18,
4210,
380,
3159,
4026,
273,
306,
92,
380,
365,
18,
12033,
67,
8949,
364,
619,
316,
365,
18,
967,
1767,
1685,
1435,
65,
619,
273,
943,
12,
1154,
12,
10012,
63,
20,
65,
380,
3159,
342,
10612,
397,
404,
16,
341,
300,
365,
18,
967,
1225,
7675,
92,
13,
300,
576,
16,
374,
13,
677,
273,
943,
12,
1154,
12,
10012,
63,
21,
65,
380,
3159,
342,
10612,
397,
404,
16,
366,
300,
2
] |
bio = BIO.openfile(filepath, 'wb') | bio = BIO.openfile(filename, 'wb') | def save_pub_key(self, filename): """ Save the DSA public key (with parameters) to a file. @type filename: str @param filename: Save DSA public key (with parameters) to this file. @return: 1 (true) if successful """ bio = BIO.openfile(filepath, 'wb') ret = self.save_pub_key_bio(bio) bio.close() return ret | e4ec01921fcc2d6a2fce49db5dd86c1b64a07ead /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/e4ec01921fcc2d6a2fce49db5dd86c1b64a07ead/DSA.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
10174,
67,
856,
12,
2890,
16,
1544,
4672,
3536,
7074,
326,
463,
5233,
1071,
498,
261,
1918,
1472,
13,
358,
279,
585,
18,
225,
632,
723,
225,
1544,
30,
609,
632,
891,
1544,
30,
7074,
463,
5233,
1071,
498,
261,
1918,
1472,
13,
358,
333,
585,
18,
632,
2463,
30,
540,
404,
261,
3767,
13,
309,
6873,
3536,
25091,
273,
605,
4294,
18,
3190,
768,
12,
3459,
16,
296,
9464,
6134,
325,
273,
365,
18,
5688,
67,
10174,
67,
856,
67,
21010,
12,
21010,
13,
25091,
18,
4412,
1435,
327,
325,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
10174,
67,
856,
12,
2890,
16,
1544,
4672,
3536,
7074,
326,
463,
5233,
1071,
498,
261,
1918,
1472,
13,
358,
279,
585,
18,
225,
632,
723,
225,
1544,
30,
609,
632,
891,
1544,
30,
7074,
463,
5233,
1071,
498,
261,
1918,
1472,
13,
358,
333,
585,
18,
632,
2463,
30,
540,
404,
261,
3767,
13,
309,
6873,
3536,
25091,
273,
605,
4294,
18,
3190,
768,
12,
3459,
16,
296,
9464,
6134,
325,
273,
365,
18,
5688,
67,
10174,
67,
856,
67,
21010,
12,
21010,
13,
25091,
18,
4412,
1435,
327,
325,
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
] |
*(type_str.split(':'))) | *(type_str.split(':', 2))) | def find_port_types(self): from core.modules.module_registry import get_module_registry, \ ModuleRegistryException registry = get_module_registry() self._descriptors = [] if self.signature: signature_str = self.signature[1:-1].strip() if signature_str != "": try: for type_str in signature_str.split(','): desc = registry.get_descriptor_by_name( \ *(type_str.split(':'))) self._descriptors.append(desc) except ModuleRegistryException, e: | 58023c9dcc2bffab0cc5e5616ba7822094a4d0fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6341/58023c9dcc2bffab0cc5e5616ba7822094a4d0fe/port.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
655,
67,
2352,
12,
2890,
4672,
628,
2922,
18,
6400,
18,
2978,
67,
9893,
1930,
336,
67,
2978,
67,
9893,
16,
521,
5924,
4243,
503,
4023,
273,
336,
67,
2978,
67,
9893,
1435,
365,
6315,
72,
8379,
273,
5378,
309,
365,
18,
8195,
30,
3372,
67,
701,
273,
365,
18,
8195,
63,
21,
30,
17,
21,
8009,
6406,
1435,
309,
3372,
67,
701,
480,
1408,
30,
775,
30,
364,
618,
67,
701,
316,
3372,
67,
701,
18,
4939,
12,
17023,
4672,
3044,
273,
4023,
18,
588,
67,
12628,
67,
1637,
67,
529,
12,
521,
380,
12,
723,
67,
701,
18,
4939,
2668,
30,
2187,
576,
20349,
365,
6315,
72,
8379,
18,
6923,
12,
5569,
13,
1335,
5924,
4243,
503,
16,
425,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
655,
67,
2352,
12,
2890,
4672,
628,
2922,
18,
6400,
18,
2978,
67,
9893,
1930,
336,
67,
2978,
67,
9893,
16,
521,
5924,
4243,
503,
4023,
273,
336,
67,
2978,
67,
9893,
1435,
365,
6315,
72,
8379,
273,
5378,
309,
365,
18,
8195,
30,
3372,
67,
701,
273,
365,
18,
8195,
63,
21,
30,
17,
21,
8009,
6406,
1435,
309,
3372,
67,
701,
480,
1408,
30,
775,
30,
364,
618,
67,
701,
316,
3372,
67,
701,
18,
4939,
12,
17023,
4672,
3044,
273,
4023,
18,
588,
67,
12628,
67,
1637,
67,
529,
12,
521,
380,
12,
723,
67,
701,
18,
4939,
2668,
30,
2187,
576,
20349,
365,
6315,
72,
8379,
18,
6923,
12,
5569,
13,
1335,
2
] |
not link.startswith("__al_gl") and \ not link.startswith("__ALLEGRO_gl") and \ | not link.startswith("_al_gl") and \ not link.startswith("_ALLEGRO_gl") and \ | def check_undocumented_functions(): """ Cross-compare the documentation links with public symbols found in headers. """ print("Checking if each documented function exists...") includes = " -I include -I " + os.path.join(options.path, "include") includes += " -I addons/acodec" headers = ["include/allegro5/allegro5.h", "addons/acodec/allegro5/allegro_flac.h", "addons/acodec/allegro5/allegro_vorbis.h", "include/allegro5/allegro_opengl.h"] for addon in glob.glob("addons/*"): name = addon[7:] header = os.path.join("addons", name, "allegro5", "allegro_" + name + ".h") if os.path.exists(header): headers.append(header) includes += " -I " + os.path.join("addons", name) for header in headers: p = subprocess.Popen("gcc -E -dN - " + includes, stdout = subprocess.PIPE, stdin = subprocess.PIPE, shell = True) p.stdin.write("#include <allegro5/allegro5.h>\n" + open(header).read()) p.stdin.close() text = p.stdout.read() n = parse_header(text.splitlines(), header) #print("%d definitions in %s" % (n, header)) for link in links: if not link in symbols: print("Missing: " + link) print("") print("Checking if each function is documented...") others = [] for link in symbols: if not link in links: if symbols[link] == "function": print("Missing: " + link) else: if link and not link.startswith("GL") and \ not link.startswith("gl") and \ not link.startswith("__al_gl") and \ not link.startswith("__ALLEGRO_gl") and \ not link.startswith("_ALLEGRO_GL") and \ not link.startswith("ALLEGRO_"): others.append(link) print("Also leaking:") others.sort(); print(", ".join(others)) | d7087d33615981d54448a8d5b13d2f77abb441b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14418/d7087d33615981d54448a8d5b13d2f77abb441b6/checkdocs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1074,
504,
650,
329,
67,
10722,
13332,
3536,
19742,
17,
9877,
326,
7323,
4716,
598,
1071,
7963,
1392,
316,
1607,
18,
3536,
1172,
2932,
14294,
309,
1517,
23051,
445,
1704,
7070,
13,
225,
6104,
273,
315,
300,
45,
2341,
300,
45,
315,
397,
1140,
18,
803,
18,
5701,
12,
2116,
18,
803,
16,
315,
6702,
7923,
6104,
1011,
315,
300,
45,
31439,
19,
69,
21059,
6,
1607,
273,
8247,
6702,
19,
287,
1935,
303,
25,
19,
287,
1935,
303,
25,
18,
76,
3113,
315,
1289,
7008,
19,
69,
21059,
19,
287,
1935,
303,
25,
19,
287,
1935,
303,
67,
2242,
1077,
18,
76,
3113,
315,
1289,
7008,
19,
69,
21059,
19,
287,
1935,
303,
25,
19,
287,
1935,
303,
67,
90,
16640,
291,
18,
76,
3113,
315,
6702,
19,
287,
1935,
303,
25,
19,
287,
1935,
303,
67,
3190,
7043,
18,
76,
11929,
225,
364,
15466,
316,
4715,
18,
10581,
2932,
1289,
7008,
19,
7388,
4672,
508,
273,
15466,
63,
27,
26894,
1446,
273,
1140,
18,
803,
18,
5701,
2932,
1289,
7008,
3113,
508,
16,
315,
287,
1935,
303,
25,
3113,
315,
287,
1935,
303,
9548,
397,
508,
397,
3552,
76,
7923,
309,
1140,
18,
803,
18,
1808,
12,
3374,
4672,
1607,
18,
6923,
12,
3374,
13,
6104,
1011,
315,
300,
45,
315,
397,
1140,
18,
803,
18,
5701,
2932,
1289,
7008,
3113,
508,
13,
225,
364,
1446,
316,
1607,
30,
293,
273,
6652,
18,
52,
3190,
2932,
75,
952,
300,
41,
300,
72,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1074,
504,
650,
329,
67,
10722,
13332,
3536,
19742,
17,
9877,
326,
7323,
4716,
598,
1071,
7963,
1392,
316,
1607,
18,
3536,
1172,
2932,
14294,
309,
1517,
23051,
445,
1704,
7070,
13,
225,
6104,
273,
315,
300,
45,
2341,
300,
45,
315,
397,
1140,
18,
803,
18,
5701,
12,
2116,
18,
803,
16,
315,
6702,
7923,
6104,
1011,
315,
300,
45,
31439,
19,
69,
21059,
6,
1607,
273,
8247,
6702,
19,
287,
1935,
303,
25,
19,
287,
1935,
303,
25,
18,
76,
3113,
315,
1289,
7008,
19,
69,
21059,
19,
287,
1935,
303,
25,
19,
287,
1935,
303,
67,
2242,
1077,
18,
76,
3113,
315,
1289,
7008,
19,
69,
21059,
19,
287,
1935,
303,
25,
19,
2
] |
try: return self._call('commitVersion', src, dest, self._serial) | try: oids=self._call('commitVersion', src, dest, self._serial) invalidate=self._cache.invalidate if dest: for oid in oids: invalidate(oid, src) else: for oid in oids: invalidate(oid, dest) return oids | def commitVersion(self, src, dest, transaction): if transaction is not self._transaction: raise POSException.StorageTransactionError(self, transaction) self._lock_acquire() try: return self._call('commitVersion', src, dest, self._serial) finally: self._lock_release() | c89a419ee8f07b8a33e4840923d2c422b67576aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/c89a419ee8f07b8a33e4840923d2c422b67576aa/ClientStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
1444,
12,
2890,
16,
1705,
16,
1570,
16,
2492,
4672,
309,
2492,
353,
486,
365,
6315,
7958,
30,
1002,
12511,
503,
18,
3245,
3342,
668,
12,
2890,
16,
2492,
13,
365,
6315,
739,
67,
1077,
1039,
1435,
775,
30,
26629,
33,
2890,
6315,
1991,
2668,
7371,
1444,
2187,
1705,
16,
1570,
16,
365,
6315,
8818,
13,
11587,
33,
2890,
6315,
2493,
18,
5387,
340,
309,
1570,
30,
225,
364,
7764,
316,
26629,
30,
11587,
12,
839,
16,
1705,
13,
469,
30,
225,
364,
7764,
316,
26629,
30,
11587,
12,
839,
16,
1570,
13,
225,
327,
26629,
3095,
30,
365,
6315,
739,
67,
9340,
1435,
2,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
1444,
12,
2890,
16,
1705,
16,
1570,
16,
2492,
4672,
309,
2492,
353,
486,
365,
6315,
7958,
30,
1002,
12511,
503,
18,
3245,
3342,
668,
12,
2890,
16,
2492,
13,
365,
6315,
739,
67,
1077,
1039,
1435,
775,
30,
26629,
33,
2890,
6315,
1991,
2668,
7371,
1444,
2187,
1705,
16,
1570,
16,
365,
6315,
8818,
13,
11587,
33,
2890,
6315,
2493,
18,
5387,
340,
309,
1570,
30,
225,
364,
7764,
316,
26629,
30,
11587,
12,
839,
16,
1705,
13,
469,
30,
225,
364,
7764,
316,
26629,
30,
11587,
12,
839,
16,
1570,
13,
225,
327,
26629,
3095,
30,
365,
6315,
739,
67,
9340,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
g = open(working_path + self.country + '_mls_report.tex', 'w') | output_filename = working_path + self.country + '_mls_report.tex' output_filename = output_filename.replace(" ","_") g = open(output_filename, 'w') | def finish (self): #"$<$put-a-country-here$>$" #"$<$put-mailing-lists-number$>$" #"$<$put-projects-number$>$" #"$<$put-posters-number$>$" #"$<$put-messages-number$>$" #"$<$put-date$>$" #"$<$put-top10-mailing-lists$>$" #"$<$put-all-mailing-lists$>$" #"$<$put-all-posters$>$" working_path = self.result_path + '../' print "Estamos en ",os.getcwd()," el path de resultados es ",self.result_path f = open('templates/mls_country_report.tex','r') final_text = f.read() f.close() | 6e6a37ad8059f59d249bc3b6f39f931a82b3a4d2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10886/6e6a37ad8059f59d249bc3b6f39f931a82b3a4d2/latex_country_report_transformer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
261,
2890,
4672,
31526,
8,
32,
8,
458,
17,
69,
17,
9082,
17,
14852,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
4408,
310,
17,
9772,
17,
2696,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
13582,
17,
2696,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
2767,
414,
17,
2696,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
6833,
17,
2696,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
712,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
3669,
2163,
17,
4408,
310,
17,
9772,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
454,
17,
4408,
310,
17,
9772,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
454,
17,
2767,
414,
8,
34,
12911,
5960,
67,
803,
273,
365,
18,
2088,
67,
803,
397,
11597,
2473,
1172,
315,
9122,
301,
538,
570,
3104,
538,
18,
588,
11089,
9334,
6,
415,
589,
443,
563,
18739,
5001,
3104,
2890,
18,
2088,
67,
803,
284,
273,
1696,
2668,
8502,
19,
781,
87,
67,
9082,
67,
6006,
18,
21763,
17023,
86,
6134,
727,
67,
955,
273,
284,
18,
896,
1435,
284,
18,
4412,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
261,
2890,
4672,
31526,
8,
32,
8,
458,
17,
69,
17,
9082,
17,
14852,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
4408,
310,
17,
9772,
17,
2696,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
13582,
17,
2696,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
2767,
414,
17,
2696,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
6833,
17,
2696,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
712,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
3669,
2163,
17,
4408,
310,
17,
9772,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
454,
17,
4408,
310,
17,
9772,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
454,
2
] |
sqlquery = """ | sqlquery = ''.join([ """ | def clean_using_coinc_table( connection, table_name, verbose = False, clean_experiment_map = True, clean_coinc_event_table = True, clean_coinc_definer = True, clean_coinc_event_map = True, clean_mapped_tables = True, selected_tables = []): """ Clears experiment_map, coinc_event, coinc_event_map, and all tables pointing to the coinc_event_map of triggers that are no longer in the specified table. Note that the experiment_summary, experiment, and time_slide_tables are left alone. This is because even if no events are left in an experiment, we still want info. about the experiment that was performed. @connection to a sqlite database @table_name: name of table on which basing the cleaning. Can be any table having a coinc_event_id column. @clean_experiment_map: if set to True will clean the experiment_map table @clean_coinc_event_table: if set to True will clean the coinc_event table @clean_coinc_definer: if set to True will clean the coinc_definer table if clean_coinc_event_table is set to True (the coinc_event_table is used to determine what coinc_definers to delete) @clean_coinc_event_map: if set to True, will clean the coinc_event_map @clean_mapped_tables: clean tables listed in the coinc_event_map who's event_ids are not not in the coinc_event_map @selected_tables: if clean_mapped_tables is on, will clean the listed tables if they appear in the coinc_event_map and have an event_id column. Default, [], is to clean all tables found. The requirement that the table has an event_id avoids cleaning simulation tables. """ # Delete from experiment_map if clean_experiment_map: if verbose: print >> sys.stderr, "Cleaning the experiment_map table..." sqlquery = """ DELETE FROM experiment_map WHERE coinc_event_id NOT IN ( SELECT coinc_event_id FROM ?""" connection.cursor().execute( sqlquery, (table_name,) ) connection.commit() # Delete from coinc_event if clean_coinc_event_table: if verbose: print >> sys.stderr, "Cleaning the coinc_event table..." sqlquery = """ DELETE FROM experiment_map WHERE coinc_event_id NOT IN ( SELECT coinc_event_id FROM ?""" connection.cursor().execute( sqlquery, (table_name,) ) connection.commit() # Delete from coinc_definer if clean_coinc_definer and clean_coinc_event_table: if verbose: print >> sys.stderr, "Cleaning the coinc_definer table..." sqlquery = """ DELETE FROM coinc_definer WHERE coinc_def_id NOT IN ( SELECT coinc_def_id FROM coinc_event )""" connection.cursor().execute( sqlquery ) connection.commit() # Find tables listed in coinc_event_map if clean_mapped_tables and selected_tables == []: selected_tables = get_cem_table_names(connection) # Delete from coinc_event_map if clean_coinc_event_map: if verbose: print >> sys.stderr, "Cleaning the coinc_event_map table..." sqlquery = """ DELETE FROM coinc_event_map WHERE coinc_event_id NOT IN ( SELECT coinc_event_id FROM ?)""" connection.cursor().execute( sqlquery, (table_name,) ) connection.commit() # Delete events from tables that were listed in the coinc_event_map # we only want to delete event_ids, not simulations, so if a table # does not have an event_id, we just pass if clean_mapped_tables: clean_mapped_event_tables( connection, selected_tables, raise_err_on_mission_evid = False, verbose = verbose ) if verbose: print >> sys.stderr, "done." | 34e81bb557de4ff75defac4a05e5a94a68af7db0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/34e81bb557de4ff75defac4a05e5a94a68af7db0/ligolw_sqlutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
9940,
67,
12645,
71,
67,
2121,
12,
1459,
16,
1014,
67,
529,
16,
3988,
273,
1083,
16,
2721,
67,
18142,
67,
1458,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
2121,
273,
1053,
16,
2721,
67,
12645,
71,
67,
5649,
264,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
1458,
273,
1053,
16,
2721,
67,
13654,
67,
9373,
273,
1053,
16,
3170,
67,
9373,
273,
5378,
4672,
3536,
6257,
5913,
8724,
67,
1458,
16,
13170,
71,
67,
2575,
16,
13170,
71,
67,
2575,
67,
1458,
16,
471,
777,
4606,
17022,
358,
326,
13170,
71,
67,
2575,
67,
1458,
434,
11752,
716,
854,
1158,
7144,
316,
326,
1269,
1014,
18,
3609,
716,
326,
8724,
67,
7687,
16,
8724,
16,
471,
813,
67,
26371,
67,
9373,
854,
2002,
24068,
18,
1220,
353,
2724,
5456,
309,
1158,
2641,
854,
2002,
316,
392,
8724,
16,
732,
4859,
2545,
1123,
18,
2973,
326,
8724,
716,
1703,
9591,
18,
225,
632,
4071,
358,
279,
16184,
2063,
632,
2121,
67,
529,
30,
508,
434,
1014,
603,
1492,
2580,
310,
326,
24225,
18,
4480,
506,
1281,
1014,
7999,
279,
13170,
71,
67,
2575,
67,
350,
1057,
18,
632,
6200,
67,
18142,
67,
1458,
30,
309,
444,
358,
1053,
903,
2721,
326,
8724,
67,
1458,
1014,
632,
6200,
67,
12645,
71,
67,
2575,
67,
2121,
30,
309,
444,
358,
1053,
903,
2721,
326,
13170,
71,
67,
2575,
1014,
632,
6200,
67,
12645,
71,
67,
5649,
264,
30,
309,
444,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
9940,
67,
12645,
71,
67,
2121,
12,
1459,
16,
1014,
67,
529,
16,
3988,
273,
1083,
16,
2721,
67,
18142,
67,
1458,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
2121,
273,
1053,
16,
2721,
67,
12645,
71,
67,
5649,
264,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
1458,
273,
1053,
16,
2721,
67,
13654,
67,
9373,
273,
1053,
16,
3170,
67,
9373,
273,
5378,
4672,
3536,
6257,
5913,
8724,
67,
1458,
16,
13170,
71,
67,
2575,
16,
13170,
71,
67,
2575,
67,
1458,
16,
471,
777,
4606,
17022,
358,
326,
13170,
71,
67,
2575,
67,
1458,
434,
11752,
716,
854,
1158,
7144,
316,
326,
1269,
1014,
18,
3609,
716,
326,
2
] |
"""Called by the protocol to queue it for later writing.""" | """ Called by the protocol to queue it for later writing. """ | def throttledWrites(self, p): """Called by the protocol to queue it for later writing.""" assert p not in self._writeQueue self._writeQueue.append(p) | 58eccda74a195382b889cef4bef5351d7ade115f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/665/58eccda74a195382b889cef4bef5351d7ade115f/policies.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27335,
8368,
12,
2890,
16,
293,
4672,
3536,
11782,
635,
326,
1771,
358,
2389,
518,
364,
5137,
7410,
18,
3536,
1815,
293,
486,
316,
365,
6315,
2626,
3183,
365,
6315,
2626,
3183,
18,
6923,
12,
84,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27335,
8368,
12,
2890,
16,
293,
4672,
3536,
11782,
635,
326,
1771,
358,
2389,
518,
364,
5137,
7410,
18,
3536,
1815,
293,
486,
316,
365,
6315,
2626,
3183,
365,
6315,
2626,
3183,
18,
6923,
12,
84,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"Producer wrapper for file[-like] objects." | """Producer wrapper for file[-like] objects.""" | def close(self): debug("DTPHandler.close()") | e1763c9db15d5d6d781646fb0678f3c70d95867a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/e1763c9db15d5d6d781646fb0678f3c70d95867a/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
1198,
2932,
9081,
52,
1503,
18,
4412,
1435,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
1198,
2932,
9081,
52,
1503,
18,
4412,
1435,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ | "<p>To reselect the atoms in an Atom Set, select "\ "it's context menu in the Model Tree and click the "\ "menu item that states "\ | def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their own widgets, usually in a method called add_whats_this_text(), not in this file. """ # # File Toolbar # # Open File fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)<br> "\ "<p><img source=\"ui/actions/File/Open.png\"><br> "\ "Opens a new file."\ "</p>" win.fileOpenAction.setWhatsThis( fileOpenText ) # Import File fileImportText = "<u><b>Import File</b></u><br>"\ "Inserts a file of any chemical file format supported by "\ "<b>Openbabel</b> into the current Part" win.fileImportAction.setWhatsThis(fileImportText) #Export File fileExportText = "<u><b>Export File</b></u><br>"\ "Save the current Part in any chemical file format supported by "\ "<b>Openbabel</b>. Note that exclusive features of NanoEngineer-1 "\ "are not saved to the exported file" win.fileExportAction.setWhatsThis(fileExportText) # Save File fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)<br> "\ "<p><img source=\"ui/actions//Save.png\"><br> "\ "Saves the current file."\ "</p>" win.fileSaveAction.setWhatsThis( fileSaveText ) # # Edit Toolbar # # Make Checkpoint ### editMakeCheckpointText = \ "<u><b>Make Checkpoint</b></u>"\ "<p>"\ "<img source=\"ui/actions/Edit/Make_CheckPoint.png\"><br> "\ "Make Undo checkpoint."\ "</p>" win.editMakeCheckpointAction.setWhatsThis( editMakeCheckpointText ) # Automatic Checkpointing ### [minor changes, bruce 060319] editAutoCheckpointingText = \ "<u><b>Automatic Checkpointing</b></u>"\ "<p>"\ "Enables/Disables <b>Automatic Checkpointing</b>. When enabled, "\ "the program maintains the Undo stack automatically. When disabled, "\ "the user is required to manually create Undo checkpoints using the "\ "<b>Make Checkpoint</b> button: "\ "</p>"\ "<p><img source=\"ui/actions/Edit/Make_CheckPoint.png\">"\ "</p>"\ "<p><b>Automatic Checkpointing</b> can impact program performance. "\ "By disabling Automatic Checkpointing, the program will run faster. "\ "</p>"\ "<p><b><i>Remember that you must make your own Undo checkpoints "\ "manually when Automatic Checkpointing is disabled.</i></b>"\ "</p>" win.editAutoCheckpointingAction.setWhatsThis( editAutoCheckpointingText ) # Clear Undo Stack ### [minor changes, bruce 060319] editClearUndoStackText = "<u><b>Clear Undo Stack</b></u>"\ "<p>Clears all checkpoints on the Undo and Redo stacks, freeing up memory."\ "</p>" win.editClearUndoStackAction.setWhatsThis( editClearUndoStackText ) # Undo editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)<br> "\ "<p><img source=\"ui/actions/Undo.png\"><br> "\ "Reverses the last edit or command which changed structure or selection. "\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Undo "\ "only works if you got this popup from the Edit menu item for Undo, "\ "not from the Undo toolbutton."\ "</font>"\ "</p>" #bruce 060317 revised this text to reflect what it does in A7; 060320 added 1421-not-fixed warning win.editUndoAction.setWhatsThis( editUndoText ) win.editUndoText = editUndoText #bruce 060317 to help fix bug 1421 in Undo whatsthis wiki help link # Redo from PlatformDependent import is_macintosh if is_macintosh(): redo_accel = "(Ctrl + Shift + Z)" # note: this is further modified (Ctrl -> Cmd) by other code # changing this is partly redundant with code in undo*.py, but as of 060317 it's desirable in editRedoText too else: redo_accel = "(Ctrl + Y)" editRedoText = "<u><b>Redo</b></u> %s<br> "\ "<p><img source=\"ui/actions/Edit/Redo.png\"> <br>"\ "Restores a change which was undone using the Undo command."\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Redo "\ "only works if you got this popup from the Edit menu item for Redo, "\ "not from the Redo toolbutton."\ "</font>"\ "</p>" % redo_accel #bruce 060317 revised this text to be more accurate, and split out redo_accel; 060320 added 1421-not-fixed warning win.editRedoAction.setWhatsThis( editRedoText ) win.editRedoText = editRedoText #bruce 060317 to help fix bug 1421 in Redo whatsthis wiki help link # Cut editCutText = "<u><b>Cut</b></u> (Ctrl + X)<br> "\ "<p><img source=\"ui/actions/Edit/Cut.png\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" win.editCutAction.setWhatsThis( editCutText ) # Copy editCopyText = "<u><b>Copy</b></u> (Ctrl + C)<br> "\ "<p><img source=\"ui/actions/Edit/Copy.png\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" win.editCopyAction.setWhatsThis( editCopyText ) # Paste editPasteText = "<u><b>Paste</b></u> (Ctrl + V)<br> "\ "<p><img source=\"ui/actions/Edit/Paste_On.png\"><br> "\ "<b>Paste</b> places the user in <b>Build</b> mode where copied chunks on "\ "the clipboard can be pasted into the model by double clicking in empty space. "\ "If the current clipboard chunk has a <b><i>hotspot</i></b>, it can be bonded to "\ "another chunk by single clicking on one of the chunk's bondpoints."\ "</p>"\ "<p>A <b><i>Hotspot</i></b> is a green bondpoint on a clipboard chunk indicating "\ "it will be the active bondpoint which will connect to another chunk's bondpoint. "\ "To specify a hotspot on the clipboard chunk, click on one of its bondpoints in the "\ "<b><i>MMKit's Thumbview</i></b>."\ "</p>" win.editPasteAction.setWhatsThis( editPasteText ) # Delete editDeleteText = "<u><b>Delete</b></u> (DEL)<br> "\ "<p><img source=\"ui/actions/Delete.png\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects may be permanently lost, or they might be recoverable using Undo.</p>" #bruce 060212 revised above text (and fixed spelling error); should be revised again before A7 release win.editDeleteAction.setWhatsThis( editDeleteText ) #Preferences Dialog editPrefsText = "<u><b>Preferences Dialog</b></u>"\ "<p>Allows you to edit various user preferences "\ "such as changing atom, bond display properties,"\ "lighting, background color, window position and"\ "size, plugins etc. </p>" win.editPrefsAction.setWhatsThis( editPrefsText ) # # View Toolbar # # Home View setViewHomeActionText = \ "<u><b>Home</b></u> (Home)<br>"\ "<p>"\ "<img source=\"ui/actions/View/Modify/Home.png\"><br>"\ "When you create a new model, it appears in a "\ "default view orientation (FRONT view). When you "\ "open an existing model, it appears in the "\ "orientation it was last saved. You can change the "\ "default orientation by selecting <b>Set Home View "\ "to Current View</b> from the <b>View</b> menu."\ "</p>" win.setViewHomeAction.setWhatsThis( setViewHomeActionText ) # Fit to Window setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom_To_Fit.png\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" win.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) # Recenter setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Recenter.png\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" win.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) # Zoom Tool setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom.png\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" win.zoomToolAction.setWhatsThis( setzoomToolActionText ) # Pan Tool setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Pan.png\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" win.panToolAction.setWhatsThis( setpanToolActionText ) # Rotate Tool setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Rotate.png\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" win.rotateToolAction.setWhatsThis( setrotateToolActionText ) # Orthographic Projection setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" win.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) # Perspective Projection setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p>Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" win.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) # Normal To viewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Normal_To.png/\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" win.viewNormalToAction.setWhatsThis( viewNormalToActionText ) # Parallel To viewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Parallel_To.png\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" win.viewParallelToAction.setWhatsThis( viewParallelToActionText ) # Save Named View saveNamedViewActionText = "<u><b>Save Named View</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Save_Named_View.png\"><br> "\ "Saves the current view as a custom <b>named view</b> and places it in the Model Tree.</p>" \ "<p>The view can be restored by selecting <b>Change View</b> from its context menu in the Model Tree."\ "</p>" win.saveNamedViewAction.setWhatsThis( saveNamedViewActionText ) # Front View viewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"ui/actions/View/Front.png\"><br> "\ "Orients the view to the Front View."\ "</p>" win.viewFrontAction.setWhatsThis( viewFrontActionText ) # Back View viewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"ui/actions/View/Back.png\"><br> "\ "Orients the view to the Back View."\ "</p>" win.viewBackAction.setWhatsThis( viewBackActionText ) # Top View viewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"ui/actions/View/Top.png\"><br> "\ "Orients the view to the Top View."\ "</p>" win.viewTopAction.setWhatsThis( viewTopActionText ) # Bottom View viewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"ui/actions/View/Bottom.png\"><br> "\ "Orients the view to the Bottom View."\ "</p>" win.viewBottomAction.setWhatsThis( viewBottomActionText ) # Left View viewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"ui/actions/View/Left.png\"><br> "\ "Orients the view to the Left View."\ "</p>" win.viewLeftAction.setWhatsThis( viewLeftActionText ) # Right View viewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"ui/actions/View/Right.png\"><br> "\ "Orients the view to the Right View."\ "</p>" win.viewRightAction.setWhatsThis( viewRightActionText ) #Isometric View viewIsometricActionText = "<u><b>IsometricView</b></u><br>"\ "<p><img source=\"ui/actions/View/Isometric.png\"><br> "\ "Orients the view to the Isometric View."\ "</p>" win.viewIsometricAction.setWhatsThis( viewIsometricActionText ) # Rotate View 180 viewRotate180ActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_180.png.png\"><br> "\ "Rotates the view 180 degrees."\ "</p>" win.viewRotate180Action.setWhatsThis( viewRotate180ActionText ) # Rotate View +90 viewRotatePlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_+90.png\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotatePlus90Action.setWhatsThis( viewRotatePlus90ActionText ) # Rotate View -90 viewRotateMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_-90.png\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotateMinus90Action.setWhatsThis( viewRotateMinus90ActionText ) # QuteMol viewQuteMolActionText = \ "<u><b>QuteMol</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/QuteMol.png\"><br> "\ "Starts QuteMol and loads a PDB file of the current model."\ "</p>" \ "QuteMol must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewQuteMolAction.setWhatsThis( viewQuteMolActionText ) # POV-Ray (was Raytrace Scene) viewRaytraceSceneActionText = "<u><b>POV-Ray</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\ "Raytrace the current scene using POV-Ray. "\ "</p>" \ "POV-Ray must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewRaytraceSceneAction.setWhatsThis( viewRaytraceSceneActionText ) # # Grids Toolbar # # Surface 100 orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface100.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" win.orient100Action.setWhatsThis(orient100ActionText ) # Surface 110 orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface110.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" win.orient110Action.setWhatsThis(orient110ActionText ) # Surface 111 orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface111.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" win.orient111Action.setWhatsThis(orient111ActionText ) # # Insert toolbar # # Graphene insertGrapheneActionText = \ "<u><b>Build Graphene</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Graphene.png\"><br> "\ "Inserts a 2D sheet of graphene in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertGrapheneAction.setWhatsThis(insertGrapheneActionText ) # Build Nanotube insertNanotubeActionText = \ "<u><b>Build Nanotube</b></u>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Nanotube.png\"> <br>"\ "Inserts a carbon or boron nitride nanotube in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertNanotubeAction.setWhatsThis(insertNanotubeActionText ) # Build DNA buildDnaActionText = \ "<u><b>Build DNA</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/DNA.png\"><br> "\ "Inserts DNA in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.buildDnaAction.setWhatsThis(buildDnaActionText ) # POV-Ray Scene insertPovraySceneActionText = "<u><b>Insert POV-Ray Scene</b></u><br>"\ "<p><img source=\"ui/actions/POV-Ray_Scene.png\"><br> "\ "Inserts a POV-Ray Scene file based on the current model and viewpoint. "\ "</p>" win.insertPovraySceneAction.setWhatsThis(insertPovraySceneActionText ) # Comment insertCommentActionText = "<u><b>Insert Comment</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Comment.png\"><br> "\ "Inserts a comment in the current part. "\ "</p>" win.insertCommentAction.setWhatsThis(insertCommentActionText ) # # Display toolbar # # Display Default dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Default.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>Modes</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" win.dispDefaultAction.setWhatsThis(dispDefaultActionText ) # Display Invisible dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Invisible.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispInvisAction.setWhatsThis(dispInvisActionText ) # Display Lines dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Lines.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispLinesAction.setWhatsThis(dispLinesActionText ) # Display Tubes dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Tubes.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispTubesAction.setWhatsThis(dispTubesActionText ) # Display Ball and Stick dispBallActionText = "<u><b>Display Ball and Stick</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Ball_and_Stick.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Ball and Stick</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Ball and Stick</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres and cylinders can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" win.dispBallAction.setWhatsThis(dispBallActionText ) # Display CPK # [bruce extended and slightly corrected text, 060307] dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/CPK.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force of approximately 0.1 nN with neighboring "\ "nonbonded atoms. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" win.dispCPKAction.setWhatsThis(dispCPKActionText ) # Display Cylinder dispCylinderActionText = "<u><b>Display Cylinder</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Cylinder.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Cylinder</b> mode. Chunks are rendered as cylinders."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Cylinder</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispCylinderAction.setWhatsThis(dispCylinderActionText ) # Display Surface dispSurfaceActionText = "<u><b>Display Surface</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Surface.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Surface</b> mode. Chunks are rendered as a smooth surface."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Surface</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispSurfaceAction.setWhatsThis(dispSurfaceActionText ) #Reset Chunk Color dispResetChunkColorText = "<u><b>Reset Chunk Color</b></u><br>"\ "Resets the user defined chunk color and renders the atoms " \ "(in the chunk) with their own element colors" win.dispResetChunkColorAction.setWhatsThis(dispResetChunkColorText ) #Reset Atoms Display dispResetAtomsDisplayText = "<u><b>Reset Atoms Display</b></u><br>"\ "Renders the selected atoms (or the atoms in the"\ "selected chunks) with the same display style as "\ "that of their parent chunk" win.dispResetAtomsDisplayAction.setWhatsThis(dispResetAtomsDisplayText) #Show Invisible Atoms dispShowInvisAtomsText = "<u><b>Show Invisible Atoms</b></u><br>"\ "Renders the selected atoms (or the atoms in the selected "\ "chunks) with the same display style as their parent chunk. "\ "However, if the parent chunk is set as invisible, this feature " \ "will not work. " win.dispShowInvisAtomsAction.setWhatsThis(dispShowInvisAtomsText) #Element Color Settings Dialog dispElementColorSettingsText = "<u><b>Element Color Settings Dialog</b></u><br>"\ "Element colors can be manually changed " \ "using this dialog. Also, the user can load"\ "or save the element colors" win.dispElementColorSettingsAction.setWhatsThis(dispElementColorSettingsText) # # Select toolbar # # Select All selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_All.png\"><br> "\ "When in <b>Build</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" win.selectAllAction.setWhatsThis(selectAllActionText ) # Select None selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_None.png\"><br> "\ "Unselects everything currently selected.</p>" win.selectNoneAction.setWhatsThis(selectNoneActionText ) # InvertSelection selectInvertActionText = "<u><b>Invert Selection</b></u> (Ctrl + Shift + I)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Invert.png\"><br> "\ "Inverts the current selection.</p>" win.selectInvertAction.setWhatsThis(selectInvertActionText ) # Select Connected selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Connected.png\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>You can also select all connected atoms by double clicking on an atom or bond "\ "while in <b>Build</b> mode.</p>" win.selectConnectedAction.setWhatsThis(selectConnectedActionText ) # Select Doubly selectDoublyActionText = "<u><b>Select Doubly</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Doubly.png\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection."\ "</p>" win.selectDoublyAction.setWhatsThis(selectDoublyActionText ) # Expand Selection selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Expand.png\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" win.selectExpandAction.setWhatsThis(selectExpandActionText ) # Contract Selection selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Contract.png\"><br> "\ "Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\ "</p>" win.selectContractAction.setWhatsThis(selectContractActionText ) # # Modify Toolbar # # Adjust Selection modifyAdjustSelActionText = "<u><b>Adjust Selection</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_Selection.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the selection</i>) to make the geometry more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustSelAction.setWhatsThis(modifyAdjustSelActionText ) # Adjust All modifyAdjustAllActionText = "<u><b>Adjust All</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_All.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the entire part</i>) to make the geometry of the part more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustAllAction.setWhatsThis(modifyAdjustAllActionText ) # Hydrogenate modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> <br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Hydrogenate.png\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" win.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) # Dehydrogenate modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Dehydrogenate.png\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" win.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) # Passivate modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)<br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Passivate.png\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" win.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) # Stretch modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Stretch.png\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" win.modifyStretchAction.setWhatsThis(modifyStretchActionText ) # Delete Bonds modifyDeleteBondsActionText = "<u><b>Cut Bonds</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Delete_Bonds.png\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" win.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) # Separate/New Chunk modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Separate.png\"><br> "\ "Creates a new chunk(s) from the currently selected atoms. "\ "If the selected atoms belong to different chunks, multiple new "\ "chunks are created.</p>" win.modifySeparateAction.setWhatsThis(modifySeparateActionText ) # New Chunk makeChunkFromSelectedAtomsActionText = "<u><b>New Chunk</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/New_Chunk.png\"><br> "\ "Creates a new chunk from the currently selected atoms. "\ "All atoms end up in a single chunk.</p>" win.makeChunkFromSelectedAtomsAction.setWhatsThis(makeChunkFromSelectedAtomsActionText ) # Merge Chunks modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Merge.png\"><br> "\ "Merges two or more chunks into a single chunk.</p>" win.modifyMergeAction.setWhatsThis(modifyMergeActionText ) # Invert Chunks modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Invert.png\"><br> "\ "Inverts the atoms of the selected chunks.</p>" win.modifyInvertAction.setWhatsThis(modifyInvertActionText ) # Mirror Selected Chunks #Note that the the feature name is intentionally kept "Mirror" instead of "Mirror Chunks" because # in future we will support mirrroing atoms as well. -- ninad060814 modifyMirrorActionText = "<u><b>Mirror</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Mirror.png\"><br> "\ "Mirrors the selected <b> chunks </b> about a reference Grid Plane.<br>"\ "<font color=\"#808080\">Note: In this version, it doesn't mirror jigs or individual atoms.</font> </p>" win.modifyMirrorAction.setWhatsThis(modifyMirrorActionText ) # Align to Common Axis modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/AlignToCommonAxis.png\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" win. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) #Center on Common Axis modifyCenterCommonAxisActionText= "<u><b>Center On Common Axis</b></u><br>"\ "<p><b> Moves</b> all selected chunks to the center of the <b> first </b> selected chunk "\ "and also <b>aligns</b> them to the axis of the first one ."\ "You must select two or more chunks before using this feature. </p>" win.modifyCenterCommonAxisAction.setWhatsThis(modifyCenterCommonAxisActionText) # # Tools Toolbar # # Select Chunks toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/63.png\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" win. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) # Move Chunks toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/64.png\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" win. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) # Build Atoms toolsDepositAtomActionText = \ "<u><b>Build Atoms</b></u><!-- [[Feature:Build Atoms]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Atoms.png\"><br> "\ "<b>Build Atoms</b> allows you to build structures one atom at a time or by depositing objects "\ "that are on the paste clipboard. You can also insert structures from the "\ "NanoEngineer-1 Parts Library.</p>"\ "<p>It is also possible to change bond types between atoms using the <b>Bond Tool</b> or by "\ "simply dragging and dropping one bondpoint onto another."\ "</p>" win. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) # Build Crystal (was Cookie Cutter Mode) toolsCookieCutActionText = "<u><b>Build Crystal</b></u><!-- [[Feature:Build Crystal]] --><br>"\ "<p><><img source=\"ui/actions/Tools/Build Structures/Cookie_Cutter.png\"><br> "\ "<b>Build Crystal</b> provides tools for cutting out multi-layered shapes from "\ "slabs of diamond or lonsdaleite lattice.</p>" win. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) # Tools > Extrude toolsExtrudeActionText = "<u><b>Extrude</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\"ui/actions/Insert/Features/Extrude.png\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" win. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) # Fuse Chunks Mode toolsFuseChunksActionText = "<u><b>Fuse Chunks Mode</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Fuse.png\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two fusing options are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints "\ "of two or more chunks. Bondpoints are highlighted and lines are drawn (and undrawn) as chunks "\ "are dragged to indicate bonding relationships between bondpoints. Bondpoints with "\ "multiple bonding relationships are highlighted in magenta to indicate that they cannot "\ "make bonds.<br><br>"\ "<b>Fuse Atoms</b> fuses pairs of overlapping atoms between chunks. The set of overlapping "\ "atoms in the selected chunk(s) are highlighted in green while the set of atoms that will be deleted "\ "in non-selected chunks are highlighted in dark red. It is possible that deleted atoms will not fuse "\ "properly, leaving bondpoints on the selected chunk(s) atoms. This is a bug. To help "\ "minimize this problem, try to get the bonds of overlapping atoms oriented similarly.<br>"\ "</p>" win.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) # # Simulator Toolbar # # Minimize Energy simMinimizeEnergyActionText = "<u><b>Minimize Energy</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Minimize_Energy.png\"><br> "\ "The potential energy of a chemical structure is a function of the relative positions of its atoms. " \ "To obtain this energy with complete accuracy involves a lot of computer time spent on quantum " \ "mechanical calculations, which cannot be practically done on a desktop computer. "\ "To get an approximate potential energy without all that, we represent the energy as a series of " \ "terms involving geometric properties of the structure: lengths of chemical bonds, angles between " \ "pairs and triples of chemical bonds, etc. </p>" \ "<p>" \ "As is generally the case with physical systems, the gradient of the potential energy represents " \ "the forces acting on various particles. The atoms want to move in the direction that most reduces " \ "the potential energy. Energy minimization is a process of adjusting the atom positions to try to find " \ "a global minimum of the potential energy. Each atom contributes three variables (its x, y, and z " \ "coordinates) so the search space is multi-dimensional. The global minimum is the configuration " \ "that the atoms will settle into if lowered to zero Kelvin. </p>" win. simMinimizeEnergyAction.setWhatsThis( simMinimizeEnergyActionText ) # Run Dynamics (was NanoDynamics-1). Mark 060807. simSetupActionText = "<u><b>Run Dynamics</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Run_Dynamics.png\"><br> "\ "This is the interface to the NanoEngineer-1 molecular dynamics simulator. "\ "Enter the parameters of the simulation and click <b>Run Simulation</b>."\ "The simulator creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model.</p>" win. simSetupAction.setWhatsThis( simSetupActionText ) # Play Movie (was Movie Player) Mark 060807. simMoviePlayerActionText = "<u><b>Play Movie</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Play_Movie.png\"><br> "\ "Plays the most recent trajectory (movie) file created by the NanoEngineer-1 molecular dynamics simulator."\ "To create a movie file, select <b>Run Dynamics</b>.</p>" win. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) # Make Graphs (was Plot Tool) Mark 060807. simPlotToolActionText = "<u><b>Make Graphs</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Make_Graphs.png\"><br> "\ "Make a graph of a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "<b>Measure Distance:</b> distance(angstroms)<br>"\ "<b>Measure Angle:</b> angle (degrees)<br>"\ "<b>Measure Dihedral:</b> dihedral(degrees)<br>"\ "</p>" win. simPlotToolAction.setWhatsThis( simPlotToolActionText ) # # Dashboard Buttons # # Done toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Done.png\"><br> "\ "Completes the current operation and enters the default mode."\ "</p>" win. toolsDoneAction.setWhatsThis( toolsDoneActionText ) # Cancel toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Cancel.png\"><br> "\ "Cancels the current operation and enters the default mode."\ "</p>" win. toolsCancelAction.setWhatsThis( toolsCancelActionText ) # Back up toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "Undoes the previous operation."\ "</p>" win. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) # Start Over toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" win.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) # Add Layers ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/addlayer.png\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" win.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) # # Jigs # # Anchor jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Anchor.png\"><br> "\ "Attaches an <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation."\ "</p>"\ "<p>To create an Anchor, enter <b>Build</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" win.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) # Rotary Motor jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Rotary_Motor.png\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor."\ "</p>"\ "<p>To create a Rotary Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsMotorAction.setWhatsThis(jigsMotorActionText ) # Linear Motor jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Linear_Motor.png\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor."\ "</p>"\ "<p>To create a Linear Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) # Thermostat jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Thermostat.png\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin)."\ "</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run."\ "</p>"\ "<p>To create a Langevin Thermostat, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom."\ "</p>" win.jigsStatAction.setWhatsThis(jigsStatActionText ) # Thermometer jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Thermometer.png\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run."\ "</p>"\ "<p>To create a Thermometer, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom."\ "</p>" win.jigsThermoAction.setWhatsThis(jigsThermoActionText ) # ESP Image jigsESPImageActionText = "<u><b>ESP Image</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/ESP_Image.png\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential."\ "</p>"\ "<p>To create an ESP Image, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" win.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) # Atom Set jigsAtomSetActionText = "<u><b>Atom Set</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Atom_Set.png\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later."\ "</p>"\ "<p>To create an Atom Set, enter <b>Build</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection."\ "</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" win.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) # Measure Distance jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Distance.png\"><br> "\ "A <b>Measure Distance Jig</b> functions as a dimension to display the "\ "distance between two atoms."\ "</p>"\ "<p>To create the Measure Distance Jig, enter <b>Build</b> mode, "\ "select two atoms and then select this jig. The Measure Distance Jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei."\ "</p>"\ "<p>The Measure Distance Jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) # Measure Angle jigsAngleActionText = "<u><b>Measure Angle Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Angle.png\"><br> "\ "A <b>Measure Angle Jig</b> functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle Jig, enter <b>Build</b> mode, "\ "select three atoms and then select this jig. The Measure Angle Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms."\ "</p>"\ "<p>The Measure Angle Jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsAngleAction.setWhatsThis(jigsAngleActionText ) # Measure Dihedral jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Dihedral.png\"><br> "\ "A <b>Measure Dihedral Jig</b> functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral Jig, enter <b>Build</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value."\ "</p>"\ "<p>The Measure Dihedral Jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) # GAMESS Jig jigsGamessActionText = "<u><b>GAMESS Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Gamess.png\"><br> "\ "A <b>GAMESS Jig</b> is used to tag a set of atoms for running a GAMESS "\ "calculation. <b>Energy</b> and <b>Geometry Optimization</b> calculations are supported."\ "</p>"\ "<p>To create the GAMESS Jig, enter <b>Build</b> mode, "\ "select the atoms to tag and then select this jig. The GAMESS Jig is drawn as a "\ "set of magenta wireframe boxes around each atom."\ "</p>" win.jigsGamessAction.setWhatsThis(jigsGamessActionText ) # Grid Plane Jig jigsGridPlaneActionText = "<u><b>Grid Plane</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Reference Geometry/Grid_Plane.png\"><br> "\ "A <b>Grid Plane</b> jig is a rectanglar plane that can display a square or SiC grid "\ "within its boundary. It is often used as an aid in constructing large lattice "\ "structures made of silicon carbide (SiC). It is also used as a visual aid in estimating "\ "distances between atoms and/or other structures."\ "</p>"\ "<p>To create the Grid Plane jig, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. "\ "</p>"\ "<p>The Grid Plane jig is drawn as a rectanglar plane with a grid."\ "</p>" win.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) # # Help Toolbar # # What's This helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"ui/actions/Help/WhatsThis.png\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" win.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) win.helpMouseControlsAction.setWhatsThis('Displays help for mouse controls') win.helpKeyboardShortcutsAction.setWhatsThis('Displays help for keyboard shortcuts') | 596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
471,
21374,
263,
225,
632,
891,
5657,
30,
12901,
21,
1807,
2774,
5668,
733,
18,
632,
723,
225,
5657,
30,
587,
95,
38,
95,
53,
6376,
3829,
97,
32,
2505,
2207,
2434,
18,
88,
2693,
28012,
18,
832,
19,
24,
19,
85,
5254,
5668,
18,
2620,
26114,
225,
632,
7652,
30,
4276,
490,
11113,
4800,
315,
23801,
1807,
1220,
6,
977,
364,
3675,
4953,
10965,
16,
11234,
316,
279,
707,
2566,
527,
67,
3350,
2323,
67,
2211,
67,
955,
9334,
486,
316,
333,
585,
18,
3536,
225,
468,
468,
1387,
13288,
3215,
468,
225,
468,
3502,
1387,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
34,
3678,
1387,
1757,
70,
4695,
89,
34,
565,
261,
12418,
397,
531,
13,
32,
2848,
34,
1548,
3532,
84,
4438,
6081,
1084,
5189,
4881,
19,
4905,
19,
812,
19,
3678,
18,
6446,
2412,
4438,
2848,
34,
1548,
315,
17778,
279,
394,
585,
1199,
64,
6823,
84,
2984,
225,
5657,
18,
768,
3678,
1803,
18,
542,
2888,
2323,
2503,
12,
585,
3678,
1528,
262,
468,
6164,
1387,
225,
585,
5010,
1528,
273,
3532,
89,
4438,
70,
34,
5010,
1387,
1757,
70,
4695,
89,
4438,
2848,
2984,
64,
315,
14214,
279,
585,
434,
1281,
19028,
1706,
585,
740,
3260,
635,
1548,
3532,
70,
34,
3678,
70,
873,
1757,
70,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
471,
21374,
263,
225,
632,
891,
5657,
30,
12901,
21,
1807,
2774,
5668,
733,
18,
632,
723,
225,
5657,
30,
587,
95,
38,
95,
53,
6376,
3829,
97,
32,
2505,
2207,
2434,
18,
88,
2693,
28012,
18,
832,
19,
24,
19,
85,
5254,
5668,
18,
2620,
26114,
225,
632,
7652,
30,
4276,
490,
11113,
4800,
315,
23801,
1807,
1220,
6,
977,
364,
3675,
4953,
10965,
16,
11234,
316,
279,
707,
2566,
527,
67,
3350,
2323,
67,
2211,
67,
955,
9334,
486,
316,
333,
585,
18,
2
] |
pat = sre.compile('a(?:b|(c|e){1,2}?|d)+?(.)') | pat = sre.compile(r'a(?:b|(c|e){1,2}?|d)+?(.)') | def bump_num(matchobj): int_value = int(matchobj.group(0)) return str(int_value + 1) | 8b3ad8b8937d0e43717e8c99bf18a17752f68db4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8b3ad8b8937d0e43717e8c99bf18a17752f68db4/test_sre.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23559,
67,
2107,
12,
1916,
2603,
4672,
509,
67,
1132,
273,
509,
12,
1916,
2603,
18,
1655,
12,
20,
3719,
327,
609,
12,
474,
67,
1132,
397,
404,
13,
225,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23559,
67,
2107,
12,
1916,
2603,
4672,
509,
67,
1132,
273,
509,
12,
1916,
2603,
18,
1655,
12,
20,
3719,
327,
609,
12,
474,
67,
1132,
397,
404,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
QToolTip.add(self.textLabel1_3_2,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) QWhatsThis.add(self.textLabel1_3_2,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) | def languageChange(self): self.setCaption(self.__tr("Preferences")) self.ok_btn.setText(self.__tr("OK")) self.groupBox7_2.setTitle(self.__tr("Compass and Axes")) self.display_compass_checkbox.setText(self.__tr("Display Compass")) self.display_origin_axis_checkbox.setText(self.__tr("Display Origin Axis")) self.display_pov_axis_checkbox.setText(self.__tr("Display Point of View Axis")) self.groupBox15.setTitle(self.__tr("Compass Position")) self.compass_position_btngrp.setTitle(QString.null) self.upper_left_btn.setText(QString.null) self.lower_left_btn.setText(QString.null) self.upper_right_btn.setText(QString.null) self.lower_right_btn.setText(QString.null) self.groupBox14.setTitle(self.__tr("Minimization")) self.watch_min_in_realtime_checkbox.setText(self.__tr("Watch In Realtime")) self.default_projection_btngrp.setTitle(self.__tr("Default Projection")) self.radioButton12.setText(self.__tr("Perspective")) self.radioButton13.setText(self.__tr("Orthographic")) self.selection_behavior_btngrp.setTitle(self.__tr("Selection Behavior")) self.alpha7_behavior_rbtn.setText(self.__tr("Non-standard")) self.alpha6_behavior_rbtn.setText(self.__tr("Standard")) self.groupBox8.setTitle(self.__tr("View Animation")) self.animate_views_checkbox.setText(self.__tr("Animate between views")) self.textLabel1_5.setText(self.__tr("Speed :")) self.textLabel2_3.setText(self.__tr("Slow")) self.textLabel3_4.setText(self.__tr("Fast")) self.high_quality_graphics_checkbox.setText(self.__tr("High quality graphics")) self.prefs_tab.changeTab(self.tab,self.__tr("General")) self.atom_colors_grpbox.setTitle(self.__tr("Colors")) self.change_element_colors_btn.setText(self.__tr("Change Element Colors...")) self.groupBox13.setTitle(QString.null) self.textLabel3_2_3.setText(self.__tr("Atom Highlighting :")) self.hotspot_lbl_2.setText(self.__tr("Bondpoint Highlighting :")) self.hotspot_lbl.setText(self.__tr("Bondpoint Hotspot :")) self.bondpoint_hilite_color_btn.setText(self.__tr("Choose...")) self.atom_hilite_color_btn.setText(self.__tr("Choose...")) self.hotspot_color_btn.setText(self.__tr("Choose...")) self.reset_atom_colors_btn.setText(self.__tr("Restore Default Colors")) self.textLabel1_3_2.setText(self.__tr("CPK Atom Radius :")) QToolTip.add(self.textLabel1_3_2,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) QWhatsThis.add(self.textLabel1_3_2,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) self.textLabel1_7.setText(self.__tr("Level of Detail :")) self.textLabel1_4.setText(self.__tr("%")) self.level_of_detail_combox.clear() self.level_of_detail_combox.insertItem(self.__tr("Low")) self.level_of_detail_combox.insertItem(self.__tr("Medium")) self.level_of_detail_combox.insertItem(self.__tr("High")) self.level_of_detail_combox.insertItem(self.__tr("Variable")) self.level_of_detail_combox.setCurrentItem(2) self.prefs_tab.changeTab(self.TabPage,self.__tr("Atoms")) self.groupBox4.setTitle(self.__tr("Colors")) self.bond_hilite_color_btn.setText(self.__tr("Choose...")) self.bond_cpk_color_btn.setText(self.__tr("Choose...")) self.bond_vane_color_btn.setText(self.__tr("Choose...")) self.textLabel3_2_2.setText(self.__tr("Bond Stretch :")) QToolTip.add(self.textLabel3_2_2,self.__tr("The gamess executable file. Usually it's called gamess.??.x or ??gamess.exe.")) self.textLabel3_2.setText(self.__tr("Bond Highlighting :")) self.textLabel3_3.setText(self.__tr("Vane/Ribbon :")) self.bond_stretch_color_btn.setText(self.__tr("Choose...")) self.textLabel3.setText(self.__tr("CPK Cylinder :")) self.reset_bond_colors_btn.setText(self.__tr("Restore Default Colors")) self.textLabel1_3.setText(self.__tr("CPK Cylinder Radius :")) QToolTip.add(self.textLabel1_3,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) QWhatsThis.add(self.textLabel1_3,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) self.textLabel1_2_2.setText(self.__tr("%")) self.textLabel1.setText(self.__tr("Bond Line Thickness :")) QToolTip.add(self.textLabel1,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) QWhatsThis.add(self.textLabel1,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) QToolTip.add(self.bond_line_thickness_spinbox,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) QWhatsThis.add(self.bond_line_thickness_spinbox,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) self.textLabel1_2.setText(self.__tr("pixels")) self.high_order_bond_display_btngrp.setTitle(self.__tr("High Order Bonds")) self.radioButton11.setText(self.__tr("Multiple Cylinders")) self.radioButton11_2.setText(self.__tr("Vanes")) self.radioButton11_2_2.setText(self.__tr("Ribbons")) self.show_bond_labels_checkbox.setText(self.__tr("Show Bond Type Letters")) self.show_valence_errors_checkbox.setText(self.__tr("Show Valence Errors")) self.prefs_tab.changeTab(self.TabPage_2,self.__tr("Bonds")) self.startup_mode_lbl.setText(self.__tr("Startup Mode :")) self.startup_mode_combox.clear() self.startup_mode_combox.insertItem(self.__tr("Default Mode")) self.startup_mode_combox.insertItem(self.__tr("Build")) self.default_mode_lbl.setText(self.__tr("Default Mode :")) self.default_mode_combox.clear() self.default_mode_combox.insertItem(self.__tr("Select Chunks")) self.default_mode_combox.insertItem(self.__tr("Select Atoms")) self.default_mode_combox.insertItem(self.__tr("Move Chunks")) self.default_mode_combox.insertItem(self.__tr("Build")) self.mode_groupbox.setTitle(self.__tr("Mode Settings")) self.mode_lbl.setText(self.__tr("Mode :")) self.display_mode_lbl.setText(self.__tr("Display Mode :")) self.mode_combox.clear() self.mode_combox.insertItem(self.__tr("Select Chunks")) self.mode_combox.insertItem(self.__tr("Select Atoms")) self.mode_combox.insertItem(self.__tr("Move Chunks")) self.mode_combox.insertItem(self.__tr("Build")) self.mode_combox.insertItem(self.__tr("Cookie Cutter")) self.mode_combox.insertItem(self.__tr("Extrude")) self.mode_combox.insertItem(self.__tr("Fuse Chunks")) self.mode_combox.insertItem(self.__tr("Movie Player")) self.display_mode_combox.clear() self.display_mode_combox.insertItem(self.__tr("Default")) self.display_mode_combox.insertItem(self.__tr("Invisible")) self.display_mode_combox.insertItem(self.__tr("VdW")) self.display_mode_combox.insertItem(self.__tr("Lines")) self.display_mode_combox.insertItem(self.__tr("CPK")) self.display_mode_combox.insertItem(self.__tr("Tubes")) self.bg_groupbox.setTitle(self.__tr("Background Color")) self.fill_type_lbl.setText(self.__tr("Fill Type :")) self.bg1_color_lbl.setText(self.__tr("Color :")) self.fill_type_combox.clear() self.fill_type_combox.insertItem(self.__tr("Solid")) self.fill_type_combox.insertItem(self.__tr("Blue Sky")) self.choose_bg1_color_btn.setText(self.__tr("Choose...")) self.restore_bgcolor_btn.setText(self.__tr("Restore Default Color")) self.default_display_btngrp.setTitle(self.__tr("Default Display Mode")) self.vwd_rbtn.setText(self.__tr("VdW")) self.cpk_rbtn.setText(self.__tr("CPK")) self.lines_rbtn.setText(self.__tr("Lines")) self.tubes_rbtn.setText(self.__tr("Tubes")) self.buildmode_groupbox.setTitle(self.__tr("Build Mode Defaults")) self.autobond_checkbox.setText(self.__tr("Autobond")) self.water_checkbox.setText(self.__tr("Water")) self.buildmode_highlighting_checkbox.setText(self.__tr("Highligting")) self.groupBox16.setTitle(self.__tr("Select Atoms Mode Defaults")) self.selatomsmode_highlighting_checkbox.setText(self.__tr("Highligting")) self.prefs_tab.changeTab(self.TabPage_3,self.__tr("Modes")) self.groupBox8_2.setTitle(self.__tr("Directional Light Properties")) self.light_label.setText(self.__tr("Light :")) self.on_label.setText(self.__tr("On :")) self.color_label.setText(self.__tr("Color :")) self.ambient_label.setText(self.__tr("Ambient :")) self.diffuse_label.setText(self.__tr("Diffuse :")) self.specularity_label.setText(self.__tr("Specular :")) self.x_label.setText(self.__tr("X :")) self.y_label.setText(self.__tr("Y :")) self.z_label.setText(self.__tr("Z :")) self.light_combobox.clear() self.light_combobox.insertItem(self.__tr("1 (On)")) self.light_combobox.insertItem(self.__tr("2 (On)")) self.light_combobox.insertItem(self.__tr("3 (Off)")) self.light_checkbox.setText(QString.null) self.light_color_btn.setText(self.__tr("Choose...")) self.lighting_restore_defaults_btn.setText(self.__tr("Restore Defaults")) self.groupBox9_2.setTitle(self.__tr("Material Specular Properties")) self.ms_on_label.setText(self.__tr("On :")) self.ms_finish_label.setText(self.__tr("Finish :")) self.ms_shininess_label.setText(self.__tr("Shininess :")) self.ms_brightness__label.setText(self.__tr("Brightness :")) self.ms_on_checkbox.setText(QString.null) self.textLabel1_6.setText(self.__tr("Metal")) self.textLabel2_4.setText(self.__tr("Plastic")) self.textLabel1_6_2.setText(self.__tr("Flat")) self.textLabel2_4_2.setText(self.__tr("Glossy")) self.textLabel1_6_3.setText(self.__tr("Low")) self.textLabel2_4_3.setText(self.__tr("High")) self.prefs_tab.changeTab(self.TabPage_4,self.__tr("Lighting")) self.file_locations_grp.setTitle(self.__tr("Location of Executables")) self.nanohive_path_linedit.setText(QString.null) self.gamess_path_linedit.setText(QString.null) self.nanohive_choose_btn.setText(self.__tr("Choose...")) self.gamess_choose_btn.setText(self.__tr("Choose...")) self.gamess_lbl.setText(self.__tr("GAMESS :")) QToolTip.add(self.gamess_lbl,self.__tr("The gamess executable file. Usually it's called gamess.??.x or ??gamess.exe.")) self.nanohive_lbl.setText(self.__tr("Nano-Hive :")) QToolTip.add(self.nanohive_lbl,self.__tr("The gamess executable file. Usually it's called gamess.??.x or ??gamess.exe.")) self.gamess_checkbox.setText(QString.null) self.nanohive_checkbox.setText(QString.null) self.prefs_tab.changeTab(self.TabPage_5,self.__tr("Plug-ins")) self.history_height_lbl.setText(self.__tr("Height :")) QToolTip.add(self.history_height_spinbox,self.__tr("Number of lines displayed in the history area.")) self.history_lines_lbl.setText(self.__tr("lines")) self.msg_serial_number_checkbox.setText(self.__tr("Include message serial number")) self.msg_timestamp_checkbox.setText(self.__tr("Include message timestamp")) self.prefs_tab.changeTab(self.TabPage_6,self.__tr("History")) self.groupBox3.setTitle(self.__tr("Window Caption Format")) QToolTip.add(self.groupBox3,self.__tr("Window Border Caption Format")) QWhatsThis.add(self.groupBox3,self.__tr("Format Prefix and Suffix text the delimits the part name in the caption in window border.")) self.textLabel2.setText(self.__tr("Caption Prefix for Modified File :")) self.textLabel2_2.setText(self.__tr("Caption Suffix for Modified File :")) self.caption_suffix_linedit.setText(QString.null) self.caption_fullpath_checkbox.setText(self.__tr("Display full path of part")) self.groupBox10.setTitle(self.__tr("Window Position and Size")) self.always_save_win_pos_and_size_checkbox.setText(self.__tr("Always save window position and size")) self.save_current_btn.setText(self.__tr("Save Current")) self.prefs_tab.changeTab(self.TabPage_7,self.__tr("Window")) | e8ed4e8f9c7327a927525490eeab1369d29a338e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e8ed4e8f9c7327a927525490eeab1369d29a338e/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2653,
3043,
12,
2890,
4672,
365,
18,
542,
21158,
12,
2890,
16186,
313,
2932,
12377,
6,
3719,
365,
18,
601,
67,
11898,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
3141,
6,
3719,
365,
18,
1655,
3514,
27,
67,
22,
18,
542,
4247,
12,
2890,
16186,
313,
2932,
2945,
428,
471,
22516,
281,
6,
3719,
365,
18,
5417,
67,
2919,
428,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
5427,
428,
6,
3719,
365,
18,
5417,
67,
10012,
67,
4890,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
18040,
15509,
6,
3719,
365,
18,
5417,
67,
84,
1527,
67,
4890,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
4686,
434,
4441,
15509,
6,
3719,
365,
18,
1655,
3514,
3600,
18,
542,
4247,
12,
2890,
16186,
313,
2932,
2945,
428,
11010,
6,
3719,
365,
18,
2919,
428,
67,
3276,
67,
11898,
17532,
18,
542,
4247,
12,
53,
780,
18,
2011,
13,
365,
18,
5797,
67,
4482,
67,
11898,
18,
542,
1528,
12,
53,
780,
18,
2011,
13,
365,
18,
8167,
67,
4482,
67,
11898,
18,
542,
1528,
12,
53,
780,
18,
2011,
13,
365,
18,
5797,
67,
4083,
67,
11898,
18,
542,
1528,
12,
53,
780,
18,
2011,
13,
365,
18,
8167,
67,
4083,
67,
11898,
18,
542,
1528,
12,
53,
780,
18,
2011,
13,
365,
18,
1655,
3514,
3461,
18,
542,
4247,
12,
2890,
16186,
313,
2932,
2930,
381,
1588,
6,
3719,
365,
18,
7585,
67,
1154,
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,
2653,
3043,
12,
2890,
4672,
365,
18,
542,
21158,
12,
2890,
16186,
313,
2932,
12377,
6,
3719,
365,
18,
601,
67,
11898,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
3141,
6,
3719,
365,
18,
1655,
3514,
27,
67,
22,
18,
542,
4247,
12,
2890,
16186,
313,
2932,
2945,
428,
471,
22516,
281,
6,
3719,
365,
18,
5417,
67,
2919,
428,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
5427,
428,
6,
3719,
365,
18,
5417,
67,
10012,
67,
4890,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
18040,
15509,
6,
3719,
365,
18,
5417,
67,
84,
1527,
67,
4890,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
4686,
2
] |
|
'*.ba', '*/.xvpic', '*.ori', | '*.bak', '*/.xvpics', '*.orig', | def notsymlink(pkg, f): files = pkg.files() enreg = files[f] mode = enreg[0] type = (mode>>12)&017 return type != 012 | 941b427d893985d9017f3e8d9e23d3c2d07a36df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10341/941b427d893985d9017f3e8d9e23d3c2d07a36df/CheckFilelist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
486,
21278,
12,
10657,
16,
284,
4672,
1390,
273,
3475,
18,
2354,
1435,
570,
1574,
273,
1390,
63,
74,
65,
1965,
273,
570,
1574,
63,
20,
65,
618,
273,
261,
3188,
9778,
2138,
13,
10,
1611,
27,
327,
618,
480,
374,
2138,
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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1652,
486,
21278,
12,
10657,
16,
284,
4672,
1390,
273,
3475,
18,
2354,
1435,
570,
1574,
273,
1390,
63,
74,
65,
1965,
273,
570,
1574,
63,
20,
65,
618,
273,
261,
3188,
9778,
2138,
13,
10,
1611,
27,
327,
618,
480,
374,
2138,
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
] |
self.stream.flush() | if self.stream: self.stream.flush() | def flush(self): """ Flushes the stream. """ self.stream.flush() | 4df367c08d042f2bc6b789d197c86cf4c13a15df /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/4df367c08d042f2bc6b789d197c86cf4c13a15df/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
12,
2890,
4672,
3536,
11624,
281,
326,
1407,
18,
3536,
365,
18,
3256,
18,
11330,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
12,
2890,
4672,
3536,
11624,
281,
326,
1407,
18,
3536,
365,
18,
3256,
18,
11330,
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
] |
aT.translateXBy_yBy_(xA + w -xP, -yP) | aT.translateXBy_yBy_(xA - xP, yA - yP) | def drawRectLeftToRight_(self, rect): self._alternateRects = {} # draw the background bounds = self.bounds() self._backgroundColor.set() NSRectFill(bounds) # create some reusable values scale = self._scale descender = self._descender upm = self._upm scaledBuffer = self._buffer * (1.0 / scale) # offset for the buffer ctx = NSGraphicsContext.currentContext() ctx.saveGraphicsState() aT = NSAffineTransform.transform() aT.translateXBy_yBy_(self._buffer, self._buffer) aT.concat() # offset for the descender aT = NSAffineTransform.transform() aT.scaleBy_(scale) aT.translateXBy_yBy_(0, descender) aT.concat() # flip flipTransform = NSAffineTransform.transform() flipTransform.translateXBy_yBy_(0, upm) flipTransform.scaleXBy_yBy_(1.0, -1.0) flipTransform.concat() # set the glyph color self._glyphColor.set() # draw the records left = self._buffer bottom = self._buffer height = upm * scale for recordIndex, glyphRecord in enumerate(self._glyphRecords): glyph = glyphRecord.glyph w = glyph.width xP = glyphRecord.xPlacement yP = glyphRecord.yPlacement xA = glyphRecord.xAdvance yA = glyphRecord.yAdvance path = glyph.getRepresentation("defconAppKit.NSBezierPath") # handle offsets from the record bottom += yP glyphHeight = height + yA glyphLeft = left + (xP * scale) glyphWidth = (w + xA) * scale # store the glyph rect for the alternate menu rect = ((glyphLeft, bottom), (glyphWidth, glyphHeight)) self._alternateRects[rect] = recordIndex # fill the glyph rect if glyph glyph is .notdef if glyph.name == ".notdef": self._notdefBackgroundColor.set() rect = ((0, descender), (w, upm)) NSRectFillUsingOperation(rect, NSCompositeSourceOver) self._glyphColor.set() # handle the placement offset if xP or yP: aT = NSAffineTransform.transform() aT.translateXBy_yBy_(xP, yP) aT.concat() # fill the path, highlighting alternates # if necessary if glyphRecord.alternates: self._alternateHighlightColor.set() path.fill() self._glyphColor.set() else: path.fill() # remove the y placement that was applied # and shift horizontally for the next glyph aT = NSAffineTransform.transform() aT.translateXBy_yBy_(xA + w -xP, -yP) aT.concat() left += (xA + w) * scale ctx.restoreGraphicsState() | 5a673ffbd30b8726db9034e60dcc25f5cfad6edf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8848/5a673ffbd30b8726db9034e60dcc25f5cfad6edf/glyphLineView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
6120,
3910,
774,
4726,
67,
12,
2890,
16,
4917,
4672,
365,
6315,
16025,
340,
6120,
87,
273,
2618,
468,
3724,
326,
5412,
4972,
273,
365,
18,
10576,
1435,
365,
6315,
9342,
2957,
18,
542,
1435,
11472,
6120,
8026,
12,
10576,
13,
468,
752,
2690,
283,
16665,
924,
3159,
273,
365,
6315,
5864,
3044,
2345,
273,
365,
6315,
5569,
2345,
731,
81,
273,
365,
6315,
416,
81,
12304,
1892,
273,
365,
6315,
4106,
380,
261,
21,
18,
20,
342,
3159,
13,
468,
1384,
364,
326,
1613,
1103,
273,
11472,
17558,
1042,
18,
2972,
1042,
1435,
1103,
18,
5688,
17558,
1119,
1435,
279,
56,
273,
423,
5233,
1403,
558,
4059,
18,
6547,
1435,
279,
56,
18,
13929,
60,
858,
67,
93,
858,
67,
12,
2890,
6315,
4106,
16,
365,
6315,
4106,
13,
279,
56,
18,
16426,
1435,
468,
1384,
364,
326,
3044,
2345,
279,
56,
273,
423,
5233,
1403,
558,
4059,
18,
6547,
1435,
279,
56,
18,
5864,
858,
67,
12,
5864,
13,
279,
56,
18,
13929,
60,
858,
67,
93,
858,
67,
12,
20,
16,
3044,
2345,
13,
279,
56,
18,
16426,
1435,
468,
9668,
9668,
4059,
273,
423,
5233,
1403,
558,
4059,
18,
6547,
1435,
9668,
4059,
18,
13929,
60,
858,
67,
93,
858,
67,
12,
20,
16,
731,
81,
13,
9668,
4059,
18,
5864,
60,
858,
67,
93,
858,
67,
12,
21,
18,
20,
16,
300,
21,
18,
20,
13,
9668,
4059,
18,
16426,
1435,
468,
444,
326,
9440,
2036,
365,
6315,
19426,
2957,
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,
3724,
6120,
3910,
774,
4726,
67,
12,
2890,
16,
4917,
4672,
365,
6315,
16025,
340,
6120,
87,
273,
2618,
468,
3724,
326,
5412,
4972,
273,
365,
18,
10576,
1435,
365,
6315,
9342,
2957,
18,
542,
1435,
11472,
6120,
8026,
12,
10576,
13,
468,
752,
2690,
283,
16665,
924,
3159,
273,
365,
6315,
5864,
3044,
2345,
273,
365,
6315,
5569,
2345,
731,
81,
273,
365,
6315,
416,
81,
12304,
1892,
273,
365,
6315,
4106,
380,
261,
21,
18,
20,
342,
3159,
13,
468,
1384,
364,
326,
1613,
1103,
273,
11472,
17558,
1042,
18,
2972,
1042,
1435,
1103,
18,
5688,
17558,
1119,
1435,
279,
56,
273,
423,
5233,
1403,
558,
4059,
18,
6547,
1435,
279,
56,
18,
13929,
60,
858,
2
] |
def parseCommandLine( script = False, ignoreErrors = False, initializeMonitor = True ): | def parseCommandLine( script = False, ignoreErrors = False, initializeMonitor = False ): | def parseCommandLine( script = False, ignoreErrors = False, initializeMonitor = True ): initialize( script, ignoreErrors, initializeMonitor, True ) | 40bca44e2115660292372a7187da69b208a4289b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/40bca44e2115660292372a7187da69b208a4289b/Script.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
21391,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
21391,
12,
2728,
273,
1083,
16,
2305,
4229,
273,
1083,
16,
4046,
7187,
273,
1083,
262,
30,
4046,
12,
2728,
16,
2305,
4229,
16,
4046,
7187,
16,
1053,
262,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result = [self.getPkgByKey(ob.pkgKey) for ob in cur.fetchall()] | result = [self.getPkgByKey(ob["pkgKey"]) for ob in cur.fetchall()] | def getPkgs(self): cur = self._primarydb.cursor() cur.execute('SELECT pkgKey FROM packages') result = [self.getPkgByKey(ob.pkgKey) for ob in cur.fetchall()] return filter(None, result) | 81bddd7eecda01eeb8ff729aefec978b2d68e47b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/81bddd7eecda01eeb8ff729aefec978b2d68e47b/sqliterepodb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
79,
564,
12,
2890,
4672,
662,
273,
365,
6315,
8258,
1966,
18,
9216,
1435,
662,
18,
8837,
2668,
4803,
3475,
653,
4571,
5907,
6134,
563,
273,
306,
2890,
18,
588,
11264,
14560,
12,
947,
9614,
10657,
653,
6,
5717,
364,
3768,
316,
662,
18,
5754,
454,
1435,
65,
327,
1034,
12,
7036,
16,
563,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
79,
564,
12,
2890,
4672,
662,
273,
365,
6315,
8258,
1966,
18,
9216,
1435,
662,
18,
8837,
2668,
4803,
3475,
653,
4571,
5907,
6134,
563,
273,
306,
2890,
18,
588,
11264,
14560,
12,
947,
9614,
10657,
653,
6,
5717,
364,
3768,
316,
662,
18,
5754,
454,
1435,
65,
327,
1034,
12,
7036,
16,
563,
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
] |
raise socket.error, err | raise socket.error, (err, errorcode[err]) | def connect(self, address): self.connected = False err = self.socket.connect_ex(address) # XXX Should interpret Winsock return values if err in (EINPROGRESS, EALREADY, EWOULDBLOCK): return if err in (0, EISCONN): self.addr = address self.connected = True self.handle_connect() else: raise socket.error, err | 174bdbc999e59363739b1127b0ced4fa8e25b3dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/174bdbc999e59363739b1127b0ced4fa8e25b3dc/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1758,
4672,
365,
18,
8537,
273,
1083,
393,
273,
365,
18,
7814,
18,
3612,
67,
338,
12,
2867,
13,
468,
11329,
9363,
10634,
678,
2679,
975,
327,
924,
309,
393,
316,
261,
41,
706,
24022,
16,
512,
1013,
20305,
16,
512,
59,
51,
1506,
2290,
6589,
4672,
327,
309,
393,
316,
261,
20,
16,
512,
5127,
27733,
4672,
365,
18,
4793,
273,
1758,
365,
18,
8537,
273,
1053,
365,
18,
4110,
67,
3612,
1435,
469,
30,
1002,
2987,
18,
1636,
16,
393,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1758,
4672,
365,
18,
8537,
273,
1083,
393,
273,
365,
18,
7814,
18,
3612,
67,
338,
12,
2867,
13,
468,
11329,
9363,
10634,
678,
2679,
975,
327,
924,
309,
393,
316,
261,
41,
706,
24022,
16,
512,
1013,
20305,
16,
512,
59,
51,
1506,
2290,
6589,
4672,
327,
309,
393,
316,
261,
20,
16,
512,
5127,
27733,
4672,
365,
18,
4793,
273,
1758,
365,
18,
8537,
273,
1053,
365,
18,
4110,
67,
3612,
1435,
469,
30,
1002,
2987,
18,
1636,
16,
393,
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
] |
print "WARNING: Missing CGs for InCell dataset: %r" % names | log.warn("Missing CGs for InCell dataset: %r" % names) | def parse_and_populate_roi(self, columns_as_list): # First sanity check our provided columns names = [column.name for column in columns_as_list] cells_expected = [name in names for name in self.CELLS_CG_EXPECTED] nuclei_expected = [name in names for name in self.NUCLEI_CG_EXPECTED] if (False in cells_expected) and (False in nuclei_expected): print "WARNING: Missing CGs for InCell dataset: %r" % names return # Reconstruct a column name to column map columns = dict() for column in columns_as_list: columns[column.name] = column image_ids = columns['Image'].values rois = list() # Save our file annotation to the database so we can use an unloaded # annotation for the saveAndReturnIds that will be triggered below. self.file_annotation = \ self.update_service.saveAndReturnObject(self.file_annotation) unloaded_file_annotation = \ FileAnnotationI(self.file_annotation.id.val, False) # Parse and append ROI batch_no = 1 batches = dict() for i, image_id in enumerate(image_ids): unloaded_image = ImageI(image_id, False) if False in nuclei_expected: # Cell centre of gravity roi = RoiI() shape = PointI() shape.theZ = rint(0) shape.theT = rint(0) shape.cx = rdouble(float(columns['Cell: cgX'].values[i])) shape.cy = rdouble(float(columns['Cell: cgY'].values[i])) roi.addShape(shape) roi.image = unloaded_image roi.linkAnnotation(unloaded_file_annotation) rois.append(roi) elif False in cells_expected: # Nucleus centre of gravity roi = RoiI() shape = PointI() shape.theZ = rint(0) shape.theT = rint(0) shape.cx = rdouble(float(columns['Nucleus: cgX'].values[i])) shape.cy = rdouble(float(columns['Nucleus: cgY'].values[i])) roi.addShape(shape) roi.image = unloaded_image roi.linkAnnotation(unloaded_file_annotation) rois.append(roi) else: raise MeasurementError('Not a nucleus or cell ROI') if len(rois) == self.ROI_UPDATE_LIMIT: thread_pool.add_task(self.update_rois, rois, batches, batch_no) rois = list() batch_no += 1 thread_pool.add_task(self.update_rois, rois, batches, batch_no) thread_pool.wait_completion() batch_keys = batches.keys() batch_keys.sort() for k in batch_keys: columns['ROI'].values += batches[k] | 2abc05f6ec4c7dd58ee9bb618f839a4be9554279 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/2abc05f6ec4c7dd58ee9bb618f839a4be9554279/populate_roi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
464,
67,
19936,
67,
303,
77,
12,
2890,
16,
2168,
67,
345,
67,
1098,
4672,
468,
5783,
16267,
866,
3134,
2112,
2168,
1257,
273,
306,
2827,
18,
529,
364,
1057,
316,
2168,
67,
345,
67,
1098,
65,
5983,
67,
3825,
273,
306,
529,
316,
1257,
364,
508,
316,
365,
18,
28746,
3045,
67,
20585,
67,
27409,
65,
9244,
2131,
77,
67,
3825,
273,
306,
529,
316,
1257,
364,
508,
316,
365,
18,
50,
17479,
900,
45,
67,
20585,
67,
27409,
65,
309,
261,
8381,
316,
5983,
67,
3825,
13,
471,
261,
8381,
316,
9244,
2131,
77,
67,
3825,
4672,
613,
18,
8935,
2932,
4841,
29679,
87,
364,
657,
4020,
3709,
30,
738,
86,
6,
738,
1257,
13,
327,
468,
868,
10062,
279,
1057,
508,
358,
1057,
852,
2168,
273,
2065,
1435,
364,
1057,
316,
2168,
67,
345,
67,
1098,
30,
2168,
63,
2827,
18,
529,
65,
273,
1057,
1316,
67,
2232,
273,
2168,
3292,
2040,
29489,
2372,
721,
291,
273,
666,
1435,
468,
7074,
3134,
585,
3204,
358,
326,
2063,
1427,
732,
848,
999,
392,
640,
4230,
468,
3204,
364,
326,
1923,
1876,
990,
2673,
716,
903,
506,
10861,
5712,
18,
365,
18,
768,
67,
11495,
273,
521,
365,
18,
2725,
67,
3278,
18,
5688,
1876,
990,
921,
12,
2890,
18,
768,
67,
11495,
13,
640,
4230,
67,
768,
67,
11495,
273,
521,
1387,
3257,
45,
12,
2890,
18,
768,
67,
11495,
18,
350,
18,
1125,
16,
1083,
13,
468,
2884,
471,
714,
6525,
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,
464,
67,
19936,
67,
303,
77,
12,
2890,
16,
2168,
67,
345,
67,
1098,
4672,
468,
5783,
16267,
866,
3134,
2112,
2168,
1257,
273,
306,
2827,
18,
529,
364,
1057,
316,
2168,
67,
345,
67,
1098,
65,
5983,
67,
3825,
273,
306,
529,
316,
1257,
364,
508,
316,
365,
18,
28746,
3045,
67,
20585,
67,
27409,
65,
9244,
2131,
77,
67,
3825,
273,
306,
529,
316,
1257,
364,
508,
316,
365,
18,
50,
17479,
900,
45,
67,
20585,
67,
27409,
65,
309,
261,
8381,
316,
5983,
67,
3825,
13,
471,
261,
8381,
316,
9244,
2131,
77,
67,
3825,
4672,
613,
18,
8935,
2932,
4841,
29679,
87,
364,
657,
4020,
3709,
30,
738,
86,
6,
738,
1257,
2
] |
labels = labels + ['']*i | labels = list(labels) + [''] * i | def makeSectors(self): # normalize slice data if type(self.data) in (ListType, TupleType) and type(self.data[0]) in (ListType, TupleType): #it's a nested list, more than one sequence normData = [] n = [] for l in self.data: t = self.normalizeData(l) normData.append(t) n.append(len(t)) else: normData = self.normalizeData(self.data) n = len(normData) | 9f7c4ede4ed7d8a83ed0d01bc510eacc6c4dec3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/9f7c4ede4ed7d8a83ed0d01bc510eacc6c4dec3c/doughnut.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
55,
18886,
12,
2890,
4672,
468,
3883,
2788,
501,
309,
618,
12,
2890,
18,
892,
13,
316,
261,
19366,
16,
7257,
559,
13,
471,
618,
12,
2890,
18,
892,
63,
20,
5717,
316,
261,
19366,
16,
7257,
559,
4672,
468,
305,
1807,
279,
4764,
666,
16,
1898,
2353,
1245,
3102,
4651,
751,
273,
5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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
55,
18886,
12,
2890,
4672,
468,
3883,
2788,
501,
309,
618,
12,
2890,
18,
892,
13,
316,
261,
19366,
16,
7257,
559,
13,
471,
618,
12,
2890,
18,
892,
63,
20,
5717,
316,
261,
19366,
16,
7257,
559,
4672,
468,
305,
1807,
279,
4764,
666,
16,
1898,
2353,
1245,
3102,
4651,
751,
273,
5378,
290,
273,
5378,
364,
328,
316,
365,
18,
892,
30,
268,
273,
365,
18,
12237,
751,
12,
80,
13,
4651,
751,
18,
6923,
12,
88,
13,
290,
18,
6923,
12,
1897,
12,
88,
3719,
469,
30,
4651,
751,
273,
365,
18,
12237,
751,
12,
2890,
18,
892,
13,
290,
273,
562,
12,
7959,
751,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rw = RequestWrapper( request ) | rw = RequestWrapper.getWrapper( request ) | def get_session (self, request): """Proxy method to SessionManager get_session. It converts the mod_python request objects in a SessionManager compatible one and executes the parent implementation passing the compatible object """ rw = RequestWrapper( request ) s = SessionManager.get_session( self, rw ) rw.setSession( s ) return s | d8fa029a75c47b3f2fa129c805e875f1188cb1ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/d8fa029a75c47b3f2fa129c805e875f1188cb1ad/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3184,
261,
2890,
16,
590,
4672,
3536,
3886,
707,
358,
3877,
1318,
336,
67,
3184,
18,
2597,
7759,
326,
681,
67,
8103,
590,
2184,
316,
279,
3877,
1318,
7318,
1245,
471,
11997,
326,
982,
4471,
9588,
326,
7318,
733,
3536,
225,
7985,
273,
1567,
3611,
18,
588,
3611,
12,
590,
262,
272,
273,
3877,
1318,
18,
588,
67,
3184,
12,
365,
16,
7985,
262,
7985,
18,
542,
2157,
12,
272,
262,
327,
272,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
67,
3184,
261,
2890,
16,
590,
4672,
3536,
3886,
707,
358,
3877,
1318,
336,
67,
3184,
18,
2597,
7759,
326,
681,
67,
8103,
590,
2184,
316,
279,
3877,
1318,
7318,
1245,
471,
11997,
326,
982,
4471,
9588,
326,
7318,
733,
3536,
225,
7985,
273,
1567,
3611,
18,
588,
3611,
12,
590,
262,
272,
273,
3877,
1318,
18,
588,
67,
3184,
12,
365,
16,
7985,
262,
7985,
18,
542,
2157,
12,
272,
262,
327,
272,
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
] |
def random_element(self, degree, bound=0): | def random_element(self, degree, *args, **kwds): | def random_element(self, degree, bound=0): """ Return a random polynomial. INPUT: degree -- an integer bound -- an integer (default: 0, which tries to spread choice across ring, if implemented) | d7f871f90f66b73e2cff7bbfc8466421a9efed47 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d7f871f90f66b73e2cff7bbfc8466421a9efed47/polynomial_ring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2744,
67,
2956,
12,
2890,
16,
10782,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
2000,
279,
2744,
16991,
18,
225,
12943,
30,
10782,
1493,
392,
3571,
2489,
1493,
392,
3571,
261,
1886,
30,
374,
16,
1492,
9327,
358,
15103,
6023,
10279,
9221,
16,
309,
8249,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2744,
67,
2956,
12,
2890,
16,
10782,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
2000,
279,
2744,
16991,
18,
225,
12943,
30,
10782,
1493,
392,
3571,
2489,
1493,
392,
3571,
261,
1886,
30,
374,
16,
1492,
9327,
358,
15103,
6023,
10279,
9221,
16,
309,
8249,
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
] |
if self.topic_class == 'contents': self.body.append('\n') else: self.body.append('\n') | self.body.append('\n') | def depart_paragraph(self, node): if self.topic_class == 'contents': self.body.append('\n') else: self.body.append('\n') | 3449eb547b826ebeae4cc2d414ffd515229b5a2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/3449eb547b826ebeae4cc2d414ffd515229b5a2e/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
22445,
12,
2890,
16,
756,
4672,
309,
365,
18,
10476,
67,
1106,
422,
296,
3980,
4278,
365,
18,
3432,
18,
6923,
2668,
64,
82,
6134,
469,
30,
365,
18,
3432,
18,
6923,
2668,
64,
82,
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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18,
3432,
18,
6923,
2668,
64,
82,
6134,
469,
30,
365,
18,
3432,
18,
6923,
2668,
64,
82,
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
] |
author_email='[email protected]', | author_email='[email protected]', | def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | 23f3c871985c0d344d6567fd0c29e668fbe72d21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9823/23f3c871985c0d344d6567fd0c29e668fbe72d21/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
l = "%s\000%s%s\n" % (f, hex(map[f]), flags[f] and "x" or '') | l = "%s\000%s%s\n" % (f, hex(map[f]), flags[f] and "x" or '') | def calcoffsets(addlist): offsets = [0] * (len(addlist) + 1) offset = 0 i = 0 while i < len(addlist): offsets[i] = offset offset += len(addlist[i]) i += 1 offsets[i] = offset return offsets | b74c369a3cda5e3af5f3e7663c06b715452bf139 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/b74c369a3cda5e3af5f3e7663c06b715452bf139/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
16542,
12,
1289,
1098,
4672,
8738,
273,
306,
20,
65,
380,
261,
1897,
12,
1289,
1098,
13,
397,
404,
13,
1384,
273,
374,
277,
273,
374,
1323,
277,
411,
562,
12,
1289,
1098,
4672,
8738,
63,
77,
65,
273,
1384,
1384,
1011,
562,
12,
1289,
1098,
63,
77,
5717,
277,
1011,
404,
8738,
63,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
16542,
12,
1289,
1098,
4672,
8738,
273,
306,
20,
65,
380,
261,
1897,
12,
1289,
1098,
13,
397,
404,
13,
1384,
273,
374,
277,
273,
374,
1323,
277,
411,
562,
12,
1289,
1098,
4672,
8738,
63,
77,
65,
273,
1384,
1384,
1011,
562,
12,
1289,
1098,
63,
77,
5717,
277,
1011,
404,
8738,
63,
77,
65,
273,
1384,
327,
8738,
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
] |
if not multiline: vstr = vstr.replace('\n', '') vstr = vstr.replace(' ', ' ') vstr = vstr.replace('<span ', '<span ') vstr = self._linewrap_html(vstr, summary_linelen, 1) return '<code>%s</code>\n' % vstr | def pprint_pyval(self, pyval, multiline=True, summary_linelen=0): # Handle the most common cases first. The following types # will never need any line wrapping, etc; and they cover most # variable values (esp int, for constants). I leave out # LongType on purpose, since long values may need line- # wrapping. if (type(pyval) is types.IntType or type(pyval) is types.FloatType or type(pyval) is types.NoneType or type(pyval) is types.ComplexType): # none of these should contain '&', '<' or '>'. vstr = repr(pyval) return vstr + ' ' * (self._variable_linelen-len(vstr)) | 5c410b5b6e25df3bdbc6da266f7773518165cb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5c410b5b6e25df3bdbc6da266f7773518165cb02/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
468,
903,
5903,
1608,
1281,
980,
14702,
16,
5527,
31,
471,
2898,
5590,
4486,
468,
2190,
924,
261,
281,
84,
509,
16,
364,
6810,
2934,
225,
467,
8851,
596,
468,
3407,
559,
603,
13115,
16,
3241,
1525,
924,
2026,
1608,
980,
17,
468,
14702,
18,
309,
261,
723,
12,
2074,
1125,
13,
353,
1953,
18,
1702,
559,
578,
618,
12,
2074,
1125,
13,
353,
1953,
18,
4723,
559,
578,
618,
12,
2074,
1125,
13,
353,
1953,
18,
7036,
559,
578,
618,
12,
2074,
1125,
13,
353,
1953,
18,
12795,
559,
4672,
468,
6555,
434,
4259,
1410,
912,
5183,
2187,
9138,
578,
7481,
18,
331,
701,
273,
8480,
12,
2074,
1125,
13,
327,
331,
701,
397,
5183,
10600,
4359,
380,
261,
2890,
6315,
6105,
67,
7511,
292,
275,
17,
1897,
12,
90,
701,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
468,
903,
5903,
1608,
1281,
980,
14702,
16,
5527,
31,
471,
2898,
5590,
4486,
468,
2190,
924,
261,
281,
84,
509,
16,
364,
6810,
2934,
225,
467,
8851,
596,
468,
3407,
559,
603,
13115,
16,
3241,
1525,
924,
2026,
1608,
980,
17,
468,
14702,
18,
309,
261,
723,
12,
2074,
1125,
13,
353,
1953,
18,
1702,
559,
578,
618,
12,
2074,
1125,
13,
353,
1953,
18,
4723,
559,
578,
618,
12,
2074,
1125,
13,
353,
1953,
18,
7036,
559,
578,
618,
12,
2074,
1125,
2
] |
|
tstart = coinc_ringdown.get_start() | def append_coinc(self, process_id, time_slide_id, coinc_def_id, events): # # populate the coinc_event and coinc_event_map tables # | 33c375988e5fbb955cb57c83b181ddc3e9420c4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/33c375988e5fbb955cb57c83b181ddc3e9420c4e/ligolw_rinca.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
12645,
71,
12,
2890,
16,
1207,
67,
350,
16,
813,
67,
26371,
67,
350,
16,
13170,
71,
67,
536,
67,
350,
16,
2641,
4672,
468,
468,
6490,
326,
13170,
71,
67,
2575,
471,
13170,
71,
67,
2575,
67,
1458,
4606,
468,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
2641,
4672,
468,
468,
6490,
326,
13170,
71,
67,
2575,
471,
13170,
71,
67,
2575,
67,
1458,
4606,
468,
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
] |
|
wkf.setAttribute("model", rec[1][3]) wkf.setAttribute("action", rec[1][4]) | wkf.setAttribute("model", rec[1][2]) wkf.setAttribute("action", rec[1][3]) | def generate_xml(self, cr, uid): # Create the minidom document if len(self.recording_data): self.ids = {} doc = minidom.Document() terp = doc.createElement("openerp") doc.appendChild(terp) for rec in self.recording_data: if rec[0]=='workflow': rec_id,noupdate = self._get_id(cr, uid, rec[1][2], rec[1][4]) if not rec_id: continue data = doc.createElement("data") terp.appendChild(data) wkf = doc.createElement('workflow') data.appendChild(wkf) wkf.setAttribute("model", rec[1][3]) wkf.setAttribute("action", rec[1][4]) if noupdate: data.setAttribute("noupdate", "1") wkf.setAttribute("ref", rec_id) if rec[0]=='query': res_list,noupdate = self._generate_object_xml(cr, uid, rec[1], rec[2], doc, rec[3]) data = doc.createElement("data") if noupdate: data.setAttribute("noupdate", "1") if res_list: terp.appendChild(data) for res in res_list: data.appendChild(res) elif rec[0]=='assert': pass return doc.toprettyxml(indent="\t").encode('utf-8') | e1eeb3549e1229078548489f2c70b6d1d2967d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e1eeb3549e1229078548489f2c70b6d1d2967d9d/base_module_record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2902,
12,
2890,
16,
4422,
16,
4555,
4672,
468,
1788,
326,
1131,
350,
362,
1668,
309,
562,
12,
2890,
18,
3366,
310,
67,
892,
4672,
365,
18,
2232,
273,
2618,
997,
273,
1131,
350,
362,
18,
2519,
1435,
19272,
84,
273,
997,
18,
2640,
1046,
2932,
25098,
84,
7923,
997,
18,
6923,
1763,
12,
387,
84,
13,
364,
1950,
316,
365,
18,
3366,
310,
67,
892,
30,
309,
1950,
63,
20,
65,
18920,
13815,
4278,
1950,
67,
350,
16,
2135,
2725,
273,
365,
6315,
588,
67,
350,
12,
3353,
16,
4555,
16,
1950,
63,
21,
6362,
22,
6487,
1950,
63,
21,
6362,
24,
5717,
309,
486,
1950,
67,
350,
30,
1324,
501,
273,
997,
18,
2640,
1046,
2932,
892,
7923,
19272,
84,
18,
6923,
1763,
12,
892,
13,
26987,
74,
273,
997,
18,
2640,
1046,
2668,
13815,
6134,
501,
18,
6923,
1763,
12,
17736,
74,
13,
26987,
74,
18,
542,
1499,
2932,
2284,
3113,
1950,
63,
21,
6362,
22,
5717,
26987,
74,
18,
542,
1499,
2932,
1128,
3113,
1950,
63,
21,
6362,
23,
5717,
309,
1158,
2725,
30,
501,
18,
542,
1499,
2932,
2135,
2725,
3113,
315,
21,
7923,
26987,
74,
18,
542,
1499,
2932,
1734,
3113,
1950,
67,
350,
13,
309,
1950,
63,
20,
65,
18920,
2271,
4278,
400,
67,
1098,
16,
2135,
2725,
273,
365,
6315,
7163,
67,
1612,
67,
2902,
12,
3353,
16,
4555,
16,
1950,
63,
21,
6487,
1950,
63,
22,
6487,
997,
16,
1950,
63,
23,
5717,
501,
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,
2103,
67,
2902,
12,
2890,
16,
4422,
16,
4555,
4672,
468,
1788,
326,
1131,
350,
362,
1668,
309,
562,
12,
2890,
18,
3366,
310,
67,
892,
4672,
365,
18,
2232,
273,
2618,
997,
273,
1131,
350,
362,
18,
2519,
1435,
19272,
84,
273,
997,
18,
2640,
1046,
2932,
25098,
84,
7923,
997,
18,
6923,
1763,
12,
387,
84,
13,
364,
1950,
316,
365,
18,
3366,
310,
67,
892,
30,
309,
1950,
63,
20,
65,
18920,
13815,
4278,
1950,
67,
350,
16,
2135,
2725,
273,
365,
6315,
588,
67,
350,
12,
3353,
16,
4555,
16,
1950,
63,
21,
6362,
22,
6487,
1950,
63,
21,
6362,
24,
5717,
309,
486,
1950,
67,
350,
30,
1324,
501,
273,
997,
18,
2640,
2
] |
self.assert_(msg.get_sequences() == ['unseen', 'flagged']) | self.assertEqual(msg.get_sequences(), ['unseen', 'flagged']) | def test_sequences(self): # Get, set, join, and leave sequences msg = mailbox.MHMessage(_sample_message) self.assertEqual(msg.get_sequences(), []) msg.set_sequences(['foobar']) self.assertEqual(msg.get_sequences(), ['foobar']) msg.set_sequences([]) self.assertEqual(msg.get_sequences(), []) msg.add_sequence('unseen') self.assertEqual(msg.get_sequences(), ['unseen']) msg.add_sequence('flagged') self.assert_(msg.get_sequences() == ['unseen', 'flagged']) msg.add_sequence('flagged') self.assert_(msg.get_sequences() == ['unseen', 'flagged']) msg.remove_sequence('unseen') self.assertEqual(msg.get_sequences(), ['flagged']) msg.add_sequence('foobar') self.assert_(msg.get_sequences() == ['flagged', 'foobar']) msg.remove_sequence('replied') self.assert_(msg.get_sequences() == ['flagged', 'foobar']) msg.set_sequences(['foobar', 'replied']) self.assert_(msg.get_sequences() == ['foobar', 'replied']) | 9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
5378,
13,
1234,
18,
542,
67,
17190,
12,
3292,
617,
947,
297,
19486,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
617,
947,
297,
19486,
1234,
18,
542,
67,
17190,
3816,
5717,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
5378,
13,
1234,
18,
1289,
67,
6178,
2668,
318,
15156,
6134,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
318,
15156,
19486,
1234,
18,
1289,
67,
6178,
2668,
6420,
2423,
6134,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
318,
15156,
2187,
296,
6420,
2423,
19486,
1234,
18,
1289,
67,
6178,
2668,
6420,
2423,
6134,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
318,
15156,
2187,
296,
6420,
2423,
19486,
1234,
18,
4479,
67,
6178,
2668,
318,
15156,
6134,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
6420,
2423,
19486,
1234,
18,
1289,
67,
6178,
2668,
617,
947,
297,
6134,
365,
18,
11231,
67,
12,
3576,
18,
588,
67,
17190,
1435,
422,
10228,
6420,
2423,
2187,
296,
617,
947,
297,
19486,
1234,
18,
4479,
67,
6178,
2668,
266,
3110,
6134,
365,
18,
11231,
67,
12,
3576,
18,
588,
67,
17190,
1435,
422,
10228,
6420,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
5378,
13,
1234,
18,
542,
67,
17190,
12,
3292,
617,
947,
297,
19486,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
617,
947,
297,
19486,
1234,
18,
542,
67,
17190,
3816,
5717,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
5378,
13,
1234,
18,
1289,
67,
6178,
2668,
318,
15156,
6134,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
318,
15156,
19486,
1234,
18,
1289,
67,
6178,
2668,
2
] |
if isinstance(dtypechars, basestring) and len(dtypechars) > 1: dtypechars = list(dtypechars) if isinstance(dtypechars, (list,tuple)): if len(dtypechars) != ncols: raise ValueError("When specifying the number of columns, you may either specify a single dtypechar or a list with that many entries.") elif dtypechars is None: | if isinstance(typecodes, basestring) and len(typecodes) > 1: typecodes = list(typecodes) if isinstance(typecodes, (list,tuple)): if len(typecodes) != ncols: raise ValueError("When specifying the number of columns, you may either specify a single typecode or a list with that many entries.") elif typecodes is None: | def __init__(self, data=None, ncols=0, nrows=0, dtypechars=None): """ | d323a0e51c5bfbfe6a5d20c4a492829533562316 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2510/d323a0e51c5bf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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
33,
7036,
16,
21330,
33,
20,
16,
18871,
33,
20,
16,
3182,
7549,
33,
7036,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def sr(x,filter=None, *args,**kargs): | s.close() def sr(x,filter=None, iface=None, *args,**kargs): | def sendp(x, inter=0, *args, **kargs): """Send packets at layer 2""" if not isinstance(x, Gen): x = SetGen(x) s=conf.L2socket(*args, **kargs) for p in x: s.send(p) time.sleep(inter) | 4ab0830431443d93b512facc592cad2f9ac6ca25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/4ab0830431443d93b512facc592cad2f9ac6ca25/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
84,
12,
92,
16,
1554,
33,
20,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
3536,
3826,
12640,
622,
3018,
576,
8395,
309,
486,
1549,
12,
92,
16,
10938,
4672,
619,
273,
1000,
7642,
12,
92,
13,
272,
33,
3923,
18,
48,
22,
7814,
30857,
1968,
16,
2826,
79,
1968,
13,
364,
293,
316,
619,
30,
272,
18,
4661,
12,
84,
13,
813,
18,
19607,
12,
2761,
13,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
84,
12,
92,
16,
1554,
33,
20,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
3536,
3826,
12640,
622,
3018,
576,
8395,
309,
486,
1549,
12,
92,
16,
10938,
4672,
619,
273,
1000,
7642,
12,
92,
13,
272,
33,
3923,
18,
48,
22,
7814,
30857,
1968,
16,
2826,
79,
1968,
13,
364,
293,
316,
619,
30,
272,
18,
4661,
12,
84,
13,
813,
18,
19607,
12,
2761,
13,
565,
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
] |
deltah=0 deltas=0 | deltah = 0 deltas = 0 | def tercorr(stri): deltah=0 deltas=0 if rna==0: #DNA/DNA #Allawi and SantaLucia (1997). Biochemistry 36 : 10581-10594 if stri.startswith('G') or stri.startswith('C'): deltah=deltah-0.1 deltas=deltas+2.8 elif stri.startswith('A') or stri.startswith('T'): deltah=deltah-2.3 deltas=deltas-4.1 if stri.endswith('G') or stri.endswith('C'): deltah=deltah-0.1 deltas=deltas+2.8 elif stri.endswith('A') or stri.endswith('T'): deltah=deltah-2.3 deltas=deltas-4.1 dhL=dh+deltah dsL=ds+deltas return dsL,dhL elif rna==1: #RNA if stri.startswith('G') or stri.startswith('C'): deltah=deltah-3.61 deltas=deltas-1.5 elif stri.startswith('A') or stri.startswith('T') or \ stri.startswith('U'): deltah=deltah-3.72 deltas=deltas+10.5 if stri.endswith('G') or stri.endswith('C'): deltah=deltah-3.61 deltas=deltas-1.5 elif stri.endswith('A') or stri.endswith('T') or \ stri.endswith('U'): deltah=deltah-3.72 deltas=deltas+10.5 dhL=dh+deltah dsL=ds+deltas # print "delta h=",dhL return dsL,dhL | 9d20501f87a48e7d08b8c8ab193dd1ec8b75d714 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/9d20501f87a48e7d08b8c8ab193dd1ec8b75d714/MeltingTemp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19272,
17515,
12,
701,
77,
4672,
3622,
76,
273,
374,
20113,
273,
374,
309,
436,
6582,
631,
20,
30,
468,
8609,
37,
19,
8609,
37,
468,
1595,
2219,
77,
471,
348,
27677,
48,
5286,
1155,
261,
19818,
27,
2934,
21209,
1036,
2128,
6580,
294,
1728,
8204,
21,
17,
2163,
6162,
24,
309,
609,
77,
18,
17514,
1918,
2668,
43,
6134,
578,
609,
77,
18,
17514,
1918,
2668,
39,
11,
4672,
3622,
76,
33,
9878,
76,
17,
20,
18,
21,
20113,
33,
3771,
9158,
15,
22,
18,
28,
1327,
609,
77,
18,
17514,
1918,
2668,
37,
6134,
578,
609,
77,
18,
17514,
1918,
2668,
56,
11,
4672,
3622,
76,
33,
9878,
76,
17,
22,
18,
23,
20113,
33,
3771,
9158,
17,
24,
18,
21,
309,
609,
77,
18,
5839,
1918,
2668,
43,
6134,
578,
609,
77,
18,
5839,
1918,
2668,
39,
11,
4672,
3622,
76,
33,
9878,
76,
17,
20,
18,
21,
20113,
33,
3771,
9158,
15,
22,
18,
28,
1327,
609,
77,
18,
5839,
1918,
2668,
37,
6134,
578,
609,
77,
18,
5839,
1918,
2668,
56,
11,
4672,
3622,
76,
33,
9878,
76,
17,
22,
18,
23,
20113,
33,
3771,
9158,
17,
24,
18,
21,
11007,
48,
33,
19153,
15,
9878,
76,
3780,
48,
33,
2377,
15,
3771,
9158,
327,
3780,
48,
16,
19153,
48,
1327,
436,
6582,
631,
21,
30,
468,
29712,
309,
609,
77,
18,
17514,
1918,
2668,
43,
6134,
578,
609,
77,
18,
17514,
1918,
2668,
39,
11,
4672,
3622,
76,
33,
9878,
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,
19272,
17515,
12,
701,
77,
4672,
3622,
76,
273,
374,
20113,
273,
374,
309,
436,
6582,
631,
20,
30,
468,
8609,
37,
19,
8609,
37,
468,
1595,
2219,
77,
471,
348,
27677,
48,
5286,
1155,
261,
19818,
27,
2934,
21209,
1036,
2128,
6580,
294,
1728,
8204,
21,
17,
2163,
6162,
24,
309,
609,
77,
18,
17514,
1918,
2668,
43,
6134,
578,
609,
77,
18,
17514,
1918,
2668,
39,
11,
4672,
3622,
76,
33,
9878,
76,
17,
20,
18,
21,
20113,
33,
3771,
9158,
15,
22,
18,
28,
1327,
609,
77,
18,
17514,
1918,
2668,
37,
6134,
578,
609,
77,
18,
17514,
1918,
2668,
56,
11,
4672,
3622,
76,
33,
9878,
76,
17,
22,
18,
23,
20113,
33,
3771,
2
] |
graphicx_package(), | self.graphicx_package, | def graphicx_package(): if self.settings.graphicx_option == '': return '\\usepackage{graphicx}\n' if self.settings.graphicx_option.lower() == 'auto': return '\n'.join(('%Check if we are compiling under latex or pdflatex', '\\ifx\\pdftexversion\\undefined', ' \\usepackage{graphicx}', '\\else', ' \\usepackage[pdftex]{graphicx}', '\\fi\n')) | 4daf8b3a78815c52f613b59c0ef88a151573a1db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/4daf8b3a78815c52f613b59c0ef88a151573a1db/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19548,
92,
67,
5610,
13332,
309,
365,
18,
4272,
18,
4660,
335,
92,
67,
3482,
422,
875,
30,
327,
3718,
1202,
5610,
95,
4660,
335,
92,
6280,
82,
11,
309,
365,
18,
4272,
18,
4660,
335,
92,
67,
3482,
18,
8167,
1435,
422,
296,
6079,
4278,
327,
2337,
82,
10332,
5701,
12,
29909,
1564,
309,
732,
854,
1161,
4973,
3613,
25079,
578,
8169,
26264,
2187,
3718,
430,
92,
1695,
22353,
1222,
338,
1589,
1695,
5978,
2187,
296,
225,
1736,
1202,
5610,
95,
4660,
335,
92,
24259,
3718,
12107,
2187,
296,
225,
1736,
1202,
5610,
63,
22353,
1222,
338,
7073,
4660,
335,
92,
24259,
3718,
22056,
64,
82,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19548,
92,
67,
5610,
13332,
309,
365,
18,
4272,
18,
4660,
335,
92,
67,
3482,
422,
875,
30,
327,
3718,
1202,
5610,
95,
4660,
335,
92,
6280,
82,
11,
309,
365,
18,
4272,
18,
4660,
335,
92,
67,
3482,
18,
8167,
1435,
422,
296,
6079,
4278,
327,
2337,
82,
10332,
5701,
12,
29909,
1564,
309,
732,
854,
1161,
4973,
3613,
25079,
578,
8169,
26264,
2187,
3718,
430,
92,
1695,
22353,
1222,
338,
1589,
1695,
5978,
2187,
296,
225,
1736,
1202,
5610,
95,
4660,
335,
92,
24259,
3718,
12107,
2187,
296,
225,
1736,
1202,
5610,
63,
22353,
1222,
338,
7073,
4660,
335,
92,
24259,
3718,
22056,
64,
82,
26112,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
SOCol.__init__(self, **kw) | super(SOTimeCol, self).__init__(**kw) | def __init__(self, **kw): timeFormat = popKey(kw, 'timeFormat') if timeFormat: self.timeFormat = timeFormat SOCol.__init__(self, **kw) | 629bd9cef417a9b39081bf7b5542b86ae165b282 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/629bd9cef417a9b39081bf7b5542b86ae165b282/col.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
9987,
4672,
813,
1630,
273,
1843,
653,
12,
9987,
16,
296,
957,
1630,
6134,
309,
813,
1630,
30,
365,
18,
957,
1630,
273,
813,
1630,
7460,
914,
16186,
2738,
972,
12,
2890,
16,
2826,
9987,
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,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813,
1630,
273,
1843,
653,
12,
9987,
16,
296,
957,
1630,
6134,
309,
813,
1630,
30,
365,
18,
957,
1630,
273,
813,
1630,
7460,
914,
16186,
2738,
972,
12,
2890,
16,
2826,
9987,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return TransferClient(self.serviceName) | return TransferClient( self.serviceName ) | def __getTransferClient(self): if self.transferClient: return self.transferClient return TransferClient(self.serviceName) | b29a492313d58334c8d949840590cb63407c88cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b29a492313d58334c8d949840590cb63407c88cf/PlottingClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
5912,
1227,
12,
2890,
4672,
309,
365,
18,
13866,
1227,
30,
327,
365,
18,
13866,
1227,
327,
12279,
1227,
12,
2890,
18,
15423,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
5912,
1227,
12,
2890,
4672,
309,
365,
18,
13866,
1227,
30,
327,
365,
18,
13866,
1227,
327,
12279,
1227,
12,
2890,
18,
15423,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for importer, modname, ispkg in pkgutil.walk_packages(): | for importer, modname, ispkg in pkgutil.walk_packages(onerror=onerror): | def run(self, callback, key=None, completer=None): if key: key = lower(key) self.quit = False seen = {} | cebb32cb13858a32375665c6bff36f42326b1da8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/cebb32cb13858a32375665c6bff36f42326b1da8/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1348,
16,
498,
33,
7036,
16,
31848,
33,
7036,
4672,
309,
498,
30,
498,
273,
2612,
12,
856,
13,
365,
18,
27176,
273,
1083,
5881,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1348,
16,
498,
33,
7036,
16,
31848,
33,
7036,
4672,
309,
498,
30,
498,
273,
2612,
12,
856,
13,
365,
18,
27176,
273,
1083,
5881,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.sync_container.set_size_request(500, -1) | def __init__(self): self.device = None widgetset.VBox.__init__(self) | 6dec0ec820a8a878afc3f0ba6bbe4bd7e7e41050 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/6dec0ec820a8a878afc3f0ba6bbe4bd7e7e41050/devicecontroller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
5964,
273,
599,
3604,
542,
18,
58,
3514,
16186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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
5964,
273,
599,
3604,
542,
18,
58,
3514,
16186,
2738,
972,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
EXAMPLES: | EXAMPLES:: | def strip_string_literals(code, state=None): r""" Returns a string with all literal quotes replaced with labels and a dict of labels for re-subsitution. This makes parsing much easier. EXAMPLES: sage: from sage.misc.preparser import strip_string_literals sage: s, literals, state = strip_string_literals(r'''['a', "b", 'c', "d\""]''') sage: s '[%(L1)s, %(L2)s, %(L3)s, %(L4)s]' sage: literals {'L4': '"d\\""', 'L2': '"b"', 'L3': "'c'", 'L1': "'a'"} sage: print s % literals ['a', "b", 'c', "d\""] sage: print strip_string_literals(r'-"\\\""-"\\"-')[0] -%(L1)s-%(L2)s- Triple-quotes are handled as well. sage: s, literals, state = strip_string_literals("[a, '''b''', c, '']") sage: s '[a, %(L1)s, c, %(L2)s]' sage: print s % literals [a, '''b''', c, ''] Comments are subsituted too: sage: s, literals, state = strip_string_literals("code '#' # ccc 't'"); s 'code %(L1)s #%(L2)s' sage: s % literals "code '#' # ccc 't'" A state is returned so one can break strings across multiple calls to this function: sage: s, literals, state = strip_string_literals('s = "some'); s 's = %(L1)s' sage: s, literals, state = strip_string_literals('thing" * 5', state); s '%(L1)s * 5' """ new_code = [] literals = {} counter = 0 start = q = 0 if state is None: in_quote = False raw = False else: in_quote, raw = state while True: sig_q = code.find("'", q) dbl_q = code.find('"', q) hash_q = code.find('#', q) q = min(sig_q, dbl_q) if q == -1: q = max(sig_q, dbl_q) if not in_quote and hash_q != -1 and (q == -1 or hash_q < q): # it's a comment newline = code.find('\n', hash_q) if newline == -1: newline = len(code) counter += 1 label = "L%s" % counter literals[label] = code[hash_q+1:newline] new_code.append(code[start:hash_q].replace('%','%%')) new_code.append("#%%(%s)s" % label) start = q = newline elif q == -1: if in_quote: counter += 1 label = "L%s" % counter literals[label] = code[start:] new_code.append("%%(%s)s" % label) else: new_code.append(code[start:].replace('%','%%')) break elif in_quote: if not raw and code[q-1] == '\\': k = 2 while code[q-k] == '\\': k += 1 if k % 2 == 0: q += 1 if code[q:q+len(in_quote)] == in_quote: counter += 1 label = "L%s" % counter literals[label] = code[start:q+len(in_quote)] new_code.append("%%(%s)s" % label) q += len(in_quote) start = q in_quote = False else: q += 1 else: raw = q>0 and code[q-1] in 'rR' if len(code) >= q+3 and (code[q+1] == code[q] == code[q+2]): in_quote = code[q]*3 else: in_quote = code[q] new_code.append(code[start:q].replace('%', '%%')) start = q q += len(in_quote) return "".join(new_code), literals, (in_quote, raw) | 4012ffc8d6acb2c057c0033e7b20dfb6621a59bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/4012ffc8d6acb2c057c0033e7b20dfb6621a59bc/preparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
1080,
67,
80,
11235,
12,
710,
16,
919,
33,
7036,
4672,
436,
8395,
2860,
279,
533,
598,
777,
7158,
10681,
8089,
598,
3249,
471,
279,
2065,
434,
3249,
364,
283,
17,
22284,
305,
1421,
18,
1220,
7297,
5811,
9816,
15857,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
1484,
4288,
1930,
2569,
67,
1080,
67,
80,
11235,
272,
410,
30,
272,
16,
18228,
16,
919,
273,
2569,
67,
1080,
67,
80,
11235,
12,
86,
26418,
3292,
69,
2187,
315,
70,
3113,
296,
71,
2187,
315,
72,
8530,
3864,
11,
6134,
272,
410,
30,
272,
5271,
17105,
48,
21,
13,
87,
16,
8975,
48,
22,
13,
87,
16,
8975,
48,
23,
13,
87,
16,
8975,
48,
24,
13,
87,
3864,
272,
410,
30,
18228,
13666,
48,
24,
4278,
2119,
72,
1695,
3660,
2187,
296,
48,
22,
4278,
2119,
70,
6,
2187,
296,
48,
23,
4278,
2491,
71,
11,
3113,
296,
48,
21,
4278,
2491,
69,
4970,
97,
272,
410,
30,
1172,
272,
738,
18228,
10228,
69,
2187,
315,
70,
3113,
296,
71,
2187,
315,
72,
8530,
65,
272,
410,
30,
1172,
2569,
67,
1080,
67,
80,
11235,
12,
86,
11,
10951,
1695,
8530,
10951,
27576,
17,
6134,
63,
20,
65,
300,
17105,
48,
21,
13,
87,
6456,
12,
48,
22,
13,
87,
17,
225,
28173,
17,
18653,
854,
7681,
487,
5492,
18,
272,
410,
30,
272,
16,
18228,
16,
919,
273,
2569,
67,
1080,
67,
80,
11235,
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,
2569,
67,
1080,
67,
80,
11235,
12,
710,
16,
919,
33,
7036,
4672,
436,
8395,
2860,
279,
533,
598,
777,
7158,
10681,
8089,
598,
3249,
471,
279,
2065,
434,
3249,
364,
283,
17,
22284,
305,
1421,
18,
1220,
7297,
5811,
9816,
15857,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
1484,
4288,
1930,
2569,
67,
1080,
67,
80,
11235,
272,
410,
30,
272,
16,
18228,
16,
919,
273,
2569,
67,
1080,
67,
80,
11235,
12,
86,
26418,
3292,
69,
2187,
315,
70,
3113,
296,
71,
2187,
315,
72,
8530,
3864,
11,
6134,
272,
410,
30,
272,
5271,
17105,
48,
21,
13,
87,
16,
8975,
48,
22,
13,
87,
16,
8975,
2
] |
photo_regex = re.compile('(?P<base_url>http://.+\.adopteunmec\.com/.+/)image(?P<id>.+)\.jpg') photo_max_id = max(int(photo_regex.match(photo['url']).groupdict()['id']) for photo in self.photos) base_url = photo_regex.match(self.photos[0]['url']).groupdict()['base_url'] for id in xrange(1, photo_max_id + 1): url = '%simage%s.jpg' % (base_url, id) if not url in [photo['url'] for photo in self.photos]: self.photos.append(dict(url=url, hidden=True)) | def on_loaded(self): self.name = u'' self.description = u'' self.table = deepcopy(self.empty_table) self.id = 0 self.photos = [] self.status = '' self.stats = OrderedDict(( ('score', 0), ('visits', 0), ('charms', 0), ('baskets', 0), ('mails', 0), )) | fb01c73028bf5d3ec5a9e44298475a52ff3221d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/fb01c73028bf5d3ec5a9e44298475a52ff3221d0/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4230,
12,
2890,
4672,
365,
18,
529,
273,
582,
6309,
365,
18,
3384,
273,
582,
6309,
365,
18,
2121,
273,
7217,
12,
2890,
18,
5531,
67,
2121,
13,
365,
18,
350,
273,
374,
365,
18,
29121,
273,
5378,
365,
18,
2327,
273,
875,
365,
18,
5296,
273,
9916,
12443,
7707,
6355,
2187,
282,
374,
3631,
7707,
3516,
1282,
2187,
225,
374,
3631,
7707,
3001,
959,
2187,
225,
374,
3631,
7707,
70,
835,
2413,
2187,
374,
3631,
7707,
4408,
87,
2187,
282,
374,
3631,
8623,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4230,
12,
2890,
4672,
365,
18,
529,
273,
582,
6309,
365,
18,
3384,
273,
582,
6309,
365,
18,
2121,
273,
7217,
12,
2890,
18,
5531,
67,
2121,
13,
365,
18,
350,
273,
374,
365,
18,
29121,
273,
5378,
365,
18,
2327,
273,
875,
365,
18,
5296,
273,
9916,
12443,
7707,
6355,
2187,
282,
374,
3631,
7707,
3516,
1282,
2187,
225,
374,
3631,
7707,
3001,
959,
2187,
225,
374,
3631,
7707,
70,
835,
2413,
2187,
374,
3631,
7707,
4408,
87,
2187,
282,
374,
3631,
8623,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
rows=None, limit=None): | rows=None, limit=0): | def __init__(self, env, report=None, constraints=None, cols=None, order=None, desc=0, group=None, groupdesc=0, verbose=0, rows=None, limit=None): self.env = env self.id = report # if not None, it's the corresponding saved query self.constraints = constraints or {} self.order = order self.desc = desc self.group = group self.groupdesc = groupdesc self.limit = limit if rows == None: rows = [] if verbose and 'description' not in rows: # 0.10 compatibility rows.append('description') self.fields = TicketSystem(self.env).get_ticket_fields() field_names = [f['name'] for f in self.fields] self.cols = [c for c in cols or [] if c in field_names or c in ('id', 'time', 'changetime')] self.rows = [c for c in rows if c in field_names] | e2f492d2a64a39f12e57faf8be21e4d07e32ef7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/e2f492d2a64a39f12e57faf8be21e4d07e32ef7b/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1550,
16,
2605,
33,
7036,
16,
6237,
33,
7036,
16,
5347,
33,
7036,
16,
1353,
33,
7036,
16,
3044,
33,
20,
16,
1041,
33,
7036,
16,
1041,
5569,
33,
20,
16,
3988,
33,
20,
16,
2595,
33,
7036,
16,
1800,
33,
20,
4672,
365,
18,
3074,
273,
1550,
365,
18,
350,
273,
2605,
468,
309,
486,
599,
16,
518,
1807,
326,
4656,
5198,
843,
365,
18,
11967,
273,
6237,
578,
2618,
365,
18,
1019,
273,
1353,
365,
18,
5569,
273,
3044,
365,
18,
1655,
273,
1041,
365,
18,
1655,
5569,
273,
1041,
5569,
365,
18,
3595,
273,
1800,
309,
2595,
422,
599,
30,
2595,
273,
5378,
309,
3988,
471,
296,
3384,
11,
486,
316,
2595,
30,
468,
374,
18,
2163,
8926,
2595,
18,
6923,
2668,
3384,
6134,
365,
18,
2821,
273,
22023,
3163,
12,
2890,
18,
3074,
2934,
588,
67,
16282,
67,
2821,
1435,
652,
67,
1973,
273,
306,
74,
3292,
529,
3546,
364,
284,
316,
365,
18,
2821,
65,
365,
18,
6842,
273,
306,
71,
364,
276,
316,
5347,
578,
5378,
309,
276,
316,
652,
67,
1973,
578,
276,
316,
7707,
350,
2187,
296,
957,
2187,
296,
24083,
2374,
6134,
65,
365,
18,
3870,
273,
306,
71,
364,
276,
316,
2595,
309,
276,
316,
652,
67,
1973,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1550,
16,
2605,
33,
7036,
16,
6237,
33,
7036,
16,
5347,
33,
7036,
16,
1353,
33,
7036,
16,
3044,
33,
20,
16,
1041,
33,
7036,
16,
1041,
5569,
33,
20,
16,
3988,
33,
20,
16,
2595,
33,
7036,
16,
1800,
33,
20,
4672,
365,
18,
3074,
273,
1550,
365,
18,
350,
273,
2605,
468,
309,
486,
599,
16,
518,
1807,
326,
4656,
5198,
843,
365,
18,
11967,
273,
6237,
578,
2618,
365,
18,
1019,
273,
1353,
365,
18,
5569,
273,
3044,
365,
18,
1655,
273,
1041,
365,
18,
1655,
5569,
273,
1041,
5569,
365,
18,
3595,
273,
1800,
309,
2595,
422,
599,
30,
2595,
273,
5378,
309,
3988,
471,
296,
3384,
11,
2
] |
print >>gv.out, ' {(char *)"%s", (getter)%s_get_%s, (setter)%s_get_%s, (char *)"", NULL},' % (var.name, cl.ident, var.name, cl.ident, var.name) | print >>gv.out, ' {(char *)"%s", (getter)%s_get_%s, (setter)%s_set_%s, (char *)"", NULL},' % (var.name, cl.ident, var.name, cl.ident, var.name) | print >>gv.out, 'typedef struct {' | 26fe99e7d2748d71928ab89d5052eb3d136c7d95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4470/26fe99e7d2748d71928ab89d5052eb3d136c7d95/extmod.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
1671,
75,
90,
18,
659,
16,
296,
723,
536,
1958,
13666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
if program == GETENT and mode == 'configuration': FunctionnalTest(program + [mode]).Run() | if program == GET and mode == 'configuration': commands.append(program + [ mode ]) | def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] elif program == MODIFY: modes = [ 'configuration', 'user', 'group', 'profile' ] elif program == DELETE: modes = [ 'user', 'group', 'groups', 'profile' ] elif program == GETENT: modes = ['user', 'users', 'passwd', 'group', 'groups', 'profiles', 'configuration' ] elif program == CHECK: modes = ['user', 'users', 'group', 'groups', 'profile', 'profiles', 'configuration' ] for mode in modes: if program == GETENT and mode == 'configuration': FunctionnalTest(program + [mode]).Run() else: FunctionnalTest(program + [mode]).Run(options = [['-h'], ['--help']]) test_message('integrated help testing finished.') | 07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/07cb13c975b820cb15074a8378ec89357e5846f4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
27423,
690,
67,
5201,
1832,
30,
3536,
4709,
1110,
773,
4492,
1501,
3684,
550,
2939,
471,
1554,
75,
690,
2809,
12123,
225,
1842,
67,
2150,
2668,
3813,
310,
31121,
2809,
1093,
13,
225,
364,
5402,
316,
261,
3264,
2222,
16,
11689,
16,
8663,
12096,
16,
8568,
16,
14565,
4672,
225,
4284,
82,
287,
4709,
12,
12890,
2934,
1997,
12,
2116,
273,
306,
3292,
17,
76,
17337,
10228,
413,
5201,
3546,
5717,
225,
309,
5402,
422,
11689,
30,
12382,
273,
306,
296,
1355,
2187,
296,
5577,
2187,
296,
1655,
2187,
296,
5040,
11,
308,
1327,
5402,
422,
8663,
12096,
30,
12382,
273,
306,
296,
7025,
2187,
296,
1355,
2187,
296,
1655,
2187,
296,
5040,
11,
308,
1327,
5402,
422,
8568,
30,
12382,
273,
306,
296,
1355,
2187,
296,
1655,
2187,
296,
4650,
2187,
296,
5040,
11,
308,
1327,
5402,
422,
4978,
2222,
30,
12382,
273,
10228,
1355,
2187,
296,
5577,
2187,
296,
24002,
2187,
296,
1655,
2187,
296,
4650,
2187,
296,
18314,
2187,
296,
7025,
11,
308,
1327,
5402,
422,
14565,
30,
12382,
273,
10228,
1355,
2187,
296,
5577,
2187,
296,
1655,
2187,
296,
4650,
2187,
296,
5040,
2187,
296,
18314,
2187,
296,
7025,
11,
308,
225,
364,
1965,
316,
12382,
30,
309,
5402,
422,
4978,
471,
1965,
422,
296,
7025,
4278,
4364,
18,
6923,
12,
12890,
397,
306,
1965,
308,
13,
469,
30,
4284,
82,
287,
4709,
12,
12890,
397,
306,
3188,
65,
2934,
1997,
12,
2116,
273,
306,
3292,
17,
76,
17337,
10228,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
27423,
690,
67,
5201,
1832,
30,
3536,
4709,
1110,
773,
4492,
1501,
3684,
550,
2939,
471,
1554,
75,
690,
2809,
12123,
225,
1842,
67,
2150,
2668,
3813,
310,
31121,
2809,
1093,
13,
225,
364,
5402,
316,
261,
3264,
2222,
16,
11689,
16,
8663,
12096,
16,
8568,
16,
14565,
4672,
225,
4284,
82,
287,
4709,
12,
12890,
2934,
1997,
12,
2116,
273,
306,
3292,
17,
76,
17337,
10228,
413,
5201,
3546,
5717,
225,
309,
5402,
422,
11689,
30,
12382,
273,
306,
296,
1355,
2187,
296,
5577,
2187,
296,
1655,
2187,
296,
5040,
11,
308,
1327,
5402,
422,
8663,
12096,
30,
12382,
273,
306,
296,
7025,
2187,
296,
1355,
2187,
296,
1655,
2187,
296,
5040,
11,
308,
1327,
2
] |
f = compile_function(two_exceptions, []) assert f() == two_exceptions() | f = compile_function(two_exceptionsB, []) assert f() == two_exceptionsB() | def two_exceptions(): r = 50 try: fn1() r += 1 except: r += 100 try: r += fn2() except: r += 300 r += fn2() return r | e7d027162c2587f9913ba654b37921841dbc5029 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/e7d027162c2587f9913ba654b37921841dbc5029/test_exception.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2795,
67,
11855,
13332,
436,
273,
6437,
775,
30,
2295,
21,
1435,
436,
1011,
404,
1335,
30,
436,
1011,
2130,
775,
30,
436,
1011,
2295,
22,
1435,
1335,
30,
436,
1011,
11631,
436,
1011,
2295,
22,
1435,
327,
436,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2795,
67,
11855,
13332,
436,
273,
6437,
775,
30,
2295,
21,
1435,
436,
1011,
404,
1335,
30,
436,
1011,
2130,
775,
30,
436,
1011,
2295,
22,
1435,
1335,
30,
436,
1011,
11631,
436,
1011,
2295,
22,
1435,
327,
436,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._set = initset | if initset is None: self._set = set() else: self._set = initset | def __init__(self, handler, initset = set(), translator=empty_translator): self._logger = logging.getLogger('dobject.AddOnlySet') self._set = initset self._lock = threading.Lock() | 7a0e3dca4207c6c41431efecefae5803a08f7dea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4034/7a0e3dca4207c6c41431efecefae5803a08f7dea/dobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1838,
16,
1208,
542,
273,
444,
9334,
8333,
33,
5531,
67,
17879,
4672,
365,
6315,
4901,
273,
2907,
18,
588,
3328,
2668,
72,
1612,
18,
986,
3386,
694,
6134,
309,
1208,
542,
353,
599,
30,
365,
6315,
542,
273,
444,
1435,
469,
30,
365,
6315,
542,
273,
1208,
542,
225,
365,
6315,
739,
273,
17254,
18,
2531,
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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,
588,
3328,
2668,
72,
1612,
18,
986,
3386,
694,
6134,
309,
1208,
542,
353,
599,
30,
365,
6315,
542,
273,
444,
1435,
469,
30,
365,
6315,
542,
273,
1208,
542,
225,
365,
6315,
739,
273,
17254,
18,
2531,
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
] |
self.Show() | def __init__(self, exception=None): # Instead of calling wx.Dialog.__init__ we precreate the dialog # so we can set an extra style that must be set before # creation, and then we create the GUI dialog using the Create # method. pre = wx.PreDialog() style = wx.CAPTION | wx.STAY_ON_TOP pre.Create(None, -1, _(u"Startup Options for Chandler"), wx.DefaultPosition, wx.DefaultSize, style) | 3b62905dad6319edd112e12463dc1799398bc429 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/3b62905dad6319edd112e12463dc1799398bc429/StartupOptionsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1520,
33,
7036,
4672,
468,
17561,
434,
4440,
7075,
18,
6353,
16186,
2738,
972,
732,
675,
2640,
326,
6176,
468,
1427,
732,
848,
444,
392,
2870,
2154,
716,
1297,
506,
444,
1865,
468,
6710,
16,
471,
1508,
732,
752,
326,
10978,
6176,
1450,
326,
1788,
468,
707,
18,
675,
273,
7075,
18,
1386,
6353,
1435,
2154,
273,
7075,
18,
3587,
3725,
571,
7075,
18,
882,
5255,
67,
673,
67,
10462,
675,
18,
1684,
12,
7036,
16,
300,
21,
16,
389,
12,
89,
6,
22178,
5087,
364,
1680,
464,
749,
6,
3631,
7075,
18,
1868,
2555,
16,
7075,
18,
1868,
1225,
16,
2154,
13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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1520,
33,
7036,
4672,
468,
17561,
434,
4440,
7075,
18,
6353,
16186,
2738,
972,
732,
675,
2640,
326,
6176,
468,
1427,
732,
848,
444,
392,
2870,
2154,
716,
1297,
506,
444,
1865,
468,
6710,
16,
471,
1508,
732,
752,
326,
10978,
6176,
1450,
326,
1788,
468,
707,
18,
675,
273,
7075,
18,
1386,
6353,
1435,
2154,
273,
7075,
18,
3587,
3725,
571,
7075,
18,
882,
5255,
67,
673,
67,
10462,
675,
18,
1684,
12,
7036,
16,
300,
21,
16,
389,
12,
89,
6,
22178,
5087,
364,
1680,
464,
749,
6,
3631,
7075,
18,
1868,
2555,
16,
7075,
18,
1868,
1225,
16,
2154,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self._original_metadata_keys = [] | def __init__(self, config, filename, root): base.EntryBase.__init__(self) self._config = config self._filename = filename self._root = root | 5e03bd54bf01580b6340bce067876121fcdf8825 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/5e03bd54bf01580b6340bce067876121fcdf8825/fileentry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
16,
1544,
16,
1365,
4672,
1026,
18,
1622,
2171,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
1425,
273,
642,
365,
6315,
3459,
273,
1544,
365,
6315,
3085,
273,
1365,
2,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
16,
1544,
16,
1365,
4672,
1026,
18,
1622,
2171,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
1425,
273,
642,
365,
6315,
3459,
273,
1544,
365,
6315,
3085,
273,
1365,
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
] |
|
for setting in self.__default_timing: | for setting in TimeConfig.__default_timing: | def Fast(self): """Set fast timing values | cdf857784836048d1db60b6385971db4e4b6dacd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/cdf857784836048d1db60b6385971db4e4b6dacd/timings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9545,
12,
2890,
4672,
3536,
694,
4797,
15538,
924,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9545,
12,
2890,
4672,
3536,
694,
4797,
15538,
924,
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
] |
raise ValueError("illegal content-type") | raise ValueError("illegal content-type: %s" % value) | def __new__(cls, value): if value == '*': return value try: type, subtype = value.split('/') except ValueError: raise ValueError("illegal content-type") else: if type == '*': raise ValueError("illegal content-type") return value | afe0134b526dece313862cedf05d57e9ef79a33c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/afe0134b526dece313862cedf05d57e9ef79a33c/datatypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
460,
4672,
309,
460,
422,
5306,
30,
327,
460,
775,
30,
618,
16,
12308,
273,
460,
18,
4939,
2668,
2473,
13,
1335,
2068,
30,
1002,
2068,
2932,
31751,
913,
17,
723,
30,
738,
87,
6,
738,
460,
13,
469,
30,
309,
618,
422,
5306,
30,
1002,
2068,
2932,
31751,
913,
17,
723,
30,
738,
87,
6,
738,
460,
13,
327,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
2704,
972,
12,
6429,
16,
460,
4672,
309,
460,
422,
5306,
30,
327,
460,
775,
30,
618,
16,
12308,
273,
460,
18,
4939,
2668,
2473,
13,
1335,
2068,
30,
1002,
2068,
2932,
31751,
913,
17,
723,
30,
738,
87,
6,
738,
460,
13,
469,
30,
309,
618,
422,
5306,
30,
1002,
2068,
2932,
31751,
913,
17,
723,
30,
738,
87,
6,
738,
460,
13,
327,
460,
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
] |
if not (contour or plotfield or matrixplot) and axes: if frame: xmin, xmax = self.__xmin, self.__xmax ymin, ymax = self.__ymin, self.__ymax subplot.set_xlim([xmin - 0.05*abs(xmax - xmin), xmax + 0.05*abs(xmax - xmin)]) subplot.set_ylim([ymin - 0.05*abs(ymax - ymin), ymax + 0.05*abs(ymax - ymin)]) sage_axes.add_xy_frame_axes(subplot, xmin, xmax, ymin, ymax, axes_with_no_ticks=True, axes_label=axes_label) else: xmin,xmax,ymin,ymax = self._prepare_axes(xmin, xmax, ymin, ymax) subplot.set_xlim(xmin, xmax) subplot.set_ylim(ymin, ymax) sage_axes.add_xy_axes(subplot, xmin, xmax, ymin, ymax, axes_label=axes_label) elif (contour or plotfield): | if not (contour or plotfield or matrixplot) and axes: if frame: | def save(self, filename=None, xmin=None, xmax=None, ymin=None, ymax=None, figsize=DEFAULT_FIGSIZE, figure=None, sub=None, savenow=True, dpi=DEFAULT_DPI, axes=True, axes_label=None, fontsize=None, frame=False, verify=True): """ Save the graphics to an image file of type: PNG, PS, EPS, SVG, SOBJ, depending on the file extension you give the filename. Extension types can be: '.png', '.ps', '.eps', '.svg', and '.sobj' (for a SAGE object you can load later). | 83c3c044d59ca008fb9d6aaec9812ed44fdc9c06 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/83c3c044d59ca008fb9d6aaec9812ed44fdc9c06/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
33,
7036,
16,
13777,
33,
7036,
16,
14016,
33,
7036,
16,
15763,
33,
7036,
16,
15275,
33,
7036,
16,
14697,
33,
5280,
67,
5236,
4574,
16,
7837,
33,
7036,
16,
720,
33,
7036,
16,
4087,
275,
543,
33,
5510,
16,
16361,
33,
5280,
67,
40,
1102,
16,
6515,
33,
5510,
16,
6515,
67,
1925,
33,
7036,
16,
14869,
33,
7036,
16,
2623,
33,
8381,
16,
3929,
33,
5510,
4672,
3536,
7074,
326,
17313,
358,
392,
1316,
585,
434,
618,
30,
22476,
16,
26320,
16,
512,
5857,
16,
11281,
16,
348,
24547,
16,
8353,
603,
326,
585,
2710,
1846,
8492,
326,
1544,
18,
10021,
1953,
848,
506,
30,
2418,
6446,
2187,
2418,
1121,
2187,
2418,
13058,
2187,
2418,
11451,
2187,
471,
2418,
2048,
441,
11,
261,
1884,
279,
348,
2833,
733,
1846,
848,
1262,
5137,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
33,
7036,
16,
13777,
33,
7036,
16,
14016,
33,
7036,
16,
15763,
33,
7036,
16,
15275,
33,
7036,
16,
14697,
33,
5280,
67,
5236,
4574,
16,
7837,
33,
7036,
16,
720,
33,
7036,
16,
4087,
275,
543,
33,
5510,
16,
16361,
33,
5280,
67,
40,
1102,
16,
6515,
33,
5510,
16,
6515,
67,
1925,
33,
7036,
16,
14869,
33,
7036,
16,
2623,
33,
8381,
16,
3929,
33,
5510,
4672,
3536,
7074,
326,
17313,
358,
392,
1316,
585,
434,
618,
30,
22476,
16,
26320,
16,
512,
5857,
16,
11281,
16,
348,
24547,
16,
8353,
603,
326,
585,
2710,
1846,
8492,
326,
1544,
18,
10021,
1953,
848,
506,
30,
2418,
6446,
2187,
2418,
1121,
2187,
2
] |
out.write(" | out.write(" | typedef struct | 90321ec314d468f9cf02fac398a8ceac92f60e1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/90321ec314d468f9cf02fac398a8ceac92f60e1a/GenUCNHash.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
1958,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
1958,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
el2 = etree.SubElement(el1, 'text:note-citation', attrib={ | el2 = SubElement(el1, 'text:note-citation', attrib={ | def visit_footnote_reference(self, node): #ipshell('At visit_footnote_reference') id = node.attributes['refid'] el1 = self.append_child('text:note', attrib={ 'text:id': '%s' % (id, ), 'text:note-class': 'footnote', }) child = node.children[0] label = child.astext() el2 = etree.SubElement(el1, 'text:note-citation', attrib={ 'text:label': label, }) el2.text = label self.footnote_dict[id] = el1 | ff5e4f0a960dc872d240ae9d03fa81f22e3cbcce /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5620/ff5e4f0a960dc872d240ae9d03fa81f22e3cbcce/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
10923,
7652,
67,
6180,
12,
2890,
16,
756,
4672,
468,
625,
10304,
2668,
861,
3757,
67,
10923,
7652,
67,
6180,
6134,
612,
273,
756,
18,
4350,
3292,
1734,
350,
3546,
415,
21,
273,
365,
18,
6923,
67,
3624,
2668,
955,
30,
7652,
2187,
5885,
5899,
296,
955,
30,
350,
4278,
1995,
87,
11,
738,
261,
350,
16,
262,
16,
296,
955,
30,
7652,
17,
1106,
4278,
296,
10923,
7652,
2187,
289,
13,
1151,
273,
756,
18,
5906,
63,
20,
65,
1433,
273,
1151,
18,
689,
408,
1435,
415,
22,
273,
5479,
12,
292,
21,
16,
296,
955,
30,
7652,
17,
71,
8773,
2187,
5885,
5899,
296,
955,
30,
1925,
4278,
1433,
16,
289,
13,
415,
22,
18,
955,
273,
1433,
365,
18,
10923,
7652,
67,
1576,
63,
350,
65,
273,
415,
21,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10923,
7652,
67,
6180,
12,
2890,
16,
756,
4672,
468,
625,
10304,
2668,
861,
3757,
67,
10923,
7652,
67,
6180,
6134,
612,
273,
756,
18,
4350,
3292,
1734,
350,
3546,
415,
21,
273,
365,
18,
6923,
67,
3624,
2668,
955,
30,
7652,
2187,
5885,
5899,
296,
955,
30,
350,
4278,
1995,
87,
11,
738,
261,
350,
16,
262,
16,
296,
955,
30,
7652,
17,
1106,
4278,
296,
10923,
7652,
2187,
289,
13,
1151,
273,
756,
18,
5906,
63,
20,
65,
1433,
273,
1151,
18,
689,
408,
1435,
415,
22,
273,
5479,
12,
292,
21,
16,
296,
955,
30,
7652,
17,
71,
8773,
2187,
5885,
5899,
296,
955,
30,
1925,
4278,
1433,
16,
289,
13,
415,
22,
2
] |
except (AttributeError, TypeError, NameError): | except (AttributeError, TypeError, NameError, SyntaxError): | def __call__(self, x, check=True): """ Coerce \code{x} into this multivariate polynomial ring, possibly non-canonically. | 4d353560c6a6b0a53726fbf6e6555e26e03f1356 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/4d353560c6a6b0a53726fbf6e6555e26e03f1356/multi_polynomial_ring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
866,
33,
5510,
4672,
3536,
7695,
2765,
521,
710,
95,
92,
97,
1368,
333,
1778,
27693,
16991,
9221,
16,
10016,
1661,
17,
4169,
265,
6478,
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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672,
3536,
7695,
2765,
521,
710,
95,
92,
97,
1368,
333,
1778,
27693,
16991,
9221,
16,
10016,
1661,
17,
4169,
265,
6478,
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
] |
process = subprocess.Popen(args, stdout=subprocess.PIPE, stdin=stdin, cwd=cwd) | process = subprocess.Popen(args, stdin=stdin, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=cwd) | def run_command(args, cwd=None, input=None, raise_on_failure=True, return_exit_code=False): stdin = subprocess.PIPE if input else None process = subprocess.Popen(args, stdout=subprocess.PIPE, stdin=stdin, cwd=cwd) output = process.communicate(input)[0].rstrip() exit_code = process.wait() if raise_on_failure and exit_code: raise ScriptError('Failed to run "%s" exit_code: %d cwd: %s' % (args, exit_code, cwd)) if return_exit_code: return exit_code return output | cbfef173775a18c163a046efa120abeeff3a6751 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/cbfef173775a18c163a046efa120abeeff3a6751/scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3076,
12,
1968,
16,
7239,
33,
7036,
16,
810,
33,
7036,
16,
1002,
67,
265,
67,
12251,
33,
5510,
16,
327,
67,
8593,
67,
710,
33,
8381,
4672,
8801,
273,
6652,
18,
27602,
309,
810,
469,
599,
1207,
273,
6652,
18,
52,
3190,
12,
1968,
16,
8801,
33,
21772,
16,
3909,
33,
1717,
2567,
18,
27602,
16,
4514,
33,
1717,
2567,
18,
882,
16864,
16,
7239,
33,
11089,
13,
876,
273,
1207,
18,
5702,
318,
2659,
12,
2630,
25146,
20,
8009,
86,
6406,
1435,
2427,
67,
710,
273,
1207,
18,
7048,
1435,
309,
1002,
67,
265,
67,
12251,
471,
2427,
67,
710,
30,
1002,
7739,
668,
2668,
2925,
358,
1086,
2213,
87,
6,
225,
2427,
67,
710,
30,
738,
72,
225,
7239,
30,
738,
87,
11,
738,
261,
1968,
16,
2427,
67,
710,
16,
7239,
3719,
309,
327,
67,
8593,
67,
710,
30,
327,
2427,
67,
710,
327,
876,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3076,
12,
1968,
16,
7239,
33,
7036,
16,
810,
33,
7036,
16,
1002,
67,
265,
67,
12251,
33,
5510,
16,
327,
67,
8593,
67,
710,
33,
8381,
4672,
8801,
273,
6652,
18,
27602,
309,
810,
469,
599,
1207,
273,
6652,
18,
52,
3190,
12,
1968,
16,
8801,
33,
21772,
16,
3909,
33,
1717,
2567,
18,
27602,
16,
4514,
33,
1717,
2567,
18,
882,
16864,
16,
7239,
33,
11089,
13,
876,
273,
1207,
18,
5702,
318,
2659,
12,
2630,
25146,
20,
8009,
86,
6406,
1435,
2427,
67,
710,
273,
1207,
18,
7048,
1435,
309,
1002,
67,
265,
67,
12251,
471,
2427,
67,
710,
30,
1002,
7739,
668,
2668,
2925,
358,
1086,
2213,
87,
6,
225,
2427,
67,
2
] |
if hasattr(loader,'get_filename'): | if hasattr(loader, 'get_filename'): | def run(self, callback, key=None, completer=None, onerror=None): if key: key = key.lower() self.quit = False seen = {} | 609d5127d66c998c98038c39f009b50740e240cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/609d5127d66c998c98038c39f009b50740e240cb/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1348,
16,
498,
33,
7036,
16,
31848,
33,
7036,
16,
20991,
33,
7036,
4672,
309,
498,
30,
498,
273,
498,
18,
8167,
1435,
365,
18,
27176,
273,
1083,
5881,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._profileDt = dt | profileInfo.dt = dt | def __executeTask(self, task): task.setCurrentTimeFrame(self.currentTime, self.currentFrame) | 51c598f3d6d44b31957175306331fbe8df200336 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/51c598f3d6d44b31957175306331fbe8df200336/Task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8837,
2174,
12,
2890,
16,
1562,
4672,
1562,
18,
542,
3935,
950,
3219,
12,
2890,
18,
2972,
950,
16,
365,
18,
2972,
3219,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8837,
2174,
12,
2890,
16,
1562,
4672,
1562,
18,
542,
3935,
950,
3219,
12,
2890,
18,
2972,
950,
16,
365,
18,
2972,
3219,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
found_cmd = r'tool\cmake\bin\%s' % found_cmd | found_cmd = r'..\tool\cmake\bin\%s' % self.cmake_cmd | def persist_cmake(self): if sys.platform == 'win32': version = '2.8.0' found_cmd = '' for test_cmd in (self.cmake_cmd, r'tool\cmake\bin\%s' % self.cmake_cmd): print 'Testing for CMake version %s at `%s`...' % (version, test_cmd) p = subprocess.Popen([test_cmd, '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) stdout, stderr = p.communicate() if p.returncode == 0 and stdout == 'cmake version %s\r\n' % version: # found one that works, hurrah! print 'Found valid CMake version' found_cmd = test_cmd # HACK: gotta go out so just hacking this for now if found_cmd == r'tool\cmake\bin\%s' % self.cmake_cmd: found_cmd = r'..\tool\cmake\bin\%s' % self.cmake_cmd break if not found_cmd: msg = 'CMake 2.8.0 not installed. Auto download now? [Y/n]' print msg, | cfaa79eaea6a43258621c61c4a209df37653f38f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6688/cfaa79eaea6a43258621c61c4a209df37653f38f/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3898,
67,
71,
6540,
12,
2890,
4672,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
225,
1177,
273,
296,
22,
18,
28,
18,
20,
11,
1392,
67,
4172,
273,
875,
364,
1842,
67,
4172,
316,
261,
2890,
18,
71,
6540,
67,
4172,
16,
436,
1404,
1371,
64,
71,
6540,
64,
4757,
64,
9,
87,
11,
738,
365,
18,
71,
6540,
67,
4172,
4672,
1172,
296,
22218,
364,
385,
6464,
1177,
738,
87,
622,
12430,
87,
68,
7821,
738,
261,
1589,
16,
1842,
67,
4172,
13,
293,
273,
6652,
18,
52,
3190,
3816,
3813,
67,
4172,
16,
3534,
1589,
17337,
3909,
33,
1717,
2567,
18,
27602,
16,
4514,
33,
1717,
2567,
18,
27602,
16,
5972,
33,
5510,
13,
3909,
16,
4514,
273,
293,
18,
5702,
318,
2659,
1435,
309,
293,
18,
2463,
710,
422,
374,
471,
3909,
422,
296,
71,
6540,
1177,
738,
87,
64,
86,
64,
82,
11,
738,
1177,
30,
468,
1392,
1245,
716,
6330,
16,
366,
295,
354,
76,
5,
1172,
296,
2043,
923,
385,
6464,
1177,
11,
1392,
67,
4172,
273,
1842,
67,
4172,
468,
670,
3649,
30,
2363,
2351,
1960,
596,
1427,
2537,
11769,
310,
333,
364,
2037,
309,
1392,
67,
4172,
422,
436,
1404,
1371,
64,
71,
6540,
64,
4757,
64,
9,
87,
11,
738,
365,
18,
71,
6540,
67,
4172,
30,
1392,
67,
4172,
273,
436,
11,
838,
64,
6738,
64,
71,
6540,
64,
4757,
64,
9,
87,
11,
738,
365,
18,
71,
6540,
67,
4172,
898,
225,
309,
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,
3898,
67,
71,
6540,
12,
2890,
4672,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
225,
1177,
273,
296,
22,
18,
28,
18,
20,
11,
1392,
67,
4172,
273,
875,
364,
1842,
67,
4172,
316,
261,
2890,
18,
71,
6540,
67,
4172,
16,
436,
1404,
1371,
64,
71,
6540,
64,
4757,
64,
9,
87,
11,
738,
365,
18,
71,
6540,
67,
4172,
4672,
1172,
296,
22218,
364,
385,
6464,
1177,
738,
87,
622,
12430,
87,
68,
7821,
738,
261,
1589,
16,
1842,
67,
4172,
13,
293,
273,
6652,
18,
52,
3190,
3816,
3813,
67,
4172,
16,
3534,
1589,
17337,
3909,
33,
1717,
2567,
18,
27602,
16,
4514,
33,
1717,
2567,
18,
27602,
16,
5972,
33,
5510,
13,
2
] |
for e in self.root.edits: m = e.obj.parentMod if m not in mods: mods[m] = FileDiff(m) i = e.obj.edits.index(e) mods[m].apply_edit(e.obj.edits[i-1], e.obj.edits[i]) | for m in self.root.editsbymod: l = [e for e in self.root.editsbymod[m] if e is self.root.editsbyob[e.obj][-1]] l.sort(key=lambda x:x.obj.linenumber, reverse=True) mods[m] = FileDiff(m) for e in l: edit0 = self.root.editsbyob[e.obj][0] mods[m].apply_edit(edit0, e) | def render_bigDiff(self, context, data): mods = {} for e in self.root.edits: m = e.obj.parentMod if m not in mods: mods[m] = FileDiff(m) i = e.obj.edits.index(e) mods[m].apply_edit(e.obj.edits[i-1], e.obj.edits[i]) r = [] for mod in sorted(mods, key=lambda x:x.filepath): r.append(tags.pre[mods[mod].diff()]) return r | 28c07c2b942db8de673e0711eddd52fe3fa5e1e9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5471/28c07c2b942db8de673e0711eddd52fe3fa5e1e9/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
14002,
5938,
12,
2890,
16,
819,
16,
501,
4672,
15546,
273,
2618,
364,
312,
316,
365,
18,
3085,
18,
329,
1282,
1637,
1711,
30,
328,
273,
306,
73,
364,
425,
316,
365,
18,
3085,
18,
329,
1282,
1637,
1711,
63,
81,
65,
309,
425,
353,
365,
18,
3085,
18,
329,
1282,
1637,
947,
63,
73,
18,
2603,
6362,
17,
21,
13563,
328,
18,
3804,
12,
856,
33,
14661,
619,
30,
92,
18,
2603,
18,
7511,
21998,
16,
4219,
33,
5510,
13,
15546,
63,
81,
65,
273,
1387,
5938,
12,
81,
13,
364,
425,
316,
328,
30,
3874,
20,
273,
365,
18,
3085,
18,
329,
1282,
1637,
947,
63,
73,
18,
2603,
6362,
20,
65,
15546,
63,
81,
8009,
9010,
67,
4619,
12,
4619,
20,
16,
425,
13,
436,
273,
5378,
364,
681,
316,
3115,
12,
22760,
16,
498,
33,
14661,
619,
30,
92,
18,
10561,
4672,
436,
18,
6923,
12,
4156,
18,
1484,
63,
22760,
63,
1711,
8009,
5413,
1435,
5717,
327,
436,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
14002,
5938,
12,
2890,
16,
819,
16,
501,
4672,
15546,
273,
2618,
364,
312,
316,
365,
18,
3085,
18,
329,
1282,
1637,
1711,
30,
328,
273,
306,
73,
364,
425,
316,
365,
18,
3085,
18,
329,
1282,
1637,
1711,
63,
81,
65,
309,
425,
353,
365,
18,
3085,
18,
329,
1282,
1637,
947,
63,
73,
18,
2603,
6362,
17,
21,
13563,
328,
18,
3804,
12,
856,
33,
14661,
619,
30,
92,
18,
2603,
18,
7511,
21998,
16,
4219,
33,
5510,
13,
15546,
63,
81,
65,
273,
1387,
5938,
12,
81,
13,
364,
425,
316,
328,
30,
3874,
20,
273,
365,
18,
3085,
18,
329,
1282,
1637,
947,
63,
73,
18,
2603,
6362,
20,
65,
15546,
63,
2
] |
return iter(self.obsoletes_list) | for name, l in self.obsoletes_list.hash.iteritems(): for f, v, p in l: p = self.getPkgById(p["install_id"]) if p: yield name, f, v, p | def iterObsoletes(self): if self.obsoletes_list is None: self._readObsoletes() return iter(self.obsoletes_list) | 845f48f23a00b90270ce7fa94ef3fb74bfc20685 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/845f48f23a00b90270ce7fa94ef3fb74bfc20685/rpmdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
27637,
355,
278,
281,
12,
2890,
4672,
309,
365,
18,
10992,
355,
278,
281,
67,
1098,
353,
599,
30,
365,
6315,
896,
27637,
355,
278,
281,
1435,
327,
1400,
12,
2890,
18,
10992,
355,
278,
281,
67,
1098,
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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
1400,
12,
2890,
18,
10992,
355,
278,
281,
67,
1098,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if name == "CA ": | if name == "CA ": | def _buildResiduum(self, mol, zmatrix, n_atoms, phi, psi, init_pos, symbol): """ | 6d9f42d04f54936f2fb6dfba863d4aecde129a85 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/6d9f42d04f54936f2fb6dfba863d4aecde129a85/PeptideGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
607,
350,
89,
379,
12,
2890,
16,
12629,
16,
998,
5667,
16,
290,
67,
14937,
16,
7706,
16,
23921,
16,
1208,
67,
917,
16,
3273,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
607,
350,
89,
379,
12,
2890,
16,
12629,
16,
998,
5667,
16,
290,
67,
14937,
16,
7706,
16,
23921,
16,
1208,
67,
917,
16,
3273,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return open(fn) | return open(fn, *args, **kw) | def open_urlresource(url, *args, **kw): import urllib.request, urllib.parse requires('urlfetch') filename = urllib.parse.urlparse(url)[2].split('/')[-1] # '/': it's URL! fn = os.path.join(os.path.dirname(__file__), "data", filename) if os.path.exists(fn): return open(fn) print('\tfetching %s ...' % url, file=get_original_stdout()) fn, _ = urllib.request.urlretrieve(url, fn) return open(fn, *args, **kw) | 25e769eb39219f13392df90f7a4c8fc422bdc188 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/25e769eb39219f13392df90f7a4c8fc422bdc188/support.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
718,
3146,
12,
718,
16,
380,
1968,
16,
2826,
9987,
4672,
1930,
11527,
18,
2293,
16,
11527,
18,
2670,
225,
4991,
2668,
718,
5754,
6134,
1544,
273,
11527,
18,
2670,
18,
718,
2670,
12,
718,
25146,
22,
8009,
4939,
2668,
2473,
13,
18919,
21,
65,
468,
2023,
30,
518,
1807,
1976,
5,
225,
2295,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
315,
892,
3113,
1544,
13,
309,
1140,
18,
803,
18,
1808,
12,
4293,
4672,
327,
1696,
12,
4293,
16,
380,
1968,
16,
2826,
9987,
13,
225,
1172,
2668,
64,
88,
5754,
310,
738,
87,
25956,
738,
880,
16,
585,
33,
588,
67,
8830,
67,
10283,
10756,
2295,
16,
389,
273,
11527,
18,
2293,
18,
718,
17466,
12,
718,
16,
2295,
13,
327,
1696,
12,
4293,
16,
380,
1968,
16,
2826,
9987,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
718,
3146,
12,
718,
16,
380,
1968,
16,
2826,
9987,
4672,
1930,
11527,
18,
2293,
16,
11527,
18,
2670,
225,
4991,
2668,
718,
5754,
6134,
1544,
273,
11527,
18,
2670,
18,
718,
2670,
12,
718,
25146,
22,
8009,
4939,
2668,
2473,
13,
18919,
21,
65,
468,
2023,
30,
518,
1807,
1976,
5,
225,
2295,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
315,
892,
3113,
1544,
13,
309,
1140,
18,
803,
18,
1808,
12,
4293,
4672,
327,
1696,
12,
4293,
16,
380,
1968,
16,
2826,
9987,
13,
225,
1172,
2668,
64,
88,
5754,
310,
738,
87,
25956,
738,
880,
16,
585,
33,
588,
67,
8830,
67,
10283,
2
] |
0.74204877583656470 + 0.19883137022991071*I | 0.742048775836564 + 0.198831370229910*I | def eta(self, omit_frac=False): r""" Return the value of the Dedekind $\eta$ function on self, intelligently computed using $\SL(2,\Z)$ transformations. | 193380da4580283517e8b5d85f0bf8d1c6d47fce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/193380da4580283517e8b5d85f0bf8d1c6d47fce/complex_number.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,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14251,
12,
2890,
16,
14088,
67,
22187,
33,
8381,
4672,
436,
8395,
2000,
326,
460,
434,
326,
1505,
323,
9224,
271,
64,
1066,
8,
445,
603,
365,
16,
509,
1165,
360,
23351,
8470,
1450,
271,
64,
4559,
12,
22,
17211,
62,
21877,
19245,
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
] |
def writable (self): | def writable(self): | def writable (self): return True | f7eb0d3f501f2e379b8719bda476d318d1e79160 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f7eb0d3f501f2e379b8719bda476d318d1e79160/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9691,
12,
2890,
4672,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1652,
9691,
12,
2890,
4672,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Convert a string giving a list of GAP permutations into a list of elements of G. | Convert a string giving a list of GAP permutations into a list of elements of ``G``. | def from_gap_list(G, src): r""" Convert a string giving a list of GAP permutations into a list of elements of G. EXAMPLES:: sage: from sage.groups.perm_gps.permgroup import from_gap_list sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: L = from_gap_list(G, "[(1,2,3)(4,5), (3,4)]"); L [(1,2,3)(4,5), (3,4)] sage: L[0].parent() is G True sage: L[1].parent() is G True """ # trim away the list constructs src = src.replace("[", "").replace("]", "") # cut out the individual elements srcs = src.split("),") for i in range(len(srcs[:-1])): srcs[i] = srcs[i] + ")" srcs = map(G, srcs) return srcs | 2d077a3331069892dd585070aa02c876686672d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2d077a3331069892dd585070aa02c876686672d2/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
67,
14048,
67,
1098,
12,
43,
16,
1705,
4672,
436,
8395,
4037,
279,
533,
21057,
279,
666,
434,
611,
2203,
26468,
1368,
279,
666,
434,
2186,
434,
12176,
43,
68,
8338,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
4650,
18,
12160,
67,
75,
1121,
18,
12160,
1655,
1930,
628,
67,
14048,
67,
1098,
272,
410,
30,
611,
273,
13813,
9245,
1114,
3816,
63,
12,
21,
16,
22,
16,
23,
3631,
12,
24,
16,
25,
13,
6487,
63,
12,
23,
16,
24,
25887,
5717,
272,
410,
30,
511,
273,
628,
67,
14048,
67,
1098,
12,
43,
16,
5158,
12,
21,
16,
22,
16,
23,
21433,
24,
16,
25,
3631,
261,
23,
16,
24,
13,
4279,
1769,
511,
306,
12,
21,
16,
22,
16,
23,
21433,
24,
16,
25,
3631,
261,
23,
16,
24,
25887,
272,
410,
30,
511,
63,
20,
8009,
2938,
1435,
353,
611,
1053,
272,
410,
30,
511,
63,
21,
8009,
2938,
1435,
353,
611,
1053,
3536,
468,
2209,
10804,
326,
666,
15725,
1705,
273,
1705,
18,
2079,
2932,
63,
3113,
1408,
2934,
2079,
2932,
65,
3113,
1408,
13,
468,
6391,
596,
326,
7327,
2186,
28403,
273,
1705,
18,
4939,
2932,
3631,
7923,
364,
277,
316,
1048,
12,
1897,
12,
4816,
87,
10531,
17,
21,
22643,
30,
28403,
63,
77,
65,
273,
28403,
63,
77,
65,
397,
7310,
28403,
273,
852,
12,
43,
16,
28403,
13,
327,
28403,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
67,
14048,
67,
1098,
12,
43,
16,
1705,
4672,
436,
8395,
4037,
279,
533,
21057,
279,
666,
434,
611,
2203,
26468,
1368,
279,
666,
434,
2186,
434,
12176,
43,
68,
8338,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
4650,
18,
12160,
67,
75,
1121,
18,
12160,
1655,
1930,
628,
67,
14048,
67,
1098,
272,
410,
30,
611,
273,
13813,
9245,
1114,
3816,
63,
12,
21,
16,
22,
16,
23,
3631,
12,
24,
16,
25,
13,
6487,
63,
12,
23,
16,
24,
25887,
5717,
272,
410,
30,
511,
273,
628,
67,
14048,
67,
1098,
12,
43,
16,
5158,
12,
21,
16,
22,
16,
23,
21433,
24,
16,
25,
3631,
261,
23,
16,
2
] |
elif child.hasChildNodes(): | if child.hasChildNodes(): | def xml_processnodes(xmlnode,filter,proc): ''' Process with proc all nodes that match filter. ''' node_list = [] for child in xmlnode.childNodes: if filter(child): node_list.append(child) elif child.hasChildNodes(): xml_processnodes(child,filter,proc) if node_list: proc(node_list) | 6ed70e519644bc523299964709e22fbf4d9a6bb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11962/6ed70e519644bc523299964709e22fbf4d9a6bb0/hb2openais-helper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
67,
2567,
4690,
12,
2902,
2159,
16,
2188,
16,
9381,
4672,
9163,
4389,
598,
5418,
777,
2199,
716,
845,
1034,
18,
9163,
756,
67,
1098,
273,
5378,
364,
1151,
316,
2025,
2159,
18,
3624,
3205,
30,
309,
1034,
12,
3624,
4672,
756,
67,
1098,
18,
6923,
12,
3624,
13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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
67,
2567,
4690,
12,
2902,
2159,
16,
2188,
16,
9381,
4672,
9163,
4389,
598,
5418,
777,
2199,
716,
845,
1034,
18,
9163,
756,
67,
1098,
273,
5378,
364,
1151,
316,
2025,
2159,
18,
3624,
3205,
30,
309,
1034,
12,
3624,
4672,
756,
67,
1098,
18,
6923,
12,
3624,
13,
309,
1151,
18,
5332,
22460,
13332,
2025,
67,
2567,
4690,
12,
3624,
16,
2188,
16,
9381,
13,
309,
756,
67,
1098,
30,
5418,
12,
2159,
67,
1098,
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
] |
checkdir_script.write(""" | checkdir_script.write(""" | def setup_checkForDir(self): # create a shell script to check for the existence of the qscan output directory and rename it if needed checkdir_script = open('checkForDir.sh','w') checkdir_script.write(""" | e116a0d923e8c0bcb9abf813b64f5839eb5d9fc5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e116a0d923e8c0bcb9abf813b64f5839eb5d9fc5/stfu_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1893,
1290,
1621,
12,
2890,
4672,
468,
752,
279,
5972,
2728,
358,
866,
364,
326,
15782,
434,
326,
1043,
9871,
876,
1867,
471,
6472,
518,
309,
3577,
866,
1214,
67,
4263,
273,
1696,
2668,
1893,
1290,
1621,
18,
674,
17023,
91,
6134,
866,
1214,
67,
4263,
18,
2626,
2932,
3660,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1893,
1290,
1621,
12,
2890,
4672,
468,
752,
279,
5972,
2728,
358,
866,
364,
326,
15782,
434,
326,
1043,
9871,
876,
1867,
471,
6472,
518,
309,
3577,
866,
1214,
67,
4263,
273,
1696,
2668,
1893,
1290,
1621,
18,
674,
17023,
91,
6134,
866,
1214,
67,
4263,
18,
2626,
2932,
3660,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assert len(f.maker.env.toposort()[0].env.toposort()[0].op.scalar_op.env.nodes)==4,len(f.maker.env.toposort()[0].env.toposort()[0].op.scalar_op.env.nodes) | assert len(f.maker.env.toposort()[0].env.toposort()[0].op.scalar_op.env.nodes)==2,len(f.maker.env.toposort()[0].env.toposort()[0].op.scalar_op.env.nodes) | def test_local_log_erfc(self): val = [-30,-27,-26,-11,-10,-3,-2,-1,0,1,2,3,10,11,26,27,28,30] if theano.config.mode in ["DebugMode", "DEBUG_MODE", "FAST_COMPILE"]: #python mode don't like the inv(0) val.remove(0) val = numpy.asarray(val) x = T.vector('x') | 5a0d2fb5e310af5c2466d14b27edb0aa1c8114ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/5a0d2fb5e310af5c2466d14b27edb0aa1c8114ed/test_opt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3729,
67,
1330,
67,
264,
7142,
12,
2890,
4672,
1244,
273,
23059,
5082,
16,
17,
5324,
16,
17,
5558,
16,
17,
2499,
16,
17,
2163,
16,
17,
23,
16,
17,
22,
16,
17,
21,
16,
20,
16,
21,
16,
22,
16,
23,
16,
2163,
16,
2499,
16,
5558,
16,
5324,
16,
6030,
16,
5082,
65,
309,
326,
31922,
18,
1425,
18,
3188,
316,
8247,
2829,
2309,
3113,
315,
9394,
67,
7038,
3113,
315,
2046,
882,
67,
31075,
900,
11929,
30,
468,
8103,
1965,
2727,
1404,
3007,
326,
2198,
12,
20,
13,
1244,
18,
4479,
12,
20,
13,
1244,
273,
3972,
18,
345,
1126,
12,
1125,
13,
619,
273,
399,
18,
7737,
2668,
92,
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,
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
30,
1652,
1842,
67,
3729,
67,
1330,
67,
264,
7142,
12,
2890,
4672,
1244,
273,
23059,
5082,
16,
17,
5324,
16,
17,
5558,
16,
17,
2499,
16,
17,
2163,
16,
17,
23,
16,
17,
22,
16,
17,
21,
16,
20,
16,
21,
16,
22,
16,
23,
16,
2163,
16,
2499,
16,
5558,
16,
5324,
16,
6030,
16,
5082,
65,
309,
326,
31922,
18,
1425,
18,
3188,
316,
8247,
2829,
2309,
3113,
315,
9394,
67,
7038,
3113,
315,
2046,
882,
67,
31075,
900,
11929,
30,
468,
8103,
1965,
2727,
1404,
3007,
326,
2198,
12,
20,
13,
1244,
18,
4479,
12,
20,
13,
1244,
273,
3972,
18,
345,
1126,
12,
1125,
13,
619,
273,
399,
18,
7737,
2668,
92,
6134,
2,
-100,
-100
] |
ctx = cairo.Context(surface) | new = cairo.ImageSurface(cairo.FORMAT_ARGB32, w, h) ctx = cairo.Context(new) ctx.set_source_surface(surface) ctx.paint() | def command_bright(self, surface, strength = None, strenght = None): | 4369f4e84f41c9c7272b6e02593281096b5905e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/4369f4e84f41c9c7272b6e02593281096b5905e6/dockbarx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
31070,
12,
2890,
16,
9034,
16,
21638,
273,
599,
16,
384,
1187,
75,
647,
273,
599,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
31070,
12,
2890,
16,
9034,
16,
21638,
273,
599,
16,
384,
1187,
75,
647,
273,
599,
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
] |
<link rel=icon href="http://www.whatwg.org/images/icon"> | def startFormatting(title, identifier, source): document = """Content-Type:text/html;charset=UTF-8 | f5f4c3ed6200811f1911f1b21ca420f1c2697ec6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5033/f5f4c3ed6200811f1911f1b21ca420f1c2697ec6/trackerlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
23974,
12,
2649,
16,
2756,
16,
1084,
4672,
1668,
273,
3536,
1350,
17,
559,
30,
955,
19,
2620,
31,
9999,
33,
5159,
17,
28,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
23974,
12,
2649,
16,
2756,
16,
1084,
4672,
1668,
273,
3536,
1350,
17,
559,
30,
955,
19,
2620,
31,
9999,
33,
5159,
17,
28,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
dw.open_file('bigimage.ora') | app.filehandler.open_file('bigimage.ora') | def scroll(app, zoom_func): dw = app.drawWindow dw.fullscreen_cb() dw.open_file('bigimage.ora') zoom_func() yield wait_for_idle t0 = time() N = 20 dx = linspace(-30, 30, N) dy = linspace(-10, 60, N) for i in xrange(N): dw.tdw.scroll(int(dx[i]), int(dy[i])) yield wait_for_idle print 'result = %.3f' % (time() - t0) | e05fe7b8daabcf47c31823aa4043da1a54a7c36e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/e05fe7b8daabcf47c31823aa4043da1a54a7c36e/test_performance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5532,
12,
2910,
16,
7182,
67,
644,
4672,
12394,
273,
595,
18,
9446,
3829,
12394,
18,
2854,
9252,
67,
7358,
1435,
595,
18,
768,
4176,
18,
3190,
67,
768,
2668,
14002,
2730,
18,
10610,
6134,
7182,
67,
644,
1435,
2824,
2529,
67,
1884,
67,
20390,
225,
268,
20,
273,
813,
1435,
423,
273,
4200,
6633,
273,
16228,
19236,
5082,
16,
5196,
16,
423,
13,
7732,
273,
16228,
19236,
2163,
16,
4752,
16,
423,
13,
364,
277,
316,
12314,
12,
50,
4672,
12394,
18,
4465,
91,
18,
12033,
12,
474,
12,
13437,
63,
77,
65,
3631,
509,
12,
15680,
63,
77,
22643,
2824,
2529,
67,
1884,
67,
20390,
225,
1172,
296,
2088,
273,
12639,
23,
74,
11,
738,
261,
957,
1435,
300,
268,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5532,
12,
2910,
16,
7182,
67,
644,
4672,
12394,
273,
595,
18,
9446,
3829,
12394,
18,
2854,
9252,
67,
7358,
1435,
595,
18,
768,
4176,
18,
3190,
67,
768,
2668,
14002,
2730,
18,
10610,
6134,
7182,
67,
644,
1435,
2824,
2529,
67,
1884,
67,
20390,
225,
268,
20,
273,
813,
1435,
423,
273,
4200,
6633,
273,
16228,
19236,
5082,
16,
5196,
16,
423,
13,
7732,
273,
16228,
19236,
2163,
16,
4752,
16,
423,
13,
364,
277,
316,
12314,
12,
50,
4672,
12394,
18,
4465,
91,
18,
12033,
12,
474,
12,
13437,
63,
77,
65,
3631,
509,
12,
15680,
63,
77,
22643,
2824,
2529,
67,
1884,
67,
20390,
225,
1172,
296,
2088,
273,
12639,
23,
74,
11,
738,
261,
2
] |
query += ' and (left_city=\'%s\' or right_city=\'%s\')' % cu | query += ' and (left_city=%s or right_city=%s)' params.extend([cu, cu]) | def search(self,street,number=None,predir=None,suffix=None,postdir=None,city=None,state=None,zipcode=None): query = 'select id, pretty_name, from_num, to_num, left_from_num, left_to_num, right_from_num, right_to_num, ST_AsEWKT(geom) from blocks where street=\'%s\'' % street.upper() if predir: query += ' and predir=\'%s\'' % predir.upper() if suffix: query += ' and suffix=\'%s\'' % predir.upper() if postdir: query += ' and postdir=\'%s\'' % predir.upper() if city: cu = city.upper() query += ' and (left_city=\'%s\' or right_city=\'%s\')' % cu if state: su = state.upper() query += ' and (left_state=\'%s\' or right_state=\'%s\')' % su if zipcode: query += ' and (left_zip=\'%s\' or right_zip=\'%s\')' % zipcode if number: query += ' and from_num <= %d and to_num >= %d' % (number, number) | 146f5caeba08f177fd122070a140f8a6fb089352 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14234/146f5caeba08f177fd122070a140f8a6fb089352/postgis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
22424,
16,
2696,
33,
7036,
16,
6510,
481,
33,
7036,
16,
8477,
33,
7036,
16,
2767,
1214,
33,
7036,
16,
14240,
33,
7036,
16,
2019,
33,
7036,
16,
4450,
710,
33,
7036,
4672,
843,
273,
296,
4025,
612,
16,
7517,
67,
529,
16,
628,
67,
2107,
16,
358,
67,
2107,
16,
2002,
67,
2080,
67,
2107,
16,
2002,
67,
869,
67,
2107,
16,
2145,
67,
2080,
67,
2107,
16,
2145,
67,
869,
67,
2107,
16,
2347,
67,
1463,
7245,
47,
56,
12,
10049,
13,
628,
4398,
1625,
19382,
31343,
9,
87,
11421,
738,
19382,
18,
5797,
1435,
309,
675,
1214,
30,
843,
1011,
296,
471,
675,
1214,
31343,
9,
87,
11421,
738,
675,
1214,
18,
5797,
1435,
309,
3758,
30,
843,
1011,
296,
471,
3758,
31343,
9,
87,
11421,
738,
675,
1214,
18,
5797,
1435,
309,
1603,
1214,
30,
843,
1011,
296,
471,
1603,
1214,
31343,
9,
87,
11421,
738,
675,
1214,
18,
5797,
1435,
309,
12797,
30,
15985,
273,
12797,
18,
5797,
1435,
843,
1011,
296,
471,
261,
4482,
67,
14240,
5095,
87,
578,
2145,
67,
14240,
5095,
87,
2506,
859,
18,
14313,
3816,
6319,
16,
15985,
5717,
309,
919,
30,
1597,
273,
919,
18,
5797,
1435,
843,
1011,
296,
471,
261,
4482,
67,
2019,
31343,
9,
87,
3730,
578,
2145,
67,
2019,
31343,
9,
87,
3730,
2506,
738,
1597,
309,
3144,
710,
30,
843,
1011,
296,
471,
261,
4482,
67,
4450,
31343,
9,
87,
3730,
578,
2145,
67,
4450,
31343,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
22424,
16,
2696,
33,
7036,
16,
6510,
481,
33,
7036,
16,
8477,
33,
7036,
16,
2767,
1214,
33,
7036,
16,
14240,
33,
7036,
16,
2019,
33,
7036,
16,
4450,
710,
33,
7036,
4672,
843,
273,
296,
4025,
612,
16,
7517,
67,
529,
16,
628,
67,
2107,
16,
358,
67,
2107,
16,
2002,
67,
2080,
67,
2107,
16,
2002,
67,
869,
67,
2107,
16,
2145,
67,
2080,
67,
2107,
16,
2145,
67,
869,
67,
2107,
16,
2347,
67,
1463,
7245,
47,
56,
12,
10049,
13,
628,
4398,
1625,
19382,
31343,
9,
87,
11421,
738,
19382,
18,
5797,
1435,
309,
675,
1214,
30,
843,
1011,
296,
471,
675,
1214,
31343,
9,
87,
11421,
738,
675,
1214,
2
] |
def find_node (graph, pos): | def find_node (self, graph, pos): | def find_node (graph, pos): vertex_map = graph.representations[VertexMap] for vertex in vertex_map: if vertex.inside (pos): return vertex | b6849e05b71d994e961472503902b3702fb53e36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/b6849e05b71d994e961472503902b3702fb53e36/Interpolate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2159,
261,
2890,
16,
2667,
16,
949,
4672,
5253,
67,
1458,
273,
2667,
18,
28205,
1012,
63,
6475,
863,
65,
364,
5253,
316,
5253,
67,
1458,
30,
309,
5253,
18,
28091,
261,
917,
4672,
327,
5253,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2159,
261,
2890,
16,
2667,
16,
949,
4672,
5253,
67,
1458,
273,
2667,
18,
28205,
1012,
63,
6475,
863,
65,
364,
5253,
316,
5253,
67,
1458,
30,
309,
5253,
18,
28091,
261,
917,
4672,
327,
5253,
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
] |
dflag - if True, display duration (in seconds) below progressbar | show_duration - if True, display duration (in seconds) below progressbar Return value: 0 if file reached desired size, 1 if user hit abort button. | def launch( self , nsteps, filename = '', caption = "Progress", message = "Calculating...", dflag = 0): """Launch a progress bar dialog and update while a file is being written. nsteps - total steps for the progress bar (final size in bytes of filename) filename - name of file we are waiting for. caption - dialog caption message - text that appears above the progress bar dflag - if True, display duration (in seconds) below progressbar """ self.abort = False filesize = 0 sinc = .1 self.stime = time.time() # This is a temporary fix for bug #490. Mark 050325 if caption == "Minimize": self.progress.hide() else: self.progress.show() | 6e1c14795243d66eb59048b7f96f992d0197cf29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/6e1c14795243d66eb59048b7f96f992d0197cf29/ProgressBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
12,
365,
269,
290,
8986,
16,
1544,
273,
10226,
11006,
273,
315,
5491,
3113,
883,
273,
315,
30238,
7070,
16,
302,
6420,
273,
374,
4672,
3536,
9569,
279,
4007,
4653,
6176,
471,
1089,
1323,
279,
585,
353,
3832,
5941,
18,
290,
8986,
300,
2078,
6075,
364,
326,
4007,
4653,
261,
6385,
963,
316,
1731,
434,
1544,
13,
1544,
300,
508,
434,
585,
732,
854,
7336,
364,
18,
11006,
300,
6176,
11006,
883,
300,
977,
716,
14606,
5721,
326,
4007,
4653,
2405,
67,
8760,
300,
309,
1053,
16,
2562,
3734,
261,
267,
3974,
13,
5712,
31730,
2000,
460,
30,
374,
309,
585,
8675,
6049,
963,
16,
404,
309,
729,
6800,
6263,
3568,
18,
3536,
225,
365,
18,
18623,
273,
1083,
14104,
273,
374,
5367,
71,
273,
263,
21,
365,
18,
334,
494,
273,
813,
18,
957,
1435,
225,
468,
1220,
353,
279,
6269,
2917,
364,
7934,
468,
7616,
20,
18,
225,
6622,
374,
3361,
1578,
25,
309,
11006,
422,
315,
2930,
10153,
6877,
365,
18,
8298,
18,
11248,
1435,
469,
30,
365,
18,
8298,
18,
4500,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8037,
12,
365,
269,
290,
8986,
16,
1544,
273,
10226,
11006,
273,
315,
5491,
3113,
883,
273,
315,
30238,
7070,
16,
302,
6420,
273,
374,
4672,
3536,
9569,
279,
4007,
4653,
6176,
471,
1089,
1323,
279,
585,
353,
3832,
5941,
18,
290,
8986,
300,
2078,
6075,
364,
326,
4007,
4653,
261,
6385,
963,
316,
1731,
434,
1544,
13,
1544,
300,
508,
434,
585,
732,
854,
7336,
364,
18,
11006,
300,
6176,
11006,
883,
300,
977,
716,
14606,
5721,
326,
4007,
4653,
2405,
67,
8760,
300,
309,
1053,
16,
2562,
3734,
261,
267,
3974,
13,
5712,
31730,
2000,
460,
30,
374,
309,
585,
8675,
6049,
963,
16,
404,
309,
729,
6800,
6263,
3568,
18,
3536,
225,
365,
18,
18623,
2
] |
[major, minor] = version.split('.')[:2] return "%s.%s" % (major, minor) | [major, minor, patchlevel] = version.split('.')[:3] out = "%s.%s.%s" % (major, minor, patchlevel) if out != version: out += "+" return out | def trim_version(self, version = CFG_VERSION): """Take CFG_VERSION and return a sanitized version for display""" | e8c018603a7fd34a430130d15b421223ebe34636 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14116/e8c018603a7fd34a430130d15b421223ebe34636/webstyle_templates_inspire.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2209,
67,
1589,
12,
2890,
16,
1177,
273,
7577,
67,
5757,
4672,
3536,
13391,
7577,
67,
5757,
471,
327,
279,
16611,
1177,
364,
2562,
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,
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7577,
67,
5757,
4672,
3536,
13391,
7577,
67,
5757,
471,
327,
279,
16611,
1177,
364,
2562,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.