rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
def test_crasher(self): if IS32BIT: | if IS32BIT: def test_crasher(self): | def test_crasher(self): if IS32BIT: self.assertRaises(MemoryError, struct.pack, "357913941c", "a") else: print "%s test_crasher skipped on 64bit build." | b28a6012c7458310211b20ac2d34a42682555f29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/b28a6012c7458310211b20ac2d34a42682555f29/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
4437,
1578,
15650,
30,
1652,
1842,
67,
3353,
961,
264,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
6031,
668,
16,
1958,
18,
2920,
16,
315,
4763,
7235,
24347,
9803,
71,
3113,
315,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
4437,
1578,
15650,
30,
1652,
1842,
67,
3353,
961,
264,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
6031,
668,
16,
1958,
18,
2920,
16,
315,
4763,
7235,
24347,
9803,
71,
3113,
315,
6... |
yield tichy.WaitFirst(tichy.Wait(self.main, 'delete_request'),tichy.Wait(self.main, 'back_Msgs')) | while True: event, _ = yield WaitFirst(Wait(self.main, 'delete_request'), Wait(self.main, 'back_Msgs'), Wait(self, 'create-message')) if event == 2: edit_number_ret = yield EditNumber(self.main, sms) if edit_number_ret is None: continue break | def comp(m1, m2): return cmp(m2.timestamp, m1.timestamp) | 174778c1bb9a46881da88c42d6a7351b00afb4cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/174778c1bb9a46881da88c42d6a7351b00afb4cb/msgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1161,
12,
81,
21,
16,
312,
22,
4672,
327,
9411,
12,
81,
22,
18,
5508,
16,
312,
21,
18,
5508,
13,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1161,
12,
81,
21,
16,
312,
22,
4672,
327,
9411,
12,
81,
22,
18,
5508,
16,
312,
21,
18,
5508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
strippedUrl = url.rstrip('/') res = self.__makeDirs(strippedUrl) | strippedUrl = url.rstrip( '/' ) res = self.__makeDirs( strippedUrl ) | def createDirectory(self,path): """ Make recursively new directory(ies) on the physical storage """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28430,
12,
2890,
16,
803,
4672,
3536,
4344,
8536,
394,
1867,
12,
606,
13,
603,
326,
11640,
2502,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28430,
12,
2890,
16,
803,
4672,
3536,
4344,
8536,
394,
1867,
12,
606,
13,
603,
326,
11640,
2502,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546... |
opposite.disabled = False | opposite.disabled -= 1 | def acyclic_setattr(self, value): if self.disabled: return | 85741d6f825457214a1913669cf163505ff1d54e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/85741d6f825457214a1913669cf163505ff1d54e/OWGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1721,
93,
18964,
67,
542,
1747,
12,
2890,
16,
460,
4672,
309,
365,
18,
9278,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1721,
93,
18964,
67,
542,
1747,
12,
2890,
16,
460,
4672,
309,
365,
18,
9278,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
""" g = self.division_points(m, poly_only=True) return len(g.roots(multiplicities=False)) > 0 | A finite field example:: sage: E = EllipticCurve(GF(101),[23,34]) sage: E.cardinality().factor() 2 * 53 sage: Set([T.order() for T in E.points()]) {1, 106, 2, 53} sage: len([T for T in E.points() if T.is_divisible_by(2)]) 53 sage: len([T for T in E.points() if T.is_divisible_by(3)]) 106 TESTS: This shows that the b... | def is_divisible_by(self, m): """ Return True if there exists a point `Q` defined over the same field as self such that `mQ` == self. | b9f7e1a5aa7643d5a2f53c754320c8747f74817e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b9f7e1a5aa7643d5a2f53c754320c8747f74817e/ell_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2892,
18932,
67,
1637,
12,
2890,
16,
312,
4672,
3536,
2000,
1053,
309,
1915,
1704,
279,
1634,
1375,
53,
68,
2553,
1879,
326,
1967,
652,
487,
365,
4123,
716,
1375,
81,
53,
68,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2892,
18932,
67,
1637,
12,
2890,
16,
312,
4672,
3536,
2000,
1053,
309,
1915,
1704,
279,
1634,
1375,
53,
68,
2553,
1879,
326,
1967,
652,
487,
365,
4123,
716,
1375,
81,
53,
68,
... |
........ | -------- | def multires_registration(image1, image2, imdata, lite, smhist, method, opt_method): """ x = multires_registration(image1, image2, imdata, lite, smhist, method, opt_method) to be called by python_coreg() which optionally does 3D image filtering and provies timing for registration. Parameters .......... image1 : {dic... | de681f926e982b0212f2f58bf637917926737f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/de681f926e982b0212f2f58bf637917926737f89/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1778,
2814,
67,
14170,
12,
2730,
21,
16,
1316,
22,
16,
709,
892,
16,
328,
1137,
16,
3029,
11488,
16,
707,
16,
2153,
67,
2039,
4672,
3536,
619,
273,
1778,
2814,
67,
14170,
12,
2730,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1778,
2814,
67,
14170,
12,
2730,
21,
16,
1316,
22,
16,
709,
892,
16,
328,
1137,
16,
3029,
11488,
16,
707,
16,
2153,
67,
2039,
4672,
3536,
619,
273,
1778,
2814,
67,
14170,
12,
2730,
2... |
sage: graphs_list.to_graphics_arrays(glist, layout='spring', vertex_size=20) [Graphics Array of size 3 x 4] | sage: w = graphs_list.to_graphics_arrays(glist, layout='spring', vertex_size=20) sage: len(w) 1 sage: w[0] | def to_graphics_arrays(list, **kwds): """ Returns a list of SAGE graphics arrays containing the graphs in list. The maximum number of graphs per array is 20 (5 rows of 4). Use this function if there are too many graphs for the show_graphs function. The graphics arrays will contain 20 graphs each except potentially the... | 8927303776c3a94cad1638552963f6adc6f2dae1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8927303776c3a94cad1638552963f6adc6f2dae1/graph_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
31586,
67,
16223,
12,
1098,
16,
2826,
25577,
4672,
3536,
2860,
279,
666,
434,
348,
2833,
17313,
5352,
4191,
326,
19422,
316,
666,
18,
1021,
4207,
1300,
434,
19422,
1534,
526,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
31586,
67,
16223,
12,
1098,
16,
2826,
25577,
4672,
3536,
2860,
279,
666,
434,
348,
2833,
17313,
5352,
4191,
326,
19422,
316,
666,
18,
1021,
4207,
1300,
434,
19422,
1534,
526,
35... |
1 + 5 + 3*5^3 + 2*5^5 + 2*5^6 + 3*5^7 + 5^9 + O(5^10) | 1 + 4*5 + 5^3 + 5^4 + 4*5^5 + 5^6 + 5^7 + 4*5^8 + 5^9 + O(5^10) | def lift(self,P, prec = 20): """ Given a point $P$ in the formal group of the elliptic curve $E$ with split multiplicative reduction, this produces an element u in $\QQ_p^{\times}$ mapped to the point $P$ by the Tate parametrisation. The algorithm return the unique such element in $1+p\ZZ_p$. | b0eb0926930920ddadc1e26789614b42c4ee2611 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/b0eb0926930920ddadc1e26789614b42c4ee2611/ell_tate_curve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28080,
12,
2890,
16,
52,
16,
13382,
273,
4200,
4672,
3536,
16803,
279,
1634,
271,
52,
8,
316,
326,
25739,
1041,
434,
326,
415,
549,
21507,
8882,
271,
41,
8,
598,
1416,
3309,
28884,
201... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28080,
12,
2890,
16,
52,
16,
13382,
273,
4200,
4672,
3536,
16803,
279,
1634,
271,
52,
8,
316,
326,
25739,
1041,
434,
326,
415,
549,
21507,
8882,
271,
41,
8,
598,
1416,
3309,
28884,
201... |
Ibar.attrib('"isSB"',1) | Ibar.attrib('isSB',1) | def triangular_decomposition(self, algorithm=None): """ Decompose zero-dimensional ideal self into triangular sets. | 32fcda366c27d544fca3b0e3ecf929966658e911 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/32fcda366c27d544fca3b0e3ecf929966658e911/multi_polynomial_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6882,
13077,
67,
323,
24388,
12,
2890,
16,
4886,
33,
7036,
4672,
3536,
26824,
4150,
3634,
17,
31236,
23349,
365,
1368,
6882,
13077,
1678,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6882,
13077,
67,
323,
24388,
12,
2890,
16,
4886,
33,
7036,
4672,
3536,
26824,
4150,
3634,
17,
31236,
23349,
365,
1368,
6882,
13077,
1678,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sage: T.gen_transform(r=r, theta=theta, phi=phi) (r*sin(theta)*cos(phi), r*sin(phi)*sin(theta), r*cos(theta)) Use with plot3d on a made-up function:: sage: plot3d(phi * theta, (phi, 0, 1), (theta, 0, 1), transformation=T) To graph a function ``theta`` in terms of ``r`` and ``phi``, you would use:: sage: Spherical('... | sage: T.transform(radius=r, azimuth=theta, inclination=phi) (r*sin(phi)*cos(theta), r*sin(phi)*sin(theta), r*cos(phi)) We can plot with this transform. Remember that the independent variable is the radius, and the dependent variables are the azimuth and the inclination (in that order):: sage: plot3d(phi * theta, (th... | def gen_transform(self, f=None, u=None, v=None): """ EXAMPLE:: | 85811d8c24ec26acc8a960fadc0b24274c01a5a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/85811d8c24ec26acc8a960fadc0b24274c01a5a8/plot3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
6547,
12,
2890,
16,
284,
33,
7036,
16,
582,
33,
7036,
16,
331,
33,
7036,
4672,
3536,
5675,
21373,
2866,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
6547,
12,
2890,
16,
284,
33,
7036,
16,
582,
33,
7036,
16,
331,
33,
7036,
4672,
3536,
5675,
21373,
2866,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.parser.framesetOK = False | def startTagXmp(self, token): self.tree.reconstructActiveFormattingElements() self.parser.parseRCDataCData(token, "CDATA") self.parser.framesetOK = False | d0c98bf50a2a37b8d31a23fda9c77cf6ce37c2a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/d0c98bf50a2a37b8d31a23fda9c77cf6ce37c2a7/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
60,
1291,
12,
2890,
16,
1147,
4672,
365,
18,
3413,
18,
266,
10062,
3896,
23974,
3471,
1435,
365,
18,
4288,
18,
2670,
11529,
751,
39,
751,
12,
2316,
16,
315,
18375,
7923,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
60,
1291,
12,
2890,
16,
1147,
4672,
365,
18,
3413,
18,
266,
10062,
3896,
23974,
3471,
1435,
365,
18,
4288,
18,
2670,
11529,
751,
39,
751,
12,
2316,
16,
315,
18375,
7923,
365... | |
raise ExitSlave(os.EX_PROTOCOL) | raise ExitSlave(EX_PROTOCOL) | def _create_build(self, url): xml = xmlio.Element('slave', name=self.name)[ xmlio.Element('platform', processor=self.config['processor'])[ self.config['machine'] ], xmlio.Element('os', family=self.config['family'], version=self.config['version'])[ self.config['os'] ], ] | a584c9e123a18f69f98b82f7075d61e751a41675 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4547/a584c9e123a18f69f98b82f7075d61e751a41675/slave.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
3510,
12,
2890,
16,
880,
4672,
2025,
273,
25179,
549,
83,
18,
1046,
2668,
27352,
2187,
508,
33,
2890,
18,
529,
25146,
25179,
549,
83,
18,
1046,
2668,
9898,
2187,
6659,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
67,
3510,
12,
2890,
16,
880,
4672,
2025,
273,
25179,
549,
83,
18,
1046,
2668,
27352,
2187,
508,
33,
2890,
18,
529,
25146,
25179,
549,
83,
18,
1046,
2668,
9898,
2187,
6659,
3... |
results = os.path.join(self.resultsdir, tmpfile) args = '-q -i %d -p random -b 2k -B 2M %s %s' % \ | results = os.path.join(self.resultsdir, 'stdout') args = '-i %d -p random -b 2k -B 2M %s %s' % \ | def execute(self, testdir = None, iterations = 1, filesize='200G'): cmd = os.path.join(self.srcdir + 'src/spew') if not testdir: testdir = self.testdir tmpfile = os.path.join(testdir, 'spew-test.%d' % os.getpid()) results = os.path.join(self.resultsdir, tmpfile) args = '-q -i %d -p random -b 2k -B 2M %s %s' % \ (iterat... | 8670821cf0548751769fd75344b8252a3392e195 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/8670821cf0548751769fd75344b8252a3392e195/spew.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1842,
1214,
273,
599,
16,
11316,
273,
404,
16,
14104,
2218,
6976,
43,
11,
4672,
1797,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
4816,
1214,
397,
296,
4816,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
12,
2890,
16,
1842,
1214,
273,
599,
16,
11316,
273,
404,
16,
14104,
2218,
6976,
43,
11,
4672,
1797,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
4816,
1214,
397,
296,
4816,
19,
... |
loggers = {} for var in variables: try: loggers[var] = ses.createLoggerStub('Variable:/:' + var + ':Value') loggers[var].create() except Error: print "The variable %s is not present in the model." %var print "Did you by chance mispelled?" return loggers | loggers = {} for var in variables: try: loggers[var] = ses.createLoggerStub('Variable:/:' + var + ':Value') loggers[var].create() except Error: print "The variable %s is not present in the model." %var print "Did you by chance mispelled?" return loggers | def create_loggers(variables): """Create the loggers. The variable name is the Key, the ecell logger obj is the Value""" loggers = {} for var in variables: try: loggers[var] = ses.createLoggerStub('Variable:/:' + var + ':Value') loggers[var].create() except Error: print "The variable %s is not present in the model." %... | 3fb03c57e851ab501297df6bb0844d71dd77685f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14363/3fb03c57e851ab501297df6bb0844d71dd77685f/quickEcell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1330,
6215,
12,
7528,
4672,
3536,
1684,
326,
18244,
18,
1021,
2190,
508,
353,
326,
1929,
16,
326,
425,
3855,
1194,
1081,
353,
326,
1445,
8395,
225,
18244,
273,
2618,
364,
569,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1330,
6215,
12,
7528,
4672,
3536,
1684,
326,
18244,
18,
1021,
2190,
508,
353,
326,
1929,
16,
326,
425,
3855,
1194,
1081,
353,
326,
1445,
8395,
225,
18244,
273,
2618,
364,
569,
... |
self.box.Insert(2, self.feedbackBox, 0, wx.ALL | wx.ALIGN_CENTER, 10) | self.box.Insert(3, self.feedbackBox, 0, wx.ALL | wx.ALIGN_CENTER, 10) | def __init__(self, parent, dialogTitle, view): | cebd65025c0fb1b8d017ed00c2a4d3ba8bebe861 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/cebd65025c0fb1b8d017ed00c2a4d3ba8bebe861/ImportExport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
6176,
4247,
16,
1476,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
6176,
4247,
16,
1476,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
node.set_parent(parent) | node.set_parent(parent.get_id()) | def add_node(self, node, parent=None): #print "*************adding node %s %s" %(node, parent) id = node.get_id() if self.nodes.get(id): print "Error : A node with this id %s already exists" %id return False else: #We add the node node.set_tree(self) if parent:# node.set_parent(parent) parent.add_child(id) else: self.r... | c8f0f904ff7923eb8df86dbcd426f4651dc41528 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/c8f0f904ff7923eb8df86dbcd426f4651dc41528/tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2159,
12,
2890,
16,
756,
16,
982,
33,
7036,
4672,
468,
1188,
315,
1644,
23490,
3439,
756,
738,
87,
738,
87,
6,
8975,
2159,
16,
982,
13,
612,
273,
756,
18,
588,
67,
350,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2159,
12,
2890,
16,
756,
16,
982,
33,
7036,
4672,
468,
1188,
315,
1644,
23490,
3439,
756,
738,
87,
738,
87,
6,
8975,
2159,
16,
982,
13,
612,
273,
756,
18,
588,
67,
350,
14... |
print >>sys.__stdout__, \ """ WARNING: uuid._ifconfig_getnode is unreliable on many platforms. It is disabled until the code and/or test can be fixed properly.""" return | def test_ifconfig_getnode(self): import sys print >>sys.__stdout__, \ | e2b2308b75627e1d81f8000c5e70613e98483151 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e2b2308b75627e1d81f8000c5e70613e98483151/test_uuid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
430,
1425,
67,
588,
2159,
12,
2890,
4672,
1930,
2589,
1172,
1671,
9499,
16186,
10283,
972,
16,
521,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
430,
1425,
67,
588,
2159,
12,
2890,
4672,
1930,
2589,
1172,
1671,
9499,
16186,
10283,
972,
16,
521,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
def genNamespaces(self, selclasses ) : | def genNamespaces(self, selected ) : | def genNamespaces(self, selclasses ) : used_context = [] s = '' for c in selclasses : if 'incomplete' not in c : used_context.append(c['context']) idx = 0 for ns in self.namespaces : if ns['id'] in used_context and ns['name'] != '::' : s += ' NamespaceBuilder nsb%d( "%s" );\n' % (idx, self.genTypeName(ns['id'])) idx +... | ef7831bcc30b707d325a60e23322dcd019039769 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4350/ef7831bcc30b707d325a60e23322dcd019039769/gendict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
13180,
12,
2890,
16,
3170,
262,
294,
1399,
67,
2472,
273,
5378,
272,
273,
875,
364,
276,
316,
357,
4701,
294,
309,
296,
17624,
11,
486,
316,
276,
294,
1399,
67,
2472,
18,
6923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13180,
12,
2890,
16,
3170,
262,
294,
1399,
67,
2472,
273,
5378,
272,
273,
875,
364,
276,
316,
357,
4701,
294,
309,
296,
17624,
11,
486,
316,
276,
294,
1399,
67,
2472,
18,
6923,
... |
if self.iso_graph.adj_matrix.shape[0] > large.adj_matrix.shape[0]: | if self.iso_graph.adj_matrix.shape[0] == 0: return (large[0], large[1], {}) if self.iso_graph.adj_matrix.shape[0] > large[1].adj_matrix.shape[0]: | def map_isomorphisms( self, large ): if self.iso_graph.adj_matrix.shape[0] > large.adj_matrix.shape[0]: # return if we are larger than the molecule we are testing against return (large[0], large[1], None) gm = GM.Graph_Matcher(large[1], self.iso_graph) iso_map = gm.get_isomorphism() return (large[0], large[1], iso_map) | 3802da0cee8783fad8ebdeb2348aac01a77b9a28 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1151/3802da0cee8783fad8ebdeb2348aac01a77b9a28/Molecules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
291,
362,
7657,
23749,
12,
365,
16,
7876,
262,
30,
309,
365,
18,
9699,
67,
4660,
18,
13829,
67,
5667,
18,
4867,
63,
20,
65,
422,
374,
30,
225,
327,
261,
14095,
63,
20,
648... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
852,
67,
291,
362,
7657,
23749,
12,
365,
16,
7876,
262,
30,
309,
365,
18,
9699,
67,
4660,
18,
13829,
67,
5667,
18,
4867,
63,
20,
65,
422,
374,
30,
225,
327,
261,
14095,
63,
20,
648... |
if prefix is not None and inscope_namespace == namespace: | if prefix and inscope_namespace == namespace: | def attribute(self, name, value, namespace=None): """ add an attribute to an element | dc0c21626583332dd8580bfed28081989b0a28ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14078/dc0c21626583332dd8580bfed28081989b0a28ee/xmlwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1566,
12,
2890,
16,
508,
16,
460,
16,
1981,
33,
7036,
4672,
3536,
527,
392,
1566,
358,
392,
930,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1566,
12,
2890,
16,
508,
16,
460,
16,
1981,
33,
7036,
4672,
3536,
527,
392,
1566,
358,
392,
930,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return string.join(plains, '') | return join(plains, '') | def getPlainText(self): """Convenience function for templates which want access to the raw text, without XML tags. """ plains = [] for frag in self.frags: plains.append(frag.text) return string.join(plains, '') | b2cf1e4f93a7f349035e282e7cc45fb5c48720b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b2cf1e4f93a7f349035e282e7cc45fb5c48720b0/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9774,
530,
1528,
12,
2890,
4672,
3536,
14700,
445,
364,
5539,
1492,
2545,
2006,
358,
326,
1831,
977,
16,
2887,
3167,
2342,
18,
3536,
886,
4167,
273,
5378,
364,
10111,
316,
365,
18,
28193... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9774,
530,
1528,
12,
2890,
4672,
3536,
14700,
445,
364,
5539,
1492,
2545,
2006,
358,
326,
1831,
977,
16,
2887,
3167,
2342,
18,
3536,
886,
4167,
273,
5378,
364,
10111,
316,
365,
18,
28193... |
label = gtk.Label() label.set_text('%s: %s' % (nice_person, description)) attrlist = pango.AttrList() attrlist.insert(pango.AttrWeight(pango.WEIGHT_BOLD, 0, len(nice_person) + 1)) label.set_attributes(attrlist) box.pack_start(label, False, False, 0) label.set_alignment(0, 0.5) notebook.insert_page(box, gtk.Label(_('C... | name_label = labels.BoldLabel('%s:' % nice_person) name_label.set_alignment(1.0, 1.0) left_box.pack_start(name_label, True, True) desc_label = gtk.Label(description) desc_label.set_alignment(0, 1.0) right_box.pack_start(desc_label, True, True) notebook.insert_page(scrolled, gtk.Label(_('Credits'))) | def __init__(self, window): gtk.Dialog.__init__(self, _('About'), window, 0, (gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)) self.set_has_separator(False) self.set_resizable(False) self.connect('response', _close_dialog) self.set_default_response(gtk.RESPONSE_CLOSE) | cb4885840d3554abc07dc048e3e3c371ecd1e4c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14624/cb4885840d3554abc07dc048e3e3c371ecd1e4c0/about.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2742,
4672,
22718,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
389,
2668,
24813,
19899,
2742,
16,
374,
16,
261,
4521,
79,
18,
31487,
3507,
67,
13384,
16,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2742,
4672,
22718,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
389,
2668,
24813,
19899,
2742,
16,
374,
16,
261,
4521,
79,
18,
31487,
3507,
67,
13384,
16,
2... |
def parse_stats(run_paths, types, run_as_key = False): | def parse_stats(run_paths, types, dataset, value_names, run_as_key = False): | def parse_stats(run_paths, types, run_as_key = False): # make sure the datalib files exist for path in run_paths: __get_stats( path ) # parse the stats for all the runs tables = datalib.parse_all( map(lambda x: path_stats( x ), run_paths), types, datalib.REQUIRED, keycolname = 'step' ) if run_as_key: # modify the map... | a89a2784c49339c932e3b234ca67a4ed4ea3f09f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5319/a89a2784c49339c932e3b234ca67a4ed4ea3f09f/common_stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
5296,
12,
2681,
67,
4481,
16,
1953,
16,
3709,
16,
460,
67,
1973,
16,
1086,
67,
345,
67,
856,
273,
1083,
4672,
468,
1221,
3071,
326,
18462,
495,
1390,
1005,
364,
589,
316,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5296,
12,
2681,
67,
4481,
16,
1953,
16,
3709,
16,
460,
67,
1973,
16,
1086,
67,
345,
67,
856,
273,
1083,
4672,
468,
1221,
3071,
326,
18462,
495,
1390,
1005,
364,
589,
316,
1... |
if opt in ( '-d', '--httpdir' ): httpDir = opt_value | if opt in ( '-d', '--httpdir' ): httpDir = opt_value | def main( ): httpPort = gHttpPort httpDir = gHttpDir logFile = gLogFile user = gUser group = gGroup doFork = 'true' shortOpts = 'd:p:l:u:g:fh' longOpts = [ 'httpdir=', 'httpport=', 'logfile=', 'user=', 'group=', 'help' ] try: opts, args = getopt.getopt( sys.argv[1:], shortOpts, longOpts ) except getopt.Ge... | d4cc2d1599d12bc73db5aa9e3c513fd4c1e1f939 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/d4cc2d1599d12bc73db5aa9e3c513fd4c1e1f939/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
262,
30,
1062,
2617,
273,
314,
2940,
2617,
1062,
1621,
225,
273,
314,
2940,
1621,
20169,
225,
273,
314,
19103,
729,
377,
273,
314,
1299,
1041,
565,
273,
314,
1114,
741,
22662,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
30,
1062,
2617,
273,
314,
2940,
2617,
1062,
1621,
225,
273,
314,
2940,
1621,
20169,
225,
273,
314,
19103,
729,
377,
273,
314,
1299,
1041,
565,
273,
314,
1114,
741,
22662,
... |
if self.options.output_encoding.lower() == 'unicode': | if self.settings.output_encoding \ and self.settings.output_encoding.lower() == 'unicode': | def write(self, data): """Encode `data`, store it in `self.destination`, and return it.""" if self.options.output_encoding.lower() == 'unicode': self.destination = data else: self.destination = data.encode(self.options.output_encoding) return self.destination | d3c78ba33589c75aed84d6467f6efbe2a351ccc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/d3c78ba33589c75aed84d6467f6efbe2a351ccc0/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
4672,
3536,
5509,
1375,
892,
9191,
1707,
518,
316,
1375,
2890,
18,
10590,
9191,
471,
327,
518,
12123,
309,
365,
18,
4272,
18,
2844,
67,
5999,
521,
471,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
12,
2890,
16,
501,
4672,
3536,
5509,
1375,
892,
9191,
1707,
518,
316,
1375,
2890,
18,
10590,
9191,
471,
327,
518,
12123,
309,
365,
18,
4272,
18,
2844,
67,
5999,
521,
471,
365,
18... |
pass | return if ns.disabled: self.results.put(None) continue if self.action_type == 'ping': self.results.put(ns.CheckHealth(fast_check=True)) elif self.action_type == 'health': self.results.put(ns.CheckHealth(sanity_checks=self.checks)) elif self.action_type == 'store_wildcards': self.results.put(ns.StoreWildcardCache()) el... | def run(self): """Iterate over the queue, processing each item.""" while not self.input.empty(): # check_wildcards is special: it has a tuple of two nameservers if self.action_type == 'wildcard_check': (ns, other_ns) = self.input.get_nowait() if ns.disabled or other_ns.disabled: self.results.put(None) continue else: se... | c15daedb6598978bf30b005aa8c2b626cee5f1f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/c15daedb6598978bf30b005aa8c2b626cee5f1f9/nameserver_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
14916,
1879,
326,
2389,
16,
4929,
1517,
761,
12123,
1323,
486,
365,
18,
2630,
18,
5531,
13332,
468,
866,
67,
22887,
87,
353,
4582,
30,
518,
711,
279,
3193,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
14916,
1879,
326,
2389,
16,
4929,
1517,
761,
12123,
1323,
486,
365,
18,
2630,
18,
5531,
13332,
468,
866,
67,
22887,
87,
353,
4582,
30,
518,
711,
279,
3193,
... |
self.conn.send.load(model.get_value(model.get_iter(path), 1)) self.conn.do.command_list_end() | self.conn.do.load(model.get_value(model.get_iter(path), 1)) | def add_item(self, widget): if self.conn: if self.notebook.get_current_page() == self.TAB_LIBRARY: items = self.browser_get_selected_items_recursive(True) self.conn.send.command_list_begin() for item in items: self.conn.send.add(item) self.conn.do.command_list_end() elif self.notebook.get_current_page() == self.TAB_PLA... | 0da9815c248298a9268c10f25c59ea81e5bd319d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/0da9815c248298a9268c10f25c59ea81e5bd319d/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1726,
12,
2890,
16,
3604,
4672,
309,
365,
18,
4646,
30,
309,
365,
18,
24422,
18,
588,
67,
2972,
67,
2433,
1435,
422,
365,
18,
28899,
67,
2053,
28254,
30,
1516,
273,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1726,
12,
2890,
16,
3604,
4672,
309,
365,
18,
4646,
30,
309,
365,
18,
24422,
18,
588,
67,
2972,
67,
2433,
1435,
422,
365,
18,
28899,
67,
2053,
28254,
30,
1516,
273,
365,
18,... |
if x == 0: y -= 1 x = gethw()[1] | def bs(self, delete_tabs=True): """Process a backspace""" | dd6e3b36e0bd1aa23651bbf26b75ff2483c205ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/dd6e3b36e0bd1aa23651bbf26b75ff2483c205ca/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7081,
12,
2890,
16,
1430,
67,
16056,
33,
5510,
4672,
3536,
2227,
279,
1473,
2981,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7081,
12,
2890,
16,
1430,
67,
16056,
33,
5510,
4672,
3536,
2227,
279,
1473,
2981,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
data = self.rfile.read(int(self.headers["content-length"])) | max_chunk_size = 10*1024*1024 size_remaining = int(self.headers["content-length"]) L = [] while size_remaining: chunk_size = min(size_remaining, max_chunk_size) L.append(self.rfile.read(chunk_size)) size_remaining -= len(L[-1]) data = ''.join(L) | def do_POST(self): """Handles the HTTP POST request. | 1b118776b0ec37c014aa7b38b2df6c5f46d957f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1b118776b0ec37c014aa7b38b2df6c5f46d957f1/SimpleXMLRPCServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3798,
12,
2890,
4672,
3536,
8788,
326,
2239,
5485,
590,
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,... | [
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,
741,
67,
3798,
12,
2890,
4672,
3536,
8788,
326,
2239,
5485,
590,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
channelModes.append(channel.findUser(user).flags) | channelModes.append(channel.findCUser(user.nick).flags) | def sendServerData(self, connection): # respond with our own PASS, SERVER combo passMsg = self.IRC_Message("PASS") passMsg.prefix = self.hostname passMsg.params = [self.prefs["server_password"]] connection.send(passMsg.toString()) servMsg = self.IRC_Message("SERVER") servMsg.params = [self.hostname, "1"] servMsg.trail ... | 7a5c24b8ea075a8ea853887e046e2421a561161c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11670/7a5c24b8ea075a8ea853887e046e2421a561161c/IRC_Server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
2081,
751,
12,
2890,
16,
1459,
4672,
468,
6846,
598,
3134,
4953,
17882,
16,
15061,
16778,
1342,
3332,
273,
365,
18,
30240,
67,
1079,
2932,
10884,
7923,
1342,
3332,
18,
3239,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
2081,
751,
12,
2890,
16,
1459,
4672,
468,
6846,
598,
3134,
4953,
17882,
16,
15061,
16778,
1342,
3332,
273,
365,
18,
30240,
67,
1079,
2932,
10884,
7923,
1342,
3332,
18,
3239,
273,
3... |
with file(path.join(self.data_root, 'searchindex.pickle')) as f: | with file(path.join(self.data_root, 'searchindex.pickle'), 'rb') as f: | def load_env(self, new_mtime): env_lock.acquire() try: if self.buildmtime == new_mtime: # happens if another thread already reloaded the env return print "* Loading the environment..." with file(path.join(self.data_root, ENV_PICKLE_FILENAME)) as f: self.env = pickle.load(f) with file(path.join(self.data_root, 'globalco... | e1405e8c383922a1413d461ece148598d5421858 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7032/e1405e8c383922a1413d461ece148598d5421858/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
3074,
12,
2890,
16,
394,
67,
10838,
4672,
1550,
67,
739,
18,
1077,
1039,
1435,
775,
30,
309,
365,
18,
3510,
10838,
422,
394,
67,
10838,
30,
468,
10555,
309,
4042,
2650,
1818,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3074,
12,
2890,
16,
394,
67,
10838,
4672,
1550,
67,
739,
18,
1077,
1039,
1435,
775,
30,
309,
365,
18,
3510,
10838,
422,
394,
67,
10838,
30,
468,
10555,
309,
4042,
2650,
1818,... |
props = CS.getPropertiesForGroup( group ) | props = CS.getPropertiesForGroup( userGroup ) | def __createPilotProxyFromMyProxy( self, userDN, userGroup, requiredTimeLeft = 43200, proxyToConnect = False ): retVal = self.downloadVOMSProxy( userDN, userGroup, requiredTimeLeft = 600, proxyToConnect = proxyToConnect ) if not retVal[ 'OK' ]: return retVal originChain = retVal[ 'Value' ] myProxy = MyProxy( server = g... | 2697cebf881ac645466141d5417dc5515994f0ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/2697cebf881ac645466141d5417dc5515994f0ee/ProxyManagerClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
52,
22797,
3886,
1265,
12062,
3886,
12,
365,
16,
729,
8609,
16,
26205,
16,
1931,
950,
3910,
273,
1059,
1578,
713,
16,
2889,
774,
5215,
273,
1083,
262,
30,
12197,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
52,
22797,
3886,
1265,
12062,
3886,
12,
365,
16,
729,
8609,
16,
26205,
16,
1931,
950,
3910,
273,
1059,
1578,
713,
16,
2889,
774,
5215,
273,
1083,
262,
30,
12197,
273,
365,
... |
self.log.verbose('Candidate Sites: %s' %(string.join(siteMask,', '))) | self.log.info('Candidate sites for job %s: %s' %(job,string.join(candidates,', '))) | def __resolveSiteCandidates(self,job,candidateSites,bannedSites,gridRequirements): """This method takes all client-provided inputs and resolves them into a list of candidate sites by checking against the allowed site mask for the Grid being used. """ #assume user knows what they're doing and avoid site mask e.g. sam jo... | e9c6e257474666d8ef672b7bd24ccb56727e03bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/e9c6e257474666d8ef672b7bd24ccb56727e03bf/PilotDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
10828,
4956,
18455,
12,
2890,
16,
4688,
16,
19188,
17055,
16,
70,
10041,
17055,
16,
5222,
15465,
4672,
3536,
2503,
707,
5530,
777,
1004,
17,
29206,
4540,
471,
17385,
2182,
1368,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10828,
4956,
18455,
12,
2890,
16,
4688,
16,
19188,
17055,
16,
70,
10041,
17055,
16,
5222,
15465,
4672,
3536,
2503,
707,
5530,
777,
1004,
17,
29206,
4540,
471,
17385,
2182,
1368,
279,... |
sys.exit(1) | sys.exit( 1 ) | def disableClockCheck( self, arg ): self.checkClock = False return DIRAC.S_OK() | 303a7e8d3e68ae8e58aff41c0b0c7240edc24ba0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/303a7e8d3e68ae8e58aff41c0b0c7240edc24ba0/dirac-proxy-info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4056,
14027,
1564,
12,
365,
16,
1501,
262,
30,
365,
18,
1893,
14027,
273,
1083,
327,
18544,
2226,
18,
55,
67,
3141,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4056,
14027,
1564,
12,
365,
16,
1501,
262,
30,
365,
18,
1893,
14027,
273,
1083,
327,
18544,
2226,
18,
55,
67,
3141,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.modifyDehydrogenateAction.setIconSet(QIconSet(self.image59)) | self.modifyDehydrogenateAction.setIconSet(QIconSet(self.image58)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | e48e859515237593d94b403a9c0a7295e08c31f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e48e859515237593d94b403a9c0a7295e08c31f2/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
simple.GL_GREEN_BIAS : (1,), simple.GL_GREEN_BITS : (1,), simple.GL_GREEN_SCALE : (1,), simple.GL_HISTOGRAM : (1,), simple.GL_INDEX_ARRAY : (1,), | simple.GL_GREEN_BIAS : (1,), simple.GL_GREEN_BITS : (1,), simple.GL_GREEN_SCALE : (1,), simple.GL_HISTOGRAM : (1,), simple.GL_INDEX_ARRAY : (1,), | def glGetDoublev( pname ): "Natural writing of glGetDoublev using standard ctypes" output = c_double*sizes.get( pname ) result = output() result = platform.OpenGL.glGetDoublev( pname, byref(result) ) return Numeric.array( result ) | 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,
5118,
967,
5265,
90,
12,
19952,
262,
30,
315,
23779,
3766,
7410,
434,
5118,
967,
5265,
90,
1450,
4529,
6983,
6,
876,
273,
276,
67,
9056,
14,
11914,
18,
588,
12,
19952,
262,
563,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5118,
967,
5265,
90,
12,
19952,
262,
30,
315,
23779,
3766,
7410,
434,
5118,
967,
5265,
90,
1450,
4529,
6983,
6,
876,
273,
276,
67,
9056,
14,
11914,
18,
588,
12,
19952,
262,
563,
273,
... |
DEFS = "-keep -DROOT=%(Q)s%(Root)s%(Q)s" | DEFS = "-DROOT=%(Q)s%(Root)s%(Q)s" | def ConvertPath(a): # This isn't "roundtrip", this is one (or both) is a nop. return ConvertFromCygwinPath(ConvertToCygwinPath(a)) | 1f0c73ce7840ccd144bddf58589b4323c169edf9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/1f0c73ce7840ccd144bddf58589b4323c169edf9/pylib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4037,
743,
12,
69,
4672,
468,
1220,
5177,
1404,
315,
2260,
25125,
3113,
333,
353,
1245,
261,
280,
3937,
13,
353,
279,
28797,
18,
327,
4037,
1265,
39,
4338,
8082,
743,
12,
2723,
774,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4037,
743,
12,
69,
4672,
468,
1220,
5177,
1404,
315,
2260,
25125,
3113,
333,
353,
1245,
261,
280,
3937,
13,
353,
279,
28797,
18,
327,
4037,
1265,
39,
4338,
8082,
743,
12,
2723,
774,
39... |
parts = urlparse.urlsplit(uri) | parts = urlparse.urlparse(uri) | def load(self, uri): '''Downloads the file associated with the URI, and returns a local file name for contents.''' # pass file URIs straight through -- no need to cache them parts = urlparse.urlsplit(uri) if parts[0] in ('', 'file'): return parts[2] | 3669d3c792042d6b129079ad305575902e13eef6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/3669d3c792042d6b129079ad305575902e13eef6/httpcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
2003,
4672,
9163,
22141,
326,
585,
3627,
598,
326,
3699,
16,
471,
1135,
279,
1191,
585,
508,
364,
2939,
1093,
6309,
468,
1342,
585,
24565,
21251,
3059,
1493,
1158,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
2003,
4672,
9163,
22141,
326,
585,
3627,
598,
326,
3699,
16,
471,
1135,
279,
1191,
585,
508,
364,
2939,
1093,
6309,
468,
1342,
585,
24565,
21251,
3059,
1493,
1158,
16... |
], CONTEXT) | ], 0, None, None, CONTEXT) | def test0060text(self): ''' Test Text. ''' text1_id = self.text.create({ 'text': 'Test', }, CONTEXT) self.assert_(text1_id) | 52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
4848,
955,
12,
2890,
4672,
9163,
7766,
3867,
18,
9163,
977,
21,
67,
350,
273,
365,
18,
955,
18,
2640,
12590,
296,
955,
4278,
296,
4709,
2187,
19879,
13862,
13,
365,
18,
1123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
4848,
955,
12,
2890,
4672,
9163,
7766,
3867,
18,
9163,
977,
21,
67,
350,
273,
365,
18,
955,
18,
2640,
12590,
296,
955,
4278,
296,
4709,
2187,
19879,
13862,
13,
365,
18,
1123... |
work = web.ctx.site.new(work_key, {"key": work_key, "title": edition.title, "authors": edition.authors}) work.save() | work = web.ctx.site.new(work_key, { "key": work_key, "type": {'key': '/type/work'}, "title": edition.title, "authors": [{"author": a, "type": {"key": "/type/author_role"}} for a in edition.authors] }) work._save() | def POST(self, key): edition = web.ctx.site.get(key) if edition is None: raise web.notfound() if edition.works: work = edition.works[0] else: work_key = web.ctx.site.new_key("/type/work") work = web.ctx.site.new(work_key, {"key": work_key, "title": edition.title, "authors": edition.authors}) work.save() edition.works ... | d67b3a37901f34d6901f86058dac6fdff27186f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/d67b3a37901f34d6901f86058dac6fdff27186f2/addbook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
16,
498,
4672,
28432,
273,
3311,
18,
5900,
18,
4256,
18,
588,
12,
856,
13,
309,
28432,
353,
599,
30,
1002,
3311,
18,
902,
7015,
1435,
225,
309,
28432,
18,
18597,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5485,
12,
2890,
16,
498,
4672,
28432,
273,
3311,
18,
5900,
18,
4256,
18,
588,
12,
856,
13,
309,
28432,
353,
599,
30,
1002,
3311,
18,
902,
7015,
1435,
225,
309,
28432,
18,
18597,
30,
... |
Option, version, conflict_handler, description, inst="SAS") | Option, version, conflict_handler, description, inst="SAS") self.remove_option("--norm") | def __init__(self, usage=None, option_list=None, options_class=None, version=None, conflict_handler='error', description=None, **kwargs): """ Constructor for C{SansOptions} | 2c14b0002fecc5ee319023d8dec9c05dafcd0b14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/2c14b0002fecc5ee319023d8dec9c05dafcd0b14/hlr_sas_options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4084,
33,
7036,
16,
1456,
67,
1098,
33,
7036,
16,
702,
67,
1106,
33,
7036,
16,
1177,
33,
7036,
16,
7546,
67,
4176,
2218,
1636,
2187,
2477,
33,
7036,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4084,
33,
7036,
16,
1456,
67,
1098,
33,
7036,
16,
702,
67,
1106,
33,
7036,
16,
1177,
33,
7036,
16,
7546,
67,
4176,
2218,
1636,
2187,
2477,
33,
7036,
16... |
def split(self,availWidth, availheight): | def split(self, availWidth, availheight): | def split(self,availWidth, availheight): """This will be called by more sophisticated frames when wrap fails. Stupid flowables should return (). Clever flowables should split themselves and return a list of flowables""" return [] | 46bfb024a37f063e6f81ad3beed7993c8b02c220 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/46bfb024a37f063e6f81ad3beed7993c8b02c220/layout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
15783,
2384,
16,
15783,
4210,
4672,
3536,
2503,
903,
506,
2566,
635,
1898,
272,
23169,
5846,
690,
7793,
1347,
2193,
6684,
18,
934,
416,
350,
4693,
1538,
1410,
327,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
15783,
2384,
16,
15783,
4210,
4672,
3536,
2503,
903,
506,
2566,
635,
1898,
272,
23169,
5846,
690,
7793,
1347,
2193,
6684,
18,
934,
416,
350,
4693,
1538,
1410,
327,
18... |
ids = self.search(cr, user, args, limit=limit, context=context) res = self.name_get(cr, name_get_uid or user, ids, context) | access_rights_uid = name_get_uid or user ids = self._search(cr, user, args, limit=limit, context=context, access_rights_uid=access_rights_uid) res = self.name_get(cr, access_rights_uid, ids, context) | def _name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=100, name_get_uid=None): if args is None: args = [] if context is None: context = {} args = args[:] if name: args += [(self._rec_name, operator, name)] ids = self.search(cr, user, args, limit=limit, context=context) res = self.na... | 1f9784df87b4f051d56c06c343f2f70da32ed220 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1f9784df87b4f051d56c06c343f2f70da32ed220/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
529,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
2218,
2187,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
6625,
16,
508,
67,
588,
67,
1911,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
529,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
2218,
2187,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
6625,
16,
508,
67,
588,
67,
1911,
... |
result = wikiutil.normalize_pagename(test) | result = wikiutil.normalize_pagename(test, self.request.cfg) | def testNormalizeWhitespace(self): """ request: normalize pagename: normalize whitespace """ cases = ( (u' ', u''), (u' a', u'a'), (u'a ', u'a'), (u'a b c', u'a b c'), (u'a b / c d / e f', u'a b/c d/e f'), # All 30 unicode spaces (config.chars_spaces, u''), ) for test, expected in cases... | 5371901b400ada61e194af162d1330dcd4fce34c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/5371901b400ada61e194af162d1330dcd4fce34c/test_wikiutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
14380,
9431,
12,
2890,
4672,
3536,
590,
30,
3883,
4262,
1069,
30,
3883,
7983,
3536,
6088,
273,
261,
261,
89,
11,
540,
2265,
582,
6309,
3631,
261,
89,
11,
565,
279,
2187,
582,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
14380,
9431,
12,
2890,
4672,
3536,
590,
30,
3883,
4262,
1069,
30,
3883,
7983,
3536,
6088,
273,
261,
261,
89,
11,
540,
2265,
582,
6309,
3631,
261,
89,
11,
565,
279,
2187,
582,
11,... |
'name': multiple_order_invoice_name(orders), 'origin': multiple_order_invoice_name(orders), | 'name': multiple_order_invoice_name(orders), 'origin': multiple_order_invoice_name(orders), | def make_invoice_by_partner(partner, orders, lines_ids): """ create a new invoice for one supplier @param partner : The object partner @param orders : The set of orders to add in the invoice @param lines : The list of line's id """ a = partner.property_account_payable.id if partner and partner.property_payment_term.id... | 3f6d20200662753d065a64276225bd8b208f71db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/3f6d20200662753d065a64276225bd8b208f71db/purchase_line_invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
16119,
67,
1637,
67,
31993,
12,
31993,
16,
11077,
16,
2362,
67,
2232,
4672,
3536,
752,
279,
394,
9179,
364,
1245,
17402,
632,
891,
19170,
294,
1021,
733,
19170,
632,
891,
11077... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16119,
67,
1637,
67,
31993,
12,
31993,
16,
11077,
16,
2362,
67,
2232,
4672,
3536,
752,
279,
394,
9179,
364,
1245,
17402,
632,
891,
19170,
294,
1021,
733,
19170,
632,
891,
11077... |
if (self.ndicom == len(self.groups_dicom)) and\ (self.ndicom > 1): | if (self.nslices == len(self.groups_dict)) and\ (self.nslices > 1): | def Update(self): # Ideally, AddFile would be sufficient for splitting DICOM # files into groups (series). However, this does not work for # acquisitions / equipments and manufacturers. | 852d34153b682b5b505b32ed53e14721ca96e67a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/852d34153b682b5b505b32ed53e14721ca96e67a/dicom_grouper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
12,
2890,
4672,
468,
23062,
1230,
16,
1436,
812,
4102,
506,
18662,
364,
20347,
30530,
468,
1390,
1368,
3252,
261,
10222,
2934,
10724,
16,
333,
1552,
486,
1440,
364,
468,
1721,
16608,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
12,
2890,
4672,
468,
23062,
1230,
16,
1436,
812,
4102,
506,
18662,
364,
20347,
30530,
468,
1390,
1368,
3252,
261,
10222,
2934,
10724,
16,
333,
1552,
486,
1440,
364,
468,
1721,
16608,... |
if type(value) != type([]): | if type(value) not in (type([]), type( () )): | def post_to_server(self, data, auth=None): ''' Post a query to the server, and return a string response. ''' | 13e56f0c29f753539440523f3949fa3a974065ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/13e56f0c29f753539440523f3949fa3a974065ed/register.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
869,
67,
3567,
12,
2890,
16,
501,
16,
1357,
33,
7036,
4672,
9163,
5616,
279,
843,
358,
326,
1438,
16,
471,
327,
279,
533,
766,
18,
9163,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
869,
67,
3567,
12,
2890,
16,
501,
16,
1357,
33,
7036,
4672,
9163,
5616,
279,
843,
358,
326,
1438,
16,
471,
327,
279,
533,
766,
18,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
self.whitelist = promptFilter(prompt, self.whitelist) self.removal = promptFilter(rprompt, self.removal) | self.whitelist = promptFilter(prompt, self.whitelist) self.removal = promptFilter(rprompt, self.removal) | def Decide(self): '''Set self.whitelist based on user interaction''' prompt = "Install %s: %s? (y/N): " rprompt = "Remove %s: %s? (y/N): " if self.setup['remove']: if self.setup['remove'] == 'all': self.removal = self.extra elif self.setup['remove'] == 'services': self.removal = [entry for entry in self.extra \ if entr... | ed24c08e6cfa6093d8ff28585caddea08b96ee30 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/ed24c08e6cfa6093d8ff28585caddea08b96ee30/Frame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3416,
831,
12,
2890,
4672,
9163,
694,
365,
18,
20409,
2511,
603,
729,
13581,
26418,
6866,
273,
315,
6410,
738,
87,
30,
738,
87,
35,
261,
93,
19,
50,
4672,
315,
8715,
8645,
273,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3416,
831,
12,
2890,
4672,
9163,
694,
365,
18,
20409,
2511,
603,
729,
13581,
26418,
6866,
273,
315,
6410,
738,
87,
30,
738,
87,
35,
261,
93,
19,
50,
4672,
315,
8715,
8645,
273,
315,
... |
self.workRequestQueue.put((callable, args, kwargs)) return self.resultQueue.get() | self.__workRequestQueue.put((callable, args, kwargs)) return self.__resultQueue.get() def end(self): ''' Make a best effort attempt to stop the Serializer. If the thread is currently executing the function, this effort may not immidiately succeed. The Serializer is then stopped when execution returns from the functio... | def apply(self, callable *args, **kwargs): 'Called by other threads as callable would be.' self.workRequestQueue.put((callable, args, kwargs)) return self.resultQueue.get() | 9309008f769451c24a2114d1b377a0ccf8828835 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9837/9309008f769451c24a2114d1b377a0ccf8828835/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
4140,
380,
1968,
16,
2826,
4333,
4672,
296,
8185,
635,
1308,
7403,
487,
4140,
4102,
506,
1093,
365,
18,
1252,
691,
3183,
18,
458,
12443,
7293,
16,
833,
16,
1205,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
4140,
380,
1968,
16,
2826,
4333,
4672,
296,
8185,
635,
1308,
7403,
487,
4140,
4102,
506,
1093,
365,
18,
1252,
691,
3183,
18,
458,
12443,
7293,
16,
833,
16,
1205,
37... |
'srsearch': q, | 'srsearch': key, | def search(self, query, number = 10, namespaces = None): """ Yield search results for query. Use API when enabled use_api and version >= 1.11, or use Special:Search. """ if self.has_api() and self.versionnumber() >= 11: #Yield search results (using api) for query. params = { 'action': 'query', 'list': 'search', 'srsear... | def3ab94a3a5048cfe6420ff5e15f5b61d5f6175 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/def3ab94a3a5048cfe6420ff5e15f5b61d5f6175/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
843,
16,
1300,
273,
1728,
16,
7728,
273,
599,
4672,
3536,
31666,
1623,
1686,
364,
843,
18,
2672,
1491,
1347,
3696,
999,
67,
2425,
471,
1177,
1545,
404,
18,
2499,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
843,
16,
1300,
273,
1728,
16,
7728,
273,
599,
4672,
3536,
31666,
1623,
1686,
364,
843,
18,
2672,
1491,
1347,
3696,
999,
67,
2425,
471,
1177,
1545,
404,
18,
2499,
16... |
plugin.deactivate() | plugins_to_deactivate.append(plugin.name) | def render_admin_response(template_name, _active_menu_item=None, **values): """Works pretty much like the normal `render_response` function but it emits some events to collect navigation items and injects that into the template context. This also gets the flashes messages from the user session and injects them into the... | 7d1f0ee3fe98d16418503c67f00a979112df9a8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/7d1f0ee3fe98d16418503c67f00a979112df9a8a/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
3666,
67,
2740,
12,
3202,
67,
529,
16,
389,
3535,
67,
5414,
67,
1726,
33,
7036,
16,
2826,
2372,
4672,
3536,
16663,
7517,
9816,
3007,
326,
2212,
1375,
5902,
67,
2740,
68,
445,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
67,
3666,
67,
2740,
12,
3202,
67,
529,
16,
389,
3535,
67,
5414,
67,
1726,
33,
7036,
16,
2826,
2372,
4672,
3536,
16663,
7517,
9816,
3007,
326,
2212,
1375,
5902,
67,
2740,
68,
445,... |
schema.createTrove(db) | schema.createTroves(db) | def __init__(self, db): self.db = db schema.createTrove(db) | 717c8a426e9b95e8f1d626743ca54dda270b0e47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/717c8a426e9b95e8f1d626743ca54dda270b0e47/troveinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1319,
4672,
365,
18,
1966,
273,
1319,
1963,
18,
2640,
56,
303,
537,
12,
1966,
13,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1319,
4672,
365,
18,
1966,
273,
1319,
1963,
18,
2640,
56,
303,
537,
12,
1966,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
'''DoModal has finished. Can now access the users choices''' | '''DoModal has finished. Can now access the users choices''' | def OnOK(self): '''DoModal has finished. Can now access the users choices''' self._obj_.OnOK() pInfo = self.pInfo # user values flags = pInfo.GetFlags() self['toFile'] = (flags&win32ui.PD_PRINTTOFILE != 0) self['direct'] = pInfo.GetDirect() self['preview'] = pInfo.GetPreview() self['continuePrinting'] = pInfo.GetContin... | 81be9edd0818d0cc5675a75bd7b6fce36ac54c3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/81be9edd0818d0cc5675a75bd7b6fce36ac54c3d/dialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3141,
12,
2890,
4672,
9163,
3244,
20191,
711,
6708,
18,
4480,
2037,
2006,
326,
3677,
7246,
26418,
365,
6315,
2603,
27799,
1398,
3141,
1435,
293,
966,
273,
365,
18,
84,
966,
468,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2755,
3141,
12,
2890,
4672,
9163,
3244,
20191,
711,
6708,
18,
4480,
2037,
2006,
326,
3677,
7246,
26418,
365,
6315,
2603,
27799,
1398,
3141,
1435,
293,
966,
273,
365,
18,
84,
966,
468,
72... |
test() | test() | def test(): import sys import getopt try: opts, args = getopt.getopt(sys.argv[1:], 'td') except getopt.error, msg: sys.stdout = sys.stderr print msg print "usage: quopri [-t | -d] [file] ..." print "-t: quote tabs" print "-d: decode; default encode" sys.exit(2) deco = 0 tabs = 0 for o, a in opts: if o == '-t': tabs = 1... | 956dbd2d9561464289646aad7770db42e7903ddf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/956dbd2d9561464289646aad7770db42e7903ddf/quopri.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
1930,
2589,
1930,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
4465,
6134,
1335,
336,
3838,
18,
1636,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
1930,
2589,
1930,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
4465,
6134,
1335,
336,
3838,
18,
1636,
16,
... |
for key in self.selectionCurveKeyList: self.removeCurve(key) | for key in self.selectionCurveKeyList: self.removeCurve(key) | def removeAllSelections(self, send = 1): for key in self.selectionCurveKeyList: self.removeCurve(key) self.selectionCurveKeyList = [] self.replot() if send and self.autoSendSelectionCallback: self.autoSendSelectionCallback() # do we want to send new selection | 37758c47e1a73464ce84e16eaa0455c8325680ce /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/37758c47e1a73464ce84e16eaa0455c8325680ce/OWGraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12787,
29913,
12,
2890,
16,
1366,
273,
404,
4672,
364,
498,
316,
365,
18,
10705,
9423,
653,
682,
30,
365,
18,
4479,
9423,
12,
856,
13,
365,
18,
10705,
9423,
653,
682,
273,
5378,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12787,
29913,
12,
2890,
16,
1366,
273,
404,
4672,
364,
498,
316,
365,
18,
10705,
9423,
653,
682,
30,
365,
18,
4479,
9423,
12,
856,
13,
365,
18,
10705,
9423,
653,
682,
273,
5378,
365,
... |
name = ref and info.getName(ref) or info.getName() | name = ref and info.getName(ref) if name is None: name = info.getName() | def getText(self): service = self.source.service if isinstance(service, iPlayableServicePtr): info = service and service.info() ref = None else: # reference info = service and self.source.info ref = service if info is None: return "" if self.type == self.NAME: name = ref and info.getName(ref) or info.getName() return n... | d65ce06bfed2444d9870630f095db401d78a096e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/d65ce06bfed2444d9870630f095db401d78a096e/ServiceName.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6701,
12,
2890,
4672,
1156,
273,
365,
18,
3168,
18,
3278,
309,
1549,
12,
3278,
16,
277,
11765,
429,
1179,
5263,
4672,
1123,
273,
1156,
471,
1156,
18,
1376,
1435,
1278,
273,
599,
469,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6701,
12,
2890,
4672,
1156,
273,
365,
18,
3168,
18,
3278,
309,
1549,
12,
3278,
16,
277,
11765,
429,
1179,
5263,
4672,
1123,
273,
1156,
471,
1156,
18,
1376,
1435,
1278,
273,
599,
469,
3... |
dirs = [os.path.join(base_dir, d) for d in os.listdir(base_dir) if os.path.isdir(os.path.join(base_dir, d)) and d not in ignore] | dirs = [] for base_dir in base_dirs: if os.path.exists(base_dir): for d in os.listdir(base_dir): if os.path.isdir(os.path.join(base_dir, d)) and \ d not in ignore: dirs.append(os.path.join(base_dir, d)) | def purge(base_dir, gigs, ignore, dry_run=False): """Delete directories under `base_dir` until `gigs` GB are free Will not delete directories listed in the ignore list.""" gigs *= 1024 * 1024 * 1024 if freespace(base_dir) >= gigs: return dirs = [os.path.join(base_dir, d) for d in os.listdir(base_dir) if os.path.isdi... | c12b0ed3642211354e16f3ad24c1b0c1d06b35bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6206/c12b0ed3642211354e16f3ad24c1b0c1d06b35bc/purge_builds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
12,
1969,
67,
1214,
16,
314,
360,
87,
16,
2305,
16,
10299,
67,
2681,
33,
8381,
4672,
3536,
2613,
6402,
3613,
1375,
1969,
67,
1214,
68,
3180,
1375,
75,
360,
87,
68,
25069,
854,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11668,
12,
1969,
67,
1214,
16,
314,
360,
87,
16,
2305,
16,
10299,
67,
2681,
33,
8381,
4672,
3536,
2613,
6402,
3613,
1375,
1969,
67,
1214,
68,
3180,
1375,
75,
360,
87,
68,
25069,
854,
... |
cursor = self.db.cursor() title = self.args.get('title', '') sql = self.args.get('sql', '') description = self.args.get('description', '') cursor.execute('UPDATE report SET title=%s, sql=%s, description=%s ' ' WHERE id=%s', title, sql, description, id) self.db.commit() | if not self.args.has_key('cancel'): cursor = self.db.cursor() title = self.args.get('title', '') sql = self.args.get('sql', '') description = self.args.get('description', '') cursor.execute('UPDATE report SET title=%s, sql=%s, description=%s ' ' WHERE id=%s', title, sql, description, id) self.db.commit() | def commit_changes(self, id): """ saves report changes to the database """ self.perm.assert_permission(perm.REPORT_MODIFY) | 5e8e0422246437cc2f84ac34bf4e22bc8067b18e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/5e8e0422246437cc2f84ac34bf4e22bc8067b18e/Report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
67,
6329,
12,
2890,
16,
612,
4672,
3536,
14649,
2605,
3478,
358,
326,
2063,
3536,
365,
18,
12160,
18,
11231,
67,
9827,
12,
12160,
18,
22710,
67,
6720,
12096,
13,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
67,
6329,
12,
2890,
16,
612,
4672,
3536,
14649,
2605,
3478,
358,
326,
2063,
3536,
365,
18,
12160,
18,
11231,
67,
9827,
12,
12160,
18,
22710,
67,
6720,
12096,
13,
2,
-100,
-100,
-... |
setattr(tvar, 'units', 'seconds since 2007-01-01 00:00:00') | def SMsurface(h,x): b_x = SMcold_bedslope(x) s = a * abs(x) # ??? return b_x - (C / rho_g) * s**m / h**(m+1) | 810459039197317233680a0b31209dd383851591 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7383/810459039197317233680a0b31209dd383851591/solverSM.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
348,
6947,
295,
865,
12,
76,
16,
92,
4672,
324,
67,
92,
273,
12014,
1293,
72,
67,
2992,
30320,
12,
92,
13,
272,
273,
279,
380,
2417,
12,
92,
13,
468,
5317,
35,
327,
324,
67,
92,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
6947,
295,
865,
12,
76,
16,
92,
4672,
324,
67,
92,
273,
12014,
1293,
72,
67,
2992,
30320,
12,
92,
13,
272,
273,
279,
380,
2417,
12,
92,
13,
468,
5317,
35,
327,
324,
67,
92,
... | |
if self and self.count: | if self and self.hits: | def __iter__(self): if self and self.count: docs = getattr(self.reply.Documents, self.doc_type) else: docs = [] | ec8f9e10b9258192ba69628b104ed3fe451df642 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12122/ec8f9e10b9258192ba69628b104ed3fe451df642/dws.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
309,
365,
471,
365,
18,
15173,
30,
3270,
273,
3869,
12,
2890,
18,
10629,
18,
12922,
16,
365,
18,
2434,
67,
723,
13,
469,
30,
3270,
273,
5378,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
309,
365,
471,
365,
18,
15173,
30,
3270,
273,
3869,
12,
2890,
18,
10629,
18,
12922,
16,
365,
18,
2434,
67,
723,
13,
469,
30,
3270,
273,
5378,
2,
-100... |
if inv.type == 'out_invoice': xml_id = 'action_invoice_tree1' elif inv.type == 'in_invoice': xml_id = 'action_invoice_tree2' elif inv.type == 'out_refund': | if inv.type in ('out_invoice', 'out_refund'): | def compute_refund(self, cr, uid, ids, mode='refund', context=None): """ @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs | 0d5ea8b1427b71b0d6c57de045636d33be002d51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0d5ea8b1427b71b0d6c57de045636d33be002d51/account_invoice_refund.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
1734,
1074,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1965,
2218,
1734,
1074,
2187,
819,
33,
7036,
4672,
3536,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3671,
67,
1734,
1074,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1965,
2218,
1734,
1074,
2187,
819,
33,
7036,
4672,
3536,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,... |
self.picker_orientation.set_name('HildonButton-finger') self.picker_interval.set_name('HildonButton-finger') self.picker_download.set_name('HildonButton-finger') self.picker_orientation.set_alignment(0.5, 0.5, .9, 0.) self.picker_interval.set_alignment(0.5, 0.5, .9, 0.) self.picker_download.set_alignment(0.5, 0.5, .9... | for picker in (self.picker_orientation, \ self.picker_interval, \ self.picker_download): picker.set_name('HildonButton-finger') picker.set_alignment(.0, .5, 1., 0.) child = picker.get_child() child.set_padding(0, 0, 12, 0) | def new(self): self.main_window.connect('destroy', lambda w: self.callback_finished()) | e9980193131f3de7eea3a5944805d2acf4808d9d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/e9980193131f3de7eea3a5944805d2acf4808d9d/preferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
4672,
365,
18,
5254,
67,
5668,
18,
3612,
2668,
11662,
2187,
3195,
341,
30,
365,
18,
3394,
67,
13527,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
4672,
365,
18,
5254,
67,
5668,
18,
3612,
2668,
11662,
2187,
3195,
341,
30,
365,
18,
3394,
67,
13527,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._delete_link.on_leave_notify(None, None) | if self._delete_link: self._delete_link.on_leave_notify(None, None) | def reset(self): self._delete_link.on_leave_notify(None, None) | 5ed3be55d0dbdfaaa87e8b22a22480179901a001 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/5ed3be55d0dbdfaaa87e8b22a22480179901a001/video.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
6315,
3733,
67,
1232,
18,
265,
67,
19574,
67,
12336,
12,
7036,
16,
599,
13,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
6315,
3733,
67,
1232,
18,
265,
67,
19574,
67,
12336,
12,
7036,
16,
599,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if i == 0: self.waitUntil = time() else: self.waitUntil = t self.log.info(_("Netload: waiting for captcha %d s.") % (self.waitUntil - time())) | if i == 0: self.pyfile.waitUntil = time() else: self.pyfile.waitUntil = t self.log.info(_("Netload: waiting for captcha %d s.") % (self.pyfile.waitUntil - time())) | def download_html(self): self.log.debug("Netload: Entering download_html") page = self.load(self.url) t = time() + 30 | 24368686bc9aec5a7dfcf67c51e9ae6a58cf748f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/24368686bc9aec5a7dfcf67c51e9ae6a58cf748f/NetloadIn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
2620,
12,
2890,
4672,
365,
18,
1330,
18,
4148,
2932,
7308,
945,
30,
15439,
310,
4224,
67,
2620,
7923,
1363,
273,
365,
18,
945,
12,
2890,
18,
718,
13,
268,
273,
813,
1435,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
2620,
12,
2890,
4672,
365,
18,
1330,
18,
4148,
2932,
7308,
945,
30,
15439,
310,
4224,
67,
2620,
7923,
1363,
273,
365,
18,
945,
12,
2890,
18,
718,
13,
268,
273,
813,
1435,
3... |
if not func.name in _CMD_ID_TABLE: self.Error("Command %s not in _CMD_ID_TABLE" % func.name) by_id[_CMD_ID_TABLE[func.name]] = func | if True: if not func.name in _CMD_ID_TABLE: self.Error("Command %s not in _CMD_ID_TABLE" % func.name) by_id[_CMD_ID_TABLE[func.name]] = func | def WriteCommandIds(self, filename): """Writes the command buffer format""" file = CHeaderWriter(filename) file.Write("#define GLES2_COMMAND_LIST(OP) \\\n") by_id = {} for func in self.functions: if not func.name in _CMD_ID_TABLE: self.Error("Command %s not in _CMD_ID_TABLE" % func.name) by_id[_CMD_ID_TABLE[func.name]]... | ee42ed4a69c7e3b162746340666f981a90cdd8be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/ee42ed4a69c7e3b162746340666f981a90cdd8be/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
2189,
2673,
12,
2890,
16,
1544,
4672,
3536,
8368,
326,
1296,
1613,
740,
8395,
585,
273,
385,
1864,
2289,
12,
3459,
13,
585,
18,
3067,
2932,
7,
11255,
611,
11386,
22,
67,
19104,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2598,
2189,
2673,
12,
2890,
16,
1544,
4672,
3536,
8368,
326,
1296,
1613,
740,
8395,
585,
273,
385,
1864,
2289,
12,
3459,
13,
585,
18,
3067,
2932,
7,
11255,
611,
11386,
22,
67,
19104,
6... |
if active.localtip.branch() != 'default': | if repo.dirstate.branch() != 'default': | def cdm_branchchk(ui, repo, **opts): '''check if multiple heads (or branches) are present, or if branch changes are made''' active = opts.get('active') or wslist[repo].active(opts['parent']) ui.write('Checking for multiple heads (or branches):\n') heads = set(repo.heads()) parents = set([x.node() for x in repo.worki... | c9e1384ea688ba57763d39fa5b6785f623f1e5ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5416/c9e1384ea688ba57763d39fa5b6785f623f1e5ee/cdm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7976,
81,
67,
7500,
27038,
12,
4881,
16,
3538,
16,
2826,
4952,
4672,
9163,
1893,
309,
3229,
22742,
261,
280,
11483,
13,
854,
3430,
16,
578,
309,
3803,
3478,
854,
7165,
26418,
225,
2695,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7976,
81,
67,
7500,
27038,
12,
4881,
16,
3538,
16,
2826,
4952,
4672,
9163,
1893,
309,
3229,
22742,
261,
280,
11483,
13,
854,
3430,
16,
578,
309,
3803,
3478,
854,
7165,
26418,
225,
2695,
... |
self.parser.add_option("--consumerid", dest="consumerid", help=_("register to an existing consumer")) | def __init__(self): usage = "usage: %prog register [OPTIONS]" shortdesc = _("register the client to a Unified Entitlement Platform.") desc = "register" | 5ca891ee32596f5650add435c269e22fd1c4da35 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/5ca891ee32596f5650add435c269e22fd1c4da35/managercli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
4084,
273,
315,
9167,
30,
738,
14654,
1744,
306,
12422,
4279,
3025,
5569,
273,
389,
2932,
4861,
326,
1004,
358,
279,
1351,
939,
512,
496,
19025,
11810,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
4084,
273,
315,
9167,
30,
738,
14654,
1744,
306,
12422,
4279,
3025,
5569,
273,
389,
2932,
4861,
326,
1004,
358,
279,
1351,
939,
512,
496,
19025,
11810,
1... | |
role = _role_api.role(authorization.super_user_role) | role = self.role_api.role(authorization.super_user_role) | def test_super_users(self): role = _role_api.role(authorization.super_user_role) self.assertFalse(role is None) | a9d8006baa42e2d69c33d9a30b806af2bc2bbbd9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/a9d8006baa42e2d69c33d9a30b806af2bc2bbbd9/test_authorization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9565,
67,
5577,
12,
2890,
4672,
2478,
273,
365,
18,
4615,
67,
2425,
18,
4615,
12,
12218,
18,
9565,
67,
1355,
67,
4615,
13,
365,
18,
11231,
8381,
12,
4615,
353,
599,
13,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
9565,
67,
5577,
12,
2890,
4672,
2478,
273,
365,
18,
4615,
67,
2425,
18,
4615,
12,
12218,
18,
9565,
67,
1355,
67,
4615,
13,
365,
18,
11231,
8381,
12,
4615,
353,
599,
13,
2,
... |
lnotab, count) | lnotab, count, encoding) | def write_results(self, show_missing=True, summary=False, coverdir=None): """ @param coverdir """ if self.calledfuncs: print() print("functions called:") calls = self.calledfuncs for filename, modulename, funcname in sorted(calls): print(("filename: %s, modulename: %s, funcname: %s" % (filename, modulename, funcname))) | a058eb2c2bdf8631ff2ebf9f8cb10c772f663a19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/a058eb2c2bdf8631ff2ebf9f8cb10c772f663a19/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4717,
12,
2890,
16,
2405,
67,
7337,
33,
5510,
16,
4916,
33,
8381,
16,
5590,
1214,
33,
7036,
4672,
3536,
632,
891,
5590,
1214,
3536,
309,
365,
18,
11777,
17728,
30,
1172,
1435... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
67,
4717,
12,
2890,
16,
2405,
67,
7337,
33,
5510,
16,
4916,
33,
8381,
16,
5590,
1214,
33,
7036,
4672,
3536,
632,
891,
5590,
1214,
3536,
309,
365,
18,
11777,
17728,
30,
1172,
1435... |
('Preferences', gtk.STOCK_PREFERENCES, _('_Preferences'), None, _('Preferences'), self.prefs_show), | ('Preferences', gtk.STOCK_PREFERENCES, _('_Preferences...'), None, _('Preferences'), self.prefs_show), | def __init__(self): | 9528ffe985b91cbffe7621720ac1de8beeca167e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/9528ffe985b91cbffe7621720ac1de8beeca167e/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
except: | except IOError: | def lolist(): used = 0 free = 0 for i in xrange(LOOP.LOOP_MAX): dev = "/dev/loop%d" % i try: mode = os.stat(dev).st_mode except: continue if mode and stat.S_ISBLK(mode): l = LOOP(dev) try: l._getInfo() except: free += 1 continue used += 1 line = "%s: [%04x]:%d (%s)" % (dev, l.lo_device, l.lo_inode, l.lo_file_name) if l... | fd1625ecdd17ced116fb7fe0737e3ed4ba9353a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/fd1625ecdd17ced116fb7fe0737e3ed4ba9353a4/loop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
355,
376,
13332,
1399,
273,
374,
4843,
273,
374,
364,
277,
316,
12314,
12,
28677,
18,
28677,
67,
6694,
4672,
4461,
273,
2206,
5206,
19,
6498,
9,
72,
6,
738,
277,
775,
30,
1965,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
328,
355,
376,
13332,
1399,
273,
374,
4843,
273,
374,
364,
277,
316,
12314,
12,
28677,
18,
28677,
67,
6694,
4672,
4461,
273,
2206,
5206,
19,
6498,
9,
72,
6,
738,
277,
775,
30,
1965,
... |
Returns the hash of this symbolic expression. | Returns the hash of the simplified string representation of this symbolic expression. | def __hash__(self): """ Returns the hash of this symbolic expression. | abdfcf431c16b5e8cafeef9f13278a24ca371eb1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/abdfcf431c16b5e8cafeef9f13278a24ca371eb1/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2816,
972,
12,
2890,
4672,
3536,
2860,
326,
1651,
434,
333,
16754,
2652,
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,
... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2816,
972,
12,
2890,
4672,
3536,
2860,
326,
1651,
434,
333,
16754,
2652,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
context.remoteSiteTop.default = os.path.dirname(remoteCachePath) | context.environ['remoteSiteTop'].default \ = os.path.dirname(remoteCachePath) | def remoteSite(self,indexPath): '''We need to set the remoteIndex to a realpath when we are dealing with a local file else links could end-up generating a different prefix than remoteSiteTop for remoteIndex.''' remoteIndex = indexPath if not ':' in remoteIndex: remoteIndex = os.path.realpath(remoteIndex) context.enviro... | 3a0ea5f627e7f724ea42c6a047995de491c801c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/3a0ea5f627e7f724ea42c6a047995de491c801c8/dws.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2632,
4956,
12,
2890,
16,
1615,
743,
4672,
9163,
3218,
1608,
358,
444,
326,
2632,
1016,
358,
279,
9098,
1347,
732,
854,
21964,
598,
279,
1191,
585,
469,
4716,
3377,
679,
17,
416,
12516,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2632,
4956,
12,
2890,
16,
1615,
743,
4672,
9163,
3218,
1608,
358,
444,
326,
2632,
1016,
358,
279,
9098,
1347,
732,
854,
21964,
598,
279,
1191,
585,
469,
4716,
3377,
679,
17,
416,
12516,
... |
CppText += NextIndent + "glVertex2%s(tt_TurtlePos[0], tt_TurtlePos[1]);\n" % NumTypeGL | CppText += NextIndent + "wrapper_glLineVertex((float) tt_TurtlePos[0], (float) tt_TurtlePos[1]);\n" | def GetCppBuiltinMove(self, IndentText, Arg, DirSign): NumTypeGL = self.LogoState.NumType[0] if NumTypeGL == "f": NumTypeMath = "f" else: NumTypeMath = "" NextIndent = IndentText + " " * self.IndentSize ScrunchText = "" CppText = "" # get the code text for the argument ArgText = self.GetCppArgument(Arg) if ArgText is N... | bababbffcfffb2cb7b8c7a966a17e88685da5c1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2419/bababbffcfffb2cb7b8c7a966a17e88685da5c1d/tt_cppwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
39,
11858,
28032,
7607,
12,
2890,
16,
28653,
1528,
16,
14448,
16,
8446,
2766,
4672,
6805,
559,
11261,
273,
365,
18,
26604,
1119,
18,
2578,
559,
63,
20,
65,
309,
6805,
559,
11261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
968,
39,
11858,
28032,
7607,
12,
2890,
16,
28653,
1528,
16,
14448,
16,
8446,
2766,
4672,
6805,
559,
11261,
273,
365,
18,
26604,
1119,
18,
2578,
559,
63,
20,
65,
309,
6805,
559,
11261,
... |
self.lineno = self.lineno + string.count(rawdata[i:i], '\n') | self.lineno = self.lineno + string.count(rawdata[i:k], '\n') | def goahead(self, end): rawdata = self.rawdata i = 0 n = len(rawdata) while i < n: if i > 0: self.__at_start = 0 if self.nomoretags: data = rawdata[i:n] self.handle_data(data) self.lineno = self.lineno + string.count(data, '\n') i = n break res = interesting.search(rawdata, i) if res: j = res.start(0) else: j = n if i ... | 5baaf66525aa7b3a61d2fec14b945539cd36d689 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5baaf66525aa7b3a61d2fec14b945539cd36d689/xmllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
11617,
12,
2890,
16,
679,
4672,
1831,
892,
273,
365,
18,
1899,
892,
277,
273,
374,
290,
273,
562,
12,
1899,
892,
13,
1323,
277,
411,
290,
30,
309,
277,
405,
374,
30,
365,
16186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1960,
11617,
12,
2890,
16,
679,
4672,
1831,
892,
273,
365,
18,
1899,
892,
277,
273,
374,
290,
273,
562,
12,
1899,
892,
13,
1323,
277,
411,
290,
30,
309,
277,
405,
374,
30,
365,
16186... |
tearDown = setUp | def setUp(self): self.file1 = support.TESTFN self.file2 = os.path.join(support.TESTFN + "2") | c0abc4e3a485f9c43c1d98be29d76f1738d8bd01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/c0abc4e3a485f9c43c1d98be29d76f1738d8bd01/test_os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
768,
21,
273,
2865,
18,
16961,
19793,
365,
18,
768,
22,
273,
1140,
18,
803,
18,
5701,
12,
13261,
18,
16961,
19793,
397,
315,
22,
7923,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
768,
21,
273,
2865,
18,
16961,
19793,
365,
18,
768,
22,
273,
1140,
18,
803,
18,
5701,
12,
13261,
18,
16961,
19793,
397,
315,
22,
7923,
2,
-100,
-100,
... | |
self.content = content | self.contents = contents | def __init__(self, content, format=None, paste=None, static=False): if not format: format = self._default_format if not paste: paste = self._default_paste if isinstance(content, basestring): spec = content self.content = None else: spec = "" self.content = content self.format = format self.paste = paste DynStrActionBas... | dd6b9ce3e4a4f0b9ea91cd661fb9bb66002512f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6624/dd6b9ce3e4a4f0b9ea91cd661fb9bb66002512f2/action_paste.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
913,
16,
740,
33,
7036,
16,
19401,
33,
7036,
16,
760,
33,
8381,
4672,
309,
486,
740,
30,
740,
273,
365,
6315,
1886,
67,
2139,
309,
486,
19401,
30,
1940... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
913,
16,
740,
33,
7036,
16,
19401,
33,
7036,
16,
760,
33,
8381,
4672,
309,
486,
740,
30,
740,
273,
365,
6315,
1886,
67,
2139,
309,
486,
19401,
30,
1940... |
sys.exit.expect_call(1).and_raises(cli_mock.ExitException) | (sys.exit.expect_call(mock.anything_comparator()) .and_raises(cli_mock.ExitException)) | def test_execute_create_job_no_args(self): testjob = job.job_create() sys.argv = ['atest', 'job', 'create', '--ignore_site_file'] self.god.mock_io() sys.exit.expect_call(1).and_raises(cli_mock.ExitException) self.assertRaises(cli_mock.ExitException, testjob.parse) self.god.unmock_io() | 6f62febcbc85e4bfab852fef95e2af9570c88fa7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/6f62febcbc85e4bfab852fef95e2af9570c88fa7/job_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8837,
67,
2640,
67,
4688,
67,
2135,
67,
1968,
12,
2890,
4672,
1842,
4688,
273,
1719,
18,
4688,
67,
2640,
1435,
2589,
18,
19485,
273,
10228,
270,
395,
2187,
296,
4688,
2187,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8837,
67,
2640,
67,
4688,
67,
2135,
67,
1968,
12,
2890,
4672,
1842,
4688,
273,
1719,
18,
4688,
67,
2640,
1435,
2589,
18,
19485,
273,
10228,
270,
395,
2187,
296,
4688,
2187,
2... |
return self.process_handle is not None and self.process_handle.returncode != 0 | return (self.process_handle is not None and self.process_handle.returncode is not None and self.process_handle.returncode != 0) | def is_failed(self): return self.process_handle is not None and self.process_handle.returncode != 0 | 0e36750363070d66b8828b6ca9208edc77f901aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/0e36750363070d66b8828b6ca9208edc77f901aa/videoconversion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
7307,
12,
2890,
4672,
327,
365,
18,
2567,
67,
4110,
353,
486,
599,
471,
365,
18,
2567,
67,
4110,
18,
2463,
710,
480,
374,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
7307,
12,
2890,
4672,
327,
365,
18,
2567,
67,
4110,
353,
486,
599,
471,
365,
18,
2567,
67,
4110,
18,
2463,
710,
480,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return self.get(False) | self.not_empty.acquire() try: if self._empty(): raise Empty else: item = self._get() self.not_full.notify() return item finally: self.not_empty.release() | def get_nowait(self): """Remove and return an item from the queue without blocking. | 664649f75f8c5918ee8640798839f5366d8dc59c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/664649f75f8c5918ee8640798839f5366d8dc59c/Queue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3338,
1540,
12,
2890,
4672,
3536,
3288,
471,
327,
392,
761,
628,
326,
2389,
2887,
9445,
18,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3338,
1540,
12,
2890,
4672,
3536,
3288,
471,
327,
392,
761,
628,
326,
2389,
2887,
9445,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
for order in orders: | for order in orders: | def multiple_order_invoice_reference(partner, orders): reference = "P%dPO" % partner.id for order in orders: reference += "-%d" % order.id return reference | 3f6d20200662753d065a64276225bd8b208f71db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/3f6d20200662753d065a64276225bd8b208f71db/purchase_line_invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3229,
67,
1019,
67,
16119,
67,
6180,
12,
31993,
16,
11077,
4672,
2114,
273,
315,
52,
9,
72,
2419,
6,
738,
19170,
18,
350,
364,
1353,
316,
11077,
30,
2114,
1011,
3701,
9,
72,
6,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3229,
67,
1019,
67,
16119,
67,
6180,
12,
31993,
16,
11077,
4672,
2114,
273,
315,
52,
9,
72,
2419,
6,
738,
19170,
18,
350,
364,
1353,
316,
11077,
30,
2114,
1011,
3701,
9,
72,
6,
738,
... |
return | return | def set_continuous_eval(self, vid, state=True): """ set vid as a continuous evaluated node """ | 90cc3b5d89e608eb6d54b00e7c9a6c5e87731824 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/90cc3b5d89e608eb6d54b00e7c9a6c5e87731824/compositenode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
31056,
67,
8622,
12,
2890,
16,
18339,
16,
919,
33,
5510,
4672,
3536,
444,
18339,
487,
279,
17235,
12697,
756,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
31056,
67,
8622,
12,
2890,
16,
18339,
16,
919,
33,
5510,
4672,
3536,
444,
18339,
487,
279,
17235,
12697,
756,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
host = '127.0.0.1' port = 8000 prefix = "/Users/shawiz/Development/research/www/remote_installer" dl_prefix = "download" | def build_installer(self, user_key_dict, vessels, dist_str): """ <Purpose> Create the customized installer by taking the user-key pair and vessel info <Arguments> user_key_dict: the dictionary containing the user - public key pair see method above for detailed format vessels: the vessel information given by the user s... | cb5a0f40a68ff5a6797852e4452775da461c8622 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/cb5a0f40a68ff5a6797852e4452775da461c8622/remote_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
20163,
12,
2890,
16,
729,
67,
856,
67,
1576,
16,
331,
403,
10558,
16,
2411,
67,
701,
4672,
3536,
411,
10262,
4150,
34,
1788,
326,
29063,
16050,
635,
13763,
326,
729,
17,
856,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
20163,
12,
2890,
16,
729,
67,
856,
67,
1576,
16,
331,
403,
10558,
16,
2411,
67,
701,
4672,
3536,
411,
10262,
4150,
34,
1788,
326,
29063,
16050,
635,
13763,
326,
729,
17,
856,... | |
return unicode(urllib.quote_plus(self.getTitle())) | return unicode(urllib.quote_plus(self.getTitle().encode('utf8'))) | def getQuotedTitle(self): return unicode(urllib.quote_plus(self.getTitle())) | 152808999db78f4ff1253402ccd70626ba565f17 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/152808999db78f4ff1253402ccd70626ba565f17/item.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15919,
4247,
12,
2890,
4672,
327,
5252,
12,
718,
2941,
18,
6889,
67,
10103,
12,
2890,
18,
588,
4247,
1435,
3719,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15919,
4247,
12,
2890,
4672,
327,
5252,
12,
718,
2941,
18,
6889,
67,
10103,
12,
2890,
18,
588,
4247,
1435,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if game.quad[id.i][id.j] not in ('.', ' | if game.quad[tid.i][tid.j] not in ('.', ' | def movetholian(): "Move the Tholian." if not game.tholian or game.justin: return id = coord() if game.tholian.location.i == 0 and game.tholian.location.j == 0: id.i = 0; id.j = QUADSIZE-1 elif game.tholian.location.i == 0 and game.tholian.location.j == QUADSIZE-1: id.i = QUADSIZE-1; id.j = QUADSIZE-1 elif game.tholian... | eafdd35f1af1e4e93d3609a0adbe768b562907e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/eafdd35f1af1e4e93d3609a0adbe768b562907e0/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5730,
546,
355,
2779,
13332,
315,
7607,
326,
935,
355,
2779,
1199,
309,
486,
7920,
18,
451,
355,
2779,
578,
7920,
18,
3732,
267,
30,
327,
612,
273,
2745,
1435,
309,
7920,
18,
451,
355,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5730,
546,
355,
2779,
13332,
315,
7607,
326,
935,
355,
2779,
1199,
309,
486,
7920,
18,
451,
355,
2779,
578,
7920,
18,
3732,
267,
30,
327,
612,
273,
2745,
1435,
309,
7920,
18,
451,
355,... |
c.bookmarkPage("P3_FITV",fitType="FitV",left=10*inch) | c.bookmarkPage("P3_FITV",fit="FitV",left=10*inch) | def test1(self): | f811a1779ad79be84f8ef41d8fa39ca75e2645cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/f811a1779ad79be84f8ef41d8fa39ca75e2645cc/test_pdfgen_links.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
21,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
21,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
OUTPUT: - an order in a quaternion algebra | OUTPUT: an order in a quaternion algebra | def right_order(self): """ Return the right order associated to this fractional ideal. | 1ec65dfa0c3aab294b8ecca3f5f5493e154b7172 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1ec65dfa0c3aab294b8ecca3f5f5493e154b7172/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2145,
67,
1019,
12,
2890,
4672,
3536,
2000,
326,
2145,
1353,
3627,
358,
333,
20462,
23349,
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,
... | [
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2145,
67,
1019,
12,
2890,
4672,
3536,
2000,
326,
2145,
1353,
3627,
358,
333,
20462,
23349,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return self.OptionsObject(self, *args, **kwargs) | return self.OptionsObject(*args, **kwargs) | def Options(self, *args, **kwargs): return self.OptionsObject(self, *args, **kwargs) | 339457094ffe95a6b58793c8cbe6eb03d7c6a1dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/339457094ffe95a6b58793c8cbe6eb03d7c6a1dd/gclient_scm_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5087,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
327,
365,
18,
1320,
921,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5087,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
327,
365,
18,
1320,
921,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
def addWidgetByFileName(self, widgetName, x, y, caption): | def addWidgetByFileName(self, widgetName, x, y, caption, activateSettings = 1): | def addWidgetByFileName(self, widgetName, x, y, caption): for widget in self.canvasDlg.tabs.allWidgets: if widget.getFileName() == widgetName: return self.addWidget(widget, x, y, caption) return None | 3062038fd35ad40521ec63facca93df529c9a3c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/3062038fd35ad40521ec63facca93df529c9a3c7/orngDoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22149,
858,
4771,
12,
2890,
16,
3604,
461,
16,
619,
16,
677,
16,
11006,
16,
10235,
2628,
273,
404,
4672,
364,
3604,
316,
365,
18,
15424,
40,
23623,
18,
16056,
18,
454,
16166,
30,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22149,
858,
4771,
12,
2890,
16,
3604,
461,
16,
619,
16,
677,
16,
11006,
16,
10235,
2628,
273,
404,
4672,
364,
3604,
316,
365,
18,
15424,
40,
23623,
18,
16056,
18,
454,
16166,
30,
309,
... |
if not f.feed: | if not f.feed or ('link' not in f.feed or 'title' not in f.feed): | def add_feed(feed_xml): """Try to add a feed. Returns a tuple (feed_uid, num_added, num_filtered)""" from singleton import db c = db.cursor() try: # verify the feed f = feedparser.parse(feed_xml) if not f.feed: # try autodiscovery try: feed_xml = AutoDiscoveryHandler().feed_url(feed_xml) except HTMLParser.HTMLParseErro... | 8a035cdf858ac098c88e54176712332c7bc1f307 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/8a035cdf858ac098c88e54176712332c7bc1f307/update.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7848,
12,
7848,
67,
2902,
4672,
3536,
7833,
358,
527,
279,
4746,
18,
2860,
279,
3193,
261,
7848,
67,
1911,
16,
818,
67,
9665,
16,
818,
67,
12071,
15574,
628,
6396,
1930,
1319,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7848,
12,
7848,
67,
2902,
4672,
3536,
7833,
358,
527,
279,
4746,
18,
2860,
279,
3193,
261,
7848,
67,
1911,
16,
818,
67,
9665,
16,
818,
67,
12071,
15574,
628,
6396,
1930,
1319,... |
yield String(self, "hostname", 16, "Computer hostname on which shortcut was last modified") | yield String(self, "hostname", 16, "Computer hostname on which shortcut was last modified", strip="\0") | def createFields(self): yield UInt32(self, "length", "Length of this structure") if not self["length"].value: return | 2078f158e6614c23c8bcfb26762a3370d667c630 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/2078f158e6614c23c8bcfb26762a3370d667c630/lnk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
2824,
29810,
1578,
12,
2890,
16,
315,
2469,
3113,
315,
1782,
434,
333,
3695,
7923,
309,
486,
365,
9614,
2469,
6,
8009,
1132,
30,
327,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
2824,
29810,
1578,
12,
2890,
16,
315,
2469,
3113,
315,
1782,
434,
333,
3695,
7923,
309,
486,
365,
9614,
2469,
6,
8009,
1132,
30,
327,
2,
-100,
-100,
-100,
-1... |
def prompt(prompt, default = None, rest = ': ', empty_ok = False): if not ui.interactive: return default if default: prompt += ' [%s]' % default prompt += rest while True: r = ui.prompt(prompt, default=default) if r: return r if default is not None: return default if empty_ok: return r ui.warn(_('Please enter a valid ... | def patchbomb(ui, repo, *revs, **opts): '''send changesets by email By default, diffs are sent in the format generated by hg export, one per message. The series starts with a "[PATCH 0 of N]" introduction, which describes the series as a whole. Each patch email has a Subject line of "[PATCH M of N] ...", using the f... | 036a97f1795cbe9ef154c92f43ec10652267b497 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/036a97f1795cbe9ef154c92f43ec10652267b497/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
70,
16659,
12,
4881,
16,
3538,
16,
380,
266,
6904,
16,
2826,
4952,
4672,
9163,
4661,
3478,
2413,
635,
2699,
225,
2525,
805,
16,
15250,
854,
3271,
316,
326,
740,
4374,
635,
22576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4729,
70,
16659,
12,
4881,
16,
3538,
16,
380,
266,
6904,
16,
2826,
4952,
4672,
9163,
4661,
3478,
2413,
635,
2699,
225,
2525,
805,
16,
15250,
854,
3271,
316,
326,
740,
4374,
635,
22576,
... | |
this = apply(_quickfix.new_SecureData, args) | this = _quickfix.new_SecureData(*args) | def __init__(self, *args): this = apply(_quickfix.new_SecureData, 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,
12834,
751,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
12834,
751,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
1... |
'Client', name=client, | 'Client', name=self.session_cache[addresspair][1], | def set_profile(self, client, profile, addresspair): '''Set group parameter for provided client''' self.logger.info("Asserting client %s profile to %s" % (client, profile)) if False in self.states.values(): raise MetadataRuntimeError if profile not in self.public: self.logger.error("Failed to set client %s to private g... | d132920c68b8d01b4555c4a5a5f72b6cfe293f2e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/d132920c68b8d01b4555c4a5a5f72b6cfe293f2e/Metadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
5040,
12,
2890,
16,
1004,
16,
3042,
16,
1758,
6017,
4672,
9163,
694,
1041,
1569,
364,
2112,
1004,
26418,
365,
18,
4901,
18,
1376,
2932,
8213,
310,
1004,
738,
87,
3042,
358,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
5040,
12,
2890,
16,
1004,
16,
3042,
16,
1758,
6017,
4672,
9163,
694,
1041,
1569,
364,
2112,
1004,
26418,
365,
18,
4901,
18,
1376,
2932,
8213,
310,
1004,
738,
87,
3042,
358,
73... |
def testPackageRequire(self): tcl = self.interp tcl.eval('package require Tclx') tcl.eval('keylset a b.c 1') self.assertEqual(tcl.eval('keylget a b.c'),'1') | def testPackageRequire(self): tcl = self.interp tcl.eval('package require Tclx') tcl.eval('keylset a b.c 1') self.assertEqual(tcl.eval('keylget a b.c'),'1') | 24502d1a5c6fadf2d05f2462156a5613e3ee1fab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/24502d1a5c6fadf2d05f2462156a5613e3ee1fab/test_tcl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2261,
8115,
12,
2890,
4672,
268,
830,
273,
365,
18,
24940,
268,
830,
18,
8622,
2668,
5610,
2583,
399,
830,
92,
6134,
268,
830,
18,
8622,
2668,
856,
80,
542,
279,
324,
18,
71,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2261,
8115,
12,
2890,
4672,
268,
830,
273,
365,
18,
24940,
268,
830,
18,
8622,
2668,
5610,
2583,
399,
830,
92,
6134,
268,
830,
18,
8622,
2668,
856,
80,
542,
279,
324,
18,
71,
4... | |
def sendCMD(self, cmdline, newline = True, sleep = 0): | def cmdNeedsResponse(self, cmd): """ Not all commands need a response from the agent: * if the cmd matches the pushRE then it is the first half of push and therefore we want to wait until the second half before looking for a response * rebt obviously doesn't get a response * uninstall performs a reboot to ensure starti... | def sendCMD(self, cmdline, newline = True, sleep = 0): promptre = re.compile(self.prompt_regex + '$') | 02223128cd056cb013609966605554a83eff291d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/02223128cd056cb013609966605554a83eff291d/devicemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
26419,
1064,
12,
2890,
16,
1797,
4672,
3536,
2288,
777,
4364,
1608,
279,
766,
628,
326,
4040,
30,
380,
309,
326,
1797,
1885,
326,
1817,
862,
1508,
518,
353,
326,
1122,
8816,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1797,
26419,
1064,
12,
2890,
16,
1797,
4672,
3536,
2288,
777,
4364,
1608,
279,
766,
628,
326,
4040,
30,
380,
309,
326,
1797,
1885,
326,
1817,
862,
1508,
518,
353,
326,
1122,
8816,
434,
... |
[2, 3] | [2] | def supersingular_primes(self, B): """ Return a list of all supersingular primes for this elliptic curve up to and possibly including B. | 188170809aadd337bc2abbb646ca221e680575bf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/188170809aadd337bc2abbb646ca221e680575bf/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1169,
414,
17830,
67,
683,
4485,
12,
2890,
16,
605,
4672,
3536,
2000,
279,
666,
434,
777,
1169,
414,
17830,
846,
4485,
364,
333,
415,
549,
21507,
8882,
731,
358,
471,
10016,
6508,
605,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1169,
414,
17830,
67,
683,
4485,
12,
2890,
16,
605,
4672,
3536,
2000,
279,
666,
434,
777,
1169,
414,
17830,
846,
4485,
364,
333,
415,
549,
21507,
8882,
731,
358,
471,
10016,
6508,
605,
... |
if isinstance(obj, Variable): | if isinstance(obj, Variable): | def deps(obj): rval = [] if obj not in iset: if isinstance(obj, Variable): if obj.owner: rval = [obj.owner] if isinstance(obj, Apply): rval = list(obj.inputs) rval.extend(orderings.get(obj, [])) else: assert not orderings.get(obj, []) return rval | 8963a02fce2adfaa5a561e13a296f58d5647b16e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/8963a02fce2adfaa5a561e13a296f58d5647b16e/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8740,
12,
2603,
4672,
14267,
273,
5378,
309,
1081,
486,
316,
353,
278,
30,
309,
1549,
12,
2603,
16,
7110,
4672,
309,
1081,
18,
8443,
30,
14267,
273,
306,
2603,
18,
8443,
65,
309,
1549,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8740,
12,
2603,
4672,
14267,
273,
5378,
309,
1081,
486,
316,
353,
278,
30,
309,
1549,
12,
2603,
16,
7110,
4672,
309,
1081,
18,
8443,
30,
14267,
273,
306,
2603,
18,
8443,
65,
309,
1549,... |
return run_command(svn_commit_args, error_handler=commit_error_handler) | return self.run(svn_commit_args, error_handler=commit_error_handler) | def commit_with_message(self, message, username=None, git_commit=None, squash=None): # squash and git-commit are not used by SVN. if self.dryrun: # Return a string which looks like a commit so that things which parse this output will succeed. return "Dry run, no commit.\nCommitted revision 0." svn_commit_args = ["svn",... | 85996a2e77defe11a90714e19a7eb1523a0e8092 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/85996a2e77defe11a90714e19a7eb1523a0e8092/scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
67,
1918,
67,
2150,
12,
2890,
16,
883,
16,
2718,
33,
7036,
16,
5071,
67,
7371,
33,
7036,
16,
17715,
961,
33,
7036,
4672,
468,
17715,
961,
471,
5071,
17,
7371,
854,
486,
1399,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3294,
67,
1918,
67,
2150,
12,
2890,
16,
883,
16,
2718,
33,
7036,
16,
5071,
67,
7371,
33,
7036,
16,
17715,
961,
33,
7036,
4672,
468,
17715,
961,
471,
5071,
17,
7371,
854,
486,
1399,
6... |
print "done drawing in %r, ipath %r" % (self, self.ipath,) | def draw(self): print "start drawing in %r, ipath %r" % (self, self.ipath,) assert self._e_is_instance self.move(None, 0) self.thing.draw() # draw kid number 0 -- ##k but how did we at some point tell that kid that it's number 0, so it knows its ipath?? ##k is it worth adding index or ipath as a draw-arg? (I doubt it, ... | 3f77aa1e89e5862211c6175a15f9b0661ae06834 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3f77aa1e89e5862211c6175a15f9b0661ae06834/Center.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
1172,
315,
1937,
16327,
316,
738,
86,
16,
277,
803,
738,
86,
6,
738,
261,
2890,
16,
365,
18,
625,
421,
16,
13,
1815,
365,
6315,
73,
67,
291,
67,
1336,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
1172,
315,
1937,
16327,
316,
738,
86,
16,
277,
803,
738,
86,
6,
738,
261,
2890,
16,
365,
18,
625,
421,
16,
13,
1815,
365,
6315,
73,
67,
291,
67,
1336,
365,
18... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.