rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
print "hide", self.size | def hide(self): print "hide", self.size for img in self._imgs: img.hide() | 30d2816036272cf940fbc14c1a57b6c2f4c4e968 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/206/30d2816036272cf940fbc14c1a57b6c2f4c4e968/image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6853,
12,
2890,
4672,
364,
3774,
316,
365,
6315,
381,
564,
30,
3774,
18,
11248,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
6853,
12,
2890,
4672,
364,
3774,
316,
365,
6315,
381,
564,
30,
3774,
18,
11248,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
self.assertEqual( | self.compare_lists_of_dicts( | def test_get_possible_facets(self): project1 = Project.create_dummy(language='c') project2 = Project.create_dummy(language='d') project3 = Project.create_dummy(language='e') Bug.create_dummy(project=project1, description='bug', good_for_newcomers=True) Bug.create_dummy(project=project2, description='bug') Bug.create_du... | a35d9cb0088dc8954841b6a6810c5266efe0a501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/a35d9cb0088dc8954841b6a6810c5266efe0a501/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
12708,
67,
11639,
2413,
12,
2890,
4672,
1984,
21,
273,
5420,
18,
2640,
67,
21050,
12,
4923,
2218,
71,
6134,
1984,
22,
273,
5420,
18,
2640,
67,
21050,
12,
4923,
2218,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
67,
12708,
67,
11639,
2413,
12,
2890,
4672,
1984,
21,
273,
5420,
18,
2640,
67,
21050,
12,
4923,
2218,
71,
6134,
1984,
22,
273,
5420,
18,
2640,
67,
21050,
12,
4923,
2218,... |
cur.execute(sql, channel_id, self.STATE_DOWNLOADED, channel_id, max_episodes) | cur.execute(sql, (channel_id, self.STATE_DOWNLOADED, channel_id, max_episodes)) | def purge(self, max_episodes, channel_id): """ Deletes old episodes. Should be called before adding new episodes to a channel. """ cur = self.cursor(lock=True) | 1a3ed032a79248125a18dbf7b53e629cff21f3ed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/1a3ed032a79248125a18dbf7b53e629cff21f3ed/dbsqlite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
12,
2890,
16,
943,
67,
881,
27134,
16,
1904,
67,
350,
4672,
3536,
17973,
1592,
5529,
27134,
18,
225,
9363,
506,
2566,
1865,
6534,
394,
5529,
27134,
358,
279,
1904,
18,
3536,
662,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11668,
12,
2890,
16,
943,
67,
881,
27134,
16,
1904,
67,
350,
4672,
3536,
17973,
1592,
5529,
27134,
18,
225,
9363,
506,
2566,
1865,
6534,
394,
5529,
27134,
358,
279,
1904,
18,
3536,
662,
... |
model_obj = self.pool.get('ir.model') field_obj = self.pool.get('ir.model.field') model_id = model_obj.search(cursor, user, [ | ir_model_obj = self.pool.get('ir.model') ir_field_obj = self.pool.get('ir.model.field') model_obj = self.pool.get(model) if field not in model_obj._columns: model = self.pool.get(model_obj._inherit_fields[field][0])._name model_id = ir_model_obj.search(cursor, user, [ | def set_default(self, cursor, user, model, field, clause, value, user_default, context=None): model_obj = self.pool.get('ir.model') field_obj = self.pool.get('ir.model.field') model_id = model_obj.search(cursor, user, [ ('model', '=', model), ], context=context)[0] field_id = field_obj.search(cursor, user, [ ('name', '... | 5acea5dd320c6dce94f7cd30031e82d1533d2cae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/5acea5dd320c6dce94f7cd30031e82d1533d2cae/default.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1886,
12,
2890,
16,
3347,
16,
729,
16,
938,
16,
652,
16,
6591,
16,
460,
16,
729,
67,
1886,
16,
819,
33,
7036,
4672,
9482,
67,
2284,
67,
2603,
273,
365,
18,
6011,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1886,
12,
2890,
16,
3347,
16,
729,
16,
938,
16,
652,
16,
6591,
16,
460,
16,
729,
67,
1886,
16,
819,
33,
7036,
4672,
9482,
67,
2284,
67,
2603,
273,
365,
18,
6011,
18,
588,
... |
self.alpha[:] = d | self.alpha[::] = d | def alpha_aperture(self, r, x=0, y=0): """Hard vignette | b49d2860d8b5075af6d45e97fdc0e3df365f963c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5701/b49d2860d8b5075af6d45e97fdc0e3df365f963c/sprite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4190,
67,
438,
1051,
594,
12,
2890,
16,
436,
16,
619,
33,
20,
16,
677,
33,
20,
4672,
3536,
29601,
331,
724,
7637,
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,
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,
4190,
67,
438,
1051,
594,
12,
2890,
16,
436,
16,
619,
33,
20,
16,
677,
33,
20,
4672,
3536,
29601,
331,
724,
7637,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.display_heading(tag.string, "minor") | self.display_heading(text, "minor") | def parse_old_sitting_part(self, soup): """Parse and convert a new-style (1/2001-3/2006) Standing Committee transcript to XML""" #Tuesday 16 January 2001|Tuesday 16 January 2001(Afternoon) pDate = '\S*?\s+\d\d?\s+\S*?\s+\d\d\d\d(\(\S*?\))?' pTimeOfDay = '(\(Morning\)|\(Afternoon\))' tags = soup({'h1':True, 'h2':True,... | 6f5d3aa05f0dcde05fa26d65e6d987be8dbcf0d2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8428/6f5d3aa05f0dcde05fa26d65e6d987be8dbcf0d2/parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1673,
67,
25404,
1787,
67,
2680,
12,
2890,
16,
15418,
4672,
3536,
3201,
471,
1765,
279,
394,
17,
4060,
261,
21,
19,
6976,
21,
17,
23,
19,
6976,
26,
13,
934,
464,
310,
10269... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1673,
67,
25404,
1787,
67,
2680,
12,
2890,
16,
15418,
4672,
3536,
3201,
471,
1765,
279,
394,
17,
4060,
261,
21,
19,
6976,
21,
17,
23,
19,
6976,
26,
13,
934,
464,
310,
10269... |
yum.YumBase.selectGroup(self, grp) | package_types = ['mandatory', 'default'] | def selectGroup(self, grp, include = pykickstart.parser.GROUP_DEFAULT): yum.YumBase.selectGroup(self, grp) if include == pykickstart.parser.GROUP_REQUIRED: map(lambda p: self.deselectPackage(p), grp.default_packages.keys()) elif include == pykickstart.parser.GROUP_ALL: map(lambda p: self.selectPackage(p), grp.optional_... | 74a5bc4cb1bb392ce1f8b59e76ffade8f505ae9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9342/74a5bc4cb1bb392ce1f8b59e76ffade8f505ae9c/yuminst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
1114,
12,
2890,
16,
14295,
16,
2341,
273,
2395,
79,
1200,
1937,
18,
4288,
18,
8468,
67,
5280,
4672,
282,
2181,
67,
2352,
273,
10228,
889,
8452,
2187,
296,
1886,
3546,
309,
2341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2027,
1114,
12,
2890,
16,
14295,
16,
2341,
273,
2395,
79,
1200,
1937,
18,
4288,
18,
8468,
67,
5280,
4672,
282,
2181,
67,
2352,
273,
10228,
889,
8452,
2187,
296,
1886,
3546,
309,
2341,
... |
if not self.not_really: os.system(start_cmd) | self.exec_system(start_cmd) | def restore_database(self): """Restore the database from backup | cfca5d724afbf745f6a656e9eb302d44d3397ab9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14597/cfca5d724afbf745f6a656e9eb302d44d3397ab9/walmgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
67,
6231,
12,
2890,
4672,
3536,
10874,
326,
2063,
628,
5114,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5217,
67,
6231,
12,
2890,
4672,
3536,
10874,
326,
2063,
628,
5114,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import termios, TERMIOS, sys, os | import termios, sys, os | def getkey(): while 1: if echo: z = msvcrt.getche() else: z = msvcrt.getch() if z == '\0' or z == '\xe0': #functions keys msvcrt.getch() else: return z | 43ed8d124fc817e2324f834bb35827b23900a6b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/43ed8d124fc817e2324f834bb35827b23900a6b4/miniterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
856,
13332,
1323,
404,
30,
309,
3376,
30,
998,
273,
4086,
90,
3353,
88,
18,
588,
18706,
1435,
469,
30,
998,
273,
4086,
90,
3353,
88,
18,
588,
343,
1435,
309,
998,
422,
2337,
20,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
856,
13332,
1323,
404,
30,
309,
3376,
30,
998,
273,
4086,
90,
3353,
88,
18,
588,
18706,
1435,
469,
30,
998,
273,
4086,
90,
3353,
88,
18,
588,
343,
1435,
309,
998,
422,
2337,
20,... |
tls_cacertdir='', tls_cacertfile='', tls_certfile='', tls_keyfile='', | tls_cacertdir=None, tls_cacertfile=None, tls_certfile=None, tls_keyfile=None, | def __init__(self, server_uri='ldap://localhost', # ldap / active directory server URI # use ldaps://server:636 url for ldaps, # use ldap://server for ldap without tls (and set start_tls to 0), # use ldap://server for ldap with tls (and set start_tls to 1 or 2). bind_dn='', # We can either use some fixed user and p... | 398007ca755438f4b307c704cdc91ca70c26ac2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/398007ca755438f4b307c704cdc91ca70c26ac2a/ldap_login.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1438,
67,
1650,
2218,
14394,
2207,
13014,
2187,
225,
468,
8079,
342,
2695,
1867,
1438,
3699,
468,
999,
8079,
87,
2207,
3567,
30,
4449,
26,
880,
364,
8079,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
67,
1650,
2218,
14394,
2207,
13014,
2187,
225,
468,
8079,
342,
2695,
1867,
1438,
3699,
468,
999,
8079,
87,
2207,
3567,
30,
4449,
26,
880,
364,
8079,
... |
strokeColor=strokeColor, strokeWidth=strokeWidth, fillColor=fillColor)) | strokeColor=strokeColor, strokeWidth=strokeWidth, fillColor=fillColor,strokeLineJoin=1)) | def _add_3d_bar(x1, x2, y1, y2, xoff, yoff, G=G,strokeColor=strokeColor, strokeWidth=strokeWidth, fillColor=fillColor): G.add(Polygon((x1,y1,x1+xoff, y1+yoff,x2+xoff, y2+yoff,x2,y2), strokeWidth=strokeWidth, strokeColor=strokeColor, fillColor=fillColor)) | 907b163f924c5c1154361a004198806ae6a904ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/907b163f924c5c1154361a004198806ae6a904ab/utils3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
23,
72,
67,
3215,
12,
92,
21,
16,
619,
22,
16,
677,
21,
16,
677,
22,
16,
619,
3674,
16,
677,
3674,
16,
611,
33,
43,
16,
16181,
2957,
33,
16181,
2957,
16,
11040,
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,
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,
1289,
67,
23,
72,
67,
3215,
12,
92,
21,
16,
619,
22,
16,
677,
21,
16,
677,
22,
16,
619,
3674,
16,
677,
3674,
16,
611,
33,
43,
16,
16181,
2957,
33,
16181,
2957,
16,
11040,
23... |
p = challenge.getparent() p.remove(challenge) | challenge.getparent().remove(challenge) | def handle_io_in(self, data): print(data) data = data self.parser.feed(data) | aafda75ca94ff8f2803d1d92990754394881af8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8801/aafda75ca94ff8f2803d1d92990754394881af8a/logxmpp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1594,
67,
267,
12,
2890,
16,
501,
4672,
1172,
12,
892,
13,
501,
273,
501,
365,
18,
4288,
18,
7848,
12,
892,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1594,
67,
267,
12,
2890,
16,
501,
4672,
1172,
12,
892,
13,
501,
273,
501,
365,
18,
4288,
18,
7848,
12,
892,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
cty.c_int, [cty.c_int, cty.c_int, cty.c_uint], | cty.c_int, [cty.c_int, cty.c_int, cty.c_uint], | def fl_addtopup(n, str): """ fl_addtopup(n, str) -> num. """ retval = _fl_addtopup(n, str) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
1289,
3669,
416,
12,
82,
16,
609,
4672,
3536,
1183,
67,
1289,
3669,
416,
12,
82,
16,
609,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
1289,
3669,
416,
12,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1183,
67,
1289,
3669,
416,
12,
82,
16,
609,
4672,
3536,
1183,
67,
1289,
3669,
416,
12,
82,
16,
609,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
1289,
3669,
416,
12,
82,
... |
def isByte(F): (isData(F) & (F & DT_TYPE) == FF_BYTE) def isWord(F): (isData(F) & (F & DT_TYPE) == FF_WORD) def isDwrd(F): (isData(F) & (F & DT_TYPE) == FF_DWRD) def isQwrd(F): (isData(F) & (F & DT_TYPE) == FF_QWRD) def isOwrd(F): (isData(F) & (F & DT_TYPE) == FF_OWRD) def isTbyt(F): (isData(F) ... | def isByte(F): return (isData(F) & (F & DT_TYPE) == FF_BYTE) def isWord(F): return (isData(F) & (F & DT_TYPE) == FF_WORD) def isDwrd(F): return (isData(F) & (F & DT_TYPE) == FF_DWRD) def isQwrd(F): return (isData(F) & (F & DT_TYPE) == FF_QWRD) def isOwrd(F): return (isData(F) & (F & DT_TYPE) == FF_O... | def isByte(F): (isData(F) & (F & DT_TYPE) == FF_BYTE) | 244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
3216,
12,
42,
4672,
377,
261,
291,
751,
12,
42,
13,
473,
261,
42,
473,
10696,
67,
2399,
13,
422,
6512,
67,
15377,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
3216,
12,
42,
4672,
377,
261,
291,
751,
12,
42,
13,
473,
261,
42,
473,
10696,
67,
2399,
13,
422,
6512,
67,
15377,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
From the RFC: | From the RFC:: | def noticed(self, user, channel, message): """Called when I have a notice from a user to me or a channel. | a1c8a2a83aa44acf7d438fdbfa4cbc34a803b278 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a1c8a2a83aa44acf7d438fdbfa4cbc34a803b278/irc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11690,
72,
12,
2890,
16,
729,
16,
1904,
16,
883,
4672,
3536,
8185,
1347,
467,
1240,
279,
11690,
628,
279,
729,
358,
1791,
578,
279,
1904,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11690,
72,
12,
2890,
16,
729,
16,
1904,
16,
883,
4672,
3536,
8185,
1347,
467,
1240,
279,
11690,
628,
279,
729,
358,
1791,
578,
279,
1904,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
config.set(section, option, current) | config.set(section, option, current or '') | def save(self): """Write the configuration options to the primary file.""" if not self.filename: return | 3c3e47070bdc052398c3639ed74c4c49f344082c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/3c3e47070bdc052398c3639ed74c4c49f344082c/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
3536,
3067,
326,
1664,
702,
358,
326,
3354,
585,
12123,
309,
486,
365,
18,
3459,
30,
327,
2,
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,
1923,
12,
2890,
4672,
3536,
3067,
326,
1664,
702,
358,
326,
3354,
585,
12123,
309,
486,
365,
18,
3459,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
cover_data, ext = Covers(isbn)(entry).get_cover(br, timeout) | cover_data, ext = Covers(mi.isbn)(entry).get_cover(br, timeout) | def get_covers(self, mi, result_queue, abort, timeout=5.): if not mi.isbn: return br = browser() try: entry = Query(isbn=mi.isbn, max_results=1)(br, False, timeout)[0] cover_data, ext = Covers(isbn)(entry).get_cover(br, timeout) if not ext: ext = 'jpg' result_queue.put((True, cover_data, ext, self.name)) except Excepti... | fd711e6075e2dec43ab37c76fad9ed299fcdc71d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/fd711e6075e2dec43ab37c76fad9ed299fcdc71d/nicebooks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14014,
414,
12,
2890,
16,
12837,
16,
563,
67,
4000,
16,
6263,
16,
2021,
33,
25,
18,
4672,
309,
486,
12837,
18,
291,
13392,
30,
327,
5186,
273,
4748,
1435,
775,
30,
1241,
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,
336,
67,
14014,
414,
12,
2890,
16,
12837,
16,
563,
67,
4000,
16,
6263,
16,
2021,
33,
25,
18,
4672,
309,
486,
12837,
18,
291,
13392,
30,
327,
5186,
273,
4748,
1435,
775,
30,
1241,
273... |
r = '0x' + r | prefix = '0x' else: prefix = '' | def format(self): v, sign = self.numeric_preprocess(maybe_int(self.value)) r = hex(v)[2:] if self.prec is not None and len(r) < self.prec: r = '0'*(self.prec - len(r)) + r if self.flags.f_alt: r = '0x' + r if self.char == 'X': r = r.upper() return self.numeric_postprocess(r, sign) | c430b23135ae0de36232c21741f9b2da0afa90d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/c430b23135ae0de36232c21741f9b2da0afa90d8/_formatting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
4672,
331,
16,
1573,
273,
365,
18,
5246,
67,
27545,
12,
19133,
67,
474,
12,
2890,
18,
1132,
3719,
436,
273,
3827,
12,
90,
25146,
22,
26894,
309,
365,
18,
4036,
353,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
4672,
331,
16,
1573,
273,
365,
18,
5246,
67,
27545,
12,
19133,
67,
474,
12,
2890,
18,
1132,
3719,
436,
273,
3827,
12,
90,
25146,
22,
26894,
309,
365,
18,
4036,
353,
48... |
statusbar.config(text="Updated: " + time.ctime(stamp)) | statusbar.config(text="Updated: " + time.ctime(stamp)) | def update(root, statusbar, listbox): start = time.time() count = None oldlabel = statusbar.cget("text") try: statusbar.config(text="Updating...") root.update_idletasks() stamp, online = tibiacom.online_list("Dolera") oldsize = listbox.size() count = len(online) print time.ctime(stamp) + ":", "retrieved", count, "chara... | a297d3735c8e07d10e9f1f8937e0131696e57ce3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4811/a297d3735c8e07d10e9f1f8937e0131696e57ce3/prolepsis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
3085,
16,
1267,
3215,
16,
666,
2147,
4672,
787,
273,
813,
18,
957,
1435,
1056,
273,
599,
1592,
1925,
273,
1267,
3215,
18,
71,
588,
2932,
955,
7923,
775,
30,
1267,
3215,
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,
1089,
12,
3085,
16,
1267,
3215,
16,
666,
2147,
4672,
787,
273,
813,
18,
957,
1435,
1056,
273,
599,
1592,
1925,
273,
1267,
3215,
18,
71,
588,
2932,
955,
7923,
775,
30,
1267,
3215,
18,
... |
pen = _pen if not pen: _pen = pen = Pen() return pen | if not _pen: _pen = Pen() return _pen class Turtle(Pen): pass """For documentation of the following functions see the RawPen methods with the same names """ | def _getpen(): global _pen pen = _pen if not pen: _pen = pen = Pen() return pen | 9221c22d6c6b431b17192173cf539900e3bec058 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9221c22d6c6b431b17192173cf539900e3bec058/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1907,
13332,
2552,
389,
1907,
309,
486,
389,
1907,
30,
389,
1907,
273,
453,
275,
1435,
327,
389,
1907,
225,
667,
399,
295,
5929,
12,
24251,
4672,
1342,
225,
3536,
1290,
7323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1907,
13332,
2552,
389,
1907,
309,
486,
389,
1907,
30,
389,
1907,
273,
453,
275,
1435,
327,
389,
1907,
225,
667,
399,
295,
5929,
12,
24251,
4672,
1342,
225,
3536,
1290,
7323,
... |
atoms.s.pop(1) atoms.y.pop(1) atoms.rho.pop(1) | self.s.pop(1) self.y.pop(1) self.rho.pop(1) | def step(self, f): atoms = self.atoms self.ni = atoms.nimages-2 # try: atoms.imax # except: atoms.imax=0 # if(not self.ni):atoms.imax=1 g = open('out','w') atoms.r = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.r[i-1] = atoms.images[i].get_positions() print >> g,'atoms.r',... | 1a55a570d87917cc147bfa837a3336109417cb92 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/1a55a570d87917cc147bfa837a3336109417cb92/glbfgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
... |
('setsign', [pympfr, ctypes.c_int]), | ('setsign', [pympfr, Bool]), | def wrapped_f(*args): return f(*args) | fce1cd2c023c38782f6d6dc443e683fd2f38e270 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7048/fce1cd2c023c38782f6d6dc443e683fd2f38e270/pympfr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5805,
67,
74,
30857,
1968,
4672,
327,
284,
30857,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5805,
67,
74,
30857,
1968,
4672,
327,
284,
30857,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
INPUT_WRITE = 0x14 self._tag = g.input_add(self._stream, INPUT_WRITE, | self._tag = gobject.io_add_watch(self._stream, gobject.IO_OUT, | def add_task(self, task): Blocker.add_task(self, task) if self._tag is None: INPUT_WRITE = 0x14 # g.gdk.INPUT_WRITE sometimes wrong!! self._tag = g.input_add(self._stream, INPUT_WRITE, lambda src, cond: self.trigger()) | f77afc51c9c84a40d6798a9cae85d7e39cbffc30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/f77afc51c9c84a40d6798a9cae85d7e39cbffc30/tasks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
4146,
12,
2890,
16,
1562,
4672,
3914,
264,
18,
1289,
67,
4146,
12,
2890,
16,
1562,
13,
309,
365,
6315,
2692,
353,
599,
30,
12943,
67,
11677,
273,
374,
92,
3461,
468,
314,
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,
4146,
12,
2890,
16,
1562,
4672,
3914,
264,
18,
1289,
67,
4146,
12,
2890,
16,
1562,
13,
309,
365,
6315,
2692,
353,
599,
30,
12943,
67,
11677,
273,
374,
92,
3461,
468,
314,
18... |
os.rmdir(os.path.join(root, name)) | fname = os.path.join(root, name) if os.path.isdir(fname): os.rmdir(fname) else: os.remove(fname) | def clean(self, rootPath, cleanAll=False): """Clean everything created temporaly""" for root, dirs, files in os.walk(rootPath, topdown=False): for name in files: if cleanAll: os.remove(os.path.join(root, name)) elif not (name.endswith('w32.exe') or name.endswith('.dmg') or name.endswith('.tar.gz')): os.remove(os.path.j... | 3d3fdcfcf02c4237098f36a08ebf7626218135a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3d3fdcfcf02c4237098f36a08ebf7626218135a4/autoBuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
12,
2890,
16,
13959,
16,
2721,
1595,
33,
8381,
4672,
3536,
7605,
7756,
2522,
5144,
3450,
8395,
364,
1365,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
3085,
743,
16,
1760,
2378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
12,
2890,
16,
13959,
16,
2721,
1595,
33,
8381,
4672,
3536,
7605,
7756,
2522,
5144,
3450,
8395,
364,
1365,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
3085,
743,
16,
1760,
2378,
... |
self.color = self.make_color(color) self.view.setTextColor_(self.color) | self.__color = self.make_color(color) if self.view.isEnabled(): self.view.setTextColor_(self.__color) else: self.view.setTextColor_(self.__color.colorWithAlphaComponent_(0.5)) | def set_color(self, color): self.color = self.make_color(color) self.view.setTextColor_(self.color) | 6d786cfa33e7f64d3e46f8b87057354f182bf460 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/6d786cfa33e7f64d3e46f8b87057354f182bf460/simple.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3266,
12,
2890,
16,
2036,
4672,
365,
18,
3266,
273,
365,
18,
6540,
67,
3266,
12,
3266,
13,
365,
18,
1945,
18,
542,
31061,
67,
12,
2890,
18,
3266,
13,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3266,
12,
2890,
16,
2036,
4672,
365,
18,
3266,
273,
365,
18,
6540,
67,
3266,
12,
3266,
13,
365,
18,
1945,
18,
542,
31061,
67,
12,
2890,
18,
3266,
13,
2,
-100,
-100,
-100,
... |
mplaxis.set_minor_locator(getTimeLocator(location,interval)) | if mplaxis: mplaxis.set_minor_locator(getTimeLocator(location,interval)) | def update(self): """Update the figure. Everything happens here. The current set of customized properties is interpreted, data slices are obtained from the data sources, default figure properties are set based on properties of the obtained data, and the figure is built and shown. """ # We are called whenever figure p... | ca77abda05c6ac461266d0b1ee4d4b11076d626e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/ca77abda05c6ac461266d0b1ee4d4b11076d626e/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
1891,
326,
7837,
18,
225,
26553,
10555,
2674,
18,
1021,
783,
444,
434,
29063,
1790,
353,
19898,
16,
501,
12390,
854,
12700,
628,
326,
501,
5550,
16,
805,
7837... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
12,
2890,
4672,
3536,
1891,
326,
7837,
18,
225,
26553,
10555,
2674,
18,
1021,
783,
444,
434,
29063,
1790,
353,
19898,
16,
501,
12390,
854,
12700,
628,
326,
501,
5550,
16,
805,
7837... |
""" | sage: G.name() """ if new is None: if self._nxg.name != '': return self._nxg.name else: return None | def name(self, new=''): """ Returns the name of the (di)graph. INPUT: new -- if not None, then this becomes the new name of the (di)graph. set_to_none -- if True, removes any name EXAMPLE: sage: d = {0: [1,4,5], 1: [2,6], 2: [3,7], 3: [4,8], 4: [9], 5: [7, 8], 6: [8,9], 7: [9]} sage: G = Graph(d); G Graph on 10 verti... | 063bf115f901c837083f2f1249483cee4cf86b36 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/063bf115f901c837083f2f1249483cee4cf86b36/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
12,
2890,
16,
394,
2218,
11,
4672,
87,
410,
30,
611,
18,
529,
1435,
225,
3536,
309,
394,
353,
599,
30,
309,
365,
6315,
16769,
75,
18,
529,
480,
875,
30,
327,
365,
6315,
16769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
12,
2890,
16,
394,
2218,
11,
4672,
87,
410,
30,
611,
18,
529,
1435,
225,
3536,
309,
394,
353,
599,
30,
309,
365,
6315,
16769,
75,
18,
529,
480,
875,
30,
327,
365,
6315,
16769,
... |
MetadataBlocks.group_padding(self.metadata_blocks) | MetadataBlock.group_padding(self.metadata_blocks) | def save(self, filename=None): if filename is None: filename = self.filename try: f = open(filename, 'rb+') except IOError, err: from errno import ENOENT if err.errno != ENOENT: raise f = open(filename, 'ab') # create, then reopen f = open(filename, 'rb+') | 0d7939d6ef40c5dc8247ce2fbbf34bfe5cf61855 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/0d7939d6ef40c5dc8247ce2fbbf34bfe5cf61855/flac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
33,
7036,
4672,
309,
1544,
353,
599,
30,
1544,
273,
365,
18,
3459,
775,
30,
284,
273,
1696,
12,
3459,
16,
296,
6731,
15,
6134,
1335,
8340,
16,
393,
30,
628,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
12,
2890,
16,
1544,
33,
7036,
4672,
309,
1544,
353,
599,
30,
1544,
273,
365,
18,
3459,
775,
30,
284,
273,
1696,
12,
3459,
16,
296,
6731,
15,
6134,
1335,
8340,
16,
393,
30,
628,... |
remoteFile.close() | remoteFile.close() | def downloadFileFromSVN( filePath, destPath, isExecutable = False, filterLines = [] ): fileName = os.path.basename( filePath ) print " - Downloading %s" % fileName viewSVNLocation = "http://svnweb.cern.ch/world/wsvn/dirac/DIRAC/trunk/%s?op=dl&rev=0" % filePath anonymousLocation = 'http://svnweb.cern.ch/guest/dirac/DIRA... | 3e1286f49ce012a79f3d2e3a9d45ca63fa48ef73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3e1286f49ce012a79f3d2e3a9d45ca63fa48ef73/dirac-compile-externals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
812,
1265,
23927,
50,
12,
4612,
16,
22459,
16,
353,
17709,
273,
1083,
16,
1034,
5763,
273,
5378,
262,
30,
3968,
273,
1140,
18,
803,
18,
13909,
12,
4612,
262,
1172,
315,
300,
1305... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
812,
1265,
23927,
50,
12,
4612,
16,
22459,
16,
353,
17709,
273,
1083,
16,
1034,
5763,
273,
5378,
262,
30,
3968,
273,
1140,
18,
803,
18,
13909,
12,
4612,
262,
1172,
315,
300,
1305... |
return self.subscribe(email,REQUEST,parent=1) | return self.subscribe(email,REQUEST,parent=1,edits=edits) | def wikiSubscribe(self, email, REQUEST=None): """whole-wiki version of subscribe""" return self.subscribe(email,REQUEST,parent=1) | c20e5d4f9b2d176785211a3e81e97ead1ac50716 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/c20e5d4f9b2d176785211a3e81e97ead1ac50716/Mail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9050,
16352,
12,
2890,
16,
2699,
16,
12492,
33,
7036,
4672,
3536,
3350,
790,
17,
13044,
1177,
434,
9129,
8395,
327,
365,
18,
9174,
12,
3652,
16,
5519,
16,
2938,
33,
21,
13,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9050,
16352,
12,
2890,
16,
2699,
16,
12492,
33,
7036,
4672,
3536,
3350,
790,
17,
13044,
1177,
434,
9129,
8395,
327,
365,
18,
9174,
12,
3652,
16,
5519,
16,
2938,
33,
21,
13,
2,
-100,
... |
return addadminbox('Overview', body) | return addadminbox('<b>Menu</b>', body) | def perform_index(colID=1, ln=cdslang, mtype='', content='', confirm=0): """The index method, calling methods to show the collection tree, create new collections and add collections to tree. """ subtitle = "Overview" colID = int(colID) col_dict = dict(get_def_name('', "collection")) output = "" fin_output = "" if not... | 9b53a1ad315de2613c2e01753660f02b55ea8e76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/9b53a1ad315de2613c2e01753660f02b55ea8e76/websearchadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
1615,
12,
1293,
734,
33,
21,
16,
7211,
33,
4315,
2069,
539,
16,
22189,
2218,
2187,
913,
2218,
2187,
6932,
33,
20,
4672,
3536,
1986,
770,
707,
16,
4440,
2590,
358,
2405,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
1615,
12,
1293,
734,
33,
21,
16,
7211,
33,
4315,
2069,
539,
16,
22189,
2218,
2187,
913,
2218,
2187,
6932,
33,
20,
4672,
3536,
1986,
770,
707,
16,
4440,
2590,
358,
2405,
326,
... |
return datetime.date(year, month, day) | return date(year, month, day) | def decode(data): if not data: return None # The year year = int(data[:4]) data = data[4:] if not data: return datetime.date(year, 1, 1) | de0550af8b8d14401327d7ab8661d54b6765c9c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/de0550af8b8d14401327d7ab8661d54b6765c9c5/datetime_.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
892,
4672,
309,
486,
501,
30,
327,
599,
225,
468,
1021,
3286,
3286,
273,
509,
12,
892,
10531,
24,
5717,
501,
273,
501,
63,
24,
26894,
309,
486,
501,
30,
327,
3314,
18,
712,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2495,
12,
892,
4672,
309,
486,
501,
30,
327,
599,
225,
468,
1021,
3286,
3286,
273,
509,
12,
892,
10531,
24,
5717,
501,
273,
501,
63,
24,
26894,
309,
486,
501,
30,
327,
3314,
18,
712,... |
self.connect("child-exited", lambda term: term.fork_command()) | def __init__(self): vte.Terminal.__init__(self) self._configure_vte() self.connect("child-exited", lambda term: term.fork_command()) | bc8ff30a60612cb0d4f3971fecb014eafc17d308 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6697/bc8ff30a60612cb0d4f3971fecb014eafc17d308/terminal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
331,
736,
18,
11336,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
14895,
67,
90,
736,
1435,
365,
18,
3612,
2932,
3624,
17,
8593,
329,
3113,
3195,
2481,
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,
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,
331,
736,
18,
11336,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
14895,
67,
90,
736,
1435,
365,
18,
3612,
2932,
3624,
17,
8593,
329,
3113,
3195,
2481,
3... | |
except ConfigParser.NoOptionError, e: | except ConfigParser.NoOptionError and ConfigParser.NoSectionError, e: print 'Config file error: ',cfgPath | def __init__(self): self.var = '' cwd = os.getcwd() cfgPath = "%s%s" % (cwd,'/conf/sysadmin.conf') | 04d6e02a7b697bac9278367b79b8737cf75e6b6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14038/04d6e02a7b697bac9278367b79b8737cf75e6b6d/sysadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
225,
365,
18,
1401,
273,
875,
7239,
273,
1140,
18,
588,
11089,
1435,
2776,
743,
273,
2213,
87,
9,
87,
6,
738,
261,
11089,
11189,
19,
3923,
19,
9499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
225,
365,
18,
1401,
273,
875,
7239,
273,
1140,
18,
588,
11089,
1435,
2776,
743,
273,
2213,
87,
9,
87,
6,
738,
261,
11089,
11189,
19,
3923,
19,
9499,
... |
SizeOfCurrentLine = len(profile.FileLinesList[self.CurrentLineNumber - 1]) | SizeOfCurrentLine = len(self.profile.FileLinesList[self.CurrentLineNumber - 1]) | def __EndOfLine(self): SizeOfCurrentLine = len(profile.FileLinesList[self.CurrentLineNumber - 1]) if self.CurrentOffsetWithinLine >= SizeOfCurrentLine - 1: return True else: return False | 2f743f829e2c9e634d3e62f83c6af106a22f6583 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/2f743f829e2c9e634d3e62f83c6af106a22f6583/FdfParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23358,
1670,
12,
2890,
4672,
6321,
951,
3935,
1670,
273,
562,
12,
2890,
18,
5040,
18,
812,
5763,
682,
63,
2890,
18,
3935,
31063,
300,
404,
5717,
309,
365,
18,
3935,
2335,
18949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23358,
1670,
12,
2890,
4672,
6321,
951,
3935,
1670,
273,
562,
12,
2890,
18,
5040,
18,
812,
5763,
682,
63,
2890,
18,
3935,
31063,
300,
404,
5717,
309,
365,
18,
3935,
2335,
18949,
... |
return [i['internals'] for i in r['bugs']] | bugdict = dict([(b['id'], b['internals']) for b in r['bugs']]) return [bugdict.get(i) for i in idlist] | def _getbugs(self,idlist): '''Return a list of dicts of full bug info for each given bug id''' r = self._proxy.Bug.get_bugs({'ids':idlist, 'permissive': 1}) return [i['internals'] for i in r['bugs']] | f5d991a4caafdf878e9bcbaf542bec2fd5df4eb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5050/f5d991a4caafdf878e9bcbaf542bec2fd5df4eb3/bugzilla3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
19381,
12,
2890,
16,
350,
1098,
4672,
9163,
990,
279,
666,
434,
15838,
434,
1983,
7934,
1123,
364,
1517,
864,
7934,
612,
26418,
436,
273,
365,
6315,
5656,
18,
19865,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
19381,
12,
2890,
16,
350,
1098,
4672,
9163,
990,
279,
666,
434,
15838,
434,
1983,
7934,
1123,
364,
1517,
864,
7934,
612,
26418,
436,
273,
365,
6315,
5656,
18,
19865,
18,
588,
... |
def redraw(self): | def redraw_window(self): | def redraw(self): """Redraw the window""" self.ui.redraw() | 1bc3dd5931da7474332d421418dffdba39de7b50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5729/1bc3dd5931da7474332d421418dffdba39de7b50/actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16540,
67,
5668,
12,
2890,
4672,
3536,
3715,
1899,
326,
2742,
8395,
365,
18,
4881,
18,
1118,
1899,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16540,
67,
5668,
12,
2890,
4672,
3536,
3715,
1899,
326,
2742,
8395,
365,
18,
4881,
18,
1118,
1899,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self._list_counter == -1: | if self.list_counter[-1] == -1: | def depart_list_item(self, node): if self._list_counter == -1: self.end_state(first='* ', end=None) elif self._list_counter == -2: pass else: self.end_state(first='%s. ' % self._list_counter, end=None) | 0f76788c576d907a32c2b945f383c97c3705e95c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/0f76788c576d907a32c2b945f383c97c3705e95c/text.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
1098,
67,
1726,
12,
2890,
16,
756,
4672,
309,
365,
18,
1098,
67,
7476,
18919,
21,
65,
422,
300,
21,
30,
365,
18,
409,
67,
2019,
12,
3645,
2218,
14,
2265,
679,
33,
7036,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26000,
67,
1098,
67,
1726,
12,
2890,
16,
756,
4672,
309,
365,
18,
1098,
67,
7476,
18919,
21,
65,
422,
300,
21,
30,
365,
18,
409,
67,
2019,
12,
3645,
2218,
14,
2265,
679,
33,
7036,
... |
@classmethod def add_books_to_metadata(cls, locations, metadata, booklists): | def add_books_to_metadata(self, locations, metadata, booklists): | def get_size(obj): if hasattr(obj, 'seek'): obj.seek(0, 2) size = obj.tell() obj.seek(0) return size return os.path.getsize(obj) | 3d75ec49c457af8300bf52d35961ced2f24897e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/3d75ec49c457af8300bf52d35961ced2f24897e4/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1467,
12,
2603,
4672,
309,
3859,
12,
2603,
16,
296,
16508,
11,
4672,
1081,
18,
16508,
12,
20,
16,
576,
13,
963,
273,
1081,
18,
88,
1165,
1435,
1081,
18,
16508,
12,
20,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
1467,
12,
2603,
4672,
309,
3859,
12,
2603,
16,
296,
16508,
11,
4672,
1081,
18,
16508,
12,
20,
16,
576,
13,
963,
273,
1081,
18,
88,
1165,
1435,
1081,
18,
16508,
12,
20,
13,
... |
except ValueError: pass | def __calc_date_time(self): # Set self.__date_time, self.__date, & self.__time by using # time.strftime(). | 0538bcf0979d36021691c93234c5892b9f519fb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0538bcf0979d36021691c93234c5892b9f519fb1/_strptime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12448,
67,
712,
67,
957,
12,
2890,
4672,
468,
1000,
365,
16186,
712,
67,
957,
16,
365,
16186,
712,
16,
473,
365,
16186,
957,
635,
1450,
468,
813,
18,
701,
9982,
7675,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12448,
67,
712,
67,
957,
12,
2890,
4672,
468,
1000,
365,
16186,
712,
67,
957,
16,
365,
16186,
712,
16,
473,
365,
16186,
957,
635,
1450,
468,
813,
18,
701,
9982,
7675,
2,
-100,
... | |
print >> fileobj, '\t\t<metrics conditionals="4" coveredmethods="10" methods="13" classes="5" elements="64" coveredelements="55" coveredconditionals="3" ncloc="8500" loc="%d" statements="%d" coveredstatements="%d" packages="%d" files="%d" />' % (projStmts, projStmts, projCovStmts, numPackages, projFiles) | print >> fileobj, '\t\t<metrics conditionals="0" coveredmethods="0" methods="0" classes="0" elements="0" coveredelements="0" coveredconditionals="0" ncloc="%d" loc="%d" statements="%d" coveredstatements="%d" packages="%d" files="%d" />' % (projStmts, projStmts, projStmts, projCovStmts, numPackages, projFiles) | def clover_report((covered, (total_statements, total_executed)), fileobj=None): ''' Print a clover coverage report from data produced by process_coverage. ''' theTime = int(time.time()) # get the data needed by clover coverageData = CoverageData.parseCoverageData((covered, (total_statements, total_executed))) # proj... | f453c2c90f71c2a0b7fdccd7274bfc8c38218d5c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7644/f453c2c90f71c2a0b7fdccd7274bfc8c38218d5c/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1219,
502,
67,
6006,
12443,
16810,
16,
261,
4963,
67,
18393,
16,
2078,
67,
4177,
4817,
13,
3631,
17041,
33,
7036,
4672,
9163,
3038,
279,
1219,
502,
11196,
2605,
628,
501,
14929,
635,
120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1219,
502,
67,
6006,
12443,
16810,
16,
261,
4963,
67,
18393,
16,
2078,
67,
4177,
4817,
13,
3631,
17041,
33,
7036,
4672,
9163,
3038,
279,
1219,
502,
11196,
2605,
628,
501,
14929,
635,
120... |
string specifications are of the form: "modern 12pt", "9pt roman italic", | string specifications are of the form: "modern 12", "9 roman italic", | def str_to_font(fontspec): """ Converts a string specification of a font into a Font instance. string specifications are of the form: "modern 12pt", "9pt roman italic", and so on. """ point_size = 10 family = DEFAULT style = NORMAL weight = NORMAL underline = 0 facename = [] for word in fontspec.split()... | f69b66970aff6d5fd79ddb20094c17b8259d49d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13166/f69b66970aff6d5fd79ddb20094c17b8259d49d7/font.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
869,
67,
5776,
12,
5776,
2793,
4672,
3536,
20377,
279,
533,
7490,
434,
279,
3512,
1368,
279,
10063,
791,
18,
533,
21950,
854,
434,
326,
646,
30,
315,
1711,
8865,
2593,
3113,
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,
609,
67,
869,
67,
5776,
12,
5776,
2793,
4672,
3536,
20377,
279,
533,
7490,
434,
279,
3512,
1368,
279,
10063,
791,
18,
533,
21950,
854,
434,
326,
646,
30,
315,
1711,
8865,
2593,
3113,
3... |
global JAVA_TYPE_MAP JAVA_TYPE_MAP = { | global JAVA_PRIMITIVE_TYPE_MAP JAVA_PRIMITIVE_TYPE_MAP = { | def updateTypeMaps(namespace): """ Updates the type maps with a new namespace. **Must** be executed at least once, **before** node class file generation. """ global JAVA_TYPE_MAP JAVA_TYPE_MAP = { # Base types namespace + 'boolean': 'Boolean', namespace + 'dateTime': 'String', namespace + 'string': 'String', namespace ... | 8f9e8d2e2e54bb6661b3348cad502cc36e858dc4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12127/8f9e8d2e2e54bb6661b3348cad502cc36e858dc4/fu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
559,
8903,
12,
4937,
4672,
3536,
15419,
326,
618,
7565,
598,
279,
394,
1981,
18,
2826,
10136,
636,
506,
7120,
622,
4520,
3647,
16,
2826,
5771,
636,
756,
667,
585,
9377,
18,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
559,
8903,
12,
4937,
4672,
3536,
15419,
326,
618,
7565,
598,
279,
394,
1981,
18,
2826,
10136,
636,
506,
7120,
622,
4520,
3647,
16,
2826,
5771,
636,
756,
667,
585,
9377,
18,
3536,
... |
tempfile.tempdir = old_tempfile_tempdir | tempfile.tempdir = None | def setUp(self): self.int_32_max = 0x100000000 self.homeDir = os.path.join(tempfile.gettempdir(), 'db_home') try: os.mkdir(self.homeDir) except os.error: pass tempfile.tempdir = self.homeDir self.filename = os.path.split(tempfile.mktemp())[1] tempfile.tempdir = old_tempfile_tempdir | 6c7791fb83075813cf253348839e8ed022d89b2d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/6c7791fb83075813cf253348839e8ed022d89b2d/test_sequence.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
474,
67,
1578,
67,
1896,
273,
374,
92,
21,
12648,
365,
18,
8712,
1621,
273,
1140,
18,
803,
18,
5701,
12,
5814,
768,
18,
588,
5814,
1214,
9334,
296,
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,
24292,
12,
2890,
4672,
365,
18,
474,
67,
1578,
67,
1896,
273,
374,
92,
21,
12648,
365,
18,
8712,
1621,
273,
1140,
18,
803,
18,
5701,
12,
5814,
768,
18,
588,
5814,
1214,
9334,
296,
19... |
taskMgr.remove(self.taskName("scroll")) | taskName = self.taskName("scroll") taskMgr.remove(taskName) | def __buttonUp(self, event): assert self.notify.debugStateCall(self) taskMgr.remove(self.taskName("scroll")) | f9890a4f678ea170111f1c22ec2556d448162528 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/f9890a4f678ea170111f1c22ec2556d448162528/DirectScrolledList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5391,
1211,
12,
2890,
16,
871,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
20172,
273,
365,
18,
4146,
461,
2932,
12033,
7923,
225,
1562,
9455,
18,
4479,
12,
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,
0,
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,
5391,
1211,
12,
2890,
16,
871,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
20172,
273,
365,
18,
4146,
461,
2932,
12033,
7923,
225,
1562,
9455,
18,
4479,
12,
4... |
forwarder_offset = self.get_offset_from_rva( symbol_address ) )) | forwarder_offset = forwarder_offset )) | def length_until_eof(rva): return len(self.__data__) - self.get_offset_from_rva(rva) | 7d7fdf89e3c176d01a0ccd3f60205073f55aef49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4177/7d7fdf89e3c176d01a0ccd3f60205073f55aef49/pefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
769,
67,
12198,
67,
9339,
12,
4962,
69,
4672,
327,
562,
12,
2890,
16186,
892,
972,
13,
300,
365,
18,
588,
67,
3348,
67,
2080,
67,
4962,
69,
12,
4962,
69,
13,
225,
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,
1,
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,
769,
67,
12198,
67,
9339,
12,
4962,
69,
4672,
327,
562,
12,
2890,
16186,
892,
972,
13,
300,
365,
18,
588,
67,
3348,
67,
2080,
67,
4962,
69,
12,
4962,
69,
13,
225,
2,
-100,
-100,
-1... |
self.header.drawScale(self.treeAreaWidth, root.height) | def displayTree(self, root): self.clear() self.rootCluster=root if not self.rootCluster: return if not self.parent.ManualHorSize: width=self.parent.dendrogramView.size().width() else: width=self.parent.HDSize self.setSceneRect(0, 0, width, self.height()) self.textAreaWidth=100 | 94b725165088a81ea27b58e2ace96e30782609f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/94b725165088a81ea27b58e2ace96e30782609f4/OWHierarchicalClustering.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
2471,
12,
2890,
16,
1365,
4672,
365,
18,
8507,
1435,
365,
18,
3085,
3629,
33,
3085,
309,
486,
365,
18,
3085,
3629,
30,
327,
309,
486,
365,
18,
2938,
18,
25139,
44,
280,
1225,
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,
2562,
2471,
12,
2890,
16,
1365,
4672,
365,
18,
8507,
1435,
365,
18,
3085,
3629,
33,
3085,
309,
486,
365,
18,
3085,
3629,
30,
327,
309,
486,
365,
18,
2938,
18,
25139,
44,
280,
1225,
3... | |
Split 'text' into multiple lines of no more than 'self.width' characters each, and return the list of strings that results. Tabs in 'text' are expanded with string.expandtabs(), and all other whitespace characters (including newline) are converted to space. | Reformat the single paragraph in 'text' so it fits in lines of no more than 'self.width' columns, and return a list of wrapped lines. Tabs in 'text' are expanded with string.expandtabs(), and all other whitespace characters (including newline) are converted to space. | def wrap(self, text): """wrap(text : string) -> [string] | a4f242203825fa370133f2f945019d5efdacef63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a4f242203825fa370133f2f945019d5efdacef63/textwrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
12,
2890,
16,
977,
4672,
3536,
4113,
12,
955,
294,
533,
13,
317,
306,
1080,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
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,
2193,
12,
2890,
16,
977,
4672,
3536,
4113,
12,
955,
294,
533,
13,
317,
306,
1080,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
root_dir = "%s/%s" % (self._ROOT_DIR, instance.name) | root_dir = self._InstanceDir(instance.name) | def StartInstance(self, instance, block_devices): """Start an instance. | 6b0391b3e3c9b086213ec88bc8c28c85f199ae6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/6b0391b3e3c9b086213ec88bc8c28c85f199ae6b/hv_chroot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3603,
1442,
12,
2890,
16,
791,
16,
1203,
67,
12506,
4672,
3536,
1685,
392,
791,
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,
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,
3603,
1442,
12,
2890,
16,
791,
16,
1203,
67,
12506,
4672,
3536,
1685,
392,
791,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
logging.warn('UPDATE unknown rr from %s: %s' % (remote_ip, rrset)) | logging.warn('UPDATE unknown rr from %s: %s' % \ (remote_ip, rrset)) | def handle_update(self, msg): """Process an update message.""" | 2b2b5839b23008a8980ab8eeeca606297c51c416 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4157/2b2b5839b23008a8980ab8eeeca606297c51c416/route53d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2725,
12,
2890,
16,
1234,
4672,
3536,
2227,
392,
1089,
883,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2725,
12,
2890,
16,
1234,
4672,
3536,
2227,
392,
1089,
883,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def __init__(self,fileOSM,debug=False,verbose=False,ele="10000"): | def __init__(self,debug=False,verbose=False,ele="10000",kml_version=0): | def __init__(self,fileOSM,debug=False,verbose=False,ele="10000"): """ Scans an .osc file and gather informations in lists and dictionaries Args: An .osc file ele: lines elevation used in certain kml (0 to the ground) Resulting instance properties: self.osmData=[] a list to contain them allow (see below) self.osmNod... | fe0b9eb053af0b2f2eeec1647fe57a8c599a32aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1927/fe0b9eb053af0b2f2eeec1647fe57a8c599a32aa/osmaware.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4148,
33,
8381,
16,
11369,
33,
8381,
16,
6516,
1546,
23899,
3113,
79,
781,
67,
1589,
33,
20,
4672,
225,
3536,
2850,
634,
392,
263,
538,
71,
585,
471,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4148,
33,
8381,
16,
11369,
33,
8381,
16,
6516,
1546,
23899,
3113,
79,
781,
67,
1589,
33,
20,
4672,
225,
3536,
2850,
634,
392,
263,
538,
71,
585,
471,
1... |
arglist = arglist.replace('`', '').replace(r'\ ', '') | def parse_py_signature(signode, sig, desctype, currmodule, currclass): """ Transform a python signature into RST nodes. Return the fully qualified name of the thing. If inside a class, the current class name is handled intelligently: * it is stripped from the displayed name if present * it is added to the full name (r... | aa89b3b1f2c10710402081d1f49d9c920569597c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7032/aa89b3b1f2c10710402081d1f49d9c920569597c/directives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2074,
67,
8195,
12,
2977,
390,
16,
3553,
16,
2832,
12387,
16,
4306,
2978,
16,
4306,
1106,
4672,
3536,
11514,
279,
5790,
3372,
1368,
534,
882,
2199,
18,
2000,
326,
7418,
9348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2074,
67,
8195,
12,
2977,
390,
16,
3553,
16,
2832,
12387,
16,
4306,
2978,
16,
4306,
1106,
4672,
3536,
11514,
279,
5790,
3372,
1368,
534,
882,
2199,
18,
2000,
326,
7418,
9348,
... | |
if name in ('__init__', '__eq__'): | if name in ('__init__', '__eq__', '_initobj'): | def __getattribute__(self, name): #{{{ if name in ('__init__', '__eq__'): return _obj_getattr(self, name) return getattr(self._initobj, name) | f28448a27c0f44961357eefde2112839d4de1104 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2635/f28448a27c0f44961357eefde2112839d4de1104/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
4589,
972,
12,
2890,
16,
508,
4672,
3735,
12187,
309,
508,
316,
7707,
972,
2738,
972,
2187,
4940,
11253,
972,
2187,
2070,
2738,
2603,
11,
4672,
327,
389,
2603,
67,
588,
1747,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
4589,
972,
12,
2890,
16,
508,
4672,
3735,
12187,
309,
508,
316,
7707,
972,
2738,
972,
2187,
4940,
11253,
972,
2187,
2070,
2738,
2603,
11,
4672,
327,
389,
2603,
67,
588,
1747,
... |
isinstance(program[0], tuple) and len(program[0]) == 2): | isinstance_(program[0], tuple) and len(program[0]) == 2): | def getProgramVersion(program): if (len(program) >= 2 and isinstance(program[0], tuple) and len(program[0]) == 2): opcode, version = program[0] if opcode == "version": return version return None | d2ed77fafe9c3762d19dfd9ae43938d2aebc7bbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9834/d2ed77fafe9c3762d19dfd9ae43938d2aebc7bbf/taldefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
3295,
1444,
12,
12890,
4672,
309,
261,
1897,
12,
12890,
13,
1545,
576,
471,
1549,
67,
12,
12890,
63,
20,
6487,
3193,
13,
471,
562,
12,
12890,
63,
20,
5717,
422,
576,
4672,
11396,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3570,
3295,
1444,
12,
12890,
4672,
309,
261,
1897,
12,
12890,
13,
1545,
576,
471,
1549,
67,
12,
12890,
63,
20,
6487,
3193,
13,
471,
562,
12,
12890,
63,
20,
5717,
422,
576,
4672,
11396,... |
for k,v in big: txt += '\n%s:\n%s\n\n' % (k,v) | for name, value in big: txt += CRLF.join(['', name + ':', value, '', '')] | def format_props(self): tkt = self.ticket fields = [f for f in tkt.fields if f['type'] != 'textarea' and f['name'] not in ('summary', 'cc')] t = self.modtime or tkt.time_changed width = [0, 0, 0, 0] for i, f in enum([f['name'] for f in fields]): if not tkt.values.has_key(f): continue fval = tkt[f] if fval.find('\n') > ... | 3bc49497d48201bbe4a10ba9e41cfd0d23185077 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/3bc49497d48201bbe4a10ba9e41cfd0d23185077/Notify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
9693,
12,
2890,
4672,
268,
8629,
273,
365,
18,
16282,
1466,
273,
306,
74,
364,
284,
316,
268,
8629,
18,
2821,
309,
284,
3292,
723,
3546,
480,
296,
16701,
11,
471,
284,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
9693,
12,
2890,
4672,
268,
8629,
273,
365,
18,
16282,
1466,
273,
306,
74,
364,
284,
316,
268,
8629,
18,
2821,
309,
284,
3292,
723,
3546,
480,
296,
16701,
11,
471,
284,
3292,
... |
Internal function to convert into a list of primes either None | Internal function to convert into a tuple of primes either None | def _normalize_prime_list(self, v): """ Internal function to convert into a list of primes either None or a single prime or a list. | 75f9f3899b075e522bfc6c33a6f55d15590d0c8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/75f9f3899b075e522bfc6c33a6f55d15590d0c8b/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12237,
67,
16382,
67,
1098,
12,
2890,
16,
331,
4672,
3536,
3186,
445,
358,
1765,
1368,
279,
3193,
434,
846,
4485,
3344,
599,
578,
279,
2202,
17014,
578,
279,
666,
18,
2,
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,
389,
12237,
67,
16382,
67,
1098,
12,
2890,
16,
331,
4672,
3536,
3186,
445,
358,
1765,
1368,
279,
3193,
434,
846,
4485,
3344,
599,
578,
279,
2202,
17014,
578,
279,
666,
18,
2,
-100,
-10... |
def encode(self, encoding=DEFAULT_OUTPUT_ENCODING): return self.decode().encode(encoding) def decodeGivenEventualEncoding(self, eventualEncoding): return self | def __unicode__(self): return str(self).decode(DEFAULT_OUTPUT_ENCODING) def __str__(self, encoding=DEFAULT_OUTPUT_ENCODING): if encoding: return self.encode(encoding) else: return self | def encode(self, encoding=DEFAULT_OUTPUT_ENCODING): return self.decode().encode(encoding) | 7300e101f39b7a1a436c6765d140c987cbc58a45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/7300e101f39b7a1a436c6765d140c987cbc58a45/BeautifulSoup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
2688,
33,
5280,
67,
15527,
67,
14672,
4672,
327,
365,
18,
3922,
7675,
3015,
12,
5999,
13,
2,
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,
2017,
12,
2890,
16,
2688,
33,
5280,
67,
15527,
67,
14672,
4672,
327,
365,
18,
3922,
7675,
3015,
12,
5999,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
_before_each_step() return | return -1 else: return len(glob.glob('reboot*')) def boot_subdir(reboot_count): """subdir of job sysinfo""" if reboot_count == 0: return '.' else: return 'reboot%d' % reboot_count | def before_each_step(): # make separate directories for each step: # if files exist here, this is not the first step. # this is a safe assumption because we always create at least one file if not glob.glob('*'): _before_each_step() # first step goes in cwd return previous_reboots = glob.glob('reboot*') if previous_reb... | 244132028450511fd19cc5ed4c9d1eeab0e56992 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/244132028450511fd19cc5ed4c9d1eeab0e56992/sysinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1865,
67,
13798,
67,
4119,
13332,
468,
1221,
9004,
6402,
364,
1517,
2235,
30,
468,
309,
1390,
1005,
2674,
16,
333,
353,
486,
326,
1122,
2235,
18,
468,
333,
353,
279,
4183,
24743,
2724,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1865,
67,
13798,
67,
4119,
13332,
468,
1221,
9004,
6402,
364,
1517,
2235,
30,
468,
309,
1390,
1005,
2674,
16,
333,
353,
486,
326,
1122,
2235,
18,
468,
333,
353,
279,
4183,
24743,
2724,
... |
""" instantiate elt_id in subgraph | """ Partial instantiation instantiate only elt_id in subgraph | def instantiate_id(self, elt_id, subgraph, call_stack=None): """ instantiate elt_id in subgraph @param call_stack : a list of parent id (to avoid infinite recursion) """ | d3127271f379a1d2f1c6439aafc246c5a3158888 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11338/d3127271f379a1d2f1c6439aafc246c5a3158888/subgraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
67,
350,
12,
2890,
16,
11572,
67,
350,
16,
21469,
16,
745,
67,
3772,
33,
7036,
4672,
3536,
19060,
28380,
10275,
1338,
11572,
67,
350,
316,
21469,
632,
891,
745,
67,
3772,
294,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
67,
350,
12,
2890,
16,
11572,
67,
350,
16,
21469,
16,
745,
67,
3772,
33,
7036,
4672,
3536,
19060,
28380,
10275,
1338,
11572,
67,
350,
316,
21469,
632,
891,
745,
67,
3772,
294,
2... |
if prop == 'char16Prop' or prop == 'char16Propa': | if prop == 'char16prop' or prop == 'char16propa': | def _compare_values(instance, time, logger): log = "Entering _compare_values: " types = {'boolProp': 'boolean', 'dateProp': 'datetime', 'real32Prop': 'real32', 'real32Propa': 'real32', 'real64Prop': 'real64', 'real64Propa': 'real64', 'sint16Prop': 'sint16', 'sint16Propa': 'sint16', 'sint32Prop': 'sint32', 'sint32Pr... | 355654137d95d41164eaa9ca60363d941971e3c6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1453/355654137d95d41164eaa9ca60363d941971e3c6/UpcallAtomProvider.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9877,
67,
2372,
12,
1336,
16,
813,
16,
1194,
4672,
613,
273,
315,
10237,
310,
389,
9877,
67,
2372,
30,
315,
1953,
273,
13666,
6430,
4658,
4278,
296,
6494,
2187,
296,
712,
4658,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9877,
67,
2372,
12,
1336,
16,
813,
16,
1194,
4672,
613,
273,
315,
10237,
310,
389,
9877,
67,
2372,
30,
315,
1953,
273,
13666,
6430,
4658,
4278,
296,
6494,
2187,
296,
712,
4658,
42... |
status = os.system(guava_bin_dir + "leon/wtdist " + input + "::code > " + output) | status = os.system(guava_bin_dir + "wtdist " + input + "::code > " + output) | def spectrum(self, method=None): r""" The default method (gap) uses a GAP kernel function (in C) written by Steve Linton. METHOD: - ``None`` - defaults to gap except in the binary case - ``gap`` - uses the GAP function | d618a7d3914989d00e44d4d5a897dc450bfcacaa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d618a7d3914989d00e44d4d5a897dc450bfcacaa/linear_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17970,
12,
2890,
16,
707,
33,
7036,
4672,
436,
8395,
1021,
805,
707,
261,
14048,
13,
4692,
279,
611,
2203,
5536,
445,
261,
267,
385,
13,
5941,
635,
7780,
537,
511,
474,
265,
18,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17970,
12,
2890,
16,
707,
33,
7036,
4672,
436,
8395,
1021,
805,
707,
261,
14048,
13,
4692,
279,
611,
2203,
5536,
445,
261,
267,
385,
13,
5941,
635,
7780,
537,
511,
474,
265,
18,
225,
... |
def cg_to_glsl(cg_shader): | def cg_to_glsl(cg_shader, CGC): | def cg_to_glsl(cg_shader): cg_shader = cg_rename_attributes(cg_shader) vertex_entry = re.search(r'#o3d\s+VertexShaderEntryPoint\s+(\w+)', cg_shader).group(1) p = subprocess.Popen([CGC]+('-profile glslv -entry %s' % vertex_entry).split(' '), stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) glsl_ve... | 2b39687f1feb296be488a75ef5286a908be81e3a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/2b39687f1feb296be488a75ef5286a908be81e3a/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14947,
67,
869,
67,
7043,
2069,
12,
26275,
67,
674,
1143,
16,
385,
15396,
4672,
14947,
67,
674,
1143,
273,
14947,
67,
18539,
67,
4350,
12,
26275,
67,
674,
1143,
13,
225,
5253,
67,
4099... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14947,
67,
869,
67,
7043,
2069,
12,
26275,
67,
674,
1143,
16,
385,
15396,
4672,
14947,
67,
674,
1143,
273,
14947,
67,
18539,
67,
4350,
12,
26275,
67,
674,
1143,
13,
225,
5253,
67,
4099... |
assert(self.debugPrint("enable()")) | assert self.notify.debugCall(id(self)) | def enable(self): assert(self.debugPrint("enable()")) self.isEnabled = 1 self.currentControls.enableAvatarControls() | b89bbac8300857fe485c1c4217180cabb1332c50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/b89bbac8300857fe485c1c4217180cabb1332c50/ControlManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
12,
2890,
4672,
1815,
365,
18,
12336,
18,
4148,
1477,
12,
350,
12,
2890,
3719,
365,
18,
291,
1526,
273,
404,
365,
18,
2972,
16795,
18,
7589,
23999,
16795,
1435,
225,
2,
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,
4237,
12,
2890,
4672,
1815,
365,
18,
12336,
18,
4148,
1477,
12,
350,
12,
2890,
3719,
365,
18,
291,
1526,
273,
404,
365,
18,
2972,
16795,
18,
7589,
23999,
16795,
1435,
225,
2,
-100,
-10... |
print dir() return True | print dir() return True | def plugin_down(envp, device, tun_mtu, link_mtu, a, b, c): print dir() return True | 05f75fcd4276beb4b127476d6d02dcc08d6e82d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3904/05f75fcd4276beb4b127476d6d02dcc08d6e82d6/ovpn-def.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1909,
67,
2378,
12,
3074,
84,
16,
2346,
16,
268,
318,
67,
1010,
89,
16,
1692,
67,
1010,
89,
16,
279,
16,
324,
16,
276,
4672,
1172,
1577,
1435,
327,
1053,
225,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1909,
67,
2378,
12,
3074,
84,
16,
2346,
16,
268,
318,
67,
1010,
89,
16,
1692,
67,
1010,
89,
16,
279,
16,
324,
16,
276,
4672,
1172,
1577,
1435,
327,
1053,
225,
2,
-100,
-100,
-100,
... |
if not we_are_translated() and not isinstance(descr, LoopToken): | if op.result and not we_are_translated() and not isinstance(descr, LoopToken): | def emit_op_call(self, op, regalloc, fcond, save_all_regs=False): adr = self.cpu.cast_adr_to_int(op.getarg(0).getint()) args = op.getarglist()[1:] cond = self._emit_call(adr, args, regalloc, fcond, save_all_regs, op.result) | d149bdbebd039907cf16d8498360c96b11d38fe1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/d149bdbebd039907cf16d8498360c96b11d38fe1/opassembler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
67,
556,
67,
1991,
12,
2890,
16,
1061,
16,
960,
9853,
16,
284,
10013,
16,
1923,
67,
454,
67,
266,
564,
33,
8381,
4672,
1261,
86,
273,
365,
18,
11447,
18,
4155,
67,
361,
86,
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,
3626,
67,
556,
67,
1991,
12,
2890,
16,
1061,
16,
960,
9853,
16,
284,
10013,
16,
1923,
67,
454,
67,
266,
564,
33,
8381,
4672,
1261,
86,
273,
365,
18,
11447,
18,
4155,
67,
361,
86,
6... |
'tax_dest_id' : tax_template_ref[tax.tax_dest_id.id], | 'tax_dest_id' : tax.tax_dest_id and tax_template_ref[tax.tax_dest_id.id] or False, | def action_create(self, cr, uid, ids, context=None): obj_multi = self.browse(cr,uid,ids[0]) obj_acc = self.pool.get('account.account') obj_acc_tax = self.pool.get('account.tax') obj_journal = self.pool.get('account.journal') obj_sequence = self.pool.get('ir.sequence') obj_acc_template = self.pool.get('account.account.t... | 67a94c57f4d32cfbada045757155055e9f8d489d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/67a94c57f4d32cfbada045757155055e9f8d489d/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1081,
67,
7027,
273,
365,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
63,
20,
5717,
1081,
67,
8981,
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,
1301,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1081,
67,
7027,
273,
365,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
63,
20,
5717,
1081,
67,
8981,
273,... |
self.update_widget(self.size[0], self.size[1]) | for i in self.contacts: self.contacts[i].show() | def show(self): self.update_widget(self.size[0], self.size[1]) | 79ef2d00a0cbaad3916df661ca20df5b7139aac3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/206/79ef2d00a0cbaad3916df661ca20df5b7139aac3/contact_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
364,
277,
316,
365,
18,
20777,
30,
365,
18,
20777,
63,
77,
8009,
4500,
1435,
225,
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,
2405,
12,
2890,
4672,
364,
277,
316,
365,
18,
20777,
30,
365,
18,
20777,
63,
77,
8009,
4500,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'--external-merge=/bin/false', | '--external-merge', '/bin/false', | def pull(self, rev): output, status = self.run('pull %r --all --match="hash %s"' % (self.path, rev), '--no-test', '--no-posthook', '--external-merge=/bin/false', repodir=self.tmppath) if status: if output.find('We have conflicts in') == -1: self.checkexit(status, output) output, status = self.run('revert --all', repodi... | ec50e22a4deac6328d1db7ad5a3e5fd370f70050 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/ec50e22a4deac6328d1db7ad5a3e5fd370f70050/darcs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6892,
12,
2890,
16,
5588,
4672,
876,
16,
1267,
273,
365,
18,
2681,
2668,
13469,
738,
86,
1493,
454,
1493,
1916,
1546,
2816,
738,
87,
5187,
738,
261,
2890,
18,
803,
16,
5588,
3631,
3534... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6892,
12,
2890,
16,
5588,
4672,
876,
16,
1267,
273,
365,
18,
2681,
2668,
13469,
738,
86,
1493,
454,
1493,
1916,
1546,
2816,
738,
87,
5187,
738,
261,
2890,
18,
803,
16,
5588,
3631,
3534... |
3 | 14 | def myResolver(URL, ID, ctxt): if URL == "tst.ent": return(StringIO.StringIO(tst_ent)) return None | 8d73bcb50f91dacb48c2ad61169cb2adc18c1eae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/8d73bcb50f91dacb48c2ad61169cb2adc18c1eae/reader2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
4301,
12,
1785,
16,
1599,
16,
14286,
4672,
309,
1976,
422,
315,
88,
334,
18,
319,
6877,
327,
12,
780,
4294,
18,
780,
4294,
12,
88,
334,
67,
319,
3719,
327,
599,
225,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
4301,
12,
1785,
16,
1599,
16,
14286,
4672,
309,
1976,
422,
315,
88,
334,
18,
319,
6877,
327,
12,
780,
4294,
18,
780,
4294,
12,
88,
334,
67,
319,
3719,
327,
599,
225,
2,
-100,
... |
parent=self, pos=wxPoint(176, 161), size=wxSize(143, 40), | parent=self, pos=wxPoint(202, 177), size=wxSize(149, 40), | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi... | aac0471ac41eaa175cbaa05604248123746b2b22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/aac0471ac41eaa175cbaa05604248123746b2b22/STCStyleEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... |
strip, reverse) | strip) | def closefile(): if not current_file: return 0 current_file.close() return len(current_file.rej) | 3ec16e5954f577ee77b07e719498219d6cffc3c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/3ec16e5954f577ee77b07e719498219d6cffc3c6/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
768,
13332,
309,
486,
783,
67,
768,
30,
327,
374,
783,
67,
768,
18,
4412,
1435,
327,
562,
12,
2972,
67,
768,
18,
266,
78,
13,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
768,
13332,
309,
486,
783,
67,
768,
30,
327,
374,
783,
67,
768,
18,
4412,
1435,
327,
562,
12,
2972,
67,
768,
18,
266,
78,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
response_headers = [('Content-type','image/jpeg'), ('Content-Length', '137823')] | response_headers = [('Content-type','image/jpeg')] | def simple_app(environ, start_response): status = '200 OK' response_headers = [('Content-type','image/jpeg'), ('Content-Length', '137823')] start_response(status, response_headers) # use sendfile(2) return environ.get('wsgi.file_wrapper', FileWrapper)(open('wallpaper.jpg', 'rb')) | daa6d05f8bf504bc42830c7cf276c239a2e45f81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5908/daa6d05f8bf504bc42830c7cf276c239a2e45f81/static_file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4143,
67,
2910,
12,
28684,
16,
787,
67,
2740,
4672,
1267,
273,
296,
6976,
7791,
11,
766,
67,
2485,
273,
306,
2668,
1350,
17,
723,
17023,
2730,
19,
14423,
6134,
65,
225,
787,
67,
2740,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4143,
67,
2910,
12,
28684,
16,
787,
67,
2740,
4672,
1267,
273,
296,
6976,
7791,
11,
766,
67,
2485,
273,
306,
2668,
1350,
17,
723,
17023,
2730,
19,
14423,
6134,
65,
225,
787,
67,
2740,
... |
Returns the Molien series of a transtive permutation group. The | Returns the Molien series of a transitive permutation group. The | def molien_series(self): r""" Returns the Molien series of a transtive permutation group. The function .. math:: M(x) = (1/|G|)\sum_{g\in G} det(1-x*g)^(-1) is sometimes called the "Molien series" of G. GAP's ``MolienSeries`` is associated to a character of a group G. How are these related? A group G, given as a pe... | f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12629,
77,
275,
67,
10222,
12,
2890,
4672,
436,
8395,
2860,
326,
490,
355,
77,
275,
4166,
434,
279,
30442,
17440,
1041,
18,
1021,
445,
225,
6116,
4233,
2866,
225,
490,
12,
92,
13,
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,
12629,
77,
275,
67,
10222,
12,
2890,
4672,
436,
8395,
2860,
326,
490,
355,
77,
275,
4166,
434,
279,
30442,
17440,
1041,
18,
1021,
445,
225,
6116,
4233,
2866,
225,
490,
12,
92,
13,
273,... |
def _processLowercase(self,atom, sessionID): | def _processLowercase(self,elem, sessionID): | def _processLowercase(self,atom, sessionID): # Lowercase atoms process their contents, and return the results # in all lower-case. response = "" for a in atom[2:]: response += self._processAtom(a, sessionID) return string.lower(response) | cdb5ca51cf362e7f41cc166060e200bc84fcb1e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6428/cdb5ca51cf362e7f41cc166060e200bc84fcb1e8/Kernel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
4070,
3593,
12,
2890,
16,
7466,
16,
13737,
4672,
468,
24804,
3593,
9006,
1207,
3675,
2939,
16,
471,
327,
326,
1686,
468,
316,
777,
2612,
17,
3593,
18,
766,
273,
1408,
364,
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,
389,
2567,
4070,
3593,
12,
2890,
16,
7466,
16,
13737,
4672,
468,
24804,
3593,
9006,
1207,
3675,
2939,
16,
471,
327,
326,
1686,
468,
316,
777,
2612,
17,
3593,
18,
766,
273,
1408,
364,
2... |
MAYASDK[ver]=GetRegistryKey("SOFTWARE\\Alias|Wavefront\\Maya\\5.0\\Setup\\InstallPath","MAYA_INSTALL_LOCATION") | MAYASDK[ver]=GetRegistryKey(key, "MAYA_INSTALL_LOCATION") | def parseopts(args): global PREFIX,COMPILER,OPTIMIZE,OMIT,THIRDPARTY,INSTALLER,PPGAME global COPYEXTRAS,VERSION,COMPRESSOR,DIRECTXSDK,VERBOSE longopts = [ "help","package-info","prefix=","compiler=","directx-sdk=","thirdparty=", "optimize=","everything","nothing","installer","ppgame=","quiet","verbose", "version=","lzm... | 84eab2bf3c9c49536335ac1ceed1c006c97d2d7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/84eab2bf3c9c49536335ac1ceed1c006c97d2d7c/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4952,
12,
1968,
4672,
2552,
17154,
16,
31075,
14668,
16,
15620,
3445,
15641,
16,
1872,
1285,
16,
2455,
7937,
40,
2778,
5538,
16,
28865,
654,
16,
6584,
43,
1642,
2552,
27776,
22639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4952,
12,
1968,
4672,
2552,
17154,
16,
31075,
14668,
16,
15620,
3445,
15641,
16,
1872,
1285,
16,
2455,
7937,
40,
2778,
5538,
16,
28865,
654,
16,
6584,
43,
1642,
2552,
27776,
22639,
... |
raise ValueError("Key should be 128, 256 or 256 bits") | raise ValueError("Key should be 128, 192 or 256 bits") | def __init__(self,key,mode,IV,counter,blocksize): if (len(key) not in (16,24,32)) and type(key) is not tuple: raise ValueError("Key should be 128, 256 or 256 bits") if blocksize not in (16,24,32): raise ValueError("Block size should be 128, 256 or 256 bits") cipher_module = rijndael args = {'block_size':blocksize} self... | a690e15f692b9637614051020364bf4d64f8a403 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8009/a690e15f692b9637614051020364bf4d64f8a403/python_Rijndael.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
856,
16,
3188,
16,
8188,
16,
7476,
16,
2629,
1467,
4672,
309,
261,
1897,
12,
856,
13,
486,
316,
261,
2313,
16,
3247,
16,
1578,
3719,
471,
618,
12,
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,
1001,
2738,
972,
12,
2890,
16,
856,
16,
3188,
16,
8188,
16,
7476,
16,
2629,
1467,
4672,
309,
261,
1897,
12,
856,
13,
486,
316,
261,
2313,
16,
3247,
16,
1578,
3719,
471,
618,
12,
856,... |
connection.commit() | database.connection.commit() | def get_likelihood_ratio(coinc_event_id, time_slide_id, row_from_cols = database.sngl_burst_table.row_from_cols, cursor = database.connection.cursor(), offset_vectors = offset_vectors, params_func = params_func, params_func_extra_args = params_func_extra_args): events = map(row_from_cols, cursor.execute(""" | c3394a1cc9d5373b34d8069bec1220f00395cac6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/c3394a1cc9d5373b34d8069bec1220f00395cac6/ligolw_burca2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
18269,
67,
9847,
12,
12645,
71,
67,
2575,
67,
350,
16,
813,
67,
26371,
67,
350,
16,
1027,
67,
2080,
67,
6842,
273,
2063,
18,
87,
3368,
80,
67,
70,
18593,
67,
2121,
18,
492... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
18269,
67,
9847,
12,
12645,
71,
67,
2575,
67,
350,
16,
813,
67,
26371,
67,
350,
16,
1027,
67,
2080,
67,
6842,
273,
2063,
18,
87,
3368,
80,
67,
70,
18593,
67,
2121,
18,
492... |
public = open(os.path.join(directory, 'public', filename), 'w') | def _write(self, func, directory, filename, progress_callback, *args): """ A helper for L{write}, that creates new public and private streams for a given filename, and delegates writing to C{func}. If L{_create_private_docs} is true, then the streams are created in the C{'public'} and C{'private'} subdirectories of C{... | dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
12,
2890,
16,
1326,
16,
1867,
16,
1544,
16,
4007,
67,
3394,
16,
380,
1968,
4672,
3536,
432,
4222,
364,
511,
95,
2626,
5779,
716,
3414,
394,
1071,
471,
3238,
8205,
364,
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,
389,
2626,
12,
2890,
16,
1326,
16,
1867,
16,
1544,
16,
4007,
67,
3394,
16,
380,
1968,
4672,
3536,
432,
4222,
364,
511,
95,
2626,
5779,
716,
3414,
394,
1071,
471,
3238,
8205,
364,
279,
... | |
self.lines.append("M00*") | self.lines.append("M00*") | def appendEnd(self): | 4e06ecc6f735c3bd2e1ea5c6579184aad9a5b1dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8155/4e06ecc6f735c3bd2e1ea5c6579184aad9a5b1dd/export_gcode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
1638,
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,
... | [
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,
714,
1638,
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,
-1... |
FROM ?""" connection.cursor().execute( sqlquery, (table_name,) ) | FROM """, table_name, ')' ]) connection.cursor().execute( sqlquery ) | def clean_using_coinc_table( connection, table_name, verbose = False, clean_experiment_map = True, clean_coinc_event_table = True, clean_coinc_definer = True, clean_coinc_event_map = True, clean_mapped_tables = True, selected_tables = []): """ Clears experiment_map, coinc_event, coinc_event_map, and all tables pointing... | 9edf708fb0141e77915abb6fb546e3cf05f54a6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9edf708fb0141e77915abb6fb546e3cf05f54a6d/ligolw_sqlutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
9940,
67,
12645,
71,
67,
2121,
12,
1459,
16,
1014,
67,
529,
16,
3988,
273,
1083,
16,
2721,
67,
18142,
67,
1458,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
2121,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
9940,
67,
12645,
71,
67,
2121,
12,
1459,
16,
1014,
67,
529,
16,
3988,
273,
1083,
16,
2721,
67,
18142,
67,
1458,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
2121,
273,... |
if self.infobar.selected_subtitle == cur[0]: | if self.infobar.selected_subtitle == cur[0][:4]: | def keyOk(self): if self.focus == FOCUS_STREAMS and self["streams"].list: cur = self["streams"].getCurrent() if self.settings.menupage.getValue() == PAGE_AUDIO and cur[0] is not None: self.changeAudio(cur[2]) self.__updatedInfo() if self.settings.menupage.getValue() == PAGE_SUBTITLES and cur[0] is not None: if self.inf... | 4e4e409ecf055fd75198367cb5ae85c0fd62fb84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/4e4e409ecf055fd75198367cb5ae85c0fd62fb84/AudioSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
8809,
12,
2890,
4672,
309,
365,
18,
13923,
422,
478,
10809,
3378,
67,
13693,
55,
471,
365,
9614,
16320,
6,
8009,
1098,
30,
662,
273,
365,
9614,
16320,
6,
8009,
588,
3935,
1435,
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,
498,
8809,
12,
2890,
4672,
309,
365,
18,
13923,
422,
478,
10809,
3378,
67,
13693,
55,
471,
365,
9614,
16320,
6,
8009,
1098,
30,
662,
273,
365,
9614,
16320,
6,
8009,
588,
3935,
1435,
30... |
citation = Citation() | citation = mysite.profile.models.Citation() | def create_citations_from_github_results(dia_id, results, override_contrib=None): repos, dict_mapping_repos_to_languages = results dia = DataImportAttempt.objects.get(id=dia_id) person = dia.person for repo in repos: (project, _) = Project.objects.get_or_create(name=repo.name) # FIXME: Populate project description, n... | f1d0d2222a9a25e0a8611c6a5776e209776dcdc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/f1d0d2222a9a25e0a8611c6a5776e209776dcdc0/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
71,
18282,
67,
2080,
67,
6662,
67,
4717,
12,
72,
1155,
67,
350,
16,
1686,
16,
3849,
67,
26930,
33,
7036,
4672,
13686,
16,
2065,
67,
6770,
67,
15564,
67,
869,
67,
14045,
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,
752,
67,
71,
18282,
67,
2080,
67,
6662,
67,
4717,
12,
72,
1155,
67,
350,
16,
1686,
16,
3849,
67,
26930,
33,
7036,
4672,
13686,
16,
2065,
67,
6770,
67,
15564,
67,
869,
67,
14045,
273,... |
self.close_request(request) | self.shutdown_request(request) | def process_request(self, request, client_address): """Call finish_request. | 41d9a4da390969498b7170d6f56ce4d9cb74989a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/41d9a4da390969498b7170d6f56ce4d9cb74989a/SocketServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
590,
16,
1004,
67,
2867,
4672,
3536,
1477,
4076,
67,
2293,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
590,
16,
1004,
67,
2867,
4672,
3536,
1477,
4076,
67,
2293,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if i < 0: return None data[0] = data[0][i+1:] | if i >= 0: data[0] = data[0][i+1:] | def parsedate_tz(data): """Convert a date string to a time tuple. Accounts for military timezones. """ data = data.split() # The FWS after the comma after the day-of-week is optional, so search and # adjust for this. if data[0].endswith(',') or data[0].lower() in _daynames: # There's a dayname here. Skip it del data[0... | b5dc39f02c47d561110171e014c340844f4a52b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b5dc39f02c47d561110171e014c340844f4a52b3/_parseaddr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
712,
67,
12994,
12,
892,
4672,
3536,
2723,
279,
1509,
533,
358,
279,
813,
3193,
18,
225,
30849,
364,
312,
330,
305,
814,
25954,
18,
3536,
501,
273,
501,
18,
4939,
1435,
468,
1021... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
712,
67,
12994,
12,
892,
4672,
3536,
2723,
279,
1509,
533,
358,
279,
813,
3193,
18,
225,
30849,
364,
312,
330,
305,
814,
25954,
18,
3536,
501,
273,
501,
18,
4939,
1435,
468,
1021... |
if filetypes.is_video_filename(item_info.video_path): self.renderer.set_item(item_info, self._open_success, self._open_error) else: self._open_error() | self.renderer.set_item(item_info, self._open_success, self._open_error) | def setup(self, item_info, volume): self.show_renderer() self.cant_play_widget.set_video_path(item_info.video_path) self.item_info_id = item_info.id # Even though the video renderer would call _open_error if it can't # open an item, doing a first pass here allow to filter out items with # a file_type of 'other' more ea... | 8158b28c83276a04f7e79a856e0aacd7437378ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/8158b28c83276a04f7e79a856e0aacd7437378ee/displays.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
16,
761,
67,
1376,
16,
3940,
4672,
365,
18,
4500,
67,
14374,
1435,
365,
18,
71,
970,
67,
1601,
67,
6587,
18,
542,
67,
9115,
67,
803,
12,
1726,
67,
1376,
18,
9115,
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,
3875,
12,
2890,
16,
761,
67,
1376,
16,
3940,
4672,
365,
18,
4500,
67,
14374,
1435,
365,
18,
71,
970,
67,
1601,
67,
6587,
18,
542,
67,
9115,
67,
803,
12,
1726,
67,
1376,
18,
9115,
6... |
str(2*num_routers*count/3)) | str(0.65*(num_routers*count/2.0))) | def notlambda(this): cond.acquire() # TODO: Using the entry_gen router list is somewhat ghetto.. if (not this.selmgr.bad_restrictions) or \ (this.selmgr.path_selector.entry_gen.rstr_routers and \ this.selmgr.path_selector.exit_gen.rstr_routers): for r in this.selmgr.path_selector.entry_gen.rstr_routers: if r._generated... | 7f016d6db7a45b8863c264cadeb5df5c6efd63ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/7f016d6db7a45b8863c264cadeb5df5c6efd63ba/bwauthority.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
486,
14661,
12,
2211,
4672,
6941,
18,
1077,
1039,
1435,
468,
2660,
30,
11637,
326,
1241,
67,
4507,
4633,
666,
353,
18016,
11304,
21409,
278,
869,
838,
309,
261,
902,
333,
18,
1786,
13552... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
486,
14661,
12,
2211,
4672,
6941,
18,
1077,
1039,
1435,
468,
2660,
30,
11637,
326,
1241,
67,
4507,
4633,
666,
353,
18016,
11304,
21409,
278,
869,
838,
309,
261,
902,
333,
18,
1786,
13552... |
self.event = event | def setEvent(self, event): if event is None: return self.event = event text = event.getEventName() short = event.getShortDescription() ext = event.getExtendedDescription() if len(short) > 0 and short != text: text = text + '\n\n' + short if len(ext) > 0: if len(text) > 0: text = text + '\n\n' text = text + ext | 91bbfc14c466eb8955c604494ecaee32737b34c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/91bbfc14c466eb8955c604494ecaee32737b34c8/EventView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31042,
12,
2890,
16,
871,
4672,
309,
871,
353,
599,
30,
327,
977,
273,
871,
18,
588,
24320,
1435,
3025,
273,
871,
18,
588,
4897,
3291,
1435,
1110,
273,
871,
18,
588,
11456,
3291,
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,
31042,
12,
2890,
16,
871,
4672,
309,
871,
353,
599,
30,
327,
977,
273,
871,
18,
588,
24320,
1435,
3025,
273,
871,
18,
588,
4897,
3291,
1435,
1110,
273,
871,
18,
588,
11456,
3291,
1435,... | |
repetitions = (self.repetitions + 2) * self.cell_active + 1 - self.cell_active | if self.clipping: repetitions = (self.repetitions + 2) * self.cell_active + 1 - self.cell_active else: repetitions = self.repetitions * self.cell_active + 1 - self.cell_active | def revalidate_total_list(self): if self.gl_active > 0: ##print "Compiling total list (%i): %s" % (self.total_list, self.get_name()) glNewList(self.total_list, GL_COMPILE) if self.visible: glPushName(self.draw_list) if self.box_visible: glCallList(self.box_list) if self.selected and sum(self.cell_active) == 0: glCallLi... | cb136f56da2eb54f963c7a65354fd090ed118504 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11052/cb136f56da2eb54f963c7a65354fd090ed118504/universe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
5662,
67,
4963,
67,
1098,
12,
2890,
4672,
309,
365,
18,
7043,
67,
3535,
405,
374,
30,
7541,
1188,
315,
2945,
4973,
2078,
666,
6142,
77,
4672,
738,
87,
6,
738,
261,
2890,
18,
496... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
283,
5662,
67,
4963,
67,
1098,
12,
2890,
4672,
309,
365,
18,
7043,
67,
3535,
405,
374,
30,
7541,
1188,
315,
2945,
4973,
2078,
666,
6142,
77,
4672,
738,
87,
6,
738,
261,
2890,
18,
496... |
import imp | def _get_modpkg_path(dotted_name, pathlist=None): """ Get the filesystem path for a module or a package. Return the file system path to a file for a module, and to a directory for a package. Return None if the name is not found, or is a builtin or extension module. """ import imp # split off top-most name parts = dot... | 580440e357ef5697439695d88ac36c3974e15cf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/580440e357ef5697439695d88ac36c3974e15cf7/pygettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1711,
10657,
67,
803,
12,
9811,
2344,
67,
529,
16,
589,
1098,
33,
7036,
4672,
3536,
968,
326,
6496,
589,
364,
279,
1605,
578,
279,
2181,
18,
225,
2000,
326,
585,
2619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
67,
1711,
10657,
67,
803,
12,
9811,
2344,
67,
529,
16,
589,
1098,
33,
7036,
4672,
3536,
968,
326,
6496,
589,
364,
279,
1605,
578,
279,
2181,
18,
225,
2000,
326,
585,
2619,
... | |
f = None | def send_stack_depth(self): """ Send event with stack depth and exception stack depth. """ ctx = self.get_current_ctx() try: try: f = None f = ctx.frame_acquire() except ThreadDone: return | 3936cfe7191507813ad88daecdb00c41fdd1a2a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9402/3936cfe7191507813ad88daecdb00c41fdd1a2a6/rpdb2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
3772,
67,
5979,
12,
2890,
4672,
3536,
2479,
871,
598,
2110,
3598,
471,
1520,
2110,
3598,
18,
3536,
225,
1103,
273,
365,
18,
588,
67,
2972,
67,
5900,
1435,
225,
775,
30,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
3772,
67,
5979,
12,
2890,
4672,
3536,
2479,
871,
598,
2110,
3598,
471,
1520,
2110,
3598,
18,
3536,
225,
1103,
273,
365,
18,
588,
67,
2972,
67,
5900,
1435,
225,
775,
30,
775,
... | |
resultSet = ResultSet() | resultSet = ResultValues() | def makeResultSet(resultSet): results = [Result(d.name, value, d.units) for value, d in zip(resultSet, test.getResultDescs())] return ResultSet(resultName, results) | fb1b34501b21512071bb2a96c71f49a4dff02744 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2798/fb1b34501b21512071bb2a96c71f49a4dff02744/glscry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
13198,
12,
2088,
694,
4672,
1686,
273,
306,
1253,
12,
72,
18,
529,
16,
460,
16,
302,
18,
7705,
13,
364,
460,
16,
302,
316,
3144,
12,
2088,
694,
16,
1842,
18,
588,
1253,
4217,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
13198,
12,
2088,
694,
4672,
1686,
273,
306,
1253,
12,
72,
18,
529,
16,
460,
16,
302,
18,
7705,
13,
364,
460,
16,
302,
316,
3144,
12,
2088,
694,
16,
1842,
18,
588,
1253,
4217,
... |
(cssclass, param.name())) if show_defaults and param.value() is not None: default = param.value() | (css_class, param.name())) if show_defaults and param.default() is not None: default = param.default() | def _params_to_html(self, parameters, cssclass, show_defaults): PARAM_JOIN = ',\n'+' '*15 str = '' for param in parameters: if type(param) in (type([]), type(())): sublist = self._params_to_html(param, cssclass, show_defaults) str += '(%s), ' % sublist[:-len(PARAM_JOIN)] else: str += ('<span class=%s-arg>%s</span>' % (... | 36aef14a0edb4bd18076686105d0e4e6c7c10c23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36aef14a0edb4bd18076686105d0e4e6c7c10c23/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2010,
67,
869,
67,
2620,
12,
2890,
16,
1472,
16,
2873,
1017,
459,
16,
2405,
67,
7606,
4672,
4655,
67,
18800,
273,
2265,
64,
82,
11,
6797,
14609,
3600,
609,
273,
875,
364,
579,
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,
2010,
67,
869,
67,
2620,
12,
2890,
16,
1472,
16,
2873,
1017,
459,
16,
2405,
67,
7606,
4672,
4655,
67,
18800,
273,
2265,
64,
82,
11,
6797,
14609,
3600,
609,
273,
875,
364,
579,
3... |
for t2 in z.mem_funs(t): t2._transformer_kwds['alias'] = t | z.mem_fun(lambda x: x.name==t and not 'CvMat' in x.decl_string)._transformer_kwds['alias'] = t | def _KLASS__repr__(self): return "KLASS(min_val=" + repr(self.min_val) + ", max_val=" + repr(self.max_val) \ + ", step=" + repr(self.step) + ")" | cff5c5b91a91c9f4a21f56616a8b25f38010c41e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4310/cff5c5b91a91c9f4a21f56616a8b25f38010c41e/ml_h.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
47,
3979,
972,
12715,
972,
12,
2890,
4672,
327,
315,
47,
3979,
12,
1154,
67,
1125,
1546,
397,
8480,
12,
2890,
18,
1154,
67,
1125,
13,
397,
3104,
943,
67,
1125,
1546,
397,
8480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
47,
3979,
972,
12715,
972,
12,
2890,
4672,
327,
315,
47,
3979,
12,
1154,
67,
1125,
1546,
397,
8480,
12,
2890,
18,
1154,
67,
1125,
13,
397,
3104,
943,
67,
1125,
1546,
397,
8480,
... |
butt = OWGUI.button(self.statusBox, self, "Stop Loading", callback = self.abortOperation); butt.show() | butt = OWGUI.button(self.widgetStatusArea, self, "Stop Loading", callback = self.abortOperation); butt.show() | def loadProjections(self, name = None, ignoreCheckSum = 0, maxCount = -1): self.setStatusBarText("Loading projections") if not self.graph.haveData: QMessageBox.critical(None,'Load','There is no data. First load a data set and then load projection file',QMessageBox.Ok) return | c15a7f84315db7a864ed78cbe2f181ac33e49b8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/c15a7f84315db7a864ed78cbe2f181ac33e49b8a/OWkNNOptimization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
14789,
87,
12,
2890,
16,
508,
273,
599,
16,
2305,
1564,
3495,
273,
374,
16,
943,
1380,
273,
300,
21,
4672,
365,
18,
542,
1482,
5190,
1528,
2932,
10515,
8106,
87,
7923,
309,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14789,
87,
12,
2890,
16,
508,
273,
599,
16,
2305,
1564,
3495,
273,
374,
16,
943,
1380,
273,
300,
21,
4672,
365,
18,
542,
1482,
5190,
1528,
2932,
10515,
8106,
87,
7923,
309,
486,
... |
print "<", line | print "-", line, | def pair(x0, x1): x0 += 1 if x0 >= x1: return str(x0) else: return "%d,%d" % (x0, x1) | e35ebca574f26c382a6a5d825fcc932185e500cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e35ebca574f26c382a6a5d825fcc932185e500cb/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3082,
12,
92,
20,
16,
619,
21,
4672,
619,
20,
1011,
404,
309,
619,
20,
1545,
619,
21,
30,
327,
609,
12,
92,
20,
13,
469,
30,
327,
2213,
72,
15529,
72,
6,
738,
261,
92,
20,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3082,
12,
92,
20,
16,
619,
21,
4672,
619,
20,
1011,
404,
309,
619,
20,
1545,
619,
21,
30,
327,
609,
12,
92,
20,
13,
469,
30,
327,
2213,
72,
15529,
72,
6,
738,
261,
92,
20,
16,
... |
self.nimConfig.configMode.setChoices(choices) | self.nimConfig.configMode.setChoices(choices, default = "nothing") | def createConfigMode(self): if self.nim.isCompatible("DVB-S"): choices = { "nothing": _("nothing connected"), "simple": _("simple"), "advanced": _("advanced")} #if len(nimmanager.getNimListOfType(nimmanager.getNimType(self.slotid), exception = x)) > 0: # choices["equal"] = _("equal to") # choices["satposdepends"] = _("... | 8735bf9681ee930d09b9f7a0a19024ca29ad4e4e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/8735bf9681ee930d09b9f7a0a19024ca29ad4e4e/Satconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
809,
2309,
12,
2890,
4672,
309,
365,
18,
82,
381,
18,
291,
14599,
2932,
30199,
38,
17,
55,
6,
4672,
7246,
273,
288,
315,
30874,
6877,
389,
2932,
30874,
5840,
6,
3631,
315,
9647,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
809,
2309,
12,
2890,
4672,
309,
365,
18,
82,
381,
18,
291,
14599,
2932,
30199,
38,
17,
55,
6,
4672,
7246,
273,
288,
315,
30874,
6877,
389,
2932,
30874,
5840,
6,
3631,
315,
9647,
... |
Check that it's a modular form of weight 2 :-) sage: 7**2 * EllipticCurve([-1, 1/4]).padic_E2(11, 10) 8 + 7*11 + 8*11^4 + 4*11^5 + 6*11^6 + 2*11^7 + 3*11^8 + 11^9 + O(11^10) sage: EllipticCurve([-1*(7**4), 1/4*(7**6)]).padic_E2(11, 10) 8 + 7*11 + 8*11^4 + 4*11^5 + 6*11^6 + 2*11^7 + 3*11^8 + 11^9 + O(11^10) | Check it works for different models of the same curve (37a), even when the discriminant changes by a power of p (note that E2 depends on the differential too, which is why it gets scaled in some of the examples below): sage: X1 = EllipticCurve([-1, 1/4]) sage: X1.j_invariant(), X1.discriminant() (110592/37, 37) sage: ... | def padic_E2(self, p, prec=20, check=False): r""" Returns the value of the $p$-adic modular form $E2$ for $(E, \omega)$ where $\omega$ is the usual invariant differential $dx/(2y + a_1 x + a_3)$. | 0c37ef5556331eaa4e038ffac7b4c6c057b249e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/0c37ef5556331eaa4e038ffac7b4c6c057b249e3/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
41,
22,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
866,
33,
8381,
4672,
436,
8395,
2860,
326,
460,
434,
326,
271,
84,
8,
17,
20333,
681,
2490,
646,
271,
41,
22,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4627,
335,
67,
41,
22,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
866,
33,
8381,
4672,
436,
8395,
2860,
326,
460,
434,
326,
271,
84,
8,
17,
20333,
681,
2490,
646,
271,
41,
22,
8,
... |
self.mimetype = aq_base(mimetype) | self.mimetype = mimetype | def update(self, data, instance, **kw): #Convert from str to unicode as needed mimetype = kw.get('mimetype', None) filename = kw.get('filename', None) encoding = kw.get('encoding', None) | dbae2d9b4159c3e5f14ddae8c1522dea5b3ed9a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/dbae2d9b4159c3e5f14ddae8c1522dea5b3ed9a8/BaseUnit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
501,
16,
791,
16,
2826,
9987,
4672,
468,
2723,
628,
609,
358,
5252,
487,
3577,
12595,
273,
5323,
18,
588,
2668,
22571,
2187,
599,
13,
1544,
273,
5323,
18,
588,
2668... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
501,
16,
791,
16,
2826,
9987,
4672,
468,
2723,
628,
609,
358,
5252,
487,
3577,
12595,
273,
5323,
18,
588,
2668,
22571,
2187,
599,
13,
1544,
273,
5323,
18,
588,
2668... |
self.write(cr, uid, id, { 'url': ''}) | self.write(cr, uid, id, { 'url': ''}) | def update_list(self, cr, uid, context={}): robj = self.pool.get('ir.module.repository') res = [0, 0] # [update, add] | b1ea2dafc3fca01afc5438af083ef47873ab4456 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/b1ea2dafc3fca01afc5438af083ef47873ab4456/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1098,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
721,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
9071,
6134,
400,
273,
306,
20,
16,
374,
65,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1098,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
721,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
9071,
6134,
400,
273,
306,
20,
16,
374,
65,
468,
... |
print "factor is", factor | def draw(self): orientation = self.orientation # this could be done cleverly using the other widgets, but what the .... x,y = self.x, self.y fmt = self.labelFormat (delta, startpoint) = scaleParameters(self.minimum, self.maximum, self.nLabels) G = Group() # orientation independent data (direct values for vertical case,... | 327f24d7ce4c06f78a1d4f28a5935f6ef1825af0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/327f24d7ce4c06f78a1d4f28a5935f6ef1825af0/barchart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
9820,
273,
365,
18,
19235,
468,
333,
3377,
506,
2731,
1619,
502,
715,
1450,
326,
1308,
10965,
16,
1496,
4121,
326,
1372,
18,
619,
16,
93,
273,
365,
18,
92,
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,
3724,
12,
2890,
4672,
9820,
273,
365,
18,
19235,
468,
333,
3377,
506,
2731,
1619,
502,
715,
1450,
326,
1308,
10965,
16,
1496,
4121,
326,
1372,
18,
619,
16,
93,
273,
365,
18,
92,
16,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.