rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
if xe >= maxx: xe = maxx-1 if ye >= maxy: ye = maxy-1 if ze >= maxz: ze = maxz-1
|
if xs < minx: x0 -= xs xs = 0 if ys < miny: y0 -= ys ys = 0 if zs < minz: z0 -= zs zs = 0 if xe > maxx: x0 = x0 - xe - maxx xe = maxx if ye > maxy: y0 = y0 - ye - maxy ye = maxy if ze > maxz: z0 = z0 - ze - maxz ze = maxz
|
def createObjectAt(self, imageData, x0, y0, z0, size): """ Create an object in the image at the give position @param imageData the image to modify @param x0, y0, z0 the coordinates of the object @param size the size of the object in pixels """ origr = math.pow(size*2.3561944901923448, 0.333333) #r = int(1+math.sqrt(size/math.pi)) n = 0 r = int(origr) maxx,maxy,maxz = imageData.GetDimensions() xs = int(x0-r) ys = int(y0-r) zs = int(z0-r) if xs < 0: xs = 0 if ys < 0: ys = 0 if zs < 0: zs = 0 xe = int(x0+r) ye = int(y0+r) ze = int(z0+r) if xe >= maxx: xe = maxx-1 if ye >= maxy: ye = maxy-1 if ze >= maxz: ze = maxz-1 count = 0 for x in range(xs,xe): for y in range(ys,ye): for z in range(zs,ze): # Do not use spacing to get real looking objects d = math.sqrt((x0-x)**2 + (y0-y)**2 + (z0-z)**2) if d <= r: #minval = int(255-(d/float(r)*128)) minval = 220 imageData.SetScalarComponentFromDouble(x,y,z,0,random.randint(minval,255)) count += 1
|
0291e4740f7b79883902a89fc31d6f97e7c67f93 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2877/0291e4740f7b79883902a89fc31d6f97e7c67f93/TestData.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17109,
861,
12,
2890,
16,
26229,
16,
619,
20,
16,
677,
20,
16,
998,
20,
16,
963,
4672,
3536,
1788,
392,
733,
316,
326,
1316,
622,
326,
8492,
1754,
632,
891,
26229,
326,
1316,
358,
5612,
632,
891,
619,
20,
16,
677,
20,
16,
998,
20,
202,
326,
5513,
434,
326,
733,
632,
891,
963,
1377,
326,
963,
434,
326,
733,
316,
8948,
3536,
1647,
86,
273,
4233,
18,
23509,
12,
1467,
14,
22,
18,
23,
4313,
3657,
6334,
29,
1611,
29,
4366,
6334,
28,
16,
374,
18,
18094,
3707,
13,
468,
86,
273,
509,
12,
21,
15,
15949,
18,
24492,
12,
1467,
19,
15949,
18,
7259,
3719,
290,
273,
374,
436,
273,
509,
12,
280,
2757,
13,
943,
92,
16,
1896,
93,
16,
1896,
94,
273,
26229,
18,
967,
10796,
1435,
9280,
273,
509,
12,
92,
20,
17,
86,
13,
16036,
273,
509,
12,
93,
20,
17,
86,
13,
998,
87,
273,
509,
12,
94,
20,
17,
86,
13,
309,
9280,
411,
374,
30,
9280,
273,
374,
309,
16036,
411,
374,
30,
16036,
273,
374,
309,
998,
87,
411,
374,
30,
998,
87,
273,
374,
20517,
273,
509,
12,
92,
20,
15,
86,
13,
677,
73,
273,
509,
12,
93,
20,
15,
86,
13,
26637,
273,
509,
12,
94,
20,
15,
86,
13,
282,
309,
9280,
411,
31407,
30,
619,
20,
3947,
9280,
9280,
273,
374,
309,
16036,
411,
1131,
93,
30,
677,
20,
3947,
16036,
16036,
273,
374,
309,
998,
87,
411,
1131,
94,
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,
17109,
861,
12,
2890,
16,
26229,
16,
619,
20,
16,
677,
20,
16,
998,
20,
16,
963,
4672,
3536,
1788,
392,
733,
316,
326,
1316,
622,
326,
8492,
1754,
632,
891,
26229,
326,
1316,
358,
5612,
632,
891,
619,
20,
16,
677,
20,
16,
998,
20,
202,
326,
5513,
434,
326,
733,
632,
891,
963,
1377,
326,
963,
434,
326,
733,
316,
8948,
3536,
1647,
86,
273,
4233,
18,
23509,
12,
1467,
14,
22,
18,
23,
4313,
3657,
6334,
29,
1611,
29,
4366,
6334,
28,
16,
374,
18,
18094,
3707,
13,
468,
86,
273,
509,
12,
21,
15,
15949,
18,
24492,
12,
1467,
19,
15949,
18,
7259,
3719,
290,
273,
374,
436,
273,
509,
12,
280,
2757,
13,
2
] |
self.EndModal(wxID_OK)
|
rollcall = self.getRollCall() try: self.client.submitRollCall(self.group_href, rollcall) except SchoolToolError, e: wxMessageBox("Could not submit the roll call: %s" % e, self.title, wxICON_ERROR|wxOK) else: self.EndModal(wxID_OK)
|
def OnOk(self, event): """Verify that all required data is entered before closing the dialog. """ for (href, was_absent, absent, present, comment, resolve, dontresolve) in self.items: if absent.GetValue() == present.GetValue(): present.SetFocus() wxBell() return if (present.GetValue() and was_absent and resolve.GetValue() == dontresolve.GetValue()): resolve.SetFocus() wxBell() return self.EndModal(wxID_OK)
|
e3df1f749f4cd8d7ca96a6fae474b708235e4d14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/e3df1f749f4cd8d7ca96a6fae474b708235e4d14/wxclient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
8809,
12,
2890,
16,
871,
4672,
3536,
8097,
716,
777,
1931,
501,
353,
16219,
1865,
7647,
326,
6176,
18,
3536,
364,
261,
7547,
16,
1703,
67,
5113,
319,
16,
17245,
16,
3430,
16,
2879,
16,
2245,
16,
14046,
10828,
13,
316,
365,
18,
3319,
30,
309,
17245,
18,
967,
620,
1435,
422,
3430,
18,
967,
620,
13332,
3430,
18,
694,
9233,
1435,
7075,
38,
1165,
1435,
327,
309,
261,
6706,
18,
967,
620,
1435,
471,
1703,
67,
5113,
319,
471,
2245,
18,
967,
620,
1435,
422,
14046,
10828,
18,
967,
620,
1435,
4672,
2245,
18,
694,
9233,
1435,
7075,
38,
1165,
1435,
327,
365,
18,
1638,
20191,
12,
27226,
734,
67,
3141,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
8809,
12,
2890,
16,
871,
4672,
3536,
8097,
716,
777,
1931,
501,
353,
16219,
1865,
7647,
326,
6176,
18,
3536,
364,
261,
7547,
16,
1703,
67,
5113,
319,
16,
17245,
16,
3430,
16,
2879,
16,
2245,
16,
14046,
10828,
13,
316,
365,
18,
3319,
30,
309,
17245,
18,
967,
620,
1435,
422,
3430,
18,
967,
620,
13332,
3430,
18,
694,
9233,
1435,
7075,
38,
1165,
1435,
327,
309,
261,
6706,
18,
967,
620,
1435,
471,
1703,
67,
5113,
319,
471,
2245,
18,
967,
620,
1435,
422,
14046,
10828,
18,
967,
620,
1435,
4672,
2245,
18,
694,
9233,
1435,
7075,
38,
1165,
1435,
327,
365,
18,
1638,
20191,
12,
27226,
734,
67,
3141,
13,
2,
-100,
-100,
-100,
-100
] |
_INSTALL_ONLY_MASK = _notpre(RPMSENSE_SCRIPT_PRE | RPMSENSE_SCRIPT_POST \
|
_INSTALL_ONLY_MASK = _notpre(RPMSENSE_SCRIPT_PRE | RPMSENSE_SCRIPT_POST
|
def _notpre(x): return (x & ~RPMSENSE_PREREQ)
|
427871e48b993cbe1bec0e26f0693386c8014c95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/427871e48b993cbe1bec0e26f0693386c8014c95/oldpyrpm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
902,
1484,
12,
92,
4672,
327,
261,
92,
473,
4871,
54,
12728,
1090,
50,
1090,
67,
8025,
654,
27247,
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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,
316,
326,
981,
30,
1652,
389,
902,
1484,
12,
92,
4672,
327,
261,
92,
473,
4871,
54,
12728,
1090,
50,
1090,
67,
8025,
654,
27247,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Returns a triplet (:class:`disco.func.OutputStream`, size, url) that is
|
Returns a pair (:class:`disco.func.OutputStream`, url) that is
|
def output_stream(stream, partition, url, params): """ :param stream: :class:`disco.func.OutputStream` object :param partition: partition id :param url: url of the input :param params: the :class:`disco.core.Params` object specified by the *params* parameter in :class:`disco.core.JobDict`. Returns a triplet (:class:`disco.func.OutputStream`, size, url) that is passed to the next *output_stream* function in the chain. The :meth:`disco.func.OutputStream.add` method of the last :class:`disco.func.OutputStream` object returned by the chain is used to output entries from map or reduce. Using an :func:`output_stream` allows you to customize where and how output is stored. The default should almost always be used. """
|
d3effb97995ceb9f72a50d2cfccbf82c7a148de6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/d3effb97995ceb9f72a50d2cfccbf82c7a148de6/func.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
3256,
12,
3256,
16,
3590,
16,
880,
16,
859,
4672,
3536,
294,
891,
1407,
30,
294,
1106,
28288,
2251,
2894,
18,
644,
18,
4632,
68,
733,
294,
891,
3590,
30,
3590,
612,
294,
891,
880,
30,
880,
434,
326,
810,
294,
891,
859,
30,
326,
294,
1106,
28288,
2251,
2894,
18,
3644,
18,
1370,
68,
733,
1269,
635,
326,
380,
2010,
14,
1569,
316,
294,
1106,
28288,
2251,
2894,
18,
3644,
18,
2278,
5014,
8338,
225,
2860,
279,
3082,
28002,
1106,
28288,
2251,
2894,
18,
644,
18,
4632,
9191,
880,
13,
716,
353,
2275,
358,
326,
1024,
380,
2844,
67,
3256,
14,
445,
316,
326,
2687,
18,
1021,
294,
27305,
28288,
2251,
2894,
18,
644,
18,
4632,
18,
1289,
68,
707,
434,
326,
1142,
294,
1106,
28288,
2251,
2894,
18,
644,
18,
4632,
68,
733,
2106,
635,
326,
2687,
353,
1399,
358,
876,
3222,
628,
852,
578,
5459,
18,
225,
11637,
392,
294,
644,
28288,
2844,
67,
3256,
68,
5360,
1846,
358,
20236,
1625,
471,
3661,
876,
353,
4041,
18,
1021,
805,
1410,
23889,
3712,
506,
1399,
18,
3536,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
3256,
12,
3256,
16,
3590,
16,
880,
16,
859,
4672,
3536,
294,
891,
1407,
30,
294,
1106,
28288,
2251,
2894,
18,
644,
18,
4632,
68,
733,
294,
891,
3590,
30,
3590,
612,
294,
891,
880,
30,
880,
434,
326,
810,
294,
891,
859,
30,
326,
294,
1106,
28288,
2251,
2894,
18,
3644,
18,
1370,
68,
733,
1269,
635,
326,
380,
2010,
14,
1569,
316,
294,
1106,
28288,
2251,
2894,
18,
3644,
18,
2278,
5014,
8338,
225,
2860,
279,
3082,
28002,
1106,
28288,
2251,
2894,
18,
644,
18,
4632,
9191,
880,
13,
716,
353,
2275,
358,
326,
1024,
380,
2844,
67,
3256,
14,
445,
316,
326,
2687,
18,
1021,
294,
27305,
28288,
2251,
2894,
18,
644,
18,
2
] |
else: flag = os.P_NOWAIT
|
def do_start(self, arg): self.get_status() if not self.zd_up: args = [ self.options.python, self.options.zdrun, ] args += self._get_override("-S", "schemafile") args += self._get_override("-C", "configfile") args += self._get_override("-b", "backofflimit") args += self._get_override("-d", "daemon", flag=1) args += self._get_override("-f", "forever", flag=1) args += self._get_override("-s", "sockname") args += self._get_override("-u", "user") args += self._get_override("-m", "umask") args += self._get_override( "-x", "exitcodes", ",".join(map(str, self.options.exitcodes))) args += self._get_override("-z", "directory") args.extend(self.options.program) if self.options.daemon: flag = os.P_WAIT else: flag = os.P_NOWAIT os.spawnvp(flag, args[0], args) elif not self.zd_pid: self.send_action("start") else: print "daemon process already running; pid=%d" % self.zd_pid return self.awhile(lambda: self.zd_pid, "daemon process started, pid=%(zd_pid)d")
|
1c0907fb9d7d2aa9077d3b2ae8dc5923afa457c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9782/1c0907fb9d7d2aa9077d3b2ae8dc5923afa457c0/zdctl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1937,
12,
2890,
16,
1501,
4672,
365,
18,
588,
67,
2327,
1435,
309,
486,
365,
18,
94,
72,
67,
416,
30,
833,
273,
306,
365,
18,
2116,
18,
8103,
16,
365,
18,
2116,
18,
94,
72,
2681,
16,
308,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
55,
3113,
315,
4821,
768,
7923,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
39,
3113,
315,
1425,
768,
7923,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
70,
3113,
315,
823,
792,
2242,
1038,
7923,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
72,
3113,
315,
21511,
3113,
2982,
33,
21,
13,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
74,
3113,
315,
1405,
502,
3113,
2982,
33,
21,
13,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
87,
3113,
315,
15031,
529,
7923,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
89,
3113,
315,
1355,
7923,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
81,
3113,
315,
379,
835,
7923,
833,
1011,
365,
6315,
588,
67,
10601,
12,
3701,
92,
3113,
315,
8593,
7000,
3113,
5753,
18,
5701,
12,
1458,
12,
701,
16,
365,
18,
2116,
18,
8593,
7000,
20349,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
94,
3113,
315,
5149,
7923,
833,
18,
14313,
12,
2890,
18,
2116,
18,
12890,
13,
309,
365,
18,
2116,
18,
21511,
30,
2982,
273,
1140,
18,
52,
67,
19046,
1140,
18,
1752,
9533,
20106,
12,
6420,
16,
833,
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,
1937,
12,
2890,
16,
1501,
4672,
365,
18,
588,
67,
2327,
1435,
309,
486,
365,
18,
94,
72,
67,
416,
30,
833,
273,
306,
365,
18,
2116,
18,
8103,
16,
365,
18,
2116,
18,
94,
72,
2681,
16,
308,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
55,
3113,
315,
4821,
768,
7923,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
39,
3113,
315,
1425,
768,
7923,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
70,
3113,
315,
823,
792,
2242,
1038,
7923,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
72,
3113,
315,
21511,
3113,
2982,
33,
21,
13,
833,
1011,
365,
6315,
588,
67,
10601,
2932,
17,
74,
3113,
315,
2
] |
|
libraries, extradirs, extraexportsymbols)
|
libraries, extradirs, extraexportsymbols, outputdir)
|
def genpluginproject(architecture, module, project=None, projectdir=None, sources=[], sourcedirs=[], libraries=[], extradirs=[], extraexportsymbols=[], outputdir=":::Lib:lib-dynload"): if architecture == "all": # For the time being we generate two project files. Not as nice as # a single multitarget project, but easier to implement for now. genpluginproject("ppc", module, project, projectdir, sources, sourcedirs, libraries, extradirs, extraexportsymbols) genpluginproject("carbon", module, project, projectdir, sources, sourcedirs, libraries, extradirs, extraexportsymbols) return templatename = "template-%s" % architecture targetname = "%s.%s" % (module, architecture) dllname = "%s.%s.slb" % (module, architecture) if not project: if architecture != "ppc": project = "%s.%s.mcp"%(module, architecture) else: project = "%s.mcp"%module if not projectdir: projectdir = PROJECTDIR if not sources: sources = [module + 'module.c'] if not sourcedirs: for moduledir in MODULEDIRS: if '%' in moduledir: moduledir = moduledir % module fn = os.path.join(projectdir, os.path.join(moduledir, sources[0])) if os.path.exists(fn): moduledir, sourcefile = os.path.split(fn) sourcedirs = [relpath(projectdir, moduledir)] sources[0] = sourcefile break else: print "Warning: %s: sourcefile not found: %s"%(module, sources[0]) sourcedirs = [] if architecture == "carbon": prefixname = "mwerks_carbonplugin_config.h" else: prefixname = "mwerks_plugin_config.h" dict = { "sysprefix" : relpath(projectdir, sys.prefix), "sources" : sources, "extrasearchdirs" : sourcedirs + extradirs, "libraries": libraries, "mac_outputdir" : outputdir, "extraexportsymbols" : extraexportsymbols, "mac_targetname" : targetname, "mac_dllname" : dllname, "prefixname" : prefixname, } mkcwproject.mkproject(os.path.join(projectdir, project), module, dict, force=FORCEREBUILD, templatename=templatename)
|
700080c9619bc46969ee6f34b79646eca516507f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/700080c9619bc46969ee6f34b79646eca516507f/genpluginprojects.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
4094,
4406,
12,
991,
18123,
16,
1605,
16,
1984,
33,
7036,
16,
1984,
1214,
33,
7036,
16,
5550,
22850,
6487,
1084,
8291,
22850,
6487,
14732,
22850,
6487,
7582,
361,
10539,
22850,
6487,
2870,
23732,
3284,
87,
22850,
6487,
876,
1214,
1546,
2866,
30,
5664,
30,
2941,
17,
28595,
945,
6,
4672,
309,
27418,
422,
315,
454,
6877,
468,
2457,
326,
813,
3832,
732,
2103,
2795,
1984,
1390,
18,
2288,
487,
13752,
487,
468,
279,
2202,
1778,
305,
826,
1984,
16,
1496,
15857,
358,
2348,
364,
2037,
18,
3157,
4094,
4406,
2932,
84,
2436,
3113,
1605,
16,
1984,
16,
1984,
1214,
16,
5550,
16,
1084,
8291,
16,
14732,
16,
7582,
361,
10539,
16,
2870,
23732,
3284,
87,
16,
876,
1214,
13,
3157,
4094,
4406,
2932,
71,
11801,
3113,
1605,
16,
1984,
16,
1984,
1214,
16,
5550,
16,
1084,
8291,
16,
14732,
16,
7582,
361,
10539,
16,
2870,
23732,
3284,
87,
16,
876,
1214,
13,
327,
13988,
270,
1069,
273,
315,
3202,
6456,
87,
6,
738,
27418,
1018,
529,
273,
2213,
87,
7866,
87,
6,
738,
261,
2978,
16,
27418,
13,
302,
2906,
529,
273,
2213,
87,
7866,
87,
18,
2069,
70,
6,
738,
261,
2978,
16,
27418,
13,
309,
486,
1984,
30,
309,
27418,
480,
315,
84,
2436,
6877,
1984,
273,
2213,
87,
7866,
87,
18,
81,
4057,
6,
17105,
2978,
16,
27418,
13,
469,
30,
1984,
273,
2213,
87,
18,
81,
4057,
28385,
2978,
309,
486,
1984,
1214,
30,
1984,
1214,
273,
22489,
4537,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
4094,
4406,
12,
991,
18123,
16,
1605,
16,
1984,
33,
7036,
16,
1984,
1214,
33,
7036,
16,
5550,
22850,
6487,
1084,
8291,
22850,
6487,
14732,
22850,
6487,
7582,
361,
10539,
22850,
6487,
2870,
23732,
3284,
87,
22850,
6487,
876,
1214,
1546,
2866,
30,
5664,
30,
2941,
17,
28595,
945,
6,
4672,
309,
27418,
422,
315,
454,
6877,
468,
2457,
326,
813,
3832,
732,
2103,
2795,
1984,
1390,
18,
2288,
487,
13752,
487,
468,
279,
2202,
1778,
305,
826,
1984,
16,
1496,
15857,
358,
2348,
364,
2037,
18,
3157,
4094,
4406,
2932,
84,
2436,
3113,
1605,
16,
1984,
16,
1984,
1214,
16,
5550,
16,
1084,
8291,
16,
14732,
16,
7582,
361,
10539,
16,
2870,
23732,
3284,
87,
16,
2
] |
str += '<H2>Package '+uid.name()+'</H2>\n\n'
|
str += '<h2>Package '+uid.name()+'</h2>\n\n'
|
def _module_to_html(self, uid): 'Return an HTML page for a Module' doc = self._docmap[uid] descr = doc.descr() if uid.is_package(): moduletype = 'package' else: moduletype = 'module' str = self._header(`uid`) str += self._navbar(moduletype, uid)
|
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
67,
869,
67,
2620,
12,
2890,
16,
4555,
4672,
296,
990,
392,
3982,
1363,
364,
279,
5924,
11,
997,
273,
365,
6315,
2434,
1458,
63,
1911,
65,
18426,
273,
997,
18,
28313,
1435,
309,
4555,
18,
291,
67,
5610,
13332,
13340,
5872,
273,
296,
5610,
11,
469,
30,
13340,
5872,
273,
296,
2978,
11,
225,
609,
273,
365,
6315,
3374,
12,
68,
1911,
24065,
609,
1011,
365,
6315,
11589,
3215,
12,
1711,
332,
5872,
16,
4555,
13,
2,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
67,
869,
67,
2620,
12,
2890,
16,
4555,
4672,
296,
990,
392,
3982,
1363,
364,
279,
5924,
11,
997,
273,
365,
6315,
2434,
1458,
63,
1911,
65,
18426,
273,
997,
18,
28313,
1435,
309,
4555,
18,
291,
67,
5610,
13332,
13340,
5872,
273,
296,
5610,
11,
469,
30,
13340,
5872,
273,
296,
2978,
11,
225,
609,
273,
365,
6315,
3374,
12,
68,
1911,
24065,
609,
1011,
365,
6315,
11589,
3215,
12,
1711,
332,
5872,
16,
4555,
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
] |
return self._ldap_call(self._l.unbind,)
|
return self._ldap_call(self._l.unbind)
|
def unbind(self): """ unbind_s() -> None unbind() -> int This call is used to unbind from the directory, terminate the current association, and free resources. Once called, the connection to the LDAP server is closed and the LDAP object is invalid. Further invocation of methods on the object will yield an exception. The unbind and unbind_s methods are identical, and are synchronous in nature """ return self._ldap_call(self._l.unbind,)
|
98616bb4635a2997ba80ebe92091c600f4e2e902 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4610/98616bb4635a2997ba80ebe92091c600f4e2e902/ldapobject.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17449,
12,
2890,
4672,
3536,
17449,
67,
87,
1435,
317,
599,
17449,
1435,
317,
509,
1220,
745,
353,
1399,
358,
17449,
628,
326,
1867,
16,
10850,
326,
783,
6384,
16,
471,
4843,
2703,
18,
12419,
2566,
16,
326,
1459,
358,
326,
11916,
1438,
353,
4375,
471,
326,
11916,
733,
353,
2057,
18,
478,
8753,
9495,
434,
2590,
603,
326,
733,
903,
2824,
392,
1520,
18,
225,
1021,
17449,
471,
17449,
67,
87,
2590,
854,
12529,
16,
471,
854,
12209,
316,
28700,
3536,
327,
365,
6315,
14394,
67,
1991,
12,
2890,
6315,
80,
18,
318,
4376,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17449,
12,
2890,
4672,
3536,
17449,
67,
87,
1435,
317,
599,
17449,
1435,
317,
509,
1220,
745,
353,
1399,
358,
17449,
628,
326,
1867,
16,
10850,
326,
783,
6384,
16,
471,
4843,
2703,
18,
12419,
2566,
16,
326,
1459,
358,
326,
11916,
1438,
353,
4375,
471,
326,
11916,
733,
353,
2057,
18,
478,
8753,
9495,
434,
2590,
603,
326,
733,
903,
2824,
392,
1520,
18,
225,
1021,
17449,
471,
17449,
67,
87,
2590,
854,
12529,
16,
471,
854,
12209,
316,
28700,
3536,
327,
365,
6315,
14394,
67,
1991,
12,
2890,
6315,
80,
18,
318,
4376,
16,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if len(subject) > 2 and subject[2] == ':': topic = subject[3:].lstrip() else: topic = subject topic = topic.replace(' ', '') self.env.log.debug("Searching for message with topic %s", topic) db = self.env.get_read_db() cursor = db.cursor() cursor.execute('SELECT subject, conversation ' 'FROM mailinglistmessages ' 'WHERE list = %s AND date < %s' 'ORDER BY DATE LIMIT 1', (self.id, date)) for row in cursor: if subject == row[0].replace(' ',''): return MailinglistConversation(self.env, row[1]), False
|
if subject is not None: def prepare_subject_for_compare(subject): if len(subject) > 2 and subject[2] == ':': subject = subject[3:].lstrip() subject = subject.replace(" ","") return subject topic = prepare_subject_for_compare(subject) self.env.log.debug("Searching for message with topic %s", topic) db = self.env.get_read_db() cursor = db.cursor() cursor.execute('SELECT subject, conversation ' 'FROM mailinglistmessages ' 'WHERE list = %s AND date < %s' 'ORDER BY DATE DESC LIMIT 100', (self.id, date)) for row in cursor: if row[0] and prepare_subject_for_compare(row[0]) == topic: return MailinglistConversation(self.env, row[1]), False
|
def get_conv_ms(self, msg, subject, date): """ Returns the `MailinglistConversation` the msg belongs to. If the message is the first message in a conversation or if the conversation is unknown a newly created conversation is returned.
|
ed82221bab3db3c3569d41870d18fbd05b93e306 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/662/ed82221bab3db3c3569d41870d18fbd05b93e306/model.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4896,
67,
959,
12,
2890,
16,
1234,
16,
3221,
16,
1509,
4672,
3536,
2860,
326,
1375,
6759,
310,
1098,
15717,
68,
326,
1234,
11081,
358,
18,
971,
326,
883,
353,
326,
1122,
883,
316,
279,
10039,
578,
309,
326,
10039,
353,
5917,
279,
10894,
2522,
10039,
353,
2106,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4896,
67,
959,
12,
2890,
16,
1234,
16,
3221,
16,
1509,
4672,
3536,
2860,
326,
1375,
6759,
310,
1098,
15717,
68,
326,
1234,
11081,
358,
18,
971,
326,
883,
353,
326,
1122,
883,
316,
279,
10039,
578,
309,
326,
10039,
353,
5917,
279,
10894,
2522,
10039,
353,
2106,
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
] |
while pp[i+1].chtype == chunk_type[COMMENT]: i = i + 1
|
def changeit(buf, pp): global onlylatexspecial, hist, out i, length = 0, len(pp) while 1: # sanity check: length should always equal len(pp) if len(pp) != length: print i, pp[i] raise 'FATAL', 'inconsistent length. thought ' + `length` + ', but should really be ' + `len(pp)` if i >= length: break ch = pp[i] i = i + 1 if type(ch) is StringType: #normally, only chunks are present in pp, # but in some cases, some extra info # has been inserted, e.g., the \end{...} clauses raise 'FATAL', 'got string, probably too many ' + `end` if ch.chtype == chunk_type[GROUP]: # check for {\em ...} constructs data = ch.data if data and \ data[0].chtype == chunk_type[CSNAME] and \ fontchanges.has_key(s(buf, data[0].data)): k = s(buf, data[0].data) del data[0] pp.insert(i-1, chunk(CSNAME, ch.where, fontchanges[k])) length, i = length+1, i+1 elif data: if len(data) \ and data[0].chtype == chunk_type[GROUP] \ and len(data[0].data) \ and data[0].data[0].chtype == chunk_type[CSNAME] \ and s(buf, data[0].data[0].data) == 'e': data[0] = data[0].data[0] print "invoking \\e magic group transform..." else:
|
a302c9555984072394cd72609bc8973adecd6fe3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a302c9555984072394cd72609bc8973adecd6fe3/partparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
305,
12,
4385,
16,
8228,
4672,
2552,
1338,
26264,
9371,
16,
5356,
16,
596,
225,
277,
16,
769,
273,
374,
16,
562,
12,
11858,
13,
1323,
404,
30,
468,
16267,
866,
30,
769,
1410,
3712,
3959,
562,
12,
11858,
13,
309,
562,
12,
11858,
13,
480,
769,
30,
1172,
277,
16,
8228,
63,
77,
65,
1002,
296,
29891,
2187,
296,
267,
16952,
769,
18,
286,
83,
9540,
296,
397,
1375,
2469,
68,
397,
2265,
1496,
1410,
8654,
506,
296,
397,
1375,
1897,
12,
11858,
22025,
309,
277,
1545,
769,
30,
898,
462,
273,
8228,
63,
77,
65,
277,
273,
277,
397,
404,
225,
309,
618,
12,
343,
13,
353,
31570,
30,
468,
7959,
1230,
16,
1338,
6055,
854,
3430,
316,
8228,
16,
468,
1496,
316,
2690,
6088,
16,
2690,
2870,
1123,
468,
711,
2118,
9564,
16,
425,
18,
75,
12990,
326,
521,
409,
95,
2777,
97,
14093,
1002,
296,
29891,
2187,
296,
13212,
533,
16,
8656,
4885,
4906,
296,
397,
1375,
409,
68,
225,
309,
462,
18,
343,
723,
422,
2441,
67,
723,
63,
8468,
14542,
468,
866,
364,
18890,
351,
1372,
97,
15725,
501,
273,
462,
18,
892,
309,
501,
471,
521,
501,
63,
20,
8009,
343,
723,
422,
2441,
67,
723,
63,
4596,
1985,
65,
471,
521,
3512,
6329,
18,
5332,
67,
856,
12,
87,
12,
4385,
16,
501,
63,
20,
8009,
892,
3719,
30,
417,
273,
272,
12,
4385,
16,
501,
63,
20,
8009,
892,
13,
1464,
501,
63,
20,
65,
8228,
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,
2549,
305,
12,
4385,
16,
8228,
4672,
2552,
1338,
26264,
9371,
16,
5356,
16,
596,
225,
277,
16,
769,
273,
374,
16,
562,
12,
11858,
13,
1323,
404,
30,
468,
16267,
866,
30,
769,
1410,
3712,
3959,
562,
12,
11858,
13,
309,
562,
12,
11858,
13,
480,
769,
30,
1172,
277,
16,
8228,
63,
77,
65,
1002,
296,
29891,
2187,
296,
267,
16952,
769,
18,
286,
83,
9540,
296,
397,
1375,
2469,
68,
397,
2265,
1496,
1410,
8654,
506,
296,
397,
1375,
1897,
12,
11858,
22025,
309,
277,
1545,
769,
30,
898,
462,
273,
8228,
63,
77,
65,
277,
273,
277,
397,
404,
225,
309,
618,
12,
343,
13,
353,
31570,
30,
468,
7959,
1230,
16,
1338,
6055,
2
] |
|
circs_per_node,out_dir) = read_config(argv[1])
|
circs_per_node,out_dir,max_fetch_time) = read_config(argv[1])
|
def main(argv): TorUtil.read_config(argv[1]) (start_pct,stop_pct,nodes_per_slice,save_every, circs_per_node,out_dir) = read_config(argv[1]) try: (c,hdlr) = setup_handler() except Exception, e: plog("WARN", "Can't connect to Tor: "+str(e)) sql_file = os.getcwd()+'/'+out_dir+'/bwauthority.sqlite' hdlr.attach_sql_listener('sqlite:///'+sql_file) # set SOCKS proxy socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, tor_host, tor_port) socket.socket = socks.socksocket while True: pct = start_pct plog('INFO', 'Beginning time loop') while pct < stop_pct: pct_step = hdlr.rank_to_percent(nodes_per_slice) hdlr.reset_stats() hdlr.commit() plog('DEBUG', 'Reset stats') speedrace(hdlr, pct, pct+pct_step, circs_per_node, save_every, out_dir) plog('DEBUG', 'speedroced') hdlr.commit() hdlr.close_circuits() lo = str(round(pct,1)) hi = str(round(pct+pct_step,1)) hdlr.write_sql_stats(pct, pct+pct_step, os.getcwd()+'/'+out_dir+'/sql-'+lo+':'+hi+"-done-"+strftime("20%y-%m-%d-%H:%M:%S")) hdlr.write_strm_bws(pct, pct+pct_step, os.getcwd()+'/'+out_dir+'/bws-'+lo+':'+hi+"-done-"+strftime("20%y-%m-%d-%H:%M:%S")) plog('DEBUG', 'Wrote stats') pct += pct_step hdlr.save_sql_file(sql_file, "db-"+str(lo)+":"+str(hi)+"-"+strftime("20%y-%m-%d-%H:%M:%S")+".sqlite")
|
e8450ad1cd3c23315f682731ad3047861f509350 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/e8450ad1cd3c23315f682731ad3047861f509350/bwauthority.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
23763,
1304,
18,
896,
67,
1425,
12,
19485,
63,
21,
5717,
261,
1937,
67,
23989,
16,
5681,
67,
23989,
16,
4690,
67,
457,
67,
6665,
16,
5688,
67,
20434,
16,
5886,
2143,
67,
457,
67,
2159,
16,
659,
67,
1214,
16,
1896,
67,
5754,
67,
957,
13,
273,
855,
67,
1425,
12,
19485,
63,
21,
5717,
225,
775,
30,
261,
71,
16,
76,
5761,
86,
13,
273,
3875,
67,
4176,
1435,
1335,
1185,
16,
425,
30,
293,
1330,
2932,
27999,
3113,
315,
2568,
1404,
3077,
358,
23763,
30,
13773,
701,
12,
73,
3719,
225,
1847,
67,
768,
273,
1140,
18,
588,
11089,
1435,
6797,
2473,
15,
659,
67,
1214,
6797,
19,
70,
91,
24763,
18,
19460,
11,
366,
5761,
86,
18,
7331,
67,
4669,
67,
12757,
2668,
19460,
2207,
2473,
15,
4669,
67,
768,
13,
225,
468,
444,
20834,
55,
2889,
7313,
87,
18,
542,
1886,
5656,
12,
15031,
87,
18,
16085,
67,
2399,
67,
3584,
3507,
55,
25,
16,
8934,
67,
2564,
16,
8934,
67,
655,
13,
2987,
18,
7814,
273,
7313,
87,
18,
15031,
7814,
225,
1323,
1053,
30,
19857,
273,
787,
67,
23989,
293,
1330,
2668,
5923,
2187,
296,
8149,
2093,
813,
2798,
6134,
225,
1323,
19857,
411,
2132,
67,
23989,
30,
19857,
67,
4119,
273,
366,
5761,
86,
18,
11500,
67,
869,
67,
8849,
12,
4690,
67,
457,
67,
6665,
13,
366,
5761,
86,
18,
6208,
67,
5296,
1435,
366,
5761,
86,
18,
7371,
1435,
293,
1330,
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,
2774,
12,
19485,
4672,
23763,
1304,
18,
896,
67,
1425,
12,
19485,
63,
21,
5717,
261,
1937,
67,
23989,
16,
5681,
67,
23989,
16,
4690,
67,
457,
67,
6665,
16,
5688,
67,
20434,
16,
5886,
2143,
67,
457,
67,
2159,
16,
659,
67,
1214,
16,
1896,
67,
5754,
67,
957,
13,
273,
855,
67,
1425,
12,
19485,
63,
21,
5717,
225,
775,
30,
261,
71,
16,
76,
5761,
86,
13,
273,
3875,
67,
4176,
1435,
1335,
1185,
16,
425,
30,
293,
1330,
2932,
27999,
3113,
315,
2568,
1404,
3077,
358,
23763,
30,
13773,
701,
12,
73,
3719,
225,
1847,
67,
768,
273,
1140,
18,
588,
11089,
1435,
6797,
2473,
15,
659,
67,
1214,
6797,
19,
70,
91,
24763,
2
] |
return d._fix(context=self)
|
return d._fix(self)
|
def create_decimal(self, num='0'): """Creates a new Decimal instance but using self as context.""" d = Decimal(num, context=self) return d._fix(context=self)
|
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
12586,
12,
2890,
16,
818,
2218,
20,
11,
4672,
3536,
2729,
279,
394,
11322,
791,
1496,
1450,
365,
487,
819,
12123,
302,
273,
11322,
12,
2107,
16,
819,
33,
2890,
13,
327,
302,
6315,
904,
12,
2472,
33,
2890,
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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
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
] |
r'|this|throw|try|vararg|while|with|yield)', Keyword ), (r'(false|true|null)', Keyword.Constant),
|
r'|this|throw|try|vararg|while|with|yield)\b', Keyword), (r'(false|true|null)\b', Keyword.Constant),
|
def get_tokens_unprocessed(self, text): for index, token, value in \ RegexLexer.get_tokens_unprocessed(self, text): if token is Name: if value in self._functions: yield index, Name.Function, value continue elif '.' in value: a, b = value.split('.') yield index, Name, a yield index + len(a), Punctuation, u'.' yield index + len(a) + 1, Name, b continue yield index, token, value
|
2d7c675cae94a51f19c44cff1a4b58bbe1693839 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6148/2d7c675cae94a51f19c44cff1a4b58bbe1693839/agile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
364,
770,
16,
1147,
16,
460,
316,
521,
15078,
13356,
18,
588,
67,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
309,
1147,
353,
1770,
30,
309,
460,
316,
365,
6315,
10722,
30,
2824,
770,
16,
1770,
18,
2083,
16,
460,
1324,
1327,
2611,
316,
460,
30,
279,
16,
324,
273,
460,
18,
4939,
2668,
1093,
13,
2824,
770,
16,
1770,
16,
279,
2824,
770,
397,
562,
12,
69,
3631,
453,
15726,
16,
582,
11,
1093,
2824,
770,
397,
562,
12,
69,
13,
397,
404,
16,
1770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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
364,
770,
16,
1147,
16,
460,
316,
521,
15078,
13356,
18,
588,
67,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
309,
1147,
353,
1770,
30,
309,
460,
316,
365,
6315,
10722,
30,
2824,
770,
16,
1770,
18,
2083,
16,
460,
1324,
1327,
2611,
316,
460,
30,
279,
16,
324,
273,
460,
18,
4939,
2668,
1093,
13,
2824,
770,
16,
1770,
16,
279,
2824,
770,
397,
562,
12,
69,
3631,
453,
15726,
16,
582,
11,
1093,
2824,
770,
397,
562,
12,
69,
13,
397,
404,
16,
1770,
16,
324,
1324,
2824,
770,
16,
1147,
16,
460,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
defaultLocation = Carbon.File.FSRef(defaultLocation) args['defaultLocation'] = aepack.pack(defaultLocation)
|
if not isinstance(defaultLocation, Carbon.File.FSRef): defaultLocation = Carbon.File.FSRef(defaultLocation) args['defaultLocation'] = Carbon.AE.AECreateDesc( Carbon.AppleEvents.typeFSRef, defaultLocation.data)
|
def _process_Nav_args(dftflags, **args): import aepack import Carbon.AE import Carbon.File for k in args.keys(): if args[k] is None: del args[k] # Set some defaults, and modify some arguments if not args.has_key('dialogOptionFlags'): args['dialogOptionFlags'] = dftflags if args.has_key('defaultLocation') and \ not isinstance(args['defaultLocation'], Carbon.AE.AEDesc): defaultLocation = args['defaultLocation'] if isinstance(defaultLocation, (Carbon.File.FSSpec, Carbon.File.FSRef)): args['defaultLocation'] = aepack.pack(defaultLocation) else: defaultLocation = Carbon.File.FSRef(defaultLocation) args['defaultLocation'] = aepack.pack(defaultLocation) if args.has_key('typeList') and not isinstance(args['typeList'], Carbon.Res.ResourceType): typeList = args['typeList'][:] # Workaround for OSX typeless files: if 'TEXT' in typeList and not '\0\0\0\0' in typeList: typeList = typeList + ('\0\0\0\0',) data = 'Pyth' + struct.pack("hh", 0, len(typeList)) for type in typeList: data = data+type args['typeList'] = Carbon.Res.Handle(data) tpwanted = str if args.has_key('wanted'): tpwanted = args['wanted'] del args['wanted'] return args, tpwanted
|
f21d3a4fb4380b9f653ba59e69b112dd27736bbd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/f21d3a4fb4380b9f653ba59e69b112dd27736bbd/EasyDialogs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
12599,
67,
1968,
12,
72,
1222,
7133,
16,
2826,
1968,
4672,
1930,
279,
881,
484,
1930,
13353,
18,
16985,
1930,
13353,
18,
812,
364,
417,
316,
833,
18,
2452,
13332,
309,
833,
63,
79,
65,
353,
599,
30,
1464,
833,
63,
79,
65,
468,
1000,
2690,
3467,
16,
471,
5612,
2690,
1775,
309,
486,
833,
18,
5332,
67,
856,
2668,
12730,
1895,
5094,
11,
4672,
833,
3292,
12730,
1895,
5094,
3546,
273,
302,
1222,
7133,
309,
833,
18,
5332,
67,
856,
2668,
1886,
2735,
6134,
471,
521,
486,
1549,
12,
1968,
3292,
1886,
2735,
17337,
13353,
18,
16985,
18,
37,
2056,
742,
4672,
805,
2735,
273,
833,
3292,
1886,
2735,
3546,
309,
1549,
12,
1886,
2735,
16,
261,
39,
11801,
18,
812,
18,
42,
1260,
705,
16,
13353,
18,
812,
18,
4931,
1957,
3719,
30,
833,
3292,
1886,
2735,
3546,
273,
279,
881,
484,
18,
2920,
12,
1886,
2735,
13,
469,
30,
309,
486,
1549,
12,
1886,
2735,
16,
13353,
18,
812,
18,
4931,
1957,
4672,
805,
2735,
273,
13353,
18,
812,
18,
4931,
1957,
12,
1886,
2735,
13,
833,
3292,
1886,
2735,
3546,
273,
13353,
18,
16985,
18,
16985,
1684,
4217,
12,
13353,
18,
1294,
1802,
3783,
18,
723,
4931,
1957,
16,
805,
2735,
18,
892,
13,
309,
833,
18,
5332,
67,
856,
2668,
723,
682,
6134,
471,
486,
1549,
12,
1968,
3292,
723,
682,
17337,
13353,
18,
607,
18,
15631,
4672,
618,
682,
273,
833,
3292,
723,
682,
3546,
10531,
65,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
12599,
67,
1968,
12,
72,
1222,
7133,
16,
2826,
1968,
4672,
1930,
279,
881,
484,
1930,
13353,
18,
16985,
1930,
13353,
18,
812,
364,
417,
316,
833,
18,
2452,
13332,
309,
833,
63,
79,
65,
353,
599,
30,
1464,
833,
63,
79,
65,
468,
1000,
2690,
3467,
16,
471,
5612,
2690,
1775,
309,
486,
833,
18,
5332,
67,
856,
2668,
12730,
1895,
5094,
11,
4672,
833,
3292,
12730,
1895,
5094,
3546,
273,
302,
1222,
7133,
309,
833,
18,
5332,
67,
856,
2668,
1886,
2735,
6134,
471,
521,
486,
1549,
12,
1968,
3292,
1886,
2735,
17337,
13353,
18,
16985,
18,
37,
2056,
742,
4672,
805,
2735,
273,
833,
3292,
1886,
2735,
3546,
309,
1549,
12,
1886,
2
] |
obj_id2img_pos, step = self.getObj2ImgPos(strain_id_ls, img_pos_range=[0., 0.9])
|
StrainID2PCAPosInfo.x_var = explained_var[1] StrainID2PCAPosInfo.y_var = explained_var[0] obj_id2img_pos, step = self.getObj2ImgPos(strain_id_ls, img_pos_range=[0., snp_id_label_y_offset])
|
def getStrainID2PCAPosInfo(self, subSNPData, pca_range=[0,1]): """ 2008-10-07 """ sys.stderr.write("Getting StrainID2PCAPosInfo ... ") StrainID2PCAPosInfo = PassingData() import pca_module T, P, explained_var = pca_module.PCA_svd(subSNPData.data_matrix, standardize=True) #T[:,1] and T[:,2] are new positions for strain strain_id_ls, strain_id2pca_y = self.sortObjByPCA_value_ls(subSNPData.row_id2row_index, T[:,1], pca_range) strain_id2pca_x = self.getObj2posFromPCA_value_ls(subSNPData.row_id2row_index, T[:,2], pca_range) StrainID2PCAPosInfo.strain_id_ls = strain_id_ls StrainID2PCAPosInfo.strain_id2pca_y = strain_id2pca_y StrainID2PCAPosInfo.strain_id2pca_x = strain_id2pca_x obj_id2img_pos, step = self.getObj2ImgPos(strain_id_ls, img_pos_range=[0., 0.9]) StrainID2PCAPosInfo.strain_id2img_y_pos = obj_id2img_pos StrainID2PCAPosInfo.step = step sys.stderr.write("Done.\n") return StrainID2PCAPosInfo
|
8b01df4ec5dda455ad1b712723f6e5a54471503a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/8b01df4ec5dda455ad1b712723f6e5a54471503a/PlotGroupOfSNPs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
9754,
734,
22,
3513,
37,
1616,
966,
12,
2890,
16,
720,
13653,
52,
751,
16,
293,
5353,
67,
3676,
22850,
20,
16,
21,
65,
4672,
3536,
4044,
28,
17,
2163,
17,
8642,
3536,
2589,
18,
11241,
18,
2626,
2932,
19213,
225,
3978,
530,
734,
22,
3513,
37,
1616,
966,
1372,
9369,
3978,
530,
734,
22,
3513,
37,
1616,
966,
273,
31741,
751,
1435,
1930,
293,
5353,
67,
2978,
399,
16,
453,
16,
19765,
329,
67,
1401,
273,
293,
5353,
67,
2978,
18,
3513,
37,
67,
5751,
72,
12,
1717,
13653,
52,
751,
18,
892,
67,
5667,
16,
4529,
554,
33,
5510,
13,
468,
56,
10531,
16,
21,
65,
471,
399,
10531,
16,
22,
65,
854,
394,
6865,
364,
16853,
16853,
67,
350,
67,
3251,
16,
16853,
67,
350,
22,
2436,
69,
67,
93,
273,
365,
18,
3804,
2675,
858,
3513,
37,
67,
1132,
67,
3251,
12,
1717,
13653,
52,
751,
18,
492,
67,
350,
22,
492,
67,
1615,
16,
399,
10531,
16,
21,
6487,
293,
5353,
67,
3676,
13,
16853,
67,
350,
22,
2436,
69,
67,
92,
273,
365,
18,
588,
2675,
22,
917,
1265,
3513,
37,
67,
1132,
67,
3251,
12,
1717,
13653,
52,
751,
18,
492,
67,
350,
22,
492,
67,
1615,
16,
399,
10531,
16,
22,
6487,
293,
5353,
67,
3676,
13,
3978,
530,
734,
22,
3513,
37,
1616,
966,
18,
27568,
67,
350,
67,
3251,
273,
16853,
67,
350,
67,
3251,
3978,
530,
734,
22,
3513,
37,
1616,
966,
18,
27568,
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,
1322,
9754,
734,
22,
3513,
37,
1616,
966,
12,
2890,
16,
720,
13653,
52,
751,
16,
293,
5353,
67,
3676,
22850,
20,
16,
21,
65,
4672,
3536,
4044,
28,
17,
2163,
17,
8642,
3536,
2589,
18,
11241,
18,
2626,
2932,
19213,
225,
3978,
530,
734,
22,
3513,
37,
1616,
966,
1372,
9369,
3978,
530,
734,
22,
3513,
37,
1616,
966,
273,
31741,
751,
1435,
1930,
293,
5353,
67,
2978,
399,
16,
453,
16,
19765,
329,
67,
1401,
273,
293,
5353,
67,
2978,
18,
3513,
37,
67,
5751,
72,
12,
1717,
13653,
52,
751,
18,
892,
67,
5667,
16,
4529,
554,
33,
5510,
13,
468,
56,
10531,
16,
21,
65,
471,
399,
10531,
16,
22,
65,
854,
394,
6865,
2
] |
fileurl = KURL()
|
fileurl = KUrl()
|
def slotBrowseHomeDirClicked(self): fileurl = KURL() fileurl.setPath(self.homediredit.text()) self.homedirdialog.setCurrentURL(fileurl) if self.homedirdialog.exec_()==QDialog.Accepted: self.homediredit.setText(self.homedirdialog.url().path()) self.homedirectoryislinked = False
|
eb812f938fe74be7d359e6fa9fcc28e3d8c3b025 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1669/eb812f938fe74be7d359e6fa9fcc28e3d8c3b025/user.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4694,
27304,
8684,
1621,
27633,
12,
2890,
4672,
585,
718,
273,
1475,
1489,
1435,
585,
718,
18,
542,
743,
12,
2890,
18,
17125,
329,
2921,
305,
18,
955,
10756,
365,
18,
17125,
329,
6909,
3529,
18,
542,
3935,
1785,
12,
768,
718,
13,
309,
365,
18,
17125,
329,
6909,
3529,
18,
4177,
67,
1435,
631,
53,
6353,
18,
18047,
30,
365,
18,
17125,
329,
2921,
305,
18,
542,
1528,
12,
2890,
18,
17125,
329,
6909,
3529,
18,
718,
7675,
803,
10756,
365,
18,
17125,
329,
1292,
291,
17738,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4694,
27304,
8684,
1621,
27633,
12,
2890,
4672,
585,
718,
273,
1475,
1489,
1435,
585,
718,
18,
542,
743,
12,
2890,
18,
17125,
329,
2921,
305,
18,
955,
10756,
365,
18,
17125,
329,
6909,
3529,
18,
542,
3935,
1785,
12,
768,
718,
13,
309,
365,
18,
17125,
329,
6909,
3529,
18,
4177,
67,
1435,
631,
53,
6353,
18,
18047,
30,
365,
18,
17125,
329,
2921,
305,
18,
542,
1528,
12,
2890,
18,
17125,
329,
6909,
3529,
18,
718,
7675,
803,
10756,
365,
18,
17125,
329,
1292,
291,
17738,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return s
|
return ''.join(s)
|
def _safe_read(self, amt): """Read the number of bytes requested, compensating for partial reads.
|
2084efa9b5d5fb134136ab2e22dad36cad278aaa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2084efa9b5d5fb134136ab2e22dad36cad278aaa/httplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4626,
67,
896,
12,
2890,
16,
25123,
4672,
3536,
1994,
326,
1300,
434,
1731,
3764,
16,
1161,
773,
1776,
364,
4702,
6838,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4626,
67,
896,
12,
2890,
16,
25123,
4672,
3536,
1994,
326,
1300,
434,
1731,
3764,
16,
1161,
773,
1776,
364,
4702,
6838,
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
] |
failure_map.add_regression_window(builder, regression_window)
|
if regression_window: failure_map.add_regression_window(builder, regression_window)
|
def failure_map(self, only_core_builders=True): builder_statuses = self.core_builder_statuses() if only_core_builders else self.builder_statuses() failure_map = FailureMap() revision_to_failing_bots = {} for builder_status in builder_statuses: if builder_status["is_green"]: continue builder = self.builder_with_name(builder_status["name"]) regression_window = builder.find_blameworthy_regression_window(builder_status["build_number"]) failure_map.add_regression_window(builder, regression_window) return failure_map
|
a616433c95afa05fbdc12614493608a979cfcda3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/a616433c95afa05fbdc12614493608a979cfcda3/buildbot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5166,
67,
1458,
12,
2890,
16,
1338,
67,
3644,
67,
3510,
414,
33,
5510,
4672,
2089,
67,
21655,
273,
365,
18,
3644,
67,
9574,
67,
21655,
1435,
309,
1338,
67,
3644,
67,
3510,
414,
469,
365,
18,
9574,
67,
21655,
1435,
5166,
67,
1458,
273,
13436,
863,
1435,
6350,
67,
869,
67,
507,
4973,
67,
4819,
87,
273,
2618,
364,
2089,
67,
2327,
316,
2089,
67,
21655,
30,
309,
2089,
67,
2327,
9614,
291,
67,
11571,
11929,
30,
1324,
2089,
273,
365,
18,
9574,
67,
1918,
67,
529,
12,
9574,
67,
2327,
9614,
529,
6,
5717,
23215,
67,
5668,
273,
2089,
18,
4720,
67,
3083,
339,
91,
7825,
93,
67,
1574,
16345,
67,
5668,
12,
9574,
67,
2327,
9614,
3510,
67,
2696,
6,
5717,
309,
23215,
67,
5668,
30,
5166,
67,
1458,
18,
1289,
67,
1574,
16345,
67,
5668,
12,
9574,
16,
23215,
67,
5668,
13,
327,
5166,
67,
1458,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5166,
67,
1458,
12,
2890,
16,
1338,
67,
3644,
67,
3510,
414,
33,
5510,
4672,
2089,
67,
21655,
273,
365,
18,
3644,
67,
9574,
67,
21655,
1435,
309,
1338,
67,
3644,
67,
3510,
414,
469,
365,
18,
9574,
67,
21655,
1435,
5166,
67,
1458,
273,
13436,
863,
1435,
6350,
67,
869,
67,
507,
4973,
67,
4819,
87,
273,
2618,
364,
2089,
67,
2327,
316,
2089,
67,
21655,
30,
309,
2089,
67,
2327,
9614,
291,
67,
11571,
11929,
30,
1324,
2089,
273,
365,
18,
9574,
67,
1918,
67,
529,
12,
9574,
67,
2327,
9614,
529,
6,
5717,
23215,
67,
5668,
273,
2089,
18,
4720,
67,
3083,
339,
91,
7825,
93,
67,
1574,
16345,
67,
5668,
12,
9574,
67,
2327,
2
] |
return unicode(self.text()).lower() < unicode(other.text()).lower()
|
return sort_key(unicode(self.text())) < sort_key(unicode(other.text()))
|
def __lt__(self, other): return unicode(self.text()).lower() < unicode(other.text()).lower()
|
0ac81d2c14ecbb444a2f2681fe9d408526d93e27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/0ac81d2c14ecbb444a2f2681fe9d408526d93e27/edit_authors_dialog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5618,
972,
12,
2890,
16,
1308,
4672,
327,
5252,
12,
2890,
18,
955,
1435,
2934,
8167,
1435,
411,
5252,
12,
3011,
18,
955,
1435,
2934,
8167,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5618,
972,
12,
2890,
16,
1308,
4672,
327,
5252,
12,
2890,
18,
955,
1435,
2934,
8167,
1435,
411,
5252,
12,
3011,
18,
955,
1435,
2934,
8167,
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
] |
def test_varsized_array(self): array = (c_int * 20)(20, 21, 22, 23, 24, 25, 26, 27, 28, 29) varsize_array = (c_int * 1).from_address(addressof(array)) self.failUnlessEqual(varsize_array[0], 20) self.failUnlessEqual(varsize_array[1], 21) self.failUnlessEqual(varsize_array[2], 22) self.failUnlessEqual(varsize_array[3], 23) self.failUnlessEqual(varsize_array[4], 24) self.failUnlessEqual(varsize_array[5], 25) self.failUnlessEqual(varsize_array[6], 26) self.failUnlessEqual(varsize_array[7], 27) self.failUnlessEqual(varsize_array[8], 28) self.failUnlessEqual(varsize_array[9], 29) self.failUnlessEqual(varsize_array[-1], 20) self.failUnlessRaises(IndexError, lambda: varsize_array[-2]) self.failUnlessRaises(MemoryError, lambda: varsize_array[:]) varsize_array[0] = 100 varsize_array[1] = 101 varsize_array[2] = 102 varsize_array[3] = 103 varsize_array[4] = 104 varsize_array[5] = 105 varsize_array[6] = 106 varsize_array[7] = 107 varsize_array[8] = 108 varsize_array[9] = 109 for i in range(10): self.failUnlessEqual(varsize_array[i], i + 100) self.failUnlessEqual(array[i], i + 100) self.failUnlessEqual(varsize_array[0:10], range(100, 110)) self.failUnlessEqual(varsize_array[1:9], range(101, 109)) self.failUnlessEqual(varsize_array[1:-1], []) varsize_array[0:10] = range(1000, 1010) self.failUnlessEqual(varsize_array[0:10], range(1000, 1010)) varsize_array[1:9] = range(1001, 1009) self.failUnlessEqual(varsize_array[1:9], range(1001, 1009)) def test_vararray_is_sane(self): array = (c_int * 15)(20, 21, 22, 23, 24, 25, 26, 27, 28, 29) varsize_array = (c_int * 1).from_address(addressof(array)) varsize_array[:] = [1, 2, 3, 4, 5] self.failUnlessEqual(array[:], [1, 2, 3, 4, 5, 25, 26, 27, 28, 29, 0, 0, 0, 0, 0]) self.failUnlessEqual(varsize_array[0:10], [1, 2, 3, 4, 5, 25, 26, 27, 28, 29]) array[:5] = [10, 11, 12, 13, 14] self.failUnlessEqual(array[:], [10, 11, 12, 13, 14, 25, 26, 27, 28, 29, 0, 0, 0, 0, 0]) self.failUnlessEqual(varsize_array[0:10], [10, 11, 12, 13, 14, 25, 26, 27, 28, 29])
|
def test_varsized_array(self): array = (c_int * 20)(20, 21, 22, 23, 24, 25, 26, 27, 28, 29)
|
e1bb523633a9b6e3908d384a0d2bb14871e8e428 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e1bb523633a9b6e3908d384a0d2bb14871e8e428/test_varsize_struct.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4699,
1235,
67,
1126,
12,
2890,
4672,
526,
273,
261,
71,
67,
474,
380,
4200,
21433,
3462,
16,
9035,
16,
11201,
16,
10213,
16,
4248,
16,
6969,
16,
10659,
16,
12732,
16,
9131,
16,
12899,
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,
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
261,
71,
67,
474,
380,
4200,
21433,
3462,
16,
9035,
16,
11201,
16,
10213,
16,
4248,
16,
6969,
16,
10659,
16,
12732,
16,
9131,
16,
12899,
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
] |
|
attr = t.get_all_attributes(butname=True)
|
attr = t.get_all_attributes(butname = True, withparent = True)
|
def save(self): doc, xmlroot = cleanxml.emptydoc(XMLROOT) tags = self.get_all_tags() already_saved = [] #We avoid saving the same tag twice #we don't save tags with no attributes #It saves space and allow the saved list growth to be controlled for t in tags: attr = t.get_all_attributes(butname=True) if "special" in attr: continue if len(attr) > 0: tagname = t.get_name() if not tagname in already_saved: t_xml = doc.createElement("tag") t_xml.setAttribute("name", tagname) already_saved.append(tagname) for a in attr: value = t.get_attribute(a) if value: t_xml.setAttribute(a, value) xmlroot.appendChild(t_xml) cleanxml.savexml(self.filename, doc)
|
e8ec3436167c252d14b822975f4afc86cc8232c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/e8ec3436167c252d14b822975f4afc86cc8232c0/tagstore.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
997,
16,
2025,
3085,
273,
2721,
2902,
18,
5531,
2434,
12,
4201,
9185,
13,
2342,
273,
365,
18,
588,
67,
454,
67,
4156,
1435,
1818,
67,
14077,
273,
5378,
468,
3218,
4543,
12392,
326,
1967,
1047,
13605,
468,
1814,
2727,
1404,
1923,
2342,
598,
1158,
1677,
468,
7193,
14649,
3476,
471,
1699,
326,
5198,
666,
13334,
451,
358,
506,
25934,
364,
268,
316,
2342,
30,
1604,
273,
268,
18,
588,
67,
454,
67,
4350,
12,
12885,
529,
273,
1053,
16,
598,
2938,
273,
1053,
13,
309,
315,
9371,
6,
316,
1604,
30,
1324,
309,
562,
12,
1747,
13,
405,
374,
30,
25586,
273,
268,
18,
588,
67,
529,
1435,
309,
486,
25586,
316,
1818,
67,
14077,
30,
268,
67,
2902,
273,
997,
18,
2640,
1046,
2932,
2692,
7923,
268,
67,
2902,
18,
542,
1499,
2932,
529,
3113,
25586,
13,
1818,
67,
14077,
18,
6923,
12,
2692,
529,
13,
364,
279,
316,
1604,
30,
460,
273,
268,
18,
588,
67,
4589,
12,
69,
13,
309,
460,
30,
268,
67,
2902,
18,
542,
1499,
12,
69,
16,
460,
13,
2025,
3085,
18,
6923,
1763,
12,
88,
67,
2902,
13,
2721,
2902,
18,
87,
842,
338,
781,
12,
2890,
18,
3459,
16,
997,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
997,
16,
2025,
3085,
273,
2721,
2902,
18,
5531,
2434,
12,
4201,
9185,
13,
2342,
273,
365,
18,
588,
67,
454,
67,
4156,
1435,
1818,
67,
14077,
273,
5378,
468,
3218,
4543,
12392,
326,
1967,
1047,
13605,
468,
1814,
2727,
1404,
1923,
2342,
598,
1158,
1677,
468,
7193,
14649,
3476,
471,
1699,
326,
5198,
666,
13334,
451,
358,
506,
25934,
364,
268,
316,
2342,
30,
1604,
273,
268,
18,
588,
67,
454,
67,
4350,
12,
12885,
529,
273,
1053,
16,
598,
2938,
273,
1053,
13,
309,
315,
9371,
6,
316,
1604,
30,
1324,
309,
562,
12,
1747,
13,
405,
374,
30,
25586,
273,
268,
18,
588,
67,
529,
1435,
309,
486,
25586,
316,
1818,
2
] |
')'
|
'))'
|
def products_by_location(self, cursor, user, location_ids, product_ids=None, with_childs=False, skip_zero=True, context=None): """ Compute for each location and product the stock quantity in the default uom of the product.
|
62dd82a73f81c502cd51a77e9014499bded294a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/62dd82a73f81c502cd51a77e9014499bded294a6/product.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10406,
67,
1637,
67,
3562,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
2232,
16,
3017,
67,
2232,
33,
7036,
16,
598,
67,
3624,
87,
33,
8381,
16,
2488,
67,
7124,
33,
5510,
16,
819,
33,
7036,
4672,
3536,
8155,
364,
1517,
2117,
471,
3017,
326,
12480,
10457,
316,
326,
805,
582,
362,
434,
326,
3017,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10406,
67,
1637,
67,
3562,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
2232,
16,
3017,
67,
2232,
33,
7036,
16,
598,
67,
3624,
87,
33,
8381,
16,
2488,
67,
7124,
33,
5510,
16,
819,
33,
7036,
4672,
3536,
8155,
364,
1517,
2117,
471,
3017,
326,
12480,
10457,
316,
326,
805,
582,
362,
434,
326,
3017,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
check("$1")
|
def check(s): self.assertRaises(InterpolationSyntaxError, interpolate, s, d)
|
12b8ea72fd000ccb0df25fedfdf924ca30888d8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9785/12b8ea72fd000ccb0df25fedfdf924ca30888d8a/testInterp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
87,
4672,
365,
18,
11231,
12649,
6141,
12,
31516,
22510,
16,
13156,
16,
272,
16,
302,
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
] |
[
1,
1,
1,
1,
1,
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,
866,
12,
87,
4672,
365,
18,
11231,
12649,
6141,
12,
31516,
22510,
16,
13156,
16,
272,
16,
302,
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
] |
|
base = 'https://kovid@svn.kovidgoyal.net/code/calibre' tag = base + '/tags/'+__version__ client = pysvn.Client() client.exception_style = 1 try: client.ls(tag) except pysvn.ClientError, err: if err.args[1][0][1] == 160013: def get_credentials(realm, username, may_save): return (True, 'kovid', input('Enter password for kovid: '), True) client.callback_get_login = get_credentials def get_log_message(): return True, 'Tagging %s for release'%__version__ client.callback_get_log_message = get_log_message client.copy(base+'/trunk', tag)
|
check_call('bzr tag '+__version__)
|
def tag_release(): print 'Tagging release' base = 'https://kovid@svn.kovidgoyal.net/code/calibre' tag = base + '/tags/'+__version__ client = pysvn.Client() client.exception_style = 1 try: client.ls(tag) except pysvn.ClientError, err: if err.args[1][0][1] == 160013: # Tag does not exist def get_credentials(realm, username, may_save): return (True, 'kovid', input('Enter password for kovid: '), True) client.callback_get_login = get_credentials def get_log_message(): return True, 'Tagging %s for release'%__version__ client.callback_get_log_message = get_log_message client.copy(base+'/trunk', tag)
|
ec84002c1370c51697c04c0965338194f1cb50fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/ec84002c1370c51697c04c0965338194f1cb50fd/upload.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
67,
9340,
13332,
1172,
296,
1805,
1998,
3992,
11,
1026,
273,
296,
4528,
2207,
28179,
1246,
36,
31505,
18,
28179,
1246,
3240,
93,
287,
18,
2758,
19,
710,
19,
771,
495,
266,
11,
1047,
273,
1026,
397,
1173,
4156,
2473,
15,
972,
1589,
972,
1004,
273,
21027,
25031,
18,
1227,
1435,
1004,
18,
4064,
67,
4060,
273,
404,
775,
30,
1004,
18,
3251,
12,
2692,
13,
1335,
21027,
25031,
18,
1227,
668,
16,
393,
30,
309,
393,
18,
1968,
63,
21,
6362,
20,
6362,
21,
65,
422,
2872,
713,
3437,
30,
468,
4034,
1552,
486,
1005,
1652,
336,
67,
11687,
12,
24056,
16,
2718,
16,
2026,
67,
5688,
4672,
327,
261,
5510,
16,
296,
28179,
1246,
2187,
810,
2668,
10237,
2201,
364,
417,
83,
1246,
30,
296,
3631,
1053,
13,
1004,
18,
3394,
67,
588,
67,
5819,
273,
336,
67,
11687,
1652,
336,
67,
1330,
67,
2150,
13332,
327,
1053,
16,
296,
1805,
1998,
738,
87,
364,
3992,
11,
9,
972,
1589,
972,
1004,
18,
3394,
67,
588,
67,
1330,
67,
2150,
273,
336,
67,
1330,
67,
2150,
1004,
18,
3530,
12,
1969,
6797,
19,
26133,
2187,
1047,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
67,
9340,
13332,
1172,
296,
1805,
1998,
3992,
11,
1026,
273,
296,
4528,
2207,
28179,
1246,
36,
31505,
18,
28179,
1246,
3240,
93,
287,
18,
2758,
19,
710,
19,
771,
495,
266,
11,
1047,
273,
1026,
397,
1173,
4156,
2473,
15,
972,
1589,
972,
1004,
273,
21027,
25031,
18,
1227,
1435,
1004,
18,
4064,
67,
4060,
273,
404,
775,
30,
1004,
18,
3251,
12,
2692,
13,
1335,
21027,
25031,
18,
1227,
668,
16,
393,
30,
309,
393,
18,
1968,
63,
21,
6362,
20,
6362,
21,
65,
422,
2872,
713,
3437,
30,
468,
4034,
1552,
486,
1005,
1652,
336,
67,
11687,
12,
24056,
16,
2718,
16,
2026,
67,
5688,
4672,
327,
261,
5510,
16,
296,
28179,
1246,
2187,
2
] |
def __init__(self, cache, coireVetoMissedCache, opts, deltaTime=20):
|
def __init__(self, cache, coireVetoMissedCache, opts):
|
def __init__(self, cache, coireVetoMissedCache, opts, deltaTime=20): """ Initialize this class and sets up all the cache files. @param cache: the cache of all files @param coireVetoMissedCache: the cache that contains the COIRE-files of the missed injections @param opts: The 'opts' from the main code @param deltaTime: The time window that is used in the time-series plots (in seconds) """ # must do this within here for unknown reason; error instead from glue.ligolw import table rcParams.update({'text.usetex': False})
|
115859e1e4ac66dbab60f88a183f2a4596551391 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/115859e1e4ac66dbab60f88a183f2a4596551391/followup_missed.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1247,
16,
1825,
577,
58,
11453,
11729,
730,
1649,
16,
1500,
4672,
3536,
9190,
333,
667,
471,
1678,
731,
777,
326,
1247,
1390,
18,
632,
891,
1247,
30,
326,
1247,
434,
777,
1390,
632,
891,
1825,
577,
58,
11453,
11729,
730,
1649,
30,
326,
1247,
716,
1914,
326,
7910,
45,
862,
17,
2354,
434,
326,
25143,
10380,
87,
632,
891,
1500,
30,
1021,
296,
4952,
11,
628,
326,
2774,
981,
632,
891,
3622,
950,
30,
1021,
813,
2742,
716,
353,
1399,
316,
326,
813,
17,
10222,
17931,
261,
267,
3974,
13,
3536,
468,
1297,
741,
333,
3470,
2674,
364,
5917,
3971,
31,
555,
3560,
628,
17960,
18,
80,
360,
355,
91,
1930,
1014,
27881,
18,
2725,
12590,
11,
955,
18,
407,
278,
338,
4278,
1083,
6792,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1247,
16,
1825,
577,
58,
11453,
11729,
730,
1649,
16,
1500,
4672,
3536,
9190,
333,
667,
471,
1678,
731,
777,
326,
1247,
1390,
18,
632,
891,
1247,
30,
326,
1247,
434,
777,
1390,
632,
891,
1825,
577,
58,
11453,
11729,
730,
1649,
30,
326,
1247,
716,
1914,
326,
7910,
45,
862,
17,
2354,
434,
326,
25143,
10380,
87,
632,
891,
1500,
30,
1021,
296,
4952,
11,
628,
326,
2774,
981,
632,
891,
3622,
950,
30,
1021,
813,
2742,
716,
353,
1399,
316,
326,
813,
17,
10222,
17931,
261,
267,
3974,
13,
3536,
468,
1297,
741,
333,
3470,
2674,
364,
5917,
3971,
31,
555,
3560,
628,
17960,
18,
80,
360,
355,
91,
1930,
2
] |
line()
|
line("array-open-1")
|
def compileNode(node, enableDebug=False): global indent global pretty if node.getChild("commentsBefore", False) != None: line() for comment in node.getChild("commentsBefore").children: # Additional new lines before big comment if comment.get("detail", False) == "multi": line() pretty += comment.get("text") # New line after singleline comment without line-ending if not comment.get("text").endswith("\n"): line() # Additional new lines after big comment elif comment.get("detail", False) == "multi": line() ################################################################## # Opening... ################################################################## if node.type == "map": if node.hasChildren(): line() pretty += "{" if node.hasChildren(): plus() line() elif node.type == "array": if node.hasChildren(): line() pretty += "[" if node.hasChildren(): plus() line() elif node.type == "block": line() pretty += "{" plus() line() elif node.type == "params": pretty += "(" elif node.type == "group": pretty += "(" elif node.type == "case": minus() line() pretty += "case " elif node.type == "catch": pretty += "catch" elif node.type == "finally": pretty += "finally" elif node.type == "delete": pretty += "delete " elif node.type == "break": pretty += "break" if node.get("label", False): pretty += " " + node.get("label", False) elif node.type == "continue": pretty += "continue" if node.get("label", False): pretty += " " + node.get("label", False) elif node.type == "elseStatement": line() pretty += "else" # This is a elseStatement without a block around (a set of {}) if not node.hasChild("block"): pretty += " " elif node.type == "switch" and node.get("switchType") == "case": pretty += "switch" elif node.type == "switch" and node.get("switchType") == "catch": pretty += "try" elif node.type == "throw": pretty += "throw " elif node.type == "instantiation": pretty += "new " elif node.type == "return": pretty += "return" if node.hasChildren(): pretty += " " elif node.type == "definitionList": pretty += "var " elif node.type == "default": minus() line() pretty += "default:" plus() line() elif node.type == "keyvalue": keyString = node.get("key") keyQuote = node.get("quotation", False) if keyQuote != None: # print "USE QUOTATION" if keyQuote == "doublequotes": keyString = '"' + keyString + '"' else: keyString = "'" + keyString + "'" elif keyString in config.JSPROTECTED or not KEY.match(keyString): print "ATTENTION: Auto protect key: %s" % keyString keyString = "\"" + keyString + "\"" pretty += keyString + " : " elif node.type == "expression": if node.parent.type == "loop": loopType = node.parent.get("loopType") if loopType == "DO": pretty += "while" # open expression block of IF/WHILE/DO-WHILE/FOR statements pretty += "(" elif node.parent.type == "catch": # open expression block of CATCH statement pretty += "(" elif node.parent.type == "switch" and node.parent.get("switchType") == "case": # open expression block of SWITCH statement pretty += "(" elif node.type == "loop": loopType = node.get("loopType") if loopType == "IF": pretty += "if" elif loopType == "WHILE": pretty += "while" elif loopType == "FOR": pretty += "for" elif loopType == "DO": pretty += "do" elif loopType == "WITH": pretty += "with" else: print "UNKNOWN LOOP TYPE: %s" % loopType elif node.type == "function": functionDeclHasParams = False pretty += "function" functionName = node.get("name", False) if functionName != None: pretty += " %s" % functionName elif node.type == "identifier": name = node.get("name", False) if name != None: pretty += name elif node.type == "call": callHasParams = False elif node.type == "definition": if node.parent.type != "definitionList": pretty += "var " pretty += node.get("identifier") elif node.type == "constant": if node.get("constantType") == "string": if node.get("detail") == "singlequotes": pretty += "'" else: pretty += '"' pretty += node.get("value") if node.get("detail") == "singlequotes": pretty += "'" else: pretty += '"' else: pretty += node.get("value") elif node.type == "third": if node.parent.type == "operation": if node.parent.get("operator") == "HOOK": pretty += " : " else: print "Unknown third argument... Not a hook" elif node.type == "labelTerminator": pretty += ":" ################################################################## # Children content ################################################################## if node.hasChildren(): childPosition = 1 childrenNumber = 0 # We need to ignore comment blocks # childrenNumber = len(node.children) for child in node.children: if child.type == "comment" or child.type == "commentsBefore": pass else: childrenNumber += 1 previousType = None for child in node.children: if child.type == "comment" or child.type == "commentsBefore": continue # Hints for close of node later if node.type == "call" and child.type == "params": callHasParams = True elif node.type == "function": if child.type == "params": functionDeclHasParams = True elif child.type == "body" and not functionDeclHasParams: # has no params before body, fix it here, and add body afterwards pretty += "()" functionDeclHasParams = True elif node.type == "definition" and child.type == "assignment": oper = child.get("operator", False) pretty += " " if oper != None: pretty += getTokenSource(oper) else: pretty += "=" pretty += " " elif node.type == "accessor" and child.type == "key": pretty += "[" elif node.type == "accessor" and child.type == "right": pretty += "." elif node.type == "loop" and node.get("loopType") == "FOR": if child.type == "first": pretty += "(" elif child.type == "statement": pretty += ")" else: if child.type == "second" and node.getChild("first", False) == None: pretty += "(" if child.type == "third" and node.getChild("first", False) == None and node.getChild("second", False) == None: pretty += "(" if not pretty.endswith(";") and not pretty.endswith("\n"): pretty += ";" elif node.type == "operation" and node.get("left", False) == "true": op = node.get("operator") if op == "TYPEOF": pretty += "typeof " elif op == None: print "BAD OPERATOR [A]: %s" % op else: pretty += getTokenSource(op) # Add child compileNode(child, enableDebug) if node.type == "operation" and child.type == "first" and node.get("left", False) != "true": op = node.get("operator") if op == "IN": pretty += " in " elif op == "INSTANCEOF": pretty += " instanceof " elif op == None: print "BAD OPERATOR [B]: %s" % op else: pretty += " " pretty += getTokenSource(op) pretty += " " elif node.type == "assignment" and child.type == "left": oper = node.get("operator", False) pretty += " " if oper != None: pretty += getTokenSource(oper) else: pretty += "=" pretty += " " elif node.type == "accessor" and child.type == "key": pretty += "]" # Separate children in parent list if childPosition < childrenNumber: if node.type == "variable": pretty += "." elif node.type == "map": pretty += ", " line() elif node.type == "array": pretty += ", " line() elif node.type == "definitionList": pretty += ", " elif node.type == "params": pretty += ", " elif node.type == "statementList": pretty += ", " separators = [ "block", "assignment", "call", "operation", "definition", "definitionList", "return", "break", "continue", "delete", "accessor", "instantiation", "throw", "variable", "function" ] not_after = [ "case", "default" ] not_in = [ "definitionList", "statementList", "params", "variable", "array" ] if node.type in [ "block", "file", "switch" ]: if not previousType in not_after: if child.type in separators: # pretty += "[[SEMI]]" semicolon() # not last child if childPosition == childrenNumber and node.type in [ "block", "switch", "file" ]: pass else: # pretty += "[[LINE]]" line() # Next... childPosition += 1 previousType = child.type ################################################################## # Closing... ################################################################## if node.type == "map": if node.hasChildren(): minus() line() pretty += "}" elif node.type == "array": if node.hasChildren(): minus() line() pretty += "]" elif node.type == "block": minus() line() pretty += "}" # Not it: # Function assignment if node.parent.type == "body" and node.parent.parent.type == "function" and node.parent.parent.parent.type == "right": pass else: line() elif node.type == "params": pretty += ")" elif node.type == "switch" and node.get("switchType") == "case": minus() minus() line() pretty += "}" # additional new line line() line() elif node.type == "group": pretty += ")" elif node.type == "case": pretty += ":" plus() line() elif node.type == "call" and not callHasParams: pretty += "()" elif node.type == "function" and not functionDeclHasParams: pretty += "()" elif node.type == "expression": if node.parent.type == "loop": pretty += ")" elif node.parent.type == "catch": pretty += ")" elif node.parent.type == "switch" and node.parent.get("switchType") == "case": pretty += ")" line() pretty += "{" plus() plus() elif node.type == "case": plus() line()
|
9899d5c45563dd4f9057d173402244e0cf855c51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/9899d5c45563dd4f9057d173402244e0cf855c51/prettyprint.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
907,
12,
2159,
16,
4237,
2829,
33,
8381,
4672,
225,
2552,
3504,
2552,
7517,
282,
309,
756,
18,
588,
1763,
2932,
9231,
4649,
3113,
1083,
13,
480,
599,
30,
980,
2932,
1126,
17,
3190,
17,
21,
7923,
225,
364,
2879,
316,
756,
18,
588,
1763,
2932,
9231,
4649,
20387,
5906,
30,
468,
15119,
394,
2362,
1865,
5446,
2879,
309,
2879,
18,
588,
2932,
8992,
3113,
1083,
13,
422,
315,
7027,
6877,
980,
2932,
1126,
17,
3190,
17,
21,
7923,
225,
7517,
1011,
2879,
18,
588,
2932,
955,
7923,
225,
468,
1166,
980,
1839,
4864,
80,
3027,
2879,
2887,
980,
17,
2846,
309,
486,
2879,
18,
588,
2932,
955,
20387,
5839,
1918,
31458,
82,
6,
4672,
980,
2932,
1126,
17,
3190,
17,
21,
7923,
225,
468,
15119,
394,
2362,
1839,
5446,
2879,
1327,
2879,
18,
588,
2932,
8992,
3113,
1083,
13,
422,
315,
7027,
6877,
980,
2932,
1126,
17,
3190,
17,
21,
7923,
1377,
28256,
7,
468,
3502,
310,
2777,
28256,
7,
225,
309,
756,
18,
723,
422,
315,
1458,
6877,
309,
756,
18,
5332,
4212,
13332,
980,
2932,
1126,
17,
3190,
17,
21,
7923,
225,
7517,
1011,
18173,
225,
309,
756,
18,
5332,
4212,
13332,
8737,
1435,
980,
2932,
1126,
17,
3190,
17,
21,
7923,
225,
1327,
756,
18,
723,
422,
315,
1126,
6877,
309,
756,
18,
5332,
4212,
13332,
980,
2932,
1126,
17,
3190,
17,
21,
7923,
225,
7517,
1011,
13626,
225,
309,
756,
18,
5332,
4212,
13332,
8737,
1435,
980,
2932,
1126,
17,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
907,
12,
2159,
16,
4237,
2829,
33,
8381,
4672,
225,
2552,
3504,
2552,
7517,
282,
309,
756,
18,
588,
1763,
2932,
9231,
4649,
3113,
1083,
13,
480,
599,
30,
980,
2932,
1126,
17,
3190,
17,
21,
7923,
225,
364,
2879,
316,
756,
18,
588,
1763,
2932,
9231,
4649,
20387,
5906,
30,
468,
15119,
394,
2362,
1865,
5446,
2879,
309,
2879,
18,
588,
2932,
8992,
3113,
1083,
13,
422,
315,
7027,
6877,
980,
2932,
1126,
17,
3190,
17,
21,
7923,
225,
7517,
1011,
2879,
18,
588,
2932,
955,
7923,
225,
468,
1166,
980,
1839,
4864,
80,
3027,
2879,
2887,
980,
17,
2846,
309,
486,
2879,
18,
588,
2932,
955,
20387,
5839,
1918,
31458,
82,
6,
4672,
980,
2932,
2
] |
class ByteArraySubclass(bytearray): pass class ByteArraySubclassTest(unittest.TestCase):
|
class SubclassTest(unittest.TestCase):
|
def test_lower(self): pass
|
41f58a70ac168c3f468d2dacb945dd88f1c89350 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/41f58a70ac168c3f468d2dacb945dd88f1c89350/test_bytes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8167,
12,
2890,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8167,
12,
2890,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
file_.schema = PSCFileSchema file_.setDownloadableFile(File(filename, filename, StringIO(data)))
|
file_.schema = PSCFileSchema if filename == '' and data == '': logging.info('file empty for %s' % file_) else: if filename is None: filename = file_.getId() file_.setDownloadableFile(File(filename, filename, StringIO(data)))
|
def _discovering_dist_ids(project): # for each file in the project we # extract the distutils name project_path = '/'.join(project.getPhysicalPath()) files = cat(**{'portal_type': ['PSCFile', 'PSCFileLink'], 'path': project_path}) ids = []
|
f273d3a72c298a8d2aac898efd04f1828f64062f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12516/f273d3a72c298a8d2aac898efd04f1828f64062f/setuphandlers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2251,
3165,
310,
67,
4413,
67,
2232,
12,
4406,
4672,
468,
364,
1517,
585,
316,
326,
1984,
732,
468,
2608,
326,
2411,
5471,
508,
1984,
67,
803,
273,
2023,
18,
5701,
12,
4406,
18,
588,
18136,
743,
10756,
1390,
273,
6573,
12,
636,
27828,
24386,
67,
723,
4278,
10228,
52,
2312,
812,
2187,
296,
52,
2312,
812,
2098,
17337,
296,
803,
4278,
1984,
67,
803,
6792,
3258,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2251,
3165,
310,
67,
4413,
67,
2232,
12,
4406,
4672,
468,
364,
1517,
585,
316,
326,
1984,
732,
468,
2608,
326,
2411,
5471,
508,
1984,
67,
803,
273,
2023,
18,
5701,
12,
4406,
18,
588,
18136,
743,
10756,
1390,
273,
6573,
12,
636,
27828,
24386,
67,
723,
4278,
10228,
52,
2312,
812,
2187,
296,
52,
2312,
812,
2098,
17337,
296,
803,
4278,
1984,
67,
803,
6792,
3258,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(r'((,)(\s*)(' + _id + '))+', bygroups(Punctuation, Whitespace, \
|
(r'(?:(,)(\s*)(' + _id + '))+', bygroups(Punctuation, Whitespace, \
|
def __init__(self, **options): super(RagelJavaLexer, self).__init__(JavaLexer, RagelEmbeddedLexer, **options)
|
91ed42121659525c0110ea34e742958d4045be3c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6148/91ed42121659525c0110ea34e742958d4045be3c/parsers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
2116,
4672,
2240,
12,
54,
346,
292,
5852,
13356,
16,
365,
2934,
972,
2738,
972,
12,
5852,
13356,
16,
534,
346,
292,
14980,
13356,
16,
2826,
2116,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2826,
2116,
4672,
2240,
12,
54,
346,
292,
5852,
13356,
16,
365,
2934,
972,
2738,
972,
12,
5852,
13356,
16,
534,
346,
292,
14980,
13356,
16,
2826,
2116,
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
] |
print query
|
def test_query(query): print query assert not parser.parse_query(query).xapian_term(self.request, connection).empty()
|
746edb0feccdfb2a232c5c4a587db71107da6345 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/746edb0feccdfb2a232c5c4a587db71107da6345/test_search.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2271,
12,
2271,
4672,
1815,
486,
2082,
18,
2670,
67,
2271,
12,
2271,
2934,
92,
2425,
304,
67,
6408,
12,
2890,
18,
2293,
16,
1459,
2934,
5531,
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,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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
] |
|
self.__interest_id_assign += 1 self.__interests[self.__interest_id_assign] = description contextId = self.__interest_id_assign self.__sendAddInterest(contextId, parentId, zoneId) self.printInterests()
|
self._interestIdAssign += 1 self._interests[self._interestIdAssign] = description contextId = self._interestIdAssign self._sendAddInterest(contextId, parentId, zoneId) assert self.printInterests()
|
def addInterest(self, parentId, zoneId, description): """ Part of the new otp-server code. """ self.__interest_id_assign += 1 self.__interests[self.__interest_id_assign] = description contextId = self.__interest_id_assign self.__sendAddInterest(contextId, parentId, zoneId) self.printInterests() return contextId
|
6fa2adfa8af8fae19707bd7f23de8726e4edc65d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/6fa2adfa8af8fae19707bd7f23de8726e4edc65d/ClientRepository.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
29281,
12,
2890,
16,
11582,
16,
29939,
16,
2477,
4672,
3536,
6393,
434,
326,
394,
28625,
17,
3567,
981,
18,
3536,
365,
6315,
2761,
395,
548,
4910,
1011,
404,
365,
6315,
2761,
25563,
63,
2890,
6315,
2761,
395,
548,
4910,
65,
273,
2477,
819,
548,
273,
365,
6315,
2761,
395,
548,
4910,
365,
6315,
4661,
986,
29281,
12,
2472,
548,
16,
11582,
16,
29939,
13,
1815,
365,
18,
1188,
2465,
25563,
1435,
327,
819,
548,
225,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
29281,
12,
2890,
16,
11582,
16,
29939,
16,
2477,
4672,
3536,
6393,
434,
326,
394,
28625,
17,
3567,
981,
18,
3536,
365,
6315,
2761,
395,
548,
4910,
1011,
404,
365,
6315,
2761,
25563,
63,
2890,
6315,
2761,
395,
548,
4910,
65,
273,
2477,
819,
548,
273,
365,
6315,
2761,
395,
548,
4910,
365,
6315,
4661,
986,
29281,
12,
2472,
548,
16,
11582,
16,
29939,
13,
1815,
365,
18,
1188,
2465,
25563,
1435,
327,
819,
548,
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
] |
self.get_menustack().pushmenu(Menu(self.name, items, type='tv program menu'))
|
menu = Menu(self.name, items, type='tv program menu') self.get_menustack().pushmenu(menu) class CategoryItem(Item): """ Item for a TV category """ def __init__(self, parent, name): Item.__init__(self, parent) self.name = name self.parent = parent def actions(self): return [ Action(_('Browse list'), self.browse)] @kaa.notifier.yield_execution() def browse(self): """ Find all genres that are in this category """ items = [] if self.name==ALL: query_data = kaa.epg.search(attrs=['genre'], distinct=True) else: query_data = kaa.epg.search(attrs=['genre'], category=self.name, distinct=True) yield query_data query_data = query_data() query_data.sort() if self.name == ALL: for genre, in query_data: if genre not in EXCLUDE_GENRES: items.append(GenreItem(self.parent, genre)) else: for genre, in query_data: if genre not in EXCLUDE_GENRES: items.append(GenreItem(self.parent, genre, self.name)) menu = Menu(self.name, items, type='tv listing') self.get_menustack().pushmenu(menu)
|
def browse(self): """ Find all the programs with this genre """ items = [] # query epg in background query_data = kaa.epg.search(genre=self.name) yield query_data # fetch epg data from InProgress object query_data = query_data() for prg in query_data: items.append(ProgramItem(prg, self)) self.get_menustack().pushmenu(Menu(self.name, items, type='tv program menu'))
|
9da06e00b253d9d57b6bbb2a4bab6176fa69c325 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11399/9da06e00b253d9d57b6bbb2a4bab6176fa69c325/genre.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
12,
2890,
4672,
3536,
4163,
777,
326,
25038,
598,
333,
3157,
266,
3536,
1516,
273,
5378,
468,
843,
31682,
316,
5412,
843,
67,
892,
273,
417,
7598,
18,
881,
75,
18,
3072,
12,
4507,
266,
33,
2890,
18,
529,
13,
2824,
843,
67,
892,
468,
2158,
31682,
501,
628,
657,
5491,
733,
843,
67,
892,
273,
843,
67,
892,
1435,
364,
846,
75,
316,
843,
67,
892,
30,
1516,
18,
6923,
12,
9459,
1180,
12,
683,
75,
16,
365,
3719,
365,
18,
588,
67,
27617,
641,
484,
7675,
6206,
5414,
12,
4599,
12,
2890,
18,
529,
16,
1516,
16,
618,
2218,
24161,
5402,
3824,
26112,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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1516,
273,
5378,
468,
843,
31682,
316,
5412,
843,
67,
892,
273,
417,
7598,
18,
881,
75,
18,
3072,
12,
4507,
266,
33,
2890,
18,
529,
13,
2824,
843,
67,
892,
468,
2158,
31682,
501,
628,
657,
5491,
733,
843,
67,
892,
273,
843,
67,
892,
1435,
364,
846,
75,
316,
843,
67,
892,
30,
1516,
18,
6923,
12,
9459,
1180,
12,
683,
75,
16,
365,
3719,
365,
18,
588,
67,
27617,
641,
484,
7675,
6206,
5414,
12,
4599,
12,
2890,
18,
529,
16,
1516,
16,
618,
2218,
24161,
5402,
3824,
26112,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rc_entry = [r'''\Format pdf pdf "PDF (ps2pdf)" P "%%" "" "document" \Format pdf2 pdf "PDF (pdflatex)" F "%%" "" "document" \Format pdf3 pdf "PDF (dvipdfm)" m "%%" "" "document"'''])
|
rc_entry = [r'''\Format pdf pdf "PDF (ps2pdf)" P "%%" "" "document,vector" \Format pdf2 pdf "PDF (pdflatex)" F "%%" "" "document,vector" \Format pdf3 pdf "PDF (dvipdfm)" m "%%" "" "document,vector"'''])
|
def checkFormatEntries(): ''' Check all formats (\Format entries) ''' checkViewer('a Tgif viewer and editor', ['tgif'], rc_entry = [r'\Format tgif obj Tgif "" "%%" "%%" ""']) # checkViewer('a FIG viewer and editor', ['xfig'], rc_entry = [r'\Format fig fig FIG "" "%%" "%%" ""']) # checkViewer('a Grace viewer and editor', ['xmgrace'], rc_entry = [r'\Format agr agr Grace "" "%%" "%%" ""']) # checkViewer('a FEN viewer and editor', ['xboard -lpf $$i -mode EditPosition'], rc_entry = [r'\Format fen fen FEN "" "%%" "%%" ""']) # path, iv = checkViewer('a raster image viewer', ['xv', 'kview', 'gimp']) path, ie = checkViewer('a raster image editor', ['gimp']) addToRC(r'''\Format bmp bmp BMP "" "%s" "%s" ""
|
2c72e0ecaaf865dbd297652b27bf151011e987c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/2c72e0ecaaf865dbd297652b27bf151011e987c6/configure.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1630,
5400,
13332,
9163,
2073,
777,
6449,
17938,
1630,
3222,
13,
9163,
866,
18415,
2668,
69,
399,
13905,
14157,
471,
4858,
2187,
10228,
88,
13905,
17337,
4519,
67,
4099,
273,
306,
86,
8314,
1630,
268,
13905,
4202,
1081,
377,
399,
13905,
10402,
1408,
2213,
16407,
202,
6,
11438,
6,
202,
3660,
19486,
468,
866,
18415,
2668,
69,
478,
3047,
14157,
471,
4858,
2187,
10228,
92,
470,
17337,
4519,
67,
4099,
273,
306,
86,
8314,
1630,
4291,
3639,
4291,
377,
478,
3047,
10792,
1408,
2213,
16407,
202,
6,
11438,
6,
202,
3660,
19486,
468,
866,
18415,
2668,
69,
611,
9963,
14157,
471,
4858,
2187,
10228,
92,
81,
2752,
311,
17337,
4519,
67,
4099,
273,
306,
86,
8314,
1630,
1737,
86,
3639,
1737,
86,
377,
611,
9963,
5375,
1408,
2213,
16407,
202,
6,
11438,
6,
202,
3660,
19486,
468,
866,
18415,
2668,
69,
478,
1157,
14157,
471,
4858,
2187,
10228,
92,
3752,
300,
9953,
74,
5366,
77,
300,
3188,
15328,
2555,
17337,
4519,
67,
4099,
273,
306,
86,
8314,
1630,
284,
275,
3639,
284,
275,
377,
478,
1157,
10792,
1408,
2213,
16407,
202,
6,
11438,
6,
202,
3660,
19486,
468,
589,
16,
4674,
273,
866,
18415,
2668,
69,
12553,
1316,
14157,
2187,
10228,
92,
90,
2187,
296,
79,
1945,
2187,
296,
75,
14532,
19486,
589,
16,
9228,
273,
866,
18415,
2668,
69,
12553,
1316,
4858,
2187,
10228,
75,
14532,
19486,
9604,
11529,
12,
86,
6309,
8314,
1630,
324,
1291,
3639,
324,
1291,
377,
605,
4566,
10792,
1408,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1630,
5400,
13332,
9163,
2073,
777,
6449,
17938,
1630,
3222,
13,
9163,
866,
18415,
2668,
69,
399,
13905,
14157,
471,
4858,
2187,
10228,
88,
13905,
17337,
4519,
67,
4099,
273,
306,
86,
8314,
1630,
268,
13905,
4202,
1081,
377,
399,
13905,
10402,
1408,
2213,
16407,
202,
6,
11438,
6,
202,
3660,
19486,
468,
866,
18415,
2668,
69,
478,
3047,
14157,
471,
4858,
2187,
10228,
92,
470,
17337,
4519,
67,
4099,
273,
306,
86,
8314,
1630,
4291,
3639,
4291,
377,
478,
3047,
10792,
1408,
2213,
16407,
202,
6,
11438,
6,
202,
3660,
19486,
468,
866,
18415,
2668,
69,
611,
9963,
14157,
471,
4858,
2187,
10228,
92,
81,
2752,
311,
17337,
4519,
67,
4099,
273,
306,
86,
8314,
1630,
2
] |
return data[:-2] + '\n'
|
return data.replace('\r\n', '\n')
|
def normalize_output(data): # Some operating systems do conversions on newline. We could possibly # fix that by doing the appropriate termios.tcsetattr()s. I couldn't # figure out the right combo on Tru64 and I don't have an IRIX box. # So just normalize the output and doc the problem O/Ses by allowing # certain combinations for some platforms, but avoid allowing other # differences (like extra whitespace, trailing garbage, etc.) # This is about the best we can do without getting some feedback # from someone more knowledgable. # OSF/1 (Tru64) apparently turns \n into \r\r\n. if data.endswith('\r\r\n'): return data[:-3] + '\n' # IRIX apparently turns \n into \r\n. if data.endswith('\r\n'): return data[:-2] + '\n' return data
|
9e9e8b6c6599e466b3ffa78ab2abe8280c69208d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9e9e8b6c6599e466b3ffa78ab2abe8280c69208d/test_pty.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
2844,
12,
892,
4672,
468,
10548,
16929,
14908,
741,
22586,
603,
9472,
18,
225,
1660,
3377,
10016,
468,
2917,
716,
635,
9957,
326,
5505,
2481,
7441,
18,
5111,
542,
1747,
1435,
87,
18,
225,
467,
17991,
1404,
468,
7837,
596,
326,
2145,
16778,
603,
840,
89,
1105,
471,
467,
2727,
1404,
1240,
392,
24143,
60,
3919,
18,
468,
6155,
2537,
3883,
326,
876,
471,
997,
326,
6199,
531,
19,
55,
281,
635,
15632,
468,
8626,
17265,
364,
2690,
17422,
16,
1496,
4543,
15632,
1308,
468,
16440,
261,
5625,
2870,
7983,
16,
7341,
15340,
16,
5527,
12998,
225,
468,
1220,
353,
2973,
326,
3796,
732,
848,
741,
2887,
8742,
2690,
10762,
468,
628,
18626,
1898,
5055,
1259,
8455,
18,
225,
468,
5932,
42,
19,
21,
261,
1070,
89,
1105,
13,
29614,
715,
20748,
521,
82,
1368,
521,
86,
64,
86,
64,
82,
18,
309,
501,
18,
5839,
1918,
2668,
64,
86,
64,
86,
64,
82,
11,
4672,
327,
501,
10531,
17,
23,
65,
397,
2337,
82,
11,
225,
468,
24143,
60,
29614,
715,
20748,
521,
82,
1368,
521,
86,
64,
82,
18,
309,
501,
18,
5839,
1918,
2668,
64,
86,
64,
82,
11,
4672,
327,
501,
18,
2079,
2668,
64,
86,
64,
82,
2187,
2337,
82,
6134,
225,
327,
501,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
2844,
12,
892,
4672,
468,
10548,
16929,
14908,
741,
22586,
603,
9472,
18,
225,
1660,
3377,
10016,
468,
2917,
716,
635,
9957,
326,
5505,
2481,
7441,
18,
5111,
542,
1747,
1435,
87,
18,
225,
467,
17991,
1404,
468,
7837,
596,
326,
2145,
16778,
603,
840,
89,
1105,
471,
467,
2727,
1404,
1240,
392,
24143,
60,
3919,
18,
468,
6155,
2537,
3883,
326,
876,
471,
997,
326,
6199,
531,
19,
55,
281,
635,
15632,
468,
8626,
17265,
364,
2690,
17422,
16,
1496,
4543,
15632,
1308,
468,
16440,
261,
5625,
2870,
7983,
16,
7341,
15340,
16,
5527,
12998,
225,
468,
1220,
353,
2973,
326,
3796,
732,
848,
741,
2887,
8742,
2690,
10762,
468,
628,
18626,
1898,
5055,
1259,
2
] |
line_length_rules = [ (re.compile(r'(?<=.{%i}[a-z,;:-IA])\s*(?P<ital></(i|b|u)>)?\s*(<p.*?>)\s*(?=(<(i|b|u)>)?[\w\d])' % line_length(html, .3), re.UNICODE), wrap_lines), ]
|
length = line_length(html, .3) line_length_rules = [] if length: line_length_rules = [ (re.compile(r'(?<=.{%i}[a-z,;:-IA])\s*(?P<ital></(i|b|u)>)?\s*(<p.*?>)\s*(?=(<(i|b|u)>)?[\w\d])' % length, re.UNICODE), wrap_lines), ]
|
def __call__(self, html, remove_special_chars=None): if remove_special_chars is not None: html = remove_special_chars.sub('', html) html = html.replace('\0', '') if self.is_baen(html): rules = [] elif self.is_book_designer(html): rules = self.BOOK_DESIGNER elif self.is_pdftohtml(html): line_length_rules = [ # Un wrap using punctuation (re.compile(r'(?<=.{%i}[a-z,;:-IA])\s*(?P<ital></(i|b|u)>)?\s*(<p.*?>)\s*(?=(<(i|b|u)>)?[\w\d])' % line_length(html, .3), re.UNICODE), wrap_lines), ]
|
65dfbd5cb4e3a11871ffb274b0830f8fb5ee2b5b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/65dfbd5cb4e3a11871ffb274b0830f8fb5ee2b5b/preprocess.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1729,
16,
1206,
67,
9371,
67,
7549,
33,
7036,
4672,
309,
1206,
67,
9371,
67,
7549,
353,
486,
599,
30,
1729,
273,
1206,
67,
9371,
67,
7549,
18,
1717,
2668,
2187,
1729,
13,
1729,
273,
1729,
18,
2079,
2668,
64,
20,
2187,
28707,
309,
365,
18,
291,
67,
12124,
275,
12,
2620,
4672,
2931,
273,
5378,
1327,
365,
18,
291,
67,
3618,
67,
16934,
264,
12,
2620,
4672,
2931,
273,
365,
18,
28163,
67,
1639,
11260,
654,
1327,
365,
18,
291,
67,
7699,
869,
2620,
12,
2620,
4672,
980,
67,
2469,
67,
7482,
273,
306,
468,
1351,
2193,
1450,
22472,
261,
266,
18,
11100,
12,
86,
11,
16422,
33,
22420,
9,
77,
20294,
69,
17,
94,
16,
31,
30,
17,
15188,
65,
5153,
87,
14,
3680,
52,
32,
7053,
4695,
12,
77,
96,
70,
96,
89,
13,
34,
9945,
64,
87,
21556,
32,
84,
23498,
34,
5153,
87,
14,
3680,
28657,
32,
12,
77,
96,
70,
96,
89,
13,
34,
9945,
7438,
91,
64,
72,
65,
2506,
738,
980,
67,
2469,
12,
2620,
16,
263,
23,
3631,
283,
18,
26642,
3631,
2193,
67,
3548,
3631,
308,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1729,
16,
1206,
67,
9371,
67,
7549,
33,
7036,
4672,
309,
1206,
67,
9371,
67,
7549,
353,
486,
599,
30,
1729,
273,
1206,
67,
9371,
67,
7549,
18,
1717,
2668,
2187,
1729,
13,
1729,
273,
1729,
18,
2079,
2668,
64,
20,
2187,
28707,
309,
365,
18,
291,
67,
12124,
275,
12,
2620,
4672,
2931,
273,
5378,
1327,
365,
18,
291,
67,
3618,
67,
16934,
264,
12,
2620,
4672,
2931,
273,
365,
18,
28163,
67,
1639,
11260,
654,
1327,
365,
18,
291,
67,
7699,
869,
2620,
12,
2620,
4672,
980,
67,
2469,
67,
7482,
273,
306,
468,
1351,
2193,
1450,
22472,
261,
266,
18,
11100,
12,
86,
11,
16422,
33,
22420,
9,
77,
2
] |
raise osv.except_osv(_('Warning !'), _('There is no stage for lost oppportunities defined for this Sale Team.'))
|
raise osv.except_osv(_('Warning !'), _('There is no stage for lost opportunities defined for this Sale Team.'))
|
def case_mark_lost(self, cr, uid, ids, *args): """Mark the case as lost: state = done and probability = 0% @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of case Ids @param *args: Tuple Value for additional Params """ res = super(crm_opportunity, self).case_close(cr, uid, ids, args) stage_id = super(crm_opportunity, self).stage_next(cr, uid, ids, context={'force_domain': [('probability', '=', 0)]}) if not stage_id: raise osv.except_osv(_('Warning !'), _('There is no stage for lost oppportunities defined for this Sale Team.')) value = self.onchange_stage_id(cr, uid, ids, stage_id, context={})['value'] value.update({'date_closed': time.strftime('%Y-%m-%d %H:%M:%S'), 'stage_id': stage_id})
|
6b735b672cd7bc8954e370238249896149898448 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6b735b672cd7bc8954e370238249896149898448/crm_opportunity.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
648,
67,
3355,
67,
383,
334,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
3536,
3882,
326,
648,
487,
13557,
30,
919,
273,
2731,
471,
11331,
273,
374,
9,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891,
4555,
30,
326,
783,
729,
163,
227,
252,
87,
1599,
364,
4373,
4271,
16,
632,
891,
3258,
30,
987,
434,
648,
29085,
632,
891,
380,
1968,
30,
7257,
1445,
364,
3312,
8861,
3536,
400,
273,
2240,
12,
3353,
81,
67,
556,
655,
13352,
16,
365,
2934,
3593,
67,
4412,
12,
3353,
16,
4555,
16,
3258,
16,
833,
13,
6009,
67,
350,
273,
2240,
12,
3353,
81,
67,
556,
655,
13352,
16,
365,
2934,
12869,
67,
4285,
12,
3353,
16,
4555,
16,
3258,
16,
819,
5899,
11,
5734,
67,
4308,
4278,
306,
2668,
22390,
2187,
15196,
2187,
374,
25887,
6792,
309,
486,
6009,
67,
350,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
6210,
401,
19899,
389,
2668,
9828,
353,
1158,
6009,
364,
13557,
1061,
655,
318,
1961,
2553,
364,
333,
348,
5349,
10434,
1093,
3719,
460,
273,
365,
18,
265,
3427,
67,
12869,
67,
350,
12,
3353,
16,
4555,
16,
3258,
16,
6009,
67,
350,
16,
819,
12938,
13,
3292,
1132,
3546,
460,
18,
2725,
12590,
11,
712,
67,
12204,
4278,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
19899,
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,
648,
67,
3355,
67,
383,
334,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
3536,
3882,
326,
648,
487,
13557,
30,
919,
273,
2731,
471,
11331,
273,
374,
9,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891,
4555,
30,
326,
783,
729,
163,
227,
252,
87,
1599,
364,
4373,
4271,
16,
632,
891,
3258,
30,
987,
434,
648,
29085,
632,
891,
380,
1968,
30,
7257,
1445,
364,
3312,
8861,
3536,
400,
273,
2240,
12,
3353,
81,
67,
556,
655,
13352,
16,
365,
2934,
3593,
67,
4412,
12,
3353,
16,
4555,
16,
3258,
16,
833,
13,
6009,
67,
350,
273,
2240,
2
] |
"values",GL_GET_PIXEL_MAP_SIZE, "map",
|
"values",GL_GET_PIXEL_MAP_SIZE, "map",
|
def GL_GET_PIXEL_MAP_SIZE( pname ): """Given a pname, lookup the size using a glGet query...""" constant = PIXEL_MAP_SIZE_CONSTANT_MAP[ pname ] return glGetIntegerv( constant )
|
779beb78d8242dd156d555119ccab07062fb4bf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1545/779beb78d8242dd156d555119ccab07062fb4bf3/glget.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10252,
67,
3264,
67,
27381,
2247,
67,
8352,
67,
4574,
12,
19952,
262,
30,
3536,
6083,
279,
19952,
16,
3689,
326,
963,
1450,
279,
5118,
967,
843,
7070,
3660,
5381,
273,
7024,
60,
2247,
67,
8352,
67,
4574,
67,
25878,
67,
8352,
63,
19952,
308,
327,
5118,
967,
4522,
90,
12,
5381,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10252,
67,
3264,
67,
27381,
2247,
67,
8352,
67,
4574,
12,
19952,
262,
30,
3536,
6083,
279,
19952,
16,
3689,
326,
963,
1450,
279,
5118,
967,
843,
7070,
3660,
5381,
273,
7024,
60,
2247,
67,
8352,
67,
4574,
67,
25878,
67,
8352,
63,
19952,
308,
327,
5118,
967,
4522,
90,
12,
5381,
262,
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
] |
return self.socket.accept()
|
res = self.socket.accept() if res is not None: sock = wc.objproxy.Proxy(res[0]) sock.family = self.socket.family sock.socktype = self.socket.socktype sock.proto = self.socket.proto return (sock, res[1])
|
def accept (self): """ Accept a new connection on the socket.
|
d8907582547be0ee979e312436b4cad8f2b84b5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/d8907582547be0ee979e312436b4cad8f2b84b5c/Dispatcher.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
261,
2890,
4672,
3536,
8662,
279,
394,
1459,
603,
326,
2987,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
261,
2890,
4672,
3536,
8662,
279,
394,
1459,
603,
326,
2987,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
1. Generated spanning tree; 2. Graph's preordering; 3. Graph's postordering.
|
1. Generated spanning tree 2. Graph's preordering 3. Graph's postordering
|
def depth_first_search(graph, root=None): """ Depth-first search. @type graph: graph @param graph: Graph. @type root: node @param root: Optional root node (will explore only root's connected component) @rtype: tuple @return: A tupple containing a dictionary and two lists: 1. Generated spanning tree; 2. Graph's preordering; 3. Graph's postordering. """ visited = {} # List for marking visited and non-visited nodes spanning_tree = {} # Spanning tree pre = [] # Graph's preordering post = [] # Graph's postordering # DFS from one node only if (root != None): spanning_tree[root] = None _dfs(graph, visited, spanning_tree, pre, post, root) return spanning_tree, pre, post # Algorithm loop for each in graph.get_nodes(): if (not each in visited): # Select a non-visited node spanning_tree[each] = None _dfs(graph, visited, spanning_tree, pre, post, each) # Explore node's connected component return spanning_tree, pre, post
|
7c73c280337c6073dae6db654966f6a3710b836c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4687/7c73c280337c6073dae6db654966f6a3710b836c/searching.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3598,
67,
3645,
67,
3072,
12,
4660,
16,
1365,
33,
7036,
4672,
3536,
25210,
17,
3645,
1623,
18,
225,
632,
723,
225,
2667,
30,
2667,
632,
891,
2667,
30,
5601,
18,
225,
632,
723,
225,
1365,
30,
756,
632,
891,
1365,
30,
4055,
1365,
756,
261,
20194,
15233,
266,
1338,
1365,
1807,
5840,
1794,
13,
225,
632,
86,
723,
30,
225,
3193,
632,
2463,
30,
432,
15822,
1802,
4191,
279,
3880,
471,
2795,
6035,
30,
404,
18,
11025,
1694,
10903,
2151,
576,
18,
5601,
1807,
675,
22598,
890,
18,
5601,
1807,
1603,
22598,
3536,
9711,
273,
2618,
1082,
202,
7,
987,
364,
24073,
9711,
471,
1661,
17,
30129,
2199,
1694,
10903,
67,
3413,
273,
2618,
202,
202,
7,
5878,
10903,
2151,
675,
273,
5378,
9506,
202,
7,
5601,
1807,
675,
22598,
1603,
273,
5378,
9506,
202,
7,
5601,
1807,
1603,
22598,
225,
468,
23872,
628,
1245,
756,
1338,
309,
261,
3085,
480,
599,
4672,
1694,
10903,
67,
3413,
63,
3085,
65,
273,
599,
389,
12381,
12,
4660,
16,
9711,
16,
1694,
10903,
67,
3413,
16,
675,
16,
1603,
16,
1365,
13,
327,
1694,
10903,
67,
3413,
16,
675,
16,
1603,
225,
468,
15067,
2798,
364,
1517,
316,
2667,
18,
588,
67,
4690,
13332,
309,
261,
902,
1517,
316,
9711,
4672,
6862,
6862,
202,
7,
6766,
279,
1661,
17,
30129,
756,
1694,
10903,
67,
3413,
63,
13798,
65,
273,
599,
389,
12381,
12,
4660,
16,
9711,
16,
1694,
10903,
67,
3413,
16,
675,
16,
1603,
16,
1517,
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,
3598,
67,
3645,
67,
3072,
12,
4660,
16,
1365,
33,
7036,
4672,
3536,
25210,
17,
3645,
1623,
18,
225,
632,
723,
225,
2667,
30,
2667,
632,
891,
2667,
30,
5601,
18,
225,
632,
723,
225,
1365,
30,
756,
632,
891,
1365,
30,
4055,
1365,
756,
261,
20194,
15233,
266,
1338,
1365,
1807,
5840,
1794,
13,
225,
632,
86,
723,
30,
225,
3193,
632,
2463,
30,
432,
15822,
1802,
4191,
279,
3880,
471,
2795,
6035,
30,
404,
18,
11025,
1694,
10903,
2151,
576,
18,
5601,
1807,
675,
22598,
890,
18,
5601,
1807,
1603,
22598,
3536,
9711,
273,
2618,
1082,
202,
7,
987,
364,
24073,
9711,
471,
1661,
17,
30129,
2199,
1694,
10903,
67,
3413,
273,
2618,
202,
202,
7,
2
] |
'crh': [u'Resim', u'Ресим'],
|
'crh': [u'Fayl', u'Resim', u'Ресим'],
|
def __init__(self): self.name = None # Updated from http://meta.wikimedia.org/wiki/Interwiki_sorting_order self.alphabetic = [ 'af', 'ak', 'ace', 'als', 'am', 'ang', 'ab', 'ar', 'an', 'arc', 'roa-rup', 'frp', 'as', 'ast', 'gn', 'av', 'ay', 'az', 'bm', 'bn', 'zh-min-nan', 'nan', 'map-bms', 'ba', 'be', 'be-x-old', 'bh', 'bcl', 'bi', 'bar', 'bo', 'bs', 'br', 'bg', 'bxr', 'ca', 'cv', 'ceb', 'cs', 'ch', 'cbk-zam', 'ny', 'sn', 'tum', 'cho', 'co', 'cy', 'da', 'dk', 'pdc', 'de', 'dv', 'nv', 'dsb', 'dz', 'mh', 'et', 'el', 'eml', 'en', 'myv', 'es', 'eo', 'ext', 'eu', 'ee', 'fa', 'hif', 'fo', 'fr', 'fy', 'ff', 'fur', 'ga', 'gv', 'gd', 'gl', 'gan', 'ki', 'glk', 'gu', 'got', 'hak', 'xal', 'ko', 'ha', 'haw', 'hy', 'hi', 'ho', 'hsb', 'hr', 'io', 'ig', 'ilo', 'bpy', 'id', 'ia', 'ie', 'iu', 'ik', 'os', 'xh', 'zu', 'is', 'it', 'he', 'jv', 'kl', 'kn', 'kr', 'pam', 'ka', 'ks', 'csb', 'kk', 'kw', 'rw', 'ky', 'rn', 'sw', 'kv', 'kg', 'ht', 'ku', 'kj', 'lad', 'lbe', 'lo', 'la', 'lv', 'lb', 'lt', 'lij', 'li', 'ln', 'jbo', 'lg', 'lmo', 'hu', 'mk', 'mg', 'ml', 'mt', 'mi', 'mr', 'arz', 'mzn', 'ms', 'cdo', 'mwl', 'mdf', 'mo', 'mn', 'mus', 'my', 'nah', 'na', 'fj', 'nl', 'nds-nl', 'cr', 'ne', 'new', 'ja', 'nap', 'ce', 'pih', 'no', 'nb', 'nn', 'nrm', 'nov', 'ii', 'oc', 'mhr', 'or', 'om', 'ng', 'hz', 'uz', 'pa', 'pnb', 'pi', 'pag', 'pap', 'ps', 'km', 'pms', 'tpi', 'nds', 'pl', 'tokipona', 'tp', 'pnt', 'pt', 'aa', 'kaa', 'crh', 'ty', 'ksh', 'ro', 'rmy', 'rm', 'qu', 'ru', 'sah', 'se', 'sm', 'sa', 'sg', 'sc', 'za', 'sco', 'stq', 'st', 'tn', 'sq', 'scn', 'si', 'simple', 'sd', 'ss', 'sk', 'cu', 'sl', 'szl', 'so', 'ckb', 'srn', 'sr', 'sh', 'su', 'fi', 'sv', 'tl', 'ta', 'kab', 'roa-tara', 'tt', 'te', 'tet', 'th', 'ti', 'tg', 'to', 'chr', 'chy', 've', 'tr', 'tk', 'tw', 'udm', 'bug', 'uk', 'ur', 'ug', 'vec', 'vi', 'vo', 'fiu-vro', 'wa', 'zh-classical', 'vls', 'war', 'wo', 'wuu', 'ts', 'yi', 'yo', 'zh-yue', 'diq', 'zea', 'bat-smg', 'zh', 'zh-tw', 'zh-cn' ]
|
d0be13c8dd960f188cebfecb3decec6b1c69634e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/d0be13c8dd960f188cebfecb3decec6b1c69634e/family.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
529,
273,
599,
468,
19301,
628,
1062,
2207,
3901,
18,
11999,
381,
1980,
18,
3341,
19,
13044,
19,
2465,
13044,
67,
28751,
67,
1019,
365,
18,
287,
8133,
7943,
273,
306,
296,
1727,
2187,
296,
581,
2187,
296,
623,
2187,
296,
1031,
2187,
296,
301,
2187,
296,
539,
2187,
296,
378,
2187,
296,
297,
2187,
296,
304,
2187,
296,
11828,
2187,
296,
303,
69,
17,
86,
416,
2187,
296,
4840,
84,
2187,
296,
345,
2187,
296,
689,
2187,
296,
1600,
2187,
296,
842,
2187,
296,
528,
2187,
296,
1561,
2187,
296,
25709,
2187,
296,
13392,
2187,
296,
23121,
17,
1154,
17,
13569,
2187,
296,
13569,
2187,
296,
1458,
17,
70,
959,
2187,
296,
12124,
2187,
296,
2196,
2187,
296,
2196,
17,
92,
17,
1673,
2187,
296,
70,
76,
2187,
296,
70,
830,
2187,
296,
13266,
2187,
296,
3215,
2187,
296,
1075,
2187,
296,
2038,
2187,
296,
2848,
2187,
296,
12370,
2187,
296,
70,
92,
86,
2187,
296,
5353,
2187,
296,
19774,
2187,
296,
311,
70,
2187,
296,
2143,
2187,
296,
343,
2187,
296,
7358,
79,
17,
94,
301,
2187,
296,
18538,
2187,
296,
8134,
2187,
296,
88,
379,
2187,
296,
2599,
2187,
296,
2894,
2187,
296,
2431,
2187,
296,
2414,
2187,
296,
2883,
2187,
296,
84,
7201,
2187,
296,
323,
2187,
296,
15679,
2187,
296,
16588,
2187,
296,
2377,
70,
2187,
296,
72,
94,
2187,
296,
81,
76,
2187,
296,
278,
2187,
296,
292,
2187,
296,
351,
80,
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,
4672,
365,
18,
529,
273,
599,
468,
19301,
628,
1062,
2207,
3901,
18,
11999,
381,
1980,
18,
3341,
19,
13044,
19,
2465,
13044,
67,
28751,
67,
1019,
365,
18,
287,
8133,
7943,
273,
306,
296,
1727,
2187,
296,
581,
2187,
296,
623,
2187,
296,
1031,
2187,
296,
301,
2187,
296,
539,
2187,
296,
378,
2187,
296,
297,
2187,
296,
304,
2187,
296,
11828,
2187,
296,
303,
69,
17,
86,
416,
2187,
296,
4840,
84,
2187,
296,
345,
2187,
296,
689,
2187,
296,
1600,
2187,
296,
842,
2187,
296,
528,
2187,
296,
1561,
2187,
296,
25709,
2187,
296,
13392,
2187,
296,
23121,
17,
1154,
17,
13569,
2187,
296,
13569,
2187,
296,
1458,
17,
70,
2
] |
if keg.name != " keg.name = ' keg.deltag('potiontype')
|
if potionkeg.name != " potionkeg.name = ' potionkeg.deltag('potiontype')
|
def onUse(char, keg): socket = char.socket kegfill = int(keg.gettag('kegfill')) backpack = char.getbackpack() if keg.hastag('potiontype'): checkkegstatus( char, keg, keg.gettag('potiontype') ) if kegfill > 0: count = backpack.countitems(['f0e']) if count >= 1: backpack.removeitems(['f0e'], 1) newpot = wolfpack.additem(potions[keg.gettag('potiontype')][POT_DEF]) newpot.decay = 1 newpot.magic = 1 if not tobackpack(newpot, char): newpot.update() kegfill -= 1 keg.settag('kegfill', kegfill ) if kegfill == 0: if keg.name != "#1041641": keg.name = '#1041641' keg.deltag('potiontype') else: socket.clilocmessage(500315) else: if keg.name != "#1041641": keg.name = '#1041641' if keg.hastag('potiontype'): keg.deltag('potiontype') return 1
|
d14ce2db290f3d620430d0bc52fea152c525be8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d14ce2db290f3d620430d0bc52fea152c525be8b/potionkeg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3727,
12,
3001,
16,
417,
1332,
4672,
2987,
273,
1149,
18,
7814,
417,
1332,
5935,
273,
509,
12,
79,
1332,
18,
588,
2692,
2668,
79,
1332,
5935,
26112,
1473,
2920,
273,
1149,
18,
588,
823,
2920,
1435,
225,
309,
417,
1332,
18,
76,
689,
346,
2668,
84,
8240,
723,
11,
4672,
866,
79,
1332,
2327,
12,
1149,
16,
417,
1332,
16,
417,
1332,
18,
588,
2692,
2668,
84,
8240,
723,
6134,
262,
225,
309,
417,
1332,
5935,
405,
374,
30,
1056,
273,
1473,
2920,
18,
1883,
3319,
12,
3292,
74,
20,
73,
19486,
309,
1056,
1545,
404,
30,
1473,
2920,
18,
4479,
3319,
12,
3292,
74,
20,
73,
17337,
404,
13,
394,
13130,
273,
341,
355,
74,
2920,
18,
1289,
1726,
12,
13130,
1115,
63,
79,
1332,
18,
588,
2692,
2668,
84,
8240,
723,
6134,
6362,
52,
1974,
67,
12904,
5717,
394,
13130,
18,
26039,
273,
404,
394,
13130,
18,
11179,
273,
404,
309,
486,
358,
823,
2920,
12,
2704,
13130,
16,
1149,
4672,
394,
13130,
18,
2725,
1435,
417,
1332,
5935,
3947,
404,
417,
1332,
18,
542,
2692,
2668,
79,
1332,
5935,
2187,
417,
1332,
5935,
262,
309,
417,
1332,
5935,
422,
374,
30,
309,
417,
1332,
18,
529,
480,
6619,
2163,
9803,
1105,
21,
6877,
417,
1332,
18,
529,
273,
2946,
2163,
9803,
1105,
21,
11,
417,
1332,
18,
3771,
2692,
2668,
84,
8240,
723,
6134,
469,
30,
2987,
18,
830,
330,
504,
2150,
12,
12483,
23,
3600,
13,
225,
469,
30,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3727,
12,
3001,
16,
417,
1332,
4672,
2987,
273,
1149,
18,
7814,
417,
1332,
5935,
273,
509,
12,
79,
1332,
18,
588,
2692,
2668,
79,
1332,
5935,
26112,
1473,
2920,
273,
1149,
18,
588,
823,
2920,
1435,
225,
309,
417,
1332,
18,
76,
689,
346,
2668,
84,
8240,
723,
11,
4672,
866,
79,
1332,
2327,
12,
1149,
16,
417,
1332,
16,
417,
1332,
18,
588,
2692,
2668,
84,
8240,
723,
6134,
262,
225,
309,
417,
1332,
5935,
405,
374,
30,
1056,
273,
1473,
2920,
18,
1883,
3319,
12,
3292,
74,
20,
73,
19486,
309,
1056,
1545,
404,
30,
1473,
2920,
18,
4479,
3319,
12,
3292,
74,
20,
73,
17337,
404,
13,
394,
13130,
273,
341,
355,
74,
2
] |
self.moveFreeButton.setWhatsThis(
|
self.transFreeButton.setWhatsThis(
|
def add_whats_this_text( self ): """What's This text for some of the widgets in the Move Property Manager. """
|
6d3d96ad5a23bd76fa94c5a45c88b85764637d81 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/6d3d96ad5a23bd76fa94c5a45c88b85764637d81/MovePropertyManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3350,
2323,
67,
2211,
67,
955,
12,
365,
262,
30,
3536,
23801,
1807,
1220,
977,
364,
2690,
434,
326,
10965,
316,
326,
9933,
4276,
8558,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3350,
2323,
67,
2211,
67,
955,
12,
365,
262,
30,
3536,
23801,
1807,
1220,
977,
364,
2690,
434,
326,
10965,
316,
326,
9933,
4276,
8558,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
r""" The integer sequence A000010 is Euler's totient function. Number of positive integers $i < n$ that are relative prime to $n$. Number of totatives of $n$. Euler totient function $\phi(n)$: count numbers < $n$ and prime to $n$. euler_phi is a standard SAGE function implemented in PARI INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000010; a Euler's totient function sage: a(1) 1 sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(11) 10 sage: a.list(12) [1, 1, 2, 2, 4, 2, 6, 4, 6, 4, 10, 4] sage: a(1/3) Traceback (most recent call last): ... TypeError: input must be an int, long, or Integer AUTHOR: -- Jaap Spies (2007-01-12) """ def __init__(self):
|
def __init__(self): r""" The integer sequence A000010 is Euler's totient function. Number of positive integers $i < n$ that are relative prime to $n$. Number of totatives of $n$. Euler totient function $\phi(n)$: count numbers < $n$ and prime to $n$. euler_phi is a standard SAGE function implemented in PARI INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000010; a Euler's totient function sage: a(1) 1 sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(11) 10 sage: a.list(12) [1, 1, 2, 2, 4, 2, 6, 4, 6, 4, 10, 4] sage: a(1/3) Traceback (most recent call last): ... TypeError: input must be an int, long, or Integer AUTHOR: -- Jaap Spies (2007-01-12) """
|
def _eval(self, n): m = 0 while m*(m+1)//2 <= n: m += 1 m -= 1 k = n - m*(m+1)//2 if (m+k)%2: return ZZ(0) sign = (-1)**((m+k)//2 + k) return sign * arith.binomial((m+k)//2,k)
|
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
312,
273,
374,
1323,
312,
21556,
81,
15,
21,
13,
759,
22,
1648,
290,
30,
312,
1011,
404,
312,
3947,
404,
417,
273,
290,
300,
312,
21556,
81,
15,
21,
13,
759,
22,
309,
261,
81,
15,
79,
13,
9,
22,
30,
327,
2285,
62,
12,
20,
13,
1573,
273,
24927,
21,
13,
636,
12443,
81,
15,
79,
13,
759,
22,
397,
417,
13,
327,
1573,
380,
419,
483,
18,
4757,
11496,
12443,
81,
15,
79,
13,
759,
22,
16,
79,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
312,
273,
374,
1323,
312,
21556,
81,
15,
21,
13,
759,
22,
1648,
290,
30,
312,
1011,
404,
312,
3947,
404,
417,
273,
290,
300,
312,
21556,
81,
15,
21,
13,
759,
22,
309,
261,
81,
15,
79,
13,
9,
22,
30,
327,
2285,
62,
12,
20,
13,
1573,
273,
24927,
21,
13,
636,
12443,
81,
15,
79,
13,
759,
22,
397,
417,
13,
327,
1573,
380,
419,
483,
18,
4757,
11496,
12443,
81,
15,
79,
13,
759,
22,
16,
79,
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
] |
n_tests = random.choice(xrange(1,len(self.targets)+1)) filetypes = random.sample(self.targets.keys(), n_tests)
|
typed_targets = {} for target in self.targets: for ftype in self.scan_filetypes: if target[-len(ftype):] == ftype: typed_targets.setdefault(ftype,[]) typed_targets[ftype].append(target) n_tests = random.choice(xrange(1,len(typed_targets)+1)) filetypes = random.sample(typed_targets.keys(), n_tests)
|
def run_test(self): # A single test should have a single cookie jar self.tor_cookie_jar = cookielib.MozillaCookieJar() self.cookie_jar = cookielib.MozillaCookieJar() self.headers = copy.copy(firefox_headers) self.tests_run += 1
|
ba5f7fa040706daf1e1b988aba2b93971703387a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3762/ba5f7fa040706daf1e1b988aba2b93971703387a/soat.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3813,
12,
2890,
4672,
468,
432,
2202,
1842,
1410,
1240,
279,
2202,
3878,
7334,
365,
18,
13039,
67,
8417,
67,
11930,
273,
15860,
77,
30575,
18,
49,
11142,
10745,
6151,
10813,
1435,
365,
18,
8417,
67,
11930,
273,
15860,
77,
30575,
18,
49,
11142,
10745,
6151,
10813,
1435,
365,
18,
2485,
273,
1610,
18,
3530,
12,
12179,
13873,
67,
2485,
13,
225,
365,
18,
16341,
67,
2681,
1011,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
1240,
279,
2202,
3878,
7334,
365,
18,
13039,
67,
8417,
67,
11930,
273,
15860,
77,
30575,
18,
49,
11142,
10745,
6151,
10813,
1435,
365,
18,
8417,
67,
11930,
273,
15860,
77,
30575,
18,
49,
11142,
10745,
6151,
10813,
1435,
365,
18,
2485,
273,
1610,
18,
3530,
12,
12179,
13873,
67,
2485,
13,
225,
365,
18,
16341,
67,
2681,
1011,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Returns the path of cached file or None. """ bucket = self.getBucketFromPath(path)
|
Returns the path of cached file or ``None``. Only 'result' files are looked up and returned, not sources. This method does not modify the filesystem if an appropriate bucket does not yet exist. """ bucket_path = self._getBucketPathFromPath(path) if not os.path.exists(bucket_path): return None bucket = Bucket(bucket_path)
|
def getCachedFile(self, path, suffix=None): """Check, whether the file in ``path`` is already cached.
|
bd1df902061fb04c8ccd7f5019bae40c68be6237 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9481/bd1df902061fb04c8ccd7f5019bae40c68be6237/cachemanager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20543,
812,
12,
2890,
16,
589,
16,
3758,
33,
7036,
4672,
3536,
1564,
16,
2856,
326,
585,
316,
12176,
803,
10335,
353,
1818,
3472,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20543,
812,
12,
2890,
16,
589,
16,
3758,
33,
7036,
4672,
3536,
1564,
16,
2856,
326,
585,
316,
12176,
803,
10335,
353,
1818,
3472,
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
] |
RESPONSE=REQUEST.RESPONSE
|
RESPONSE = getattr(REQUEST,'RESPONSE',None) if not RESPONSE:return False
|
def handle_modified_headers(self, last_mod=None, REQUEST=None): """ Check if the headers indicate we have changed content.
|
0179e56da136fc7e0a7b4b61f433510a7a074ee8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5225/0179e56da136fc7e0a7b4b61f433510a7a074ee8/ZWikiPage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
7342,
67,
2485,
12,
2890,
16,
1142,
67,
1711,
33,
7036,
16,
12492,
33,
7036,
4672,
3536,
2073,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
7342,
67,
2485,
12,
2890,
16,
1142,
67,
1711,
33,
7036,
16,
12492,
33,
7036,
4672,
3536,
2073,
309,
326,
1607,
10768,
732,
1240,
3550,
913,
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
] |
self.gctrack()
|
TestCase.setUp(self)
|
def setUp(self): self.gctrack() self.src = gst.Pad("src", gst.PAD_SRC) self.sink = gst.Pad("sink", gst.PAD_SINK) caps = gst.caps_from_string("foo/bar") self.src.set_caps(caps) self.sink.set_caps(caps) self.sink.set_chain_function(self._chain_func) self.src.link(self.sink) self.buffers = []
|
ca1cb51d1abd8d3e44b0947fb497ec96d2d54736 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1020/ca1cb51d1abd8d3e44b0947fb497ec96d2d54736/test_pad.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
7766,
2449,
18,
542,
1211,
12,
2890,
13,
365,
18,
4816,
273,
314,
334,
18,
14878,
2932,
4816,
3113,
314,
334,
18,
17962,
67,
28413,
13,
365,
18,
17074,
273,
314,
334,
18,
14878,
2932,
17074,
3113,
314,
334,
18,
17962,
67,
55,
8476,
13,
15788,
273,
314,
334,
18,
22984,
67,
2080,
67,
1080,
2932,
11351,
19,
3215,
7923,
365,
18,
4816,
18,
542,
67,
22984,
12,
22984,
13,
365,
18,
17074,
18,
542,
67,
22984,
12,
22984,
13,
365,
18,
17074,
18,
542,
67,
5639,
67,
915,
12,
2890,
6315,
5639,
67,
644,
13,
365,
18,
4816,
18,
1232,
12,
2890,
18,
17074,
13,
365,
18,
28101,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
7766,
2449,
18,
542,
1211,
12,
2890,
13,
365,
18,
4816,
273,
314,
334,
18,
14878,
2932,
4816,
3113,
314,
334,
18,
17962,
67,
28413,
13,
365,
18,
17074,
273,
314,
334,
18,
14878,
2932,
17074,
3113,
314,
334,
18,
17962,
67,
55,
8476,
13,
15788,
273,
314,
334,
18,
22984,
67,
2080,
67,
1080,
2932,
11351,
19,
3215,
7923,
365,
18,
4816,
18,
542,
67,
22984,
12,
22984,
13,
365,
18,
17074,
18,
542,
67,
22984,
12,
22984,
13,
365,
18,
17074,
18,
542,
67,
5639,
67,
915,
12,
2890,
6315,
5639,
67,
644,
13,
365,
18,
4816,
18,
1232,
12,
2890,
18,
17074,
13,
365,
18,
28101,
273,
5378,
2,
-100,
-100,
-100
] |
def rgbColorFromNode(node, greyScale=False, darknessLimit=1):
|
def rgbColorFromNode(node, greyScale=False, darknessLimit=0):
|
def rgbColorFromNode(node, greyScale=False, darknessLimit=1): """Extract text color from node attributes/style. Result is a rgb triple w/ individual values between [0...1]""" colorStr = node.style.get('color', None) or \ node.attributes.get('color', None) color = None if colorStr: color = _colorFromStr(colorStr.lower()) if greyScale and color: return _rgb2GreyScale(color, darknessLimit) return color
|
c42a30dc34aa4a74cf1303fad071ab56f2a3baf2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/c42a30dc34aa4a74cf1303fad071ab56f2a3baf2/styleutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6917,
2957,
28570,
12,
2159,
16,
5174,
93,
5587,
33,
8381,
16,
23433,
4496,
3039,
33,
20,
4672,
3536,
4976,
977,
2036,
628,
756,
1677,
19,
4060,
18,
3438,
353,
279,
6917,
14543,
341,
19,
7327,
924,
3086,
306,
20,
2777,
21,
65,
8395,
225,
2036,
1585,
273,
756,
18,
4060,
18,
588,
2668,
3266,
2187,
599,
13,
578,
521,
756,
18,
4350,
18,
588,
2668,
3266,
2187,
599,
13,
2036,
273,
599,
309,
2036,
1585,
30,
2036,
273,
389,
3266,
1265,
1585,
12,
3266,
1585,
18,
8167,
10756,
309,
5174,
93,
5587,
471,
2036,
30,
327,
389,
10948,
22,
43,
266,
93,
5587,
12,
3266,
16,
23433,
4496,
3039,
13,
327,
2036,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6917,
2957,
28570,
12,
2159,
16,
5174,
93,
5587,
33,
8381,
16,
23433,
4496,
3039,
33,
20,
4672,
3536,
4976,
977,
2036,
628,
756,
1677,
19,
4060,
18,
3438,
353,
279,
6917,
14543,
341,
19,
7327,
924,
3086,
306,
20,
2777,
21,
65,
8395,
225,
2036,
1585,
273,
756,
18,
4060,
18,
588,
2668,
3266,
2187,
599,
13,
578,
521,
756,
18,
4350,
18,
588,
2668,
3266,
2187,
599,
13,
2036,
273,
599,
309,
2036,
1585,
30,
2036,
273,
389,
3266,
1265,
1585,
12,
3266,
1585,
18,
8167,
10756,
309,
5174,
93,
5587,
471,
2036,
30,
327,
389,
10948,
22,
43,
266,
93,
5587,
12,
3266,
16,
23433,
4496,
3039,
13,
327,
2036,
225,
2,
-100,
-100,
-100,
-100
] |
percent = int(POST.has_key(u'percent'))
|
percent = int(POST[u'percent'])
|
def ajax_createshare(request): ret = [] if request.method == u'POST': POST = request.POST if POST.has_key(u'username') and POST.has_key(u'percent'): percent = int(POST.has_key(u'percent')) if percent != 0: if random.randrange(2) == 1: ret = {"success" : False, "error" : "could not create share " + "blah" * 20} else: ret = {"success" : True, "error" : ""} else: ret = {"success" : False, "error" : "Percent cannot be 0"} print "returning ret: ", str(ret) json = simplejson.dumps(ret) print "json object is ", str(json) return HttpResponse(json, mimetype='application/json')
|
d5beb689159776dc2ff7bdfaa10b03d65fde7d32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/d5beb689159776dc2ff7bdfaa10b03d65fde7d32/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10733,
67,
19787,
76,
834,
12,
2293,
4672,
325,
273,
5378,
309,
590,
18,
2039,
422,
582,
11,
3798,
4278,
5485,
273,
590,
18,
3798,
309,
5485,
18,
5332,
67,
856,
12,
89,
11,
5053,
6134,
471,
5485,
18,
5332,
67,
856,
12,
89,
11,
8849,
11,
4672,
5551,
273,
509,
12,
3798,
63,
89,
11,
8849,
19486,
309,
5551,
480,
374,
30,
309,
2744,
18,
7884,
3676,
12,
22,
13,
422,
404,
30,
325,
273,
12528,
4768,
6,
294,
1083,
16,
315,
1636,
6,
294,
315,
15195,
486,
752,
7433,
315,
397,
315,
3083,
9795,
6,
380,
4200,
97,
469,
30,
325,
273,
12528,
4768,
6,
294,
1053,
16,
315,
1636,
6,
294,
1408,
97,
469,
30,
325,
273,
12528,
4768,
6,
294,
1083,
16,
315,
1636,
6,
294,
315,
8410,
2780,
506,
374,
6,
97,
225,
1172,
315,
2463,
310,
325,
30,
3104,
609,
12,
1349,
13,
1163,
273,
4143,
1977,
18,
13302,
1121,
12,
1349,
13,
1172,
315,
1977,
733,
353,
3104,
609,
12,
1977,
13,
327,
9476,
12,
1977,
16,
12595,
2218,
3685,
19,
1977,
6134,
1377,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10733,
67,
19787,
76,
834,
12,
2293,
4672,
325,
273,
5378,
309,
590,
18,
2039,
422,
582,
11,
3798,
4278,
5485,
273,
590,
18,
3798,
309,
5485,
18,
5332,
67,
856,
12,
89,
11,
5053,
6134,
471,
5485,
18,
5332,
67,
856,
12,
89,
11,
8849,
11,
4672,
5551,
273,
509,
12,
3798,
63,
89,
11,
8849,
19486,
309,
5551,
480,
374,
30,
309,
2744,
18,
7884,
3676,
12,
22,
13,
422,
404,
30,
325,
273,
12528,
4768,
6,
294,
1083,
16,
315,
1636,
6,
294,
315,
15195,
486,
752,
7433,
315,
397,
315,
3083,
9795,
6,
380,
4200,
97,
469,
30,
325,
273,
12528,
4768,
6,
294,
1053,
16,
315,
1636,
6,
294,
1408,
97,
469,
30,
2
] |
self.write(cr, uid, ids, {'state': 'done', 'date': time.strftime('%Y-%m-%d %H:%M:%S')})
|
prodlot_id = partial_datas.get('move%s_prodlot_id'%(move.id), False) if prodlot_id: self.write(cr, uid, [move.id], {'prodlot_id': prodlot_id}) self.write(cr, uid, ids, {'state': 'done', 'date': time.strftime('%Y-%m-%d %H:%M:%S')})
|
def action_done(self, cr, uid, ids, context=None): """ Makes the move done and if all moves are done, it will finish the picking. @return: """ track_flag = False picking_ids = [] product_uom_obj = self.pool.get('product.uom') price_type_obj = self.pool.get('product.price.type') product_obj = self.pool.get('product.product') if context is None: context = {} for move in self.browse(cr, uid, ids): if move.picking_id: picking_ids.append(move.picking_id.id) if move.move_dest_id.id and (move.state != 'done'): cr.execute('insert into stock_move_history_ids (parent_id,child_id) values (%s,%s)', (move.id, move.move_dest_id.id)) if move.move_dest_id.state in ('waiting', 'confirmed'): self.write(cr, uid, [move.move_dest_id.id], {'state': 'assigned'}) if move.move_dest_id.picking_id: wf_service = netsvc.LocalService("workflow") wf_service.trg_write(uid, 'stock.picking', move.move_dest_id.picking_id.id, cr) else: pass if move.move_dest_id.auto_validate: self.action_done(cr, uid, [move.move_dest_id.id], context=context)
|
d672ae367f522aaa216aee2ee41d022ec54065f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d672ae367f522aaa216aee2ee41d022ec54065f3/stock.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
8734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
3536,
490,
3223,
326,
3635,
2731,
471,
309,
777,
13934,
854,
2731,
16,
518,
903,
4076,
326,
6002,
310,
18,
632,
2463,
30,
3536,
3298,
67,
6420,
273,
1083,
6002,
310,
67,
2232,
273,
5378,
3017,
67,
89,
362,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
89,
362,
6134,
6205,
67,
723,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
8694,
18,
723,
6134,
3017,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
5896,
6134,
309,
819,
353,
599,
30,
819,
273,
2618,
364,
3635,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
309,
3635,
18,
11503,
310,
67,
350,
30,
6002,
310,
67,
2232,
18,
6923,
12,
8501,
18,
11503,
310,
67,
350,
18,
350,
13,
309,
3635,
18,
8501,
67,
10488,
67,
350,
18,
350,
471,
261,
8501,
18,
2019,
480,
296,
8734,
11,
4672,
4422,
18,
8837,
2668,
6387,
1368,
12480,
67,
8501,
67,
8189,
67,
2232,
261,
2938,
67,
350,
16,
3624,
67,
350,
13,
924,
6142,
87,
15529,
87,
13,
2187,
261,
8501,
18,
350,
16,
3635,
18,
8501,
67,
10488,
67,
350,
18,
350,
3719,
309,
3635,
18,
8501,
67,
10488,
67,
350,
18,
2019,
316,
7707,
20241,
2187,
296,
21606,
11,
4672,
365,
18,
2626,
12,
3353,
16,
4555,
16,
306,
8501,
18,
8501,
67,
10488,
67,
350,
18,
350,
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,
1301,
67,
8734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
3536,
490,
3223,
326,
3635,
2731,
471,
309,
777,
13934,
854,
2731,
16,
518,
903,
4076,
326,
6002,
310,
18,
632,
2463,
30,
3536,
3298,
67,
6420,
273,
1083,
6002,
310,
67,
2232,
273,
5378,
3017,
67,
89,
362,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
89,
362,
6134,
6205,
67,
723,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
8694,
18,
723,
6134,
3017,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
5896,
6134,
309,
819,
353,
599,
30,
819,
273,
2618,
364,
3635,
316,
365,
18,
25731,
12,
3353,
16,
2
] |
func.prepared_async_call(arg._grid, arg.stream,
|
func.prepared_async_call(arg._grid, stream,
|
def fmod(arg, mod): """Return the floating point remainder of the division `arg/mod`, for each element in `arg` and `mod`.""" result = gpuarray.GPUArray(arg.shape, arg.dtype) func = elementwise.get_fmod_kernel() func.set_block_shape(*arg._block) func.prepared_async_call(arg._grid, arg.stream, arg.gpudata, mod.gpudata, result.gpudata, arg.mem_size) return result
|
84eb5784b45852e41dd494156dc9dff4f17b32bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12870/84eb5784b45852e41dd494156dc9dff4f17b32bd/cumath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1711,
12,
3175,
16,
681,
4672,
3536,
990,
326,
13861,
1634,
10022,
434,
326,
16536,
1375,
3175,
19,
1711,
9191,
364,
1517,
930,
316,
1375,
3175,
68,
471,
1375,
1711,
68,
12123,
563,
273,
21810,
1126,
18,
9681,
57,
1076,
12,
3175,
18,
4867,
16,
1501,
18,
8972,
13,
225,
1326,
273,
930,
2460,
18,
588,
67,
74,
1711,
67,
8111,
1435,
1326,
18,
542,
67,
2629,
67,
4867,
30857,
3175,
6315,
2629,
13,
1326,
18,
9366,
72,
67,
3810,
67,
1991,
12,
3175,
6315,
5222,
16,
1407,
16,
1501,
18,
23162,
892,
16,
681,
18,
23162,
892,
16,
563,
18,
23162,
892,
16,
1501,
18,
3917,
67,
1467,
13,
225,
327,
563,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1711,
12,
3175,
16,
681,
4672,
3536,
990,
326,
13861,
1634,
10022,
434,
326,
16536,
1375,
3175,
19,
1711,
9191,
364,
1517,
930,
316,
1375,
3175,
68,
471,
1375,
1711,
68,
12123,
563,
273,
21810,
1126,
18,
9681,
57,
1076,
12,
3175,
18,
4867,
16,
1501,
18,
8972,
13,
225,
1326,
273,
930,
2460,
18,
588,
67,
74,
1711,
67,
8111,
1435,
1326,
18,
542,
67,
2629,
67,
4867,
30857,
3175,
6315,
2629,
13,
1326,
18,
9366,
72,
67,
3810,
67,
1991,
12,
3175,
6315,
5222,
16,
1407,
16,
1501,
18,
23162,
892,
16,
681,
18,
23162,
892,
16,
563,
18,
23162,
892,
16,
1501,
18,
3917,
67,
1467,
13,
225,
327,
563,
225,
2,
-100,
-100,
-100
] |
if np.all(kpt == 0):
|
if np.all(kpt_c == 0):
|
def get_pseudo_wave_function(self, band=0, kpt=0, spin=0, pad=True): kpt = self.get_bz_k_points()[k] state = self.calc.GetElectronicStates().GetState(band=n, spin=s, kptindex=k)
|
e9db7b8a6653142eaa426ab75d5677f98ffedcde /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/e9db7b8a6653142eaa426ab75d5677f98ffedcde/dacapo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26023,
67,
17838,
67,
915,
12,
2890,
16,
8937,
33,
20,
16,
417,
337,
33,
20,
16,
12490,
33,
20,
16,
4627,
33,
5510,
4672,
417,
337,
273,
365,
18,
588,
67,
25292,
67,
79,
67,
4139,
1435,
63,
79,
65,
919,
273,
365,
18,
12448,
18,
967,
28621,
335,
7629,
7675,
967,
1119,
12,
12752,
33,
82,
16,
12490,
33,
87,
16,
417,
337,
1615,
33,
79,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26023,
67,
17838,
67,
915,
12,
2890,
16,
8937,
33,
20,
16,
417,
337,
33,
20,
16,
12490,
33,
20,
16,
4627,
33,
5510,
4672,
417,
337,
273,
365,
18,
588,
67,
25292,
67,
79,
67,
4139,
1435,
63,
79,
65,
919,
273,
365,
18,
12448,
18,
967,
28621,
335,
7629,
7675,
967,
1119,
12,
12752,
33,
82,
16,
12490,
33,
87,
16,
417,
337,
1615,
33,
79,
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
] |
elif isinstance(x, str):
|
elif isinstance(x, (bytes, bytearray)):
|
def dis(x=None): """Disassemble classes, methods, functions, or code. With no argument, disassemble the last traceback. """ if x is None: distb() return if hasattr(x, '__func__'): x = x.__func__ if hasattr(x, '__code__'): x = x.__code__ if hasattr(x, '__dict__'): items = sorted(x.__dict__.items()) for name, x1 in items: if isinstance(x1, (types.MethodType, types.FunctionType, types.CodeType, type)): print("Disassembly of %s:" % name) try: dis(x1) except TypeError as msg: print("Sorry:", msg) print() elif hasattr(x, 'co_code'): disassemble(x) elif isinstance(x, str): disassemble_string(x) else: raise TypeError("don't know how to disassemble %s objects" % type(x).__name__)
|
a0565c7b5bac8900fdac07491cf87011e980c32f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/a0565c7b5bac8900fdac07491cf87011e980c32f/dis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
12,
92,
33,
7036,
4672,
3536,
1669,
29676,
3318,
16,
2590,
16,
4186,
16,
578,
981,
18,
225,
3423,
1158,
1237,
16,
1015,
29676,
326,
1142,
10820,
18,
225,
3536,
309,
619,
353,
599,
30,
2411,
70,
1435,
327,
309,
3859,
12,
92,
16,
4940,
644,
7250,
4672,
619,
273,
619,
16186,
644,
972,
309,
3859,
12,
92,
16,
4940,
710,
7250,
4672,
619,
273,
619,
16186,
710,
972,
309,
3859,
12,
92,
16,
4940,
1576,
7250,
4672,
1516,
273,
3115,
12,
92,
16186,
1576,
25648,
3319,
10756,
364,
508,
16,
619,
21,
316,
1516,
30,
309,
1549,
12,
92,
21,
16,
261,
2352,
18,
21988,
16,
1953,
18,
2083,
559,
16,
1953,
18,
1085,
559,
16,
618,
3719,
30,
1172,
2932,
1669,
28050,
434,
738,
87,
2773,
738,
508,
13,
775,
30,
1015,
12,
92,
21,
13,
1335,
3580,
487,
1234,
30,
1172,
2932,
28898,
2773,
16,
1234,
13,
1172,
1435,
1327,
3859,
12,
92,
16,
296,
2894,
67,
710,
11,
4672,
1015,
29676,
12,
92,
13,
1327,
1549,
12,
92,
16,
261,
3890,
16,
14552,
3719,
30,
1015,
29676,
67,
1080,
12,
92,
13,
469,
30,
1002,
3580,
2932,
19752,
1404,
5055,
3661,
358,
1015,
29676,
738,
87,
2184,
6,
738,
618,
12,
92,
2934,
972,
529,
972,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1015,
12,
92,
33,
7036,
4672,
3536,
1669,
29676,
3318,
16,
2590,
16,
4186,
16,
578,
981,
18,
225,
3423,
1158,
1237,
16,
1015,
29676,
326,
1142,
10820,
18,
225,
3536,
309,
619,
353,
599,
30,
2411,
70,
1435,
327,
309,
3859,
12,
92,
16,
4940,
644,
7250,
4672,
619,
273,
619,
16186,
644,
972,
309,
3859,
12,
92,
16,
4940,
710,
7250,
4672,
619,
273,
619,
16186,
710,
972,
309,
3859,
12,
92,
16,
4940,
1576,
7250,
4672,
1516,
273,
3115,
12,
92,
16186,
1576,
25648,
3319,
10756,
364,
508,
16,
619,
21,
316,
1516,
30,
309,
1549,
12,
92,
21,
16,
261,
2352,
18,
21988,
16,
1953,
18,
2083,
559,
16,
1953,
18,
1085,
559,
16,
2
] |
self.parser.switchInsertionMode("inTable") self.parser.processEndTag(name) self.parser.switchInsertionMode("inRow")
|
InTable(self.parser).processEndTag(name)
|
def endTagOther(self, name): self.parser.switchInsertionMode("inTable") self.parser.processEndTag(name) self.parser.switchInsertionMode("inRow")
|
3b3fb2ac5b0657a14c838c0f63502cfd168f2021 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/3b3fb2ac5b0657a14c838c0f63502cfd168f2021/parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
8290,
12,
2890,
16,
508,
4672,
365,
18,
4288,
18,
9610,
29739,
2309,
2932,
267,
1388,
7923,
365,
18,
4288,
18,
2567,
25633,
12,
529,
13,
365,
18,
4288,
18,
9610,
29739,
2309,
2932,
267,
1999,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
8290,
12,
2890,
16,
508,
4672,
365,
18,
4288,
18,
9610,
29739,
2309,
2932,
267,
1388,
7923,
365,
18,
4288,
18,
2567,
25633,
12,
529,
13,
365,
18,
4288,
18,
9610,
29739,
2309,
2932,
267,
1999,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.next_watch_tick = broadcast(self.mpi_comm,
|
self.next_watch_tick = broadcast(self.mpi_comm,
|
def compute_watch_str(watch): try: return "%s=%g" % (watch.display, watch.compiled( *[dd.agg_func(values[dd.name]) for dd in watch.dep_data])) except ZeroDivisionError: return "%s:div0" % watch.display
|
26f8d8d9c4b3c67dbaf4f4dece66623b40a7f065 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12871/26f8d8d9c4b3c67dbaf4f4dece66623b40a7f065/log.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
7585,
67,
701,
12,
7585,
4672,
775,
30,
327,
2213,
87,
5095,
75,
6,
738,
261,
7585,
18,
5417,
16,
4267,
18,
19397,
12,
380,
63,
449,
18,
17535,
67,
644,
12,
2372,
63,
449,
18,
529,
5717,
364,
6957,
316,
4267,
18,
15037,
67,
892,
22643,
1335,
12744,
28223,
668,
30,
327,
2213,
87,
30,
2892,
20,
6,
738,
4267,
18,
5417,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
7585,
67,
701,
12,
7585,
4672,
775,
30,
327,
2213,
87,
5095,
75,
6,
738,
261,
7585,
18,
5417,
16,
4267,
18,
19397,
12,
380,
63,
449,
18,
17535,
67,
644,
12,
2372,
63,
449,
18,
529,
5717,
364,
6957,
316,
4267,
18,
15037,
67,
892,
22643,
1335,
12744,
28223,
668,
30,
327,
2213,
87,
30,
2892,
20,
6,
738,
4267,
18,
5417,
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
] |
s = 'MatrixAlgebra(%s,%s)'%(K, self.__nrows)
|
s = 'MatrixAlgebra(%s,%s)'%(K.name(), self.__nrows)
|
def _magma_init_(self, magma): r""" EXAMPLES: We first coerce a square matrix. :: sage: magma(MatrixSpace(QQ,3)) # optional - magma Full Matrix Algebra of degree 3 over Rational Field :: sage: magma(MatrixSpace(Integers(8),2,3)) # optional - magma Full RMatrixSpace of 2 by 3 matrices over IntegerRing(8) """ K = self.base_ring()._magma_init_(magma) if self.__nrows == self.__ncols: s = 'MatrixAlgebra(%s,%s)'%(K, self.__nrows) else: s = 'RMatrixSpace(%s,%s,%s)'%(K, self.__nrows, self.__ncols) return s
|
f6a2599275d4217a1eb69500f679ca34a8c264e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f6a2599275d4217a1eb69500f679ca34a8c264e8/matrix_space.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4527,
2540,
67,
2738,
67,
12,
2890,
16,
4447,
2540,
4672,
436,
8395,
5675,
8900,
11386,
30,
1660,
1122,
12270,
279,
8576,
3148,
18,
225,
493,
225,
272,
410,
30,
4447,
2540,
12,
4635,
3819,
12,
53,
53,
16,
23,
3719,
8227,
468,
3129,
300,
4447,
2540,
11692,
7298,
2262,
29087,
434,
10782,
890,
1879,
534,
8371,
2286,
225,
493,
225,
272,
410,
30,
4447,
2540,
12,
4635,
3819,
12,
382,
736,
6215,
12,
28,
3631,
22,
16,
23,
3719,
6647,
468,
3129,
300,
4447,
2540,
11692,
534,
4635,
3819,
434,
576,
635,
890,
16415,
1879,
2144,
10369,
12,
28,
13,
3536,
1475,
273,
365,
18,
1969,
67,
8022,
1435,
6315,
4527,
2540,
67,
2738,
67,
12,
4527,
2540,
13,
309,
365,
16186,
82,
3870,
422,
365,
16186,
82,
6842,
30,
272,
273,
296,
4635,
1067,
29087,
9275,
87,
15529,
87,
2506,
17105,
47,
18,
529,
9334,
365,
16186,
82,
3870,
13,
469,
30,
272,
273,
296,
54,
4635,
3819,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
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4527,
2540,
67,
2738,
67,
12,
2890,
16,
4447,
2540,
4672,
436,
8395,
5675,
8900,
11386,
30,
1660,
1122,
12270,
279,
8576,
3148,
18,
225,
493,
225,
272,
410,
30,
4447,
2540,
12,
4635,
3819,
12,
53,
53,
16,
23,
3719,
8227,
468,
3129,
300,
4447,
2540,
11692,
7298,
2262,
29087,
434,
10782,
890,
1879,
534,
8371,
2286,
225,
493,
225,
272,
410,
30,
4447,
2540,
12,
4635,
3819,
12,
382,
736,
6215,
12,
28,
3631,
22,
16,
23,
3719,
6647,
468,
3129,
300,
4447,
2540,
11692,
534,
4635,
3819,
434,
576,
635,
890,
16415,
1879,
2144,
10369,
12,
28,
13,
3536,
1475,
273,
365,
18,
1969,
67,
8022,
1435,
6315,
4527,
2540,
67,
2738,
67,
12,
2
] |
if isinstance(it, basebag): for elem, count in it._dict.items(): self._inc(value, -count) else: for value in it: self._inc(value, -1)
|
if not isinstance(other, basebag): other = self._from_iterable(other) for elem, count in other._dict.items(): self._inc(value, -count)
|
def __isub__(self, it: Iterable): """ if isinstance(it, basebag): This runs in O(it.num_unique_elements()) else: This runs in O(len(it))
|
3325486bf02adc2f21c90c503985367500ba994b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/3325486bf02adc2f21c90c503985367500ba994b/collections_.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
291,
373,
972,
12,
2890,
16,
518,
30,
6725,
4672,
3536,
309,
1549,
12,
305,
16,
1026,
22551,
4672,
1220,
7597,
316,
531,
12,
305,
18,
2107,
67,
6270,
67,
6274,
10756,
469,
30,
1220,
7597,
316,
531,
12,
1897,
12,
305,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
291,
373,
972,
12,
2890,
16,
518,
30,
6725,
4672,
3536,
309,
1549,
12,
305,
16,
1026,
22551,
4672,
1220,
7597,
316,
531,
12,
305,
18,
2107,
67,
6270,
67,
6274,
10756,
469,
30,
1220,
7597,
316,
531,
12,
1897,
12,
305,
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
] |
ut,
|
cols,
|
new_def = triples_to_defs(app, model, { field_name: new_triple,
|
54ac66928fb177a639e1f4657a89adc14eff3581 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/54ac66928fb177a639e1f4657a89adc14eff3581/startmigration.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
394,
67,
536,
273,
22388,
67,
869,
67,
12537,
12,
2910,
16,
938,
16,
288,
652,
67,
529,
30,
394,
67,
313,
2444,
16,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
394,
67,
536,
273,
22388,
67,
869,
67,
12537,
12,
2910,
16,
938,
16,
288,
652,
67,
529,
30,
394,
67,
313,
2444,
16,
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
] |
print 'INFO: uninstalling published directory "%s"' % app_name
|
print 'INFO: uninstalling published directory "%s"' % dir_name
|
def uninstall(self): print 'INFO: uninstalling [%s-%s] package...' % (self.name, self.version) # registrations conf_file = configfiles.ConfigFileManager('conf/store.xml') pkgnode = conf_file.getPackageNode(self.name) if pkgnode: print 'INFO: removing package registrations' conf_file.removePackageNode(pkgnode) conf_file.close() # database items items = self.config_file.options('items') itemids = [self.config_file.get('items', x) for x in items] self.db = offlinedb.getHandle() txn = offlinedb.OfflineTransaction() try: try: for itemid in itemids: print 'INFO: removing object %s' % itemid try: oItem = self.db.getItem(itemid, txn) except: pass else: oItem.delete(txn) txn.commit() except Exception, e: txn.abort() raise e sys.exit(2) finally: offlinedb.close() # uninstall script contents = self.package_file.getnames() if '_uninstall.py' in contents: print 'INFO: running uninstallation script...' self.package_file.extract('_uninstall.py', serverSettings.temp_folder) execfile(serverSettings.temp_folder + '/_uninstall.py') os.remove(serverSettings.temp_folder + '/_uninstall.py') # files files = self.config_file.options('files') for fl in files: fname = self.config_file.get('files', fl) print 'INFO: removing file ' + fname if os.path.exists(fname): os.remove(fname) # check if it is a python file if fname[-3:] == '.py': dummy = [ os.remove(fname + x) for x in ('c', 'o') if os.path.exists(fname + x) ] # directories dirs = self.config_file.options('dirs') for dir in dirs: dirname = self.config_file.get('dirs', dir) if os.path.exists(dirname): print 'INFO: removing directory ' + dirname self._deltree(dirname) # published dirs if '_pubdir.xml' in contents: print 'INFO: uninstalling web apps...' dirsfile = self.package_file.extractfile('_pubdir.xml') _dom = minidom.parse(dirsfile) dirsConfig = configfiles.PubDirManager() dir_nodes = _dom.getElementsByTagName('dir') for dir_node in dir_nodes: #app_node = app_node.cloneNode(True) dir_name = dir_node.getAttribute('name') print 'INFO: uninstalling published directory "%s"' % app_name old_node = dirsConfig.getDirNode(dir_name) if old_node: dirsConfig.removeDirNode(old_node) else: print 'WARNING: published directory "%s" does not exist' % app_name dirname = 'pubdir/' + dir_name if os.path.exists(dirname): self._deltree(dirname)
|
2c7dd3f07ce9f11c27dc3916112c0a134ccac164 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2504/2c7dd3f07ce9f11c27dc3916112c0a134ccac164/pakager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16577,
12,
2890,
4672,
1172,
296,
5923,
30,
16577,
310,
9799,
87,
6456,
87,
65,
2181,
7821,
738,
261,
2890,
18,
529,
16,
365,
18,
1589,
13,
225,
468,
28620,
2195,
67,
768,
273,
642,
2354,
18,
13705,
1318,
2668,
3923,
19,
2233,
18,
2902,
6134,
2365,
1600,
390,
273,
2195,
67,
768,
18,
588,
2261,
907,
12,
2890,
18,
529,
13,
309,
2365,
1600,
390,
30,
1172,
296,
5923,
30,
9427,
2181,
28620,
11,
2195,
67,
768,
18,
4479,
2261,
907,
12,
5465,
1600,
390,
13,
2195,
67,
768,
18,
4412,
1435,
225,
468,
2063,
1516,
1516,
273,
365,
18,
1425,
67,
768,
18,
2116,
2668,
3319,
6134,
761,
2232,
273,
306,
2890,
18,
1425,
67,
768,
18,
588,
2668,
3319,
2187,
619,
13,
364,
619,
316,
1516,
65,
365,
18,
1966,
273,
434,
2242,
1920,
70,
18,
588,
3259,
1435,
7827,
273,
434,
2242,
1920,
70,
18,
23106,
3342,
1435,
775,
30,
775,
30,
364,
16862,
316,
761,
2232,
30,
1172,
296,
5923,
30,
9427,
733,
738,
87,
11,
738,
16862,
775,
30,
22028,
273,
365,
18,
1966,
18,
588,
1180,
12,
17252,
16,
7827,
13,
1335,
30,
1342,
469,
30,
22028,
18,
3733,
12,
24790,
13,
7827,
18,
7371,
1435,
1335,
1185,
16,
425,
30,
7827,
18,
18623,
1435,
1002,
425,
2589,
18,
8593,
12,
22,
13,
3095,
30,
434,
2242,
1920,
70,
18,
4412,
1435,
225,
468,
16577,
2728,
2939,
273,
365,
18,
5610,
67,
768,
18,
588,
1973,
1435,
309,
2070,
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,
16577,
12,
2890,
4672,
1172,
296,
5923,
30,
16577,
310,
9799,
87,
6456,
87,
65,
2181,
7821,
738,
261,
2890,
18,
529,
16,
365,
18,
1589,
13,
225,
468,
28620,
2195,
67,
768,
273,
642,
2354,
18,
13705,
1318,
2668,
3923,
19,
2233,
18,
2902,
6134,
2365,
1600,
390,
273,
2195,
67,
768,
18,
588,
2261,
907,
12,
2890,
18,
529,
13,
309,
2365,
1600,
390,
30,
1172,
296,
5923,
30,
9427,
2181,
28620,
11,
2195,
67,
768,
18,
4479,
2261,
907,
12,
5465,
1600,
390,
13,
2195,
67,
768,
18,
4412,
1435,
225,
468,
2063,
1516,
1516,
273,
365,
18,
1425,
67,
768,
18,
2116,
2668,
3319,
6134,
761,
2232,
273,
306,
2890,
18,
1425,
67,
768,
2
] |
print "num_vertices = " + str(area.num_vertices(a, curve))
|
def cut_area(a, do_rapid, rapid_down_to_height, final_depth): print "num_curves = " + str(area.num_curves(a)) for curve in range(0, area.num_curves(a)): px = 0.0 py = 0.0 print "num_vertices = " + str(area.num_vertices(a, curve)) for vertex in range(0, area.num_vertices(a, curve)): sp, x, y, cx, cy = area.get_vertex(a, curve, vertex) if do_rapid: # rapid across rapid(x, y) ##rapid down rapid(z = rapid_down_to_height) #feed down feed(z = final_depth) do_rapid = False else: if sp == 1: arc_ccw(x, y, i = cx - px, j = cy - py) elif sp == -1: arc_cw(x, y, i = cx - px, j = cy - py) else: feed(x, y) px = x py = y
|
d08379b1231e3a601d94d8777964818b35b3055f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12576/d08379b1231e3a601d94d8777964818b35b3055f/area_funcs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6391,
67,
5036,
12,
69,
16,
741,
67,
1266,
350,
16,
767,
6610,
67,
2378,
67,
869,
67,
4210,
16,
727,
67,
5979,
4672,
1172,
315,
2107,
67,
1397,
3324,
273,
315,
397,
609,
12,
5036,
18,
2107,
67,
1397,
3324,
12,
69,
3719,
364,
8882,
316,
1048,
12,
20,
16,
5091,
18,
2107,
67,
1397,
3324,
12,
69,
3719,
30,
10318,
273,
374,
18,
20,
2395,
273,
374,
18,
20,
364,
5253,
316,
1048,
12,
20,
16,
5091,
18,
2107,
67,
17476,
12,
69,
16,
8882,
3719,
30,
1694,
16,
619,
16,
677,
16,
9494,
16,
6143,
273,
5091,
18,
588,
67,
15281,
12,
69,
16,
8882,
16,
5253,
13,
309,
741,
67,
1266,
350,
30,
468,
767,
6610,
10279,
767,
6610,
12,
92,
16,
677,
13,
225,
7541,
1266,
350,
2588,
767,
6610,
12,
94,
273,
767,
6610,
67,
2378,
67,
869,
67,
4210,
13,
225,
468,
7848,
2588,
4746,
12,
94,
273,
727,
67,
5979,
13,
225,
741,
67,
1266,
350,
273,
1083,
469,
30,
309,
1694,
422,
404,
30,
8028,
67,
952,
91,
12,
92,
16,
677,
16,
277,
273,
9494,
300,
10318,
16,
525,
273,
6143,
300,
2395,
13,
1327,
1694,
422,
300,
21,
30,
8028,
67,
71,
91,
12,
92,
16,
677,
16,
277,
273,
9494,
300,
10318,
16,
525,
273,
6143,
300,
2395,
13,
469,
30,
4746,
12,
92,
16,
677,
13,
225,
10318,
273,
619,
2395,
273,
677,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6391,
67,
5036,
12,
69,
16,
741,
67,
1266,
350,
16,
767,
6610,
67,
2378,
67,
869,
67,
4210,
16,
727,
67,
5979,
4672,
1172,
315,
2107,
67,
1397,
3324,
273,
315,
397,
609,
12,
5036,
18,
2107,
67,
1397,
3324,
12,
69,
3719,
364,
8882,
316,
1048,
12,
20,
16,
5091,
18,
2107,
67,
1397,
3324,
12,
69,
3719,
30,
10318,
273,
374,
18,
20,
2395,
273,
374,
18,
20,
364,
5253,
316,
1048,
12,
20,
16,
5091,
18,
2107,
67,
17476,
12,
69,
16,
8882,
3719,
30,
1694,
16,
619,
16,
677,
16,
9494,
16,
6143,
273,
5091,
18,
588,
67,
15281,
12,
69,
16,
8882,
16,
5253,
13,
309,
741,
67,
1266,
350,
30,
468,
2
] |
|
webbrowser.open(url)
|
if len(url) > 2047: url = url[:2047] try: webbrowser.open(url) except error: traceback.print_exc()
|
def openExternalURL(self, url): webbrowser.open(url)
|
9635f15988cf3e0603b78f7afb2f51f067ac914a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/9635f15988cf3e0603b78f7afb2f51f067ac914a/UIBackendDelegate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
6841,
1785,
12,
2890,
16,
880,
4672,
3311,
11213,
18,
3190,
12,
718,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
6841,
1785,
12,
2890,
16,
880,
4672,
3311,
11213,
18,
3190,
12,
718,
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
] |
if valign == 'super': parent = inline if istate.nest and bstate.inline is not None: parent = bstate.inline istate.nest = False inline = etree.SubElement(parent, XHTML('sup')) elif valign == 'sub': parent = inline if istate.nest and bstate.inline is not None: parent = bstate.inline istate.nest = False inline = etree.SubElement(parent, XHTML('sub')) elif fsize != 3:
|
if fsize != 3:
|
def mobimlize_content(self, tag, text, bstate, istates): 'Convert text content' if text or tag != 'br': bstate.content = True istate = istates[-1] para = bstate.para if tag in SPECIAL_TAGS and not text: para = para if para is not None else bstate.body elif para is None or tag in ('td', 'th'): body = bstate.body if bstate.pbreak: etree.SubElement(body, MBP('pagebreak')) bstate.pbreak = False bstate.istate = None bstate.anchor = None parent = bstate.nested[-1] if bstate.nested else bstate.body indent = istate.indent left = istate.left if isinstance(indent, basestring): indent = 0 if indent < 0 and abs(indent) < left: left += indent indent = 0 elif indent != 0 and abs(indent) < self.profile.fbase: indent = (indent / abs(indent)) * self.profile.fbase if tag in NESTABLE_TAGS and not istate.rendered: para = wrapper = etree.SubElement( parent, XHTML(tag), attrib=istate.attrib) bstate.nested.append(para) if tag == 'li' and len(istates) > 1: istates[-2].list_num += 1 para.attrib['value'] = str(istates[-2].list_num) elif tag in NESTABLE_TAGS and istate.rendered: para = wrapper = bstate.nested[-1] elif left > 0 and indent >= 0: ems = self.profile.mobi_ems_per_blockquote para = wrapper = etree.SubElement(parent, XHTML('blockquote')) para = wrapper emleft = int(round(left / self.profile.fbase)) - ems emleft = min((emleft, 10)) while emleft > ems/2.0: para = etree.SubElement(para, XHTML('blockquote')) emleft -= ems else: para = wrapper = etree.SubElement(parent, XHTML('p')) bstate.inline = bstate.para = para vspace = bstate.vpadding + bstate.vmargin bstate.vpadding = bstate.vmargin = 0 if tag not in TABLE_TAGS: wrapper.attrib['height'] = self.mobimlize_measure(vspace) para.attrib['width'] = self.mobimlize_measure(indent) elif tag == 'table' and vspace > 0: vspace = int(round(vspace / self.profile.fbase)) while vspace > 0: wrapper.addprevious(etree.Element(XHTML('br'))) vspace -= 1 if istate.halign != 'auto' and isinstance(istate.halign, (str, unicode)): para.attrib['align'] = istate.halign istate.rendered = True pstate = bstate.istate if tag in CONTENT_TAGS: bstate.inline = para pstate = bstate.istate = None etree.SubElement(para, XHTML(tag), attrib=istate.attrib) elif tag in TABLE_TAGS: para.attrib['valign'] = 'top' if istate.ids: last = bstate.body[-1] for id in istate.ids: last.addprevious(etree.Element(XHTML('a'), attrib={'id': id})) istate.ids.clear() if not text: return if not pstate or istate != pstate: inline = para valign = istate.valign fsize = istate.fsize href = istate.href if not href: bstate.anchor = None elif pstate and pstate.href == href: inline = bstate.anchor else: inline = etree.SubElement(inline, XHTML('a'), href=href) bstate.anchor = inline if valign == 'super': parent = inline if istate.nest and bstate.inline is not None: parent = bstate.inline istate.nest = False inline = etree.SubElement(parent, XHTML('sup')) elif valign == 'sub': parent = inline if istate.nest and bstate.inline is not None: parent = bstate.inline istate.nest = False inline = etree.SubElement(parent, XHTML('sub')) elif fsize != 3: inline = etree.SubElement(inline, XHTML('font'), size=str(fsize)) if istate.family == 'monospace': inline = etree.SubElement(inline, XHTML('tt')) if istate.italic: inline = etree.SubElement(inline, XHTML('i')) if istate.bold: inline = etree.SubElement(inline, XHTML('b')) if istate.bgcolor is not None and istate.bgcolor != 'transparent' : inline = etree.SubElement(inline, XHTML('span'), bgcolor=istate.bgcolor) if istate.fgcolor != 'black': inline = etree.SubElement(inline, XHTML('font'), color=unicode(istate.fgcolor)) if istate.strikethrough: inline = etree.SubElement(inline, XHTML('s')) if istate.underline: inline = etree.SubElement(inline, XHTML('u')) bstate.inline = inline bstate.istate = istate inline = bstate.inline content = self.preize_text(text) if istate.preserve else [text] for item in content: if isinstance(item, basestring): if len(inline) == 0: inline.text = (inline.text or '') + item else: last = inline[-1] last.tail = (last.tail or '') + item else: inline.append(item)
|
7603f5b51cdca525812216d004694584ff3aa791 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/7603f5b51cdca525812216d004694584ff3aa791/mobiml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
947,
381,
80,
554,
67,
1745,
12,
2890,
16,
1047,
16,
977,
16,
324,
2019,
16,
277,
7992,
4672,
296,
2723,
977,
913,
11,
309,
977,
578,
1047,
480,
296,
2848,
4278,
324,
2019,
18,
1745,
273,
1053,
277,
2019,
273,
277,
7992,
18919,
21,
65,
12602,
273,
324,
2019,
18,
25072,
309,
1047,
316,
22872,
6365,
67,
29915,
471,
486,
977,
30,
12602,
273,
12602,
309,
12602,
353,
486,
599,
469,
324,
2019,
18,
3432,
1327,
12602,
353,
599,
578,
1047,
316,
7707,
4465,
2187,
296,
451,
11,
4672,
1417,
273,
324,
2019,
18,
3432,
309,
324,
2019,
18,
5733,
870,
30,
12031,
18,
1676,
1046,
12,
3432,
16,
17897,
52,
2668,
2433,
8820,
26112,
324,
2019,
18,
5733,
870,
273,
1083,
324,
2019,
18,
376,
340,
273,
599,
324,
2019,
18,
16215,
273,
599,
982,
273,
324,
2019,
18,
12985,
18919,
21,
65,
309,
324,
2019,
18,
12985,
469,
324,
2019,
18,
3432,
3504,
273,
277,
2019,
18,
9355,
2002,
273,
277,
2019,
18,
4482,
309,
1549,
12,
9355,
16,
10699,
4672,
3504,
273,
374,
309,
3504,
411,
374,
471,
2417,
12,
9355,
13,
411,
2002,
30,
2002,
1011,
3504,
3504,
273,
374,
1327,
3504,
480,
374,
471,
2417,
12,
9355,
13,
411,
365,
18,
5040,
18,
74,
1969,
30,
3504,
273,
261,
9355,
342,
2417,
12,
9355,
3719,
380,
365,
18,
5040,
18,
74,
1969,
309,
1047,
316,
423,
11027,
2782,
67,
29915,
471,
486,
277,
2019,
18,
26332,
30,
12602,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
947,
381,
80,
554,
67,
1745,
12,
2890,
16,
1047,
16,
977,
16,
324,
2019,
16,
277,
7992,
4672,
296,
2723,
977,
913,
11,
309,
977,
578,
1047,
480,
296,
2848,
4278,
324,
2019,
18,
1745,
273,
1053,
277,
2019,
273,
277,
7992,
18919,
21,
65,
12602,
273,
324,
2019,
18,
25072,
309,
1047,
316,
22872,
6365,
67,
29915,
471,
486,
977,
30,
12602,
273,
12602,
309,
12602,
353,
486,
599,
469,
324,
2019,
18,
3432,
1327,
12602,
353,
599,
578,
1047,
316,
7707,
4465,
2187,
296,
451,
11,
4672,
1417,
273,
324,
2019,
18,
3432,
309,
324,
2019,
18,
5733,
870,
30,
12031,
18,
1676,
1046,
12,
3432,
16,
17897,
52,
2668,
2433,
8820,
26112,
324,
2
] |
self.dpi, self.saved_image_contents]
|
self.font_size, self.decimals, self.saved_image_contents]
|
def settings(self): """Return the settings to be loaded or saved to/from the pipeline These are the settings (from cellprofiler.settings) that are either read from the strings in the pipeline or written out to the pipeline. The settings should appear in a consistent order so they can be matched to the strings in the pipeline. """ return [self.objects_or_image, self.objects_name, self.measurement, self.image_name, self.text_color, self.display_image, self.dpi, self.saved_image_contents]
|
edc598b9bdc386736a3751d962a840353fbc9c99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2870/edc598b9bdc386736a3751d962a840353fbc9c99/displaydataonimage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1947,
12,
2890,
4672,
3536,
990,
326,
1947,
358,
506,
4203,
578,
5198,
358,
19,
2080,
326,
5873,
225,
8646,
854,
326,
1947,
261,
2080,
2484,
23097,
18,
4272,
13,
716,
854,
3344,
855,
628,
326,
2064,
316,
326,
5873,
578,
5941,
596,
358,
326,
5873,
18,
1021,
1947,
1410,
9788,
316,
279,
11071,
1353,
1427,
2898,
848,
506,
4847,
358,
326,
2064,
316,
326,
5873,
18,
3536,
327,
306,
2890,
18,
6911,
67,
280,
67,
2730,
16,
365,
18,
6911,
67,
529,
16,
365,
18,
16944,
16,
365,
18,
2730,
67,
529,
16,
365,
18,
955,
67,
3266,
16,
365,
18,
5417,
67,
2730,
16,
365,
18,
5776,
67,
1467,
16,
365,
18,
31734,
16,
365,
18,
14077,
67,
2730,
67,
3980,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1947,
12,
2890,
4672,
3536,
990,
326,
1947,
358,
506,
4203,
578,
5198,
358,
19,
2080,
326,
5873,
225,
8646,
854,
326,
1947,
261,
2080,
2484,
23097,
18,
4272,
13,
716,
854,
3344,
855,
628,
326,
2064,
316,
326,
5873,
578,
5941,
596,
358,
326,
5873,
18,
1021,
1947,
1410,
9788,
316,
279,
11071,
1353,
1427,
2898,
848,
506,
4847,
358,
326,
2064,
316,
326,
5873,
18,
3536,
327,
306,
2890,
18,
6911,
67,
280,
67,
2730,
16,
365,
18,
6911,
67,
529,
16,
365,
18,
16944,
16,
365,
18,
2730,
67,
529,
16,
365,
18,
955,
67,
3266,
16,
365,
18,
5417,
67,
2730,
16,
365,
18,
5776,
67,
1467,
16,
365,
18,
31734,
16,
365,
18,
2
] |
def next_step_prepend(self, step):
|
def next_step_prepend(self, fn, *args, **dargs):
|
def next_step_prepend(self, step): """Insert a new step, executing first""" if not isinstance(step[0], basestring): step[0] = step[0].__name__ self.steps.insert(0, step) pickle.dump(self.steps, open(self.control + '.state', 'w'))
|
fa764631d776324d7bff704fa8425960083dba86 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/fa764631d776324d7bff704fa8425960083dba86/job.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
4119,
67,
23100,
12,
2890,
16,
2295,
16,
380,
1968,
16,
2826,
72,
1968,
4672,
3536,
4600,
279,
394,
2235,
16,
11274,
1122,
8395,
309,
486,
1549,
12,
4119,
63,
20,
6487,
10699,
4672,
2235,
63,
20,
65,
273,
2235,
63,
20,
8009,
972,
529,
972,
365,
18,
8986,
18,
6387,
12,
20,
16,
2235,
13,
13379,
18,
8481,
12,
2890,
18,
8986,
16,
1696,
12,
2890,
18,
7098,
397,
2418,
2019,
2187,
296,
91,
26112,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
4119,
67,
23100,
12,
2890,
16,
2295,
16,
380,
1968,
16,
2826,
72,
1968,
4672,
3536,
4600,
279,
394,
2235,
16,
11274,
1122,
8395,
309,
486,
1549,
12,
4119,
63,
20,
6487,
10699,
4672,
2235,
63,
20,
65,
273,
2235,
63,
20,
8009,
972,
529,
972,
365,
18,
8986,
18,
6387,
12,
20,
16,
2235,
13,
13379,
18,
8481,
12,
2890,
18,
8986,
16,
1696,
12,
2890,
18,
7098,
397,
2418,
2019,
2187,
296,
91,
26112,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
file_name_pattern = r"<title>YouTube - (.*)</title>"
|
file_name_pattern = r"'VIDEO_TITLE': '(.*)',"
|
def get_file_name(self): if self.html == None: self.download_html()
|
bcdef10ae4237397c0a30f4efa6ae765ea1493e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/bcdef10ae4237397c0a30f4efa6ae765ea1493e0/YoutubeCom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
529,
12,
2890,
4672,
309,
365,
18,
2620,
422,
599,
30,
365,
18,
7813,
67,
2620,
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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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
] |
lcl = dict({'job': self}) str = """ from common.error import * from autotest_utils import * """ exec(str, lcl, lcl)
|
state_existed = self.__load_state() lcl = {'job': self} exec(JOB_PREAMBLE, lcl, lcl)
|
def step_engine(self): """the stepping engine -- if the control file defines step_init we will be using this engine to drive multiple runs. """ """Do the next step""" lcl = dict({'job': self})
|
dd4708a07aa2efc5f355ddd307dade3be9e87db0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/dd4708a07aa2efc5f355ddd307dade3be9e87db0/job.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
67,
8944,
12,
2890,
4672,
3536,
5787,
2235,
1382,
4073,
1493,
309,
326,
3325,
585,
11164,
2235,
67,
2738,
732,
903,
506,
1450,
333,
4073,
358,
14316,
3229,
7597,
18,
3536,
3536,
3244,
326,
1024,
2235,
8395,
328,
830,
273,
2065,
12590,
11,
4688,
4278,
365,
6792,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
67,
8944,
12,
2890,
4672,
3536,
5787,
2235,
1382,
4073,
1493,
309,
326,
3325,
585,
11164,
2235,
67,
2738,
732,
903,
506,
1450,
333,
4073,
358,
14316,
3229,
7597,
18,
3536,
3536,
3244,
326,
1024,
2235,
8395,
328,
830,
273,
2065,
12590,
11,
4688,
4278,
365,
6792,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 prefix[-1:] != '/': prefix = prefix + '/' n = len(prefix)
|
def forget_dir(prefix): """Forget about a directory and all entries in it, but not about entries in subdirectories.""" if prefix[-1:] == '/' and prefix != '/': prefix = prefix[:-1] forget(prefix) if prefix[-1:] != '/': prefix = prefix + '/' n = len(prefix) for path in cache.keys(): if path[:n] == prefix: rest = path[n:] if rest[-1:] == '/': rest = rest[:-1] if '/' not in rest: del cache[path]
|
c5ad71f1ae1b114b5d8aef77121988e50a13a9d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c5ad71f1ae1b114b5d8aef77121988e50a13a9d1/statcache.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13776,
67,
1214,
12,
3239,
4672,
3536,
1290,
588,
2973,
279,
1867,
471,
777,
3222,
316,
518,
16,
1496,
486,
2973,
3222,
316,
31220,
12123,
309,
1633,
18919,
21,
26894,
422,
2023,
471,
1633,
480,
2023,
30,
1633,
273,
1633,
10531,
17,
21,
65,
13776,
12,
3239,
13,
364,
589,
316,
1247,
18,
2452,
13332,
309,
589,
10531,
82,
65,
422,
1633,
30,
3127,
273,
589,
63,
82,
26894,
309,
3127,
18919,
21,
26894,
422,
2023,
30,
3127,
273,
3127,
10531,
17,
21,
65,
309,
2023,
486,
316,
3127,
30,
1464,
1247,
63,
803,
65,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13776,
67,
1214,
12,
3239,
4672,
3536,
1290,
588,
2973,
279,
1867,
471,
777,
3222,
316,
518,
16,
1496,
486,
2973,
3222,
316,
31220,
12123,
309,
1633,
18919,
21,
26894,
422,
2023,
471,
1633,
480,
2023,
30,
1633,
273,
1633,
10531,
17,
21,
65,
13776,
12,
3239,
13,
364,
589,
316,
1247,
18,
2452,
13332,
309,
589,
10531,
82,
65,
422,
1633,
30,
3127,
273,
589,
63,
82,
26894,
309,
3127,
18919,
21,
26894,
422,
2023,
30,
3127,
273,
3127,
10531,
17,
21,
65,
309,
2023,
486,
316,
3127,
30,
1464,
1247,
63,
803,
65,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
time.sleep(.1)
|
n = 500 while PORT is None and n > 0: time.sleep(0.01) n -= 1 time.sleep(0.5)
|
def setUp(self): self.evt = threading.Event() servargs = (self.evt, "220 Hola mundo\n") threading.Thread(target=server, args=servargs).start() time.sleep(.1)
|
7b4fd585717660ae0f6a41180e84e8735a9ddc8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/7b4fd585717660ae0f6a41180e84e8735a9ddc8d/test_smtplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
73,
11734,
273,
17254,
18,
1133,
1435,
703,
1401,
564,
273,
261,
2890,
18,
73,
11734,
16,
315,
27246,
670,
355,
69,
312,
31226,
64,
82,
7923,
17254,
18,
3830,
12,
3299,
33,
3567,
16,
833,
33,
550,
1401,
564,
2934,
1937,
1435,
813,
18,
19607,
10604,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
73,
11734,
273,
17254,
18,
1133,
1435,
703,
1401,
564,
273,
261,
2890,
18,
73,
11734,
16,
315,
27246,
670,
355,
69,
312,
31226,
64,
82,
7923,
17254,
18,
3830,
12,
3299,
33,
3567,
16,
833,
33,
550,
1401,
564,
2934,
1937,
1435,
813,
18,
19607,
10604,
21,
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
] |
self.editRestriction, self.moveRestriction = parseRestrictions(self.restrictions)
|
self.editRestriction, self.moveRestriction \ = parseRestrictions(self.restrictions)
|
def endElement(self, name): if name == 'contributor': self.inContributorTag = False elif name == 'restrictions': self.editRestriction, self.moveRestriction = parseRestrictions(self.restrictions) elif name == 'redirect': self.isredirect = True elif name == 'revision': # All done for this. # Remove trailing newlines and spaces text = self.text.rstrip('\n ') # Replace newline by cr/nl text = u'\r\n'.join(text.split('\n')) # Decode the timestamp timestamp = (self.timestamp[0:4]+ self.timestamp[5:7]+ self.timestamp[8:10]+ self.timestamp[11:13]+ self.timestamp[14:16]+ self.timestamp[17:19]) self.title = self.title.strip() # Report back to the caller entry = XmlEntry(self.title, self.id, text, self.username, self.ipedit, timestamp, self.editRestriction, self.moveRestriction, self.revisionid, self.comment, self.isredirect) self.inRevisionTag = False self.callback(entry) elif self.headercallback: if name == 'namespace': self.header.namespaces[self.namespaceid] = self.namespace elif name == 'siteinfo': self.headercallback(self.header) self.header = None # Characters between this closing tag and the next opening tag is # ignored, it's just whitespace for XML formatting. self.destination = None
|
cea3abc8955b082fe2ab3706db1a0ad41622e9af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/cea3abc8955b082fe2ab3706db1a0ad41622e9af/xmlreader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
309,
508,
422,
296,
591,
19293,
4278,
365,
18,
267,
442,
19293,
1805,
273,
1083,
1327,
508,
422,
296,
23954,
87,
4278,
365,
18,
4619,
11670,
16,
365,
18,
8501,
11670,
521,
273,
1109,
26175,
12,
2890,
18,
23954,
87,
13,
1327,
508,
422,
296,
7590,
4278,
365,
18,
291,
7590,
273,
1053,
1327,
508,
422,
296,
13057,
4278,
468,
4826,
2731,
364,
333,
18,
468,
3581,
7341,
19181,
471,
7292,
977,
273,
365,
18,
955,
18,
86,
6406,
2668,
64,
82,
8624,
468,
6910,
9472,
635,
4422,
19,
14039,
977,
273,
582,
8314,
86,
64,
82,
10332,
5701,
12,
955,
18,
4939,
2668,
64,
82,
26112,
468,
6209,
326,
2858,
2858,
273,
261,
2890,
18,
5508,
63,
20,
30,
24,
3737,
365,
18,
5508,
63,
25,
30,
27,
3737,
365,
18,
5508,
63,
28,
30,
2163,
3737,
365,
18,
5508,
63,
2499,
30,
3437,
3737,
365,
18,
5508,
63,
3461,
30,
2313,
3737,
365,
18,
5508,
63,
4033,
30,
3657,
5717,
365,
18,
2649,
273,
365,
18,
2649,
18,
6406,
1435,
468,
8706,
1473,
358,
326,
4894,
1241,
273,
5714,
1622,
12,
2890,
18,
2649,
16,
365,
18,
350,
16,
977,
16,
365,
18,
5053,
16,
365,
18,
625,
4619,
16,
2858,
16,
365,
18,
4619,
11670,
16,
365,
18,
8501,
11670,
16,
365,
18,
13057,
350,
16,
365,
18,
3469,
16,
365,
18,
291,
7590,
13,
365,
18,
267,
7939,
1805,
273,
1083,
365,
18,
3394,
12,
4099,
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,
14840,
12,
2890,
16,
508,
4672,
309,
508,
422,
296,
591,
19293,
4278,
365,
18,
267,
442,
19293,
1805,
273,
1083,
1327,
508,
422,
296,
23954,
87,
4278,
365,
18,
4619,
11670,
16,
365,
18,
8501,
11670,
521,
273,
1109,
26175,
12,
2890,
18,
23954,
87,
13,
1327,
508,
422,
296,
7590,
4278,
365,
18,
291,
7590,
273,
1053,
1327,
508,
422,
296,
13057,
4278,
468,
4826,
2731,
364,
333,
18,
468,
3581,
7341,
19181,
471,
7292,
977,
273,
365,
18,
955,
18,
86,
6406,
2668,
64,
82,
8624,
468,
6910,
9472,
635,
4422,
19,
14039,
977,
273,
582,
8314,
86,
64,
82,
10332,
5701,
12,
955,
18,
4939,
2668,
64,
82,
26112,
468,
6209,
326,
2858,
2858,
2
] |
return self._prime
|
if len(self._raw['milnor']) == 0: return 1 else: return self._prime
|
def additive_order(self): """ The additive order of any element of the mod p Steenrod algebra is p.
|
1bc455c6708388944010d0eccf8c34ec66932b9d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1bc455c6708388944010d0eccf8c34ec66932b9d/steenrod_algebra_element.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,
527,
3720,
67,
1019,
12,
2890,
4672,
3536,
1021,
527,
3720,
1353,
434,
1281,
930,
434,
326,
681,
293,
7780,
275,
303,
72,
524,
29087,
353,
293,
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
] |
except Exception as inst:
|
except Exception, inst:
|
def close(self, file): """ Close open port.
|
368bdd74e063c19063d4c5db99e94bb088943ceb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/368bdd74e063c19063d4c5db99e94bb088943ceb/virtio_guest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
16,
585,
4672,
3536,
3527,
1696,
1756,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
16,
585,
4672,
3536,
3527,
1696,
1756,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if limit is None and offset == '0': return _remove_limit_offset(sql)
|
def _mangle_sql(self, sql): order, limit, offset = _re_order_limit_offset.search(sql).groups() # Hack around an issue in [7885], extraneous "OFFSET 0": if limit is None and offset == '0': return _remove_limit_offset(sql) # If we have no OFFSET, look for LIMIT and replace with TOP if offset is None: if limit is None: return sql return self._replace_limit_with_top(sql, int(limit)) # Otherwise we have an OFFSET, synthesize an ordering if needed if order is None: meta = self.get_meta() order = meta.pk.attname+" ASC" return self._rewrite_limit_offset(sql, order, int(limit), int(offset))
|
4c8177be7cc904d5bf4a8dcebcb8057a88ac544c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1254/4c8177be7cc904d5bf4a8dcebcb8057a88ac544c/query.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
81,
4341,
67,
4669,
12,
2890,
16,
1847,
4672,
1353,
16,
1800,
16,
1384,
273,
389,
266,
67,
1019,
67,
3595,
67,
3348,
18,
3072,
12,
4669,
2934,
4650,
1435,
225,
468,
670,
484,
6740,
392,
5672,
316,
306,
27,
5482,
25,
6487,
7582,
15522,
315,
11271,
374,
6877,
7,
971,
732,
1240,
1158,
26019,
16,
2324,
364,
13319,
471,
1453,
598,
18680,
309,
1384,
353,
599,
30,
309,
1800,
353,
599,
30,
327,
1847,
327,
365,
6315,
2079,
67,
3595,
67,
1918,
67,
3669,
12,
4669,
16,
509,
12,
3595,
3719,
225,
468,
5272,
732,
1240,
392,
26019,
16,
6194,
7915,
554,
392,
9543,
309,
3577,
309,
1353,
353,
599,
30,
2191,
273,
365,
18,
588,
67,
3901,
1435,
1353,
273,
2191,
18,
5465,
18,
4558,
529,
9078,
8310,
6,
225,
327,
365,
6315,
21489,
67,
3595,
67,
3348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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
81,
4341,
67,
4669,
12,
2890,
16,
1847,
4672,
1353,
16,
1800,
16,
1384,
273,
389,
266,
67,
1019,
67,
3595,
67,
3348,
18,
3072,
12,
4669,
2934,
4650,
1435,
225,
468,
670,
484,
6740,
392,
5672,
316,
306,
27,
5482,
25,
6487,
7582,
15522,
315,
11271,
374,
6877,
7,
971,
732,
1240,
1158,
26019,
16,
2324,
364,
13319,
471,
1453,
598,
18680,
309,
1384,
353,
599,
30,
309,
1800,
353,
599,
30,
327,
1847,
327,
365,
6315,
2079,
67,
3595,
67,
1918,
67,
3669,
12,
4669,
16,
509,
12,
3595,
3719,
225,
468,
5272,
732,
1240,
392,
26019,
16,
6194,
7915,
554,
392,
9543,
309,
3577,
309,
1353,
353,
599,
30,
2191,
273,
365,
18,
588,
2
] |
|
def mobimlize_elem(self, elem, stylizer, bstate, istates):
|
def mobimlize_elem(self, elem, stylizer, bstate, istates, ignore_valign=False):
|
def mobimlize_elem(self, elem, stylizer, bstate, istates): if not isinstance(elem.tag, basestring) \ or namespace(elem.tag) != XHTML_NS: return style = stylizer.style(elem) # <mbp:frame-set/> does not exist lalalala if style['display'] in ('none', 'oeb-page-head', 'oeb-page-foot') \ or style['visibility'] == 'hidden': return tag = barename(elem.tag) istate = copy.copy(istates[-1]) istate.rendered = False istate.list_num = 0 istates.append(istate) left = 0 display = style['display'] isblock = not display.startswith('inline') isblock = isblock and style['float'] == 'none' isblock = isblock and tag != 'br' if isblock: bstate.para = None istate.halign = style['text-align'] istate.indent = style['text-indent'] if style['margin-left'] == 'auto' \ and style['margin-right'] == 'auto': istate.halign = 'center' margin = asfloat(style['margin-left']) padding = asfloat(style['padding-left']) if tag != 'body': left = margin + padding istate.left += left vmargin = asfloat(style['margin-top']) bstate.vmargin = max((bstate.vmargin, vmargin)) vpadding = asfloat(style['padding-top']) if vpadding > 0: bstate.vpadding += bstate.vmargin bstate.vmargin = 0 bstate.vpadding += vpadding elif not istate.href: margin = asfloat(style['margin-left']) padding = asfloat(style['padding-left']) lspace = margin + padding if lspace > 0: spaces = int(round((lspace * 3) / style['font-size'])) elem.text = (u'\xa0' * spaces) + (elem.text or '') margin = asfloat(style['margin-right']) padding = asfloat(style['padding-right']) rspace = margin + padding if rspace > 0: spaces = int(round((rspace * 3) / style['font-size'])) if len(elem) == 0: elem.text = (elem.text or '') + (u'\xa0' * spaces) else: last = elem[-1] last.text = (last.text or '') + (u'\xa0' * spaces) if bstate.content and style['page-break-before'] in PAGE_BREAKS: bstate.pbreak = True istate.fsize = self.mobimlize_font(style['font-size']) istate.italic = True if style['font-style'] == 'italic' else False weight = style['font-weight'] istate.bold = weight in ('bold', 'bolder') or asfloat(weight) > 400 istate.preserve = (style['white-space'] in ('pre', 'pre-wrap')) istate.bgcolor = style['background-color'] istate.fgcolor = style['color'] istate.strikethrough = style['text-decoration'] == 'line-through' istate.underline = style['text-decoration'] == 'underline' if 'monospace' in style['font-family']: istate.family = 'monospace' elif 'sans-serif' in style['font-family']: istate.family = 'sans-serif' else: istate.family = 'serif' valign = style['vertical-align'] if valign in ('super', 'text-top') or asfloat(valign) > 0: istate.nest = istate.valign in ('sub', 'super') istate.valign = 'super' elif valign == 'sub' or asfloat(valign) < 0: istate.nest = istate.valign in ('sub', 'super') istate.valign = 'sub' else: istate.valign = 'baseline' if 'id' in elem.attrib: istate.ids.add(elem.attrib['id']) if 'name' in elem.attrib: istate.ids.add(elem.attrib['name']) if tag == 'a' and 'href' in elem.attrib: istate.href = elem.attrib['href'] istate.attrib.clear() if tag == 'img' and 'src' in elem.attrib: istate.attrib['src'] = elem.attrib['src'] istate.attrib['align'] = 'baseline' for prop in ('width', 'height'): if style[prop] != 'auto': value = style[prop] if value == getattr(self.profile, prop): result = '100%' else: try: ems = int(round(float(value) / self.profile.fbase)) except: continue result = "%dem" % ems istate.attrib[prop] = result elif tag == 'hr' and asfloat(style['width']) > 0: prop = style['width'] / self.profile.width istate.attrib['width'] = "%d%%" % int(round(prop * 100)) elif display == 'table': tag = 'table' elif display == 'table-row': tag = 'tr' elif display == 'table-cell': tag = 'td' if tag in TABLE_TAGS and self.ignore_tables: tag = 'span' if tag == 'td' else 'div'
|
7603f5b51cdca525812216d004694584ff3aa791 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/7603f5b51cdca525812216d004694584ff3aa791/mobiml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
947,
381,
80,
554,
67,
10037,
12,
2890,
16,
3659,
16,
16253,
80,
1824,
16,
324,
2019,
16,
277,
7992,
16,
2305,
67,
1125,
724,
33,
8381,
4672,
309,
486,
1549,
12,
10037,
18,
2692,
16,
10699,
13,
521,
578,
1981,
12,
10037,
18,
2692,
13,
480,
30551,
67,
3156,
30,
327,
2154,
273,
16253,
80,
1824,
18,
4060,
12,
10037,
13,
468,
411,
1627,
84,
30,
3789,
17,
542,
21259,
1552,
486,
1005,
328,
287,
287,
287,
69,
309,
2154,
3292,
5417,
3546,
316,
7707,
6102,
2187,
296,
15548,
70,
17,
2433,
17,
1978,
2187,
296,
15548,
70,
17,
2433,
17,
10923,
6134,
521,
578,
2154,
3292,
14422,
3546,
422,
296,
6345,
4278,
327,
1047,
273,
18208,
529,
12,
10037,
18,
2692,
13,
277,
2019,
273,
1610,
18,
3530,
12,
376,
815,
18919,
21,
5717,
277,
2019,
18,
26332,
273,
1083,
277,
2019,
18,
1098,
67,
2107,
273,
374,
277,
7992,
18,
6923,
12,
376,
340,
13,
2002,
273,
374,
2562,
273,
2154,
3292,
5417,
3546,
353,
2629,
273,
486,
2562,
18,
17514,
1918,
2668,
10047,
6134,
353,
2629,
273,
353,
2629,
471,
2154,
3292,
5659,
3546,
422,
296,
6102,
11,
353,
2629,
273,
353,
2629,
471,
1047,
480,
296,
2848,
11,
309,
353,
2629,
30,
324,
2019,
18,
25072,
273,
599,
277,
2019,
18,
76,
7989,
273,
2154,
3292,
955,
17,
7989,
3546,
277,
2019,
18,
9355,
273,
2154,
3292,
955,
17,
9355,
3546,
309,
2154,
3292,
10107,
17,
4482,
3546,
422,
296,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
947,
381,
80,
554,
67,
10037,
12,
2890,
16,
3659,
16,
16253,
80,
1824,
16,
324,
2019,
16,
277,
7992,
16,
2305,
67,
1125,
724,
33,
8381,
4672,
309,
486,
1549,
12,
10037,
18,
2692,
16,
10699,
13,
521,
578,
1981,
12,
10037,
18,
2692,
13,
480,
30551,
67,
3156,
30,
327,
2154,
273,
16253,
80,
1824,
18,
4060,
12,
10037,
13,
468,
411,
1627,
84,
30,
3789,
17,
542,
21259,
1552,
486,
1005,
328,
287,
287,
287,
69,
309,
2154,
3292,
5417,
3546,
316,
7707,
6102,
2187,
296,
15548,
70,
17,
2433,
17,
1978,
2187,
296,
15548,
70,
17,
2433,
17,
10923,
6134,
521,
578,
2154,
3292,
14422,
3546,
422,
296,
6345,
4278,
327,
1047,
273,
2
] |
value = '<a href="../;view?version=%s">%s issue</a>' value = Parser(value % (index, count))
|
value = '<a href="../;view?%s=%s">%s issue</a>' value = Parser(value % (filter, index, count))
|
def view(self, context): namespace = {}
|
cd8c400c39438236e4050aeb9ef5b078f4f88b75 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/cd8c400c39438236e4050aeb9ef5b078f4f88b75/tracker.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
2890,
16,
819,
4672,
1981,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
2890,
16,
819,
4672,
1981,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dprint(recorder)
|
self.dprint(recorder)
|
def action(self, index=-1, multiplier=1): if self.frame.root_accel.isRecordingActions(): recorder = self.frame.root_accel.stopRecordingActions() dprint(recorder) RecentMacros.appendRecording(recorder) macro = RecentMacros.getLastMacro() if macro: dprint("Playing back %s" % macro) wx.CallAfter(macro.playback, self.frame, self.mode, multiplier) else: dprint("No recorded macro.")
|
d77726ef8abb406e3169b9a46422cfcaff76a425 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/d77726ef8abb406e3169b9a46422cfcaff76a425/macro.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
770,
29711,
21,
16,
15027,
33,
21,
4672,
309,
365,
18,
3789,
18,
3085,
67,
30737,
18,
291,
21037,
6100,
13332,
15766,
273,
365,
18,
3789,
18,
3085,
67,
30737,
18,
5681,
21037,
6100,
1435,
365,
18,
72,
1188,
12,
3366,
264,
13,
868,
2998,
9990,
6973,
18,
6923,
21037,
12,
3366,
264,
13,
11522,
273,
868,
2998,
9990,
6973,
18,
588,
3024,
17392,
1435,
309,
11522,
30,
302,
1188,
2932,
11765,
310,
1473,
738,
87,
6,
738,
11522,
13,
7075,
18,
1477,
4436,
12,
26448,
18,
1601,
823,
16,
365,
18,
3789,
16,
365,
18,
3188,
16,
15027,
13,
469,
30,
302,
1188,
2932,
2279,
16421,
11522,
1199,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
770,
29711,
21,
16,
15027,
33,
21,
4672,
309,
365,
18,
3789,
18,
3085,
67,
30737,
18,
291,
21037,
6100,
13332,
15766,
273,
365,
18,
3789,
18,
3085,
67,
30737,
18,
5681,
21037,
6100,
1435,
365,
18,
72,
1188,
12,
3366,
264,
13,
868,
2998,
9990,
6973,
18,
6923,
21037,
12,
3366,
264,
13,
11522,
273,
868,
2998,
9990,
6973,
18,
588,
3024,
17392,
1435,
309,
11522,
30,
302,
1188,
2932,
11765,
310,
1473,
738,
87,
6,
738,
11522,
13,
7075,
18,
1477,
4436,
12,
26448,
18,
1601,
823,
16,
365,
18,
3789,
16,
365,
18,
3188,
16,
15027,
13,
469,
30,
302,
1188,
2932,
2279,
16421,
11522,
1199,
13,
225,
2,
-100,
-100,
-100
] |
nameAndVersion in
|
nameWithVersion in
|
def lookForUpdates(manifestitem, cataloglist, installinfo): """ Looks for updates for a given manifest item that is either installed or scheduled to be installed. This handles not only specific application updates, but also updates that aren't simply later versions of the manifest item. For example, AdobeCameraRaw is an update for Adobe Photoshop, but doesn't update the version of Adobe Photoshop. Returns a list of manifestitem names that are updates for manifestitem. """ nameWithVersion = os.path.split(manifestitem)[1] (name, includedversion) = nameAndVersion(nameWithVersion) # get a list of catalog items that are updates for other items update_list = [] for catalogname in cataloglist: updaters = catalog[catalogname]['updaters'] # list comprehension coming up... update_items = [catalogitem['name'] for catalogitem in updaters if (name in catalogitem.get('update_for',[]) or nameAndVersion in catalogitem.get('update_for',[]))] if update_items: update_list.extend(update_items) if update_list: # make sure the list has only unique items: update_list = list(set(update_list)) return update_list
|
d895a4c106d08d50fd3ac775349fac26b3867f78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/d895a4c106d08d50fd3ac775349fac26b3867f78/updatecheck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
1290,
5121,
12,
14357,
1726,
16,
6222,
1098,
16,
3799,
1376,
4672,
3536,
10176,
87,
364,
4533,
364,
279,
864,
5643,
761,
716,
353,
3344,
5876,
578,
9755,
358,
506,
5876,
18,
1220,
7372,
486,
1338,
2923,
2521,
4533,
16,
1496,
2546,
4533,
716,
11526,
1404,
8616,
5137,
5244,
434,
326,
5643,
761,
18,
2457,
3454,
16,
4052,
947,
73,
16521,
4809,
353,
392,
1089,
364,
4052,
947,
73,
4360,
12440,
18444,
16,
1496,
3302,
1404,
1089,
326,
1177,
434,
4052,
947,
73,
4360,
12440,
18444,
18,
2860,
279,
666,
434,
5643,
1726,
1257,
716,
854,
4533,
364,
5643,
1726,
18,
3536,
508,
1190,
1444,
273,
1140,
18,
803,
18,
4939,
12,
14357,
1726,
25146,
21,
65,
261,
529,
16,
5849,
1589,
13,
273,
508,
1876,
1444,
12,
529,
1190,
1444,
13,
468,
336,
279,
666,
434,
6222,
1516,
716,
854,
4533,
364,
1308,
1516,
1089,
67,
1098,
273,
5378,
364,
6222,
529,
316,
6222,
1098,
30,
2166,
31302,
273,
6222,
63,
7199,
529,
23962,
416,
3404,
414,
3546,
468,
666,
1161,
266,
76,
1451,
19283,
731,
2777,
1089,
67,
3319,
273,
306,
7199,
1726,
3292,
529,
3546,
364,
6222,
1726,
316,
2166,
31302,
309,
261,
529,
316,
6222,
1726,
18,
588,
2668,
2725,
67,
1884,
2187,
63,
5717,
578,
508,
1190,
1444,
316,
6222,
1726,
18,
588,
2668,
2725,
67,
1884,
2187,
8526,
3719,
65,
309,
1089,
67,
3319,
30,
1089,
67,
1098,
18,
14313,
12,
2725,
67,
3319,
13,
309,
1089,
67,
1098,
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,
2324,
1290,
5121,
12,
14357,
1726,
16,
6222,
1098,
16,
3799,
1376,
4672,
3536,
10176,
87,
364,
4533,
364,
279,
864,
5643,
761,
716,
353,
3344,
5876,
578,
9755,
358,
506,
5876,
18,
1220,
7372,
486,
1338,
2923,
2521,
4533,
16,
1496,
2546,
4533,
716,
11526,
1404,
8616,
5137,
5244,
434,
326,
5643,
761,
18,
2457,
3454,
16,
4052,
947,
73,
16521,
4809,
353,
392,
1089,
364,
4052,
947,
73,
4360,
12440,
18444,
16,
1496,
3302,
1404,
1089,
326,
1177,
434,
4052,
947,
73,
4360,
12440,
18444,
18,
2860,
279,
666,
434,
5643,
1726,
1257,
716,
854,
4533,
364,
5643,
1726,
18,
3536,
508,
1190,
1444,
273,
1140,
18,
803,
18,
4939,
12,
14357,
1726,
25146,
21,
65,
2
] |
args=[ _shmemBackstagePass(), size, type, ExprLiteral.FALSE ])
|
args=[ _shmemBackstagePass(), size, type, unsafe ])
|
def _shmemAlloc(size, type): # starts out UNprotected return ExprCall(ExprVar('Shmem::Alloc'), args=[ _shmemBackstagePass(), size, type, ExprLiteral.FALSE ])
|
57b779f8e44f5aec168416e9c11f076681b5b2e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/57b779f8e44f5aec168416e9c11f076681b5b2e4/lower.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
674,
3917,
8763,
12,
1467,
16,
618,
4672,
468,
2542,
596,
5019,
1117,
327,
8074,
1477,
12,
4742,
1537,
2668,
1555,
3917,
2866,
8763,
19899,
833,
22850,
389,
674,
3917,
2711,
12869,
6433,
9334,
963,
16,
618,
16,
7127,
308,
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,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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,
389,
674,
3917,
8763,
12,
1467,
16,
618,
4672,
468,
2542,
596,
5019,
1117,
327,
8074,
1477,
12,
4742,
1537,
2668,
1555,
3917,
2866,
8763,
19899,
833,
22850,
389,
674,
3917,
2711,
12869,
6433,
9334,
963,
16,
618,
16,
7127,
308,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pos = 5
|
pos = 0 profile = request.user.get_profile() ctype = ConfigType.objects.filter(name = type)[0] kind = Processing_kind.objects.filter(name__exact = self.id)[0] frame = range(len(files))[pos:] z = 0 for k in frame: if pos == total: break pos += 1 z += 1 try: f = open(files[k]) content = string.join(f.readlines(), '\n') base = os.path.basename(files[k]) name = base[:base.rfind('.')] res['config'] = str(name) f.close() except Exception, e: continue try: m = ConfigFile.objects.filter(kind = kind, name = name, type = ctype)[0] m.content = content except: m = ConfigFile(kind = kind, name = name, content = content, user = request.user, type = ctype, mode = profile.dflt_mode, group = profile.dflt_group) success = write_proxy(request, m) if z > STEP: break
|
def importConfigFiles(self, request): """ Import all configuration files in a directory. File names are matched against a pattern. """
|
236a6e47a71a984b0d175212e9adf254e5601029 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/236a6e47a71a984b0d175212e9adf254e5601029/pluginmanager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
809,
2697,
12,
2890,
16,
590,
4672,
3536,
6164,
777,
1664,
1390,
316,
279,
1867,
18,
1387,
1257,
854,
4847,
5314,
279,
1936,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
809,
2697,
12,
2890,
16,
590,
4672,
3536,
6164,
777,
1664,
1390,
316,
279,
1867,
18,
1387,
1257,
854,
4847,
5314,
279,
1936,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not os.path.isdir('plugins'): os.mkdir( 'plugins' ) if not os.path.isdir("plugins/"+plugin_name): os.mkdir( "plugins/"+plugin_name )
|
if not os.path.isdir(plugin["output_dir"]): plugin["output_dir"] = "plugins" os.mkdir( plugin["output_dir"] ) if not os.path.isdir(plugin["output_dir"]+"/"+plugin_name): os.mkdir( plugin["output_dir"]+"/"+plugin_name )
|
def make_file( template_dir, plugin_name, replacement_str, filename, new_file_name="", to_lower_case=False ): if not os.path.isdir('templates'): print "Error. There is not templates dir" sys.exit(3) try: f = open( "templates/" + template_dir + "/" + filename , 'r' ) except IOError: return new_file = f.read() f.close if new_file_name=="": new_file_name=plugin_name if to_lower_case: new_file = new_file.replace( replacement_str.lower(), plugin_name.lower() ) else: new_file = new_file.replace( replacement_str, plugin_name ) if not os.path.isdir('plugins'): os.mkdir( 'plugins' ) if not os.path.isdir("plugins/"+plugin_name): os.mkdir( "plugins/"+plugin_name ) try: ext = "." + filename.split('.')[1] except: ext = "" try: g = open( "plugins/" + plugin_name + "/" + new_file_name + ext, "w" ) print "Creating " + "plugins/" + plugin_name + "/" + new_file_name + ext + " file" except: print "plugins/" + plugin_name + "/" + plugin_name + ext print "Output file write error." sys.exit(2) if (ext==".hxx" or ext==".cxx") and plugin["license"]!="null": g.write( license_text + "\n\n" ) g.write( new_file ) g.close()
|
0bb9b8d1224012a3effeb47a46aa7c17b9bcedb7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1456/0bb9b8d1224012a3effeb47a46aa7c17b9bcedb7/TemplatedPluginsGenerator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
768,
12,
1542,
67,
1214,
16,
1909,
67,
529,
16,
6060,
67,
701,
16,
1544,
16,
394,
67,
768,
67,
529,
1546,
3113,
358,
67,
8167,
67,
3593,
33,
8381,
262,
30,
309,
486,
1140,
18,
803,
18,
291,
1214,
2668,
8502,
11,
4672,
1172,
315,
668,
18,
6149,
353,
486,
5539,
1577,
6,
2589,
18,
8593,
12,
23,
13,
775,
30,
284,
273,
1696,
12,
315,
8502,
4898,
397,
1542,
67,
1214,
397,
4016,
397,
1544,
269,
296,
86,
11,
262,
1335,
8340,
30,
327,
394,
67,
768,
273,
284,
18,
896,
1435,
284,
18,
4412,
225,
309,
394,
67,
768,
67,
529,
631,
3660,
30,
394,
67,
768,
67,
529,
33,
4094,
67,
529,
309,
358,
67,
8167,
67,
3593,
30,
394,
67,
768,
273,
394,
67,
768,
18,
2079,
12,
6060,
67,
701,
18,
8167,
9334,
1909,
67,
529,
18,
8167,
1435,
262,
469,
30,
394,
67,
768,
273,
394,
67,
768,
18,
2079,
12,
6060,
67,
701,
16,
1909,
67,
529,
262,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
4094,
9614,
2844,
67,
1214,
11929,
4672,
1909,
9614,
2844,
67,
1214,
11929,
273,
315,
8057,
6,
1140,
18,
26686,
12,
1909,
9614,
2844,
67,
1214,
11929,
262,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
4094,
9614,
2844,
67,
1214,
6,
3737,
6,
4898,
15,
4094,
67,
529,
4672,
1140,
18,
26686,
12,
1909,
9614,
2844,
67,
1214,
6,
3737,
6,
4898,
15,
4094,
67,
529,
262,
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,
1221,
67,
768,
12,
1542,
67,
1214,
16,
1909,
67,
529,
16,
6060,
67,
701,
16,
1544,
16,
394,
67,
768,
67,
529,
1546,
3113,
358,
67,
8167,
67,
3593,
33,
8381,
262,
30,
309,
486,
1140,
18,
803,
18,
291,
1214,
2668,
8502,
11,
4672,
1172,
315,
668,
18,
6149,
353,
486,
5539,
1577,
6,
2589,
18,
8593,
12,
23,
13,
775,
30,
284,
273,
1696,
12,
315,
8502,
4898,
397,
1542,
67,
1214,
397,
4016,
397,
1544,
269,
296,
86,
11,
262,
1335,
8340,
30,
327,
394,
67,
768,
273,
284,
18,
896,
1435,
284,
18,
4412,
225,
309,
394,
67,
768,
67,
529,
631,
3660,
30,
394,
67,
768,
67,
529,
33,
4094,
67,
529,
2
] |
STRING 'r"abc"' (1, 4) (1, 11) OP '+' (1, 12) (1, 13) STRING 'r"ABC"' (1, 14) (1, 21) OP '+' (1, 22) (1, 23) STRING 'R"ABC"' (1, 24) (1, 31) OP '+' (1, 32) (1, 33) STRING 'R"ABC"' (1, 34) (1, 41)
|
STRING 'r"abc"' (1, 4) (1, 10) OP '+' (1, 11) (1, 12) STRING 'r"ABC"' (1, 13) (1, 19) OP '+' (1, 20) (1, 21) STRING 'R"ABC"' (1, 22) (1, 28) OP '+' (1, 29) (1, 30) STRING 'R"ABC"' (1, 31) (1, 37)
|
... " def y(m): # A whitespace after the colon\\n"
|
06160749de86348e8e0743d0ff468f96f0c89d4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/06160749de86348e8e0743d0ff468f96f0c89d4c/test_tokenize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
6647,
315,
225,
1652,
677,
12,
81,
4672,
468,
432,
7983,
1839,
326,
13336,
1695,
82,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
except (urllib2.URLError, timeout):
|
except urllib2.URLError:
|
def get_page(self,url): html_page = None retry_count = 0 while not(html_page): try: html_page = urllib2.urlopen(url, timeout=30).read() except (urllib2.URLError, timeout): retry_count += 1 if retry_count >= 10: raise urllib2.URLError('URL %s failed too many times' % url) html_page = re.sub("(?s)<!--.*?-->"," ", html_page) # cut anything that looks suspicious html_page = re.sub("(?s)<script>.*?</script>"," ", html_page) return html_page
|
a63b7f958fe19e9c86ed6e4dfcb12f1fbfc0a7d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1866/a63b7f958fe19e9c86ed6e4dfcb12f1fbfc0a7d1/parse_gov_legislation_comm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2433,
12,
2890,
16,
718,
4672,
1729,
67,
2433,
273,
599,
3300,
67,
1883,
273,
374,
1323,
486,
12,
2620,
67,
2433,
4672,
775,
30,
1729,
67,
2433,
273,
11527,
22,
18,
295,
18589,
12,
718,
16,
2021,
33,
5082,
2934,
896,
1435,
1335,
11527,
22,
18,
1785,
668,
30,
3300,
67,
1883,
1011,
404,
309,
3300,
67,
1883,
1545,
1728,
30,
1002,
11527,
22,
18,
1785,
668,
2668,
1785,
738,
87,
2535,
4885,
4906,
4124,
11,
738,
880,
13,
1729,
67,
2433,
273,
283,
18,
1717,
2932,
3680,
87,
13,
5586,
413,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2433,
12,
2890,
16,
718,
4672,
1729,
67,
2433,
273,
599,
3300,
67,
1883,
273,
374,
1323,
486,
12,
2620,
67,
2433,
4672,
775,
30,
1729,
67,
2433,
273,
11527,
22,
18,
295,
18589,
12,
718,
16,
2021,
33,
5082,
2934,
896,
1435,
1335,
11527,
22,
18,
1785,
668,
30,
3300,
67,
1883,
1011,
404,
309,
3300,
67,
1883,
1545,
1728,
30,
1002,
11527,
22,
18,
1785,
668,
2668,
1785,
738,
87,
2535,
4885,
4906,
4124,
11,
738,
880,
13,
1729,
67,
2433,
273,
283,
18,
1717,
2932,
3680,
87,
13,
5586,
413,
23498,
413,
2984,
10837,
3104,
1729,
67,
2433,
13,
468,
6391,
6967,
716,
10192,
11375,
84,
28728,
1729,
67,
2433,
273,
283,
18,
2
] |
def __exc_info(self): """Return a version of sys.exc_info() with the traceback frame minimised; usually the top level of the traceback frame is not needed. """ exctype, excvalue, tb = sys.exc_info() newtb = tb.tb_next if newtb is None: return (exctype, excvalue, tb) return (exctype, excvalue, newtb)
|
def __exc_info(self): """Return a version of sys.exc_info() with the traceback frame minimised; usually the top level of the traceback frame is not needed. """ exctype, excvalue, tb = sys.exc_info() newtb = tb.tb_next if newtb is None: return (exctype, excvalue, tb) return (exctype, excvalue, newtb)
|
e4122e065a122f30bf476ece570458641085b660 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e4122e065a122f30bf476ece570458641085b660/unittest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
10075,
67,
1376,
12,
2890,
4672,
3536,
990,
279,
1177,
434,
2589,
18,
10075,
67,
1376,
1435,
598,
326,
10820,
2623,
18172,
5918,
31,
11234,
326,
1760,
1801,
434,
326,
10820,
2623,
353,
486,
3577,
18,
3536,
431,
12387,
16,
3533,
1132,
16,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
394,
18587,
273,
8739,
18,
18587,
67,
4285,
309,
394,
18587,
353,
599,
30,
327,
261,
338,
12387,
16,
3533,
1132,
16,
8739,
13,
327,
261,
338,
12387,
16,
3533,
1132,
16,
394,
18587,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
10075,
67,
1376,
12,
2890,
4672,
3536,
990,
279,
1177,
434,
2589,
18,
10075,
67,
1376,
1435,
598,
326,
10820,
2623,
18172,
5918,
31,
11234,
326,
1760,
1801,
434,
326,
10820,
2623,
353,
486,
3577,
18,
3536,
431,
12387,
16,
3533,
1132,
16,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
394,
18587,
273,
8739,
18,
18587,
67,
4285,
309,
394,
18587,
353,
599,
30,
327,
261,
338,
12387,
16,
3533,
1132,
16,
8739,
13,
327,
261,
338,
12387,
16,
3533,
1132,
16,
394,
18587,
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
] |
|
@param warnings: A list of the warnings generated by parsing. Any new warnings generated while will tokenizing this paragraph
|
@param errors: A list of the errors generated by parsing. Any new errors generated while will tokenizing this paragraph
|
def _tokenize_literal(lines, start, block_indent, tokens, warnings): """ Construct a L{Token} containing the literal block starting at C{lines[start]}, and append it to C{tokens}. C{block_indent} should be the indentation of the literal block. Any warnings generated while tokenizing the literal block will be appended to C{warnings}. @param lines: The list of lines to be tokenized @param start: The index into C{lines} of the first line of the literal block to be tokenized. @param block_indent: The indentation of C{lines[start]}. This is the indentation of the literal block. @param warnings: A list of the warnings generated by parsing. Any new warnings generated while will tokenizing this paragraph will be appended to this list. @return: The line number of the first line following the literal block. @type lines: C{list} of C{string} @type start: C{int} @type block_indent: C{int} @type tokens: C{list} of L{Token} @type warnings: C{list} of L{ParseError} @rtype: C{int} """ linenum = start + 1 while linenum < len(lines): # Find the indentation of this line. line = lines[linenum] indent = len(line) - len(line.lstrip()) # A Dedent to block_indent ends the literal block. # (Ignore blank likes, though) if len(line) != indent and indent <= block_indent: break # Go on to the next line. linenum += 1 # Add the token, and return the linenum after the token ends. contents = [line[block_indent+1:] for line in lines[start:linenum]] contents = '\n'.join(contents) contents = re.sub('(\A[ \n]*\n)|(\n[ \n]*\Z)', '', contents) tokens.append(Token(Token.LBLOCK, start, contents, block_indent)) return linenum
|
7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2316,
554,
67,
13107,
12,
3548,
16,
787,
16,
1203,
67,
9355,
16,
2430,
16,
5599,
4672,
3536,
14291,
279,
511,
95,
1345,
97,
4191,
326,
7158,
1203,
5023,
622,
385,
95,
3548,
63,
1937,
65,
5779,
471,
714,
518,
358,
385,
95,
7860,
5496,
225,
385,
95,
2629,
67,
9355,
97,
1410,
506,
326,
12018,
434,
326,
7158,
1203,
18,
225,
5502,
5599,
4374,
1323,
1147,
6894,
326,
7158,
1203,
903,
506,
12317,
358,
385,
95,
12103,
5496,
225,
632,
891,
2362,
30,
1021,
666,
434,
2362,
358,
506,
26073,
632,
891,
787,
30,
1021,
770,
1368,
385,
95,
3548,
97,
434,
326,
1122,
980,
434,
326,
7158,
1203,
358,
506,
26073,
18,
632,
891,
1203,
67,
9355,
30,
1021,
12018,
434,
385,
95,
3548,
63,
1937,
65,
5496,
225,
1220,
353,
326,
12018,
434,
326,
7158,
1203,
18,
632,
891,
1334,
30,
432,
666,
434,
326,
1334,
4374,
635,
5811,
18,
225,
5502,
394,
1334,
4374,
1323,
903,
1147,
6894,
333,
10190,
903,
506,
12317,
358,
333,
666,
18,
632,
2463,
30,
1021,
980,
1300,
434,
326,
1122,
980,
3751,
326,
7158,
1203,
18,
225,
632,
723,
2362,
30,
385,
95,
1098,
97,
434,
385,
95,
1080,
97,
632,
723,
787,
30,
385,
95,
474,
97,
632,
723,
1203,
67,
9355,
30,
385,
95,
474,
97,
632,
723,
2430,
30,
385,
95,
1098,
97,
434,
511,
95,
1345,
97,
632,
723,
5599,
30,
385,
95,
1098,
97,
434,
511,
95,
21004,
97,
632,
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,
2316,
554,
67,
13107,
12,
3548,
16,
787,
16,
1203,
67,
9355,
16,
2430,
16,
5599,
4672,
3536,
14291,
279,
511,
95,
1345,
97,
4191,
326,
7158,
1203,
5023,
622,
385,
95,
3548,
63,
1937,
65,
5779,
471,
714,
518,
358,
385,
95,
7860,
5496,
225,
385,
95,
2629,
67,
9355,
97,
1410,
506,
326,
12018,
434,
326,
7158,
1203,
18,
225,
5502,
5599,
4374,
1323,
1147,
6894,
326,
7158,
1203,
903,
506,
12317,
358,
385,
95,
12103,
5496,
225,
632,
891,
2362,
30,
1021,
666,
434,
2362,
358,
506,
26073,
632,
891,
787,
30,
1021,
770,
1368,
385,
95,
3548,
97,
434,
326,
1122,
980,
434,
326,
7158,
1203,
358,
506,
26073,
18,
632,
891,
1203,
2
] |
self.save_option(os.path.expanduser(UserConfigPath), section, option, value)
|
self.save_option(UserConfigPath, section, option, value)
|
def save_user_option(self, section, option, value): self.save_option(os.path.expanduser(UserConfigPath), section, option, value)
|
25407cbc4e698f9aa33884a0e1598bb50b933b5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/25407cbc4e698f9aa33884a0e1598bb50b933b5f/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
1355,
67,
3482,
12,
2890,
16,
2442,
16,
1456,
16,
460,
4672,
365,
18,
5688,
67,
3482,
12,
538,
18,
803,
18,
12320,
1355,
12,
1299,
22341,
3631,
2442,
16,
1456,
16,
460,
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
] |
print e
|
logger.error("Got error in load_phone_book : %s", e)
|
def load_phone_book(self, emission, source, param): print "load phone book called" try: new_edje = gui.edje_gui(self.main,'tele-people',self.edje_file) new_edje.edj.signal_callback_add("top_bar", "*", self.top_bar) new_edje.edj.name_set('contacts_list') except Exception,e: print e self.extra_child = new_edje new_edje.edj.layer_set(3) new_edje.edj.show() print "done" try: contacts_box = gui.edje_box(self,'V',1) except Exception,e: print e try: print "self.lists.generate_contacts_list(self,orig_parent,self.phone_book,contacts_edje,self.edje_obj)" self.contact_objects_list = gui.contact_list(self.phone_book,contacts_box,self.main.etk_obj.evas,self.edje_file,'tele-contacts_item',self) except Exception,e: print e try: to_2_swallowed = contacts_box.scrolled_view except Exception,e: print e try: print "new_edje.add(to_2_swallowed,contacts_edje)" new_edje.add(to_2_swallowed,contacts_box,"contacts-items") except Exception,e: print e try: contacts_box.box.show() except Exception,e: print e
|
01c25941dcc46b5166dcddd3aeed3ae3b26b48e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/01c25941dcc46b5166dcddd3aeed3ae3b26b48e6/paroli-dialer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
10540,
67,
3618,
12,
2890,
16,
801,
19710,
16,
1084,
16,
579,
4672,
1172,
315,
945,
7353,
6978,
2566,
6,
775,
30,
394,
67,
329,
78,
73,
273,
13238,
18,
329,
78,
73,
67,
20292,
12,
2890,
18,
5254,
11189,
29170,
17,
28035,
2187,
2890,
18,
329,
78,
73,
67,
768,
13,
394,
67,
329,
78,
73,
18,
329,
78,
18,
10420,
67,
3394,
67,
1289,
2932,
3669,
67,
3215,
3113,
15902,
3113,
365,
18,
3669,
67,
3215,
13,
394,
67,
329,
78,
73,
18,
329,
78,
18,
529,
67,
542,
2668,
20777,
67,
1098,
6134,
1335,
1185,
16,
73,
30,
1194,
18,
1636,
2932,
15617,
555,
316,
1262,
67,
10540,
67,
3618,
294,
738,
87,
3113,
425,
13,
365,
18,
7763,
67,
3624,
273,
394,
67,
329,
78,
73,
394,
67,
329,
78,
73,
18,
329,
78,
18,
6363,
67,
542,
12,
23,
13,
394,
67,
329,
78,
73,
18,
329,
78,
18,
4500,
1435,
1172,
315,
8734,
6,
775,
30,
14841,
67,
2147,
273,
13238,
18,
329,
78,
73,
67,
2147,
12,
2890,
11189,
58,
2187,
21,
13,
1335,
1185,
16,
73,
30,
1194,
18,
1636,
2932,
15617,
555,
316,
1262,
67,
10540,
67,
3618,
294,
738,
87,
3113,
425,
13,
225,
775,
30,
1172,
315,
2890,
18,
9772,
18,
7163,
67,
20777,
67,
1098,
12,
2890,
16,
4949,
67,
2938,
16,
2890,
18,
10540,
67,
3618,
16,
20777,
67,
329,
78,
73,
16,
2890,
18,
329,
78,
73,
67,
2603,
2225,
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,
1262,
67,
10540,
67,
3618,
12,
2890,
16,
801,
19710,
16,
1084,
16,
579,
4672,
1172,
315,
945,
7353,
6978,
2566,
6,
775,
30,
394,
67,
329,
78,
73,
273,
13238,
18,
329,
78,
73,
67,
20292,
12,
2890,
18,
5254,
11189,
29170,
17,
28035,
2187,
2890,
18,
329,
78,
73,
67,
768,
13,
394,
67,
329,
78,
73,
18,
329,
78,
18,
10420,
67,
3394,
67,
1289,
2932,
3669,
67,
3215,
3113,
15902,
3113,
365,
18,
3669,
67,
3215,
13,
394,
67,
329,
78,
73,
18,
329,
78,
18,
529,
67,
542,
2668,
20777,
67,
1098,
6134,
1335,
1185,
16,
73,
30,
1194,
18,
1636,
2932,
15617,
555,
316,
1262,
67,
10540,
67,
3618,
294,
738,
87,
2
] |
furthestBlock.childNodes.remove(furthestBlock)
|
furthestBlock.parent.removeChild(furthestBlock)
|
def endTagFormatting(self, name): """The much-feared adoption agency algorithm""" # XXX I don't like while True + break... too much # possibility of infinite loops while True: # Step 1 paragraph 1 afeElement = self.parser.elementInActiveFormattingElements(name) if not afeElement or (afeElement in self.parser.openElements and not self.parser.elementInScope(afeElement.name)): self.parser.parseError() return
|
0124737d8d74ed97bd7de89db35d3433fa2eee2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/0124737d8d74ed97bd7de89db35d3433fa2eee2d/parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
23974,
12,
2890,
16,
508,
4672,
3536,
1986,
9816,
17,
3030,
2258,
1261,
3482,
1737,
2075,
4886,
8395,
468,
11329,
467,
2727,
1404,
3007,
1323,
1053,
397,
898,
2777,
4885,
9816,
468,
25547,
434,
14853,
14075,
1323,
1053,
30,
468,
8693,
404,
10190,
404,
279,
3030,
1046,
273,
365,
18,
4288,
18,
2956,
382,
3896,
23974,
3471,
12,
529,
13,
309,
486,
279,
3030,
1046,
578,
261,
2513,
1046,
316,
365,
18,
4288,
18,
3190,
3471,
471,
486,
365,
18,
4288,
18,
2956,
382,
3876,
12,
2513,
1046,
18,
529,
3719,
30,
365,
18,
4288,
18,
2670,
668,
1435,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
23974,
12,
2890,
16,
508,
4672,
3536,
1986,
9816,
17,
3030,
2258,
1261,
3482,
1737,
2075,
4886,
8395,
468,
11329,
467,
2727,
1404,
3007,
1323,
1053,
397,
898,
2777,
4885,
9816,
468,
25547,
434,
14853,
14075,
1323,
1053,
30,
468,
8693,
404,
10190,
404,
279,
3030,
1046,
273,
365,
18,
4288,
18,
2956,
382,
3896,
23974,
3471,
12,
529,
13,
309,
486,
279,
3030,
1046,
578,
261,
2513,
1046,
316,
365,
18,
4288,
18,
3190,
3471,
471,
486,
365,
18,
4288,
18,
2956,
382,
3876,
12,
2513,
1046,
18,
529,
3719,
30,
365,
18,
4288,
18,
2670,
668,
1435,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.set_class_on_child(node, 'first', 0) option = node.parent if (option.parent.index(option) == len(option.parent) - 1): self.set_class_on_child(node, 'last', -1)
|
def visit_description(self, node): self.body.append(self.starttag(node, 'dd', '')) self.set_class_on_child(node, 'first', 0) option = node.parent if (option.parent.index(option) == len(option.parent) - 1): self.set_class_on_child(node, 'last', -1)
|
b517010752aa5e7489d2928e2f509576bebde892 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/b517010752aa5e7489d2928e2f509576bebde892/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3384,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
449,
2187,
875,
3719,
365,
18,
542,
67,
1106,
67,
265,
67,
3624,
12,
2159,
16,
296,
3645,
2187,
374,
13,
1456,
273,
756,
18,
2938,
309,
261,
3482,
18,
2938,
18,
1615,
12,
3482,
13,
422,
562,
12,
3482,
18,
2938,
13,
300,
404,
4672,
365,
18,
542,
67,
1106,
67,
265,
67,
3624,
12,
2159,
16,
296,
2722,
2187,
300,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3384,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
449,
2187,
875,
3719,
365,
18,
542,
67,
1106,
67,
265,
67,
3624,
12,
2159,
16,
296,
3645,
2187,
374,
13,
1456,
273,
756,
18,
2938,
309,
261,
3482,
18,
2938,
18,
1615,
12,
3482,
13,
422,
562,
12,
3482,
18,
2938,
13,
300,
404,
4672,
365,
18,
542,
67,
1106,
67,
265,
67,
3624,
12,
2159,
16,
296,
2722,
2187,
300,
21,
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
] |
|
""" % message
|
""" % message_to_text(message)
|
def create(user, notice_type_label, message_template, object_list=[]): """ create a new notice. This is intended to be how other apps create new notices. """ notice_type = NoticeType.objects.get(label=notice_type_label) message = encode_message(message_template, *object_list) notice = Notice(user=user, message=message, notice_type=notice_type) notice.save() if should_send(notice, "1", default=True) and user.email: # Email subject = "%s Notification From Pinax" % notice_type.display # @@@ message_body = """
|
96d4b26e261803b7c9fd9486e033f88ff7979ae3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11515/96d4b26e261803b7c9fd9486e033f88ff7979ae3/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
1355,
16,
11690,
67,
723,
67,
1925,
16,
883,
67,
3202,
16,
733,
67,
1098,
33,
8526,
4672,
3536,
752,
279,
394,
11690,
18,
225,
1220,
353,
12613,
358,
506,
3661,
1308,
8279,
752,
394,
486,
1242,
18,
3536,
11690,
67,
723,
273,
24914,
559,
18,
6911,
18,
588,
12,
1925,
33,
20392,
67,
723,
67,
1925,
13,
883,
273,
2017,
67,
2150,
12,
2150,
67,
3202,
16,
380,
1612,
67,
1098,
13,
11690,
273,
24914,
12,
1355,
33,
1355,
16,
883,
33,
2150,
16,
11690,
67,
723,
33,
20392,
67,
723,
13,
11690,
18,
5688,
1435,
309,
1410,
67,
4661,
12,
20392,
16,
315,
21,
3113,
805,
33,
5510,
13,
471,
729,
18,
3652,
30,
468,
8166,
3221,
273,
2213,
87,
8050,
6338,
14999,
651,
6,
738,
11690,
67,
723,
18,
5417,
468,
22175,
36,
883,
67,
3432,
273,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
11690,
67,
723,
67,
1925,
16,
883,
67,
3202,
16,
733,
67,
1098,
33,
8526,
4672,
3536,
752,
279,
394,
11690,
18,
225,
1220,
353,
12613,
358,
506,
3661,
1308,
8279,
752,
394,
486,
1242,
18,
3536,
11690,
67,
723,
273,
24914,
559,
18,
6911,
18,
588,
12,
1925,
33,
20392,
67,
723,
67,
1925,
13,
883,
273,
2017,
67,
2150,
12,
2150,
67,
3202,
16,
380,
1612,
67,
1098,
13,
11690,
273,
24914,
12,
1355,
33,
1355,
16,
883,
33,
2150,
16,
11690,
67,
723,
33,
20392,
67,
723,
13,
11690,
18,
5688,
1435,
309,
1410,
67,
4661,
12,
20392,
16,
315,
21,
3113,
805,
33,
5510,
13,
471,
729,
18,
3652,
30,
2
] |
depname, flagsymbol, depver = depstring.split()
|
try: depname, flagsymbol, depver = depstring.split() except ValueError, e: raise Errors.YumBaseError, 'No Packages found for %s - have you tried quoting the string?' % depstring
|
def returnPackageByDep(self, depstring): """Pass in a generic [build]require string and this function will pass back the best(or first) package it finds providing that dep.""" flags = {'>':'GT', '<':'LT', '=': 'EQ', '==': 'EQ', '>=':'GE', '<=':'LE'} self.doRepoSetup() # parse the string out # either it is 'dep (some operator) e:v-r' # or /file/dep # or packagename depname = depstring depflags = None depver = None if depstring[0] != '/': # not a file dep - look at it for being versioned if re.search('[>=<]', depstring): # versioned depname, flagsymbol, depver = depstring.split() if not flags.has_key(flagsymbol): raise Errors.YumBaseError, 'No Packages found for %s' % depstring depflags = flags[flagsymbol] sack = self.whatProvides(depname, depflags, depver) if len(sack) < 1: raise Errors.YumBaseError, 'No Packages found for %s' % depstring if len(sack) == 1: for po in sack: return po pkglist = sack.returnNewestByNameArch() best = pkglist[0] for pkg in pkglist[1:]: if len(pkg.name) < len(best.name): # shortest name silliness best = pkg continue elif len(pkg.name) > len(best.name): continue
|
c4784e849a7f3076b536bde64a1b16d50f2d4a2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/c4784e849a7f3076b536bde64a1b16d50f2d4a2f/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
2261,
858,
16316,
12,
2890,
16,
5993,
1080,
4672,
3536,
6433,
316,
279,
5210,
306,
3510,
65,
6528,
533,
471,
333,
445,
903,
1342,
1473,
326,
3796,
12,
280,
1122,
13,
2181,
518,
13094,
17721,
716,
5993,
12123,
225,
2943,
273,
13666,
1870,
2497,
16506,
2187,
9138,
2497,
12050,
2187,
5214,
30,
296,
27247,
2187,
296,
631,
4278,
296,
27247,
2187,
18799,
2497,
7113,
2187,
26609,
2497,
900,
11,
97,
365,
18,
2896,
8791,
7365,
1435,
468,
1109,
326,
533,
596,
468,
225,
3344,
518,
353,
296,
15037,
261,
19068,
3726,
13,
425,
30,
90,
17,
86,
11,
468,
225,
578,
342,
768,
19,
15037,
468,
225,
578,
2298,
346,
1069,
5993,
529,
273,
5993,
1080,
5993,
7133,
273,
599,
5993,
502,
273,
599,
225,
309,
5993,
1080,
63,
20,
65,
480,
2023,
30,
468,
486,
279,
585,
5993,
300,
2324,
622,
518,
364,
3832,
17083,
309,
283,
18,
3072,
2668,
63,
34,
27127,
65,
2187,
5993,
1080,
4672,
225,
468,
17083,
775,
30,
5993,
529,
16,
2943,
3284,
16,
5993,
502,
273,
5993,
1080,
18,
4939,
1435,
1335,
2068,
16,
425,
30,
1002,
9372,
18,
61,
379,
2171,
668,
16,
296,
2279,
7930,
1023,
1392,
364,
738,
87,
300,
1240,
1846,
12928,
29911,
326,
533,
4899,
738,
5993,
1080,
309,
486,
2943,
18,
5332,
67,
856,
12,
7133,
3284,
4672,
1002,
9372,
18,
61,
379,
2171,
668,
16,
296,
2279,
7930,
1023,
1392,
364,
738,
87,
11,
738,
5993,
1080,
5993,
7133,
273,
2943,
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,
327,
2261,
858,
16316,
12,
2890,
16,
5993,
1080,
4672,
3536,
6433,
316,
279,
5210,
306,
3510,
65,
6528,
533,
471,
333,
445,
903,
1342,
1473,
326,
3796,
12,
280,
1122,
13,
2181,
518,
13094,
17721,
716,
5993,
12123,
225,
2943,
273,
13666,
1870,
2497,
16506,
2187,
9138,
2497,
12050,
2187,
5214,
30,
296,
27247,
2187,
296,
631,
4278,
296,
27247,
2187,
18799,
2497,
7113,
2187,
26609,
2497,
900,
11,
97,
365,
18,
2896,
8791,
7365,
1435,
468,
1109,
326,
533,
596,
468,
225,
3344,
518,
353,
296,
15037,
261,
19068,
3726,
13,
425,
30,
90,
17,
86,
11,
468,
225,
578,
342,
768,
19,
15037,
468,
225,
578,
2298,
346,
1069,
5993,
529,
273,
5993,
1080,
5993,
2
] |
curve.symbol().setBrush(QBrush(brushColor))
|
curve.symbol().setBrush(brush)
|
def alphaChange(self): for curve in self.graph.itemList(): if isinstance(curve, QwtPlotCurve): brushColor = curve.symbol().brush().color() penColor = curve.symbol().pen().color() brushColor.setAlpha(self.graph.alphaValue) penColor.setAlpha(self.graph.alphaValue) curve.symbol().setBrush(QBrush(brushColor)) curve.symbol().setPen(QPen(penColor)) self.graph.replot()
|
067282b63a653595095eebe32ec342b08f0f88b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/067282b63a653595095eebe32ec342b08f0f88b0/OWScatterPlot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4190,
3043,
12,
2890,
4672,
364,
8882,
316,
365,
18,
4660,
18,
1726,
682,
13332,
309,
1549,
12,
16683,
16,
2238,
6046,
11532,
9423,
4672,
5186,
1218,
2957,
273,
8882,
18,
7175,
7675,
2848,
1218,
7675,
3266,
1435,
14264,
2957,
273,
8882,
18,
7175,
7675,
1907,
7675,
3266,
1435,
5186,
1218,
2957,
18,
542,
9690,
12,
2890,
18,
4660,
18,
5429,
620,
13,
14264,
2957,
18,
542,
9690,
12,
2890,
18,
4660,
18,
5429,
620,
13,
8882,
18,
7175,
7675,
542,
19114,
1218,
12,
2848,
1218,
13,
8882,
18,
7175,
7675,
542,
24251,
12,
53,
24251,
12,
1907,
2957,
3719,
365,
18,
4660,
18,
266,
4032,
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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
3043,
12,
2890,
4672,
364,
8882,
316,
365,
18,
4660,
18,
1726,
682,
13332,
309,
1549,
12,
16683,
16,
2238,
6046,
11532,
9423,
4672,
5186,
1218,
2957,
273,
8882,
18,
7175,
7675,
2848,
1218,
7675,
3266,
1435,
14264,
2957,
273,
8882,
18,
7175,
7675,
1907,
7675,
3266,
1435,
5186,
1218,
2957,
18,
542,
9690,
12,
2890,
18,
4660,
18,
5429,
620,
13,
14264,
2957,
18,
542,
9690,
12,
2890,
18,
4660,
18,
5429,
620,
13,
8882,
18,
7175,
7675,
542,
19114,
1218,
12,
2848,
1218,
13,
8882,
18,
7175,
7675,
542,
24251,
12,
53,
24251,
12,
1907,
2957,
3719,
365,
18,
4660,
18,
266,
4032,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
req = get_current_request() return self._hasNewPosts(req.session, req.user)
|
return self._hasNewPosts(get_current_session(), get_current_user())
|
def hasNewPosts(self): req = get_current_request() return self._hasNewPosts(req.session, req.user)
|
604a24d9cb0133574151ad0b0952e0f42cebf4e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11563/604a24d9cb0133574151ad0b0952e0f42cebf4e1/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
1908,
24983,
12,
2890,
4672,
1111,
273,
336,
67,
2972,
67,
2293,
1435,
327,
365,
6315,
5332,
1908,
24983,
12,
3658,
18,
3184,
16,
1111,
18,
1355,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
1908,
24983,
12,
2890,
4672,
1111,
273,
336,
67,
2972,
67,
2293,
1435,
327,
365,
6315,
5332,
1908,
24983,
12,
3658,
18,
3184,
16,
1111,
18,
1355,
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
] |
this = apply(_quickfix.new_EventPx, args)
|
this = _quickfix.new_EventPx(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_EventPx, args) try: self.this.append(this) except: self.this = this
|
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
1133,
21776,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
1133,
21776,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
expected = self.slow_format(x, 10)[:-1]
|
expected = self.slow_format(x, 10)
|
def check_format_1(self, x): for base, mapper in (8, oct), (10, repr), (16, hex): got = mapper(x) expected = self.slow_format(x, base) msg = Frm("%s returned %r but expected %r for %r", mapper.__name__, got, expected, x) self.assertEqual(got, expected, msg) self.assertEqual(long(got, 0), x, Frm('long("%s", 0) != %r', got, x)) # str() has to be checked a little differently since there's no # trailing "L" got = str(x) expected = self.slow_format(x, 10)[:-1] msg = Frm("%s returned %r but expected %r for %r", mapper.__name__, got, expected, x) self.assertEqual(got, expected, msg)
|
db4b4093733ada209bb08e3a37d1f304061b8814 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/db4b4093733ada209bb08e3a37d1f304061b8814/test_long.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2139,
67,
21,
12,
2890,
16,
619,
4672,
364,
1026,
16,
5815,
316,
261,
28,
16,
10844,
3631,
261,
2163,
16,
8480,
3631,
261,
2313,
16,
3827,
4672,
2363,
273,
5815,
12,
92,
13,
2665,
273,
365,
18,
87,
821,
67,
2139,
12,
92,
16,
1026,
13,
1234,
273,
478,
8864,
27188,
87,
2106,
738,
86,
1496,
2665,
738,
86,
364,
738,
86,
3113,
5815,
16186,
529,
972,
16,
2363,
16,
2665,
16,
619,
13,
365,
18,
11231,
5812,
12,
13212,
16,
2665,
16,
1234,
13,
365,
18,
11231,
5812,
12,
5748,
12,
13212,
16,
374,
3631,
619,
16,
478,
8864,
2668,
5748,
27188,
87,
3113,
374,
13,
480,
738,
86,
2187,
2363,
16,
619,
3719,
468,
609,
1435,
711,
358,
506,
5950,
279,
12720,
23621,
3241,
1915,
1807,
1158,
468,
7341,
315,
48,
6,
2363,
273,
609,
12,
92,
13,
2665,
273,
365,
18,
87,
821,
67,
2139,
12,
92,
16,
1728,
13,
1234,
273,
478,
8864,
27188,
87,
2106,
738,
86,
1496,
2665,
738,
86,
364,
738,
86,
3113,
5815,
16186,
529,
972,
16,
2363,
16,
2665,
16,
619,
13,
365,
18,
11231,
5812,
12,
13212,
16,
2665,
16,
1234,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2139,
67,
21,
12,
2890,
16,
619,
4672,
364,
1026,
16,
5815,
316,
261,
28,
16,
10844,
3631,
261,
2163,
16,
8480,
3631,
261,
2313,
16,
3827,
4672,
2363,
273,
5815,
12,
92,
13,
2665,
273,
365,
18,
87,
821,
67,
2139,
12,
92,
16,
1026,
13,
1234,
273,
478,
8864,
27188,
87,
2106,
738,
86,
1496,
2665,
738,
86,
364,
738,
86,
3113,
5815,
16186,
529,
972,
16,
2363,
16,
2665,
16,
619,
13,
365,
18,
11231,
5812,
12,
13212,
16,
2665,
16,
1234,
13,
365,
18,
11231,
5812,
12,
5748,
12,
13212,
16,
374,
3631,
619,
16,
478,
8864,
2668,
5748,
27188,
87,
3113,
374,
13,
480,
738,
86,
2187,
2363,
16,
619,
3719,
2
] |
if game.ithere:
|
if game.tholian:
|
def attack(torps_ok): # bad guy attacks us # torps_ok == false forces use of phasers in an attack atackd = False; attempt = False; ihurt = False; hitmax=0.0; hittot=0.0; chgfac=1.0 jay = coord() where = "neither" # game could be over at this point, check if game.alldone: return if idebug: prout("=== ATTACK!") # Tholian gets to move before attacking if game.ithere: movetholian() # if you have just entered the RNZ, you'll get a warning if game.neutz: # The one chance not to be attacked game.neutz = False return # commanders get a chance to tac-move towards you if (((game.comhere or game.ishere) and not game.justin) or game.skill == SKILL_EMERITUS) and torps_ok: moveklings() # if no enemies remain after movement, we're done if game.nenhere==0 or (game.nenhere==1 and thing == game.quadrant and not iqengry): return # set up partial hits if attack happens during shield status change pfac = 1.0/game.inshld if game.shldchg: chgfac = 0.25+0.5*random.random() skip(1) # message verbosity control if game.skill <= SKILL_FAIR: where = "sector" for loop in range(game.nenhere): if game.kpower[loop] < 0: continue; # too weak to attack # compute hit strength and diminish shield power r = random.random() # Increase chance of photon torpedos if docked or enemy energy low if game.condition == "docked": r *= 0.25 if game.kpower[loop] < 500: r *= 0.25; jay = game.ks[loop] iquad = game.quad[jay.x][jay.y] if iquad==IHT or (iquad==IHQUEST and not iqengry): continue # different enemies have different probabilities of throwing a torp usephasers = not torps_ok or \ (iquad == IHK and r > 0.0005) or \ (iquad==IHC and r > 0.015) or \ (iquad==IHR and r > 0.3) or \ (iquad==IHS and r > 0.07) or \ (iquad==IHQUEST and r > 0.05) if usephasers: # Enemy uses phasers if game.condition == "docked": continue; # Don't waste the effort! attempt = True; # Attempt to attack dustfac = 0.8+0.05*random.random() hit = game.kpower[loop]*math.pow(dustfac,game.kavgd[loop]) game.kpower[loop] *= 0.75 else: # Enemy uses photon torpedo course = 1.90985*math.atan2(game.sector.y-jay.y, jay.x-game.sector.x) hit = 0 proutn(_("***TORPEDO INCOMING")) if not damaged(DSRSENS): proutn(_(" From ")) crmena(False, iquad, where, jay) attempt = True prout(" ") r = (random.random()+random.random())*0.5 -0.5 r += 0.002*game.kpower[loop]*r hit = torpedo(course, r, jay, 1, 1) if (game.state.remkl + game.state.remcom + game.state.nscrem)==0: finish(FWON); # Klingons did themselves in! if game.state.galaxy[game.quadrant.x][game.quadrant.y].supernova or game.alldone: return; # Supernova or finished if hit == None: continue # incoming phaser or torpedo, shields may dissipate it if game.shldup or game.shldchg or game.condition=="docked": # shields will take hits propor = pfac * game.shield if game.condition =="docked": propr *= 2.1 if propor < 0.1: propor = 0.1 hitsh = propor*chgfac*hit+1.0 absorb = 0.8*hitsh if absorb > game.shield: absorb = game.shield game.shield -= absorb hit -= hitsh # taking a hit blasts us out of a starbase dock if game.condition == "docked": dock(False) # but the shields may take care of it if propor > 0.1 and hit < 0.005*game.energy: continue # hit from this opponent got through shields, so take damage ihurt = True proutn(_("%d unit hit") % int(hit)) if (damaged(DSRSENS) and usephasers) or game.skill<=SKILL_FAIR: proutn(_(" on the ")) crmshp() if not damaged(DSRSENS) and usephasers: proutn(_(" from ")) crmena(False, iquad, where, jay) skip(1) # Decide if hit is critical if hit > hitmax: hitmax = hit hittot += hit fry(hit) game.energy -= hit if game.energy <= 0: # Returning home upon your shield, not with it... finish(FBATTLE) return if not attempt and game.condition == "docked": prout(_("***Enemies decide against attacking your ship.")) if not atackd: return percent = 100.0*pfac*game.shield+0.5 if not ihurt: # Shields fully protect ship proutn(_("Enemy attack reduces shield strength to ")) else: # Print message if starship suffered hit(s) skip(1) proutn(_("Energy left %2d shields ") % int(game.energy)) if game.shldup: proutn(_("up ")) elif not damaged(DSHIELD): proutn(_("down ")) else: proutn(_("damaged, ")) prout(_("%d%%, torpedoes left %d") % (percent, game.torps)) # Check if anyone was hurt if hitmax >= 200 or hittot >= 500: icas= hittot*random.random()*0.015 if icas >= 2: skip(1) prout(_("Mc Coy- \"Sickbay to bridge. We suffered %d casualties") % icas) prout(_(" in that last attack.\"")) game.casual += icas game.state.crew -= icas # After attack, reset average distance to enemies for loop in range(game.nenhere): game.kavgd[loop] = game.kdist[loop] sortklings() return;
|
ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3/sst.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13843,
12,
13039,
1121,
67,
601,
4672,
468,
5570,
3058,
93,
28444,
584,
468,
8934,
1121,
67,
601,
422,
629,
26376,
999,
434,
1844,
345,
414,
316,
392,
13843,
225,
396,
363,
72,
273,
1083,
31,
4395,
273,
1083,
31,
18456,
295,
88,
273,
1083,
31,
6800,
1896,
33,
20,
18,
20,
31,
6800,
3307,
33,
20,
18,
20,
31,
462,
75,
11639,
33,
21,
18,
20,
525,
528,
273,
2745,
1435,
1625,
273,
315,
4644,
2927,
6,
468,
7920,
3377,
506,
1879,
622,
333,
1634,
16,
866,
309,
7920,
18,
454,
8734,
30,
327,
309,
277,
4148,
30,
450,
322,
2932,
12275,
7907,
3649,
4442,
13,
468,
935,
355,
2779,
5571,
358,
3635,
1865,
13843,
310,
309,
7920,
18,
451,
355,
2779,
30,
5730,
546,
355,
2779,
1435,
468,
309,
1846,
1240,
2537,
16219,
326,
534,
50,
62,
16,
1846,
5614,
336,
279,
3436,
309,
7920,
18,
4644,
322,
94,
30,
468,
1021,
1245,
17920,
486,
358,
506,
13843,
329,
7920,
18,
4644,
322,
94,
273,
1083,
327,
468,
1296,
414,
336,
279,
17920,
358,
268,
1077,
17,
8501,
23248,
1846,
309,
261,
12443,
13957,
18,
832,
14852,
578,
7920,
18,
1468,
822,
13,
471,
486,
7920,
18,
3732,
267,
13,
578,
7920,
18,
7771,
737,
422,
12038,
15125,
67,
3375,
654,
1285,
3378,
13,
471,
8934,
1121,
67,
601,
30,
3635,
79,
11603,
1435,
468,
309,
1158,
570,
351,
606,
7232,
1839,
26017,
16,
732,
4565,
2731,
309,
7920,
18,
82,
275,
14852,
631,
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,
13843,
12,
13039,
1121,
67,
601,
4672,
468,
5570,
3058,
93,
28444,
584,
468,
8934,
1121,
67,
601,
422,
629,
26376,
999,
434,
1844,
345,
414,
316,
392,
13843,
225,
396,
363,
72,
273,
1083,
31,
4395,
273,
1083,
31,
18456,
295,
88,
273,
1083,
31,
6800,
1896,
33,
20,
18,
20,
31,
6800,
3307,
33,
20,
18,
20,
31,
462,
75,
11639,
33,
21,
18,
20,
525,
528,
273,
2745,
1435,
1625,
273,
315,
4644,
2927,
6,
468,
7920,
3377,
506,
1879,
622,
333,
1634,
16,
866,
309,
7920,
18,
454,
8734,
30,
327,
309,
277,
4148,
30,
450,
322,
2932,
12275,
7907,
3649,
4442,
13,
468,
935,
355,
2779,
5571,
358,
3635,
1865,
13843,
310,
309,
2
] |
def call(self, auth, person_id_or_email, role_id_or_name):
|
def call(self, auth, role_id_or_name, person_id_or_email):
|
def call(self, auth, person_id_or_email, role_id_or_name): # Get all roles roles = {} for role_id, role in Roles(self.api).iteritems(): roles[role_id] = role['name'] roles[role['name']] = role_id
|
8b088994273084c8d761be5ee836c18cdb108d2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/8b088994273084c8d761be5ee836c18cdb108d2e/DeleteRoleFromPerson.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
2478,
67,
350,
67,
280,
67,
529,
16,
6175,
67,
350,
67,
280,
67,
3652,
4672,
468,
968,
777,
4900,
4900,
273,
2618,
364,
2478,
67,
350,
16,
2478,
316,
19576,
12,
2890,
18,
2425,
2934,
2165,
3319,
13332,
4900,
63,
4615,
67,
350,
65,
273,
2478,
3292,
529,
3546,
4900,
63,
4615,
3292,
529,
3546,
65,
273,
2478,
67,
350,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
2478,
67,
350,
67,
280,
67,
529,
16,
6175,
67,
350,
67,
280,
67,
3652,
4672,
468,
968,
777,
4900,
4900,
273,
2618,
364,
2478,
67,
350,
16,
2478,
316,
19576,
12,
2890,
18,
2425,
2934,
2165,
3319,
13332,
4900,
63,
4615,
67,
350,
65,
273,
2478,
3292,
529,
3546,
4900,
63,
4615,
3292,
529,
3546,
65,
273,
2478,
67,
350,
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
] |
nd = util.normpath(top[root_subtract_len:])
|
nd = util.normpath(top[common_prefix_len:])
|
def findfiles(s): work = [s] # self.root may end with a path separator when self.root == '/' root_subtract_len = len(self.root) if not self.root.endswith('/'): root_subtract_len += 1 while work: top = work.pop() names = os.listdir(top) names.sort() # nd is the top of the repository dir tree nd = util.normpath(top[root_subtract_len:]) if nd == '.': nd = '' else: # do not recurse into a repo contained in this # one. use bisect to find .hg directory so speed # is good on big directory. hg = bisect.bisect_left(names, '.hg') if hg < len(names) and names[hg] == '.hg': if os.path.isdir(os.path.join(top, '.hg')): continue for f in names: np = util.pconvert(os.path.join(nd, f)) if seen(np): continue p = os.path.join(top, f) # don't trip over symlinks st = os.lstat(p) if stat.S_ISDIR(st.st_mode): ds = os.path.join(nd, f +'/') if statmatch(ds, st): work.append(p) if statmatch(np, st) and np in dc: yield 'm', np, st elif statmatch(np, st): if self.supported_type(np, st): yield 'f', np, st elif np in dc: yield 'm', np, st
|
76955b5f90f3d64bee3c6b958809ace0ad01a1c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/76955b5f90f3d64bee3c6b958809ace0ad01a1c8/dirstate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
2354,
12,
87,
4672,
1440,
273,
306,
87,
65,
468,
365,
18,
3085,
2026,
679,
598,
279,
589,
4182,
1347,
365,
18,
3085,
422,
2023,
1365,
67,
1717,
1575,
67,
1897,
273,
562,
12,
2890,
18,
3085,
13,
309,
486,
365,
18,
3085,
18,
5839,
1918,
2668,
2473,
4672,
1365,
67,
1717,
1575,
67,
1897,
1011,
404,
1323,
1440,
30,
1760,
273,
1440,
18,
5120,
1435,
1257,
273,
1140,
18,
1098,
1214,
12,
3669,
13,
1257,
18,
3804,
1435,
468,
5346,
353,
326,
1760,
434,
326,
3352,
1577,
2151,
5346,
273,
1709,
18,
7959,
803,
12,
3669,
63,
6054,
67,
3239,
67,
1897,
30,
5717,
309,
5346,
422,
2611,
30,
5346,
273,
875,
469,
30,
468,
741,
486,
11502,
1368,
279,
3538,
7542,
316,
333,
468,
1245,
18,
999,
27031,
358,
1104,
263,
26981,
1867,
1427,
8632,
468,
353,
7494,
603,
5446,
1867,
18,
22576,
273,
27031,
18,
70,
291,
386,
67,
4482,
12,
1973,
16,
2418,
26981,
6134,
309,
22576,
411,
562,
12,
1973,
13,
471,
1257,
63,
26981,
65,
422,
2418,
26981,
4278,
309,
1140,
18,
803,
18,
291,
1214,
12,
538,
18,
803,
18,
5701,
12,
3669,
16,
2418,
26981,
26112,
30,
1324,
364,
284,
316,
1257,
30,
1130,
273,
1709,
18,
84,
6283,
12,
538,
18,
803,
18,
5701,
12,
4880,
16,
284,
3719,
309,
5881,
12,
6782,
4672,
1324,
293,
273,
1140,
18,
803,
18,
5701,
12,
3669,
16,
284,
13,
468,
2727,
1404,
20654,
1879,
23146,
384,
273,
1140,
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,
1104,
2354,
12,
87,
4672,
1440,
273,
306,
87,
65,
468,
365,
18,
3085,
2026,
679,
598,
279,
589,
4182,
1347,
365,
18,
3085,
422,
2023,
1365,
67,
1717,
1575,
67,
1897,
273,
562,
12,
2890,
18,
3085,
13,
309,
486,
365,
18,
3085,
18,
5839,
1918,
2668,
2473,
4672,
1365,
67,
1717,
1575,
67,
1897,
1011,
404,
1323,
1440,
30,
1760,
273,
1440,
18,
5120,
1435,
1257,
273,
1140,
18,
1098,
1214,
12,
3669,
13,
1257,
18,
3804,
1435,
468,
5346,
353,
326,
1760,
434,
326,
3352,
1577,
2151,
5346,
273,
1709,
18,
7959,
803,
12,
3669,
63,
6054,
67,
3239,
67,
1897,
30,
5717,
309,
5346,
422,
2611,
30,
5346,
273,
875,
469,
30,
468,
741,
2
] |
help="Check completeness of docs. (not implemented yet)")
|
help="Check completeness of docs.")
|
def parse_arguments(): # Construct the option parser. usage = '%prog ACTION [options] NAMES...' version = "Epydoc, version %s" % epydoc.__version__ optparser = OptionParser(usage=usage, version=version) action_group = OptionGroup(optparser, 'Actions') options_group = OptionGroup(optparser, 'Options') # Add options -- Actions action_group.add_option( # --html "--html", action="store_const", dest="action", const="html", help="Write HTML output.") action_group.add_option( # --latex "--text", action="store_const", dest="action", const="text", help="Write plaintext output. (not implemented yet)") action_group.add_option( # --latex "--latex", action="store_const", dest="action", const="latex", help="Write LaTeX output.") action_group.add_option( # --dvi "--dvi", action="store_const", dest="action", const="dvi", help="Write DVI output.") action_group.add_option( # --ps "--ps", action="store_const", dest="action", const="ps", help="Write Postscript output.") action_group.add_option( # --pdf "--pdf", action="store_const", dest="action", const="pdf", help="Write PDF output.") action_group.add_option( # --check "--check", action="store_const", dest="action", const="check", help="Check completeness of docs. (not implemented yet)") # Add options -- Options options_group.add_option( # --output "--output", "-o", dest="target", metavar="PATH", help="The output directory. If PATH does not exist, then " "it will be created.") options_group.add_option( # --show-imports "--inheritance", dest="inheritance", metavar="STYLE", help="The format for showing inheritance objects. STYLE " "should be one of: %s." % ', '.join(INHERITANCE_STYLES)) options_group.add_option( # --output "--docformat", dest="docformat", metavar="NAME", help="The default markup language for docstrings. Defaults " "to \"%default\".") options_group.add_option( # --css "--css", dest="css", metavar="STYLESHEET", help="The CSS stylesheet. STYLESHEET can be either a " "builtin stylesheet or the name of a CSS file.") options_group.add_option( # --name "--name", dest="prj_name", metavar="NAME", help="The documented project's name (for the navigation bar).") options_group.add_option( # --url "--url", dest="prj_url", metavar="URL", help="The documented project's URL (for the navigation bar).") options_group.add_option( # --navlink "--navlink", dest="prj_link", metavar="HTML", help="HTML code for a navigation link to place in the " "navigation bar.") options_group.add_option( # --top "--top", dest="top_page", metavar="PAGE", help="The \"top\" page for the HTML documentation. PAGE can " "be a URL, the name of a module or class, or one of the " "special names \"trees.html\", \"indices.html\", or \"help.html\"") options_group.add_option( # --help-file "--help-file", dest="help_file", metavar="FILE", help="An alternate help file. FILE should contain the body " "of an HTML file -- navigation bars will be added to it.") options_group.add_option( # --frames "--show-frames", action="store_true", dest="show_frames", help="Include frames in the HTML output. (default)") options_group.add_option( # --no-frames "--no-frames", action="store_false", dest="show_frames", help="Do not include frames in the HTML output.") options_group.add_option( # --private "--show-private", action="store_true", dest="show_private", help="Include private variables in the output. (default)") options_group.add_option( # --no-private "--no-private", action="store_false", dest="show_private", help="Do not include private variables in the output.") options_group.add_option( # --show-imports "--show-imports", action="store_true", dest="show_imports", help="List each module's imports.") options_group.add_option( # --show-imports "--no-imports", action="store_false", dest="show_imports", help="Do not list each module's imports. (default)") options_group.add_option( # --quiet "--quiet", "-q", action="count", dest="quiet", help="Decrease the verbosity.") options_group.add_option( # --verbose "--verbose", "-v", action="count", dest="verbose", help="Increase the verbosity.") options_group.add_option( # --debug "--debug", action="store_true", dest="debug", help="Show full tracebacks for internal errors.") options_group.add_option( # --parse-only "--parse-only", action="store_false", dest="introspect", help="Get all information from parsing (don't introspect)") options_group.add_option( # --introspect-only "--introspect-only", action="store_false", dest="parse", help="Get all information from introspecting (don't parse)") if epydoc.DEBUG: # this option is for developers, not users. options_group.add_option( "--profile-epydoc", action="store_true", dest="profile", help="Run the profiler. Output will be written to profile.out") options_group.add_option( "--dotpath", dest="dotpath", metavar='PATH', help="The path to the Graphviz 'dot' executable.") options_group.add_option( '--config', action='append', dest="configfiles", metavar='FILE', help=("A configuration file, specifying additional OPTIONS " "and/or NAMES. This option may be repeated.")) options_group.add_option( '--graph', action='append', dest='graphs', metavar='GRAPHTYPE', help=("Include graphs of type GRAPHTYPE in the generated output. " "Graphs are generated using the Graphviz dot executable. " "If this executable is not on the path, then use --dotpath " "to specify its location. This option may be repeated to " "include multiple graph types in the output. GRAPHTYPE" "should be one of: all, %s." % ', '.join(GRAPH_TYPES))) options_group.add_option( '--separate-classes', action='store_true', dest='list_classes_separately', help=("When generating LaTeX or PDF output, list each class in " "its own section, instead of listing them under their " "containing module.")) options_group.add_option( '--show-sourcecode', action='store_true', dest='include_source_code', help=("Include source code with syntax highlighting in the " "HTML output.")) options_group.add_option( '--no-sourcecode', action='store_false', dest='include_source_code', help=("Do not include source code with syntax highlighting in the " "HTML output.")) options_group.add_option( '--pstat', action='append', dest='pstat_files', metavar='FILE', help="A pstat output file, to be used in generating call graphs.") # Add the option groups. optparser.add_option_group(action_group) optparser.add_option_group(options_group) # Set the option parser's defaults. optparser.set_defaults(action="html", show_frames=True, docformat='epytext', show_private=True, show_imports=False, inheritance="listed", verbose=0, quiet=0, parse=True, introspect=True, debug=epydoc.DEBUG, profile=False, graphs=[], list_classes_separately=False, include_source_code=True, pstat_files=[]) # Parse the arguments. options, names = optparser.parse_args() # Process any config files. if options.configfiles: try: parse_configfiles(options.configfiles, options, names) except (KeyboardInterrupt,SystemExit): raise except Exception, e: optparser.error('Error reading config file:\n %s' % e) # Check to make sure all options are valid. if len(names) == 0: optparser.error("No names specified.") # perform shell expansion. for i, name in enumerate(names[:]): if '?' in name or '*' in name: names[i:i+1] = glob(name) if options.inheritance not in INHERITANCE_STYLES: optparser.error("Bad inheritance style. Valid options are " + ",".join(INHERITANCE_STYLES)) if not options.parse and not options.introspect: optparser.error("Invalid option combination: --parse-only " "and --introspect-only.") if options.action == 'text' and len(names) > 1: optparser.error("--text option takes only one name.") # Check the list of requested graph types to make sure they're # acceptable. options.graphs = [graph_type.lower() for graph_type in options.graphs] for graph_type in options.graphs: if graph_type == 'callgraph' and not options.pstat_files: optparser.error('"callgraph" graph type may only be used if ' 'one or more pstat files are specified.') # If it's 'all', then add everything (but don't add callgraph if # we don't have any profiling info to base them on). if graph_type == 'all': if options.pstat_files: options.graphs = GRAPH_TYPES else: options.graphs = [g for g in GRAPH_TYPES if g != 'callgraph'] break elif graph_type not in GRAPH_TYPES: optparser.error("Invalid graph type %s." % graph_type) # Calculate verbosity. options.verbosity = options.verbose - options.quiet # The target default depends on the action. if options.target is None: options.target = options.action # Return parsed args. return options, names
|
afc291a99589b8ab3cf40186fee6ee73aa623eb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/afc291a99589b8ab3cf40186fee6ee73aa623eb8/cli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7099,
13332,
468,
14291,
326,
1456,
2082,
18,
4084,
273,
1995,
14654,
11385,
306,
2116,
65,
6048,
55,
7821,
1177,
273,
315,
41,
2074,
2434,
16,
1177,
738,
87,
6,
738,
425,
2074,
2434,
16186,
1589,
972,
2153,
4288,
273,
18862,
12,
9167,
33,
9167,
16,
1177,
33,
1589,
13,
1301,
67,
1655,
273,
2698,
1114,
12,
3838,
4288,
16,
296,
6100,
6134,
702,
67,
1655,
273,
2698,
1114,
12,
3838,
4288,
16,
296,
1320,
6134,
225,
468,
1436,
702,
1493,
18765,
1301,
67,
1655,
18,
1289,
67,
3482,
12,
1171,
9079,
468,
1493,
2620,
5238,
2620,
3113,
1301,
1546,
2233,
67,
10248,
3113,
1570,
1546,
1128,
3113,
1866,
1546,
2620,
3113,
2809,
1546,
3067,
3982,
876,
1199,
13,
1301,
67,
1655,
18,
1289,
67,
3482,
12,
1171,
9079,
468,
1493,
26264,
5238,
955,
3113,
1301,
1546,
2233,
67,
10248,
3113,
1570,
1546,
1128,
3113,
1866,
1546,
955,
3113,
2809,
1546,
3067,
11917,
876,
18,
261,
902,
8249,
4671,
2225,
13,
1301,
67,
1655,
18,
1289,
67,
3482,
12,
1171,
9079,
468,
1493,
26264,
5238,
26264,
3113,
1301,
1546,
2233,
67,
10248,
3113,
1570,
1546,
1128,
3113,
1866,
1546,
26264,
3113,
2809,
1546,
3067,
21072,
21575,
60,
876,
1199,
13,
1301,
67,
1655,
18,
1289,
67,
3482,
12,
1171,
9079,
468,
1493,
72,
522,
5238,
72,
522,
3113,
1301,
1546,
2233,
67,
10248,
3113,
1570,
1546,
1128,
3113,
1866,
1546,
72,
522,
3113,
2809,
1546,
3067,
463,
4136,
876,
1199,
13,
1301,
67,
1655,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7099,
13332,
468,
14291,
326,
1456,
2082,
18,
4084,
273,
1995,
14654,
11385,
306,
2116,
65,
6048,
55,
7821,
1177,
273,
315,
41,
2074,
2434,
16,
1177,
738,
87,
6,
738,
425,
2074,
2434,
16186,
1589,
972,
2153,
4288,
273,
18862,
12,
9167,
33,
9167,
16,
1177,
33,
1589,
13,
1301,
67,
1655,
273,
2698,
1114,
12,
3838,
4288,
16,
296,
6100,
6134,
702,
67,
1655,
273,
2698,
1114,
12,
3838,
4288,
16,
296,
1320,
6134,
225,
468,
1436,
702,
1493,
18765,
1301,
67,
1655,
18,
1289,
67,
3482,
12,
1171,
9079,
468,
1493,
2620,
5238,
2620,
3113,
1301,
1546,
2233,
67,
10248,
3113,
1570,
1546,
1128,
3113,
1866,
1546,
2620,
3113,
2809,
1546,
3067,
3982,
2
] |
def details(self): """ call showMessage on selected message """ items = self.list.selectedItems() if len(items)>0: self.showMessage(items[0])
|
self.msg_box = None self.itemQueue = [] self.resize(700, 400)
|
def __init__(self, parent = None): QtGui.QDialog.__init__(self, parent) core.debug.DebugPrint.getInstance().set_stream(debugStream(self.write)) self.setWindowTitle('VisTrails messages') layout = QtGui.QVBoxLayout() self.setLayout(layout) self.list = QtGui.QListWidget() self.connect(self.list, QtCore.SIGNAL('itemDoubleClicked(QListWidgetItem *)'), self.showMessage) self.msg_box = None
|
037568dc5960fe0f55f627faf210c87f5ee28788 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/037568dc5960fe0f55f627faf210c87f5ee28788/debug.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
273,
599,
4672,
23425,
18,
53,
6353,
16186,
2738,
972,
12,
2890,
16,
982,
13,
2922,
18,
4148,
18,
2829,
5108,
18,
588,
1442,
7675,
542,
67,
3256,
12,
4148,
1228,
12,
2890,
18,
2626,
3719,
365,
18,
542,
3829,
4247,
2668,
3282,
1609,
14573,
2743,
6134,
3511,
273,
23425,
18,
53,
58,
3514,
3744,
1435,
365,
18,
542,
3744,
12,
6741,
13,
365,
18,
1098,
273,
23425,
18,
53,
682,
4609,
1435,
365,
18,
3612,
12,
2890,
18,
1098,
16,
20193,
18,
11260,
1013,
2668,
1726,
5265,
27633,
12,
53,
682,
4609,
1180,
380,
2506,
3631,
365,
18,
4500,
1079,
13,
365,
18,
3576,
67,
2147,
273,
599,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
273,
599,
4672,
23425,
18,
53,
6353,
16186,
2738,
972,
12,
2890,
16,
982,
13,
2922,
18,
4148,
18,
2829,
5108,
18,
588,
1442,
7675,
542,
67,
3256,
12,
4148,
1228,
12,
2890,
18,
2626,
3719,
365,
18,
542,
3829,
4247,
2668,
3282,
1609,
14573,
2743,
6134,
3511,
273,
23425,
18,
53,
58,
3514,
3744,
1435,
365,
18,
542,
3744,
12,
6741,
13,
365,
18,
1098,
273,
23425,
18,
53,
682,
4609,
1435,
365,
18,
3612,
12,
2890,
18,
1098,
16,
20193,
18,
11260,
1013,
2668,
1726,
5265,
27633,
12,
53,
682,
4609,
1180,
380,
2506,
3631,
365,
18,
4500,
1079,
13,
365,
18,
3576,
67,
2147,
273,
599,
225,
2,
-100
] |
self.lastTileWidth = xsize - self.countTilesX * tileWidth self.lastTileHeight = ysize - self.countTilesY * tileHeight
|
self.lastTileWidth = int(xsize - self.countTilesX * tileWidth) self.lastTileHeight = int(ysize - self.countTilesY * tileHeight)
|
def __init__(self,xsize,ysize,tileWidth,tileHeight): self.tileWidth=tileWidth self.tileHeight=tileHeight self.countTilesX= int(xsize / tileWidth) self.countTilesY= int(ysize / tileHeight) self.lastTileWidth = xsize - self.countTilesX * tileWidth self.lastTileHeight = ysize - self.countTilesY * tileHeight
|
a177d602c3eac40ea636c309ed92c73cd25a92ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/a177d602c3eac40ea636c309ed92c73cd25a92ca/gdal_retile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
92,
1467,
16,
93,
1467,
16,
15368,
2384,
16,
15368,
2686,
4672,
365,
18,
15368,
2384,
33,
15368,
2384,
365,
18,
15368,
2686,
33,
15368,
2686,
365,
18,
1883,
27669,
60,
33,
509,
12,
92,
1467,
342,
4769,
2384,
13,
365,
18,
1883,
27669,
61,
33,
509,
12,
93,
1467,
342,
4769,
2686,
13,
365,
18,
2722,
9337,
2384,
273,
619,
1467,
300,
365,
18,
1883,
27669,
60,
380,
225,
4769,
2384,
365,
18,
2722,
9337,
2686,
273,
677,
1467,
300,
365,
18,
1883,
27669,
61,
380,
225,
4769,
2686,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
92,
1467,
16,
93,
1467,
16,
15368,
2384,
16,
15368,
2686,
4672,
365,
18,
15368,
2384,
33,
15368,
2384,
365,
18,
15368,
2686,
33,
15368,
2686,
365,
18,
1883,
27669,
60,
33,
509,
12,
92,
1467,
342,
4769,
2384,
13,
365,
18,
1883,
27669,
61,
33,
509,
12,
93,
1467,
342,
4769,
2686,
13,
365,
18,
2722,
9337,
2384,
273,
619,
1467,
300,
365,
18,
1883,
27669,
60,
380,
225,
4769,
2384,
365,
18,
2722,
9337,
2686,
273,
677,
1467,
300,
365,
18,
1883,
27669,
61,
380,
225,
4769,
2686,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
@param transaction: A transaction that will be used to search the values().
|
@param cls: The class that we'll want to look for with C{searcher}.
|
def __init__(self, columns=None, transaction=None, searcher=None, **kwargs): """ @param columns: A list of Columns. Only the C{read} attribute needs to be set.
|
41cb05d3c0bc79154577310cba5e527648e6d7cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2219/41cb05d3c0bc79154577310cba5e527648e6d7cb/search.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2168,
33,
7036,
16,
2492,
33,
7036,
16,
27349,
33,
7036,
16,
2826,
4333,
4672,
3536,
632,
891,
2168,
30,
432,
666,
434,
14962,
18,
5098,
326,
385,
95,
896,
97,
1566,
4260,
358,
506,
444,
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,
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
2826,
4333,
4672,
3536,
632,
891,
2168,
30,
432,
666,
434,
14962,
18,
5098,
326,
385,
95,
896,
97,
1566,
4260,
358,
506,
444,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.