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
|
---|---|---|---|---|---|---|
self.data = [1] | self.data = [1,1] | def __init__(self): self.x = 0 self.y = 0 self.width = 100 self.height = 100 self.data = [1] self.labels = None # or list of strings self.startAngle = 90 self.direction = "clockwise" | ae98fe1a4e38594839cd1a4dc3f19a361611dcf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/ae98fe1a4e38594839cd1a4dc3f19a361611dcf1/doughnut.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
92,
273,
374,
365,
18,
93,
273,
374,
365,
18,
2819,
273,
2130,
365,
18,
4210,
273,
2130,
365,
18,
892,
273,
306,
21,
16,
21,
65,
365,
18,
5336,
273,
599,
225,
468,
578,
666,
434,
2064,
365,
18,
1937,
8467,
273,
8566,
365,
18,
9855,
273,
315,
18517,
2460,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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578,
666,
434,
2064,
365,
18,
1937,
8467,
273,
8566,
365,
18,
9855,
273,
315,
18517,
2460,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
neighbors=self.successor_iterator yield u seen={} queue=[u] seen[u]=True while queue: v=queue.pop(0) for w in neighbors(v): if w not in seen: seen[w]=True queue.append(w) yield w def depth_first_search(self, u, ignore_direction=False): """ Returns an iterator over vertices in a depth-first ordering. | queue=[(start,0)] for v,d in queue: yield v seen.add(v) while len(queue)>0: v,d = queue.pop(0) if distance is None or d<distance: for w in neighbors(v): if w not in seen: seen.add(w) queue.append((w, d+1)) yield w def depth_first_search(self, start, ignore_direction=False, distance=None, neighbors=None): """ Returns an iterator over the vertices in a depth-first ordering. | def breadth_first_search(self, u, ignore_direction=False): """ Returns an iterator over vertices in a breadth-first ordering. INPUT: - ``u`` - vertex at which to start search - ``ignore_direction`` - (default False) only applies to directed graphs. If True, searches across edges in either direction. EXAMPLES:: sage: G = Graph( { 0: {1: 1}, 1: {2: 1}, 2: {3: 1}, 3: {4: 2}, 4: {0: 2} } ) sage: list(G.breadth_first_search(0)) [0, 1, 4, 2, 3] sage: list(G.depth_first_search(0)) [0, 4, 3, 2, 1] :: sage: D = DiGraph( { 0: {1: 1}, 1: {2: 1}, 2: {3: 1}, 3: {4: 2}, 4: {0: 2} } ) sage: list(D.breadth_first_search(0)) [0, 1, 2, 3, 4] sage: list(D.depth_first_search(0)) [0, 1, 2, 3, 4] :: sage: D = DiGraph({1:[0], 2:[0]}) sage: list(D.breadth_first_search(0)) [0] sage: list(D.breadth_first_search(0, ignore_direction=True)) [0, 1, 2] """ # This function is straight from an old version of networkx if not self._directed or ignore_direction: neighbors=self.neighbor_iterator else: neighbors=self.successor_iterator # nlist=[u] # list of nodes in a BFS order yield u seen={} # nodes seen queue=[u] # FIFO queue seen[u]=True while queue: v=queue.pop(0) # this is expensive, should use a faster FIFO queue for w in neighbors(v): if w not in seen: seen[w]=True queue.append(w) # nlist.append(w) yield w # return nlist | 4561fbd2b46645f5e3fb1c16b7f1c4e121dc90a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/4561fbd2b46645f5e3fb1c16b7f1c4e121dc90a0/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
25254,
67,
3645,
67,
3072,
12,
2890,
16,
582,
16,
2305,
67,
9855,
33,
8381,
4672,
3536,
2860,
392,
2775,
1879,
6928,
316,
279,
324,
25254,
17,
3645,
9543,
18,
225,
12943,
30,
282,
300,
225,
12176,
89,
10335,
300,
5253,
622,
1492,
358,
787,
1623,
225,
300,
225,
12176,
6185,
67,
9855,
10335,
300,
261,
1886,
1083,
13,
1338,
10294,
358,
20830,
19422,
18,
971,
1053,
16,
16662,
10279,
5231,
316,
3344,
4068,
18,
282,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
5601,
12,
288,
374,
30,
288,
21,
30,
404,
5779,
404,
30,
288,
22,
30,
404,
5779,
576,
30,
288,
23,
30,
404,
5779,
890,
30,
288,
24,
30,
576,
5779,
1059,
30,
288,
20,
30,
576,
97,
289,
262,
272,
410,
30,
666,
12,
43,
18,
70,
25254,
67,
3645,
67,
3072,
12,
20,
3719,
306,
20,
16,
404,
16,
1059,
16,
576,
16,
890,
65,
272,
410,
30,
666,
12,
43,
18,
5979,
67,
3645,
67,
3072,
12,
20,
3719,
306,
20,
16,
1059,
16,
890,
16,
576,
16,
404,
65,
225,
493,
225,
272,
410,
30,
463,
273,
12508,
4137,
12,
288,
374,
30,
288,
21,
30,
404,
5779,
404,
30,
288,
22,
30,
404,
5779,
576,
30,
288,
23,
30,
404,
5779,
890,
30,
288,
24,
30,
576,
5779,
1059,
30,
288,
20,
30,
576,
97,
289,
262,
272,
410,
30,
666,
12,
40,
18,
70,
25254,
67,
3645,
67,
3072,
12,
20,
3719,
306,
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,
324,
25254,
67,
3645,
67,
3072,
12,
2890,
16,
582,
16,
2305,
67,
9855,
33,
8381,
4672,
3536,
2860,
392,
2775,
1879,
6928,
316,
279,
324,
25254,
17,
3645,
9543,
18,
225,
12943,
30,
282,
300,
225,
12176,
89,
10335,
300,
5253,
622,
1492,
358,
787,
1623,
225,
300,
225,
12176,
6185,
67,
9855,
10335,
300,
261,
1886,
1083,
13,
1338,
10294,
358,
20830,
19422,
18,
971,
1053,
16,
16662,
10279,
5231,
316,
3344,
4068,
18,
282,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
5601,
12,
288,
374,
30,
288,
21,
30,
404,
5779,
404,
30,
288,
22,
30,
404,
5779,
576,
30,
288,
23,
30,
404,
5779,
890,
30,
288,
24,
30,
576,
5779,
2
] |
begin_pos = format.find("(", end_pos) | begin_pos = format.find("{", end_pos) | def parse_formatting_return_substrings(self, format): substrings = [] begin_pos = format.find("(") end_pos = -1 while begin_pos > -1: if begin_pos > end_pos + 1: substrings.append(format[end_pos+1:begin_pos]) end_pos = format.find(")", begin_pos) substrings.append(format[begin_pos:end_pos+1]) begin_pos = format.find("(", end_pos) if end_pos+1 < len(format): substrings.append(format[end_pos+1:len(format)]) return substrings | a5f7acb09c96a8aa0f3ad41d3b5c956ee7e575ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/a5f7acb09c96a8aa0f3ad41d3b5c956ee7e575ce/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2139,
1787,
67,
2463,
67,
1717,
10219,
12,
2890,
16,
740,
4672,
3019,
87,
273,
5378,
2376,
67,
917,
273,
740,
18,
4720,
2932,
2932,
13,
679,
67,
917,
273,
300,
21,
1323,
2376,
67,
917,
405,
300,
21,
30,
309,
2376,
67,
917,
405,
679,
67,
917,
397,
404,
30,
3019,
87,
18,
6923,
12,
2139,
63,
409,
67,
917,
15,
21,
30,
10086,
67,
917,
5717,
679,
67,
917,
273,
740,
18,
4720,
2932,
2225,
16,
2376,
67,
917,
13,
3019,
87,
18,
6923,
12,
2139,
63,
10086,
67,
917,
30,
409,
67,
917,
15,
21,
5717,
2376,
67,
917,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2139,
1787,
67,
2463,
67,
1717,
10219,
12,
2890,
16,
740,
4672,
3019,
87,
273,
5378,
2376,
67,
917,
273,
740,
18,
4720,
2932,
2932,
13,
679,
67,
917,
273,
300,
21,
1323,
2376,
67,
917,
405,
300,
21,
30,
309,
2376,
67,
917,
405,
679,
67,
917,
397,
404,
30,
3019,
87,
18,
6923,
12,
2139,
63,
409,
67,
917,
15,
21,
30,
10086,
67,
917,
5717,
679,
67,
917,
273,
740,
18,
4720,
2932,
2225,
16,
2376,
67,
917,
13,
3019,
87,
18,
6923,
12,
2139,
63,
10086,
67,
917,
30,
409,
67,
917,
15,
21,
5717,
2376,
67,
917,
273,
740,
18,
4720,
2932,
95,
3113,
679,
67,
917,
13,
309,
679,
67,
2
] |
host.ensure_up() | host.wait_up(timeout=30) | def run(self, control_file, results_dir = '.', host = None, timeout=None): """ Run an autotest job on the remote machine. Args: control_file: an open file-like-obj of the control file results_dir: a str path where the results should be stored on the local filesystem host: a Host instance on which the control file should be run Raises: AutotestRunError: if there is a problem executing the control file """ results_dir = os.path.abspath(results_dir) if not host: host = self.host if not self.installed: self.install(host) | 0ad1d8b9ee781d694fc8b2408af6261e0543551e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/0ad1d8b9ee781d694fc8b2408af6261e0543551e/autotest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
3325,
67,
768,
16,
1686,
67,
1214,
273,
2611,
16,
1479,
273,
599,
16,
2021,
33,
7036,
4672,
3536,
1939,
392,
2059,
352,
395,
1719,
603,
326,
2632,
5228,
18,
225,
6634,
30,
3325,
67,
768,
30,
392,
1696,
585,
17,
5625,
17,
2603,
434,
326,
3325,
585,
1686,
67,
1214,
30,
279,
609,
589,
1625,
326,
1686,
1410,
506,
4041,
603,
326,
1191,
6496,
1479,
30,
279,
4893,
791,
603,
1492,
326,
3325,
585,
1410,
506,
1086,
225,
20497,
30,
11809,
352,
395,
1997,
668,
30,
309,
1915,
353,
279,
6199,
11274,
326,
3325,
585,
3536,
1686,
67,
1214,
273,
1140,
18,
803,
18,
5113,
803,
12,
4717,
67,
1214,
13,
309,
486,
1479,
30,
1479,
273,
365,
18,
2564,
309,
486,
365,
18,
13435,
30,
365,
18,
5425,
12,
2564,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
3325,
67,
768,
16,
1686,
67,
1214,
273,
2611,
16,
1479,
273,
599,
16,
2021,
33,
7036,
4672,
3536,
1939,
392,
2059,
352,
395,
1719,
603,
326,
2632,
5228,
18,
225,
6634,
30,
3325,
67,
768,
30,
392,
1696,
585,
17,
5625,
17,
2603,
434,
326,
3325,
585,
1686,
67,
1214,
30,
279,
609,
589,
1625,
326,
1686,
1410,
506,
4041,
603,
326,
1191,
6496,
1479,
30,
279,
4893,
791,
603,
1492,
326,
3325,
585,
1410,
506,
1086,
225,
20497,
30,
11809,
352,
395,
1997,
668,
30,
309,
1915,
353,
279,
6199,
11274,
326,
3325,
585,
3536,
1686,
67,
1214,
273,
1140,
18,
803,
18,
5113,
803,
12,
4717,
67,
1214,
13,
309,
486,
2
] |
color = (255, 0, 0) | color = color_dot | def draw_answers(self, frozen, solutions, model, correct, good, bad, undet, im_id = None): base = 0 color_good = (0, 164, 0) color_bad = (0, 0, 255) color_dot = (255, 0, 0) color = (255, 0, 0) if self.status['cells']: for corners in self.corner_matrixes: for i in range(0, len(corners) - 1): d = self.decisions[base + i] if d > 0: if correct is not None: if correct[base + i]: color = color_good else: color = color_bad draw_cell_highlight(self.image_drawn, self.centers[base + i][d - 1], self.diagonals[base + i][d - 1], color) if solutions is not None and not correct[base + i]: ans = solutions[base + i] draw_cell_center(self.image_drawn, self.centers[base + i][ans - 1], color_dot) base += len(corners) - 1 if model is not None: text = "Model %s: %d / %d"%(chr(65 + model), good, bad) else: text = "Model ?: %d / %d"%(good, bad) if undet > 0: color = (0, 0, 255) text = text + " / " + str(undet) else: color = (255, 0, 0) draw_text(self.image_drawn, text, color, (10, self.image_drawn.height - 20)) if frozen: if im_id is not None: if self.status['infobits'] and model is not None: color = (255, 0, 0) else: color = (0, 0, 255) draw_text(self.image_drawn, str(im_id), color, (10, 65)) if self.id is not None: draw_text(self.image_drawn, self.id, color_dot, (10, 30)) else: self.draw_status_bar() if self.options['show-status']: self.draw_status_flags() self.draw_hough_threshold() | cae754875f5de1816d975292ac57ceee57d8654e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12267/cae754875f5de1816d975292ac57ceee57d8654e/imageproc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
22340,
12,
2890,
16,
12810,
16,
22567,
16,
938,
16,
3434,
16,
7494,
16,
5570,
16,
640,
8238,
16,
709,
67,
350,
273,
599,
4672,
1026,
273,
374,
2036,
67,
19747,
273,
261,
20,
16,
404,
1105,
16,
374,
13,
2036,
67,
8759,
273,
261,
20,
16,
374,
16,
4561,
13,
2036,
67,
9811,
273,
261,
10395,
16,
374,
16,
374,
13,
2036,
273,
2036,
67,
9811,
309,
365,
18,
2327,
3292,
14741,
3546,
30,
364,
18398,
316,
365,
18,
30519,
67,
5667,
281,
30,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
3850,
9646,
13,
300,
404,
4672,
302,
273,
365,
18,
4924,
12682,
63,
1969,
397,
277,
65,
309,
302,
405,
374,
30,
309,
3434,
353,
486,
599,
30,
309,
3434,
63,
1969,
397,
277,
14542,
2036,
273,
2036,
67,
19747,
469,
30,
2036,
273,
2036,
67,
8759,
3724,
67,
3855,
67,
15978,
12,
2890,
18,
2730,
67,
9446,
82,
16,
365,
18,
20051,
63,
1969,
397,
277,
6362,
72,
300,
404,
6487,
365,
18,
12264,
265,
1031,
63,
1969,
397,
277,
6362,
72,
300,
404,
6487,
2036,
13,
309,
22567,
353,
486,
599,
471,
486,
3434,
63,
1969,
397,
277,
14542,
4152,
273,
22567,
63,
1969,
397,
277,
65,
3724,
67,
3855,
67,
5693,
12,
2890,
18,
2730,
67,
9446,
82,
16,
365,
18,
20051,
63,
1969,
397,
277,
6362,
634,
300,
404,
6487,
2036,
67,
9811,
13,
1026,
1011,
562,
12,
3850,
9646,
13,
300,
404,
309,
938,
353,
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,
67,
22340,
12,
2890,
16,
12810,
16,
22567,
16,
938,
16,
3434,
16,
7494,
16,
5570,
16,
640,
8238,
16,
709,
67,
350,
273,
599,
4672,
1026,
273,
374,
2036,
67,
19747,
273,
261,
20,
16,
404,
1105,
16,
374,
13,
2036,
67,
8759,
273,
261,
20,
16,
374,
16,
4561,
13,
2036,
67,
9811,
273,
261,
10395,
16,
374,
16,
374,
13,
2036,
273,
2036,
67,
9811,
309,
365,
18,
2327,
3292,
14741,
3546,
30,
364,
18398,
316,
365,
18,
30519,
67,
5667,
281,
30,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
3850,
9646,
13,
300,
404,
4672,
302,
273,
365,
18,
4924,
12682,
63,
1969,
397,
277,
65,
309,
302,
405,
374,
30,
2
] |
self.menu_entries.set_entry("File/Export",1,self.gdal_tool_cb) def gdal_tool_cb(self,*args): | self.menu_entries.set_entry("File/Export", 1, self.gdal_tool_cb) def gdal_tool_cb(self, *args): | def init_menu(self): self.menu_entries.set_entry("File/Export",1,self.gdal_tool_cb) | 18bebfddf000a5af98d1ab83e4246e700756e2a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/18bebfddf000a5af98d1ab83e4246e700756e2a4/Tool_Export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
5414,
12,
2890,
4672,
365,
18,
5414,
67,
8219,
18,
542,
67,
4099,
2932,
812,
19,
6144,
3113,
21,
16,
2890,
18,
19016,
287,
67,
6738,
67,
7358,
13,
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,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
5414,
12,
2890,
4672,
365,
18,
5414,
67,
8219,
18,
542,
67,
4099,
2932,
812,
19,
6144,
3113,
21,
16,
2890,
18,
19016,
287,
67,
6738,
67,
7358,
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
] |
parser_output_zpt.feed(output_html) | parser_output_zpt.feed(text) | def send(self): """Sends the newsletter """ # preparations request = self.REQUEST enl = self.aq_inner.aq_parent | d67238bd61facb19b2081e8d9a7312150d54dd69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5110/d67238bd61facb19b2081e8d9a7312150d54dd69/ENLIssue.py | [
1,
8585,
326,
22398,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
4672,
3536,
10501,
326,
14783,
13449,
3536,
468,
675,
1065,
1012,
590,
273,
365,
18,
5519,
570,
80,
273,
365,
18,
69,
85,
67,
7872,
18,
69,
85,
67,
2938,
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
] |
self.priv["tasklist"]["columns"].insert(self.TASKLIST_COL_DDATE, ddate_col) | self.priv["tasklist"]["columns"].insert( self.TASKLIST_COL_DDATE, ddate_col) | def __create_task_tview(self): | fac54dcba973acc5967f43b60fb540659a1a87a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/fac54dcba973acc5967f43b60fb540659a1a87a8/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
67,
4146,
67,
88,
1945,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2640,
67,
4146,
67,
88,
1945,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ref_obj = self.pool.get(field._obj) if ref_obj: ref = ref_obj._table | if field._obj in ('res.user', 'res.group'): ref = field._obj.replace('.','_') | "has changed size (DB = %d, def = %d), strings will be truncated !" % \ (k, self._table, f_pg_size, field.size)) | 41956ffcbcbbddc0f33819219e60421c2889691f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/41956ffcbcbbddc0f33819219e60421c2889691f/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
315,
5332,
3550,
963,
261,
2290,
273,
738,
72,
16,
1652,
273,
738,
72,
3631,
2064,
903,
506,
15282,
29054,
738,
521,
261,
79,
16,
365,
6315,
2121,
16,
284,
67,
8365,
67,
1467,
16,
652,
18,
1467,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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738,
521,
261,
79,
16,
365,
6315,
2121,
16,
284,
67,
8365,
67,
1467,
16,
652,
18,
1467,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
The returned mesh is not compacted. | The returned Mesh is not compacted. The complimentary operation is `unselect`. | def select(self,selected): """Return a mesh with selected elements from the original. | 1535ec04433cfb4131e357412c0648be4a5d903a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2499/1535ec04433cfb4131e357412c0648be4a5d903a/mesh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
8109,
4672,
3536,
990,
279,
6986,
598,
3170,
2186,
628,
326,
2282,
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,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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,
2027,
12,
2890,
16,
8109,
4672,
3536,
990,
279,
6986,
598,
3170,
2186,
628,
326,
2282,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
k = self.k | def block_order(self): """ Return a block order for self where each round is a block. | cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
67,
1019,
12,
2890,
4672,
3536,
2000,
279,
1203,
1353,
364,
365,
1625,
1517,
3643,
353,
279,
1203,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
67,
1019,
12,
2890,
4672,
3536,
2000,
279,
1203,
1353,
364,
365,
1625,
1517,
3643,
353,
279,
1203,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
django.core.management.call_command("loaddata", fixture_labels=['initial_version'], verbosity=0) | django.core.management.call_command("loaddata", 'initial_version.xml', verbosity=0) | def dosync(): """Function to do the syncronisation for the models""" # try to detect if it's a fresh new database try: cursor = connection.cursor() # If this table goes missing then don't forget to change it to the new one cursor.execute("Select * from reports_client") # if we get here with no error then the database has existing tables fresh = False except: logger.debug("there was an error while detecting the freshness of the database") #we should get here if the database is new fresh = True # ensure database connection are close, so that the management can do it's job right cursor.close() connection.close() # Do the syncdb according to the django version if "call_command" in dir(django.core.management): # this is available since django 1.0 alpha. # not yet tested for full functionnality django.core.management.call_command("syncdb", interactive=False, verbosity=0) if fresh: django.core.management.call_command("loaddata", fixture_labels=['initial_version'], verbosity=0) elif "syncdb" in dir(django.core.management): # this exist only for django 0.96.* django.core.management.syncdb(interactive=False, verbosity=0) if fresh: logger.debug("loading the initial_version fixtures") django.core.management.load_data(fixture_labels=['initial_version'], verbosity=0) else: logger.warning("Don't forget to run syncdb") | a4c1a4a486e581009f54aa4c0afabb3d2c601e86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/a4c1a4a486e581009f54aa4c0afabb3d2c601e86/updatefix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16153,
1209,
13332,
3536,
2083,
358,
741,
326,
3792,
1949,
10742,
364,
326,
3679,
8395,
468,
775,
358,
5966,
309,
518,
1807,
279,
12186,
394,
2063,
775,
30,
3347,
273,
1459,
18,
9216,
1435,
468,
971,
333,
1014,
13998,
3315,
1508,
2727,
1404,
13776,
358,
2549,
518,
358,
326,
394,
1245,
3347,
18,
8837,
2932,
3391,
380,
628,
10557,
67,
2625,
7923,
468,
309,
732,
336,
2674,
598,
1158,
555,
1508,
326,
2063,
711,
2062,
4606,
12186,
273,
1083,
1335,
30,
1194,
18,
4148,
2932,
18664,
1703,
392,
555,
1323,
5966,
310,
326,
12186,
4496,
434,
326,
2063,
7923,
468,
1814,
1410,
336,
2674,
309,
326,
2063,
353,
394,
12186,
273,
1053,
225,
468,
3387,
2063,
1459,
854,
1746,
16,
1427,
716,
326,
11803,
848,
741,
518,
1807,
1719,
2145,
3347,
18,
4412,
1435,
1459,
18,
4412,
1435,
468,
2256,
326,
3792,
1966,
4888,
358,
326,
13710,
1177,
309,
315,
1991,
67,
3076,
6,
316,
1577,
12,
24573,
18,
3644,
18,
17381,
4672,
468,
333,
353,
2319,
3241,
13710,
404,
18,
20,
4190,
18,
468,
486,
4671,
18432,
364,
1983,
445,
82,
7919,
13710,
18,
3644,
18,
17381,
18,
1991,
67,
3076,
2932,
8389,
1966,
3113,
12625,
33,
8381,
16,
11561,
33,
20,
13,
309,
12186,
30,
13710,
18,
3644,
18,
17381,
18,
1991,
67,
3076,
2932,
945,
892,
3113,
296,
6769,
67,
1589,
18,
2902,
2187,
11561,
33,
20,
13,
1327,
315,
8389,
1966,
6,
316,
1577,
12,
24573,
18,
3644,
18,
17381,
4672,
468,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16153,
1209,
13332,
3536,
2083,
358,
741,
326,
3792,
1949,
10742,
364,
326,
3679,
8395,
468,
775,
358,
5966,
309,
518,
1807,
279,
12186,
394,
2063,
775,
30,
3347,
273,
1459,
18,
9216,
1435,
468,
971,
333,
1014,
13998,
3315,
1508,
2727,
1404,
13776,
358,
2549,
518,
358,
326,
394,
1245,
3347,
18,
8837,
2932,
3391,
380,
628,
10557,
67,
2625,
7923,
468,
309,
732,
336,
2674,
598,
1158,
555,
1508,
326,
2063,
711,
2062,
4606,
12186,
273,
1083,
1335,
30,
1194,
18,
4148,
2932,
18664,
1703,
392,
555,
1323,
5966,
310,
326,
12186,
4496,
434,
326,
2063,
7923,
468,
1814,
1410,
336,
2674,
309,
326,
2063,
353,
394,
12186,
273,
1053,
225,
468,
3387,
2063,
1459,
854,
2
] |
player.physics.add(physics.speed_limiter((10, 8000)), components.physics.GROUP_VELOCITY) | player.physics.add(physics.speed_limiter((10, 10000)), components.physics.GROUP_VELOCITY) | def create_viking(datadir, clock, keyboard, key_left, key_right, key_jump, key_punch): idle_right = load_frame(datadir, 'model') idle_left = flip_frame(idle_right) punch_frames_right = load_frame_sequence(datadir, 'punch', 3) punch_frames_left = map(flip_frame, punch_frames_right) punch_frames_right = [idle_right] + punch_frames_right punch_frames_left = [idle_left] + punch_frames_left punch_delays = [2, 8, 6, 8, 2] punch_frames_right = list(iterate_with_delays(punch_frames_right, punch_delays)) punch_frames_left = list(iterate_with_delays(punch_frames_left, punch_delays)) run_frames_right = load_frame_sequence(datadir, 'run', 6) run_frames_left = map(flip_frame, run_frames_right) run_delays = [5] * 6 run_frames_right = list(iterate_with_delays(run_frames_right, run_delays)) run_frames_left = list(iterate_with_delays(run_frames_left, run_delays)) jump_frames_right = load_frame_sequence(datadir, 'jump', 4) jump_frames_left = map(flip_frame, jump_frames_right) jump_delays = [3, 15, 18, 20] jump_frames_right = list(iterate_with_delays(jump_frames_right, jump_delays)) jump_frames_left = list(iterate_with_delays(jump_frames_left, jump_delays)) player = components.entity('Player', clock, keyboard, location=(0, 0), motion=components.motion(), hitbox_passive=idle_right['hbp'], hitbox_active=idle_right['hba'], graphics=components.graphics(idle_right['sprite'], idle_right['sp'])) physics.regular_physics(player) player.physics.add(physics.ground_limiter(550), components.physics.GROUP_LOCATION) player.physics.add(wall, components.physics.GROUP_LOCATION) player.physics.add(physics.apply_friction(3), components.physics.GROUP_VELOCITY) player.physics.add(physics.speed_limiter((10, 8000)), components.physics.GROUP_VELOCITY) # movement left/right idle_right_state = controls.looped_animation(player, [idle_right], (0, 0)) idle_left_state = controls.looped_animation(player, [idle_left], (0, 0)) walk_right_state = controls.loop_while_keydown(player, run_frames_right, (5, 0), key_right, idle_right_state) walk_left_state = controls.loop_while_keydown(player, run_frames_left, (-5, 0), key_left, idle_left_state) jump_right_state = controls.animation_while_keydown(player, jump_frames_right, key_jump, idle_right_state) jump_left_state = controls.animation_while_keydown(player, jump_frames_left, key_jump, idle_left_state) jump_right_walk_state = controls.animation_while_keydown(player, jump_frames_right, key_jump, walk_right_state) jump_left_walk_state = controls.animation_while_keydown(player, jump_frames_left, key_jump, walk_left_state) punch_right_state = controls.animation(player, punch_frames_right, idle_right_state) punch_left_state = controls.animation(player, punch_frames_left, idle_left_state) idle_right_state.transitions[key_left] = walk_left_state idle_right_state.transitions[key_right] = walk_right_state idle_right_state.transitions[key_punch] = punch_right_state idle_right_state.transitions[key_jump] = jump_right_state idle_left_state.transitions[key_left] = walk_left_state idle_left_state.transitions[key_right] = walk_right_state idle_left_state.transitions[key_punch] = punch_left_state idle_left_state.transitions[key_jump] = jump_left_state walk_right_state.transitions[key_left] = walk_left_state walk_right_state.transitions[key_punch] = punch_right_state walk_right_state.transitions[key_jump] = jump_right_walk_state walk_left_state.transitions[key_right] = walk_right_state walk_left_state.transitions[key_punch] = punch_left_state walk_left_state.transitions[key_jump] = jump_left_walk_state idle_right_state.start() # jumping controls.jump_when_key_pressed(player, key_jump, (0, -3.0), 12) return player | 908436b7a4b343bf9640611d4cf7a63b56f6f6a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13911/908436b7a4b343bf9640611d4cf7a63b56f6f6a4/project_viking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
522,
79,
310,
12,
3404,
361,
481,
16,
7268,
16,
16263,
16,
498,
67,
4482,
16,
498,
67,
4083,
16,
498,
67,
24574,
16,
498,
67,
84,
4384,
4672,
12088,
67,
4083,
273,
1262,
67,
3789,
12,
3404,
361,
481,
16,
296,
2284,
6134,
12088,
67,
4482,
273,
9668,
67,
3789,
12,
20390,
67,
4083,
13,
225,
293,
4384,
67,
10278,
67,
4083,
273,
1262,
67,
3789,
67,
6178,
12,
3404,
361,
481,
16,
296,
84,
4384,
2187,
890,
13,
293,
4384,
67,
10278,
67,
4482,
273,
852,
12,
12357,
67,
3789,
16,
293,
4384,
67,
10278,
67,
4083,
13,
293,
4384,
67,
10278,
67,
4083,
273,
306,
20390,
67,
4083,
65,
397,
293,
4384,
67,
10278,
67,
4083,
293,
4384,
67,
10278,
67,
4482,
273,
306,
20390,
67,
4482,
65,
397,
293,
4384,
67,
10278,
67,
4482,
293,
4384,
67,
3771,
8271,
273,
306,
22,
16,
1725,
16,
1666,
16,
1725,
16,
576,
65,
293,
4384,
67,
10278,
67,
4083,
273,
666,
12,
18793,
67,
1918,
67,
3771,
8271,
12,
84,
4384,
67,
10278,
67,
4083,
16,
293,
4384,
67,
3771,
8271,
3719,
293,
4384,
67,
10278,
67,
4482,
273,
666,
12,
18793,
67,
1918,
67,
3771,
8271,
12,
84,
4384,
67,
10278,
67,
4482,
16,
293,
4384,
67,
3771,
8271,
3719,
225,
1086,
67,
10278,
67,
4083,
273,
1262,
67,
3789,
67,
6178,
12,
3404,
361,
481,
16,
296,
2681,
2187,
1666,
13,
1086,
67,
10278,
67,
4482,
273,
852,
12,
12357,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
522,
79,
310,
12,
3404,
361,
481,
16,
7268,
16,
16263,
16,
498,
67,
4482,
16,
498,
67,
4083,
16,
498,
67,
24574,
16,
498,
67,
84,
4384,
4672,
12088,
67,
4083,
273,
1262,
67,
3789,
12,
3404,
361,
481,
16,
296,
2284,
6134,
12088,
67,
4482,
273,
9668,
67,
3789,
12,
20390,
67,
4083,
13,
225,
293,
4384,
67,
10278,
67,
4083,
273,
1262,
67,
3789,
67,
6178,
12,
3404,
361,
481,
16,
296,
84,
4384,
2187,
890,
13,
293,
4384,
67,
10278,
67,
4482,
273,
852,
12,
12357,
67,
3789,
16,
293,
4384,
67,
10278,
67,
4083,
13,
293,
4384,
67,
10278,
67,
4083,
273,
306,
20390,
67,
4083,
65,
397,
293,
4384,
67,
2
] |
sys.stderr.write(msg+'\n') | sys.stderr.write(msg+'\\n') | def selfdoc(): 'Display man page' prognm = os.path.basename(sys.argv[0]) if prognm[0] == 'M' and prognm[-3:] == '.py': # User testing code in his local directory prognm = 'sf' + prognm[1:-3] msg = 'Self-doc may be out of synch, do "scons install" in RSFSRC' sys.stderr.write(msg+'\n') prog = rsfdoc.progs.get(prognm) if prog != None: prog.document() else: sys.stderr.write('No installed man page for ' + prognm+'\n') | 177b8c46b320b00293440533725050670da01b64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3143/177b8c46b320b00293440533725050670da01b64/rsfdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
365,
2434,
13332,
296,
4236,
3161,
1363,
11,
450,
1600,
81,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
5717,
309,
450,
1600,
81,
63,
20,
65,
422,
296,
49,
11,
471,
450,
1600,
81,
18919,
23,
26894,
422,
2418,
2074,
4278,
468,
2177,
7769,
981,
316,
18423,
1191,
1867,
450,
1600,
81,
273,
296,
21668,
11,
397,
450,
1600,
81,
63,
21,
30,
17,
23,
65,
1234,
273,
296,
10084,
17,
2434,
2026,
506,
596,
434,
272,
2515,
16,
741,
315,
87,
8559,
3799,
6,
316,
14746,
4931,
11529,
11,
2589,
18,
11241,
18,
2626,
12,
3576,
6797,
1695,
82,
6134,
225,
11243,
273,
3597,
74,
2434,
18,
685,
564,
18,
588,
12,
685,
1600,
81,
13,
309,
11243,
480,
599,
30,
11243,
18,
5457,
1435,
469,
30,
2589,
18,
11241,
18,
2626,
2668,
2279,
5876,
3161,
1363,
364,
296,
397,
450,
1600,
81,
6797,
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,
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803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
5717,
309,
450,
1600,
81,
63,
20,
65,
422,
296,
49,
11,
471,
450,
1600,
81,
18919,
23,
26894,
422,
2418,
2074,
4278,
468,
2177,
7769,
981,
316,
18423,
1191,
1867,
450,
1600,
81,
273,
296,
21668,
11,
397,
450,
1600,
81,
63,
21,
30,
17,
23,
65,
1234,
273,
296,
10084,
17,
2434,
2026,
506,
596,
434,
272,
2515,
16,
741,
315,
87,
8559,
3799,
6,
316,
14746,
4931,
11529,
11,
2589,
18,
11241,
18,
2626,
12,
3576,
6797,
1695,
82,
6134,
225,
11243,
273,
3597,
74,
2434,
18,
685,
564,
18,
588,
12,
2
] |
{'candela':'SI base unit of luminous intensity.\nDefined to be the luminous intensity, in a given direction, of a source that emits monochromatic radiation of frequency 540*10^12 hertz and that has a radiant intensity in that direction of 1\xe2\x81\x84683 watt per steradian.', | {'candela':'SI base unit of luminous intensity.\nDefined to be the luminous intensity, in a given direction, of a source that emits monochromatic radiation of frequency 540*10^12 hertz and that has a radiant intensity in that direction of 1/683 watt per steradian.', | def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalunitdict() """ from sage.misc.all import sage_eval for key, value in unitdict.iteritems(): unitdict[key] = dict([(a,sage_eval(repr(b))) for a, b in value.iteritems()]) # FEATURE IDEA: create a function that would allow users to add # new entries to the table without having to know anything about # how the table is stored internally. # # Format the table for easier use. # for k, v in unitdict.iteritems(): for a in v: unit_to_type[a] = k for w in unitdict.iterkeys(): for j in unitdict[w].iterkeys(): if type(unitdict[w][j]) == tuple: unitdict[w][j] = unitdict[w][j][0] value_to_unit[w] = dict(zip(unitdict[w].itervalues(), unitdict[w].iterkeys())) | 860975ef5915b61f5edf6269dc06fda67c357f91 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/860975ef5915b61f5edf6269dc06fda67c357f91/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
31457,
1399,
12963,
16,
364,
30325,
261,
464,
16600,
3628,
13,
13694,
16,
10480,
518,
15857,
358,
6401,
326,
4971,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
8622,
4873,
1576,
1435,
3536,
628,
272,
410,
18,
23667,
18,
454,
1930,
272,
410,
67,
8622,
364,
498,
16,
460,
316,
2836,
1576,
18,
2165,
3319,
13332,
2836,
1576,
63,
856,
65,
273,
2065,
3816,
12,
69,
16,
87,
410,
67,
8622,
12,
12715,
12,
70,
20349,
364,
279,
16,
324,
316,
460,
18,
2165,
3319,
1435,
5717,
225,
468,
25201,
1599,
41,
37,
30,
752,
279,
445,
716,
4102,
1699,
3677,
358,
527,
468,
394,
3222,
358,
326,
1014,
2887,
7999,
358,
5055,
6967,
2973,
468,
3661,
326,
1014,
353,
4041,
12963,
18,
225,
468,
468,
4077,
326,
1014,
364,
15857,
999,
18,
468,
364,
417,
16,
331,
316,
2836,
1576,
18,
2165,
3319,
13332,
364,
279,
316,
331,
30,
2836,
67,
869,
67,
723,
63,
69,
65,
273,
417,
225,
364,
341,
316,
2836,
1576,
18,
2165,
2452,
13332,
364,
525,
316,
2836,
1576,
63,
91,
8009,
2165,
2452,
13332,
309,
618,
12,
4873,
1576,
63,
91,
6362,
78,
5717,
422,
3193,
30,
2836,
1576,
63,
91,
6362,
78,
65,
273,
2836,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
31457,
1399,
12963,
16,
364,
30325,
261,
464,
16600,
3628,
13,
13694,
16,
10480,
518,
15857,
358,
6401,
326,
4971,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
272,
410,
18,
9009,
12164,
18,
7705,
18,
8622,
4873,
1576,
1435,
3536,
628,
272,
410,
18,
23667,
18,
454,
1930,
272,
410,
67,
8622,
364,
498,
16,
460,
316,
2836,
1576,
18,
2165,
3319,
13332,
2836,
1576,
63,
856,
65,
273,
2065,
3816,
12,
69,
16,
87,
410,
67,
8622,
12,
12715,
12,
70,
2
] |
logger.debug('This is not my activity: waiting for a tube...') | logging.debug('This is not my activity: waiting for a tube...') | def _joined_cb(self, activity): if not self._shared_activity: return | 3a49b60a6de588c9ec4840acc5b9555570894754 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5598/3a49b60a6de588c9ec4840acc5b9555570894754/shared.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5701,
329,
67,
7358,
12,
2890,
16,
5728,
4672,
309,
486,
365,
6315,
11574,
67,
9653,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5701,
329,
67,
7358,
12,
2890,
16,
5728,
4672,
309,
486,
365,
6315,
11574,
67,
9653,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ET.SubElement(root, 'upnp:createclass').text = self.createClass | ET.SubElement(root, qname('createclass',UPNP_NS)).text = self.createClass | def toElement(self,**kwargs): | e9c4345533fd24eede4febe6e6cd4c5c3b16e15c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/e9c4345533fd24eede4febe6e6cd4c5c3b16e15c/DIDLLite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
1046,
12,
2890,
16,
636,
4333,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'depends': [dep.name for dep in module.dependencies_id if self.search(cr, uid, [ ('name', '=', dep.name), ('web', '=', True) ], context=context)], | 'depends': list(self._web_dependencies( cr, uid, module, context=context)), | def get_web(self, cr, uid, names, context=False): """ get_web(cr, uid, [module_name], context) -> [{name, depends, content}] | 60f6882c37c9473de9e0bfc1588fa203e700b7e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/60f6882c37c9473de9e0bfc1588fa203e700b7e2/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4875,
12,
2890,
16,
4422,
16,
4555,
16,
1257,
16,
819,
33,
8381,
4672,
3536,
336,
67,
4875,
12,
3353,
16,
4555,
16,
306,
2978,
67,
529,
6487,
819,
13,
317,
20031,
529,
16,
10935,
16,
913,
11839,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4875,
12,
2890,
16,
4422,
16,
4555,
16,
1257,
16,
819,
33,
8381,
4672,
3536,
336,
67,
4875,
12,
3353,
16,
4555,
16,
306,
2978,
67,
529,
6487,
819,
13,
317,
20031,
529,
16,
10935,
16,
913,
11839,
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
] |
things = self.items | things = self.items[:] | def __sqlrepr__(self, db): select = "SELECT %s" % ", ".join([sqlrepr(v, db) for v in self.items]) | bca0e9fd36edbf852dcecac4dcfd4130cf722931 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/bca0e9fd36edbf852dcecac4dcfd4130cf722931/sqlbuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4669,
12715,
972,
12,
2890,
16,
1319,
4672,
2027,
273,
315,
4803,
738,
87,
6,
738,
3104,
3552,
5701,
3816,
4669,
12715,
12,
90,
16,
1319,
13,
364,
331,
316,
365,
18,
3319,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4669,
12715,
972,
12,
2890,
16,
1319,
4672,
2027,
273,
315,
4803,
738,
87,
6,
738,
3104,
3552,
5701,
3816,
4669,
12715,
12,
90,
16,
1319,
13,
364,
331,
316,
365,
18,
3319,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
vars = self.variables() | vars = self.arguments() | def __call__(self, *args, **kwds): """ EXAMPLES: sage: x,y=var('x,y') sage: f = x+y sage: f.variables() (x, y) sage: f() y + x sage: f(3) y + 3 sage: f(3,4) 7 sage: f(2,3,4) Traceback (most recent call last): ... ValueError: the number of arguments must be less than or equal to 2 | 8fe47715223083603b3630ee3c59cf52da89b3e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8fe47715223083603b3630ee3c59cf52da89b3e0/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
619,
16,
93,
33,
1401,
2668,
92,
16,
93,
6134,
272,
410,
30,
284,
273,
619,
15,
93,
272,
410,
30,
284,
18,
7528,
1435,
261,
92,
16,
677,
13,
272,
410,
30,
284,
1435,
677,
397,
619,
272,
410,
30,
284,
12,
23,
13,
677,
397,
890,
272,
410,
30,
284,
12,
23,
16,
24,
13,
2371,
272,
410,
30,
284,
12,
22,
16,
23,
16,
24,
13,
2677,
823,
261,
10329,
8399,
745,
1142,
4672,
1372,
2068,
30,
326,
1300,
434,
1775,
1297,
506,
5242,
2353,
578,
3959,
358,
576,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
619,
16,
93,
33,
1401,
2668,
92,
16,
93,
6134,
272,
410,
30,
284,
273,
619,
15,
93,
272,
410,
30,
284,
18,
7528,
1435,
261,
92,
16,
677,
13,
272,
410,
30,
284,
1435,
677,
397,
619,
272,
410,
30,
284,
12,
23,
13,
677,
397,
890,
272,
410,
30,
284,
12,
23,
16,
24,
13,
2371,
272,
410,
30,
284,
12,
22,
16,
23,
16,
24,
13,
2677,
823,
261,
10329,
8399,
745,
1142,
4672,
1372,
2068,
30,
326,
1300,
434,
1775,
1297,
506,
5242,
2353,
578,
3959,
358,
576,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self, firsttime, score): self.firstRun = firsttime | def __init__(self): | def __init__(self, firsttime, score): #Class constructor self.firstRun = firsttime #Add game over sound self.gameOverSound = loader.loadSfx("smas44.mp3") self.gameOverSound.setVolume(4) self.gameOverSound.setPlayRate(1) if self.firstRun == 1: self.startScore = 270710 self.actualScore = self.startScore MainMenu() props = WindowProperties() props.setCursorHidden(1) base.win.requestProperties(props) render.setAntialias(AntialiasAttrib.MAuto) #anti aliasing base.camLens.setFar(5100) base.camLens.setFov(100) base.cTrav = CollisionTraverser('ctrav') base.cTrav.setRespectPrevTransform(True) base.enableParticles() self.loadLevel(1) self.msg = MessageManager() self.accept('player-death', self.evtPlayerDeath) self.accept('game-levelwin', self.evtLevelWin) else: self.actualScore = score | bd2cf555f80d535aa25511a61d82267027e3adb4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4878/bd2cf555f80d535aa25511a61d82267027e3adb4/Gaivota.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1122,
957,
16,
4462,
4672,
468,
797,
3885,
365,
18,
3645,
1997,
273,
1122,
957,
468,
986,
7920,
1879,
14190,
365,
18,
13957,
4851,
24331,
273,
4088,
18,
945,
55,
19595,
2932,
4808,
345,
6334,
18,
1291,
23,
7923,
365,
18,
13957,
4851,
24331,
18,
542,
4545,
12,
24,
13,
365,
18,
13957,
4851,
24331,
18,
542,
11765,
4727,
12,
21,
13,
225,
309,
365,
18,
3645,
1997,
422,
404,
30,
365,
18,
1937,
7295,
273,
29966,
27,
2163,
365,
18,
18672,
7295,
273,
365,
18,
1937,
7295,
12740,
4599,
1435,
225,
3458,
273,
6076,
2297,
1435,
3458,
18,
542,
6688,
9345,
12,
21,
13,
1026,
18,
8082,
18,
2293,
2297,
12,
9693,
13,
1743,
18,
542,
14925,
649,
1795,
12,
14925,
649,
1795,
12399,
18,
49,
4965,
13,
468,
970,
77,
2308,
310,
1026,
18,
20133,
48,
773,
18,
542,
17393,
12,
25,
6625,
13,
1026,
18,
20133,
48,
773,
18,
542,
42,
1527,
12,
6625,
13,
1026,
18,
71,
1609,
90,
273,
17596,
1951,
15844,
264,
2668,
299,
354,
90,
6134,
1026,
18,
71,
1609,
90,
18,
542,
607,
1181,
9958,
4059,
12,
5510,
13,
225,
1026,
18,
7589,
1988,
8383,
1435,
365,
18,
945,
2355,
12,
21,
13,
365,
18,
3576,
273,
2350,
1318,
1435,
225,
365,
18,
9436,
2668,
14872,
17,
323,
421,
2187,
365,
18,
73,
11734,
12148,
758,
421,
13,
365,
18,
9436,
2668,
13957,
17,
2815,
8082,
2187,
365,
18,
73,
11734,
2355,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1122,
957,
16,
4462,
4672,
468,
797,
3885,
365,
18,
3645,
1997,
273,
1122,
957,
468,
986,
7920,
1879,
14190,
365,
18,
13957,
4851,
24331,
273,
4088,
18,
945,
55,
19595,
2932,
4808,
345,
6334,
18,
1291,
23,
7923,
365,
18,
13957,
4851,
24331,
18,
542,
4545,
12,
24,
13,
365,
18,
13957,
4851,
24331,
18,
542,
11765,
4727,
12,
21,
13,
225,
309,
365,
18,
3645,
1997,
422,
404,
30,
365,
18,
1937,
7295,
273,
29966,
27,
2163,
365,
18,
18672,
7295,
273,
365,
18,
1937,
7295,
12740,
4599,
1435,
225,
3458,
273,
6076,
2297,
1435,
3458,
18,
542,
6688,
9345,
12,
21,
13,
1026,
18,
8082,
18,
2293,
2297,
12,
2
] |
elif opt in ('-p', '--private', '--private'): options['private']=1 | elif opt in ('--private',): options['private'] = 1 options['tests']['private'] = 1 | def _parse_args(): """ Process the command line arguments; return a dictionary containing the relevant info. @return: A dictionary mapping from configuration parameters to values. If a parameter is specified on the command line, then that value is used; otherwise, a default value is used. Currently, the following configuration parameters are set: C{target}, C{modules}, C{verbosity}, C{prj_name}, C{output}, C{show_imports}, C{frames}, C{private}, C{debug}, C{top}, C{list_classes_separately}, C{docformat}, C{inheritance}, C{autogen_vars}, and C{test}. @rtype: C{None} """ # Default values. options = {'target':None, 'modules':[], 'verbosity':1, 'prj_name':'', 'action':'html', 'show_imports':0, 'frames':1, 'private':None, 'list_classes_separately': 0, 'debug':0, 'docformat':None, 'top':None, 'inheritance': 'grouped', 'autogen_vars': 1, 'tests':{}} # Get the command-line arguments, using getopts. shortopts = 'c:fh:n:o:pt:u:Vvq?:' longopts = ('check frames help= usage= helpfile= help-file= '+ 'help_file= output= target= url= version verbose ' + 'private-css= private_css= quiet show-imports '+ 'show_imports css= no_private no-private name= '+ 'builtins no-frames no_frames noframes debug '+ 'docformat= doc-format= doc_format= top= navlink= '+ 'nav_link= nav-link= latex html dvi ps pdf '+ 'separate-classes separate_classes '+ 'inheritance= inheritence= '+ 'test= tests= checks= private'+ 'no-autogen-vars no_autogen_vars').split() try: (opts, modules) = getopt.getopt(sys.argv[1:], shortopts, longopts) except getopt.GetoptError, e: if e.opt in ('h', '?', 'help', 'usage'): _usage(0) print >>sys.stderr, ('%s; run "%s -h" for usage' % (e,os.path.basename(sys.argv[0]))) sys.exit(1) # Parse the arguments. for (opt, val) in opts: if opt in ('--check',): options['action'] = 'check' elif opt in ('--css', '-c'): options['css'] = val elif opt in ('--debug',): options['debug']=1 elif opt in ('--dvi',): options['action'] = 'dvi' elif opt in ('--docformat', '--doc-format', '--doc_format'): from epydoc.objdoc import set_default_docformat set_default_docformat(val) elif opt in ('--frames', '-f'): print ('Warning: the "--frames" argument is depreciated; '+ 'frames are now\n generated by default.') elif opt in ('--no-frames', '--no_frames', '--noframes'): options['frames'] = 0 elif opt in ('--help', '-?', '--usage', '-h'): _help(val) elif opt in ('--helpfile', '--help-file', '--help_file'): options['help'] = val elif opt in ('--html',): options['action'] = 'html' elif opt in ('--inheritance', '--inheritence'): options['inheritance']=val.lower() elif opt in ('--latex',): options['action']='latex' elif opt in ('--name', '-n'): options['prj_name']=val elif opt in ('--navlink', '--nav-link', '--nav_link'): options['prj_link'] = val elif opt in ('--no-autogen-vars', '--no_autogen_vars'): options['autogen_vars'] = 0 elif opt in ('--no-private', '--no_private'): options['private']=0 elif opt in ('--output', '--target', '-o'): options['target']=val elif opt in ('--pdf',): options['action'] = 'pdf' elif opt in ('-p', '--private', '--private'): options['private']=1 elif opt in ('--private-css', '--private_css'): options['private_css'] = val elif opt in ('--ps',): options['action'] = 'ps' elif opt in ('--quiet', '-q'): options['verbosity'] -= 1 elif opt in ('--separate-classes', '--separate_classes'): options['list_classes_separately'] = 1 elif opt in ('--show-imports', '--show_imports'): options['show_imports'] = 1 elif opt in ('-t', '--top'): options['top'] = val elif opt in ('--url', '-u'): options['prj_url']=val elif opt in ('--verbose', '-v'): options['verbosity'] += 1 elif opt in ('--version', '-V'): _version() elif opt in ('--builtins',): modules += sys.builtin_module_names modules.remove('__main__') elif opt in ('--test', '--tests', '--checks'): for test in re.split('\s*[,\s]\s*', val.lower()): options['tests'][test] = 1 else: _usage() # Make sure inheritance has a valid value if options['inheritance'] not in ('grouped', 'listed', 'included'): estr = 'Bad inheritance style. Valid options are ' estr += 'grouped, listed, included' print >>sys.stderr, ('%s;\nrun "%s -h" for usage.' % (estr,os.path.basename(sys.argv[0]))) sys.exit(1) # Make sure tests has a valid value. for test in options['tests']: if test not in TESTS: estr = 'Bad epydoc test %r. Valid options are:' % test for t in TESTS: estr += '\n - %r' % t print >>sys.stderr, ('%s\nrun "%s -h" for usage.' % (estr,os.path.basename(sys.argv[0]))) sys.exit(1) # Pick a default target directory, if none was specified. if options['target'] is None: if options['action'] == 'html': options['target'] = 'html' elif options['action'] in ('latex', 'dvi', 'ps', 'pdf'): options['target'] = 'latex' # Default for private depends on action. if options['private'] is None: if options['action'] == 'html': options['private'] = 1 else: options['private'] = 0 # Check that the options all preceed the filenames. for m in modules: if m == '-': break elif m[0:1] == '-': estr = 'options must preceed modules' print >>sys.stderr, ('%s; run "%s -h" for usage.' % (estr,os.path.basename(sys.argv[0]))) sys.exit(1) # Make sure we got some modules. modules = [m for m in modules if m != '-'] if len(modules) == 0: print >>sys.stderr, ('no modules specified; run "%s -h" for usage.' % os.path.basename(sys.argv[0])) sys.exit(1) options['modules'] = modules return options | 5397b1945fdf3feb9813ef60349d76c37defaafe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5397b1945fdf3feb9813ef60349d76c37defaafe/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
1968,
13332,
3536,
4389,
326,
1296,
980,
1775,
31,
327,
279,
3880,
4191,
326,
9368,
1123,
18,
225,
632,
2463,
30,
432,
3880,
2874,
628,
1664,
1472,
358,
924,
18,
225,
971,
279,
1569,
353,
1269,
603,
326,
1296,
980,
16,
1508,
716,
460,
353,
1399,
31,
3541,
16,
279,
805,
460,
353,
1399,
18,
15212,
16,
326,
3751,
1664,
1472,
854,
444,
30,
385,
95,
3299,
5779,
385,
95,
6400,
5779,
385,
95,
16629,
8807,
5779,
385,
95,
683,
78,
67,
529,
5779,
385,
95,
2844,
5779,
385,
95,
4500,
67,
21350,
5779,
385,
95,
10278,
5779,
385,
95,
1152,
5779,
385,
95,
4148,
5779,
385,
95,
3669,
5779,
385,
95,
1098,
67,
4701,
67,
16627,
5173,
5779,
385,
95,
2434,
2139,
5779,
385,
95,
6018,
1359,
5779,
385,
95,
5854,
19409,
67,
4699,
5779,
471,
385,
95,
3813,
5496,
632,
86,
723,
30,
385,
95,
7036,
97,
3536,
468,
2989,
924,
18,
702,
273,
13666,
3299,
4278,
7036,
16,
296,
6400,
4278,
63,
6487,
296,
16629,
8807,
4278,
21,
16,
296,
683,
78,
67,
529,
11,
2497,
2187,
296,
1128,
11,
2497,
2620,
2187,
296,
4500,
67,
21350,
4278,
20,
16,
296,
10278,
4278,
21,
16,
296,
1152,
4278,
7036,
16,
296,
1098,
67,
4701,
67,
16627,
5173,
4278,
374,
16,
296,
4148,
4278,
20,
16,
296,
2434,
2139,
4278,
7036,
16,
296,
3669,
4278,
7036,
16,
296,
6018,
1359,
4278,
296,
25472,
2187,
296,
5854,
19409,
67,
4699,
4278,
404,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
1968,
13332,
3536,
4389,
326,
1296,
980,
1775,
31,
327,
279,
3880,
4191,
326,
9368,
1123,
18,
225,
632,
2463,
30,
432,
3880,
2874,
628,
1664,
1472,
358,
924,
18,
225,
971,
279,
1569,
353,
1269,
603,
326,
1296,
980,
16,
1508,
716,
460,
353,
1399,
31,
3541,
16,
279,
805,
460,
353,
1399,
18,
15212,
16,
326,
3751,
1664,
1472,
854,
444,
30,
385,
95,
3299,
5779,
385,
95,
6400,
5779,
385,
95,
16629,
8807,
5779,
385,
95,
683,
78,
67,
529,
5779,
385,
95,
2844,
5779,
385,
95,
4500,
67,
21350,
5779,
385,
95,
10278,
5779,
385,
95,
1152,
5779,
385,
95,
4148,
5779,
385,
95,
3669,
5779,
385,
95,
1098,
67,
4701,
2
] |
if prefs.background_syncing: event.arguments['Text'] = _(u'Disable background syncing') else: event.arguments['Text'] = _(u'Enable background syncing') | try: enabled = prefs.background_syncing except AttributeError: logger.exception('*********** Bug 5544\nprefs=%s\nprefs.itsView=%s', prefs, prefs.itsView) else: if enabled: event.arguments['Text'] = _(u'Disable background syncing') else: event.arguments['Text'] = _(u'Enable background syncing') | def onActivateBackgroundSyncingEventUpdateUI (self, event): prefs = schema.ns('osaf.sharing', self.itsView).prefs if prefs.background_syncing: event.arguments['Text'] = _(u'Disable background syncing') else: event.arguments['Text'] = _(u'Enable background syncing') | 6dee6534b9148fa0ca9e4e314149a94ebb3082bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6dee6534b9148fa0ca9e4e314149a94ebb3082bc/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
21370,
8199,
4047,
310,
1133,
1891,
5370,
261,
2890,
16,
871,
4672,
15503,
273,
1963,
18,
2387,
2668,
538,
1727,
18,
31615,
2187,
365,
18,
1282,
1767,
2934,
1484,
2556,
309,
15503,
18,
9342,
67,
8389,
310,
30,
871,
18,
7099,
3292,
1528,
3546,
273,
389,
12,
89,
11,
11879,
5412,
3792,
310,
6134,
469,
30,
871,
18,
7099,
3292,
1528,
3546,
273,
389,
12,
89,
11,
8317,
5412,
3792,
310,
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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4672,
15503,
273,
1963,
18,
2387,
2668,
538,
1727,
18,
31615,
2187,
365,
18,
1282,
1767,
2934,
1484,
2556,
309,
15503,
18,
9342,
67,
8389,
310,
30,
871,
18,
7099,
3292,
1528,
3546,
273,
389,
12,
89,
11,
11879,
5412,
3792,
310,
6134,
469,
30,
871,
18,
7099,
3292,
1528,
3546,
273,
389,
12,
89,
11,
8317,
5412,
3792,
310,
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
] |
texts.append( t ) | texts.append( t ) | def pie( self, explode = None, colors = None, autopct = None, pctdistance = 0.6, shadow = False ): | e1fab6a8b4522a8c8de872b610947c90d87e201a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e1fab6a8b4522a8c8de872b610947c90d87e201a/PieGraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1385,
12,
365,
16,
3172,
273,
599,
16,
5740,
273,
599,
16,
2059,
556,
299,
273,
599,
16,
19857,
8969,
273,
374,
18,
26,
16,
10510,
273,
1083,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
293,
1385,
12,
365,
16,
3172,
273,
599,
16,
5740,
273,
599,
16,
2059,
556,
299,
273,
599,
16,
19857,
8969,
273,
374,
18,
26,
16,
10510,
273,
1083,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not safe_encode: raise arg = repr(arg) | try: arg = arg.encode('utf-8') except: if not safe_encode: raise arg = repr(arg) | def prints(*args, **kwargs): ''' Print unicode arguments safely by encoding them to preferred_encoding Has the same signature as the print function from Python 3, except for the additional keyword argument safe_encode, which if set to True will cause the function to use repr when encoding fails. ''' file = kwargs.get('file', sys.stdout) sep = kwargs.get('sep', ' ') end = kwargs.get('end', '\n') enc = preferred_encoding safe_encode = kwargs.get('safe_encode', False) if 'CALIBRE_WORKER' in os.environ: enc = 'utf-8' for i, arg in enumerate(args): if isinstance(arg, unicode): try: arg = arg.encode(enc) except UnicodeEncodeError: if not safe_encode: raise arg = repr(arg) if not isinstance(arg, str): try: arg = str(arg) except ValueError: arg = unicode(arg) if isinstance(arg, unicode): try: arg = arg.encode(enc) except UnicodeEncodeError: if not safe_encode: raise arg = repr(arg) file.write(arg) if i != len(args)-1: file.write(sep) file.write(end) | b41704341f392de44aa6379f3825eb29476d7bc9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/b41704341f392de44aa6379f3825eb29476d7bc9/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14971,
30857,
1968,
16,
2826,
4333,
4672,
9163,
3038,
5252,
1775,
15303,
635,
2688,
2182,
358,
9119,
67,
5999,
4393,
326,
1967,
3372,
487,
326,
1172,
445,
628,
6600,
890,
16,
1335,
364,
326,
3312,
4932,
1237,
4183,
67,
3015,
16,
1492,
309,
444,
358,
1053,
903,
4620,
326,
445,
358,
999,
8480,
1347,
2688,
6684,
18,
9163,
585,
273,
1205,
18,
588,
2668,
768,
2187,
2589,
18,
10283,
13,
5478,
225,
273,
1205,
18,
588,
2668,
10814,
2187,
296,
8624,
679,
225,
273,
1205,
18,
588,
2668,
409,
2187,
2337,
82,
6134,
2446,
273,
9119,
67,
5999,
4183,
67,
3015,
273,
1205,
18,
588,
2668,
4626,
67,
3015,
2187,
1083,
13,
309,
296,
7913,
13450,
862,
67,
10566,
654,
11,
316,
1140,
18,
28684,
30,
2446,
273,
296,
3158,
17,
28,
11,
364,
277,
16,
1501,
316,
4241,
12,
1968,
4672,
309,
1549,
12,
3175,
16,
5252,
4672,
775,
30,
1501,
273,
1501,
18,
3015,
12,
1331,
13,
1335,
9633,
5509,
668,
30,
775,
30,
1501,
273,
1501,
18,
3015,
2668,
3158,
17,
28,
6134,
1335,
30,
309,
486,
4183,
67,
3015,
30,
1002,
1501,
273,
8480,
12,
3175,
13,
309,
486,
1549,
12,
3175,
16,
609,
4672,
775,
30,
1501,
273,
609,
12,
3175,
13,
1335,
2068,
30,
1501,
273,
5252,
12,
3175,
13,
309,
1549,
12,
3175,
16,
5252,
4672,
775,
30,
1501,
273,
1501,
18,
3015,
12,
1331,
13,
1335,
9633,
5509,
668,
30,
775,
30,
1501,
273,
1501,
18,
3015,
2668,
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,
14971,
30857,
1968,
16,
2826,
4333,
4672,
9163,
3038,
5252,
1775,
15303,
635,
2688,
2182,
358,
9119,
67,
5999,
4393,
326,
1967,
3372,
487,
326,
1172,
445,
628,
6600,
890,
16,
1335,
364,
326,
3312,
4932,
1237,
4183,
67,
3015,
16,
1492,
309,
444,
358,
1053,
903,
4620,
326,
445,
358,
999,
8480,
1347,
2688,
6684,
18,
9163,
585,
273,
1205,
18,
588,
2668,
768,
2187,
2589,
18,
10283,
13,
5478,
225,
273,
1205,
18,
588,
2668,
10814,
2187,
296,
8624,
679,
225,
273,
1205,
18,
588,
2668,
409,
2187,
2337,
82,
6134,
2446,
273,
9119,
67,
5999,
4183,
67,
3015,
273,
1205,
18,
588,
2668,
4626,
67,
3015,
2187,
1083,
13,
309,
296,
7913,
13450,
862,
67,
2
] |
def lookup_query_terms(lookup_type, field, value): | def lookup_query_expression(lookup_type, field, value): | def lookup_query_terms(lookup_type, field, value): if lookup_type in QUERY_TERMS_MAPPING: return curry(QUERY_TERMS_MAPPING[lookup_type], field, value) elif lookup_type == 'contains': return curry(field.like, '%%%s%%' % value) elif lookup_type == 'icontains': raise NotImplemented() elif lookup_type == 'in': raise NotImplemented() elif lookup_type == 'startswith': raise NotImplemented() elif lookup_type == 'istartswith': raise NotImplemented() elif lookup_type == 'endswith': raise NotImplemented() elif lookup_type == 'iendswith': raise NotImplemented() elif lookup_type == 'range': raise NotImplemented() elif lookup_type == 'year': raise NotImplemented() elif lookup_type == 'month': raise NotImplemented() elif lookup_type == 'day': raise NotImplemented() elif lookup_type == 'search': raise NotImplemented() elif lookup_type == 'regex': raise NotImplemented() elif lookup_type == 'iregex': raise NotImplemented() elif lookup_type == 'isnull': return curry(operator.eq, field, None) else: return None | 50bbf4031eeb3fda39a8cee6a43ff7b0ae0856e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1224/50bbf4031eeb3fda39a8cee6a43ff7b0ae0856e2/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
67,
2271,
67,
8692,
12,
8664,
67,
723,
16,
652,
16,
460,
4672,
309,
3689,
67,
723,
316,
17089,
67,
2560,
3537,
67,
20450,
30,
327,
662,
1176,
12,
10753,
67,
2560,
3537,
67,
20450,
63,
8664,
67,
723,
6487,
652,
16,
460,
13,
1327,
3689,
67,
723,
422,
296,
12298,
4278,
327,
662,
1176,
12,
1518,
18,
5625,
16,
1995,
11438,
87,
9,
8604,
738,
460,
13,
1327,
3689,
67,
723,
422,
296,
335,
1580,
4167,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
267,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
17514,
1918,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
376,
485,
87,
1918,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
5839,
1918,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
77,
5839,
1918,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
3676,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
6874,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
7496,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
2881,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
3072,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
7584,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
577,
75,
338,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
291,
2011,
4278,
327,
662,
1176,
12,
9497,
18,
11253,
16,
652,
16,
599,
13,
469,
30,
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,
3689,
67,
2271,
67,
8692,
12,
8664,
67,
723,
16,
652,
16,
460,
4672,
309,
3689,
67,
723,
316,
17089,
67,
2560,
3537,
67,
20450,
30,
327,
662,
1176,
12,
10753,
67,
2560,
3537,
67,
20450,
63,
8664,
67,
723,
6487,
652,
16,
460,
13,
1327,
3689,
67,
723,
422,
296,
12298,
4278,
327,
662,
1176,
12,
1518,
18,
5625,
16,
1995,
11438,
87,
9,
8604,
738,
460,
13,
1327,
3689,
67,
723,
422,
296,
335,
1580,
4167,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
267,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
17514,
1918,
4278,
1002,
10051,
1435,
1327,
3689,
67,
723,
422,
296,
376,
485,
87,
1918,
4278,
1002,
10051,
2
] |
return S_ERROR("Couldn't create workflows for %s." \ | return S_ERROR("Couldn't get results from %s." \ | def create_workflow(self): """ !!! Note: 1 level parent=master assumed !!! """ rdict = dict(request.params) for x in ['RequestID','Template','Subrequests']: if not x in rdict: return S_ERROR('Required parameter %s is not specified' % x) try: id = long(rdict['RequestID']) tpl_name = str(request.params['Template']) operation = str(request.params.get('Operation','Simple')) sstr = str(request.params['Subrequests']) if sstr: slist = [long(x) for x in sstr.split(',')] else: slist = [] sdict = dict.fromkeys(slist,None) del rdict['RequestID'] del rdict['Template'] del rdict['Subrequests'] if 'Operation' in rdict: del rdict['Operation'] except Exception, e: return S_ERROR('Wrong parameters (%s)' % str(e)) | 0cbfeadd30ca0fe24a89912bce4c995e4974485a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12767/0cbfeadd30ca0fe24a89912bce4c995e4974485a/ProductionRequest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
13815,
12,
2890,
4672,
3536,
401,
8548,
3609,
30,
404,
1801,
982,
33,
7525,
12034,
401,
8548,
3536,
436,
1576,
273,
2065,
12,
2293,
18,
2010,
13,
364,
619,
316,
10228,
691,
734,
17023,
2283,
17023,
1676,
11420,
3546,
30,
309,
486,
619,
316,
436,
1576,
30,
327,
348,
67,
3589,
2668,
3705,
1569,
738,
87,
353,
486,
1269,
11,
738,
619,
13,
775,
30,
612,
4202,
273,
1525,
12,
86,
1576,
3292,
691,
734,
19486,
6940,
67,
529,
273,
609,
12,
2293,
18,
2010,
3292,
2283,
19486,
1674,
273,
609,
12,
2293,
18,
2010,
18,
588,
2668,
2988,
17023,
5784,
26112,
272,
701,
225,
273,
609,
12,
2293,
18,
2010,
3292,
1676,
11420,
19486,
309,
272,
701,
30,
272,
1098,
273,
306,
5748,
12,
92,
13,
364,
619,
316,
272,
701,
18,
4939,
12,
2187,
6134,
65,
469,
30,
272,
1098,
273,
5378,
272,
1576,
273,
2065,
18,
2080,
2452,
12,
87,
1098,
16,
7036,
13,
1464,
436,
1576,
3292,
691,
734,
3546,
1464,
436,
1576,
3292,
2283,
3546,
1464,
436,
1576,
3292,
1676,
11420,
3546,
309,
296,
2988,
11,
316,
436,
1576,
30,
1464,
436,
1576,
3292,
2988,
3546,
1335,
1185,
16,
425,
30,
327,
348,
67,
3589,
2668,
13634,
1472,
6142,
87,
2506,
738,
609,
12,
73,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
13815,
12,
2890,
4672,
3536,
401,
8548,
3609,
30,
404,
1801,
982,
33,
7525,
12034,
401,
8548,
3536,
436,
1576,
273,
2065,
12,
2293,
18,
2010,
13,
364,
619,
316,
10228,
691,
734,
17023,
2283,
17023,
1676,
11420,
3546,
30,
309,
486,
619,
316,
436,
1576,
30,
327,
348,
67,
3589,
2668,
3705,
1569,
738,
87,
353,
486,
1269,
11,
738,
619,
13,
775,
30,
612,
4202,
273,
1525,
12,
86,
1576,
3292,
691,
734,
19486,
6940,
67,
529,
273,
609,
12,
2293,
18,
2010,
3292,
2283,
19486,
1674,
273,
609,
12,
2293,
18,
2010,
18,
588,
2668,
2988,
17023,
5784,
26112,
272,
701,
225,
273,
609,
12,
2293,
18,
2010,
3292,
1676,
11420,
19486,
309,
2
] |
- excample: the Example object that failed | - example: the Example object that failed | def output_difference(self, example, got, optionflags): """ Return a string describing the differences between the expected output for a given example (`example`) and the actual output (`got`). `optionflags` is the set of option flags used to compare `want` and `got`. """ want = example.want # If <BLANKLINE>s are being used, then replace blank lines # with <BLANKLINE> in the actual output string. if not (optionflags & DONT_ACCEPT_BLANKLINE): got = re.sub('(?m)^[ ]*(?=\n)', BLANKLINE_MARKER, got) | a21caf4ef2e424075342f511405b41f0579ce841 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a21caf4ef2e424075342f511405b41f0579ce841/doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
23444,
12,
2890,
16,
3454,
16,
2363,
16,
1456,
7133,
4672,
3536,
2000,
279,
533,
16868,
326,
16440,
3086,
326,
2665,
876,
364,
279,
864,
3454,
21863,
8236,
24065,
471,
326,
3214,
876,
21863,
13212,
68,
2934,
225,
1375,
3482,
7133,
68,
353,
326,
444,
434,
1456,
2943,
1399,
358,
3400,
1375,
17369,
68,
471,
1375,
13212,
8338,
3536,
2545,
273,
3454,
18,
17369,
468,
971,
411,
38,
24307,
5997,
34,
87,
854,
3832,
1399,
16,
1508,
1453,
7052,
2362,
468,
598,
411,
38,
24307,
5997,
34,
316,
326,
3214,
876,
533,
18,
309,
486,
261,
3482,
7133,
473,
463,
10079,
67,
21417,
67,
38,
24307,
5997,
4672,
2363,
273,
283,
18,
1717,
2668,
3680,
81,
13,
66,
63,
308,
14,
3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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
23444,
12,
2890,
16,
3454,
16,
2363,
16,
1456,
7133,
4672,
3536,
2000,
279,
533,
16868,
326,
16440,
3086,
326,
2665,
876,
364,
279,
864,
3454,
21863,
8236,
24065,
471,
326,
3214,
876,
21863,
13212,
68,
2934,
225,
1375,
3482,
7133,
68,
353,
326,
444,
434,
1456,
2943,
1399,
358,
3400,
1375,
17369,
68,
471,
1375,
13212,
8338,
3536,
2545,
273,
3454,
18,
17369,
468,
971,
411,
38,
24307,
5997,
34,
87,
854,
3832,
1399,
16,
1508,
1453,
7052,
2362,
468,
598,
411,
38,
24307,
5997,
34,
316,
326,
3214,
876,
533,
18,
309,
486,
261,
3482,
7133,
473,
463,
10079,
67,
21417,
67,
38,
24307,
5997,
4672,
2363,
273,
283,
18,
1717,
2668,
3680,
81,
2
] |
('fs_is', '=', fs_id), | ('fs_id', '=', fs_id), | def get_id(self, cursor, user, module, fs_id): """ Return for an fs_id the corresponding db_id. | 2d34f56769b131e29b31f190fe902f86fba96744 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/2d34f56769b131e29b31f190fe902f86fba96744/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
350,
12,
2890,
16,
3347,
16,
729,
16,
1605,
16,
2662,
67,
350,
4672,
3536,
2000,
364,
392,
2662,
67,
350,
326,
4656,
1319,
67,
350,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
350,
12,
2890,
16,
3347,
16,
729,
16,
1605,
16,
2662,
67,
350,
4672,
3536,
2000,
364,
392,
2662,
67,
350,
326,
4656,
1319,
67,
350,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'query_string': 'q=&language=Python'} | 'query_string': 'q=&toughness=&language=Python'} | def test_toughness_facet(self): # What options do we expect? toughness_option_bitesize = {'name': 'bitesize', 'count': 1, 'query_string': 'q=&toughness=bitesize&language=Python'} toughness_option_any = {'name': 'any', 'count': 2, 'query_string': 'q=&language=Python'} expected_toughness_facet_options = [toughness_option_bitesize, toughness_option_any] | a35d9cb0088dc8954841b6a6810c5266efe0a501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/a35d9cb0088dc8954841b6a6810c5266efe0a501/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
869,
2127,
4496,
67,
21568,
12,
2890,
4672,
468,
18734,
702,
741,
732,
4489,
35,
358,
2127,
4496,
67,
3482,
67,
70,
2997,
554,
273,
13666,
529,
4278,
296,
70,
2997,
554,
2187,
296,
1883,
4278,
404,
16,
296,
2271,
67,
1080,
4278,
296,
85,
33,
10,
869,
2127,
4496,
33,
70,
2997,
554,
10,
4923,
33,
15774,
11,
97,
358,
2127,
4496,
67,
3482,
67,
2273,
273,
13666,
529,
4278,
296,
2273,
2187,
296,
1883,
4278,
576,
16,
296,
2271,
67,
1080,
4278,
296,
85,
33,
10,
869,
2127,
4496,
33,
10,
4923,
33,
15774,
11,
97,
2665,
67,
869,
2127,
4496,
67,
21568,
67,
2116,
273,
306,
869,
2127,
4496,
67,
3482,
67,
70,
2997,
554,
16,
358,
2127,
4496,
67,
3482,
67,
2273,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
869,
2127,
4496,
67,
21568,
12,
2890,
4672,
468,
18734,
702,
741,
732,
4489,
35,
358,
2127,
4496,
67,
3482,
67,
70,
2997,
554,
273,
13666,
529,
4278,
296,
70,
2997,
554,
2187,
296,
1883,
4278,
404,
16,
296,
2271,
67,
1080,
4278,
296,
85,
33,
10,
869,
2127,
4496,
33,
70,
2997,
554,
10,
4923,
33,
15774,
11,
97,
358,
2127,
4496,
67,
3482,
67,
2273,
273,
13666,
529,
4278,
296,
2273,
2187,
296,
1883,
4278,
576,
16,
296,
2271,
67,
1080,
4278,
296,
85,
33,
10,
869,
2127,
4496,
33,
10,
4923,
33,
15774,
11,
97,
2665,
67,
869,
2127,
4496,
67,
21568,
67,
2116,
273,
306,
869,
2127,
4496,
67,
3482,
67,
70,
2
] |
self.assertTrue(context.devices is devices) | self.assertTrue(hw_context.devices is devices) | def test_construction_2(self): devices = object() hw_context = HardwareContext(devices) self.assertTrue(context.devices is devices) | ce54aa5c679c13f696fb5cc82e3ec222c5d9d937 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12617/ce54aa5c679c13f696fb5cc82e3ec222c5d9d937/test_dashboard_bundle_format_1_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
591,
4549,
67,
22,
12,
2890,
4672,
7166,
273,
733,
1435,
16139,
67,
2472,
273,
27438,
1042,
12,
12506,
13,
365,
18,
11231,
5510,
12,
2472,
18,
12506,
353,
7166,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
591,
4549,
67,
22,
12,
2890,
4672,
7166,
273,
733,
1435,
16139,
67,
2472,
273,
27438,
1042,
12,
12506,
13,
365,
18,
11231,
5510,
12,
2472,
18,
12506,
353,
7166,
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
] |
pfx = '%s.changes.%d' % (self.prefix, self.changeno) | self.changeno += 1 pfx = '%s.changes.%d.line' % (self.prefix, self.changeno) | def writeline(self, text): match = header_re.search(text) if match: self.hdf.setValue('%s.name.old' % self.prefix, match.group(1)) self.hdf.setValue('%s.name.new' % self.prefix, match.group(2)) return self.count = self.count + 1 if self.count < 3: return match = line_re.search(text) if match: pfx = '%s.changes.%d' % (self.prefix, self.changeno) self.print_block() self.hdf.setValue('%s.old' % pfx, match.group(1)) self.hdf.setValue('%s.new' % pfx, match.group(3)) self.changeno += 1 return ttype = text[0] text = text[1:] text = space_re.sub(' ', text.expandtabs(8)) if ttype == self.ttype: self.block.append(text) else: if ttype == '+' and self.ttype == '-': self.p_block = self.block self.p_type = self.ttype else: self.print_block() self.block = [text] self.ttype = ttype | 2485ff40d6b782ae035e8552e634ed7309b6dccd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/2485ff40d6b782ae035e8552e634ed7309b6dccd/Changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
3027,
12,
2890,
16,
977,
4672,
845,
273,
1446,
67,
266,
18,
3072,
12,
955,
13,
309,
845,
30,
365,
18,
26428,
18,
542,
620,
29909,
87,
18,
529,
18,
1673,
11,
738,
365,
18,
3239,
16,
845,
18,
1655,
12,
21,
3719,
365,
18,
26428,
18,
542,
620,
29909,
87,
18,
529,
18,
2704,
11,
738,
365,
18,
3239,
16,
845,
18,
1655,
12,
22,
3719,
327,
365,
18,
1883,
273,
365,
18,
1883,
397,
404,
309,
365,
18,
1883,
411,
890,
30,
327,
845,
273,
980,
67,
266,
18,
3072,
12,
955,
13,
309,
845,
30,
365,
18,
24083,
5764,
1011,
404,
31592,
273,
1995,
87,
18,
6329,
7866,
72,
18,
1369,
11,
738,
261,
2890,
18,
3239,
16,
365,
18,
24083,
5764,
13,
365,
18,
1188,
67,
2629,
1435,
365,
18,
26428,
18,
542,
620,
29909,
87,
18,
1673,
11,
738,
31592,
16,
845,
18,
1655,
12,
21,
3719,
365,
18,
26428,
18,
542,
620,
29909,
87,
18,
2704,
11,
738,
31592,
16,
845,
18,
1655,
12,
23,
3719,
365,
18,
24083,
5764,
1011,
404,
327,
27963,
273,
977,
63,
20,
65,
977,
273,
977,
63,
21,
26894,
977,
273,
3476,
67,
266,
18,
1717,
2668,
10,
10600,
31,
2265,
977,
18,
12320,
16056,
12,
28,
3719,
309,
27963,
422,
365,
18,
88,
723,
30,
365,
18,
2629,
18,
6923,
12,
955,
13,
469,
30,
309,
27963,
422,
10058,
471,
365,
18,
88,
723,
422,
4014,
30,
365,
18,
84,
67,
2629,
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,
2518,
3027,
12,
2890,
16,
977,
4672,
845,
273,
1446,
67,
266,
18,
3072,
12,
955,
13,
309,
845,
30,
365,
18,
26428,
18,
542,
620,
29909,
87,
18,
529,
18,
1673,
11,
738,
365,
18,
3239,
16,
845,
18,
1655,
12,
21,
3719,
365,
18,
26428,
18,
542,
620,
29909,
87,
18,
529,
18,
2704,
11,
738,
365,
18,
3239,
16,
845,
18,
1655,
12,
22,
3719,
327,
365,
18,
1883,
273,
365,
18,
1883,
397,
404,
309,
365,
18,
1883,
411,
890,
30,
327,
845,
273,
980,
67,
266,
18,
3072,
12,
955,
13,
309,
845,
30,
365,
18,
24083,
5764,
1011,
404,
31592,
273,
1995,
87,
18,
6329,
7866,
72,
18,
1369,
11,
738,
261,
2
] |
branch_url = BRANCH_URL.replace("$branch", options.branch) checkoutRevision(url, revision, branch_url) | if not options.local: branch_url = BRANCH_URL.replace("$branch", options.branch) checkoutRevision(url, revision, branch_url) | def main(options, args): revision = options.revert or options.merge # Initialize some variables used below. They can be overwritten by # the drover.properties file. BASE_URL = "svn://svn.chromium.org/chrome" TRUNK_URL = BASE_URL + "/trunk/src" BRANCH_URL = BASE_URL + "/branches/$branch/src" SKIP_CHECK_WORKING = True PROMPT_FOR_AUTHOR = False DEFAULT_WORKING = "drover_" + str(revision) if options.branch: DEFAULT_WORKING += ("_" + options.branch) if not isMinimumSVNVersion(1,5): print "You need to use at least SVN version 1.5.x" sys.exit(1) # Override the default properties if there is a drover.properties file. global file_pattern_ if os.path.exists("drover.properties"): file = open("drover.properties") exec(file) file.close() if FILE_PATTERN: file_pattern_ = FILE_PATTERN if options.revert and options.branch: url = BRANCH_URL.replace("$branch", options.branch) elif options.merge and options.sbranch: url = BRANCH_URL.replace("$branch", options.sbranch) else: url = TRUNK_URL working = options.workdir or DEFAULT_WORKING command = 'svn log ' + url + " -r "+str(revision) + " -v" os.system(command) if not (options.revertbot or prompt("Is this the correct revision?")): sys.exit(0) if (os.path.exists(working)): if not (options.revertbot or SKIP_CHECK_WORKING or prompt("Working directory: '%s' already exists, clobber?" % working)): sys.exit(0) deltree(working) os.makedirs(working) os.chdir(working) if options.merge: action = "Merge" branch_url = BRANCH_URL.replace("$branch", options.branch) # Checkout everything but stuff that got added into a new dir checkoutRevision(url, revision, branch_url) # Merge everything that changed mergeRevision(url, revision) # "Export" files that were added from the source and add them to branch exportRevision(url, revision) # Delete directories that were deleted (file deletes are handled in the # merge). deleteRevision(url, revision) elif options.revert: action = "Revert" if options.branch: url = BRANCH_URL.replace("$branch", options.branch) checkoutRevision(url, revision, url, True) revertRevision(url, revision) revertExportRevision(url, revision) # Check the base url so we actually find the author who made the change if options.auditor: author = options.auditor else: author = getAuthor(url, revision) if not author: author = getAuthor(TRUNK_URL, revision) filename = str(revision)+".txt" out = open(filename,"w") out.write(action +" " + str(revision) + " - ") out.write(getRevisionLog(url, revision)) if (author): out.write("TBR=" + author) out.close() change_cmd = 'change ' + str(revision) + " " + filename if options.revertbot: change_cmd += ' --silent' runGcl(change_cmd) os.unlink(filename) print author print revision print ("gcl upload " + str(revision) + " --send_mail --no_try --no_presubmit --reviewers=" + author) if options.revertbot or prompt("Would you like to upload?"): if PROMPT_FOR_AUTHOR: author = text_prompt("Enter new author or press enter to accept default", author) if options.revertbot and options.revertbot_reviewers: author += "," author += options.revertbot_reviewers gclUpload(revision, author) else: print "Deleting the changelist." print "gcl delete " + str(revision) runGcl("delete " + str(revision)) sys.exit(0) # We commit if the reverbot is set to commit automatically, or if this is # not the revertbot and the user agrees. if options.revertbot_commit or (not options.revertbot and prompt("Would you like to commit?")): print "gcl commit " + str(revision) + " --no_presubmit --force" runGcl("commit " + str(revision) + " --no_presubmit --force") else: sys.exit(0) | d42a8acd1d66ae2ca28a46c1c9f84911bda1b3ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/d42a8acd1d66ae2ca28a46c1c9f84911bda1b3ad/drover.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
6350,
273,
702,
18,
266,
1097,
578,
702,
18,
2702,
225,
468,
9190,
2690,
3152,
1399,
5712,
18,
16448,
848,
506,
15345,
635,
468,
326,
31473,
502,
18,
4738,
585,
18,
10250,
67,
1785,
273,
315,
31505,
2207,
31505,
18,
16298,
5077,
18,
3341,
19,
343,
10896,
6,
4235,
16141,
67,
1785,
273,
10250,
67,
1785,
397,
2206,
26133,
19,
4816,
6,
22427,
20360,
67,
1785,
273,
10250,
67,
1785,
397,
2206,
18078,
11141,
7500,
19,
4816,
6,
18420,
67,
10687,
67,
10566,
1360,
273,
1053,
453,
3942,
1856,
67,
7473,
67,
7131,
916,
273,
1083,
225,
3331,
67,
10566,
1360,
273,
315,
9005,
502,
9548,
397,
609,
12,
13057,
13,
309,
702,
18,
7500,
30,
3331,
67,
10566,
1360,
1011,
7566,
9548,
397,
702,
18,
7500,
13,
225,
309,
486,
353,
13042,
23927,
50,
1444,
12,
21,
16,
25,
4672,
1172,
315,
6225,
1608,
358,
999,
622,
4520,
29537,
50,
1177,
404,
18,
25,
18,
92,
6,
2589,
18,
8593,
12,
21,
13,
225,
468,
1439,
326,
805,
1790,
309,
1915,
353,
279,
31473,
502,
18,
4738,
585,
18,
2552,
585,
67,
4951,
67,
309,
1140,
18,
803,
18,
1808,
2932,
9005,
502,
18,
4738,
6,
4672,
585,
273,
1696,
2932,
9005,
502,
18,
4738,
7923,
1196,
12,
768,
13,
585,
18,
4412,
1435,
309,
7527,
67,
10831,
30,
585,
67,
4951,
67,
273,
7527,
67,
10831,
225,
309,
702,
18,
266,
1097,
471,
702,
18,
7500,
30,
880,
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,
2116,
16,
833,
4672,
6350,
273,
702,
18,
266,
1097,
578,
702,
18,
2702,
225,
468,
9190,
2690,
3152,
1399,
5712,
18,
16448,
848,
506,
15345,
635,
468,
326,
31473,
502,
18,
4738,
585,
18,
10250,
67,
1785,
273,
315,
31505,
2207,
31505,
18,
16298,
5077,
18,
3341,
19,
343,
10896,
6,
4235,
16141,
67,
1785,
273,
10250,
67,
1785,
397,
2206,
26133,
19,
4816,
6,
22427,
20360,
67,
1785,
273,
10250,
67,
1785,
397,
2206,
18078,
11141,
7500,
19,
4816,
6,
18420,
67,
10687,
67,
10566,
1360,
273,
1053,
453,
3942,
1856,
67,
7473,
67,
7131,
916,
273,
1083,
225,
3331,
67,
10566,
1360,
273,
315,
9005,
502,
9548,
397,
609,
12,
13057,
13,
309,
2
] |
big.append((fname.capitalize(), fval)) | big.append((f.capitalize(), fval)) | def format_props(self): tkt = self.ticket tkt['id'] = '%s' % tkt['id'] t = self.modtime or tkt['time'] tkt['modified'] = time.strftime('%c', time.localtime(t)) fields = ['id', 'status', 'component', 'modified', 'severity', 'milestone', 'priority', 'version', 'owner', 'reporter'] fields.extend(filter(lambda f: f.startswith('custom_'), self.ticket.keys())) i = 1 width = [0,0,0,0] for f in fields: if not tkt.has_key(f): continue fval = str(tkt[f]) if fval.find('\n') > -1: continue fname = f.startswith('custom_') and f[7:] or f idx = 2*(i % 2) if len(fname) > width[idx]: width[idx] = len(fname) if len(fval) > width[idx+1]: width[idx+1] = len(fval) i += 1 format = (' %%%is: %%-%is%s' % (width[0], width[1], CRLF), '%%%is: %%-%is | ' % (width[2], width[3])) i = 1 l = (width[2] + width[3] + 5) sep = l*'-' + '+' + (self.COLS-l)*'-' txt = sep + CRLF big=[] for f in fields: if not tkt.has_key(f): continue fval = tkt[f] fname = f.startswith('custom_') and f[7:] or f if '\n' in str(fval): big.append((fname.capitalize(), fval)) else: txt += format[i%2] % (fname.capitalize(), fval) i += 1 if i % 2 == 0: txt += '\n' if big: txt += sep for k,v in big: txt += '\n%s:\n%s\n\n' % (k,v) txt += sep return txt | ded62a2a8bea3ff7ebdabe21a68b4f5e1fcdd8f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/ded62a2a8bea3ff7ebdabe21a68b4f5e1fcdd8f8/Notify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
9693,
12,
2890,
4672,
268,
8629,
273,
365,
18,
16282,
268,
8629,
3292,
350,
3546,
273,
1995,
87,
11,
738,
268,
8629,
3292,
350,
3546,
268,
273,
365,
18,
1711,
957,
578,
268,
8629,
3292,
957,
3546,
268,
8629,
3292,
7342,
3546,
273,
813,
18,
701,
9982,
29909,
71,
2187,
813,
18,
3729,
957,
12,
88,
3719,
1466,
273,
10228,
350,
2187,
3639,
296,
2327,
2187,
296,
4652,
2187,
296,
7342,
2187,
296,
27341,
2187,
225,
296,
81,
18270,
2187,
296,
8457,
2187,
225,
296,
1589,
2187,
296,
8443,
2187,
377,
296,
266,
7988,
3546,
1466,
18,
14313,
12,
2188,
12,
14661,
284,
30,
284,
18,
17514,
1918,
2668,
3662,
4623,
3631,
365,
18,
16282,
18,
2452,
1435,
3719,
277,
273,
404,
1835,
273,
306,
20,
16,
20,
16,
20,
16,
20,
65,
364,
284,
316,
1466,
30,
309,
486,
268,
8629,
18,
5332,
67,
856,
12,
74,
4672,
1324,
284,
1125,
273,
609,
12,
88,
8629,
63,
74,
5717,
309,
284,
1125,
18,
4720,
2668,
64,
82,
6134,
405,
300,
21,
30,
1324,
5299,
273,
284,
18,
17514,
1918,
2668,
3662,
4623,
13,
471,
284,
63,
27,
26894,
578,
284,
2067,
273,
576,
21556,
77,
738,
576,
13,
309,
562,
12,
12749,
13,
405,
1835,
63,
3465,
14542,
1835,
63,
3465,
65,
273,
562,
12,
12749,
13,
309,
562,
12,
74,
1125,
13,
405,
1835,
63,
3465,
15,
21,
14542,
1835,
63,
3465,
15,
21,
65,
273,
562,
12,
74,
1125,
13,
277,
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,
740,
67,
9693,
12,
2890,
4672,
268,
8629,
273,
365,
18,
16282,
268,
8629,
3292,
350,
3546,
273,
1995,
87,
11,
738,
268,
8629,
3292,
350,
3546,
268,
273,
365,
18,
1711,
957,
578,
268,
8629,
3292,
957,
3546,
268,
8629,
3292,
7342,
3546,
273,
813,
18,
701,
9982,
29909,
71,
2187,
813,
18,
3729,
957,
12,
88,
3719,
1466,
273,
10228,
350,
2187,
3639,
296,
2327,
2187,
296,
4652,
2187,
296,
7342,
2187,
296,
27341,
2187,
225,
296,
81,
18270,
2187,
296,
8457,
2187,
225,
296,
1589,
2187,
296,
8443,
2187,
377,
296,
266,
7988,
3546,
1466,
18,
14313,
12,
2188,
12,
14661,
284,
30,
284,
18,
17514,
1918,
2668,
3662,
4623,
3631,
365,
18,
16282,
18,
2
] |
old_fval = f(xk,*args) | old_fval = f(xk) | def fmin_cg(f, x0, fprime=None, args=(), gtol=1e-5, norm=Inf, epsilon=_epsilon, maxiter=None, full_output=0, disp=1, retall=0): """Minimize a function with nonlinear conjugate gradient algorithm. Description: Optimize the function, f, whose gradient is given by fprime using the nonlinear conjugate gradient algorithm of Polak and Ribiere See Wright, and Nocedal 'Numerical Optimization', 1999, pg. 120-122. Inputs: f -- the Python function or method to be minimized. x0 -- the initial guess for the minimizer. fprime -- a function to compute the gradient of f. args -- extra arguments to f and fprime. gtol -- stop when norm of gradient is less than gtol norm -- order of vector norm to use epsilon -- if fprime is approximated use this value for the step size (can be scalar or vector) Outputs: (xopt, {fopt, func_calls, grad_calls, warnflag}, {allvecs}) xopt -- the minimizer of f. fopt -- the value of f(xopt). func_calls -- the number of function_calls. grad_calls -- the number of gradient calls. warnflag -- an integer warning flag: 1 : 'Maximum number of iterations exceeded.' 2 : 'Gradient and/or function calls not changing' allvecs -- if retall then this vector of the iterates is returned Additional Inputs: maxiter -- the maximum number of iterations. full_output -- if non-zero then return fopt, func_calls, grad_calls, and warnflag in addition to xopt. disp -- print convergence message if non-zero. retall -- return a list of results at each iteration if True """ app_fprime = 0 if fprime is None: app_fprime = 1 x0 = asarray(x0) if maxiter is None: maxiter = len(x0)*200 func_calls = 0 grad_calls = 0 k = 0 N = len(x0) xk = x0 old_fval = f(xk,*args) old_old_fval = old_fval + 5000 func_calls +=1 if app_fprime: gfk = apply(approx_fprime,(x0,f,epsilon)+args) myfprime = (approx_fprime,epsilon) func_calls = func_calls + len(x0) + 1 else: gfk = apply(fprime,(x0,)+args) myfprime = fprime grad_calls = grad_calls + 1 if retall: allvecs = [xk] sk = [2*gtol] warnflag = 0 pk = -gfk gnorm = vecnorm(gfk,ord=norm) while (gnorm > gtol) and (k < maxiter): deltak = Num.dot(gfk,gfk) alpha_k, fc, gc, old_fval, old_old_fval, gfkp1 = \ linesearch.line_search(f,myfprime,xk,pk,gfk,old_fval, old_old_fval,args=args,c2=0.4) if alpha_k is None: # line search failed -- use different one. func_calls += fc grad_calls += gc alpha_k, fc, gc, old_fval, old_old_fval, gfkp1 = \ line_search(f,myfprime,xk,pk,gfk, old_fval,old_old_fval,args=args) func_calls += fc grad_calls += gc xk = xk + alpha_k*pk if retall: allvecs.append(xk) if gfkp1 is None: if app_fprime: gfkp1 = apply(approx_fprime,(xk,f,epsilon)+args) func_calls = func_calls + len(x0) + 1 else: gfkp1 = apply(fprime,(xk,)+args) grad_calls = grad_calls + 1 yk = gfkp1 - gfk beta_k = pymax(0,Num.dot(yk,gfkp1)/deltak) pk = -gfkp1 + beta_k * pk gfk = gfkp1 gnorm = vecnorm(gfk,ord=norm) k = k + 1 if disp or full_output: fval = old_fval if warnflag == 2: if disp: print "Warning: Desired error not necessarily achieved due to precision loss" print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls print " Gradient evaluations: %d" % grad_calls elif k >= maxiter: warnflag = 1 if disp: print "Warning: Maximum number of iterations has been exceeded" print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls print " Gradient evaluations: %d" % grad_calls else: if disp: print "Optimization terminated successfully." print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls print " Gradient evaluations: %d" % grad_calls if full_output: retlist = xk, fval, func_calls, grad_calls, warnflag if retall: retlist += (allvecs,) else: retlist = xk if retall: retlist = (xk, allvecs) return retlist | 926e615eebcd9f2ca3373b1887f74b532b10bda4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/926e615eebcd9f2ca3373b1887f74b532b10bda4/optimize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1154,
67,
26275,
12,
74,
16,
619,
20,
16,
284,
16382,
33,
7036,
16,
833,
33,
9334,
314,
3490,
33,
21,
73,
17,
25,
16,
4651,
33,
13149,
16,
12263,
33,
67,
13058,
10327,
16,
25743,
33,
7036,
16,
1983,
67,
2844,
33,
20,
16,
16232,
33,
21,
16,
325,
454,
33,
20,
4672,
3536,
2930,
10153,
279,
445,
598,
1661,
12379,
10550,
31529,
10292,
4886,
18,
225,
6507,
30,
225,
12056,
10153,
326,
445,
16,
284,
16,
8272,
10292,
353,
864,
635,
284,
16382,
1450,
326,
1661,
12379,
10550,
31529,
10292,
4886,
434,
6730,
581,
471,
534,
495,
77,
822,
2164,
678,
4083,
16,
471,
2631,
3263,
287,
296,
2578,
10882,
19615,
1588,
2187,
404,
11984,
16,
7184,
18,
15743,
17,
22266,
18,
225,
24472,
30,
225,
284,
1493,
326,
6600,
445,
578,
707,
358,
506,
18172,
1235,
18,
619,
20,
1493,
326,
2172,
7274,
364,
326,
18172,
1824,
18,
225,
284,
16382,
1493,
279,
445,
358,
3671,
326,
10292,
434,
284,
18,
833,
1493,
2870,
1775,
358,
284,
471,
284,
16382,
18,
314,
3490,
1493,
2132,
1347,
4651,
434,
10292,
353,
5242,
2353,
314,
3490,
4651,
1493,
1353,
434,
3806,
4651,
358,
999,
12263,
1493,
309,
284,
16382,
353,
10818,
17275,
999,
333,
460,
364,
326,
2235,
963,
261,
4169,
506,
4981,
578,
3806,
13,
225,
26168,
30,
261,
92,
3838,
16,
288,
617,
337,
16,
1326,
67,
12550,
16,
6058,
67,
12550,
16,
1894,
6420,
5779,
288,
454,
27698,
6792,
225,
619,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1154,
67,
26275,
12,
74,
16,
619,
20,
16,
284,
16382,
33,
7036,
16,
833,
33,
9334,
314,
3490,
33,
21,
73,
17,
25,
16,
4651,
33,
13149,
16,
12263,
33,
67,
13058,
10327,
16,
25743,
33,
7036,
16,
1983,
67,
2844,
33,
20,
16,
16232,
33,
21,
16,
325,
454,
33,
20,
4672,
3536,
2930,
10153,
279,
445,
598,
1661,
12379,
10550,
31529,
10292,
4886,
18,
225,
6507,
30,
225,
12056,
10153,
326,
445,
16,
284,
16,
8272,
10292,
353,
864,
635,
284,
16382,
1450,
326,
1661,
12379,
10550,
31529,
10292,
4886,
434,
6730,
581,
471,
534,
495,
77,
822,
2164,
678,
4083,
16,
471,
2631,
3263,
287,
296,
2578,
10882,
19615,
1588,
2187,
404,
11984,
2
] |
port = 0 baudrate = 9600 rtscts = 0 xonxoff = 0 | ser.port = 0 ser.baudrate = 9600 ser.rtscts = False ser.xonxoff = False ser.timeout = 1 | def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: serial port, a number, defualt = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow control (default off) -P, --localport: TCP/IP port on which to run the server (default 7777) """ % sys.argv[0] | fb947cb47fa5d0c2e4f05e39bc7ef609059d9d72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/fb947cb47fa5d0c2e4f05e39bc7ef609059d9d72/tcp_serial_redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
1671,
9499,
18,
11241,
16,
3536,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,
30,
2734,
1756,
16,
279,
1300,
16,
1652,
1462,
88,
273,
374,
578,
279,
2346,
508,
300,
70,
16,
1493,
12124,
1100,
33,
12536,
12587,
30,
9846,
1100,
5141,
16,
805,
19332,
713,
300,
86,
16,
1493,
86,
3428,
299,
87,
30,
565,
4237,
534,
8047,
19,
1268,
55,
4693,
3325,
261,
1886,
3397,
13,
300,
92,
16,
1493,
92,
265,
92,
3674,
30,
282,
4237,
17888,
4693,
3325,
261,
1886,
3397,
13,
300,
52,
16,
1493,
3729,
655,
30,
9911,
19,
2579,
1756,
603,
1492,
358,
1086,
326,
1438,
261,
1886,
2371,
14509,
13,
3536,
738,
2589,
18,
19485,
63,
20,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
33,
6354,
30,
2734,
1756,
16,
279,
1300,
16,
1652,
1462,
88,
273,
374,
578,
279,
2346,
508,
300,
70,
16,
1493,
12124,
1100,
33,
12536,
12587,
30,
9846,
1100,
5141,
16,
805,
19332,
713,
300,
86,
16,
1493,
86,
3428,
299,
87,
30,
565,
4237,
534,
8047,
19,
1268,
55,
4693,
3325,
261,
1886,
3397,
13,
300,
92,
16,
1493,
92,
265,
92,
3674,
30,
282,
4237,
17888,
4693,
3325,
261,
1886,
3397,
13,
300,
52,
16,
1493,
3729,
655,
30,
9911,
19,
2579,
2
] |
def store_entries(entries_list, dbmodel, conn): | progress_count = 100 def store_entries(entries_list, dbmodel, curs): | def store_entries(entries_list, dbmodel, conn): """ Given a list of entries to be stored, try to store as much data as possible in the given database model.""" curs = conn.cursor() # Drop the old data from this document from the previous tables. tables = [x.table for x in entries_list] sources = [x.source for x in entries_list] for table in tables: if table not in dbmodel: continue for source in sources: curs.execute("DELETE FROM %s WHERE %s = %%s" % (table, col_source), (source,)) dbmodel = dict((k, dict(v)) for (k,v) in dbmodel.iteritems()) for e in entries_list: try: dbcols = dbmodel[e.table] except KeyError: pass # Table for available. outcols = [col_source] outvalues = [e.source] colseen = set() for cname, cvalue in e.values: cname = cname # If the columns cannot be stored in the current model, don't. if cname not in dbcols: continue if cname in colseen: logging.warning("Duplicate field name at %s" % e.locator) continue else: colseen.add(cname) dbtype = dbcols[cname].lower() if dbtype in ('text', 'varchar', 'char'): value = unicode(cvalue) elif dbtype in ('integer',): value = int(cvalue) elif dbtype in ('numeric', 'float'): value = float(cvalue) else: raise NotImplementedError("Unsupported type: '%s'" % dbtype) outcols.append(cname) outvalues.append(value) if outvalues: curs.execute(""" INSERT INTO %s (%s) VALUES (%s) """ % (e.table, ','.join(outcols), ','.join(['%s'] * len(outvalues))), outvalues) conn.commit() | 195761e01f96d3c6a5eea7d9f46db5a14e52b2ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5620/195761e01f96d3c6a5eea7d9f46db5a14e52b2ca/rstlime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4007,
67,
1883,
273,
2130,
225,
1652,
1707,
67,
8219,
12,
8219,
67,
1098,
16,
1319,
2284,
16,
25326,
4672,
3536,
16803,
279,
666,
434,
3222,
358,
506,
4041,
16,
775,
358,
1707,
487,
9816,
501,
487,
3323,
316,
326,
864,
2063,
938,
12123,
225,
25326,
273,
1487,
18,
9216,
1435,
225,
468,
10895,
326,
1592,
501,
628,
333,
1668,
628,
326,
2416,
4606,
18,
4606,
273,
306,
92,
18,
2121,
364,
619,
316,
3222,
67,
1098,
65,
5550,
273,
306,
92,
18,
3168,
364,
619,
316,
3222,
67,
1098,
65,
364,
1014,
316,
4606,
30,
309,
1014,
486,
316,
1319,
2284,
30,
1324,
364,
1084,
316,
5550,
30,
25326,
18,
8837,
2932,
6460,
4571,
738,
87,
4852,
738,
87,
273,
26510,
87,
6,
738,
261,
2121,
16,
645,
67,
3168,
3631,
261,
3168,
16,
3719,
225,
1319,
2284,
273,
2065,
12443,
79,
16,
2065,
12,
90,
3719,
364,
261,
79,
16,
90,
13,
316,
1319,
2284,
18,
2165,
3319,
10756,
364,
425,
316,
3222,
67,
1098,
30,
775,
30,
1319,
6842,
273,
1319,
2284,
63,
73,
18,
2121,
65,
1335,
4999,
30,
1342,
468,
3555,
364,
2319,
18,
225,
596,
6842,
273,
306,
1293,
67,
3168,
65,
596,
2372,
273,
306,
73,
18,
3168,
65,
645,
15156,
273,
444,
1435,
364,
18290,
16,
276,
1132,
316,
425,
18,
2372,
30,
18290,
273,
18290,
225,
468,
971,
326,
2168,
2780,
506,
4041,
316,
326,
783,
938,
16,
2727,
1404,
18,
309,
18290,
486,
316,
1319,
6842,
30,
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,
4007,
67,
1883,
273,
2130,
225,
1652,
1707,
67,
8219,
12,
8219,
67,
1098,
16,
1319,
2284,
16,
25326,
4672,
3536,
16803,
279,
666,
434,
3222,
358,
506,
4041,
16,
775,
358,
1707,
487,
9816,
501,
487,
3323,
316,
326,
864,
2063,
938,
12123,
225,
25326,
273,
1487,
18,
9216,
1435,
225,
468,
10895,
326,
1592,
501,
628,
333,
1668,
628,
326,
2416,
4606,
18,
4606,
273,
306,
92,
18,
2121,
364,
619,
316,
3222,
67,
1098,
65,
5550,
273,
306,
92,
18,
3168,
364,
619,
316,
3222,
67,
1098,
65,
364,
1014,
316,
4606,
30,
309,
1014,
486,
316,
1319,
2284,
30,
1324,
364,
1084,
316,
5550,
30,
25326,
18,
8837,
2932,
6460,
4571,
738,
87,
4852,
738,
2
] |
instance_class_slot.__set__(inst, value) | instance_class_slot.__set__(self, value) | def __setattr__(self, name, value): if name == '__dict__': if not isinstance(value, dict): raise TypeError("__dict__ must be set to a dictionary") obj_setattr(self, '__dict__', value) elif name == '__class__': if not isinstance(value, classobj): raise TypeError("__class__ must be set to a class") instance_class_slot.__set__(inst, value) else: setattr = instance_getattr1(self, '__setattr__', exc=False) if setattr is not None: setattr(name, value) else: self.__dict__[name] = value | 166a6128c6b79c65817f8fd81c4e5a2389872b30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/166a6128c6b79c65817f8fd81c4e5a2389872b30/_classobj.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
4672,
309,
508,
422,
4940,
1576,
972,
4278,
309,
486,
1549,
12,
1132,
16,
2065,
4672,
1002,
3580,
2932,
972,
1576,
972,
1297,
506,
444,
358,
279,
3880,
7923,
1081,
67,
542,
1747,
12,
2890,
16,
4940,
1576,
972,
2187,
460,
13,
1327,
508,
422,
4940,
1106,
972,
4278,
309,
486,
1549,
12,
1132,
16,
667,
2603,
4672,
1002,
3580,
2932,
972,
1106,
972,
1297,
506,
444,
358,
279,
667,
7923,
791,
67,
1106,
67,
14194,
16186,
542,
972,
12,
2890,
16,
460,
13,
469,
30,
9241,
273,
791,
67,
588,
1747,
21,
12,
2890,
16,
4940,
542,
1747,
972,
2187,
3533,
33,
8381,
13,
309,
9241,
353,
486,
599,
30,
9241,
12,
529,
16,
460,
13,
469,
30,
365,
16186,
1576,
972,
63,
529,
65,
273,
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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,
508,
422,
4940,
1576,
972,
4278,
309,
486,
1549,
12,
1132,
16,
2065,
4672,
1002,
3580,
2932,
972,
1576,
972,
1297,
506,
444,
358,
279,
3880,
7923,
1081,
67,
542,
1747,
12,
2890,
16,
4940,
1576,
972,
2187,
460,
13,
1327,
508,
422,
4940,
1106,
972,
4278,
309,
486,
1549,
12,
1132,
16,
667,
2603,
4672,
1002,
3580,
2932,
972,
1106,
972,
1297,
506,
444,
358,
279,
667,
7923,
791,
67,
1106,
67,
14194,
16186,
542,
972,
12,
2890,
16,
460,
13,
469,
30,
9241,
273,
791,
67,
588,
1747,
21,
12,
2890,
16,
4940,
542,
1747,
972,
2187,
3533,
33,
8381,
13,
309,
9241,
353,
2
] |
for d in docs] onclick = ("doclink('%s', '%s', '%s'); return false;" % (uid, name, ','.join(targets))) return uid, onclick | for d in docs]) if targets in self.doclink_targets_cache: onclick = ("return doclink('%s', '%s', '%s');" % (uid, name, self.doclink_targets_cache[targets])) return uid, onclick, None else: self.doclink_targets_cache[targets] = uid onclick = ("return doclink('%s', '%s', '%s');" % (uid, name, uid)) return uid, onclick, targets | def doclink(self, name, docs): uid = 'link-%s' % self._next_uid self._next_uid += 1 context = [n for n in self.context if n is not None] container = DottedName(self.module_name, *context) #else: # container = None targets = ['%s=%s' % (str(self.doc_descr(d,container)), str(self.url_func(d))) for d in docs] onclick = ("doclink('%s', '%s', '%s'); return false;" % (uid, name, ','.join(targets))) return uid, onclick | 5bc1065ae92ac1cb6e043d081151eb3bcfca80a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5bc1065ae92ac1cb6e043d081151eb3bcfca80a3/html_colorize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
1232,
12,
2890,
16,
508,
16,
3270,
4672,
4555,
273,
296,
1232,
6456,
87,
11,
738,
365,
6315,
4285,
67,
1911,
365,
6315,
4285,
67,
1911,
1011,
404,
819,
273,
306,
82,
364,
290,
316,
365,
18,
2472,
309,
290,
353,
486,
599,
65,
1478,
273,
17502,
2344,
461,
12,
2890,
18,
2978,
67,
529,
16,
380,
2472,
13,
468,
12107,
30,
468,
565,
1478,
273,
599,
5774,
273,
10228,
9,
87,
5095,
87,
11,
738,
261,
701,
12,
2890,
18,
2434,
67,
28313,
12,
72,
16,
3782,
13,
3631,
609,
12,
2890,
18,
718,
67,
644,
12,
72,
20349,
364,
302,
316,
3270,
65,
22324,
273,
7566,
2434,
1232,
29909,
87,
2187,
1995,
87,
2187,
1995,
87,
8284,
327,
629,
4868,
738,
261,
1911,
16,
508,
16,
3316,
18,
5701,
12,
11358,
20349,
327,
4555,
16,
22324,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
1232,
12,
2890,
16,
508,
16,
3270,
4672,
4555,
273,
296,
1232,
6456,
87,
11,
738,
365,
6315,
4285,
67,
1911,
365,
6315,
4285,
67,
1911,
1011,
404,
819,
273,
306,
82,
364,
290,
316,
365,
18,
2472,
309,
290,
353,
486,
599,
65,
1478,
273,
17502,
2344,
461,
12,
2890,
18,
2978,
67,
529,
16,
380,
2472,
13,
468,
12107,
30,
468,
565,
1478,
273,
599,
5774,
273,
10228,
9,
87,
5095,
87,
11,
738,
261,
701,
12,
2890,
18,
2434,
67,
28313,
12,
72,
16,
3782,
13,
3631,
609,
12,
2890,
18,
718,
67,
644,
12,
72,
20349,
364,
302,
316,
3270,
65,
22324,
273,
7566,
2434,
1232,
29909,
87,
2187,
1995,
87,
2187,
1995,
2
] |
[14.134725142, 21.022039637, 25.010857582, 30.424876124] | [14.1347251, 21.0220396, 25.0108575, 30.4248761] | def zeros(self, n, L=''): """ Return the imaginary parts of the first $n$ nontrivial zeros of the $L$-function in the upper half plane, as 32-bit reals. | 190d721b928fa19159704505db9bd5cd1aafd024 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/190d721b928fa19159704505db9bd5cd1aafd024/lcalc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4922,
12,
2890,
16,
290,
16,
511,
2218,
11,
4672,
3536,
2000,
326,
30852,
2140,
434,
326,
1122,
271,
82,
8,
1661,
313,
20109,
4922,
434,
326,
271,
48,
8,
17,
915,
316,
326,
3854,
8816,
11017,
16,
487,
3847,
17,
3682,
283,
1031,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4922,
12,
2890,
16,
290,
16,
511,
2218,
11,
4672,
3536,
2000,
326,
30852,
2140,
434,
326,
1122,
271,
82,
8,
1661,
313,
20109,
4922,
434,
326,
271,
48,
8,
17,
915,
316,
326,
3854,
8816,
11017,
16,
487,
3847,
17,
3682,
283,
1031,
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
] |
if restricted and \ not (npath.startswith(path) or path.startswith(npath)): | if (restricted and not (npath == path or npath.startswith(path + '/') or path.startswith(npath + '/'))): | def get_changes(): old_node = new_node = None for npath, kind, change, opath, orev in chgset.get_changes(): if restricted and \ not (npath.startswith(path) # npath is below or path.startswith(npath)): # npath is above continue if change != Changeset.ADD: old_node = repos.get_node(opath, orev) if change != Changeset.DELETE: new_node = repos.get_node(npath, rev) yield old_node, new_node, kind, change | 70a8f0b7f6f51874af0c4b301617d3abdaa2da2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/70a8f0b7f6f51874af0c4b301617d3abdaa2da2b/changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6329,
13332,
1592,
67,
2159,
273,
394,
67,
2159,
273,
599,
364,
290,
803,
16,
3846,
16,
2549,
16,
320,
803,
16,
320,
9083,
316,
462,
75,
542,
18,
588,
67,
6329,
13332,
309,
15693,
471,
521,
486,
261,
82,
803,
18,
17514,
1918,
12,
803,
13,
1377,
468,
290,
803,
353,
5712,
578,
589,
18,
17514,
1918,
12,
82,
803,
3719,
30,
468,
290,
803,
353,
5721,
1324,
309,
2549,
480,
17776,
278,
18,
8355,
30,
1592,
67,
2159,
273,
13686,
18,
588,
67,
2159,
12,
556,
421,
16,
320,
9083,
13,
309,
2549,
480,
17776,
278,
18,
6460,
30,
394,
67,
2159,
273,
13686,
18,
588,
67,
2159,
12,
82,
803,
16,
5588,
13,
2824,
1592,
67,
2159,
16,
394,
67,
2159,
16,
3846,
16,
2549,
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,
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9083,
316,
462,
75,
542,
18,
588,
67,
6329,
13332,
309,
15693,
471,
521,
486,
261,
82,
803,
18,
17514,
1918,
12,
803,
13,
1377,
468,
290,
803,
353,
5712,
578,
589,
18,
17514,
1918,
12,
82,
803,
3719,
30,
468,
290,
803,
353,
5721,
1324,
309,
2549,
480,
17776,
278,
18,
8355,
30,
1592,
67,
2159,
273,
13686,
18,
588,
67,
2159,
12,
556,
421,
16,
320,
9083,
13,
309,
2549,
480,
17776,
278,
18,
6460,
30,
394,
67,
2159,
273,
13686,
18,
588,
67,
2159,
12,
82,
803,
16,
5588,
13,
2
] |
for line in file: | for line in fp: | def _get_string_keys(path): """Grab all the string keys of out a language file""" re_key = re.compile("^ *ui_strings\.([^ ]*)") file = codecs.open(path, "r", "utf_8_sig") lang_keys = set() for line in file: lang_keys.update(re_key.findall(line)) file.close() return lang_keys | b1c013d0daad4a8a6ea9dfc8e40bac88ebbb3921 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10922/b1c013d0daad4a8a6ea9dfc8e40bac88ebbb3921/dfbuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1080,
67,
2452,
12,
803,
4672,
3536,
14571,
70,
777,
326,
533,
1311,
434,
596,
279,
2653,
585,
8395,
283,
67,
856,
273,
283,
18,
11100,
2932,
66,
380,
4881,
67,
10219,
5834,
8178,
308,
14,
2225,
13,
585,
273,
17437,
18,
3190,
12,
803,
16,
315,
86,
3113,
315,
3158,
67,
28,
67,
7340,
7923,
3303,
67,
2452,
273,
444,
1435,
364,
980,
316,
4253,
30,
3303,
67,
2452,
18,
2725,
12,
266,
67,
856,
18,
4720,
454,
12,
1369,
3719,
585,
18,
4412,
1435,
327,
3303,
67,
2452,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1080,
67,
2452,
12,
803,
4672,
3536,
14571,
70,
777,
326,
533,
1311,
434,
596,
279,
2653,
585,
8395,
283,
67,
856,
273,
283,
18,
11100,
2932,
66,
380,
4881,
67,
10219,
5834,
8178,
308,
14,
2225,
13,
585,
273,
17437,
18,
3190,
12,
803,
16,
315,
86,
3113,
315,
3158,
67,
28,
67,
7340,
7923,
3303,
67,
2452,
273,
444,
1435,
364,
980,
316,
4253,
30,
3303,
67,
2452,
18,
2725,
12,
266,
67,
856,
18,
4720,
454,
12,
1369,
3719,
585,
18,
4412,
1435,
327,
3303,
67,
2452,
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
] |
testResults = ExperimentResults(times, [l.name for l in learners], values, weight!=0, basevalue) | classVar = examples.domain.classVar if examples.domain.classVar.varType == orange.VarTypes.Discrete: values = classVar.values.native() baseValue = classVar.baseValue else: values = None baseValue = -1 testResults = ExperimentResults(times, [l.name for l in learners], values, weight!=0, baseValue) | def proportionTest(learners, examples, learnProp, times=10, strat=orange.MakeRandomIndices.StratifiedIfPossible, pps=[], callback=None, **argkw): """train-and-test evaluation (train on a subset, test on remaing examples)""" # randomGenerator is set either to what users provided or to orange.RandomGenerator(0) # If we left it None or if we set MakeRandomIndices2.randseed, it would give same indices each time it's called randomGenerator = argkw.get("indicesrandseed", 0) or argkw.get("randseed", 0) or argkw.get("randomGenerator", 0) pick = orange.MakeRandomIndices2(stratified = strat, p0 = learnProp, randomGenerator = randomGenerator) examples, weight = demangleExamples(examples) if examples.domain.classVar.varType == orange.VarTypes.Discrete: values = list(examples.domain.classVar.values) basevalue = examples.domain.classVar.baseValue else: basevalue = values = None testResults = ExperimentResults(times, [l.name for l in learners], values, weight!=0, basevalue) for time in range(times): indices = pick(examples) learnset = examples.selectref(indices, 0) testset = examples.selectref(indices, 1) learnAndTestOnTestData(learners, (learnset, weight), (testset, weight), testResults, time, pps, **argkw) if callback: callback() return testResults | a4efcaebbd4f5cf515830443c9d40062ce40880f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/a4efcaebbd4f5cf515830443c9d40062ce40880f/orngTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23279,
4709,
12,
21346,
414,
16,
10991,
16,
16094,
4658,
16,
4124,
33,
2163,
16,
609,
270,
33,
280,
726,
18,
6464,
8529,
8776,
18,
1585,
270,
939,
2047,
13576,
16,
293,
1121,
22850,
6487,
1348,
33,
7036,
16,
2826,
3175,
9987,
4672,
3536,
9754,
17,
464,
17,
3813,
9873,
261,
9754,
603,
279,
7931,
16,
1842,
603,
849,
69,
310,
10991,
15574,
468,
2744,
3908,
353,
444,
3344,
358,
4121,
3677,
2112,
578,
358,
578,
726,
18,
8529,
3908,
12,
20,
13,
468,
971,
732,
2002,
518,
599,
578,
309,
732,
444,
4344,
8529,
8776,
22,
18,
7884,
12407,
16,
518,
4102,
8492,
1967,
4295,
1517,
813,
518,
1807,
2566,
2744,
3908,
273,
1501,
9987,
18,
588,
2932,
6836,
7884,
12407,
3113,
374,
13,
578,
1501,
9987,
18,
588,
2932,
7884,
12407,
3113,
374,
13,
578,
1501,
9987,
18,
588,
2932,
9188,
3908,
3113,
374,
13,
6002,
273,
578,
726,
18,
6464,
8529,
8776,
22,
12,
701,
270,
939,
273,
609,
270,
16,
293,
20,
273,
16094,
4658,
16,
2744,
3908,
273,
2744,
3908,
13,
225,
10991,
16,
3119,
273,
9626,
4341,
23905,
12,
16858,
13,
309,
10991,
18,
4308,
18,
1106,
1537,
18,
1401,
559,
422,
578,
726,
18,
1537,
2016,
18,
1669,
6883,
30,
924,
273,
666,
12,
16858,
18,
4308,
18,
1106,
1537,
18,
2372,
13,
1026,
1132,
273,
10991,
18,
4308,
18,
1106,
1537,
18,
1969,
620,
469,
30,
1026,
1132,
273,
924,
273,
599,
667,
1537,
273,
10991,
18,
4308,
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,
23279,
4709,
12,
21346,
414,
16,
10991,
16,
16094,
4658,
16,
4124,
33,
2163,
16,
609,
270,
33,
280,
726,
18,
6464,
8529,
8776,
18,
1585,
270,
939,
2047,
13576,
16,
293,
1121,
22850,
6487,
1348,
33,
7036,
16,
2826,
3175,
9987,
4672,
3536,
9754,
17,
464,
17,
3813,
9873,
261,
9754,
603,
279,
7931,
16,
1842,
603,
849,
69,
310,
10991,
15574,
468,
2744,
3908,
353,
444,
3344,
358,
4121,
3677,
2112,
578,
358,
578,
726,
18,
8529,
3908,
12,
20,
13,
468,
971,
732,
2002,
518,
599,
578,
309,
732,
444,
4344,
8529,
8776,
22,
18,
7884,
12407,
16,
518,
4102,
8492,
1967,
4295,
1517,
813,
518,
1807,
2566,
2744,
3908,
273,
1501,
9987,
18,
588,
2
] |
self.logger.log('very large resultSet - passing CQL for repeat search') | self.logger.log('Large resultSet - passing CQL for repeat search') | def search(self, form, maxResultSetSize=None): firstrec = int(form.get('firstrec', 1)) numreq = int(form.get('numreq', 20)) highlight = int(form.get('highlight', 1)) rsid = form.get('rsid', None) qString = form.get('query', form.get('cqlquery', None)) withinCollection = form.get('withinCollection', None) | 51c4864bb9efdde7305f1cca91b49e2220b7771c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11263/51c4864bb9efdde7305f1cca91b49e2220b7771c/eadSearchHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
646,
16,
943,
13198,
1225,
33,
7036,
4672,
1122,
3927,
273,
509,
12,
687,
18,
588,
2668,
3645,
3927,
2187,
404,
3719,
818,
3658,
273,
509,
12,
687,
18,
588,
2668,
2107,
3658,
2187,
4200,
3719,
8839,
273,
509,
12,
687,
18,
588,
2668,
15978,
2187,
404,
3719,
3597,
350,
273,
646,
18,
588,
2668,
5453,
350,
2187,
599,
13,
1043,
780,
273,
646,
18,
588,
2668,
2271,
2187,
646,
18,
588,
2668,
71,
1217,
2271,
2187,
599,
3719,
3470,
2532,
273,
646,
18,
588,
2668,
25850,
2532,
2187,
599,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
646,
16,
943,
13198,
1225,
33,
7036,
4672,
1122,
3927,
273,
509,
12,
687,
18,
588,
2668,
3645,
3927,
2187,
404,
3719,
818,
3658,
273,
509,
12,
687,
18,
588,
2668,
2107,
3658,
2187,
4200,
3719,
8839,
273,
509,
12,
687,
18,
588,
2668,
15978,
2187,
404,
3719,
3597,
350,
273,
646,
18,
588,
2668,
5453,
350,
2187,
599,
13,
1043,
780,
273,
646,
18,
588,
2668,
2271,
2187,
646,
18,
588,
2668,
71,
1217,
2271,
2187,
599,
3719,
3470,
2532,
273,
646,
18,
588,
2668,
25850,
2532,
2187,
599,
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
] |
sock.write("%s: %s\n" % now, msg) | sock.write("%s: %s\n" % (now, msg)) | def dprint(msg): from time import strftime global options now = strftime("%Y-%m-%d %H:%M:%S") if options.debug: print now + ": " + msg if options.log: sock = open(options.log, "a") sock.write("%s: %s\n" % now, msg) sock.close() | ea1d79673ffcd39a868147e88230799f9d227728 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10034/ea1d79673ffcd39a868147e88230799f9d227728/skyped.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
1188,
12,
3576,
4672,
628,
813,
1930,
10405,
2552,
702,
225,
2037,
273,
10405,
27188,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
7923,
225,
309,
702,
18,
4148,
30,
1172,
2037,
397,
6398,
315,
397,
1234,
309,
702,
18,
1330,
30,
7313,
273,
1696,
12,
2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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
1188,
12,
3576,
4672,
628,
813,
1930,
10405,
2552,
702,
225,
2037,
273,
10405,
27188,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
7923,
225,
309,
702,
18,
4148,
30,
1172,
2037,
397,
6398,
315,
397,
1234,
309,
702,
18,
1330,
30,
7313,
273,
1696,
12,
2116,
18,
1330,
16,
315,
69,
7923,
7313,
18,
2626,
27188,
87,
30,
738,
87,
64,
82,
6,
738,
261,
3338,
16,
1234,
3719,
7313,
18,
4412,
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
] |
pass | remove(self.__file_name) | def __del__( self ): """ Delete method, cleanup temp file if needed. """ if self.__file_delete and self.__file_name != "": # delete temp file ++++ pass | 081caa4112e4523e94d21ab16a9f9b8a69049317 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13212/081caa4112e4523e94d21ab16a9f9b8a69049317/node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
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,
1001,
3771,
972,
12,
365,
262,
30,
3536,
2504,
707,
16,
6686,
1906,
585,
309,
3577,
18,
3536,
309,
365,
16186,
768,
67,
3733,
471,
365,
16186,
768,
67,
529,
480,
1408,
30,
468,
1430,
1906,
585,
965,
9904,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self["device"] and self["device"].keys() not in [ "scsi", "eth" ]: raise ValueError, "device: type not valid." | if self["device"]: for key in self["device"].keys(): if key not in [ "scsi", "eth" ]: raise ValueError, "device: type %s not valid." % key | def verify(self): for tag in self.REQUIRED_TAGS: if not self[tag]: raise ValueError, "ERROR: %s is required." % tag | 49029ce9fc48e78d523e0bd8ca666315444868ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/49029ce9fc48e78d523e0bd8ca666315444868ff/kickstart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
2890,
4672,
364,
1047,
316,
365,
18,
14977,
67,
29915,
30,
309,
486,
365,
63,
2692,
14542,
1002,
2068,
16,
315,
3589,
30,
738,
87,
353,
1931,
1199,
738,
1047,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
2890,
4672,
364,
1047,
316,
365,
18,
14977,
67,
29915,
30,
309,
486,
365,
63,
2692,
14542,
1002,
2068,
16,
315,
3589,
30,
738,
87,
353,
1931,
1199,
738,
1047,
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
] |
self.assertNotEqual( | self.assertEqual( | def testRetrieveAutoDiscounts(self): products = [i.product for i in self.order.orderitem_set.all()] discounts = find_auto_discounts(products) | 1e334e1855e755f1ce0d69631daba5a7b073c1e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13656/1e334e1855e755f1ce0d69631daba5a7b073c1e5/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5767,
4965,
1669,
8008,
12,
2890,
4672,
10406,
273,
306,
77,
18,
5896,
364,
277,
316,
365,
18,
1019,
18,
1019,
1726,
67,
542,
18,
454,
1435,
65,
1015,
8008,
273,
1104,
67,
6079,
67,
2251,
8008,
12,
18736,
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,
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019,
18,
1019,
1726,
67,
542,
18,
454,
1435,
65,
1015,
8008,
273,
1104,
67,
6079,
67,
2251,
8008,
12,
18736,
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
] |
<title>%s WMI: %s</title> | <title>%s %s</title> | def head(title = _("administration %s") % configuration.app_name): """Build the HTML Page header. Bubble Tooltips come from: http://www.dustindiaz.com/sweet-titles Rounded Divs comme from : http://www.html.it/articoli/niftycube/index.html """ return """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 00a7c63aee2a4aa090cfef3676b7f9fe6fe8c0d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/00a7c63aee2a4aa090cfef3676b7f9fe6fe8c0d5/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
910,
12,
2649,
273,
389,
2932,
3666,
4218,
738,
87,
7923,
738,
1664,
18,
2910,
67,
529,
4672,
3536,
3116,
326,
3982,
3460,
1446,
18,
605,
14787,
13288,
88,
7146,
12404,
628,
30,
202,
2505,
2207,
5591,
18,
72,
641,
728,
1155,
94,
18,
832,
19,
87,
18028,
17,
17643,
534,
12002,
21411,
87,
1543,
73,
628,
225,
294,
1062,
2207,
5591,
18,
2620,
18,
305,
19,
485,
12463,
77,
19,
82,
2136,
93,
21186,
19,
1615,
18,
2620,
3536,
327,
3536,
5586,
29824,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
910,
12,
2649,
273,
389,
2932,
3666,
4218,
738,
87,
7923,
738,
1664,
18,
2910,
67,
529,
4672,
3536,
3116,
326,
3982,
3460,
1446,
18,
605,
14787,
13288,
88,
7146,
12404,
628,
30,
202,
2505,
2207,
5591,
18,
72,
641,
728,
1155,
94,
18,
832,
19,
87,
18028,
17,
17643,
534,
12002,
21411,
87,
1543,
73,
628,
225,
294,
1062,
2207,
5591,
18,
2620,
18,
305,
19,
485,
12463,
77,
19,
82,
2136,
93,
21186,
19,
1615,
18,
2620,
3536,
327,
3536,
5586,
29824,
1729,
17187,
3701,
759,
59,
23,
39,
759,
25728,
30551,
404,
18,
20,
22307,
759,
1157,
6,
315,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4349,
19,
26341,
21,
19,
25728,
19,
2
] |
A = Epetra.CrsMatrix(Epetra.Copy, map, 0) | A = Epetra.CrsMatrix(Epetra.Copy, map2, 0) | def main(): failures = 0 tolerance = 1.0e-12 # Construct a vector x and populate with random values n = 10 * numProc map = Epetra.Map(n, 0, comm) x = Epetra.Vector(map) x.Random() # ==================================================== # # Write map to file "map.mm" in MatrixMarket format, # # read "map.mm" into map2, then check that map2 equals # # map. # # ==================================================== # if iAmRoot: print "I/O for BlockMap ... ", EpetraExt.BlockMapToMatrixMarketFile("map.mm", map) (ierr, map2) = EpetraExt.MatrixMarketFileToBlockMap("map.mm", comm) print "ierr =", ierr print "map2 =", map2 if map2.SameAs(map): if iAmRoot: print "ok" else: if iAmRoot: print "FAILED" failures += 1 # ===================================================== # # Write vector x to file "x.mm" in MatrixMarket format, # # read "x.mm" into y, then check that y equals x # # ===================================================== # if iAmRoot: print "I/O for MultiVector ... ", EpetraExt.MultiVectorToMatrixMarketFile("x.mm", x) (ierr, y) = EpetraExt.MatrixMarketFileToMultiVector("x.mm", map) y.Update(1.0, x, -1.0) norm = y.Norm2() if abs(norm) < tolerance: if iAmRoot: print "ok" else: if iAmRoot: print "FAILED" failures += 1 # ===================================================== # # Creates a simple CrsMatrix (diagonal) and # # write matrix A to file "A.mm" in MatrixMarket format, # # read "A.mm" into B, then check that B equals A # # ===================================================== # if iAmRoot: print "I/O for CrsMatrix ... ", A = Epetra.CrsMatrix(Epetra.Copy, map, 0) Indices = Epetra.IntSerialDenseVector(1) Values = Epetra.SerialDenseVector(1) for lrid in range(A.NumMyRows()): grid = A.GRID(lrid) Indices[0] = grid Values[0] = grid A.InsertGlobalValues(grid, 1, Values, Indices) A.FillComplete() EpetraExt.RowMatrixToMatrixMarketFile("A.mm", A) (ierr, B) = EpetraExt.MatrixMarketFileToCrsMatrix("A.mm", map) EpetraExt.Add(A, False, 1.0, B, -1.0) norm = B.NormInf() if abs(norm) < tolerance: if iAmRoot: print "ok" else: if iAmRoot: print "FAILED" failures += 1 return failures | ba767dd9705db64228df088b12705005efdf6dcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1130/ba767dd9705db64228df088b12705005efdf6dcc/exInputOutput.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
11720,
225,
273,
374,
10673,
273,
404,
18,
20,
73,
17,
2138,
225,
468,
14291,
279,
3806,
619,
471,
6490,
598,
2744,
924,
290,
4202,
273,
1728,
380,
818,
15417,
852,
377,
273,
512,
6951,
354,
18,
863,
12,
82,
16,
374,
16,
1543,
13,
619,
4202,
273,
512,
6951,
354,
18,
5018,
12,
1458,
13,
619,
18,
8529,
1435,
225,
468,
422,
20775,
631,
468,
468,
2598,
852,
358,
585,
315,
1458,
18,
7020,
6,
316,
7298,
3882,
278,
740,
16,
282,
468,
468,
855,
315,
1458,
18,
7020,
6,
1368,
852,
22,
16,
1508,
866,
716,
852,
22,
1606,
468,
468,
852,
18,
4766,
1171,
468,
468,
422,
20775,
631,
468,
225,
309,
277,
9864,
2375,
30,
1172,
315,
45,
19,
51,
364,
3914,
863,
1372,
3104,
512,
6951,
354,
2482,
18,
1768,
863,
774,
4635,
3882,
278,
812,
2932,
1458,
18,
7020,
3113,
852,
13,
261,
77,
370,
16,
852,
22,
13,
273,
512,
6951,
354,
2482,
18,
4635,
3882,
278,
812,
774,
1768,
863,
2932,
1458,
18,
7020,
3113,
1543,
13,
1172,
315,
77,
370,
273,
3113,
277,
370,
1172,
315,
1458,
22,
273,
3113,
852,
22,
309,
852,
22,
18,
8650,
1463,
12,
1458,
4672,
309,
277,
9864,
2375,
30,
1172,
315,
601,
6,
469,
30,
309,
277,
9864,
2375,
30,
1172,
315,
11965,
6,
11720,
1011,
404,
225,
468,
422,
20775,
12275,
468,
468,
2598,
3806,
619,
358,
585,
315,
92,
18,
7020,
6,
316,
7298,
3882,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
11720,
225,
273,
374,
10673,
273,
404,
18,
20,
73,
17,
2138,
225,
468,
14291,
279,
3806,
619,
471,
6490,
598,
2744,
924,
290,
4202,
273,
1728,
380,
818,
15417,
852,
377,
273,
512,
6951,
354,
18,
863,
12,
82,
16,
374,
16,
1543,
13,
619,
4202,
273,
512,
6951,
354,
18,
5018,
12,
1458,
13,
619,
18,
8529,
1435,
225,
468,
422,
20775,
631,
468,
468,
2598,
852,
358,
585,
315,
1458,
18,
7020,
6,
316,
7298,
3882,
278,
740,
16,
282,
468,
468,
855,
315,
1458,
18,
7020,
6,
1368,
852,
22,
16,
1508,
866,
716,
852,
22,
1606,
468,
468,
852,
18,
4766,
1171,
468,
468,
422,
20775,
631,
468,
225,
309,
2
] |
self._stash_rewrite_and_call(EX_MADE, ( (ParseTests, ['test_read_made', 'test_parse_made']), (TreeTests, ['test_Confidence', 'test_Polygon']), )) | global EX_MADE orig_fname = EX_MADE try: EX_MADE = DUMMY self._rewrite_and_call(orig_fname, ( (ParseTests, ['test_read_made', 'test_parse_made']), (TreeTests, ['test_Confidence', 'test_Polygon']), )) finally: EX_MADE = orig_fname | def test_made(self): """Round-trip parsing and serialization of made_up.xml.""" self._stash_rewrite_and_call(EX_MADE, ( (ParseTests, ['test_read_made', 'test_parse_made']), (TreeTests, ['test_Confidence', 'test_Polygon']), )) | ad1a618def838d98432e9623367cffb595eadecd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/ad1a618def838d98432e9623367cffb595eadecd/test_PhyloXML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
81,
2486,
12,
2890,
4672,
3536,
11066,
17,
25125,
5811,
471,
11854,
434,
7165,
67,
416,
18,
2902,
12123,
365,
6315,
25915,
67,
21489,
67,
464,
67,
1991,
12,
2294,
67,
5535,
1639,
16,
261,
261,
3201,
14650,
16,
10228,
3813,
67,
896,
67,
81,
2486,
2187,
296,
3813,
67,
2670,
67,
81,
2486,
3546,
3631,
261,
2471,
14650,
16,
10228,
3813,
67,
3976,
10328,
2187,
296,
3813,
67,
11787,
3546,
3631,
8623,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
81,
2486,
12,
2890,
4672,
3536,
11066,
17,
25125,
5811,
471,
11854,
434,
7165,
67,
416,
18,
2902,
12123,
365,
6315,
25915,
67,
21489,
67,
464,
67,
1991,
12,
2294,
67,
5535,
1639,
16,
261,
261,
3201,
14650,
16,
10228,
3813,
67,
896,
67,
81,
2486,
2187,
296,
3813,
67,
2670,
67,
81,
2486,
3546,
3631,
261,
2471,
14650,
16,
10228,
3813,
67,
3976,
10328,
2187,
296,
3813,
67,
11787,
3546,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
track.time_released = time.mktime(ipod_date) + 2082844800 | track.time_released = int(time.mktime(ipod_date) + 2082844800) | def add_episode_from_channel( self, channel, episode): if not ipod_supported(): return False if self.callback_status != None: channeltext = channel.title if channel.is_music_channel: channeltext = _('%s (to "%s")') % ( channel.title, channel.device_playlist_name ) gobject.idle_add( self.callback_status, episode.title, channeltext) if self.episode_is_on_ipod( channel, episode): # episode is already here :) return True log( '(ipodsync) Adding item: %s from %s', episode.title, channel.title) local_filename = str(channel.getPodcastFilename( episode.url)) try: if use_mechanism == MAD: log( '(ipodsync) Using pymad to get file length') mad_info = mad.MadFile( local_filename) track_length = mad_info.total_time() elif use_mechanism == EYED3: log( '(ipodsync) Using eyeD3 to get file length') eyed3_info = eyeD3.Mp3AudioFile( local_filename) track_length = eyed3_info.getPlayTime() * 1000 # TODO: how to get length of video (mov, mp4, m4v) files?? except: print '(ipodsync) Warning: cannot get length for %s, will use 1 hour' % episode.title track_length = 20*60*1000 # hmm.. (20m so we can skip on video/audio with unknown length) track = gpod.itdb_track_new() if channel.is_music_channel: track.artist = str(channel.title) else: track.artist = 'gPodder podcast' self.set_podcast_flags( track) # Add release time to track if pubDate is parseable ipod_date = email.Utils.parsedate(episode.pubDate) if ipod_date != None: # + 2082844800 for unixtime => mactime (1970 => 1904) track.time_released = time.mktime(ipod_date) + 2082844800 track.title = str(episode.title) track.album = str(channel.title) track.tracklen = track_length track.filetype = 'mp3' # huh?! harcoded?! well, well :) FIXME, i'd say track.description = str(episode.description) track.podcasturl = str(episode.url) track.podcastrss = str(channel.url) track.size = os.path.getsize( local_filename) gpod.itdb_track_add( self.itdb, track, -1) playlist = self.get_playlist_for_channel( channel) gpod.itdb_playlist_add_track( playlist, track, -1) | d405261077d76adcb416b19bd77a15ccf93159c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12778/d405261077d76adcb416b19bd77a15ccf93159c1/libipodsync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
29687,
67,
2080,
67,
4327,
12,
365,
16,
1904,
16,
17054,
4672,
309,
486,
2359,
369,
67,
4127,
13332,
327,
1083,
309,
365,
18,
3394,
67,
2327,
480,
599,
30,
1904,
955,
273,
1904,
18,
2649,
309,
1904,
18,
291,
67,
81,
14894,
67,
4327,
30,
1904,
955,
273,
389,
29909,
87,
261,
869,
2213,
87,
31241,
13,
738,
261,
1904,
18,
2649,
16,
1904,
18,
5964,
67,
1601,
1098,
67,
529,
262,
314,
1612,
18,
20390,
67,
1289,
12,
365,
18,
3394,
67,
2327,
16,
17054,
18,
2649,
16,
1904,
955,
13,
225,
309,
365,
18,
29687,
67,
291,
67,
265,
67,
625,
369,
12,
1904,
16,
17054,
4672,
468,
17054,
353,
1818,
2674,
294,
13,
327,
1053,
225,
613,
12,
7747,
625,
369,
8389,
13,
21240,
761,
30,
738,
87,
628,
738,
87,
2187,
17054,
18,
2649,
16,
1904,
18,
2649,
13,
1191,
67,
3459,
273,
609,
12,
4327,
18,
588,
5800,
4155,
5359,
12,
17054,
18,
718,
3719,
775,
30,
309,
999,
67,
3501,
10641,
422,
490,
1880,
30,
613,
12,
7747,
625,
369,
8389,
13,
11637,
2395,
81,
361,
358,
336,
585,
769,
6134,
312,
361,
67,
1376,
273,
312,
361,
18,
49,
361,
812,
12,
1191,
67,
3459,
13,
3298,
67,
2469,
273,
312,
361,
67,
1376,
18,
4963,
67,
957,
1435,
1327,
999,
67,
3501,
10641,
422,
512,
61,
2056,
23,
30,
613,
12,
7747,
625,
369,
8389,
13,
11637,
16098,
40,
23,
358,
336,
585,
769,
6134,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
29687,
67,
2080,
67,
4327,
12,
365,
16,
1904,
16,
17054,
4672,
309,
486,
2359,
369,
67,
4127,
13332,
327,
1083,
309,
365,
18,
3394,
67,
2327,
480,
599,
30,
1904,
955,
273,
1904,
18,
2649,
309,
1904,
18,
291,
67,
81,
14894,
67,
4327,
30,
1904,
955,
273,
389,
29909,
87,
261,
869,
2213,
87,
31241,
13,
738,
261,
1904,
18,
2649,
16,
1904,
18,
5964,
67,
1601,
1098,
67,
529,
262,
314,
1612,
18,
20390,
67,
1289,
12,
365,
18,
3394,
67,
2327,
16,
17054,
18,
2649,
16,
1904,
955,
13,
225,
309,
365,
18,
29687,
67,
291,
67,
265,
67,
625,
369,
12,
1904,
16,
17054,
4672,
468,
17054,
353,
1818,
2674,
294,
2
] |
import time import heapq | def dshield(inner, asn, dedup, use_cymru_whois=False, url="http://dshield.org/asdetailsascii.html"): asn = str(asn) # The current DShield csv fields, in order. headers = ["ip", "reports", "targets", "firstseen", "lastseen", "updated"] # Probably a kosher-ish way to create an ASN specific URL. parsed = urlparse.urlparse(url) parsed = list(parsed) parsed[4] = urllib.urlencode({ "as" : asn }) url = urlparse.urlunparse(parsed) print "ASN%s: connecting" % asn opened = yield inner.thread(urllib2.urlopen, url) print "ASN%s: downloading" % asn data = yield inner.thread(read_data, opened) print "ASN%s: downloaded" % asn count = 0 try: # Lazily filter away empty lines and lines starting with '#' filtered = (x for x in data if x.strip() and not x.startswith("#") and dedup.add(x)) reader = csv.DictReader(filtered, headers, delimiter="\t") for row in reader: row["ip"] = sanitize_ip(row.get("ip", None)) count += 1 if count % 100 == 0: print "ASN%s: fed %d events" % (asn, count) event = events.Event() event.add("feed", "dshield") if use_cymru_whois: event.add("dshield asn", unicode(asn)) else: event.add("asn", unicode(asn)) for key, value in row.items(): if value is None: continue event.add(key, util.guess_encoding(value).strip()) inner.send(event) yield list(inner) finally: print "ASN%s: done with %d events" % (asn, count) opened.close() | 5a8559a2402b986c17f00e6c18e5a90f05a7e7cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14361/5a8559a2402b986c17f00e6c18e5a90f05a7e7cc/dshield.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
674,
491,
12,
7872,
16,
12211,
16,
31782,
16,
999,
67,
2431,
81,
8653,
67,
3350,
19606,
33,
8381,
16,
880,
1546,
2505,
2207,
72,
674,
491,
18,
3341,
19,
345,
6395,
9184,
18,
2620,
6,
4672,
12211,
273,
609,
12,
31432,
13,
225,
468,
1021,
783,
463,
1555,
491,
6101,
1466,
16,
316,
1353,
18,
1607,
273,
8247,
625,
3113,
315,
20195,
3113,
315,
11358,
3113,
315,
3645,
15156,
3113,
315,
2722,
15156,
3113,
315,
7007,
11929,
225,
468,
14610,
6906,
279,
417,
538,
1614,
17,
1468,
4031,
358,
752,
392,
18598,
2923,
1976,
18,
2707,
273,
15185,
18,
718,
2670,
12,
718,
13,
2707,
273,
666,
12,
10817,
13,
2707,
63,
24,
65,
273,
11527,
18,
718,
3015,
12590,
315,
345,
6,
294,
12211,
289,
13,
880,
273,
15185,
18,
718,
318,
2670,
12,
10817,
13,
225,
1172,
315,
22269,
9,
87,
30,
14244,
6,
738,
12211,
10191,
273,
2824,
3443,
18,
5930,
12,
718,
2941,
22,
18,
295,
18589,
16,
880,
13,
1172,
315,
22269,
9,
87,
30,
23742,
6,
738,
12211,
501,
273,
2824,
3443,
18,
5930,
12,
896,
67,
892,
16,
10191,
13,
1172,
315,
22269,
9,
87,
30,
13549,
6,
738,
12211,
225,
1056,
273,
374,
775,
30,
468,
511,
20811,
1034,
10804,
1008,
2362,
471,
2362,
5023,
598,
6501,
5105,
273,
261,
92,
364,
619,
316,
501,
309,
619,
18,
6406,
1435,
471,
486,
619,
18,
17514,
1918,
2932,
7,
7923,
471,
31782,
18,
1289,
12,
92,
3719,
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,
302,
674,
491,
12,
7872,
16,
12211,
16,
31782,
16,
999,
67,
2431,
81,
8653,
67,
3350,
19606,
33,
8381,
16,
880,
1546,
2505,
2207,
72,
674,
491,
18,
3341,
19,
345,
6395,
9184,
18,
2620,
6,
4672,
12211,
273,
609,
12,
31432,
13,
225,
468,
1021,
783,
463,
1555,
491,
6101,
1466,
16,
316,
1353,
18,
1607,
273,
8247,
625,
3113,
315,
20195,
3113,
315,
11358,
3113,
315,
3645,
15156,
3113,
315,
2722,
15156,
3113,
315,
7007,
11929,
225,
468,
14610,
6906,
279,
417,
538,
1614,
17,
1468,
4031,
358,
752,
392,
18598,
2923,
1976,
18,
2707,
273,
15185,
18,
718,
2670,
12,
718,
13,
2707,
273,
666,
12,
10817,
13,
2707,
63,
24,
65,
273,
11527,
2
] |
|
Param.__init__(self, keyword, help='', **kwargs) | Param.__init__(self, keyword, help=help, **kwargs) | def __init__(self, keyword, choices, default=None, help='', **kwargs): Param.__init__(self, keyword, help='', **kwargs) self.choices = [entry[1] for entry in choices] self.keys = [entry[0] for entry in choices] if default is not None and default in self.choices: self.default = self.keys[self.choices.index(default)] else: self.default = self.keys(0) | c6ce594be97dab931071a20dafd4d07525497c32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/c6ce594be97dab931071a20dafd4d07525497c32/userparams.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4932,
16,
7246,
16,
805,
33,
7036,
16,
2809,
2218,
2187,
2826,
4333,
4672,
3014,
16186,
2738,
972,
12,
2890,
16,
4932,
16,
2809,
33,
5201,
16,
2826,
4333,
13,
365,
18,
11937,
273,
306,
4099,
63,
21,
65,
364,
1241,
316,
7246,
65,
365,
18,
2452,
273,
306,
4099,
63,
20,
65,
364,
1241,
316,
7246,
65,
309,
805,
353,
486,
599,
471,
805,
316,
365,
18,
11937,
30,
365,
18,
1886,
273,
365,
18,
2452,
63,
2890,
18,
11937,
18,
1615,
12,
1886,
25887,
469,
30,
365,
18,
1886,
273,
365,
18,
2452,
12,
20,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4932,
16,
7246,
16,
805,
33,
7036,
16,
2809,
2218,
2187,
2826,
4333,
4672,
3014,
16186,
2738,
972,
12,
2890,
16,
4932,
16,
2809,
33,
5201,
16,
2826,
4333,
13,
365,
18,
11937,
273,
306,
4099,
63,
21,
65,
364,
1241,
316,
7246,
65,
365,
18,
2452,
273,
306,
4099,
63,
20,
65,
364,
1241,
316,
7246,
65,
309,
805,
353,
486,
599,
471,
805,
316,
365,
18,
11937,
30,
365,
18,
1886,
273,
365,
18,
2452,
63,
2890,
18,
11937,
18,
1615,
12,
1886,
25887,
469,
30,
365,
18,
1886,
273,
365,
18,
2452,
12,
20,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (4,) | return (4, 1) | def c_code_cache_version(self): return (4,) | 262fcf78e9cb7102895cb00af4a0f2a608c2b519 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/262fcf78e9cb7102895cb00af4a0f2a608c2b519/elemwise.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
67,
2493,
67,
1589,
12,
2890,
4672,
327,
261,
24,
16,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
67,
2493,
67,
1589,
12,
2890,
4672,
327,
261,
24,
16,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cmd.append(self.pbase) | cmd.append(self.source) | def post_compile (self): """ Run makeindex if needed, with appropriate options and environment. """ if not os.path.exists(self.source): msg.log(_("strange, there is no %s") % self.source, pkg="index") return 0 if not self.run_needed(): return 0 | 83e15aff8f37055b316114051eb562a884eee441 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/83e15aff8f37055b316114051eb562a884eee441/index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
11100,
261,
2890,
4672,
3536,
1939,
1221,
1615,
309,
3577,
16,
598,
5505,
702,
471,
3330,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
2890,
18,
3168,
4672,
1234,
18,
1330,
24899,
2932,
701,
726,
16,
1915,
353,
1158,
738,
87,
7923,
738,
365,
18,
3168,
16,
3475,
1546,
1615,
7923,
327,
374,
309,
486,
365,
18,
2681,
67,
17471,
13332,
327,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
2890,
4672,
3536,
1939,
1221,
1615,
309,
3577,
16,
598,
5505,
702,
471,
3330,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
2890,
18,
3168,
4672,
1234,
18,
1330,
24899,
2932,
701,
726,
16,
1915,
353,
1158,
738,
87,
7923,
738,
365,
18,
3168,
16,
3475,
1546,
1615,
7923,
327,
374,
309,
486,
365,
18,
2681,
67,
17471,
13332,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pass | def handleEvents(self): #print 'RECORDSERVER HANDLING EVENT' event = rc_object.get_event() | 028d3a2c77c822349393ac7e42144948da5e2f3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/028d3a2c77c822349393ac7e42144948da5e2f3c/recordserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
3783,
12,
2890,
4672,
468,
1188,
296,
22261,
4370,
24166,
26789,
9964,
11,
871,
273,
4519,
67,
1612,
18,
588,
67,
2575,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
3783,
12,
2890,
4672,
468,
1188,
296,
22261,
4370,
24166,
26789,
9964,
11,
871,
273,
4519,
67,
1612,
18,
588,
67,
2575,
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
] |
|
self.cb(elt, sw, pyobj, **kw) | self.cb(elt, sw, pyobj, name=name, **kw) | def serialize(self, elt, sw, pyobj, inline=False, name=None, **kw): if inline or self.inline: self.cb(elt, sw, pyobj, **kw) else: objid = _get_idstr(pyobj) n = name or self.pname or ('E' + objid) el = elt.createAppendElement(None, n) el.setAttributeNS(None, 'href', "#%s" %objid) sw.AddCallback(self.cb, elt, sw, pyobj) | 7345179294b76759ddb897d4d80aefa2d01212cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/7345179294b76759ddb897d4d80aefa2d01212cc/TCcompound.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4472,
12,
2890,
16,
11572,
16,
1352,
16,
2395,
2603,
16,
6370,
33,
8381,
16,
508,
33,
7036,
16,
2826,
9987,
4672,
309,
6370,
578,
365,
18,
10047,
30,
365,
18,
7358,
12,
20224,
16,
1352,
16,
2395,
2603,
16,
508,
33,
529,
16,
2826,
9987,
13,
469,
30,
1081,
350,
273,
389,
588,
67,
350,
701,
12,
2074,
2603,
13,
290,
273,
508,
578,
365,
18,
84,
529,
578,
7707,
41,
11,
397,
1081,
350,
13,
415,
273,
11572,
18,
2640,
5736,
1046,
12,
7036,
16,
290,
13,
415,
18,
542,
1499,
3156,
12,
7036,
16,
296,
7547,
2187,
6619,
9,
87,
6,
738,
2603,
350,
13,
1352,
18,
986,
2428,
12,
2890,
18,
7358,
16,
11572,
16,
1352,
16,
2395,
2603,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4472,
12,
2890,
16,
11572,
16,
1352,
16,
2395,
2603,
16,
6370,
33,
8381,
16,
508,
33,
7036,
16,
2826,
9987,
4672,
309,
6370,
578,
365,
18,
10047,
30,
365,
18,
7358,
12,
20224,
16,
1352,
16,
2395,
2603,
16,
508,
33,
529,
16,
2826,
9987,
13,
469,
30,
1081,
350,
273,
389,
588,
67,
350,
701,
12,
2074,
2603,
13,
290,
273,
508,
578,
365,
18,
84,
529,
578,
7707,
41,
11,
397,
1081,
350,
13,
415,
273,
11572,
18,
2640,
5736,
1046,
12,
7036,
16,
290,
13,
415,
18,
542,
1499,
3156,
12,
7036,
16,
296,
7547,
2187,
6619,
9,
87,
6,
738,
2603,
350,
13,
1352,
18,
986,
2428,
12,
2890,
18,
7358,
16,
11572,
2
] |
skiplist : skiplist LT skiplist_comma GT """ pass | skiplist : skiplist LT skiplist_comma GT skiplist """ pass precedence = ( ('right', 'LT', 'GT'), ) | def p_skiplist(t): """ skiplist : skiplist_base skiplist : skiplist LT skiplist_comma GT """ pass | d53bba01a8a947f1fa2d7bbb49e927e76b41666c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/d53bba01a8a947f1fa2d7bbb49e927e76b41666c/ddf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
7771,
77,
17842,
12,
88,
4672,
3536,
4343,
77,
17842,
294,
4343,
77,
17842,
67,
1969,
4343,
77,
17842,
294,
4343,
77,
17842,
11807,
4343,
77,
17842,
67,
25034,
19688,
3536,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
7771,
77,
17842,
12,
88,
4672,
3536,
4343,
77,
17842,
294,
4343,
77,
17842,
67,
1969,
4343,
77,
17842,
294,
4343,
77,
17842,
11807,
4343,
77,
17842,
67,
25034,
19688,
3536,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
display_map = (not request.session['geolocation:location'] is None) | display_map = (not request.session.get('geolocation:location') is None) | def initial_context(cls, request, control_number): items = search.ControlNumberSearch(control_number, cls.conf) if len(items) == 0: raise Http404 | b62a6accbba29b32bb5ac4f6fb3331e505b3593b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/b62a6accbba29b32bb5ac4f6fb3331e505b3593b/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2172,
67,
2472,
12,
6429,
16,
590,
16,
3325,
67,
2696,
4672,
1516,
273,
1623,
18,
3367,
1854,
2979,
12,
7098,
67,
2696,
16,
2028,
18,
3923,
13,
309,
562,
12,
3319,
13,
422,
374,
30,
1002,
2541,
11746,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2172,
67,
2472,
12,
6429,
16,
590,
16,
3325,
67,
2696,
4672,
1516,
273,
1623,
18,
3367,
1854,
2979,
12,
7098,
67,
2696,
16,
2028,
18,
3923,
13,
309,
562,
12,
3319,
13,
422,
374,
30,
1002,
2541,
11746,
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
] |
try: | try: | def load_dict(self, localsDict, globalsDict, force=0): self.DeleteAllItems() row = 0 for name, local in self.watches: if local: try: value = self.repr.repr(localsDict[name]) except: try: value = eval(name, globalsDict, localsDict) except Exception, message: value = '??? (%s)' % message idx = 3 else: try: value = self.repr.repr(globalsDict[name]) except: try: value = eval(name, globalsDict) except Exception, message: value = '??? (%s)' % message idx = 4 | 872f754eafee36b7b9b20954604570707e5cd36c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/872f754eafee36b7b9b20954604570707e5cd36c/Debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
1576,
12,
2890,
16,
8985,
5014,
16,
10941,
5014,
16,
2944,
33,
20,
4672,
365,
18,
2613,
1595,
3126,
1435,
1027,
273,
374,
364,
508,
16,
1191,
316,
365,
18,
7585,
281,
30,
309,
1191,
30,
775,
30,
460,
273,
365,
18,
12715,
18,
12715,
12,
17977,
5014,
63,
529,
5717,
1335,
30,
775,
30,
460,
273,
5302,
12,
529,
16,
10941,
5014,
16,
8985,
5014,
13,
1335,
1185,
16,
883,
30,
460,
273,
13023,
14646,
6142,
87,
2506,
738,
883,
2067,
273,
890,
469,
30,
775,
30,
460,
273,
365,
18,
12715,
18,
12715,
12,
16227,
5014,
63,
529,
5717,
1335,
30,
775,
30,
460,
273,
5302,
12,
529,
16,
10941,
5014,
13,
1335,
1185,
16,
883,
30,
460,
273,
13023,
14646,
6142,
87,
2506,
738,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
1576,
12,
2890,
16,
8985,
5014,
16,
10941,
5014,
16,
2944,
33,
20,
4672,
365,
18,
2613,
1595,
3126,
1435,
1027,
273,
374,
364,
508,
16,
1191,
316,
365,
18,
7585,
281,
30,
309,
1191,
30,
775,
30,
460,
273,
365,
18,
12715,
18,
12715,
12,
17977,
5014,
63,
529,
5717,
1335,
30,
775,
30,
460,
273,
5302,
12,
529,
16,
10941,
5014,
16,
8985,
5014,
13,
1335,
1185,
16,
883,
30,
460,
273,
13023,
14646,
6142,
87,
2506,
738,
883,
2067,
273,
890,
469,
30,
775,
30,
460,
273,
365,
18,
12715,
18,
12715,
12,
16227,
5014,
63,
529,
5717,
1335,
30,
775,
30,
460,
273,
5302,
12,
529,
16,
10941,
5014,
13,
1335,
1185,
2
] |
dest="groups_to_add", default = None, | dest="groups_to_add", default=None, | def mod_user_parse_arguments(app, configuration): usage_text = "\n\t%s user --login=<login> [--gecos=<new GECOS>] [--password=<new passwd> | --auto-password] [--password-size=<size>]\n" % stylize(ST_APPNAME, "%prog") \ + '\t\t[--lock|--unlock] [--add-groups=<group1[[,group2][,…]]>] [--del-groups=<group1[[,group2][,…]]>]\n' \ + '\t\t[--shell=<new shell>]\n' \ "\t%s user --login=<login> --apply-skel=<squelette>" % stylize(ST_APPNAME, "%prog") parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_user')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'users')) user = OptionGroup(parser, stylize(ST_OPTION, "Modify user options ")) user.add_option("--password", '-p', dest="newpassword", default = None, help="specify user's new password.") user.add_option("--auto-password", '-P', action="store_true", dest="auto_passwd", help="let the system generate a random password for this user.") user.add_option("--password-size", '-S', type='int', dest="passwd_size", default=configuration.users.min_passwd_size, help="choose the new password length (default %s)." % configuration.users.min_passwd_size) user.add_option("--gecos", dest="newgecos", default = None, help="specify user's new GECOS string (generaly first and last names).") user.add_option("--shell", dest="newshell", default = None, help="specify user's shell (generaly /bin/something).") user.add_option('-l', "--lock", action="store_true", dest="lock", default = None, help="lock the account (user wn't be able to login under Linux and Windows/MAC until unlocked).") user.add_option('-L', "--unlock", action="store_false", dest="lock", default = None, help="unlock the user account and restore login ability.") user.add_option("--add-groups", dest="groups_to_add", default = None, help="make user member of these groups.") user.add_option("--del-groups", dest="groups_to_del", default = None, help="remove user from these groups.") user.add_option("--apply-skel", action="store", type="string", dest="apply_skel", default = None, help="re-apply the user's skel (use with caution, it will overwrite the dirs/files belonging to the skel in the user's home dir.") parser.add_option_group(user) return parser.parse_args() | 461c24b546b5d0469c4e29582a85905d96b60351 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/461c24b546b5d0469c4e29582a85905d96b60351/argparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
681,
67,
1355,
67,
2670,
67,
7099,
12,
2910,
16,
1664,
4672,
225,
4084,
67,
955,
273,
1548,
82,
64,
88,
9,
87,
729,
1493,
5819,
27127,
5819,
34,
306,
413,
75,
557,
538,
27127,
2704,
17788,
3865,
55,
34,
65,
306,
413,
3664,
27127,
2704,
19093,
34,
571,
1493,
6079,
17,
3664,
65,
306,
413,
3664,
17,
1467,
27127,
1467,
34,
13944,
82,
6,
738,
16253,
80,
554,
12,
882,
67,
7215,
1985,
16,
2213,
14654,
7923,
521,
397,
2337,
88,
64,
88,
63,
413,
739,
96,
413,
26226,
65,
306,
413,
1289,
17,
4650,
27127,
1655,
21,
31128,
16,
1655,
22,
6362,
16,
163,
227,
104,
13563,
34,
65,
306,
413,
3771,
17,
4650,
27127,
1655,
21,
31128,
16,
1655,
22,
6362,
16,
163,
227,
104,
13563,
34,
13944,
82,
11,
521,
397,
2337,
88,
64,
88,
63,
413,
10304,
27127,
2704,
5972,
34,
13944,
82,
11,
225,
521,
1548,
88,
9,
87,
729,
1493,
5819,
27127,
5819,
34,
1493,
9010,
17,
7771,
292,
27127,
87,
372,
808,
736,
2984,
738,
16253,
80,
554,
12,
882,
67,
7215,
1985,
16,
2213,
14654,
7923,
225,
2082,
273,
18862,
12,
9167,
33,
9167,
67,
955,
16,
1177,
33,
3510,
67,
1589,
67,
1080,
12,
2910,
16,
1177,
3719,
225,
468,
2975,
14273,
1041,
2082,
18,
1289,
67,
3482,
67,
1655,
12,
6054,
67,
31772,
477,
67,
1655,
12,
2910,
16,
2082,
16,
296,
1711,
67,
1355,
26112,
2082,
18,
1289,
67,
3482,
67,
1655,
12,
6054,
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,
681,
67,
1355,
67,
2670,
67,
7099,
12,
2910,
16,
1664,
4672,
225,
4084,
67,
955,
273,
1548,
82,
64,
88,
9,
87,
729,
1493,
5819,
27127,
5819,
34,
306,
413,
75,
557,
538,
27127,
2704,
17788,
3865,
55,
34,
65,
306,
413,
3664,
27127,
2704,
19093,
34,
571,
1493,
6079,
17,
3664,
65,
306,
413,
3664,
17,
1467,
27127,
1467,
34,
13944,
82,
6,
738,
16253,
80,
554,
12,
882,
67,
7215,
1985,
16,
2213,
14654,
7923,
521,
397,
2337,
88,
64,
88,
63,
413,
739,
96,
413,
26226,
65,
306,
413,
1289,
17,
4650,
27127,
1655,
21,
31128,
16,
1655,
22,
6362,
16,
163,
227,
104,
13563,
34,
65,
306,
413,
3771,
17,
4650,
27127,
1655,
2
] |
if self.__denominator._is_atomic() and denom_string.find( "*" ) < 0 and denom_string.find( "/" ) < 0: | if self.__denominator._is_atomic() and not ('*' in denom_string or '/' in denom_string): | def _repr_(self): if self.is_zero(): return "0" s = "%s"%self.__numerator if self.__denominator != 1: denom_string = str( self.__denominator ) if self.__denominator._is_atomic() and denom_string.find( "*" ) < 0 and denom_string.find( "/" ) < 0: s = "%s/%s"%(self.__numerator._coeff_repr(no_space=False),denom_string) else: s = "%s/(%s)"%(self.__numerator._coeff_repr(no_space=False),denom_string) return s | 316125932a4d0e29630ed5e91d94ed57ad1e91f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/316125932a4d0e29630ed5e91d94ed57ad1e91f6/fraction_field_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
309,
365,
18,
291,
67,
7124,
13332,
327,
315,
20,
6,
272,
273,
2213,
87,
28385,
2890,
16186,
2107,
7385,
309,
365,
16186,
13002,
26721,
480,
404,
30,
10716,
67,
1080,
273,
609,
12,
365,
16186,
13002,
26721,
262,
309,
365,
16186,
13002,
26721,
6315,
291,
67,
27718,
1435,
471,
486,
7707,
4035,
316,
10716,
67,
1080,
578,
2023,
316,
10716,
67,
1080,
4672,
272,
273,
2213,
87,
5258,
87,
6,
17105,
2890,
16186,
2107,
7385,
6315,
18132,
67,
12715,
12,
2135,
67,
2981,
33,
8381,
3631,
13002,
362,
67,
1080,
13,
469,
30,
272,
273,
2213,
87,
19,
9275,
87,
2225,
17105,
2890,
16186,
2107,
7385,
6315,
18132,
67,
12715,
12,
2135,
67,
2981,
33,
8381,
3631,
13002,
362,
67,
1080,
13,
327,
272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12715,
67,
12,
2890,
4672,
309,
365,
18,
291,
67,
7124,
13332,
327,
315,
20,
6,
272,
273,
2213,
87,
28385,
2890,
16186,
2107,
7385,
309,
365,
16186,
13002,
26721,
480,
404,
30,
10716,
67,
1080,
273,
609,
12,
365,
16186,
13002,
26721,
262,
309,
365,
16186,
13002,
26721,
6315,
291,
67,
27718,
1435,
471,
486,
7707,
4035,
316,
10716,
67,
1080,
578,
2023,
316,
10716,
67,
1080,
4672,
272,
273,
2213,
87,
5258,
87,
6,
17105,
2890,
16186,
2107,
7385,
6315,
18132,
67,
12715,
12,
2135,
67,
2981,
33,
8381,
3631,
13002,
362,
67,
1080,
13,
469,
30,
272,
273,
2213,
87,
19,
9275,
87,
2225,
17105,
2890,
16186,
2107,
7385,
6315,
18132,
67,
12715,
12,
2
] |
def GetValues(*args): return _Xdmf.XdmfDataStructure_GetValues(*args) def GetFormat(*args): return _Xdmf.XdmfDataStructure_GetFormat(*args) def SetFormat(*args): return _Xdmf.XdmfDataStructure_SetFormat(*args) def SetArrayIsMine(*args): return _Xdmf.XdmfDataStructure_SetArrayIsMine(*args) def GetArrayIsMine(*args): return _Xdmf.XdmfDataStructure_GetArrayIsMine(*args) | def SetItemType(*args): return _Xdmf.XdmfDataStructure_SetItemType(*args) def GetItemType(*args): return _Xdmf.XdmfDataStructure_GetItemType(*args) | def GetValues(*args): return _Xdmf.XdmfDataStructure_GetValues(*args) | 599eb65a085caa62838b9a4b822da5a5798dac84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/962/599eb65a085caa62838b9a4b822da5a5798dac84/Xdmf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1972,
30857,
1968,
4672,
327,
389,
60,
10956,
74,
18,
60,
10956,
74,
751,
6999,
67,
967,
1972,
30857,
1968,
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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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" <directives namespace="http://namespaces.zope.org/zope"> <directive name="permission" attributes="id title description" handler=" zope.app.security.metaconfigure.definePermission" /> </directives> | ''' <include package="zope.app.security" file="meta.zcml" /> | def testProtectedPageViews(self): ztapi.provideUtility(IPermission, Permission('p', 'P'), 'p') | 1cfc7ddd1cac0110cca3e909215477e1c59bbca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/1cfc7ddd1cac0110cca3e909215477e1c59bbca3/test_directives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
15933,
1964,
9959,
12,
2890,
4672,
998,
88,
2425,
18,
685,
6768,
6497,
12,
2579,
2635,
16,
8509,
2668,
84,
2187,
296,
52,
19899,
296,
84,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
15933,
1964,
9959,
12,
2890,
4672,
998,
88,
2425,
18,
685,
6768,
6497,
12,
2579,
2635,
16,
8509,
2668,
84,
2187,
296,
52,
19899,
296,
84,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if options.verbose: print "- %s already in Satellite, skipping" % (rpm_name) | if options.verbose: print timestamp(), "- %s already in Satellite, skipping" % (rpm_name) | def main(): if options.demo: key = False current_channels = {} current_channel_labels = ['rhel-x86_64-server-5'] else: # Login to Satellite server key = login(options.user, options.password) # Build existing channel list current_channels = client.channel.list_all_channels(key) current_channel_labels = [] for channel in current_channels: current_channel_labels.append(channel['label']) if options.debug: print "DEBUG: Channels on current Satellite server:", current_channel_labels if client.api.get_version() < 5.1: # TODO: Haven't tested with Spacewalk, not sure how it is reported print "This script uses features not available with Satellite versions older than 5.1" sys.exit(1) if not options.client_actions_only: # This begins the server actions section if not os.path.exists(options.localdir): try: os.makedirs(options.localdir) except: print "Error: Unable to create %s" % (options.localdir) raise if (not options.delete) and (not options.no_rsync): # Sync local Dell repo with public Dell repo returncode = get_dell_repo(DELL_REPO_URL, options.localdir) if not returncode == 0: print "rsync process exited with returncode:", returncode # Build child channels based on dell repo as needed systems = build_channel_list(options.localdir, SYSTEM_VENDOR_ID) systems['platform_independent'] = PLATFORM_INDEPENDENT # Iterate through list of supported RHEL versions and archs, create parent channels if needed channels = {} print "Checking base channels on Satellite server" for parent in SUPPORTED_CHANNELS: if options.verbose: print "Checking base channel", parent # Check each supported base channel, skip if it does not exist on Satellite server if parent not in current_channel_labels: if options.verbose: print "-%s is not a current base channel, skipping." % (parent) continue else: channels[parent] = SUPPORTED_CHANNELS[parent] channels[parent]['child_channels'] = [] # Initialize key for child channels if options.verbose: print "+%s found on Satellite server, checking child channels." % (parent) if channels[parent]['arch'] == 'i386': # This is because Satellite stores x86 as 'ia32' arch = 'channel-ia32' else: arch = 'channel-' + channels[parent]['arch'] subdir = channels[parent]['subdir'] print " Checking child channels for %s" % parent for system in systems: # use system name plus parent to create a unique child channel c_label = DELL_INFO['label'] + '-' + system + '-' + parent c_name = DELL_INFO['name'] + ' on ' + systems[system] + ' for ' + parent c_summary = DELL_INFO['summary'] + ' on ' + systems[system] + ' running ' + parent c_arch = arch c_dir = options.localdir + system + '/' + subdir if options.verbose: print " Checking child channel:", c_label if channel_exists(key, c_label, current_channels): if options.delete: # Delete child channels if requested if options.demo: print "Deleting channel:", c_label else: delete_channel(key, c_label) else: if options.debug: print "DEBUG: checking for dir:", c_dir if options.verbose: print "Child channel already exists:", c_label if os.path.isdir(c_dir): channels[parent]['child_channels'].append(system) else: if not options.delete: # Build child channels if needed if options.debug: print "DEBUG: checking for dir:", c_dir if os.path.isdir(c_dir): channels[parent]['child_channels'].append(system) if options.debug: print "DEBUG: %s exists for %s, creating channel" % (subdir, system) if options.demo: if options.verbose: print "Creating child channel:", c_label else: create_channel(key, c_label, c_name, c_summary, c_arch, parent) else: if options.debug: print "DEBUG: %s does not exists for %s" % (subdir, system) if (not options.delete) and (not options.no_packages): # Iterate through channels, pushing rpms from the local repo as needed # TODO: check if rpm is already uploaded and orphaned or part of another channel if options.debug: print "DEBUG: Channel mapping:", channels print "Syncing rpms as needed" for parent in channels: print " Syncing rpms for child channels in %s" % parent for child in channels[parent]['child_channels']: dir = options.localdir + child + '/' + channels[parent]['subdir'] channel = DELL_INFO['label'] + '-' + child + '-' + parent if options.verbose: print " Syncing rpms to child channel", channel if options.debug: print "DEBUG: Looking for rpms in", dir rpms = gen_rpm_list(dir) # Get all packages in child channel existing_packages = client.channel.software.list_all_packages(key, channel) if options.debug: print "DEBUG: Existing packages in", channel, existing_packages for rpm in rpms: if options.debug: print "DEBUG: Working on:", rpm # Strip off '.rpm' at end of file to match against existing entries rpm_name = rpm.split('.rpm')[0] # Now strip off any preceeding paths rpm_name = rpm_name.split('/')[-1] # Iterate through existing packages, and skip existing ones if options.verbose: print "Checking if %s is already on the Satellite server in %s" % (rpm_name, channel) for package in existing_packages: existing_rpm_name = reconstruct_name(package) if options.debug: print "DEBUG: Checking match for %s and %s" % (rpm_name, existing_rpm_name) if existing_rpm_name == rpm_name: # This means the intended rpm is already in Satellite, so skip if options.verbose: print "- %s already in Satellite, skipping" % (rpm_name) break else: if options.verbose: print "+ %s is not in Satellite, adding" % (rpm_name) if options.debug: print "DEBUG: Calling: push_rpm(",rpm, channel, options.user, options.password, options.satserver, ")" returncode = push_rpm(rpm, channel, options.user, options.password, options.satserver) if not returncode == 0: print "rhnpush process exited with returncode:", returncode if returncode == 255: print "You may force package uploads with --force" sys.exit(1) print "Completed uploading rpms." if (not options.server_actions_only) and (not options.demo) and (not options.delete): # This is the client actions section print "Subscribing registered systems to the %s channel" % (PLATFORM_INDEPENDENT) client_systems = subscribe_clients(key) print "Scheduling software installation and actions on clients" client_systems = schedule_actions(key, client_systems) print "Waiting for client actions to complete" client_systems = get_action_results(key, client_systems) print "All actions completed.\n" show_client_results(client_systems) if not options.demo: logout(key) | 07e2421549e748ccb09a392c60834eaea3e54917 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/07e2421549e748ccb09a392c60834eaea3e54917/dell-satellite-sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
30,
468,
11744,
358,
25793,
19345,
1438,
498,
273,
3925,
12,
2116,
18,
1355,
16,
702,
18,
3664,
13,
468,
3998,
2062,
1904,
666,
783,
67,
9114,
273,
1004,
18,
4327,
18,
1098,
67,
454,
67,
9114,
12,
856,
13,
783,
67,
4327,
67,
5336,
273,
5378,
364,
1904,
316,
783,
67,
9114,
30,
783,
67,
4327,
67,
5336,
18,
6923,
12,
4327,
3292,
1925,
19486,
309,
702,
18,
4148,
30,
1172,
315,
9394,
30,
25263,
603,
783,
25793,
19345,
1438,
2773,
16,
783,
67,
4327,
67,
5336,
309,
1004,
18,
2425,
18,
588,
67,
1589,
1435,
411,
1381,
18,
21,
30,
468,
2660,
30,
670,
7638,
1404,
18432,
598,
14059,
11348,
16,
486,
3071,
3661,
518,
353,
14010,
1172,
315,
2503,
2728,
4692,
4467,
486,
2319,
598,
25793,
19345,
5244,
12156,
2353,
1381,
18,
21,
6,
2589,
18,
8593,
12,
21,
13,
309,
486,
702,
18,
2625,
67,
4905,
67,
3700,
30,
468,
1220,
17874,
326,
1438,
4209,
2442,
309,
486,
1140,
18,
803,
18,
1808,
12,
2116,
18,
3729,
1214,
4672,
775,
30,
1140,
18,
81,
9477,
10539,
12,
2116,
18,
3729,
1214,
13,
1335,
30,
1172,
315,
668,
30,
18640,
358,
752,
738,
87,
6,
738,
261,
2116,
18,
3729,
1214,
13,
1002,
309,
261,
902,
702,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
30,
468,
11744,
358,
25793,
19345,
1438,
498,
273,
3925,
12,
2116,
18,
1355,
16,
702,
18,
3664,
13,
468,
3998,
2062,
1904,
666,
783,
67,
9114,
273,
1004,
18,
4327,
18,
1098,
67,
454,
67,
9114,
12,
856,
13,
783,
67,
4327,
67,
5336,
273,
5378,
364,
1904,
316,
783,
67,
9114,
30,
783,
67,
4327,
67,
5336,
18,
6923,
12,
4327,
3292,
1925,
19486,
309,
702,
18,
4148,
30,
1172,
315,
9394,
30,
25263,
603,
783,
25793,
19345,
1438,
2773,
16,
2
] |
"Binaries" : self.binarypath.getValue(), | def saveSettings(self, button): # save the settings to the registry here. Mostly it's simple stuff, will probably expand, # but for a first release, this should work OK #print self.rendererMenu.getValue() settings = { "renderer" : self.rendererMenu.getValue(), "Binaries" : self.binarypath.getValue(), "Shaders" : self.shaderpaths.getValue(), "Archives" : self.archivepaths.getValue(), "Textures" : self.texturepaths.getValue(), "Procedurals" : self.proceduralpaths.getValue(), "Displays" : self.displaypaths.getValue(), "outputPath" : self.outputpath.getValue(), "use_slparams" : self.useSlParams.getValue() } if self.haveSetup: Blender.Registry.RemoveKey("BtoR", True) Blender.Registry.SetKey("BtoR", settings, True) self.haveSetup = True | 74bddf362fa2502791a0646abd613f6613d08c8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11560/74bddf362fa2502791a0646abd613f6613d08c8a/BtoRMain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
2628,
12,
2890,
16,
3568,
4672,
468,
1923,
326,
1947,
358,
326,
4023,
2674,
18,
22099,
715,
518,
1807,
4143,
10769,
16,
903,
8656,
4542,
16,
468,
1496,
364,
279,
1122,
3992,
16,
333,
1410,
1440,
7791,
468,
1188,
365,
18,
14374,
4599,
18,
24805,
1435,
1947,
273,
288,
315,
14374,
6,
294,
365,
18,
14374,
4599,
18,
24805,
9334,
315,
1555,
361,
414,
6,
294,
365,
18,
674,
1143,
4481,
18,
24805,
9334,
315,
12269,
3606,
6,
294,
365,
18,
10686,
4481,
18,
24805,
9334,
315,
1528,
1823,
6,
294,
365,
18,
955,
594,
4481,
18,
24805,
9334,
315,
626,
3263,
17645,
6,
294,
365,
18,
685,
3263,
3766,
4481,
18,
24805,
9334,
315,
16900,
6,
294,
365,
18,
5417,
4481,
18,
24805,
9334,
315,
2844,
743,
6,
294,
365,
18,
2844,
803,
18,
24805,
9334,
315,
1202,
67,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
2628,
12,
2890,
16,
3568,
4672,
468,
1923,
326,
1947,
358,
326,
4023,
2674,
18,
22099,
715,
518,
1807,
4143,
10769,
16,
903,
8656,
4542,
16,
468,
1496,
364,
279,
1122,
3992,
16,
333,
1410,
1440,
7791,
468,
1188,
365,
18,
14374,
4599,
18,
24805,
1435,
1947,
273,
288,
315,
14374,
6,
294,
365,
18,
14374,
4599,
18,
24805,
9334,
315,
1555,
361,
414,
6,
294,
365,
18,
674,
1143,
4481,
18,
24805,
9334,
315,
12269,
3606,
6,
294,
365,
18,
10686,
4481,
18,
24805,
9334,
315,
1528,
1823,
6,
294,
365,
18,
955,
594,
4481,
18,
24805,
9334,
315,
626,
3263,
17645,
6,
294,
365,
18,
685,
3263,
3766,
4481,
18,
24805,
9334,
315,
16900,
6,
2
] |
|
context_id_info = self.pool.get('project.task').fields_get(cr, uid, ['context_id']) | context_id_info = self.pool.get('project.task').fields_get(cr, uid, ['context_id'], context=context) | def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): res = super(project_task,self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu) search_extended = False timebox_obj = self.pool.get('project.gtd.timebox') access_pool = self.pool.get('ir.model.access') if (res['type'] == 'search') and access_pool.check_groups(cr, uid, "project_gtd.group_project_getting"): tt = timebox_obj.browse(cr, uid, timebox_obj.search(cr,uid,[])) search_extended ='''<newline/><group col="%d" expand="%d" string="%s">''' % (len(tt)+7,1,_('Getting Things Done')) search_extended += '''<filter domain="[('timebox_id','=', False)]" context="{'set_editable':True,'set_visible':True,'gtd_visible':True,'user_invisible':True}" icon="gtk-new" help="Undefined Timebox" string="%s"/>''' % (_('Inbox'),) search_extended += '''<filter context="{'set_editable':True,'set_visible':True,'gtd_visible':True,'user_invisible':True}" icon="gtk-new" help="Getting things done" string="%s"/>''' % (_('GTD'),) search_extended += '''<separator orientation="vertical"/>''' for time in tt: if time.icon: icon = time.icon else : icon="" search_extended += '''<filter domain="[('timebox_id','=', ''' + str(time.id) + ''')]" icon="''' + icon + '''" string="''' + time.name + '''" context="{'gtd_visible':True, 'user_invisible': True}"/>''' search_extended += ''' <separator orientation="vertical"/> <field name="context_id" select="1" widget="selection"/> </group> </search> ''' if search_extended: res['arch'] = unicode(res['arch'], 'utf8').replace('</search>', search_extended) attrs_sel = self.pool.get('project.gtd.context').name_search(cr, uid, '', [], context=context) context_id_info = self.pool.get('project.task').fields_get(cr, uid, ['context_id']) context_id_info['context_id']['selection'] = attrs_sel res['fields'].update(context_id_info) return res | 52e91e76204d4fbbf8d07dda160212bf5f2eb648 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/52e91e76204d4fbbf8d07dda160212bf5f2eb648/project_gtd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1466,
67,
1945,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1476,
67,
350,
33,
7036,
16,
1476,
67,
723,
2218,
687,
2187,
819,
33,
7036,
16,
12748,
33,
8381,
16,
27539,
33,
8381,
4672,
400,
273,
2240,
12,
4406,
67,
4146,
16,
2890,
2934,
2821,
67,
1945,
67,
588,
12,
3353,
16,
4555,
16,
1476,
67,
350,
16,
1476,
67,
723,
16,
819,
16,
12748,
33,
18849,
16,
27539,
33,
1717,
5414,
13,
1623,
67,
14948,
273,
1083,
813,
2147,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4406,
18,
75,
4465,
18,
957,
2147,
6134,
2006,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
3860,
6134,
309,
261,
455,
3292,
723,
3546,
422,
296,
3072,
6134,
471,
2006,
67,
6011,
18,
1893,
67,
4650,
12,
3353,
16,
4555,
16,
315,
4406,
67,
75,
4465,
18,
1655,
67,
4406,
67,
588,
1787,
6,
4672,
3574,
273,
813,
2147,
67,
2603,
18,
25731,
12,
3353,
16,
4555,
16,
813,
2147,
67,
2603,
18,
3072,
12,
3353,
16,
1911,
16,
8526,
3719,
1623,
67,
14948,
273,
26418,
32,
22861,
19,
4438,
1655,
645,
11613,
72,
6,
4542,
11613,
72,
6,
533,
11613,
87,
7918,
6309,
738,
261,
1897,
12,
748,
27921,
27,
16,
21,
16,
67,
2668,
19213,
935,
899,
8677,
26112,
1623,
67,
14948,
1011,
9163,
32,
2188,
2461,
1546,
63,
2668,
957,
2147,
67,
350,
17023,
33,
2187,
1083,
13,
4279,
819,
21928,
11,
542,
67,
19653,
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,
1466,
67,
1945,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1476,
67,
350,
33,
7036,
16,
1476,
67,
723,
2218,
687,
2187,
819,
33,
7036,
16,
12748,
33,
8381,
16,
27539,
33,
8381,
4672,
400,
273,
2240,
12,
4406,
67,
4146,
16,
2890,
2934,
2821,
67,
1945,
67,
588,
12,
3353,
16,
4555,
16,
1476,
67,
350,
16,
1476,
67,
723,
16,
819,
16,
12748,
33,
18849,
16,
27539,
33,
1717,
5414,
13,
1623,
67,
14948,
273,
1083,
813,
2147,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4406,
18,
75,
4465,
18,
957,
2147,
6134,
2006,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
3860,
6134,
309,
261,
455,
2
] |
with_width += 1 wplus = (w - used_width) / (len(self.container.children) - with_width) | without_width -= 1 if without_width: wplus = (w - used_width) / without_width else: wplus = 0 | def layout(self): layout_style = self.container.style.get('layout', {}) if layout_style: padding = layout_style.get('padding', 0) else: padding = 0 | f53e616ee8929e813855e8aca45fe6d6c5205385 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/f53e616ee8929e813855e8aca45fe6d6c5205385/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3511,
12,
2890,
4672,
3511,
67,
4060,
273,
365,
18,
3782,
18,
4060,
18,
588,
2668,
6741,
2187,
2618,
13,
309,
3511,
67,
4060,
30,
4992,
273,
3511,
67,
4060,
18,
588,
2668,
9598,
2187,
374,
13,
469,
30,
4992,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3511,
12,
2890,
4672,
3511,
67,
4060,
273,
365,
18,
3782,
18,
4060,
18,
588,
2668,
6741,
2187,
2618,
13,
309,
3511,
67,
4060,
30,
4992,
273,
3511,
67,
4060,
18,
588,
2668,
9598,
2187,
374,
13,
469,
30,
4992,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
import time from qt import QStringList, QProcess dir, fil, ext = fileparse(fn) tmpdir = platform.find_or_make_Nanorex_subdir('temp') mmpfile = os.path.join(tmpdir, fil + ".mmp") self.saveFile(mmpfile, brag=False) result = self.runBabel(mmpfile, fn) if result and os.path.exists(fn): env.history.message( "File exported: [ " + fn + " ]" ) else: print 'Problem:', mmpfile, '->', fn env.history.message(redmsg("File translation failed.")) self.glpane.scale = self.assy.bbox.scale() self.glpane.gl_update() self.mt.mt_update() dir, fil = os.path.split(fn) self.setCurrentWorkingDirectory(dir) | if platform.atom_debug: linenum() print 'file translation failed' print 'Problem:', mmpfile, '->', fn env.history.message(redmsg("File translation failed.")) self.glpane.scale = self.assy.bbox.scale() self.glpane.gl_update() self.mt.mt_update() dir, fil = os.path.split(fn) if platform.atom_debug: linenum() print 'fileExport changing working directory to %s' % repr(dir) self.setCurrentWorkingDirectory(dir) if platform.atom_debug: linenum() print 'finish fileExport()' | def fileExport(self): # Code copied from fileInsert() slot method. Mark 060731. """Slot method for 'File > Export'. """ cmd = greenmsg("Export File: ") # This format list generated from the Open Babel wiki page: # http://openbabel.sourceforge.net/wiki/Babel#File_Formats | c34d7d945d8ff6c872ce439bf596bb96c25753a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c34d7d945d8ff6c872ce439bf596bb96c25753a8/ops_files.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
6144,
12,
2890,
4672,
468,
3356,
9268,
628,
585,
4600,
1435,
4694,
707,
18,
6622,
374,
4848,
27,
6938,
18,
3536,
8764,
707,
364,
296,
812,
405,
11054,
10332,
3536,
1797,
273,
10004,
3576,
2932,
6144,
1387,
30,
9369,
225,
468,
1220,
740,
666,
4374,
628,
326,
3502,
605,
873,
9050,
1363,
30,
468,
1062,
2207,
3190,
70,
873,
18,
3168,
1884,
908,
18,
2758,
19,
13044,
19,
38,
873,
7,
812,
67,
8976,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
326,
981,
30,
1652,
585,
6144,
12,
2890,
4672,
468,
3356,
9268,
628,
585,
4600,
1435,
4694,
707,
18,
6622,
374,
4848,
27,
6938,
18,
3536,
8764,
707,
364,
296,
812,
405,
11054,
10332,
3536,
1797,
273,
10004,
3576,
2932,
6144,
1387,
30,
9369,
225,
468,
1220,
740,
666,
4374,
628,
326,
3502,
605,
873,
9050,
1363,
30,
468,
1062,
2207,
3190,
70,
873,
18,
3168,
1884,
908,
18,
2758,
19,
13044,
19,
38,
873,
7,
812,
67,
8976,
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
] |
file = StringIO.StringIO(data) | file = BytesIO(data) | def test_parse_file(self): # Try parsing a file out = self.Outputter() parser = expat.ParserCreate(namespace_separator='!') parser.returns_unicode = 1 for name in self.handler_names: setattr(parser, name, getattr(out, name)) file = StringIO.StringIO(data) | 7f37c666d735ff934d9f7837fe205cc955f11870 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/7f37c666d735ff934d9f7837fe205cc955f11870/test_pyexpat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
67,
768,
12,
2890,
4672,
468,
6161,
5811,
279,
585,
596,
273,
365,
18,
1447,
387,
1435,
2082,
273,
1329,
270,
18,
2678,
1684,
12,
4937,
67,
11287,
2218,
5124,
13,
2082,
18,
6154,
67,
9124,
273,
404,
364,
508,
316,
365,
18,
4176,
67,
1973,
30,
9241,
12,
4288,
16,
508,
16,
3869,
12,
659,
16,
508,
3719,
585,
273,
15777,
18,
780,
4294,
12,
892,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
67,
768,
12,
2890,
4672,
468,
6161,
5811,
279,
585,
596,
273,
365,
18,
1447,
387,
1435,
2082,
273,
1329,
270,
18,
2678,
1684,
12,
4937,
67,
11287,
2218,
5124,
13,
2082,
18,
6154,
67,
9124,
273,
404,
364,
508,
316,
365,
18,
4176,
67,
1973,
30,
9241,
12,
4288,
16,
508,
16,
3869,
12,
659,
16,
508,
3719,
585,
273,
15777,
18,
780,
4294,
12,
892,
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
] |
data_file += str(data_decl) + str(data_comp) + str(data_period) + str(data_clientinfo) + '\n</VatList>' | data_file += tools.ustr(data_decl) + tools.ustr(data_comp) + tools.ustr(data_period) + tools.ustr(data_clientinfo) + '\n</VatList>' | def _create_xml(self, cr, uid, data, context): datas=[] seq_controlref = pooler.get_pool(cr.dbname).get('ir.sequence').get(cr, uid,'controlref') seq_declarantnum = pooler.get_pool(cr.dbname).get('ir.sequence').get(cr, uid,'declarantnum') obj_cmpny = pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, uid).company_id company_vat = obj_cmpny.partner_id.vat if not company_vat: raise wizard.except_wizard(_('Data Insufficient'),_('No VAT Number Associated with Main Company!')) | 642160ddd7dbe9e1e9ff557768880da86ff79c67 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/642160ddd7dbe9e1e9ff557768880da86ff79c67/partner_vat_listing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
2902,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
5386,
33,
8526,
3833,
67,
7098,
1734,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
481,
18,
6178,
16063,
588,
12,
3353,
16,
4555,
11189,
7098,
1734,
6134,
3833,
67,
8840,
297,
970,
2107,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
481,
18,
6178,
16063,
588,
12,
3353,
16,
4555,
11189,
8840,
297,
970,
2107,
6134,
1081,
67,
9625,
18538,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
455,
18,
5577,
16063,
25731,
12,
3353,
16,
4555,
16,
4555,
2934,
16840,
67,
350,
9395,
67,
25012,
273,
1081,
67,
9625,
18538,
18,
31993,
67,
350,
18,
25012,
309,
486,
9395,
67,
25012,
30,
1002,
24204,
18,
14137,
67,
31837,
24899,
2668,
751,
22085,
11339,
19899,
67,
2668,
2279,
776,
789,
3588,
8980,
690,
598,
12740,
26782,
5124,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
2902,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
5386,
33,
8526,
3833,
67,
7098,
1734,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
481,
18,
6178,
16063,
588,
12,
3353,
16,
4555,
11189,
7098,
1734,
6134,
3833,
67,
8840,
297,
970,
2107,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
481,
18,
6178,
16063,
588,
12,
3353,
16,
4555,
11189,
8840,
297,
970,
2107,
6134,
1081,
67,
9625,
18538,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
455,
18,
5577,
16063,
25731,
12,
3353,
16,
4555,
16,
4555,
2934,
16840,
67,
350,
9395,
2
] |
str += '\\title{%s}\n' % self._text_to_latex(self._prj_name) | str += '\\title{%s}\n' % self._text_to_latex(self._prj_name, 1) | def _topfile(self): str = self._header('Inclue File') | 1b5f466231dbfc7286669dc947d092bb3efedb7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b5f466231dbfc7286669dc947d092bb3efedb7c/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3669,
768,
12,
2890,
4672,
609,
273,
365,
6315,
3374,
2668,
382,
830,
344,
1387,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
child_process.stdin.close() status = child_process.wait() | child_process.communicate() value = child_process.returncode | def do_alignment(command_line, alphabet=None): """Perform an alignment with the given command line. Arguments: o command_line - A command line object that can give out the command line we will input into clustalw. o alphabet - the alphabet to use in the created alignment. If not specified IUPAC.unambiguous_dna and IUPAC.protein will be used for dna and protein alignment respectively. Returns: o A clustal alignment object corresponding to the created alignment. If the alignment type was not a clustal object, None is returned. """ #Try and use subprocess (available in python 2.4+) try : import subprocess #We don't need to supply any piped input, but we setup the #standard input pipe anyway as a work around for a python #bug if this is called from a Windows GUI program. For #details, see http://bugs.python.org/issue1124861 child_process = subprocess.Popen(str(command_line), stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=(sys.platform!="win32") ) child_process.stdin.close() status = child_process.wait() except ImportError : #Fall back for python 2.3 run_clust = os.popen(str(command_line)) status = run_clust.close() # The exit status is the second byte of the termination status # TODO - Check this holds on win32... value = 0 if status: value = status / 256 # check the return value for errors, as on 1.81 the return value # from Clustalw is actually helpful for figuring out errors # 1 => bad command line option if value == 1: raise ValueError("Bad command line option in the command: %s" % str(command_line)) # 2 => can't open sequence file elif value == 2: raise IOError("Cannot open sequence file %s" % command_line.sequence_file) # 3 => wrong format in sequence file elif value == 3: raise IOError("Sequence file %s has an invalid format." % command_line.sequence_file) # 4 => sequence file only has one sequence elif value == 4: raise IOError("Sequence file %s has only one sequence present." % command_line.sequence_file) # if an output file was specified, we need to grab it if command_line.output_file: out_file = command_line.output_file else: out_file = os.path.splitext(command_line.sequence_file)[0] + '.aln' # if we can't deal with the format, just return None if command_line.output_type and command_line.output_type != 'CLUSTAL': return None # otherwise parse it into a ClustalAlignment object else: if not alphabet: alphabet = (IUPAC.unambiguous_dna, IUPAC.protein)[ command_line.type == 'PROTEIN'] # check if the outfile exists before parsing if not(os.path.exists(out_file)): raise IOError("Output .aln file %s not produced, commandline: %s" % (out_file, command_line)) return parse_file(out_file, alphabet) | d1cebedc8eab60c55286affd30aa358cc95df2a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/d1cebedc8eab60c55286affd30aa358cc95df2a4/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
14409,
12,
3076,
67,
1369,
16,
10877,
33,
7036,
4672,
3536,
4990,
392,
8710,
598,
326,
864,
1296,
980,
18,
225,
13599,
30,
320,
1296,
67,
1369,
300,
432,
1296,
980,
733,
716,
848,
8492,
596,
326,
1296,
980,
732,
903,
810,
1368,
927,
641,
287,
91,
18,
320,
10877,
300,
326,
10877,
358,
999,
316,
326,
2522,
8710,
18,
971,
486,
1269,
467,
3079,
2226,
18,
318,
2536,
10623,
67,
5176,
69,
471,
467,
3079,
2226,
18,
24807,
903,
506,
1399,
364,
31702,
471,
14314,
8710,
19629,
18,
225,
2860,
30,
320,
432,
927,
641,
287,
8710,
733,
4656,
358,
326,
2522,
8710,
18,
971,
326,
8710,
618,
1703,
486,
279,
927,
641,
287,
733,
16,
599,
353,
2106,
18,
3536,
468,
7833,
471,
999,
6652,
261,
5699,
316,
5790,
576,
18,
24,
6975,
775,
294,
1930,
6652,
468,
3218,
2727,
1404,
1608,
358,
14467,
1281,
8341,
329,
810,
16,
1496,
732,
3875,
326,
468,
10005,
810,
6010,
13466,
487,
279,
1440,
6740,
364,
279,
5790,
468,
925,
309,
333,
353,
2566,
628,
279,
8202,
10978,
5402,
18,
225,
2457,
468,
6395,
16,
2621,
1062,
2207,
19381,
18,
8103,
18,
3341,
19,
13882,
17666,
24,
5292,
21,
1151,
67,
2567,
273,
6652,
18,
52,
3190,
12,
701,
12,
3076,
67,
1369,
3631,
8801,
33,
1717,
2567,
18,
27602,
16,
3909,
33,
1717,
2567,
18,
27602,
16,
4514,
33,
1717,
2567,
18,
27602,
16,
5972,
28657,
9499,
18,
9898,
5,
1546,
8082,
1578,
7923,
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,
741,
67,
14409,
12,
3076,
67,
1369,
16,
10877,
33,
7036,
4672,
3536,
4990,
392,
8710,
598,
326,
864,
1296,
980,
18,
225,
13599,
30,
320,
1296,
67,
1369,
300,
432,
1296,
980,
733,
716,
848,
8492,
596,
326,
1296,
980,
732,
903,
810,
1368,
927,
641,
287,
91,
18,
320,
10877,
300,
326,
10877,
358,
999,
316,
326,
2522,
8710,
18,
971,
486,
1269,
467,
3079,
2226,
18,
318,
2536,
10623,
67,
5176,
69,
471,
467,
3079,
2226,
18,
24807,
903,
506,
1399,
364,
31702,
471,
14314,
8710,
19629,
18,
225,
2860,
30,
320,
432,
927,
641,
287,
8710,
733,
4656,
358,
326,
2522,
8710,
18,
971,
326,
8710,
618,
1703,
486,
279,
927,
641,
287,
733,
2
] |
prod_pool=self.pool.get('product.product') | def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, currency_id=False, context=None): if context is None: context = {} company_id = context.get('company_id',False) if not partner_id: raise osv.except_osv(_('No Partner Defined !'),_("You must first select a partner !") ) if not product: if type in ('in_invoice', 'in_refund'): return {'value': {'categ_id': False}, 'domain':{'product_uom':[]}} else: return {'value': {'price_unit': 0.0, 'categ_id': False}, 'domain':{'product_uom':[]}} part = self.pool.get('res.partner').browse(cr, uid, partner_id) fpos = fposition_id and self.pool.get('account.fiscal.position').browse(cr, uid, fposition_id) or False | 9d3752728703af0f57a66468fda2058d9e5cfcdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9d3752728703af0f57a66468fda2058d9e5cfcdc/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
16,
582,
362,
16,
26667,
33,
20,
16,
508,
2218,
2187,
618,
2218,
659,
67,
16119,
2187,
19170,
67,
350,
33,
8381,
16,
284,
3276,
67,
350,
33,
8381,
16,
6205,
67,
4873,
33,
8381,
16,
1758,
67,
16119,
67,
350,
33,
8381,
16,
5462,
67,
350,
33,
8381,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
9395,
67,
350,
273,
819,
18,
588,
2668,
16840,
67,
350,
2187,
8381,
13,
309,
486,
19170,
67,
350,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
2279,
6393,
1224,
18003,
329,
401,
19899,
67,
2932,
6225,
1297,
1122,
2027,
279,
19170,
401,
7923,
262,
309,
486,
3017,
30,
309,
618,
316,
7707,
267,
67,
16119,
2187,
296,
267,
67,
1734,
1074,
11,
4672,
327,
13666,
1132,
4278,
13666,
71,
1287,
67,
350,
4278,
1083,
5779,
296,
4308,
4278,
27828,
5896,
67,
89,
362,
4278,
8526,
9090,
469,
30,
327,
13666,
1132,
4278,
13666,
8694,
67,
4873,
4278,
374,
18,
20,
16,
296,
71,
1287,
67,
350,
4278,
1083,
5779,
296,
4308,
4278,
27828,
5896,
67,
89,
362,
4278,
8526,
9090,
1087,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
16063,
25731,
12,
3353,
16,
4555,
16,
19170,
67,
350,
13,
284,
917,
273,
284,
3276,
67,
350,
471,
365,
18,
6011,
18,
588,
2668,
4631,
18,
74,
291,
771,
18,
3276,
16063,
25731,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
16,
582,
362,
16,
26667,
33,
20,
16,
508,
2218,
2187,
618,
2218,
659,
67,
16119,
2187,
19170,
67,
350,
33,
8381,
16,
284,
3276,
67,
350,
33,
8381,
16,
6205,
67,
4873,
33,
8381,
16,
1758,
67,
16119,
67,
350,
33,
8381,
16,
5462,
67,
350,
33,
8381,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
9395,
67,
350,
273,
819,
18,
588,
2668,
16840,
67,
350,
2187,
8381,
13,
309,
486,
19170,
67,
350,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
2279,
6393,
1224,
18003,
329,
401,
19899,
67,
2932,
6225,
1297,
2
] |
|
tx.setTextWordSpacing(1.0 * extraspace / len(words)) | tx.setWordSpace(extraspace / float(len(words)-1)) | def drawPara(self,debug=0): """Draws a paragraph according to the given style. Returns the final y position at the bottom. Not safe for paragraphs without spaces e.g. Japanese; wrapping algorithm will go infinite.""" | 3dd09ba0a8c191e9a461830ab6d4962f0799d9a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/3dd09ba0a8c191e9a461830ab6d4962f0799d9a6/layout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
23529,
12,
2890,
16,
4148,
33,
20,
4672,
3536,
25113,
279,
10190,
4888,
358,
326,
864,
2154,
18,
2860,
326,
727,
677,
1754,
622,
326,
5469,
18,
2288,
4183,
364,
24552,
2887,
7292,
425,
18,
75,
18,
804,
30472,
3392,
31,
14702,
4886,
903,
1960,
14853,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3724,
23529,
12,
2890,
16,
4148,
33,
20,
4672,
3536,
25113,
279,
10190,
4888,
358,
326,
864,
2154,
18,
2860,
326,
727,
677,
1754,
622,
326,
5469,
18,
2288,
4183,
364,
24552,
2887,
7292,
425,
18,
75,
18,
804,
30472,
3392,
31,
14702,
4886,
903,
1960,
14853,
12123,
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
] |
sizer.Add(text2, 1, wx.ALIGN_CENTER | wx.TOP | wx.BOTTOM, padding) text2.SetFont(wx.Font(16, wx.SWISS, wx.NORMAL, wx.NORMAL)) | sizer.Add(text2, 1, wx.ALIGN_CENTER) text2.SetFont(font) | def __init__(self, parent, bmp): padding = 7 # padding under and right of the progress percent text (in pixels) fontsize = 12 # font size of the progress text (in pixels) super(StartupSplash, self).__init__(parent=parent, title=_(u'Chandler starting...'), style=wx.SIMPLE_BORDER) sizer = wx.BoxSizer(wx.VERTICAL) self.SetSizer(sizer) self.CenterOnScreen() self.SetBackgroundColour(wx.WHITE) | ea56cab82d96d9ef8b515666658423a7e87ee79a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/ea56cab82d96d9ef8b515666658423a7e87ee79a/Application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
324,
1291,
4672,
4992,
273,
2371,
377,
468,
4992,
3613,
471,
2145,
434,
326,
4007,
5551,
977,
261,
267,
8948,
13,
14869,
273,
2593,
282,
468,
3512,
963,
434,
326,
4007,
977,
261,
267,
8948,
13,
225,
2240,
12,
22178,
16881,
961,
16,
365,
2934,
972,
2738,
972,
12,
2938,
33,
2938,
16,
2077,
33,
67,
12,
89,
11,
782,
464,
749,
5023,
7821,
3631,
2154,
33,
27226,
18,
31669,
900,
67,
38,
7954,
13,
272,
1824,
273,
7075,
18,
3514,
20512,
12,
27226,
18,
21654,
10109,
13,
365,
18,
694,
20512,
12,
87,
1824,
13,
365,
18,
8449,
1398,
7956,
1435,
365,
18,
694,
8199,
26404,
12,
27226,
18,
16861,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
324,
1291,
4672,
4992,
273,
2371,
377,
468,
4992,
3613,
471,
2145,
434,
326,
4007,
5551,
977,
261,
267,
8948,
13,
14869,
273,
2593,
282,
468,
3512,
963,
434,
326,
4007,
977,
261,
267,
8948,
13,
225,
2240,
12,
22178,
16881,
961,
16,
365,
2934,
972,
2738,
972,
12,
2938,
33,
2938,
16,
2077,
33,
67,
12,
89,
11,
782,
464,
749,
5023,
7821,
3631,
2154,
33,
27226,
18,
31669,
900,
67,
38,
7954,
13,
272,
1824,
273,
7075,
18,
3514,
20512,
12,
27226,
18,
21654,
10109,
13,
365,
18,
694,
20512,
12,
87,
1824,
13,
365,
18,
8449,
1398,
7956,
1435,
365,
18,
694,
8199,
26404,
12,
27226,
18,
2
] |
printer = get_pdf_printer() printer.setPaperSize(QSizeF(self.size[0] * 10, self.size[1] * 10), QPrinter.Millimeter) printer.setPageMargins(0, 0, 0, 0, QPrinter.Point) printer.setOrientation(orientation(self.opts.orientation)) printer.setOutputFormat(QPrinter.PdfFormat) | printer = get_pdf_printer(self.opts) | def render_images(self, outpath, mi, items): printer = get_pdf_printer() printer.setPaperSize(QSizeF(self.size[0] * 10, self.size[1] * 10), QPrinter.Millimeter) printer.setPageMargins(0, 0, 0, 0, QPrinter.Point) printer.setOrientation(orientation(self.opts.orientation)) printer.setOutputFormat(QPrinter.PdfFormat) printer.setOutputFileName(outpath) printer.setDocName(mi.title) printer.setCreator(u'%s [%s]'%(__appname__, __version__)) # Seems to be no way to set author printer.setFullPage(True) | 30050f00334c855e9f432f7a0ceb581cd4e5eee2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/30050f00334c855e9f432f7a0ceb581cd4e5eee2/writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
7369,
12,
2890,
16,
596,
803,
16,
12837,
16,
1516,
4672,
12539,
273,
336,
67,
7699,
67,
30439,
12,
2890,
18,
4952,
13,
12539,
18,
542,
1447,
4771,
12,
659,
803,
13,
12539,
18,
542,
1759,
461,
12,
9197,
18,
2649,
13,
12539,
18,
542,
10636,
12,
89,
11,
9,
87,
9799,
87,
3864,
17105,
972,
2910,
529,
972,
16,
1001,
1589,
972,
3719,
468,
3265,
7424,
358,
506,
1158,
4031,
358,
444,
2869,
12539,
18,
542,
5080,
1964,
12,
5510,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
7369,
12,
2890,
16,
596,
803,
16,
12837,
16,
1516,
4672,
12539,
273,
336,
67,
7699,
67,
30439,
12,
2890,
18,
4952,
13,
12539,
18,
542,
1447,
4771,
12,
659,
803,
13,
12539,
18,
542,
1759,
461,
12,
9197,
18,
2649,
13,
12539,
18,
542,
10636,
12,
89,
11,
9,
87,
9799,
87,
3864,
17105,
972,
2910,
529,
972,
16,
1001,
1589,
972,
3719,
468,
3265,
7424,
358,
506,
1158,
4031,
358,
444,
2869,
12539,
18,
542,
5080,
1964,
12,
5510,
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
] |
return _apply(s.index, args) | return s.index(*args) | def index(s, *args): """index(s, sub [,start [,end]]) -> int Like find but raises ValueError when the substring is not found. """ return _apply(s.index, args) | 722edbc15fc2faab0937de48f2fc8ce9eaa963d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/722edbc15fc2faab0937de48f2fc8ce9eaa963d1/string.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
87,
16,
380,
1968,
4672,
3536,
1615,
12,
87,
16,
720,
306,
16,
1937,
306,
16,
409,
65,
5717,
317,
509,
225,
23078,
1104,
1496,
14183,
2068,
1347,
326,
3019,
353,
486,
1392,
18,
225,
3536,
327,
272,
18,
1615,
30857,
1968,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
87,
16,
380,
1968,
4672,
3536,
1615,
12,
87,
16,
720,
306,
16,
1937,
306,
16,
409,
65,
5717,
317,
509,
225,
23078,
1104,
1496,
14183,
2068,
1347,
326,
3019,
353,
486,
1392,
18,
225,
3536,
327,
272,
18,
1615,
30857,
1968,
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
] |
cr.execute('select id from res_users where login=%s and password=%s and active', (login.encode('utf-8'), password.encode('utf-8'))) | if password: cr.execute('select id from res_users where login=%s and password=%s and active', (login.encode('utf-8'), password.encode('utf-8'))) else: cr.execute('select id from res_users where login=%s and password is null and active', (login.encode('utf-8'),)) | def login(db, login, password): cr = pooler.get_db(db).cursor() cr.execute('select id from res_users where login=%s and password=%s and active', (login.encode('utf-8'), password.encode('utf-8'))) res = cr.fetchone() cr.close() if res: return res[0] else: return False | 655eada141079901ef8fb16eea5890a92db19608 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/655eada141079901ef8fb16eea5890a92db19608/security.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
1966,
16,
3925,
16,
2201,
4672,
4422,
273,
2845,
264,
18,
588,
67,
1966,
12,
1966,
2934,
9216,
1435,
309,
2201,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
400,
67,
5577,
1625,
3925,
5095,
87,
471,
2201,
5095,
87,
471,
2695,
2187,
261,
5819,
18,
3015,
2668,
3158,
17,
28,
19899,
2201,
18,
3015,
2668,
3158,
17,
28,
11,
20349,
469,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
400,
67,
5577,
1625,
3925,
5095,
87,
471,
2201,
353,
446,
471,
2695,
2187,
261,
5819,
18,
3015,
2668,
3158,
17,
28,
19899,
3719,
400,
273,
4422,
18,
5754,
476,
1435,
4422,
18,
4412,
1435,
309,
400,
30,
327,
400,
63,
20,
65,
469,
30,
327,
1083,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
1966,
16,
3925,
16,
2201,
4672,
4422,
273,
2845,
264,
18,
588,
67,
1966,
12,
1966,
2934,
9216,
1435,
309,
2201,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
400,
67,
5577,
1625,
3925,
5095,
87,
471,
2201,
5095,
87,
471,
2695,
2187,
261,
5819,
18,
3015,
2668,
3158,
17,
28,
19899,
2201,
18,
3015,
2668,
3158,
17,
28,
11,
20349,
469,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
400,
67,
5577,
1625,
3925,
5095,
87,
471,
2201,
353,
446,
471,
2695,
2187,
261,
5819,
18,
3015,
2668,
3158,
17,
28,
19899,
3719,
400,
273,
4422,
18,
5754,
476,
1435,
4422,
18,
4412,
1435,
309,
400,
30,
327,
400,
63,
20,
65,
469,
30,
327,
2
] |
p = _pool(listeners=[snoop]) | p = self._queuepool_fixture(listeners=[snoop]) | def assert_listeners(p, total, conn, fconn, cout, cin): for instance in (p, p.recreate()): self.assert_(len(instance.dispatch.on_connect) == conn) self.assert_(len(instance.dispatch.on_first_connect) == fconn) self.assert_(len(instance.dispatch.on_checkout) == cout) self.assert_(len(instance.dispatch.on_checkin) == cin) | 7513b46730d1b57a6b8addde8dfb4f83ee1e6cb4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/7513b46730d1b57a6b8addde8dfb4f83ee1e6cb4/test_pool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
16072,
12,
84,
16,
2078,
16,
1487,
16,
284,
4646,
16,
276,
659,
16,
276,
267,
4672,
364,
791,
316,
261,
84,
16,
293,
18,
266,
2640,
1435,
4672,
365,
18,
11231,
67,
12,
1897,
12,
1336,
18,
10739,
18,
265,
67,
3612,
13,
422,
1487,
13,
365,
18,
11231,
67,
12,
1897,
12,
1336,
18,
10739,
18,
265,
67,
3645,
67,
3612,
13,
422,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
16072,
12,
84,
16,
2078,
16,
1487,
16,
284,
4646,
16,
276,
659,
16,
276,
267,
4672,
364,
791,
316,
261,
84,
16,
293,
18,
266,
2640,
1435,
4672,
365,
18,
11231,
67,
12,
1897,
12,
1336,
18,
10739,
18,
265,
67,
3612,
13,
422,
1487,
13,
365,
18,
11231,
67,
12,
1897,
12,
1336,
18,
10739,
18,
265,
67,
3645,
67,
3612,
13,
422,
284,
4646,
13,
365,
18,
11231,
67,
12,
1897,
12,
1336,
18,
10739,
18,
265,
67,
17300,
13,
422,
276,
659,
13,
365,
18,
11231,
67,
12,
1897,
12,
1336,
18,
10739,
18,
265,
67,
1893,
267,
13,
422,
276,
267,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.__sturm_bound = self.group().sturm_bound(self.weight())+1 | self.__sturm_bound = G.sturm_bound(self.weight())+1 | def sturm_bound(self, M=None): r""" For a space M of modular forms, this function returns an integer B such that two modular forms in either self or M are equal if and only if their q-expansions are equal to precision B (note that this is 1+ the usual Sturm bound, since `O(q^\mathrm{prec})` has precision prec). If M is none, then M is set equal to self. EXAMPLES:: sage: S37=CuspForms(37,2) sage: S37.sturm_bound() 8 sage: M = ModularForms(11,2) sage: M.sturm_bound() 3 sage: ModularForms(Gamma1(15),2).sturm_bound() 33 .. note:: | effc3ad03fe4dd602c740e2cd93685b34d86c56c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/effc3ad03fe4dd602c740e2cd93685b34d86c56c/space.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
384,
27430,
67,
3653,
12,
2890,
16,
490,
33,
7036,
4672,
436,
8395,
2457,
279,
3476,
490,
434,
681,
2490,
10138,
16,
333,
445,
1135,
392,
3571,
605,
4123,
716,
2795,
681,
2490,
10138,
316,
3344,
365,
578,
490,
854,
3959,
309,
471,
1338,
309,
3675,
1043,
17,
2749,
634,
1115,
854,
3959,
358,
6039,
605,
261,
7652,
716,
333,
353,
404,
15,
326,
25669,
934,
27430,
2489,
16,
3241,
1375,
51,
12,
85,
17134,
15949,
8864,
95,
4036,
6792,
68,
711,
6039,
13382,
2934,
971,
490,
353,
6555,
16,
1508,
490,
353,
444,
3959,
358,
365,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
348,
6418,
33,
39,
407,
84,
18529,
12,
6418,
16,
22,
13,
272,
410,
30,
348,
6418,
18,
334,
27430,
67,
3653,
1435,
1725,
272,
410,
30,
490,
273,
3431,
2490,
18529,
12,
2499,
16,
22,
13,
272,
410,
30,
490,
18,
334,
27430,
67,
3653,
1435,
890,
272,
410,
30,
3431,
2490,
18529,
12,
31300,
21,
12,
3600,
3631,
22,
2934,
334,
27430,
67,
3653,
1435,
13159,
225,
6116,
4721,
2866,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
384,
27430,
67,
3653,
12,
2890,
16,
490,
33,
7036,
4672,
436,
8395,
2457,
279,
3476,
490,
434,
681,
2490,
10138,
16,
333,
445,
1135,
392,
3571,
605,
4123,
716,
2795,
681,
2490,
10138,
316,
3344,
365,
578,
490,
854,
3959,
309,
471,
1338,
309,
3675,
1043,
17,
2749,
634,
1115,
854,
3959,
358,
6039,
605,
261,
7652,
716,
333,
353,
404,
15,
326,
25669,
934,
27430,
2489,
16,
3241,
1375,
51,
12,
85,
17134,
15949,
8864,
95,
4036,
6792,
68,
711,
6039,
13382,
2934,
971,
490,
353,
6555,
16,
1508,
490,
353,
444,
3959,
358,
365,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
348,
6418,
33,
39,
407,
84,
18529,
12,
6418,
16,
22,
2
] |
b2.util.path.relpath(parent_dir, our_dir)) | os.path.relpath(our_dir, parent_dir)) attributes.set("build-dir", build_dir, exact=True) | def inherit_attributes(self, project_module, parent_module): """Make 'project-module' inherit attributes of project root and parent module.""" | 3c3d67ecb01ccdc6843e7d00cf7995220a75c4d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9981/3c3d67ecb01ccdc6843e7d00cf7995220a75c4d8/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6811,
67,
4350,
12,
2890,
16,
1984,
67,
2978,
16,
982,
67,
2978,
4672,
3536,
6464,
296,
4406,
17,
2978,
11,
6811,
1677,
434,
1984,
1365,
471,
982,
1605,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
if path_mv > path_to and (position is gtk.TREE_VIEW_DROP_AFTER or position is gtk.TREE_VIEW_DROP_INTO_OR_AFTER): | if position is gtk.TREE_VIEW_DROP_AFTER or\ position is gtk.TREE_VIEW_DROP_INTO_OR_AFTER: | def _on_pres_drag_received(self, treeview, context, x, y, selection, info, timestamp): 'A presentation was reordered.' drop_info = treeview.get_dest_row_at_pos(x, y) model = treeview.get_model() sched = self.pres_list.get_model() #Gets the current schedule path_mv = int(selection.data) if drop_info: path_to, position = drop_info itr_to = sched.get_iter(path_to) else: #Assumes that if there's no drop info, it's at the end of the list path_to = path_mv + 1 position = gtk.TREE_VIEW_DROP_BEFORE itr_to = None itr_mv = sched.get_iter(path_mv) if path_mv > path_to and (position is gtk.TREE_VIEW_DROP_AFTER or position is gtk.TREE_VIEW_DROP_INTO_OR_AFTER): sched.move_after(itr_mv, itr_to) elif path_mv < path_to and (position is gtk.TREE_VIEW_DROP_BEFORE or position is gtk.TREE_VIEW_DROP_INTO_OR_BEFORE): sched.move_before(itr_mv, itr_to) context.finish(True, False) return | 598d936f4ccb2c969aa88c0d39fef9a487eebd27 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5029/598d936f4ccb2c969aa88c0d39fef9a487eebd27/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
12202,
67,
15997,
67,
15213,
12,
2890,
16,
2151,
1945,
16,
819,
16,
619,
16,
677,
16,
4421,
16,
1123,
16,
2858,
4672,
296,
37,
22525,
1703,
283,
9885,
1093,
3640,
67,
1376,
273,
2151,
1945,
18,
588,
67,
10488,
67,
492,
67,
270,
67,
917,
12,
92,
16,
677,
13,
938,
273,
2151,
1945,
18,
588,
67,
2284,
1435,
23964,
273,
365,
18,
12202,
67,
1098,
18,
588,
67,
2284,
1435,
468,
3002,
326,
783,
4788,
589,
67,
17509,
273,
509,
12,
10705,
18,
892,
13,
225,
309,
3640,
67,
1376,
30,
589,
67,
869,
16,
1754,
273,
3640,
67,
1376,
11176,
67,
869,
273,
23964,
18,
588,
67,
2165,
12,
803,
67,
869,
13,
469,
30,
468,
2610,
6411,
716,
309,
1915,
1807,
1158,
3640,
1123,
16,
518,
1807,
622,
326,
679,
434,
326,
666,
589,
67,
869,
273,
589,
67,
17509,
397,
404,
1754,
273,
22718,
18,
26557,
67,
12145,
67,
18768,
67,
19152,
11176,
67,
869,
273,
599,
11176,
67,
17509,
273,
23964,
18,
588,
67,
2165,
12,
803,
67,
17509,
13,
225,
309,
1754,
353,
22718,
18,
26557,
67,
12145,
67,
18768,
67,
18249,
578,
64,
1754,
353,
22718,
18,
26557,
67,
12145,
67,
18768,
67,
3217,
51,
67,
916,
67,
18249,
30,
23964,
18,
8501,
67,
5205,
12,
305,
86,
67,
17509,
16,
11176,
67,
869,
13,
1327,
589,
67,
17509,
411,
589,
67,
869,
471,
261,
3276,
353,
22718,
18,
26557,
67,
12145,
67,
18768,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
12202,
67,
15997,
67,
15213,
12,
2890,
16,
2151,
1945,
16,
819,
16,
619,
16,
677,
16,
4421,
16,
1123,
16,
2858,
4672,
296,
37,
22525,
1703,
283,
9885,
1093,
3640,
67,
1376,
273,
2151,
1945,
18,
588,
67,
10488,
67,
492,
67,
270,
67,
917,
12,
92,
16,
677,
13,
938,
273,
2151,
1945,
18,
588,
67,
2284,
1435,
23964,
273,
365,
18,
12202,
67,
1098,
18,
588,
67,
2284,
1435,
468,
3002,
326,
783,
4788,
589,
67,
17509,
273,
509,
12,
10705,
18,
892,
13,
225,
309,
3640,
67,
1376,
30,
589,
67,
869,
16,
1754,
273,
3640,
67,
1376,
11176,
67,
869,
273,
23964,
18,
588,
67,
2165,
12,
803,
67,
869,
2
] |
QFrame.__init__(self,parent,name) | print "don't know about type == %r" % (type,) | def __init__(self, parent = None, desc = None, name = None, modal = 0, fl = 0, env = None, is_dialog = True): if env is None: import env # this is a little weird... probably it'll be ok, and logically it seems correct. self.desc = desc | c73ef807a157ef1b98d95dae6f4d28dad060cbcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c73ef807a157ef1b98d95dae6f4d28dad060cbcc/ParameterDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
273,
599,
16,
3044,
273,
599,
16,
508,
273,
599,
16,
13010,
273,
374,
16,
1183,
273,
374,
16,
1550,
273,
599,
16,
353,
67,
12730,
273,
1053,
4672,
309,
1550,
353,
599,
30,
1930,
1550,
468,
333,
353,
279,
12720,
20843,
2777,
8656,
518,
5614,
506,
1529,
16,
471,
4058,
1230,
518,
12001,
3434,
18,
225,
365,
18,
5569,
273,
3044,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
2738,
972,
12,
2890,
16,
982,
273,
599,
16,
3044,
273,
599,
16,
508,
273,
599,
16,
13010,
273,
374,
16,
1183,
273,
374,
16,
1550,
273,
599,
16,
353,
67,
12730,
273,
1053,
4672,
309,
1550,
353,
599,
30,
1930,
1550,
468,
333,
353,
279,
12720,
20843,
2777,
8656,
518,
5614,
506,
1529,
16,
471,
4058,
1230,
518,
12001,
3434,
18,
225,
365,
18,
5569,
273,
3044,
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
] |
f1 = open(file1) f2 = open(file2) | f1 = open(file1, 'rb') f2 = open(file2, 'rb') | def DoCompare(file1, file2): f1 = open(file1) f2 = open(file2) d1 = f1.read() d2 = f2.read() f1.close() f2.close() if (d1 == d2): print "OK" else: raise("Files " + file + " and " + file2 + " do not match") | ccb0fe62ee9273ea776dcfb81b0a3950de89563f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5710/ccb0fe62ee9273ea776dcfb81b0a3950de89563f/Bento4CryptoTester.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
8583,
12,
768,
21,
16,
225,
585,
22,
4672,
284,
21,
273,
1696,
12,
768,
21,
16,
296,
6731,
6134,
284,
22,
273,
1696,
12,
768,
22,
16,
296,
6731,
6134,
225,
302,
21,
273,
284,
21,
18,
896,
1435,
302,
22,
273,
284,
22,
18,
896,
1435,
225,
284,
21,
18,
4412,
1435,
284,
22,
18,
4412,
1435,
225,
309,
261,
72,
21,
422,
302,
22,
4672,
1172,
315,
3141,
6,
469,
30,
1002,
2932,
2697,
315,
397,
585,
397,
315,
471,
315,
397,
585,
22,
397,
315,
741,
486,
845,
7923,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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284,
21,
273,
1696,
12,
768,
21,
16,
296,
6731,
6134,
284,
22,
273,
1696,
12,
768,
22,
16,
296,
6731,
6134,
225,
302,
21,
273,
284,
21,
18,
896,
1435,
302,
22,
273,
284,
22,
18,
896,
1435,
225,
284,
21,
18,
4412,
1435,
284,
22,
18,
4412,
1435,
225,
309,
261,
72,
21,
422,
302,
22,
4672,
1172,
315,
3141,
6,
469,
30,
1002,
2932,
2697,
315,
397,
585,
397,
315,
471,
315,
397,
585,
22,
397,
315,
741,
486,
845,
7923,
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
] |
f = os.open(support.TESTFN, os.O_CREAT|os.O_RDWR) | first = os.open(support.TESTFN, os.O_CREAT|os.O_RDWR) second = os.dup(first) try: retries = 0 while second != first + 1: os.close(first) retries += 1 if retries > 10: print("couldn't allocate two consecutive fds, " "skipping test_closerange", file=sys.stderr) return first, second = second, os.dup(second) finally: os.close(second) | def test_closerange(self): f = os.open(support.TESTFN, os.O_CREAT|os.O_RDWR) # close a fd that is open, and one that isn't os.closerange(f, f+2) self.assertRaises(OSError, os.write, f, "a") | 44e93539cc516f21e5099aec1c4bbed7edb0b79c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/44e93539cc516f21e5099aec1c4bbed7edb0b79c/test_os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
27736,
726,
12,
2890,
4672,
1122,
273,
1140,
18,
3190,
12,
13261,
18,
16961,
19793,
16,
1140,
18,
51,
67,
5458,
789,
96,
538,
18,
51,
67,
20403,
7181,
13,
565,
2205,
273,
1140,
18,
26427,
12,
3645,
13,
775,
30,
9453,
273,
374,
1323,
2205,
480,
1122,
397,
404,
30,
1140,
18,
4412,
12,
3645,
13,
9453,
1011,
404,
309,
9453,
405,
1728,
30,
225,
1172,
2932,
15195,
82,
1404,
10101,
2795,
18221,
284,
2377,
16,
315,
315,
7457,
1382,
1842,
67,
27736,
726,
3113,
585,
33,
9499,
18,
11241,
13,
327,
1122,
16,
2205,
273,
2205,
16,
1140,
18,
26427,
12,
8538,
13,
3095,
30,
1140,
18,
4412,
12,
8538,
13,
468,
1746,
279,
5194,
716,
353,
1696,
16,
471,
1245,
716,
5177,
1404,
1140,
18,
27736,
726,
12,
74,
16,
284,
15,
22,
13,
365,
18,
11231,
12649,
6141,
12,
4618,
668,
16,
1140,
18,
2626,
16,
284,
16,
315,
69,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
27736,
726,
12,
2890,
4672,
1122,
273,
1140,
18,
3190,
12,
13261,
18,
16961,
19793,
16,
1140,
18,
51,
67,
5458,
789,
96,
538,
18,
51,
67,
20403,
7181,
13,
565,
2205,
273,
1140,
18,
26427,
12,
3645,
13,
775,
30,
9453,
273,
374,
1323,
2205,
480,
1122,
397,
404,
30,
1140,
18,
4412,
12,
3645,
13,
9453,
1011,
404,
309,
9453,
405,
1728,
30,
225,
1172,
2932,
15195,
82,
1404,
10101,
2795,
18221,
284,
2377,
16,
315,
315,
7457,
1382,
1842,
67,
27736,
726,
3113,
585,
33,
9499,
18,
11241,
13,
327,
1122,
16,
2205,
273,
2205,
16,
1140,
18,
26427,
12,
8538,
13,
3095,
30,
1140,
18,
4412,
12,
8538,
13,
468,
1746,
279,
2
] |
if (optlevel==1): cmd += ' ' if (optlevel==2): cmd += ' ' | if (optlevel==1): cmd += ' -D_DEBUG' if (optlevel==2): cmd += ' -D_DEBUG' | def CompileIgate(woutd,wsrc,opts): outbase = os.path.basename(woutd)[:-3] woutc = GetOutputDir()+"/tmp/"+outbase+"_igate.cxx" wobj = FindLocation(outbase + "_igate.obj", []) srcdir = GetValueOption(opts, "SRCDIR:") module = GetValueOption(opts, "IMOD:") library = GetValueOption(opts, "ILIB:") ipath = GetListOption(opts, "DIR:") if (PkgSkip("PYTHON")): WriteFile(woutc,"") WriteFile(woutd,"") CompileCxx(wobj,woutc,opts) ConditionalWriteFile(woutd,"") return cmd = GetOutputDir()+"/bin/interrogate -srcdir "+srcdir+" -I"+srcdir cmd += ' -Dvolatile -Dmutable' if (COMPILER=="MSVC"): cmd += ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__inline -longlong __int64 -D_X86_ -DWIN32_VC -D_WIN32' #NOTE: this 1500 value is the version number for VC2008. cmd += ' -D_MSC_VER=1500 -D"_declspec(param)=" -D_near -D_far -D__near -D__far -D__stdcall' if (COMPILER=="LINUX") and (platform.architecture()[0]=="64bit"): cmd += ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__inline -D__const=const -D_LP64' if (COMPILER=="LINUX") and (platform.architecture()[0]=="32bit"): cmd += ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__inline -D__const=const -D__i386__' optlevel=GetOptimizeOption(opts) if (optlevel==1): cmd += ' ' if (optlevel==2): cmd += ' ' if (optlevel==3): cmd += ' -DFORCE_INLINING' if (optlevel==4): cmd += ' -DNDEBUG -DFORCE_INLINING' cmd += ' -oc ' + woutc + ' -od ' + woutd cmd += ' -fnames -string -refcount -assert -python-native' cmd += ' -S' + GetOutputDir() + '/include/parser-inc' for x in ipath: cmd += ' -I' + BracketNameWithQuotes(x) for (opt,dir) in INCDIRECTORIES: if (opt=="ALWAYS") or (opts.count(opt)): cmd += ' -S' + BracketNameWithQuotes(dir) for (opt,var,val) in DEFSYMBOLS: if (opt=="ALWAYS") or (opts.count(opt)): cmd += ' -D' + var + '=' + val building = GetValueOption(opts, "BUILDING:") if (building): cmd += " -DBUILDING_"+building if ("LINK_ALL_STATIC" in opts): cmd += " -DLINK_ALL_STATIC" cmd += ' -module ' + module + ' -library ' + library for x in wsrc: cmd += ' ' + BracketNameWithQuotes(os.path.basename(x)) oscmd(cmd) CompileCxx(wobj,woutc,opts) return | 1988a0def18227c103bda4f23b9cdbc345b99d9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/1988a0def18227c103bda4f23b9cdbc345b99d9b/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
45,
10115,
12,
91,
659,
72,
16,
4749,
1310,
16,
4952,
4672,
596,
1969,
273,
1140,
18,
803,
18,
13909,
12,
91,
659,
72,
13,
10531,
17,
23,
65,
341,
659,
71,
273,
968,
1447,
1621,
1435,
9078,
19,
5645,
4898,
15,
659,
1969,
9078,
67,
360,
340,
18,
71,
5279,
6,
341,
2603,
273,
4163,
2735,
12,
659,
1969,
397,
4192,
360,
340,
18,
2603,
3113,
5378,
13,
1705,
1214,
273,
16250,
1895,
12,
4952,
16,
315,
28413,
4537,
2773,
13,
1605,
273,
16250,
1895,
12,
4952,
16,
315,
3445,
1212,
2773,
13,
5313,
273,
16250,
1895,
12,
4952,
16,
315,
45,
14484,
2773,
13,
277,
803,
273,
968,
682,
1895,
12,
4952,
16,
315,
4537,
2773,
13,
309,
261,
11264,
6368,
2932,
16235,
20131,
6,
3719,
30,
24155,
12,
91,
659,
71,
16,
3660,
13,
24155,
12,
91,
659,
72,
16,
3660,
13,
16143,
39,
5279,
12,
91,
2603,
16,
91,
659,
71,
16,
4952,
13,
22466,
3067,
812,
12,
91,
659,
72,
16,
3660,
13,
327,
1797,
273,
968,
1447,
1621,
1435,
9078,
19,
4757,
19,
2761,
15283,
300,
4816,
1214,
13773,
4816,
1214,
9078,
300,
45,
6,
15,
4816,
1214,
1797,
1011,
296,
300,
40,
15416,
20295,
300,
40,
5146,
11,
309,
261,
31075,
14668,
31713,
3537,
13464,
6,
4672,
1797,
1011,
296,
300,
40,
4258,
52,
30692,
300,
40,
972,
882,
5528,
972,
33,
21,
300,
40,
972,
71,
10103,
10103,
300,
40,
972,
10047,
300,
5748,
5748,
1001,
474,
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,
16143,
45,
10115,
12,
91,
659,
72,
16,
4749,
1310,
16,
4952,
4672,
596,
1969,
273,
1140,
18,
803,
18,
13909,
12,
91,
659,
72,
13,
10531,
17,
23,
65,
341,
659,
71,
273,
968,
1447,
1621,
1435,
9078,
19,
5645,
4898,
15,
659,
1969,
9078,
67,
360,
340,
18,
71,
5279,
6,
341,
2603,
273,
4163,
2735,
12,
659,
1969,
397,
4192,
360,
340,
18,
2603,
3113,
5378,
13,
1705,
1214,
273,
16250,
1895,
12,
4952,
16,
315,
28413,
4537,
2773,
13,
1605,
273,
16250,
1895,
12,
4952,
16,
315,
3445,
1212,
2773,
13,
5313,
273,
16250,
1895,
12,
4952,
16,
315,
45,
14484,
2773,
13,
277,
803,
273,
968,
682,
1895,
12,
4952,
16,
315,
4537,
2
] |
scsi_dev_sysfs = "/sys/block/" + scsi_dev + "/device/scsi_device" udev_op = "/bin/ls -l " + scsi_dev_sysfs + "*" | scsi_dev_sysfs = "/sys/block/" + scsi_dev + "/device" udev_op = "/bin/ls -l " + scsi_dev_sysfs | def pscsi_createvirtdev(path, params): | d05a73a285262c8c803be130efd73e3d6562be6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/d05a73a285262c8c803be130efd73e3d6562be6f/tcm_pscsi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1017,
7722,
67,
2640,
14035,
5206,
12,
803,
16,
859,
4672,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
vbox_buttons.set_size_request(121, -1) hbox.set_size_request(-1, 470) | def __init__(self, model, obj_id, parent): self.dialog = gtk.Dialog( title = _("Attachment"), parent = parent, flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.WIN_POS_CENTER_ON_PARENT | gtk.gdk.WINDOW_TYPE_HINT_DIALOG,) dialog_vbox = gtk.VBox() dialog_vbox.set_size_request(740,590) vpaned = gtk.VPaned() vpaned.set_position(432) dialog_vbox.pack_start(vpaned, True, True, 0) hpaned2 = gtk.HPaned() hpaned2.set_position(553) vpaned.pack1(hpaned2, False, True) vbox_preview = gtk.VBox(False, 0) hpaned2.pack1(vbox_preview, False, True) self.attach_filename = gtk.Label(_("Preview:")) vbox_preview.pack_start(self.attach_filename, False, False, 0) | b8afe78a9bd4cf45f26deeec30919fe280b56452 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/b8afe78a9bd4cf45f26deeec30919fe280b56452/attachment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
1081,
67,
350,
16,
982,
4672,
365,
18,
12730,
273,
22718,
18,
6353,
12,
2077,
273,
225,
389,
2932,
6803,
6,
3631,
982,
273,
982,
16,
2943,
273,
22718,
18,
2565,
18683,
67,
6720,
1013,
571,
22718,
18,
2565,
18683,
67,
1639,
25870,
61,
67,
9147,
67,
14943,
571,
22718,
18,
24572,
67,
7057,
67,
19835,
67,
673,
67,
14943,
571,
22718,
18,
75,
2883,
18,
23407,
67,
2399,
67,
44,
3217,
67,
2565,
18683,
16,
13,
6176,
67,
90,
2147,
273,
22718,
18,
58,
3514,
1435,
6176,
67,
90,
2147,
18,
542,
67,
1467,
67,
2293,
12,
5608,
20,
16,
6162,
20,
13,
331,
7355,
329,
273,
22718,
18,
58,
4069,
329,
1435,
331,
7355,
329,
18,
542,
67,
3276,
12,
24,
1578,
13,
6176,
67,
90,
2147,
18,
2920,
67,
1937,
12,
90,
7355,
329,
16,
1053,
16,
1053,
16,
374,
13,
366,
7355,
329,
22,
273,
22718,
18,
2500,
304,
329,
1435,
366,
7355,
329,
22,
18,
542,
67,
3276,
12,
2539,
23,
13,
331,
7355,
329,
18,
2920,
21,
12,
76,
7355,
329,
22,
16,
1083,
16,
1053,
13,
331,
2147,
67,
12102,
273,
22718,
18,
58,
3514,
12,
8381,
16,
374,
13,
366,
7355,
329,
22,
18,
2920,
21,
12,
90,
2147,
67,
12102,
16,
1083,
16,
1053,
13,
365,
18,
7331,
67,
3459,
273,
22718,
18,
2224,
24899,
2932,
11124,
2773,
3719,
331,
2147,
67,
12102,
18,
2920,
67,
1937,
12,
2890,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
1081,
67,
350,
16,
982,
4672,
365,
18,
12730,
273,
22718,
18,
6353,
12,
2077,
273,
225,
389,
2932,
6803,
6,
3631,
982,
273,
982,
16,
2943,
273,
22718,
18,
2565,
18683,
67,
6720,
1013,
571,
22718,
18,
2565,
18683,
67,
1639,
25870,
61,
67,
9147,
67,
14943,
571,
22718,
18,
24572,
67,
7057,
67,
19835,
67,
673,
67,
14943,
571,
22718,
18,
75,
2883,
18,
23407,
67,
2399,
67,
44,
3217,
67,
2565,
18683,
16,
13,
6176,
67,
90,
2147,
273,
22718,
18,
58,
3514,
1435,
6176,
67,
90,
2147,
18,
542,
67,
1467,
67,
2293,
12,
5608,
20,
16,
6162,
20,
13,
331,
7355,
329,
273,
22718,
18,
2
] |
|
drv_module = apply(imp.load_module, info) | drv_module = _imp.load_module(*info) | def _create_parser(parser_name): info = _rec_find_module(parser_name) drv_module = apply(imp.load_module, info) return drv_module.create_parser() | 43010c9f3abf1aeb5adbe11344cd928edba5878e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/43010c9f3abf1aeb5adbe11344cd928edba5878e/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
4288,
12,
4288,
67,
529,
4672,
1123,
273,
389,
3927,
67,
4720,
67,
2978,
12,
4288,
67,
529,
13,
302,
4962,
67,
2978,
273,
389,
14532,
18,
945,
67,
2978,
30857,
1376,
13,
327,
302,
4962,
67,
2978,
18,
2640,
67,
4288,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
4288,
12,
4288,
67,
529,
4672,
1123,
273,
389,
3927,
67,
4720,
67,
2978,
12,
4288,
67,
529,
13,
302,
4962,
67,
2978,
273,
389,
14532,
18,
945,
67,
2978,
30857,
1376,
13,
327,
302,
4962,
67,
2978,
18,
2640,
67,
4288,
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
] |
print "Enter 'quit' to leave this interactive mode" | if verbosity >= VERB_STD: print "Enter 'quit' to leave this interactive mode" | def ttyloop(task, nodeset, gather, timeout, label): """Manage the interactive prompt to run command""" has_readline = False if task.info("USER_interactive"): assert sys.stdin.isatty() readline_avail = False try: import readline readline_setup() readline_avail = True except ImportError: pass print "Enter 'quit' to leave this interactive mode" rc = 0 ns = NodeSet(nodeset) ns_info = True cmd = "" while task.info("USER_running") or cmd.lower() != 'quit': try: if task.info("USER_interactive") and not task.info("USER_running"): if ns_info: print "Working with nodes: %s" % ns ns_info = False prompt = "clush> " else: prompt = "" cmd = raw_input(prompt) except EOFError: print return except UpdatePromptException: if task.info("USER_interactive"): continue return if task.info("USER_running"): ns_reg, ns_unreg = NodeSet(), NodeSet() for c in task._engine.clients(): if c.registered: ns_reg.add(c.key) else: ns_unreg.add(c.key) if ns_unreg: pending = "\nclush: pending(%d): %s" % (len(ns_unreg), ns_unreg) else: pending = "" print >>sys.stderr, "clush: interrupt (^C to abort task)\n" \ "clush: in progress(%d): %s%s" % (len(ns_reg), ns_reg, pending) else: cmdl = cmd.lower() try: ns_info = True if cmdl.startswith('+'): ns.update(cmdl[1:]) elif cmdl.startswith('-'): ns.difference_update(cmdl[1:]) elif cmdl.startswith('@'): ns = NodeSet(cmdl[1:]) elif not cmdl.startswith('?'): # if ?, just print ns_info ns_info = False except NodeSetParseError: print >>sys.stderr, "clush: nodeset parse error (ignoring)" if ns_info: continue if cmdl.startswith('!'): run_command(task, cmd[1:], None, gather, timeout, None) elif cmdl != "quit": if not cmd: continue if readline_avail: readline.write_history_file(get_history_file()) run_command(task, cmd, ns, gather, timeout, label) return rc | 5167874ae64af9b176b7e4ba878c2ae933f4f9e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11479/5167874ae64af9b176b7e4ba878c2ae933f4f9e6/clush.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21520,
6498,
12,
4146,
16,
2199,
278,
16,
11090,
16,
2021,
16,
1433,
4672,
3536,
21258,
326,
12625,
6866,
358,
1086,
1296,
8395,
711,
67,
896,
1369,
273,
1083,
309,
1562,
18,
1376,
2932,
4714,
67,
24761,
6,
4672,
1815,
2589,
18,
21772,
18,
291,
270,
4098,
1435,
12023,
67,
842,
671,
273,
1083,
775,
30,
1930,
12023,
12023,
67,
8401,
1435,
12023,
67,
842,
671,
273,
1053,
1335,
11308,
30,
1342,
309,
11561,
1545,
6422,
38,
67,
882,
40,
30,
1172,
315,
10237,
296,
27176,
11,
358,
8851,
333,
12625,
1965,
6,
225,
4519,
273,
374,
3153,
273,
2029,
694,
12,
4690,
278,
13,
3153,
67,
1376,
273,
1053,
1797,
273,
1408,
1323,
1562,
18,
1376,
2932,
4714,
67,
8704,
7923,
578,
1797,
18,
8167,
1435,
480,
296,
27176,
4278,
775,
30,
309,
1562,
18,
1376,
2932,
4714,
67,
24761,
7923,
471,
486,
1562,
18,
1376,
2932,
4714,
67,
8704,
6,
4672,
309,
3153,
67,
1376,
30,
1172,
315,
14836,
598,
2199,
30,
738,
87,
6,
738,
3153,
3153,
67,
1376,
273,
1083,
6866,
273,
315,
830,
1218,
34,
315,
469,
30,
6866,
273,
1408,
1797,
273,
1831,
67,
2630,
12,
13325,
13,
1335,
6431,
668,
30,
1172,
327,
1335,
2315,
15967,
503,
30,
309,
1562,
18,
1376,
2932,
4714,
67,
24761,
6,
4672,
1324,
327,
309,
1562,
18,
1376,
2932,
4714,
67,
8704,
6,
4672,
3153,
67,
1574,
16,
3153,
67,
318,
1574,
273,
2029,
694,
9334,
2029,
694,
1435,
364,
276,
316,
1562,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21520,
6498,
12,
4146,
16,
2199,
278,
16,
11090,
16,
2021,
16,
1433,
4672,
3536,
21258,
326,
12625,
6866,
358,
1086,
1296,
8395,
711,
67,
896,
1369,
273,
1083,
309,
1562,
18,
1376,
2932,
4714,
67,
24761,
6,
4672,
1815,
2589,
18,
21772,
18,
291,
270,
4098,
1435,
12023,
67,
842,
671,
273,
1083,
775,
30,
1930,
12023,
12023,
67,
8401,
1435,
12023,
67,
842,
671,
273,
1053,
1335,
11308,
30,
1342,
309,
11561,
1545,
6422,
38,
67,
882,
40,
30,
1172,
315,
10237,
296,
27176,
11,
358,
8851,
333,
12625,
1965,
6,
225,
4519,
273,
374,
3153,
273,
2029,
694,
12,
4690,
278,
13,
3153,
67,
1376,
273,
1053,
1797,
273,
1408,
1323,
1562,
18,
1376,
2932,
2
] |
self._printer = pAdicPrinter(self, print_mode, True, None, None, None) | self._printer = pAdicPrinter(self, print_mode) | def __init__(self, p, prec, print_mode, names, element_class): sage.rings.padics.local_generic.LocalGeneric.__init__(self, prec, names) #if prec <= 100: # self.prime_pow = PowComputer(p, prec, prec, self.is_field()) #else: # self.prime_pow = PowComputer(p, 3, prec, self.is_field()) self._printer = pAdicPrinter(self, print_mode, True, None, None, None) self._element_class = element_class | 30a764f77f807a9f30b4503dfb3c45d3268a9450 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/30a764f77f807a9f30b4503dfb3c45d3268a9450/padic_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
293,
16,
13382,
16,
1172,
67,
3188,
16,
1257,
16,
930,
67,
1106,
4672,
272,
410,
18,
86,
899,
18,
6982,
2102,
18,
3729,
67,
13540,
18,
2042,
7014,
16186,
2738,
972,
12,
2890,
16,
13382,
16,
1257,
13,
468,
430,
13382,
1648,
2130,
30,
468,
565,
365,
18,
16382,
67,
23509,
273,
28509,
7703,
264,
12,
84,
16,
13382,
16,
13382,
16,
365,
18,
291,
67,
1518,
10756,
468,
12107,
30,
468,
565,
365,
18,
16382,
67,
23509,
273,
28509,
7703,
264,
12,
84,
16,
890,
16,
13382,
16,
365,
18,
291,
67,
1518,
10756,
365,
6315,
30439,
273,
293,
1871,
335,
12149,
12,
2890,
16,
1172,
67,
3188,
13,
365,
6315,
2956,
67,
1106,
273,
930,
67,
1106,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
1106,
4672,
272,
410,
18,
86,
899,
18,
6982,
2102,
18,
3729,
67,
13540,
18,
2042,
7014,
16186,
2738,
972,
12,
2890,
16,
13382,
16,
1257,
13,
468,
430,
13382,
1648,
2130,
30,
468,
565,
365,
18,
16382,
67,
23509,
273,
28509,
7703,
264,
12,
84,
16,
13382,
16,
13382,
16,
365,
18,
291,
67,
1518,
10756,
468,
12107,
30,
468,
565,
365,
18,
16382,
67,
23509,
273,
28509,
7703,
264,
12,
84,
16,
890,
16,
13382,
16,
365,
18,
291,
67,
1518,
10756,
365,
6315,
30439,
273,
293,
1871,
335,
12149,
12,
2890,
16,
1172,
67,
3188,
13,
365,
2
] |
print 'WARNING: ' + warning | print 'WARNING: ' + str(warning) | def eclass_teilar_gr(): b = StringIO.StringIO() fd, cookie_path = tempfile.mkstemp(prefix='eclass_', dir='/tmp') login_form_seq = [ ('uname', settings.ECLASS_USER), ('pass', settings.ECLASS_PASSWORD), ('submit', 'E%95%CE%AF%CF%83%CE%BF%CE%B4%CE%BF%CF%82') ] login_form_data = urllib.urlencode(login_form_seq) conn.setopt(pycurl.FOLLOWLOCATION, 1) conn.setopt(pycurl.COOKIEFILE, cookie_path) conn.setopt(pycurl.COOKIEJAR, cookie_path) conn.setopt(pycurl.URL, 'http://openclass.teilar.gr/index.php') conn.setopt(pycurl.POST, 1) conn.setopt(pycurl.POSTFIELDS, login_form_data) conn.setopt(pycurl.WRITEFUNCTION, b.write) conn.perform() output = unicode(b.getvalue(), 'utf-8', 'ignore') soup = BeautifulSoup(output).find('table', 'FormData') i = 0 lessonslist = soup.findAll('a') for item in lessonslist: if (i%2 == 0): cid = str(soup.findAll('a')[i].contents[0]).split('-')[0] lesson = '' for j in xrange(len((soup.findAll('a')[i].contents[0]).split('-')) - 1): lesson += str(soup.findAll('a')[i].contents[0]).split('-')[j+1].strip() + ' ' eclass = Id( urlid = str(cid), name = lesson.strip(), department = '', email = '', ) try: eclass.save() print 'ADDED ' + lesson.strip() except IntegrityError: pass except MySQLdb.Warning, warning: print 'ADDED ' + lesson.strip() print 'WARNING: ' + warning pass except Exception as error: print 'ERROR: ' + lesson.strip() print 'ERROR: ' + str(error) pass i += 1 os.close(fd) os.remove(cookie_path) | 61dba877c00de51c45a686c602b61eee135ffedc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11011/61dba877c00de51c45a686c602b61eee135ffedc/id.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
1106,
67,
736,
5611,
67,
3197,
13332,
324,
273,
15777,
18,
780,
4294,
1435,
5194,
16,
3878,
67,
803,
273,
13275,
18,
24816,
19781,
84,
12,
3239,
2218,
557,
459,
67,
2187,
1577,
2218,
19,
5645,
6134,
3925,
67,
687,
67,
5436,
273,
306,
7707,
318,
339,
2187,
1947,
18,
41,
5237,
67,
4714,
3631,
7707,
5466,
2187,
1947,
18,
41,
5237,
67,
13784,
3631,
7707,
9297,
2187,
296,
41,
9,
8778,
9,
1441,
9,
6799,
9,
8955,
9,
10261,
9,
1441,
9,
15259,
9,
1441,
9,
38,
24,
9,
1441,
9,
15259,
9,
8955,
9,
11149,
6134,
308,
3925,
67,
687,
67,
892,
273,
11527,
18,
718,
3015,
12,
5819,
67,
687,
67,
5436,
13,
1487,
18,
6676,
12,
2074,
13504,
18,
29890,
15277,
16,
404,
13,
1487,
18,
6676,
12,
2074,
13504,
18,
13584,
3776,
16,
3878,
67,
803,
13,
1487,
18,
6676,
12,
2074,
13504,
18,
13584,
46,
985,
16,
3878,
67,
803,
13,
1487,
18,
6676,
12,
2074,
13504,
18,
1785,
16,
296,
2505,
2207,
3190,
1106,
18,
736,
5611,
18,
3197,
19,
1615,
18,
2684,
6134,
1487,
18,
6676,
12,
2074,
13504,
18,
3798,
16,
404,
13,
1487,
18,
6676,
12,
2074,
13504,
18,
20069,
16,
3925,
67,
687,
67,
892,
13,
1487,
18,
6676,
12,
2074,
13504,
18,
11677,
7788,
16,
324,
18,
2626,
13,
1487,
18,
16092,
1435,
876,
273,
5252,
12,
70,
18,
588,
1132,
9334,
296,
3158,
17,
28,
2187,
296,
6185,
6134,
15418,
273,
28132,
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,
425,
1106,
67,
736,
5611,
67,
3197,
13332,
324,
273,
15777,
18,
780,
4294,
1435,
5194,
16,
3878,
67,
803,
273,
13275,
18,
24816,
19781,
84,
12,
3239,
2218,
557,
459,
67,
2187,
1577,
2218,
19,
5645,
6134,
3925,
67,
687,
67,
5436,
273,
306,
7707,
318,
339,
2187,
1947,
18,
41,
5237,
67,
4714,
3631,
7707,
5466,
2187,
1947,
18,
41,
5237,
67,
13784,
3631,
7707,
9297,
2187,
296,
41,
9,
8778,
9,
1441,
9,
6799,
9,
8955,
9,
10261,
9,
1441,
9,
15259,
9,
1441,
9,
38,
24,
9,
1441,
9,
15259,
9,
8955,
9,
11149,
6134,
308,
3925,
67,
687,
67,
892,
273,
11527,
18,
718,
3015,
12,
5819,
67,
687,
67,
5436,
13,
1487,
2
] |
href = ' | href = hash_char + node['refid'] | def visit_reference(self, node): # for pdflatex hyperrefs might be supported if node.has_key('refuri'): href = node['refuri'] elif node.has_key('refid'): href = '#' + node['refid'] elif node.has_key('refname'): href = '#' + self.document.nameids[node['refname']] ##self.body.append('[visit_reference]') self.body.append('\\href{%s}{' % href) | 51da635e400baa72cb517e802318c85e072209f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/51da635e400baa72cb517e802318c85e072209f3/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
6180,
12,
2890,
16,
756,
4672,
468,
364,
8169,
26264,
9512,
9316,
4825,
506,
3260,
309,
756,
18,
5332,
67,
856,
2668,
1734,
1650,
11,
4672,
3897,
273,
756,
3292,
1734,
1650,
3546,
1327,
756,
18,
5332,
67,
856,
2668,
1734,
350,
11,
4672,
3897,
273,
6501,
397,
756,
3292,
1734,
350,
3546,
1327,
756,
18,
5332,
67,
856,
2668,
1734,
529,
11,
4672,
3897,
273,
6501,
397,
365,
18,
5457,
18,
529,
2232,
63,
2159,
3292,
1734,
529,
3546,
65,
7541,
2890,
18,
3432,
18,
6923,
2668,
63,
11658,
67,
6180,
3864,
13,
365,
18,
3432,
18,
6923,
2668,
1695,
7547,
95,
9,
87,
8637,
11,
738,
3897,
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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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,
3757,
67,
6180,
12,
2890,
16,
756,
4672,
468,
364,
8169,
26264,
9512,
9316,
4825,
506,
3260,
309,
756,
18,
5332,
67,
856,
2668,
1734,
1650,
11,
4672,
3897,
273,
756,
3292,
1734,
1650,
3546,
1327,
756,
18,
5332,
67,
856,
2668,
1734,
350,
11,
4672,
3897,
273,
6501,
397,
756,
3292,
1734,
350,
3546,
1327,
756,
18,
5332,
67,
856,
2668,
1734,
529,
11,
4672,
3897,
273,
6501,
397,
365,
18,
5457,
18,
529,
2232,
63,
2159,
3292,
1734,
529,
3546,
65,
7541,
2890,
18,
3432,
18,
6923,
2668,
63,
11658,
67,
6180,
3864,
13,
365,
18,
3432,
18,
6923,
2668,
1695,
7547,
95,
9,
87,
8637,
11,
738,
3897,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.execBegin() | self.execBegin(first=False) | def popCurrent(self): if len(self.dialog_stack): self.current_dialog = self.dialog_stack.pop() self.execBegin() else: self.current_dialog = None | 5e74dc98aad36025621d14b36faeb0c649bf8b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/5e74dc98aad36025621d14b36faeb0c649bf8b9b/mytest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
3935,
12,
2890,
4672,
309,
562,
12,
2890,
18,
12730,
67,
3772,
4672,
365,
18,
2972,
67,
12730,
273,
365,
18,
12730,
67,
3772,
18,
5120,
1435,
365,
18,
4177,
8149,
12,
3645,
33,
8381,
13,
469,
30,
365,
18,
2972,
67,
12730,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
3935,
12,
2890,
4672,
309,
562,
12,
2890,
18,
12730,
67,
3772,
4672,
365,
18,
2972,
67,
12730,
273,
365,
18,
12730,
67,
3772,
18,
5120,
1435,
365,
18,
4177,
8149,
12,
3645,
33,
8381,
13,
469,
30,
365,
18,
2972,
67,
12730,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
user = os.environ.get('LOGNAME') | user = getpass.getuser() | def __init__(self, path, user, server, print_log, debug, reply_debug): """ Create a cached instance of a connection to the frontend | 4055514746960c04d184f50bc7b806c49a5c0370 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/4055514746960c04d184f50bc7b806c49a5c0370/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
16,
729,
16,
1438,
16,
1172,
67,
1330,
16,
1198,
16,
4332,
67,
4148,
4672,
3536,
1788,
279,
3472,
791,
434,
279,
1459,
358,
326,
15442,
2,
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,
1001,
2738,
972,
12,
2890,
16,
589,
16,
729,
16,
1438,
16,
1172,
67,
1330,
16,
1198,
16,
4332,
67,
4148,
4672,
3536,
1788,
279,
3472,
791,
434,
279,
1459,
358,
326,
15442,
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
] |
>>> plt.subplot(121) | def hanning(M): """ Return the Hanning window. The Hanning window is a taper formed by using a weighted cosine. Parameters ---------- M : int Number of points in the output window. If zero or less, an empty array is returned. Returns ------- out : ndarray, shape(M,) The window, normalized to one (the value one appears only if `M` is odd). See Also -------- bartlett, blackman, hamming, kaiser Notes ----- The Hanning window is defined as .. math:: w(n) = 0.5 - 0.5cos\\left(\\frac{2\\pi{n}}{M-1}\\right) \\qquad 0 \\leq n \\leq M-1 The Hanning was named for Julius van Hann, an Austrian meterologist. It is also known as the Cosine Bell. Some authors prefer that it be called a Hann window, to help avoid confusion with the very similar Hamming window. Most references to the Hanning window come from the signal processing literature, where it is used as one of many windowing functions for smoothing values. It is also known as an apodization (which means "removing the foot", i.e. smoothing discontinuities at the beginning and end of the sampled signal) or tapering function. References ---------- .. [1] Blackman, R.B. and Tukey, J.W., (1958) The measurement of power spectra, Dover Publications, New York. .. [2] E.R. Kanasewich, "Time Sequence Analysis in Geophysics", The University of Alberta Press, 1975, pp. 106-108. .. [3] Wikipedia, "Window function", http://en.wikipedia.org/wiki/Window_function .. [4] W.H. Press, B.P. Flannery, S.A. Teukolsky, and W.T. Vetterling, "Numerical Recipes", Cambridge University Press, 1986, page 425. Examples -------- >>> from numpy import hanning >>> hanning(12) array([ 0. , 0.07937323, 0.29229249, 0.57115742, 0.82743037, 0.97974649, 0.97974649, 0.82743037, 0.57115742, 0.29229249, 0.07937323, 0. ]) Plot the window and its frequency response: >>> from numpy.fft import fft, fftshift >>> import matplotlib.pyplot as plt >>> window = np.hanning(51) >>> plt.subplot(121) >>> plt.plot(window) >>> plt.title("Hann window") >>> plt.ylabel("Amplitude") >>> plt.xlabel("Sample") >>> A = fft(window, 2048) / 25.5 >>> mag = abs(fftshift(A)) >>> freq = np.linspace(-0.5,0.5,len(A)) >>> response = 20*np.log10(mag) >>> response = np.clip(response,-100,100) >>> plt.subplot(122) >>> plt.plot(freq, response) >>> plt.title("Frequency response of the Hann window") >>> plt.ylabel("Magnitude [dB]") >>> plt.xlabel("Normalized frequency [cycles per sample]") >>> plt.axis('tight'); plt.show() """ if M < 1: return array([]) if M == 1: return ones(1, float) n = arange(0,M) return 0.5-0.5*cos(2.0*pi*n/(M-1)) | d3133f1ed2d3c2e56853d14a5b3e5e1f2cff11e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/d3133f1ed2d3c2e56853d14a5b3e5e1f2cff11e2/function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
10903,
12,
49,
4672,
3536,
2000,
326,
670,
10903,
2742,
18,
225,
1021,
670,
10903,
2742,
353,
279,
268,
7294,
20010,
635,
1450,
279,
13747,
31633,
18,
225,
7012,
12181,
490,
294,
509,
3588,
434,
3143,
316,
326,
876,
2742,
18,
971,
3634,
578,
5242,
16,
392,
1008,
526,
353,
2106,
18,
225,
2860,
18365,
596,
294,
8304,
16,
2179,
12,
49,
16,
13,
1021,
2742,
16,
5640,
358,
1245,
261,
5787,
460,
1245,
14606,
1338,
309,
1375,
49,
68,
353,
14800,
2934,
225,
2164,
8080,
27093,
324,
485,
1810,
88,
16,
7721,
4728,
16,
366,
301,
11987,
16,
22258,
15914,
225,
29584,
9135,
1021,
670,
10903,
2742,
353,
2553,
487,
225,
6116,
4233,
2866,
225,
341,
12,
82,
13,
273,
374,
18,
25,
300,
374,
18,
25,
14445,
1695,
4482,
24480,
22187,
95,
22,
1695,
7259,
95,
82,
97,
8637,
49,
17,
21,
97,
1695,
4083,
13,
1736,
85,
21733,
374,
1736,
298,
85,
290,
1736,
298,
85,
490,
17,
21,
225,
1021,
670,
10903,
1703,
4141,
364,
804,
332,
8384,
331,
304,
670,
1072,
16,
392,
432,
27008,
2779,
16565,
3966,
376,
18,
2597,
353,
2546,
4846,
487,
326,
385,
538,
558,
605,
1165,
18,
10548,
14494,
13256,
716,
518,
506,
2566,
279,
670,
1072,
2742,
16,
358,
2809,
4543,
31067,
598,
326,
8572,
7281,
670,
301,
11987,
2742,
18,
225,
22099,
5351,
358,
326,
670,
10903,
2742,
12404,
628,
326,
4277,
4929,
328,
2165,
1231,
16,
1625,
518,
353,
1399,
487,
1245,
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,
366,
10903,
12,
49,
4672,
3536,
2000,
326,
670,
10903,
2742,
18,
225,
1021,
670,
10903,
2742,
353,
279,
268,
7294,
20010,
635,
1450,
279,
13747,
31633,
18,
225,
7012,
12181,
490,
294,
509,
3588,
434,
3143,
316,
326,
876,
2742,
18,
971,
3634,
578,
5242,
16,
392,
1008,
526,
353,
2106,
18,
225,
2860,
18365,
596,
294,
8304,
16,
2179,
12,
49,
16,
13,
1021,
2742,
16,
5640,
358,
1245,
261,
5787,
460,
1245,
14606,
1338,
309,
1375,
49,
68,
353,
14800,
2934,
225,
2164,
8080,
27093,
324,
485,
1810,
88,
16,
7721,
4728,
16,
366,
301,
11987,
16,
22258,
15914,
225,
29584,
9135,
1021,
670,
10903,
2742,
353,
2553,
487,
225,
6116,
4233,
2866,
225,
341,
2
] |
|
self._framesize = self._framesize / 2 | self._framesize = self._framesize // 2 | def _read_comm_chunk(self, chunk): self._nchannels = _read_short(chunk) self._nframes = _read_long(chunk) self._sampwidth = (_read_short(chunk) + 7) / 8 self._framerate = int(_read_float(chunk)) self._framesize = self._nchannels * self._sampwidth if self._aifc: #DEBUG: SGI's soundeditor produces a bad size :-( kludge = 0 if chunk.chunksize == 18: kludge = 1 print 'Warning: bad COMM chunk size' chunk.chunksize = 23 #DEBUG end self._comptype = chunk.read(4) #DEBUG start if kludge: length = ord(chunk.file.read(1)) if length & 1 == 0: length = length + 1 chunk.chunksize = chunk.chunksize + length chunk.file.seek(-1, 1) #DEBUG end self._compname = _read_string(chunk) if self._comptype != 'NONE': if self._comptype == 'G722': try: import audioop except ImportError: pass else: self._convert = self._adpcm2lin self._framesize = self._framesize / 4 return # for ULAW and ALAW try Compression Library try: import cl except ImportError: if self._comptype == 'ULAW': try: import audioop self._convert = self._ulaw2lin self._framesize = self._framesize / 2 return except ImportError: pass raise Error, 'cannot read compressed AIFF-C files' if self._comptype == 'ULAW': scheme = cl.G711_ULAW self._framesize = self._framesize / 2 elif self._comptype == 'ALAW': scheme = cl.G711_ALAW self._framesize = self._framesize / 2 else: raise Error, 'unsupported compression type' self._decomp = cl.OpenDecompressor(scheme) self._convert = self._decomp_data else: self._comptype = 'NONE' self._compname = 'not compressed' | c48d059737cd9e7ff23c71cfd59d2a61045dd248 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/c48d059737cd9e7ff23c71cfd59d2a61045dd248/aifc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
5702,
67,
6551,
12,
2890,
16,
2441,
4672,
365,
6315,
82,
9114,
273,
389,
896,
67,
6620,
12,
6551,
13,
365,
6315,
82,
10278,
273,
389,
896,
67,
5748,
12,
6551,
13,
365,
6315,
87,
931,
2819,
273,
261,
67,
896,
67,
6620,
12,
6551,
13,
397,
2371,
13,
342,
1725,
365,
6315,
74,
1940,
12600,
273,
509,
24899,
896,
67,
5659,
12,
6551,
3719,
365,
6315,
10278,
554,
273,
365,
6315,
82,
9114,
380,
365,
6315,
87,
931,
2819,
309,
365,
6315,
69,
430,
71,
30,
468,
9394,
30,
348,
13797,
1807,
272,
12002,
1811,
15505,
279,
5570,
963,
294,
17,
12,
15290,
27110,
273,
374,
309,
2441,
18,
6551,
1467,
422,
6549,
30,
15290,
27110,
273,
404,
1172,
296,
6210,
30,
5570,
5423,
49,
2441,
963,
11,
2441,
18,
6551,
1467,
273,
10213,
468,
9394,
679,
365,
6315,
832,
27672,
273,
2441,
18,
896,
12,
24,
13,
468,
9394,
787,
309,
15290,
27110,
30,
769,
273,
4642,
12,
6551,
18,
768,
18,
896,
12,
21,
3719,
309,
769,
473,
404,
422,
374,
30,
769,
273,
769,
397,
404,
2441,
18,
6551,
1467,
273,
2441,
18,
6551,
1467,
397,
769,
2441,
18,
768,
18,
16508,
19236,
21,
16,
404,
13,
468,
9394,
679,
365,
6315,
2919,
529,
273,
389,
896,
67,
1080,
12,
6551,
13,
309,
365,
6315,
832,
27672,
480,
296,
9826,
4278,
309,
365,
6315,
832,
27672,
422,
296,
43,
27,
3787,
4278,
775,
30,
1930,
7447,
556,
1335,
11308,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
5702,
67,
6551,
12,
2890,
16,
2441,
4672,
365,
6315,
82,
9114,
273,
389,
896,
67,
6620,
12,
6551,
13,
365,
6315,
82,
10278,
273,
389,
896,
67,
5748,
12,
6551,
13,
365,
6315,
87,
931,
2819,
273,
261,
67,
896,
67,
6620,
12,
6551,
13,
397,
2371,
13,
342,
1725,
365,
6315,
74,
1940,
12600,
273,
509,
24899,
896,
67,
5659,
12,
6551,
3719,
365,
6315,
10278,
554,
273,
365,
6315,
82,
9114,
380,
365,
6315,
87,
931,
2819,
309,
365,
6315,
69,
430,
71,
30,
468,
9394,
30,
348,
13797,
1807,
272,
12002,
1811,
15505,
279,
5570,
963,
294,
17,
12,
15290,
27110,
273,
374,
309,
2441,
18,
6551,
1467,
422,
6549,
30,
2
] |
info = self.check_libs(os.path.join(prefix,'lib'), | atlas = self.check_libs(os.path.join(prefix,'lib'), | def calc_info_debian(self,prefix): print 'Trying Debian setup' info = self.check_libs(os.path.join(prefix,'lib'), ['cblas','f77blas','atlas'],[]) if not info: return lapack = self.check_libs(os.path.join(prefix,'lib','atlas'),['lapack'],[]) if not lapack: lapack = self.check_libs(os.path.join(prefix,'lib'),['lapack'],[]) if not lapack: return h = (combine_paths(prefix,'include','cblas.h') or [None])[0] if h: dict_append(info,include_dirs=[os.path.dirname(h)]) dict_append(info,**lapack) self.set_info(**info) | 136097468c3b5317bed520eb2a74fd9eaea920c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/136097468c3b5317bed520eb2a74fd9eaea920c1/system_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
1376,
67,
31888,
2779,
12,
2890,
16,
3239,
4672,
1172,
296,
18038,
1505,
70,
2779,
3875,
11,
22339,
273,
365,
18,
1893,
67,
21571,
12,
538,
18,
803,
18,
5701,
12,
3239,
11189,
2941,
19899,
10228,
71,
3083,
345,
17023,
74,
4700,
3083,
345,
17023,
270,
9521,
17337,
63,
5717,
309,
486,
1123,
30,
327,
328,
438,
484,
273,
365,
18,
1893,
67,
21571,
12,
538,
18,
803,
18,
5701,
12,
3239,
11189,
2941,
17023,
270,
9521,
19899,
3292,
3762,
484,
17337,
63,
5717,
309,
486,
328,
438,
484,
30,
328,
438,
484,
273,
365,
18,
1893,
67,
21571,
12,
538,
18,
803,
18,
5701,
12,
3239,
11189,
2941,
19899,
3292,
3762,
484,
17337,
63,
5717,
309,
486,
328,
438,
484,
30,
327,
366,
273,
261,
14082,
67,
4481,
12,
3239,
11189,
6702,
17023,
71,
3083,
345,
18,
76,
6134,
578,
306,
7036,
5717,
63,
20,
65,
309,
366,
30,
2065,
67,
6923,
12,
1376,
16,
6702,
67,
8291,
22850,
538,
18,
803,
18,
12287,
12,
76,
13,
5717,
2065,
67,
6923,
12,
1376,
16,
636,
3762,
484,
13,
365,
18,
542,
67,
1376,
12,
636,
1376,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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538,
18,
803,
18,
5701,
12,
3239,
11189,
2941,
19899,
10228,
71,
3083,
345,
17023,
74,
4700,
3083,
345,
17023,
270,
9521,
17337,
63,
5717,
309,
486,
1123,
30,
327,
328,
438,
484,
273,
365,
18,
1893,
67,
21571,
12,
538,
18,
803,
18,
5701,
12,
3239,
11189,
2941,
17023,
270,
9521,
19899,
3292,
3762,
484,
17337,
63,
5717,
309,
486,
328,
438,
484,
30,
328,
438,
484,
273,
365,
18,
1893,
67,
21571,
12,
538,
18,
803,
18,
5701,
12,
3239,
11189,
2941,
19899,
3292,
3762,
484,
17337,
63,
5717,
2
] |
Subsets and Splits