rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
else | else: | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 429) else quickfix.IntField.__init__(self, 429, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
27542,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
27542,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
9... |
cr.execute('update ir_sequence set number_next=number_next+number_increment where id=%s and active=True', (res['id'],)) | cr.execute('UPDATE ir_sequence SET number_next=number_next+number_increment WHERE id=%s AND active=%s', (res['id'], True)) | def get_id(self, cr, uid, sequence_id, test='id=%s', context={}): try: cr.execute('lock table ir_sequence') cr.execute('select id,number_next,number_increment,prefix,suffix,padding from ir_sequence where '+test+' and active=True', (sequence_id,)) res = cr.dictfetchone() if res: cr.execute('update ir_sequence set number... | 7913a8c4695656ab91d7f66f4c05d680b17aacab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/7913a8c4695656ab91d7f66f4c05d680b17aacab/ir_sequence.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3102,
67,
350,
16,
1842,
2218,
350,
5095,
87,
2187,
819,
12938,
4672,
775,
30,
4422,
18,
8837,
2668,
739,
1014,
9482,
67,
6178,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3102,
67,
350,
16,
1842,
2218,
350,
5095,
87,
2187,
819,
12938,
4672,
775,
30,
4422,
18,
8837,
2668,
739,
1014,
9482,
67,
6178,
6134,
... |
license=info.get('license', 'GPL-2'), | license='GPL-3', | def add_defaults(self): sdist.sdist.add_defaults(self) if self.distribution.has_pure_modules(): build_py = self.get_finalized_command('build_py') data = [] for package in build_py.packages: src_dir = build_py.get_package_dir(package) data.extend(build_py.find_data_files(package, src_dir)) self.filelist.extend(data) | c1494ad2da09e23c402e042102b4368d24a15f28 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/c1494ad2da09e23c402e042102b4368d24a15f28/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7606,
12,
2890,
4672,
272,
4413,
18,
87,
4413,
18,
1289,
67,
7606,
12,
2890,
13,
309,
365,
18,
16279,
18,
5332,
67,
84,
594,
67,
6400,
13332,
1361,
67,
2074,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7606,
12,
2890,
4672,
272,
4413,
18,
87,
4413,
18,
1289,
67,
7606,
12,
2890,
13,
309,
365,
18,
16279,
18,
5332,
67,
84,
594,
67,
6400,
13332,
1361,
67,
2074,
273,
365,
18,
... |
MakeDirectory(PREFIX+"/direct") | def printStatus(header,warnings): global VERBOSE if VERBOSE >= -2: print "" print "-------------------------------------------------------------------" print header tkeep = "" tomit = "" for x in PACKAGES: if (OMIT.count(x)==0): tkeep = tkeep + x + " " else: tomit = tomit + x + " " print "Makepanda: Pr... | a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1482,
12,
3374,
16,
12103,
4672,
2552,
27857,
309,
27857,
1545,
300,
22,
30,
1172,
1408,
1172,
315,
5802,
6062,
6,
1172,
1446,
268,
10102,
273,
1408,
358,
1938,
273,
1408,
364,
619... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
1482,
12,
3374,
16,
12103,
4672,
2552,
27857,
309,
27857,
1545,
300,
22,
30,
1172,
1408,
1172,
315,
5802,
6062,
6,
1172,
1446,
268,
10102,
273,
1408,
358,
1938,
273,
1408,
364,
619... | |
"'%s' expects <dir> <pattern>" % | "'%s' expects <dir> <pattern1> <pattern2> ..." % | def read_template (self): """Read and parse the manifest template file named by 'self.template' (usually "MANIFEST.in"). Process all file specifications (include and exclude) in the manifest template and add the resulting filenames to 'self.files'.""" | 21e295b8fbea21a3383b789b0f44d59a3c2c9d90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/21e295b8fbea21a3383b789b0f44d59a3c2c9d90/sdist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3202,
261,
2890,
4672,
3536,
1994,
471,
1109,
326,
5643,
1542,
585,
4141,
635,
296,
2890,
18,
3202,
11,
261,
407,
3452,
315,
9560,
30050,
18,
267,
20387,
225,
4389,
777,
585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
67,
3202,
261,
2890,
4672,
3536,
1994,
471,
1109,
326,
5643,
1542,
585,
4141,
635,
296,
2890,
18,
3202,
11,
261,
407,
3452,
315,
9560,
30050,
18,
267,
20387,
225,
4389,
777,
585,
... |
response = display_options() | display_options() response = get_response() | def list_bugs(): log.msg("\n\nFollowing are the list of bugs present.\n") for each_bug in bugs_number: each_bug = each_bug.split('.')[1] log.msg("%s\n" % (each_bug) ) | 323c51a1c5d866b7e61d527f890e0c0ea0b2e9b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/323c51a1c5d866b7e61d527f890e0c0ea0b2e9b1/pypt_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
19381,
13332,
613,
18,
3576,
31458,
82,
64,
82,
8328,
310,
854,
326,
666,
434,
22398,
3430,
8403,
82,
7923,
364,
1517,
67,
925,
316,
22398,
67,
2696,
30,
1517,
67,
925,
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,
666,
67,
19381,
13332,
613,
18,
3576,
31458,
82,
64,
82,
8328,
310,
854,
326,
666,
434,
22398,
3430,
8403,
82,
7923,
364,
1517,
67,
925,
316,
22398,
67,
2696,
30,
1517,
67,
925,
273,
... |
register = template.get_library("apps.webui.templatetags.webui") | register = template.get_library("apps.webui.templatetags.webui_tags") | def fake_templatetag(f): ''' Adds a fake (rendered -- not curried) templatetag to dashboard's templatetags and returns the original function unchanged so it can be registered normally as a proper templatetag in its home app. ''' from django import template register = template.get_library("apps.webui.templatetags.webui"... | e9367c373987c8576d8aa43d1dd0672f35615972 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/e9367c373987c8576d8aa43d1dd0672f35615972/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10517,
67,
27380,
270,
20788,
12,
74,
4672,
9163,
15605,
279,
10517,
261,
26332,
1493,
486,
662,
24012,
13,
13988,
270,
20788,
358,
11825,
1807,
13988,
270,
278,
1341,
471,
1135,
326,
2282... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10517,
67,
27380,
270,
20788,
12,
74,
4672,
9163,
15605,
279,
10517,
261,
26332,
1493,
486,
662,
24012,
13,
13988,
270,
20788,
358,
11825,
1807,
13988,
270,
278,
1341,
471,
1135,
326,
2282... |
""" % { 'adminurl' : WEBSUBMITADMIN_WEBURL } | """ % { 'adminurl' : WEBSUBMITADMIN_WEBURL, 'weburl': weburl } | def _create_websubmitadmin_main_menu_header(self): """Create the main menu to be displayed on WebSubmit Admin pages.""" menu_body = """ <div> <table> <tr> <td>0. <small><a href="%(adminurl)s/showall">Show all</a></small></td> <td> 1. <small><a href="%(adminurl)s/doctypelist">Available Document Types</a><... | ed0b467451e5cdf9843d5090ca83c52f9ace75c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/ed0b467451e5cdf9843d5090ca83c52f9ace75c5/websubmitadmin_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
4875,
9297,
3666,
67,
5254,
67,
5414,
67,
3374,
12,
2890,
4672,
3536,
1684,
326,
2774,
3824,
358,
506,
10453,
603,
2999,
11620,
7807,
4689,
12123,
3824,
67,
3432,
273,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
4875,
9297,
3666,
67,
5254,
67,
5414,
67,
3374,
12,
2890,
4672,
3536,
1684,
326,
2774,
3824,
358,
506,
10453,
603,
2999,
11620,
7807,
4689,
12123,
3824,
67,
3432,
273,
353... |
task.sync | task.sync() | def on_addtag_confirm(self, widget=None): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") if not tag_entry.get_text()[0] == "@": new_tagname = "@" + tag_entry.get_text() else: new_tagname = tag_entry.get_text() #TODO: What if I _want_ the new tag to be @@somethin... | 8e42028002dbe1aa9223bcfb0ad670c792bfe961 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/8e42028002dbe1aa9223bcfb0ad670c792bfe961/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1289,
2692,
67,
10927,
12,
2890,
16,
3604,
33,
7036,
4672,
1047,
67,
4099,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
2692,
67,
4099,
7923,
527,
2692,
67,
12730,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1289,
2692,
67,
10927,
12,
2890,
16,
3604,
33,
7036,
4672,
1047,
67,
4099,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
2692,
67,
4099,
7923,
527,
2692,
67,
12730,
273,
365,
... |
olderr = seterr(divide='ignore') | olderr = seterr(divide='ignore', invalid='ignore') | def test_neginf(self): olderr = seterr(divide='ignore') try: assert_all(isfinite(array((-1.,))/0.) == 0) finally: seterr(**olderr) | 50375e7ea744fe685abd0623446f45de2019437a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/50375e7ea744fe685abd0623446f45de2019437a/test_type_check.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
82,
5022,
74,
12,
2890,
4672,
1592,
370,
273,
444,
370,
12,
2892,
831,
2218,
6185,
2187,
2057,
2218,
6185,
6134,
775,
30,
1815,
67,
454,
12,
291,
9551,
12,
1126,
12443,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
82,
5022,
74,
12,
2890,
4672,
1592,
370,
273,
444,
370,
12,
2892,
831,
2218,
6185,
2187,
2057,
2218,
6185,
6134,
775,
30,
1815,
67,
454,
12,
291,
9551,
12,
1126,
12443,
17,
... |
context_wo_lang = context | context_wo_lang = context.copy() | def copy_data(self, cr, uid, id, default=None, context=None): """ Copy given record's data with all its fields values | 3fa759a9d5c5e1f860331857377dcfb3e79eee5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/3fa759a9d5c5e1f860331857377dcfb3e79eee5d/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
892,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
805,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
5631,
864,
1409,
1807,
501,
598,
777,
2097,
1466,
924,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
892,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
805,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
5631,
864,
1409,
1807,
501,
598,
777,
2097,
1466,
924,
2,
-100,
-100,
-100,
-1... |
_open = _mk_single_path_wrapper('file', _open) | _file = _mk_single_path_wrapper('file', _file) _open = _mk_single_path_wrapper('open', _open) | def wrap(self,path,*args,**kw): if self._active: path = self._remap_input(name,path,*args,**kw) return original(path,*args,**kw) | d424393e0fa423eb23d0b0b4ec447b8044b0ff50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8186/d424393e0fa423eb23d0b0b4ec447b8044b0ff50/sandbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
12,
2890,
16,
803,
16,
14,
1968,
16,
636,
9987,
4672,
309,
365,
6315,
3535,
30,
589,
273,
365,
6315,
266,
1458,
67,
2630,
12,
529,
16,
803,
16,
14,
1968,
16,
636,
9987,
13,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
12,
2890,
16,
803,
16,
14,
1968,
16,
636,
9987,
4672,
309,
365,
6315,
3535,
30,
589,
273,
365,
6315,
266,
1458,
67,
2630,
12,
529,
16,
803,
16,
14,
1968,
16,
636,
9987,
13,
3... |
if cwd != None: | if cwd is not None: | def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" | d9d8e95d201f8665ecddddf49cd22a62908564ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9d8e95d201f8665ecddddf49cd22a62908564ee/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
67,
3624,
12,
2890,
16,
833,
16,
9070,
16,
675,
4177,
67,
4293,
16,
1746,
67,
74,
2377,
16,
7239,
16,
1550,
16,
26182,
67,
31276,
16,
11850,
1376,
16,
6710,
7133,
16,
5972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8837,
67,
3624,
12,
2890,
16,
833,
16,
9070,
16,
675,
4177,
67,
4293,
16,
1746,
67,
74,
2377,
16,
7239,
16,
1550,
16,
26182,
67,
31276,
16,
11850,
1376,
16,
6710,
7133,
16,
5972... |
if uidmin <= userid <= uidmax: return 1 | if userid == uidmin: print username, userid return False elif uidmin < userid <= uidmax: return True | def isnormal(username): userid = int(pwd.getpwnam(username)[2]) #FIXME: Temporary fix for: https://bugs.launchpad.net/bugs/286529 if userid == "1000" or userid == "500": return 0 logindefs = open('/etc/login.defs') uidminmax = re.compile('^UID_(?:MIN|MAX)\s+(\d+)',re.M).findall(logindefs.read()) if uidminmax[0] < uidmi... | bc3f8d334f44f36a68068a3c69525ff270e58205 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/bc3f8d334f44f36a68068a3c69525ff270e58205/timekpr-gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5177,
1687,
12,
5053,
4672,
6709,
273,
509,
12,
27487,
18,
588,
14921,
17808,
12,
5053,
25146,
22,
5717,
468,
25810,
30,
22791,
2917,
364,
30,
2333,
2207,
19381,
18,
20738,
6982,
18,
275... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5177,
1687,
12,
5053,
4672,
6709,
273,
509,
12,
27487,
18,
588,
14921,
17808,
12,
5053,
25146,
22,
5717,
468,
25810,
30,
22791,
2917,
364,
30,
2333,
2207,
19381,
18,
20738,
6982,
18,
275... |
raise ValueError, "The input idea must be nonzero" | raise ValueError, "The input ideal must be nonzero" | def ramification_index(self): r""" Return the ramification index of this ideal, assuming it is prime and nonzero. Otherwise, raise a ValueError. | 8a34d743e6f2a73e726c0d73b5ddc708adaecc78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8a34d743e6f2a73e726c0d73b5ddc708adaecc78/number_field_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24975,
1480,
67,
1615,
12,
2890,
4672,
436,
8395,
2000,
326,
24975,
1480,
770,
434,
333,
23349,
16,
15144,
518,
353,
17014,
471,
16966,
18,
225,
5272,
16,
1002,
279,
2068,
18,
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,
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,
24975,
1480,
67,
1615,
12,
2890,
4672,
436,
8395,
2000,
326,
24975,
1480,
770,
434,
333,
23349,
16,
15144,
518,
353,
17014,
471,
16966,
18,
225,
5272,
16,
1002,
279,
2068,
18,
2,
-100,
... |
print "DND!!!!" | def is_dnd(self): """Checks if contact is DoNotDisturb The contact is DND if its resource with the highest priority is DND """ max_prio = self.resources[0]['priority'] max_prio_show = self.resources[0]['show'] for res in self.resources: # TODO: check RFC for behaviour when 2 resources have identical priority if res[... | a1cc2264545cca0c4816c4c22adeab84d31909fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/a1cc2264545cca0c4816c4c22adeab84d31909fd/xmppbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
72,
4880,
12,
2890,
4672,
3536,
4081,
309,
5388,
353,
2256,
1248,
5133,
15850,
225,
1021,
5388,
353,
463,
2908,
309,
2097,
1058,
598,
326,
9742,
4394,
353,
463,
2908,
3536,
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,
353,
67,
72,
4880,
12,
2890,
4672,
3536,
4081,
309,
5388,
353,
2256,
1248,
5133,
15850,
225,
1021,
5388,
353,
463,
2908,
309,
2097,
1058,
598,
326,
9742,
4394,
353,
463,
2908,
3536,
225,... | |
self.elc = ELConnection(self.user_txt.get_text(), self.passwd_txt.get_text(), host='game.eternal-lands.com', port=2001) self.elc.connect() if not self.elc.is_connected(): self.show_error('Login failed!') | if self.__login_check(self.user_txt.get_text(), self.passwd_txt.get_text()): self.LOG_IN_OK = True self.window.hide() self.destroy(None) | def login(self, widget, data=None): """Check the username & pass textboxes. If not empty, create a new ELConnection""" if len(self.user_txt.get_text()) >= 3 and len(self.passwd_txt.get_text()) > 0: self.elc = ELConnection(self.user_txt.get_text(), self.passwd_txt.get_text(), host='game.eternal-lands.com', port=2001) se... | e9336a953df9a043de95a448a1f396dd28003dde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5162/e9336a953df9a043de95a448a1f396dd28003dde/login.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
3536,
1564,
326,
2718,
473,
1342,
977,
15918,
18,
971,
486,
1008,
16,
752,
279,
394,
14801,
1952,
8395,
309,
562,
12,
2890,
18,
1355,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3925,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
3536,
1564,
326,
2718,
473,
1342,
977,
15918,
18,
971,
486,
1008,
16,
752,
279,
394,
14801,
1952,
8395,
309,
562,
12,
2890,
18,
1355,... |
return self.init_module.application | return self.init_module.application, None | def find_application(self, environ): if (self.init_module and getattr(self.init_module, 'application', None) and not environ.get('paste.urlparser.init_application') == environ['SCRIPT_NAME']): environ['paste.urlparser.init_application'] = environ['SCRIPT_NAME'] return self.init_module.application name, rest_of_path = w... | 3bd7a262a1951091200b06a0628a0676a711beaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/3bd7a262a1951091200b06a0628a0676a711beaf/urlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3685,
12,
2890,
16,
5473,
4672,
309,
261,
2890,
18,
2738,
67,
2978,
471,
3869,
12,
2890,
18,
2738,
67,
2978,
16,
296,
3685,
2187,
599,
13,
471,
486,
5473,
18,
588,
2668,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3685,
12,
2890,
16,
5473,
4672,
309,
261,
2890,
18,
2738,
67,
2978,
471,
3869,
12,
2890,
18,
2738,
67,
2978,
16,
296,
3685,
2187,
599,
13,
471,
486,
5473,
18,
588,
2668,
29... |
self.min = math.log(self.min) self.max = math.log(self.max) self.mid = (self.min + self.max) / 2.0 self.scale = math.pi / float(self.max - self.min) | self.mid = (math.log(self.min) + math.log(self.max)) / 2.0 self.scale = math.pi / float(math.log(self.max) - math.log(self.min)) | def __init__(self, min, max, n): Bins.__init__(self, min, max, n) self.min = math.log(self.min) self.max = math.log(self.max) self.mid = (self.min + self.max) / 2.0 self.scale = math.pi / float(self.max - self.min) self.delta = 1.0 / n | cc78d51aa09f39eb5ebfdb8665062f12c737b0fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/cc78d51aa09f39eb5ebfdb8665062f12c737b0fe/rate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1131,
16,
943,
16,
290,
4672,
605,
2679,
16186,
2738,
972,
12,
2890,
16,
1131,
16,
943,
16,
290,
13,
365,
18,
13138,
273,
261,
15949,
18,
1330,
12,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1131,
16,
943,
16,
290,
4672,
605,
2679,
16186,
2738,
972,
12,
2890,
16,
1131,
16,
943,
16,
290,
13,
365,
18,
13138,
273,
261,
15949,
18,
1330,
12,
289... |
out.append(ch) | out.append(val) l = ['', s] tokenize.tokenize(l.pop, eater) | def indentify(s): out = [] stack = [] for ch in s: if ch in ['[', '(', '{']: stack.append(ch) elif ch in [']', ')', '}']: stack.pop() if ch == '\t': out.append(' '*len(stack)) else: out.append(ch) return string.join(out, '') | 8fe5bd8521c56292cbda81a5e16ab51d100d5840 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8fe5bd8521c56292cbda81a5e16ab51d100d5840/aot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3504,
1164,
12,
87,
4672,
596,
273,
5378,
2110,
273,
5378,
364,
462,
316,
272,
30,
309,
462,
316,
10228,
63,
2187,
7747,
2187,
2292,
3546,
30,
2110,
18,
6923,
12,
343,
13,
1327,
462,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3504,
1164,
12,
87,
4672,
596,
273,
5378,
2110,
273,
5378,
364,
462,
316,
272,
30,
309,
462,
316,
10228,
63,
2187,
7747,
2187,
2292,
3546,
30,
2110,
18,
6923,
12,
343,
13,
1327,
462,
... |
self["ButtonRedtext"].setText(_("Close")) | self["key_red"].setText(_("Close")) | def closeInfo(self): self["shortcuts"].setEnabled(True) self["infoshortcuts"].setEnabled(False) self["InfoText"].hide() self["InfoTextBorder"].hide() self["ButtonRedtext"].setText(_("Close")) | 18dcac668d46858377cc8c1ac55fc72fa62ecc0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/18dcac668d46858377cc8c1ac55fc72fa62ecc0e/NetworkSetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
966,
12,
2890,
4672,
365,
9614,
24744,
87,
6,
8009,
542,
1526,
12,
5510,
13,
365,
9614,
18227,
15571,
5150,
87,
6,
8009,
542,
1526,
12,
8381,
13,
365,
9614,
966,
1528,
6,
8009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1746,
966,
12,
2890,
4672,
365,
9614,
24744,
87,
6,
8009,
542,
1526,
12,
5510,
13,
365,
9614,
18227,
15571,
5150,
87,
6,
8009,
542,
1526,
12,
8381,
13,
365,
9614,
966,
1528,
6,
8009,
... |
if self.cp.has_option("hooks", "get_hostname"): | if self.cp.has_option("hooks", "get_hostname_path"): | def setup(self, config_file): """ Setup config object according to config_file content. """ | 8667a21147a53f85f3605fc77a2bf14ef85e1e9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/8667a21147a53f85f3605fc77a2bf14ef85e1e9b/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
16,
642,
67,
768,
4672,
3536,
10939,
642,
733,
4888,
358,
642,
67,
768,
913,
18,
3536,
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,
3875,
12,
2890,
16,
642,
67,
768,
4672,
3536,
10939,
642,
733,
4888,
358,
642,
67,
768,
913,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ignore_list = ['skey', 'rkey'] | ignore_list = ['skey', 'rkey', 'prj_changed'] | def getRequestParams(self, REQUEST=None): """ Returns a REQUEST.QUERY_STRING (using REQUEST.form, REQUEST.form=REQUEST.QUERY_STRING as a dictionary) """ ignore_list = ['skey', 'rkey'] res='' if REQUEST: for key in self.REQUEST.form.keys(): if key not in ignore_list: p_value = self.REQUEST.form[key] if type(p_value) == ... | a5d7f4f667d1677c99b4aa16e652e4ff5634670a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/a5d7f4f667d1677c99b4aa16e652e4ff5634670a/SMAPSite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4328,
1370,
12,
2890,
16,
12492,
33,
7036,
4672,
3536,
2860,
279,
12492,
18,
10753,
67,
5804,
261,
9940,
12492,
18,
687,
16,
12492,
18,
687,
33,
5519,
18,
10753,
67,
5804,
487,
279,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4328,
1370,
12,
2890,
16,
12492,
33,
7036,
4672,
3536,
2860,
279,
12492,
18,
10753,
67,
5804,
261,
9940,
12492,
18,
687,
16,
12492,
18,
687,
33,
5519,
18,
10753,
67,
5804,
487,
279,
38... |
entry = (reponame, repoinfo, None, err) | class InvalidRepo(tuple): message = lambda self: self[0] date = lambda self: self[1] entry = (reponame, repoinfo, None, InvalidRepo((exception_to_unicode(err), 0))) | def _render_repository_index(self, context, all_repositories, order, desc): context.perm.require('BROWSER_VIEW') | ed78c13b60626a62d98e389fd13353c6285b72d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/ed78c13b60626a62d98e389fd13353c6285b72d0/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
9071,
67,
1615,
12,
2890,
16,
819,
16,
777,
67,
26626,
16,
1353,
16,
3044,
4672,
819,
18,
12160,
18,
6528,
2668,
38,
24846,
67,
12145,
6134,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
9071,
67,
1615,
12,
2890,
16,
819,
16,
777,
67,
26626,
16,
1353,
16,
3044,
4672,
819,
18,
12160,
18,
6528,
2668,
38,
24846,
67,
12145,
6134,
2,
-100,
-100,
-100,
-100,
... |
result = [] | pass | def extPaths(): """Return a list of paths to search for extensions and plugins.""" PLATFORM = platform.system().lower() if PLATFORM == 'windows': # load paths from registry import _winreg import win32con # Find the P6 path KEY_PATH = [win32con.HKEY_LOCAL_MACHINE, 'SOFTWARE', 'P6', ] p6key = KEY_PATH[0] for k in KEY_... | 07423b23d56ef5c719744b229f8f0d76d581bdd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2607/07423b23d56ef5c719744b229f8f0d76d581bdd7/extension.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1110,
4466,
13332,
3536,
990,
279,
666,
434,
2953,
358,
1623,
364,
4418,
471,
4799,
12123,
453,
12190,
4983,
273,
4072,
18,
4299,
7675,
8167,
1435,
225,
309,
453,
12190,
4983,
422,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1110,
4466,
13332,
3536,
990,
279,
666,
434,
2953,
358,
1623,
364,
4418,
471,
4799,
12123,
453,
12190,
4983,
273,
4072,
18,
4299,
7675,
8167,
1435,
225,
309,
453,
12190,
4983,
422,
296,
... |
assert_almost_equal(self.res1.model.df_model,self.res2.df_model, DECIMAL) assert_almost_equal(self.res1.model.df_resid,self.res2.df_resid, DECIMAL) | assert_almost_equal(self.res1.model.df_model,self.res2.df_model, DECIMAL) assert_almost_equal(self.res1.model.df_resid,self.res2.df_resid, DECIMAL) | def test_degrees(self): if not 'rmodelwrap' in self.res2.__module__: assert_almost_equal(self.res1.model.df_model,self.res2.df_model, DECIMAL) assert_almost_equal(self.res1.model.df_resid,self.res2.df_resid, DECIMAL) | 74679194056e9f17f68527ec6d607fc36e1318b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/74679194056e9f17f68527ec6d607fc36e1318b1/test_glm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
26943,
12,
2890,
4672,
309,
486,
296,
86,
2284,
4113,
11,
316,
365,
18,
455,
22,
16186,
2978,
972,
30,
1815,
67,
287,
10329,
67,
9729,
12,
2890,
18,
455,
21,
18,
2284,
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,
1842,
67,
26943,
12,
2890,
4672,
309,
486,
296,
86,
2284,
4113,
11,
316,
365,
18,
455,
22,
16186,
2978,
972,
30,
1815,
67,
287,
10329,
67,
9729,
12,
2890,
18,
455,
21,
18,
2284,
18,
... |
icursor = icursor-1 | def __normalize(self, event=None): ew = event.widget contents = ew.get() icursor = ew.index(INSERT) if contents == '': contents = '0' # figure out what the contents value is in the current base try: if self.__hexp.get(): v = string.atoi(contents, 16) else: v = string.atoi(contents) except ValueError: v = None # if valu... | 32d9b9b448f52d2bbfdadc7480c8b92d50692597 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/32d9b9b448f52d2bbfdadc7480c8b92d50692597/TypeinViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12237,
12,
2890,
16,
871,
33,
7036,
4672,
22722,
273,
871,
18,
6587,
2939,
273,
22722,
18,
588,
1435,
277,
9216,
273,
22722,
18,
1615,
12,
11356,
13,
309,
2939,
422,
875,
30,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12237,
12,
2890,
16,
871,
33,
7036,
4672,
22722,
273,
871,
18,
6587,
2939,
273,
22722,
18,
588,
1435,
277,
9216,
273,
22722,
18,
1615,
12,
11356,
13,
309,
2939,
422,
875,
30,
293... | |
if os.path.split(i[0])[1] == 'CVS': continue if os.path.split(i[0])[1] == '.svn': continue | dirs = i[0].split('/') if 'CVS' in dirs: continue if '.svn' in dirs: continue | def list_directory(path): tree = os.walk(path) for i in tree: if os.path.split(i[0])[1] == 'CVS': continue if os.path.split(i[0])[1] == '.svn': continue for file in i[2]: if file.startswith('.#'): continue if file == '.DS_Store': continue print os.path.join(i[0], file) + ' \\' | 4a1191d34e4c69e41d1b0ad6e58bb439d21562bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6321/4a1191d34e4c69e41d1b0ad6e58bb439d21562bb/list_files.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
5149,
12,
803,
4672,
2151,
273,
1140,
18,
11348,
12,
803,
13,
364,
277,
316,
2151,
30,
7717,
273,
277,
63,
20,
8009,
4939,
2668,
2473,
13,
309,
296,
39,
14640,
11,
316,
7717... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
666,
67,
5149,
12,
803,
4672,
2151,
273,
1140,
18,
11348,
12,
803,
13,
364,
277,
316,
2151,
30,
7717,
273,
277,
63,
20,
8009,
4939,
2668,
2473,
13,
309,
296,
39,
14640,
11,
316,
7717... |
partreg = '(?P<' + var + '>' + default + ')' if self.defaults.has_key(var) and not moregaps: reg = '(/' + partreg + ')?' | partreg = '(?P<' + var + '>[^/]+)' if self.reqs.has_key(var): noreqs = False if noreqs: if self.reqs.has_key(var) and self.defaults.has_key(var): reg = '(/' + partreg + rest + ')?' elif self.reqs.has_key(var): allblank = False reg = '(/' + partreg + ')' + rest elif self.defaults.has_key(var): reg = '(/' + part... | def buildnextreg(self, path, clist): default = '[^/]+' part = path[0] reg = '' (rest, moregaps) = ('', False) if len(path[1:]) > 0: (rest, moregaps) = self.buildnextreg(path[1:], clist) gaps = False if part.startswith(':'): var = part[1:] partreg = '' if self.reqs.has_key(var) and self.defaults.has_key(var) and not mor... | d81bae157cb6d2bb0c6c006f5ed0836b19d297a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12081/d81bae157cb6d2bb0c6c006f5ed0836b19d297a3/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4285,
1574,
12,
2890,
16,
589,
16,
927,
376,
4672,
805,
273,
5271,
66,
19,
30658,
1087,
273,
589,
63,
20,
65,
960,
273,
875,
261,
8792,
16,
1898,
75,
6679,
13,
273,
7707,
2187,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4285,
1574,
12,
2890,
16,
589,
16,
927,
376,
4672,
805,
273,
5271,
66,
19,
30658,
1087,
273,
589,
63,
20,
65,
960,
273,
875,
261,
8792,
16,
1898,
75,
6679,
13,
273,
7707,
2187,... |
if (os.path.exists(working)): | if (os.path.exists(working)) and not options.local: | def main(options, args): revision = options.revert or options.merge # Initialize some variables used below. They can be overwritten by # the drover.properties file. BASE_URL = "svn://svn.chromium.org/chrome" TRUNK_URL = BASE_URL + "/trunk/src" BRANCH_URL = BASE_URL + "/branches/$branch/src" SKIP_CHECK_WORKING = True P... | d42a8acd1d66ae2ca28a46c1c9f84911bda1b3ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/d42a8acd1d66ae2ca28a46c1c9f84911bda1b3ad/drover.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
6350,
273,
702,
18,
266,
1097,
578,
702,
18,
2702,
225,
468,
9190,
2690,
3152,
1399,
5712,
18,
16448,
848,
506,
15345,
635,
468,
326,
31473,
502,
18,
473... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
6350,
273,
702,
18,
266,
1097,
578,
702,
18,
2702,
225,
468,
9190,
2690,
3152,
1399,
5712,
18,
16448,
848,
506,
15345,
635,
468,
326,
31473,
502,
18,
473... |
self.update() gdata.mainGameDlg.update() | if not all: self.win.setStatus(_('Command has been executed.')) if item.text == gdata.fleetActions[FLACTION_WAIT]: fleet = client.get(self.fleetID,forceUpdate=1) self.update() gdata.mainGameDlg.update() | def onDeleteCommand(self, widget, action, data): sel = self.win.vCommands.selection if not sel: self.win.setStatus(_('Select command to delete.')) return item = sel[0] try: self.win.setStatus(_('Executing DELETE COMMAND command...')) fleet = client.get(self.fleetID, noUpdate = 1) fleet.actions, fleet.actionIndex = clie... | a1ab413385848f02ac7e74bc03b3a1510af6989e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10927/a1ab413385848f02ac7e74bc03b3a1510af6989e/FleetDlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20468,
2189,
12,
2890,
16,
3604,
16,
1301,
16,
501,
4672,
357,
273,
365,
18,
8082,
18,
90,
9127,
18,
10705,
309,
486,
357,
30,
365,
18,
8082,
18,
542,
1482,
24899,
2668,
3391,
1296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20468,
2189,
12,
2890,
16,
3604,
16,
1301,
16,
501,
4672,
357,
273,
365,
18,
8082,
18,
90,
9127,
18,
10705,
309,
486,
357,
30,
365,
18,
8082,
18,
542,
1482,
24899,
2668,
3391,
1296,
... |
w += '="%s%%"' % width | w += '="%s"' % width | def dump_text(self, elem, stylizer, page, tag_stack=[]): if not isinstance(elem.tag, basestring) \ or namespace(elem.tag) != XHTML_NS: return [] | 37cde21c6d96b9b385f85d543227b0b3806db879 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/37cde21c6d96b9b385f85d543227b0b3806db879/pmlml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
955,
12,
2890,
16,
3659,
16,
16253,
80,
1824,
16,
1363,
16,
1047,
67,
3772,
33,
8526,
4672,
309,
486,
1549,
12,
10037,
18,
2692,
16,
10699,
13,
521,
578,
1981,
12,
10037,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
955,
12,
2890,
16,
3659,
16,
16253,
80,
1824,
16,
1363,
16,
1047,
67,
3772,
33,
8526,
4672,
309,
486,
1549,
12,
10037,
18,
2692,
16,
10699,
13,
521,
578,
1981,
12,
10037,
1... |
if __name__ == "__main__": web.run(urls, globals()) | web.webapi.internalerror = web.debugerror web.wsgi.runwsgi(web.webapi.wsgifunc(web.webpyfunc(urls, globals()))) | def register_callback(sdRef, flags, errorCode, name, regtype, domain): if errorCode == pybonjour.kDNSServiceErr_NoError: print 'Registered service:' print ' name =', name print ' regtype =', regtype print ' domain =', domain | 9f8d9088243e0738f7641a27e2c407059d11506e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8691/9f8d9088243e0738f7641a27e2c407059d11506e/spydaap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
3394,
12,
6427,
1957,
16,
2943,
16,
12079,
16,
508,
16,
960,
723,
16,
2461,
4672,
309,
12079,
422,
2395,
18688,
78,
477,
18,
79,
11602,
1179,
2524,
67,
2279,
668,
30,
1172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
67,
3394,
12,
6427,
1957,
16,
2943,
16,
12079,
16,
508,
16,
960,
723,
16,
2461,
4672,
309,
12079,
422,
2395,
18688,
78,
477,
18,
79,
11602,
1179,
2524,
67,
2279,
668,
30,
1172,
... |
seg.type = type | seg.type = segtype | def SetSegmentType(segea, type): """ Set segment type @param segea: any address within segment @param type: new segment type: @return: !=0 - ok """ seg = idaapi.getseg(segea) if not seg: return False seg.type = type return seg.update() | 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,
1000,
4131,
559,
12,
307,
908,
69,
16,
618,
4672,
3536,
1000,
3267,
618,
225,
632,
891,
695,
908,
69,
30,
1281,
1758,
3470,
3267,
632,
891,
618,
30,
394,
3267,
618,
30,
225,
632,
246... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1000,
4131,
559,
12,
307,
908,
69,
16,
618,
4672,
3536,
1000,
3267,
618,
225,
632,
891,
695,
908,
69,
30,
1281,
1758,
3470,
3267,
632,
891,
618,
30,
394,
3267,
618,
30,
225,
632,
246... |
- ``cliquer`` - This wraps the C program Cliquer, [1]. | - ``cliquer`` - This wraps the C program Cliquer [NisOst2003]_. | def cliques_vertex_clique_number(self, algorithm="cliquer", vertices=None, with_labels=False, cliques=None): r""" Returns a list of sizes of the largest maximal cliques containing each vertex. (Returns a single value if only one input vertex). NOTES: - Currently only implemented for undirected graphs. Use to_undirect... | 9e5b138b9189031c2c258c6596d3a3b7fdafb7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9e5b138b9189031c2c258c6596d3a3b7fdafb7d0/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
15281,
67,
4857,
1857,
67,
2696,
12,
2890,
16,
4886,
1546,
4857,
25734,
3113,
6928,
33,
7036,
16,
598,
67,
5336,
33,
8381,
16,
4942,
29896,
33,
7036,
4672,
436,
8395,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4942,
29896,
67,
15281,
67,
4857,
1857,
67,
2696,
12,
2890,
16,
4886,
1546,
4857,
25734,
3113,
6928,
33,
7036,
16,
598,
67,
5336,
33,
8381,
16,
4942,
29896,
33,
7036,
4672,
436,
8395,
... |
to_add = self._to_add fs = self.fs if isinstance(handler, Folder): if fs.exists(key): git_path = fs.get_absolute_path('.git') to_del = [ fs.get_relative_path(path) for path in fs.traverse(key) if not fs.is_folder(path) and not path.startswith(git_path) ] | if not isinstance(handler, Folder): self._discard_handler(key) if key in self.added: self.added.remove(key) | def del_handler(self, key): key = self.normalize_key(key) handler = self.get_handler(key) to_add = self._to_add fs = self.fs | 3faba4a24cd4eaf0a1e3725c3cf35e7e68fc661b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/3faba4a24cd4eaf0a1e3725c3cf35e7e68fc661b/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
4176,
12,
2890,
16,
498,
4672,
498,
273,
365,
18,
12237,
67,
856,
12,
856,
13,
1838,
273,
365,
18,
588,
67,
4176,
12,
856,
13,
358,
67,
1289,
273,
365,
6315,
869,
67,
128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1464,
67,
4176,
12,
2890,
16,
498,
4672,
498,
273,
365,
18,
12237,
67,
856,
12,
856,
13,
1838,
273,
365,
18,
588,
67,
4176,
12,
856,
13,
358,
67,
1289,
273,
365,
6315,
869,
67,
128... |
amount = fields.Numeric('Amount', digits=(16, 2)) | currency_digits = fields.Function('get_currency_digits', type='integer', string='Currency Digits', on_change_with=['move_line']) amount = fields.Numeric('Amount', digits="(16, currency_digits)", depends=['currency_digits']) | def update_tax(self, cursor, user, tax, template2tax_code, template2account, context=None, template2tax=None): ''' Update recursively taxes based on template. | 44fa088c2f8531f936fefd035247a59ebef9c472 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9290/44fa088c2f8531f936fefd035247a59ebef9c472/tax.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
8066,
12,
2890,
16,
3347,
16,
729,
16,
5320,
16,
1542,
22,
8066,
67,
710,
16,
1542,
22,
4631,
16,
819,
33,
7036,
16,
1542,
22,
8066,
33,
7036,
4672,
9163,
2315,
8536,
5320,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8066,
12,
2890,
16,
3347,
16,
729,
16,
5320,
16,
1542,
22,
8066,
67,
710,
16,
1542,
22,
4631,
16,
819,
33,
7036,
16,
1542,
22,
8066,
33,
7036,
4672,
9163,
2315,
8536,
5320,... |
host_info[s[0].strip()] = s[1].strip() | if s[0] == 'MemTotal': mem_total = int(int(s[1].split()[0].strip()) / 1024) host_info[s[0].strip()] = mem_total elif s[0] == 'MemFree': mem_free = int(int(s[1].split()[0].strip()) / 1024) host_info[s[0].strip()] = mem_free else: host_info[s[0].strip()] = s[1].strip() | def get_host_info(self, platform): host_info = {} host_info['os'] = platform if platform in ('linux', 'linux2', 'cygwin'): cpuinfo = open('/proc/cpuinfo','r').readlines() cpus = 0 for line in cpuinfo: if 'processor' in line: cpus += 1 s = line.split(':') if s != ['\n']: host_info[s[0].strip()] = s[1].strip() host_info[... | 2a3b734e6337d05cdeda26f0d3fe3bd43db716a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/2a3b734e6337d05cdeda26f0d3fe3bd43db716a5/hostinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2564,
67,
1376,
12,
2890,
16,
4072,
4672,
1479,
67,
1376,
273,
2618,
1479,
67,
1376,
3292,
538,
3546,
273,
4072,
309,
4072,
316,
7707,
20132,
2187,
296,
20132,
22,
2187,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2564,
67,
1376,
12,
2890,
16,
4072,
4672,
1479,
67,
1376,
273,
2618,
1479,
67,
1376,
3292,
538,
3546,
273,
4072,
309,
4072,
316,
7707,
20132,
2187,
296,
20132,
22,
2187,
296,
... |
weighted or not. See self.weighted() | weighted or not. See ``self.weighted()`` | def canonical_label(self, partition=None, certify=False, verbosity=0, edge_labels=False): """ Returns the canonical label with respect to the partition. If no partition is given, uses the unit partition. INPUT: - ``partition`` - if given, the canonical label with respect to this partition will be computed. The defa... | a1371df28f1a50021d7507de4e96bdcb7caafce8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a1371df28f1a50021d7507de4e96bdcb7caafce8/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
1925,
12,
2890,
16,
3590,
33,
7036,
16,
3320,
1164,
33,
8381,
16,
11561,
33,
20,
16,
3591,
67,
5336,
33,
8381,
4672,
3536,
2860,
326,
7378,
1433,
598,
8762,
358,
326,
3590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7378,
67,
1925,
12,
2890,
16,
3590,
33,
7036,
16,
3320,
1164,
33,
8381,
16,
11561,
33,
20,
16,
3591,
67,
5336,
33,
8381,
4672,
3536,
2860,
326,
7378,
1433,
598,
8762,
358,
326,
3590,
... |
self.tk.call(self._w, 'delete', 'entry', entry) | self.tk.call(self._w, 'delete', 'entry', entry) | def delete_entry(self, entry): | 86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
4099,
12,
2890,
16,
1241,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
4099,
12,
2890,
16,
1241,
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,... |
if isinstance(l,list): | if isinstance(l, list): | def phi(self, l): r""" Projects state arrays to their algebraic representation. | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7706,
12,
2890,
16,
328,
4672,
436,
8395,
30491,
919,
5352,
358,
3675,
524,
29087,
335,
4335,
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,
... | [
1,
1,
1,
1,
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,
7706,
12,
2890,
16,
328,
4672,
436,
8395,
30491,
919,
5352,
358,
3675,
524,
29087,
335,
4335,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
new_res_id = create_record(msg) | new_res_id, attachment_ids = create_record(msg) | def create_record(msg): if hasattr(model_pool, 'message_new'): res_id = model_pool.message_new(cr, uid, msg, context) else: data = { 'name': msg.get('subject'), 'email_from': msg.get('from'), 'email_cc': msg.get('cc'), 'user_id': False, 'description': msg.get('body'), 'state' : 'draft', } data.update(self.get_partner(c... | 25f3c114cde830404ca9430e1cd75cadc8bfd6fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/25f3c114cde830404ca9430e1cd75cadc8bfd6fd/mail_gateway.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3366,
12,
3576,
4672,
309,
3859,
12,
2284,
67,
6011,
16,
296,
2150,
67,
2704,
11,
4672,
400,
67,
350,
273,
938,
67,
6011,
18,
2150,
67,
2704,
12,
3353,
16,
4555,
16,
1234,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3366,
12,
3576,
4672,
309,
3859,
12,
2284,
67,
6011,
16,
296,
2150,
67,
2704,
11,
4672,
400,
67,
350,
273,
938,
67,
6011,
18,
2150,
67,
2704,
12,
3353,
16,
4555,
16,
1234,
... |
return out, err | return out | def _read(self): if self.closed: raise DataError('Cannot read from a closed process') err = self.stderr.read() out = self.stdout.read() self.close() return out, err | 2eeca91c189c12c090a519de7775b97e9e4d0b40 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/2eeca91c189c12c090a519de7775b97e9e4d0b40/OperatingSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
12,
2890,
4672,
309,
365,
18,
12204,
30,
1002,
1910,
668,
2668,
4515,
855,
628,
279,
4375,
1207,
6134,
393,
273,
365,
18,
11241,
18,
896,
1435,
596,
273,
365,
18,
10283,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
12,
2890,
4672,
309,
365,
18,
12204,
30,
1002,
1910,
668,
2668,
4515,
855,
628,
279,
4375,
1207,
6134,
393,
273,
365,
18,
11241,
18,
896,
1435,
596,
273,
365,
18,
10283,
18,
... |
if len(choice) == 0 or choice[0] in ['y', 'n']: | if len(choice) == 0 or choice in ['y', 'n', 'yes', 'no']: | def userconfirm(self): """gets a yes or no from the user, defaults to No""" | b8284b868d16b478a80222f79b226d60a4fe7433 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/b8284b868d16b478a80222f79b226d60a4fe7433/output.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
10927,
12,
2890,
4672,
3536,
14665,
279,
12465,
578,
1158,
628,
326,
729,
16,
3467,
358,
2631,
8395,
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,
729,
10927,
12,
2890,
4672,
3536,
14665,
279,
12465,
578,
1158,
628,
326,
729,
16,
3467,
358,
2631,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if newnick.startswith(cfg.dc_to_irc_prefix): self.sendLine( ":%s KILL %s :%s (nick reserved for Dtella)" % (cfg.my_host, newnick, cfg.my_host)) | if self.syncd and matches_dc_to_irc_prefix(newnick): self.pushKill(newnick) | def handleCmd_NICK(self, prefix, args): | 02004ebca46b9ef4a32bdaf0d17150117eae70d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11503/02004ebca46b9ef4a32bdaf0d17150117eae70d8/bridge_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
5931,
67,
50,
16656,
12,
2890,
16,
1633,
16,
833,
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... | [
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,
1640,
5931,
67,
50,
16656,
12,
2890,
16,
1633,
16,
833,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
import sybase _sybase = sybase del sybase | import sybase as _sybase | def DBMConnection(*args, **kw): _warn('DBMConnection is deprecated; use connectionForURI("dbm://...") or "from sqlobject.dbm import builder; DBMConnection = builder()"') _dbm.builder()(*args, **kw) | 014eeb8d3d7c0716aa5bcee8199f0e6399edfd82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/014eeb8d3d7c0716aa5bcee8199f0e6399edfd82/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2383,
49,
1952,
30857,
1968,
16,
2826,
9987,
4672,
389,
8935,
2668,
2290,
49,
1952,
353,
6849,
31,
999,
1459,
1290,
3098,
2932,
1966,
81,
2207,
7070,
13,
578,
315,
2080,
4744,
383,
489,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2383,
49,
1952,
30857,
1968,
16,
2826,
9987,
4672,
389,
8935,
2668,
2290,
49,
1952,
353,
6849,
31,
999,
1459,
1290,
3098,
2932,
1966,
81,
2207,
7070,
13,
578,
315,
2080,
4744,
383,
489,
... |
d = dict((seed, web.storage({"editions": 0, "works": 0, "ebooks": 0, "last_update": ""})) for seed in rawseeds) | zeros = {"editions": 0, "works": 0, "ebooks": 0, "last_update": ""} d = dict((seed, web.storage(zeros)) for seed in rawseeds) | def _get_seed_summary(self): rawseeds = self._get_rawseeds() db = self._get_seeds_db() d = dict((seed, web.storage({"editions": 0, "works": 0, "ebooks": 0, "last_update": ""})) for seed in rawseeds) for row in self._couchdb_view(db, "_all_docs", keys=rawseeds, include_docs=True): if 'doc' in row: d[row.key] = web.st... | cd76d4cc400d421f4f9f943bb0b89ff70afdd022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/cd76d4cc400d421f4f9f943bb0b89ff70afdd022/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
12407,
67,
7687,
12,
2890,
4672,
1831,
307,
9765,
273,
365,
6315,
588,
67,
1899,
307,
9765,
1435,
225,
1319,
273,
365,
6315,
588,
67,
307,
9765,
67,
1966,
1435,
225,
4922... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12407,
67,
7687,
12,
2890,
4672,
1831,
307,
9765,
273,
365,
6315,
588,
67,
1899,
307,
9765,
1435,
225,
1319,
273,
365,
6315,
588,
67,
307,
9765,
67,
1966,
1435,
225,
4922... |
dotprogs = ['dot', 'neato', 'twopi', 'circo', 'fdp'] | def getInterpreterArgs(self): self.dot_output = vfs.reference_with_new_extension(self.buffer.url, self.classprefs.graphic_format) args = "%s -v -T%s -K%s -o%s" % (self.classprefs.interpreter_args, self.classprefs.graphic_format, self.classprefs.layout, str(self.dot_output.path)) return args | def action(self, index=-1, multiplier=1): self.frame.open("about:sample.dot") | 21834e12e052ab98f36c3cfa4905e6f6dd89dab8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11522/21834e12e052ab98f36c3cfa4905e6f6dd89dab8/graphviz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
770,
29711,
21,
16,
15027,
33,
21,
4672,
365,
18,
3789,
18,
3190,
2932,
21071,
30,
6358,
18,
9811,
7923,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
770,
29711,
21,
16,
15027,
33,
21,
4672,
365,
18,
3789,
18,
3190,
2932,
21071,
30,
6358,
18,
9811,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"external", "repo_browser", self.get_widget("repo_browser").get_text() ) self.settings.set( | def save(self): self.settings.set( "general", "language", self.get_widget("language").get_active_text() ) self.settings.set( "general", "enable_attributes", self.get_widget("enable_attributes").get_active() ) self.settings.set( "general", "enable_emblems", self.get_widget("enable_emblems").get_active() ) self.settings.... | 91927920523c3e7be7aa144e718ee3ae87894d53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/91927920523c3e7be7aa144e718ee3ae87894d53/settings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
365,
18,
4272,
18,
542,
12,
315,
12259,
3113,
315,
4923,
3113,
365,
18,
588,
67,
6587,
2932,
4923,
20387,
588,
67,
3535,
67,
955,
1435,
262,
365,
18,
4272,
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,
1923,
12,
2890,
4672,
365,
18,
4272,
18,
542,
12,
315,
12259,
3113,
315,
4923,
3113,
365,
18,
588,
67,
6587,
2932,
4923,
20387,
588,
67,
3535,
67,
955,
1435,
262,
365,
18,
4272,
18,
... | |
pdfURL generates links to PDFs. It should only be called on subclasses which have cal_type set, so we will temporarily do that. | pdfURL generates links to PDFs. It only works when calendar generation is enabled: >>> from schoolbell.app.browser import pdfcal >>> real_pdfcal_disabled = pdfcal.disabled >>> pdfcal.disabled = True >>> print view.pdfURL() None >>> pdfcal.disabled = False It should only be called on subclasses which have cal_type ... | def doctest_CalendarViewBase(): """Tests for CalendarViewBase. >>> setUpSessions() >>> from schoolbell.app.browser.cal import CalendarViewBase >>> from schoolbell.app.cal import Calendar >>> calendar = Calendar() >>> directlyProvides(calendar, IContainmentRoot) Set up the checkers for canEdit/canView on events: >>>... | 887d3d58a340afa181cec110a7ccce7799c695d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/887d3d58a340afa181cec110a7ccce7799c695d2/test_cal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31263,
395,
67,
7335,
1767,
2171,
13332,
3536,
14650,
364,
5542,
1767,
2171,
18,
225,
4080,
24292,
13566,
1435,
225,
4080,
628,
18551,
1371,
70,
1165,
18,
2910,
18,
11213,
18,
771,
1930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31263,
395,
67,
7335,
1767,
2171,
13332,
3536,
14650,
364,
5542,
1767,
2171,
18,
225,
4080,
24292,
13566,
1435,
225,
4080,
628,
18551,
1371,
70,
1165,
18,
2910,
18,
11213,
18,
771,
1930,
... |
codewriter.load(last_exc_value_var, lltype_of_exception_value, 'last_exception_value') codewriter.store(lltype_of_exception_type , 'null', 'last_exception_type') codewriter.store(lltype_of_exception_value, 'null', 'last_exception_value') | codewriter.load(last_exc_value_var, 'last_exception_value', []) codewriter.store('last_exception_type' , [], 'null') codewriter.store('last_exception_value', [], 'null') | def fetch_exceptions(self, codewriter, exc_found_labels, lltype_of_exception_type, lltype_of_exception_value): for label, target, last_exc_type_var, last_exc_value_var in exc_found_labels: codewriter.label(label) if last_exc_type_var: codewriter.load(last_exc_type_var, lltype_of_exception_type, 'last_exception_type') i... | 11354dcb5ef05322fcbe1201ca7cb6f7e5284502 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/11354dcb5ef05322fcbe1201ca7cb6f7e5284502/exception.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
11855,
12,
2890,
16,
981,
6299,
16,
3533,
67,
7015,
67,
5336,
16,
6579,
723,
67,
792,
67,
4064,
67,
723,
16,
6579,
723,
67,
792,
67,
4064,
67,
1132,
4672,
364,
1433,
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,
2158,
67,
11855,
12,
2890,
16,
981,
6299,
16,
3533,
67,
7015,
67,
5336,
16,
6579,
723,
67,
792,
67,
4064,
67,
723,
16,
6579,
723,
67,
792,
67,
4064,
67,
1132,
4672,
364,
1433,
16,
... |
pre.append(align_prepost[inline, attrs['align']][0]) post.append(align_prepost[inline, attrs['align']][1]) | pre.append(align_prepost[is_inline, attrs['align']][0]) post.append(align_prepost[is_inline, attrs['align']][1]) | def visit_image(self, node): self.requirements['graphicx'] = self.graphicx_package attrs = node.attributes # Add image URI to dependency list, assuming that it's # referring to a local file. self.settings.record_dependencies.add(attrs['uri']) # alignment defaults: if not 'align' in attrs: # Set default align of image i... | e8dcf1770f4ff007c4e6b16fccea67acc1d4608d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/e8dcf1770f4ff007c4e6b16fccea67acc1d4608d/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
365,
18,
16175,
3292,
4660,
335,
92,
3546,
273,
365,
18,
4660,
335,
92,
67,
5610,
3422,
273,
756,
18,
4350,
468,
1436,
1316,
3699,
358,
4904,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
365,
18,
16175,
3292,
4660,
335,
92,
3546,
273,
365,
18,
4660,
335,
92,
67,
5610,
3422,
273,
756,
18,
4350,
468,
1436,
1316,
3699,
358,
4904,
... |
self.info_buffer.get_iter_at_offset(start, 0) | start = self.info_buffer.get_iter_at_offset(0) | def selection_cb(self, selection, model): start = Gtk.TextIter() end = Gtk.TextIter() iter = Gtk.TreeIter() | c93935621f2fb1ff5e8c424ae884bd684ea68e50 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8659/c93935621f2fb1ff5e8c424ae884bd684ea68e50/gtk-demo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4421,
67,
7358,
12,
2890,
16,
4421,
16,
938,
4672,
787,
273,
22132,
18,
1528,
2360,
1435,
679,
273,
22132,
18,
1528,
2360,
1435,
1400,
273,
22132,
18,
2471,
2360,
1435,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4421,
67,
7358,
12,
2890,
16,
4421,
16,
938,
4672,
787,
273,
22132,
18,
1528,
2360,
1435,
679,
273,
22132,
18,
1528,
2360,
1435,
1400,
273,
22132,
18,
2471,
2360,
1435,
2,
-100,
-100,
... |
app.logbuffer.insert_with_tags_by_name(app.iter, "\rERROR: Cannot open file: ", e.filename, "red_foreground") | app.logbuffer.insert_with_tags_by_name(app.iter, "\rERROR: Cannot open file: "+str(e.filename), "red_foreground") | def run(self): from bencode import bencode, bdecode from sha import sha import os try: f = open(self.filename, "r") except IOError, e: app.logbuffer.insert_with_tags_by_name(app.iter, "\rFATAL ERROR: Cannot open file: ", e.filename , "red_foreground") app.haltplant() sys.exit() file = f.read() f.close() try: bdata = bd... | e9570844ab7e20309ea91462122882f4b4c88cd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2999/e9570844ab7e20309ea91462122882f4b4c88cd6/planter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
628,
324,
3015,
1930,
324,
3015,
16,
324,
3922,
628,
6056,
1930,
6056,
1930,
1140,
775,
30,
284,
273,
1696,
12,
2890,
18,
3459,
16,
315,
86,
7923,
1335,
8340,
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,
1086,
12,
2890,
4672,
628,
324,
3015,
1930,
324,
3015,
16,
324,
3922,
628,
6056,
1930,
6056,
1930,
1140,
775,
30,
284,
273,
1696,
12,
2890,
18,
3459,
16,
315,
86,
7923,
1335,
8340,
16,... |
log.info("REFTEST INFO | runreftest.py | Running tests: start.\n") | automation.log.info("REFTEST INFO | runreftest.py | Running tests: start.\n") | def processLeakLog(): "Process the leak log." # For the time being, don't warn (nor "info") if the log file is not there. (Bug 469518) if os.path.exists(leakLogFile): leaks = open(leakLogFile, "r") # For the time being, simply copy the log. (Bug 469518) log.info(leaks.read().rstrip()) leaks.close() | cc1645858044da9f25f129ea785d44cc779c896b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/cc1645858044da9f25f129ea785d44cc779c896b/runreftest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1682,
581,
1343,
13332,
315,
2227,
326,
20891,
613,
1199,
468,
2457,
326,
813,
3832,
16,
2727,
1404,
1894,
261,
29561,
315,
1376,
7923,
309,
326,
613,
585,
353,
486,
1915,
18,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
1682,
581,
1343,
13332,
315,
2227,
326,
20891,
613,
1199,
468,
2457,
326,
813,
3832,
16,
2727,
1404,
1894,
261,
29561,
315,
1376,
7923,
309,
326,
613,
585,
353,
486,
1915,
18,
261,... |
a = arange(3, dtype='>f') | a = N.arange(3, dtype='>f') | def check_argmax_byteorder(self, level=rlevel): """Ticket #546""" a = arange(3, dtype='>f') assert a[a.argmax()] == a.max() | 907294e4f4a8265418a3bd54912163f66a945c21 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/907294e4f4a8265418a3bd54912163f66a945c21/test_regression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3175,
1896,
67,
7229,
1019,
12,
2890,
16,
1801,
33,
86,
2815,
4672,
3536,
13614,
468,
6564,
26,
8395,
279,
273,
423,
18,
297,
726,
12,
23,
16,
3182,
2218,
34,
74,
6134,
1815... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
67,
3175,
1896,
67,
7229,
1019,
12,
2890,
16,
1801,
33,
86,
2815,
4672,
3536,
13614,
468,
6564,
26,
8395,
279,
273,
423,
18,
297,
726,
12,
23,
16,
3182,
2218,
34,
74,
6134,
1815... |
len_typeobject = p + 2*l + 15*p + l + 4*p + l + 9*p +\ l + 11*p + self.align(4) self.check_sizeof(class_newstyle, h + len_typeobject + 41*p + 10*p + 3*p + 6*p) | self.check_sizeof(class_newstyle, size('P2P15Pl4PP9PP11PI') +\ size(h + '41P 10P 3P 6P')) | def method(): pass | 300a10ceb1febf233333c4843a55c526b4019feb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/300a10ceb1febf233333c4843a55c526b4019feb/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.relay = None | self.relay = relay | def __init__(self, outgoing, relay=None, from_uri=None, to_uri=None, accept_types=['message/cpim'], accept_wrapped_types=['*'], local_uri=None): """Initialize the MSRP connection; connect to the relay if necessary. When done, fire MSRPChatDidInitialize (with 'sdpmedia' attribute, containing the appropriate 'SDPMedia' i... | 0da24be390d17a75c608d005baa7cffdaabc7e76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/0da24be390d17a75c608d005baa7cffdaabc7e76/msrp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
12902,
16,
18874,
33,
7036,
16,
628,
67,
1650,
33,
7036,
16,
358,
67,
1650,
33,
7036,
16,
2791,
67,
2352,
33,
3292,
2150,
19,
4057,
381,
17337,
2791,
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,
1001,
2738,
972,
12,
2890,
16,
12902,
16,
18874,
33,
7036,
16,
628,
67,
1650,
33,
7036,
16,
358,
67,
1650,
33,
7036,
16,
2791,
67,
2352,
33,
3292,
2150,
19,
4057,
381,
17337,
2791,
6... |
for ij, y in entries: | for ij, y in entries.iteritems(): | def dict_to_list(entries, nrows, ncols): v = [0]*(nrows*ncols) for ij, y in entries: i,j = ij v[i*ncols + j] = y return v | f129b0c368a8f4729eb54b5eb20ccdda51a96788 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f129b0c368a8f4729eb54b5eb20ccdda51a96788/matrix_space.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2065,
67,
869,
67,
1098,
12,
8219,
16,
18871,
16,
21330,
4672,
331,
273,
306,
20,
5772,
12,
82,
3870,
14,
82,
6842,
13,
364,
19313,
16,
677,
316,
3222,
18,
2165,
3319,
13332,
277,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2065,
67,
869,
67,
1098,
12,
8219,
16,
18871,
16,
21330,
4672,
331,
273,
306,
20,
5772,
12,
82,
3870,
14,
82,
6842,
13,
364,
19313,
16,
677,
316,
3222,
18,
2165,
3319,
13332,
277,
16... |
static const xmlChar *gen_const_xmlChar_ptr(int no) { | static const xmlChar *gen_const_xmlChar_ptr(int no, int nr ATTRIBUTE_UNUSED) { | def is_known_param_type(name): for type in known_param_types: if type == name: return 1 return 0 | 3d97e669eca6f4849c7b3014f472cacc57817015 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/3d97e669eca6f4849c7b3014f472cacc57817015/gentest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2994,
67,
891,
67,
723,
12,
529,
4672,
364,
618,
316,
4846,
67,
891,
67,
2352,
30,
309,
618,
422,
508,
30,
327,
404,
327,
374,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2994,
67,
891,
67,
723,
12,
529,
4672,
364,
618,
316,
4846,
67,
891,
67,
2352,
30,
309,
618,
422,
508,
30,
327,
404,
327,
374,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
We create a jQuery HTML slider. If you do the following in the notebook | We create a jQuery range slider. If you do the following in the notebook | def html_rangeslider(id, values, callback, steps, default_l=0, default_r=1, margin=0): """ Return the HTML representation of a jQuery slider. INPUT: id -- string -- the DOM id of the slider (better be unique) values -- 'null' or javascript string containing array of values on slider callback-- javascript that is... | 1d3f50ebffa376e7bd2e2d89dc307d13a57d23f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/1d3f50ebffa376e7bd2e2d89dc307d13a57d23f6/interact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
14530,
80,
3585,
12,
350,
16,
924,
16,
1348,
16,
6075,
16,
805,
67,
80,
33,
20,
16,
805,
67,
86,
33,
21,
16,
7333,
33,
20,
4672,
3536,
2000,
326,
3982,
4335,
434,
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,
1729,
67,
14530,
80,
3585,
12,
350,
16,
924,
16,
1348,
16,
6075,
16,
805,
67,
80,
33,
20,
16,
805,
67,
86,
33,
21,
16,
7333,
33,
20,
4672,
3536,
2000,
326,
3982,
4335,
434,
279,
... |
neurons_list = [Neuron('INPUT', ng.id, 0, 0, ) \ for ng in chromo.node_genes if ng.type == 'INPUT'] | neurons_list = [Neuron('INPUT', ng.id, 0, 0) \ for ng in chromo.node_genes[:chromo.sensors] if ng.type == 'INPUT'] | def create_ffphenotype(chromo): """ Receives a chromosome and returns its phenotype (a neural network) """ # first create inputs neurons_list = [Neuron('INPUT', ng.id, 0, 0, ) \ for ng in chromo.node_genes if ng.type == 'INPUT'] # Add hidden nodes in the right order for id in chromo.node_order: neurons_list.append(Ne... | 343304a20d751255e3f069266b636212f4d869f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4744/343304a20d751255e3f069266b636212f4d869f1/nn_pure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1403,
13819,
10570,
12,
16298,
83,
4672,
3536,
9797,
3606,
279,
22674,
471,
1135,
2097,
28825,
261,
69,
1073,
3766,
2483,
13,
3536,
225,
468,
1122,
752,
4540,
17760,
7008,
67,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1403,
13819,
10570,
12,
16298,
83,
4672,
3536,
9797,
3606,
279,
22674,
471,
1135,
2097,
28825,
261,
69,
1073,
3766,
2483,
13,
3536,
225,
468,
1122,
752,
4540,
17760,
7008,
67,
1... |
pattern_codes = pattern_codes[offset:] | def search(space, state, pattern_codes): flags = 0 if pattern_codes[0] == OPCODE_INFO: # optimization info block # <INFO> <1=skip> <2=flags> <3=min> <4=max> <5=prefix info> if pattern_codes[2] & SRE_INFO_PREFIX and pattern_codes[5] > 1: return fast_search(space, state, pattern_codes) flags = pattern_codes[2] offset = p... | f9f5342124231b561ce698a73352f83ee554e111 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/f9f5342124231b561ce698a73352f83ee554e111/interp_sre.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2981,
16,
919,
16,
1936,
67,
7000,
4672,
2943,
273,
374,
309,
1936,
67,
7000,
63,
20,
65,
422,
531,
3513,
2712,
67,
5923,
30,
468,
14850,
1123,
1203,
468,
411,
5923,
34,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2981,
16,
919,
16,
1936,
67,
7000,
4672,
2943,
273,
374,
309,
1936,
67,
7000,
63,
20,
65,
422,
531,
3513,
2712,
67,
5923,
30,
468,
14850,
1123,
1203,
468,
411,
5923,
34,
41... | |
newitems = l.ll_items() | def ll_listslice_startonly(RESLIST, l1, start): len1 = l1.ll_length() newlength = len1 - start l = RESLIST.ll_newlist(newlength) newitems = l.ll_items() j = 0 source = l1.ll_items() i = start while i < len1: newitems[j] = source[i] i += 1 j += 1 return l | afabe8603c579750f81fa9c16896184dfa4a53b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/afabe8603c579750f81fa9c16896184dfa4a53b8/rlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6579,
67,
1098,
6665,
67,
1937,
3700,
12,
7031,
7085,
16,
328,
21,
16,
787,
4672,
562,
21,
273,
328,
21,
18,
2906,
67,
2469,
1435,
394,
2469,
273,
562,
21,
300,
787,
328,
273,
12915,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6579,
67,
1098,
6665,
67,
1937,
3700,
12,
7031,
7085,
16,
328,
21,
16,
787,
4672,
562,
21,
273,
328,
21,
18,
2906,
67,
2469,
1435,
394,
2469,
273,
562,
21,
300,
787,
328,
273,
12915,... | |
print "DTV: WARNING, network error scraping You Tube Video URL" | logging.warning("youtube_errback: network error scraping YouTube video url %s", err) | def _youtube_errback(err, callback): print "DTV: WARNING, network error scraping You Tube Video URL" callback(None) | 713192cc2cfc2ca010db1a7b08237a99ded44b6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/713192cc2cfc2ca010db1a7b08237a99ded44b6a/flashscraper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
31749,
67,
370,
823,
12,
370,
16,
1348,
4672,
2907,
18,
8551,
2932,
31749,
67,
370,
823,
30,
2483,
555,
888,
1266,
310,
4554,
27195,
6191,
880,
738,
87,
3113,
393,
13,
1348,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
31749,
67,
370,
823,
12,
370,
16,
1348,
4672,
2907,
18,
8551,
2932,
31749,
67,
370,
823,
30,
2483,
555,
888,
1266,
310,
4554,
27195,
6191,
880,
738,
87,
3113,
393,
13,
1348,
12,
... |
self.assertEqual(len(Set(map(id, list(self.seq)))), len(self.seq)) | self.assertEqual(len(Set(map(id, list(enumerate(self.seq))))), len(self.seq)) | def test_tuple_reuse(self): # Tests an implementation detail where tuple is reused # whenever nothing else holds a reference to it self.assertEqual(len(Set(map(id, list(self.seq)))), len(self.seq)) self.assertEqual(len(Set(map(id, enumerate(self.seq)))), min(1,len(self.seq))) | b25a52aac09b725dac76013dfafa60093fb2b576 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b25a52aac09b725dac76013dfafa60093fb2b576/test_enumerate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8052,
67,
266,
1202,
12,
2890,
4672,
468,
7766,
87,
392,
4471,
7664,
1625,
3193,
353,
23312,
468,
17334,
5083,
469,
14798,
279,
2114,
358,
518,
365,
18,
11231,
5812,
12,
1897,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8052,
67,
266,
1202,
12,
2890,
4672,
468,
7766,
87,
392,
4471,
7664,
1625,
3193,
353,
23312,
468,
17334,
5083,
469,
14798,
279,
2114,
358,
518,
365,
18,
11231,
5812,
12,
1897,
... |
globals = {"_getiter_": getiter} | globals = {"_getiter_": getiter, '_inplacevar_': inplacevar_wrapper} | def getiter(seq): calls.append(seq) return list(seq) | b2ce85ffe09a48858cfc642fcb209fb9fbcc3089 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b2ce85ffe09a48858cfc642fcb209fb9fbcc3089/testRestrictions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2165,
12,
5436,
4672,
4097,
18,
6923,
12,
5436,
13,
327,
666,
12,
5436,
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,
... | [
1,
1,
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,
336,
2165,
12,
5436,
4672,
4097,
18,
6923,
12,
5436,
13,
327,
666,
12,
5436,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
from PIL import Image import numpy import osgeo.gdal_array as gdalarray | if numpy: pass | def __init__(self, arguments ): """Constructor function - initialization""" self.input = None self.output = None | c4960cab782eaaed0d0ec95af10325a5941f605f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10290/c4960cab782eaaed0d0ec95af10325a5941f605f/gdal2tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1775,
262,
30,
3536,
6293,
445,
300,
10313,
8395,
225,
365,
18,
2630,
273,
599,
365,
18,
2844,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1775,
262,
30,
3536,
6293,
445,
300,
10313,
8395,
225,
365,
18,
2630,
273,
599,
365,
18,
2844,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
handler = self.get_handler('/ui/ical/ical_edit_timetables.xml') | handler = self.get_object('/ui/ical/ical_edit_timetables.xml') | def edit_timetables_form(self, context): # Add ical css css = self.get_handler('/ui/ical/calendar.css') context.styles.append(str(self.get_pathto(css))) | 9eeff786a523714089fcdf4322362335697cae75 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/9eeff786a523714089fcdf4322362335697cae75/ical.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
8584,
278,
1538,
67,
687,
12,
2890,
16,
819,
4672,
468,
1436,
277,
771,
3747,
3747,
273,
365,
18,
588,
67,
4176,
2668,
19,
4881,
19,
1706,
19,
11650,
18,
5212,
6134,
819,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
8584,
278,
1538,
67,
687,
12,
2890,
16,
819,
4672,
468,
1436,
277,
771,
3747,
3747,
273,
365,
18,
588,
67,
4176,
2668,
19,
4881,
19,
1706,
19,
11650,
18,
5212,
6134,
819,
1... |
self.log_file.write("[%s] %s: %s" % \ | self.log_file.write("[%s] %s: %s\n" % \ | def handle_action(self, protocol, action, user, message): nick = user.split("!", 1)[0] self.log_file.write("[%s] %s: %s" % \ (datetime.datetime.now(), nick, message)) | 9db6eee7a1d4ca4b93743cdf194ff140030061ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10891/9db6eee7a1d4ca4b93743cdf194ff140030061ac/logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1128,
12,
2890,
16,
1771,
16,
1301,
16,
729,
16,
883,
4672,
10909,
273,
729,
18,
4939,
2932,
5,
3113,
404,
25146,
20,
65,
365,
18,
1330,
67,
768,
18,
2626,
2932,
14451,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
67,
1128,
12,
2890,
16,
1771,
16,
1301,
16,
729,
16,
883,
4672,
10909,
273,
729,
18,
4939,
2932,
5,
3113,
404,
25146,
20,
65,
365,
18,
1330,
67,
768,
18,
2626,
2932,
14451,
87,... |
$NAME = Factory(name=$PNAME, description=$DESCRIPTION, category=$CATEGORY, | $NAME = Factory(name=$PNAME, description=$DESCRIPTION, category=$CATEGORY, | def save_new_src(self, newsrc): """ Execute the new source and replace the text into the old file containing the source. """ module = self.get_node_module() nodesrc = self.get_node_src(cache=False) # Run src exec newsrc in module.__dict__ | 0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66/node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
2704,
67,
4816,
12,
2890,
16,
394,
4816,
4672,
3536,
7903,
326,
394,
1084,
471,
1453,
326,
977,
1368,
326,
1592,
585,
4191,
326,
1084,
18,
3536,
1605,
273,
365,
18,
588,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
2704,
67,
4816,
12,
2890,
16,
394,
4816,
4672,
3536,
7903,
326,
394,
1084,
471,
1453,
326,
977,
1368,
326,
1592,
585,
4191,
326,
1084,
18,
3536,
1605,
273,
365,
18,
588,
67,
... |
[datetime.datetime(2005, 1, 19, 9, 0), datetime.datetime(2005, 1, 20, 9, 0)] | [datetime.datetime(2005, 3, 18, 0, 0), datetime.datetime(2005, 3, 29, 0, 0)] | def prettyPrint(self, level, tabwidth): pre = ' ' * level * tabwidth print pre, self.name print pre, "TZID:", self.tzid[0] print | 5a285ccc3499cbedc14fdc498f4f913ec1f83c87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9169/5a285ccc3499cbedc14fdc498f4f913ec1f83c87/icalendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30410,
12,
2890,
16,
1801,
16,
3246,
2819,
4672,
675,
273,
296,
296,
380,
1801,
380,
3246,
2819,
1172,
675,
16,
365,
18,
529,
1172,
675,
16,
315,
21647,
734,
2773,
16,
365,
18,
12994,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30410,
12,
2890,
16,
1801,
16,
3246,
2819,
4672,
675,
273,
296,
296,
380,
1801,
380,
3246,
2819,
1172,
675,
16,
365,
18,
529,
1172,
675,
16,
315,
21647,
734,
2773,
16,
365,
18,
12994,
... |
entry.onAction () | self.updateData (entry) | def will_focus_out (self, entry, *ignore): entry.onAction () | e1fb1b82adbe070d6396621e5d155280b09af156 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2219/e1fb1b82adbe070d6396621e5d155280b09af156/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
903,
67,
13923,
67,
659,
261,
2890,
16,
1241,
16,
380,
6185,
4672,
1241,
18,
265,
1803,
1832,
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,
903,
67,
13923,
67,
659,
261,
2890,
16,
1241,
16,
380,
6185,
4672,
1241,
18,
265,
1803,
1832,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pix_iter = None | def fftmap(fseq, frange, func=np.mean, normL = None, verbose = True, **kwargs): """ Fourier-based functional mapping frange : a range of frequencies in Hz, e.g. (1.0, 1.5) kern : a kernel to convolve each frame with func : range reducing function. np.mean by default, may be np.sum as well """ tick = time.clock() L = ... | 272f87825b11e98efd01405e3f05bafc10f54631 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6360/272f87825b11e98efd01405e3f05bafc10f54631/fnmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15741,
1458,
12,
74,
5436,
16,
284,
3676,
16,
1326,
33,
6782,
18,
7079,
16,
4651,
48,
273,
599,
16,
3988,
273,
1053,
16,
2826,
4333,
4672,
3536,
478,
24775,
17,
12261,
18699,
2874,
284... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15741,
1458,
12,
74,
5436,
16,
284,
3676,
16,
1326,
33,
6782,
18,
7079,
16,
4651,
48,
273,
599,
16,
3988,
273,
1053,
16,
2826,
4333,
4672,
3536,
478,
24775,
17,
12261,
18699,
2874,
284... | |
test.c[0].child.children[0], test.c[0].child.children[1], test.c.cc.c.d, test.c.cc.c.e, | test.children[0].child.children[0], test.children[0].child.children[1], test.children.cc.children.d, test.children.cc.children.e, | def test_round_trip(self): test = twc.CompoundWidget(id='a', children=[ twc.DisplayOnlyWidget(id='q', child= # TBD twc.RepeatingWidget(id=None, child= twc.Widget(id='b') ) ), twc.CompoundWidget(id='cc', children=[ twc.Widget(id='d'), twc.Widget(id='e'), ]) ]) | 63e95fe54937a8558192c280d2bd6d29e642b625 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11475/63e95fe54937a8558192c280d2bd6d29e642b625/test_validation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2260,
67,
25125,
12,
2890,
4672,
1842,
273,
2339,
71,
18,
16835,
4609,
12,
350,
2218,
69,
2187,
2325,
22850,
2339,
71,
18,
4236,
3386,
4609,
12,
350,
2218,
85,
2187,
1151,
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,
1842,
67,
2260,
67,
25125,
12,
2890,
4672,
1842,
273,
2339,
71,
18,
16835,
4609,
12,
350,
2218,
69,
2187,
2325,
22850,
2339,
71,
18,
4236,
3386,
4609,
12,
350,
2218,
85,
2187,
1151,
33... |
inv.db.dump_checkout_paths() | def ensure_dirs(self, builder, label): """ Make sure all the relevant directories exist. """ | b1abba097f33b760d5dd6c7faa24aa2a29b85465 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4427/b1abba097f33b760d5dd6c7faa24aa2a29b85465/make.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3387,
67,
8291,
12,
2890,
16,
2089,
16,
1433,
4672,
3536,
4344,
3071,
777,
326,
9368,
6402,
1005,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3387,
67,
8291,
12,
2890,
16,
2089,
16,
1433,
4672,
3536,
4344,
3071,
777,
326,
9368,
6402,
1005,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
self.load_autostart (defs.APP, defs.TASKS_H_ARROWS, self.wTree.get_widget("autostart")) | def reload(self): self.load_bool (defs.AWN, defs.AUTO_HIDE, self.wTree.get_widget("autohide")) self.load_bool (defs.AWN, defs.KEEP_BELOW, self.wTree.get_widget("keepbelow")) self.load_bool (defs.AWN, defs.PANEL_MODE, self.wTree.get_widget("panelmode")) self.load_bool (defs.APP, defs.NAME_CHANGE_NOTIFY, self.wTree.get_w... | 578e7de85087a2fe2729d8795d24467d6202461a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/578e7de85087a2fe2729d8795d24467d6202461a/awnPreferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7749,
12,
2890,
4672,
365,
18,
945,
67,
6430,
261,
12537,
18,
37,
5665,
16,
17588,
18,
18909,
67,
44,
10385,
16,
365,
18,
91,
2471,
18,
588,
67,
6587,
2932,
6079,
11248,
6,
3719,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7749,
12,
2890,
4672,
365,
18,
945,
67,
6430,
261,
12537,
18,
37,
5665,
16,
17588,
18,
18909,
67,
44,
10385,
16,
365,
18,
91,
2471,
18,
588,
67,
6587,
2932,
6079,
11248,
6,
3719,
365... | |
print 'Sending', event | def sendToZeitgeist(self, track): """ Send track information to Zeitgeist """ import mimetypes, os.path | c9c9aa07ca5086939841ee483f5bda64b98d2bab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1737/c9c9aa07ca5086939841ee483f5bda64b98d2bab/Zeitgeist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29091,
62,
73,
305,
908,
376,
12,
2890,
16,
3298,
4672,
3536,
2479,
3298,
1779,
358,
23587,
305,
908,
376,
3536,
1930,
20369,
15180,
16,
1140,
18,
803,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29091,
62,
73,
305,
908,
376,
12,
2890,
16,
3298,
4672,
3536,
2479,
3298,
1779,
358,
23587,
305,
908,
376,
3536,
1930,
20369,
15180,
16,
1140,
18,
803,
2,
-100,
-100,
-100,
-100,
-100,
... | |
if total<=0.0: | if total <= 0.0: | def _product_reserve(self, cr, uid, ids, product_id, product_qty, context={}): result = [] amount = 0.0 for id in self.search(cr, uid, [('location_id', 'child_of', ids)]): cr.execute("select product_uom,sum(product_qty) as product_qty from stock_move where location_dest_id=%s and location_id<>%s and product_id=%s and s... | 369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5896,
67,
455,
6527,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
67,
350,
16,
3017,
67,
85,
4098,
16,
819,
12938,
4672,
563,
273,
5378,
3844,
273,
374,
18,
20,
364,
612,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5896,
67,
455,
6527,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
67,
350,
16,
3017,
67,
85,
4098,
16,
819,
12938,
4672,
563,
273,
5378,
3844,
273,
374,
18,
20,
364,
612,
... |
Contexteters = Context() | context = Context() | def test_formatting(self): Contexteters = Context() data = '<p>TXT <i>TEXT<u>TEXT</u></i></p>' stream = XMLParser(data) stream.next() para = paragraph_stream(stream, 'p', {}, Contexteters) self.assertEqual(para.text, '<para>TXT <i>TEXT<u>TEXT</u></i></para>') | 3f5572cf3ff452e63a9867d97740e432a5973b1d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/3f5572cf3ff452e63a9867d97740e432a5973b1d/test_rml2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2139,
1787,
12,
2890,
4672,
819,
273,
1772,
1435,
501,
273,
2368,
84,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
84,
1870,
1407,
273,
3167,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2139,
1787,
12,
2890,
4672,
819,
273,
1772,
1435,
501,
273,
2368,
84,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
84,
1870,
1407,
273,
3167,
2... |
self.jsEnv.executeScriptAsFunction(val, 0.0) | self.js_env.executeScriptAsFunction(val, 0.0) | def jsPopup (self, attrs, name): """check if attrs[name] javascript opens a popup window""" val = resolve_html_entities(attrs[name]) if not val: return self.jsEnv.attachListener(self) try: self.jsEnv.executeScriptAsFunction(val, 0.0) except jslib.error, msg: pass self.jsEnv.detachListener(self) res = self.popup_counter... | 475def66113a258d59f287a283585f27e07dd77a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/475def66113a258d59f287a283585f27e07dd77a/Rewriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
13770,
261,
2890,
16,
3422,
16,
508,
4672,
3536,
1893,
309,
3422,
63,
529,
65,
11341,
10400,
279,
10431,
2742,
8395,
1244,
273,
2245,
67,
2620,
67,
9996,
12,
7039,
63,
529,
5717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3828,
13770,
261,
2890,
16,
3422,
16,
508,
4672,
3536,
1893,
309,
3422,
63,
529,
65,
11341,
10400,
279,
10431,
2742,
8395,
1244,
273,
2245,
67,
2620,
67,
9996,
12,
7039,
63,
529,
5717,
... |
print "Create binary distribution folder: ' + bin_folder | print 'Create binary distribution folder: ' + bin_folder | def get_and_create_bin_folder(dist_folder, folder): """Formats and creates binary distribution folder.""" bin_folder = os.path.join(dist_folder, folder + '-exe') print "Create binary distribution folder: ' + bin_folder os.mkdir(bin_folder) return bin_folder | 21cb8af045d1b6b7dd5ff30835fd67572b8f9979 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5344/21cb8af045d1b6b7dd5ff30835fd67572b8f9979/create_release.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
464,
67,
2640,
67,
4757,
67,
5609,
12,
4413,
67,
5609,
16,
3009,
4672,
3536,
8976,
471,
3414,
3112,
7006,
3009,
12123,
225,
4158,
67,
5609,
273,
1140,
18,
803,
18,
5701,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
464,
67,
2640,
67,
4757,
67,
5609,
12,
4413,
67,
5609,
16,
3009,
4672,
3536,
8976,
471,
3414,
3112,
7006,
3009,
12123,
225,
4158,
67,
5609,
273,
1140,
18,
803,
18,
5701,
12,
... |
prefix = self.peek(4) | def check_document_end(self): | ea23091a5bf580a405a834b17802059fa80edfdd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12018/ea23091a5bf580a405a834b17802059fa80edfdd/scanner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5457,
67,
409,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5457,
67,
409,
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,
... | |
class="zope.app.component.tests.views.VZMI" layer="zmi" for="zope.app.component.tests.views.IC" permission="zope.Public" attribute="index" /> | class="zope.app.component.tests.views.VZMI" layer="zmi" for="zope.app.component.tests.views.IC" permission="zope.Public" attribute="index" /> | def testSkinPage(self): self.assertEqual(queryView(ob, 'test', request, None), None) | 1cfc7ddd1cac0110cca3e909215477e1c59bbca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/1cfc7ddd1cac0110cca3e909215477e1c59bbca3/test_directives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
26827,
1964,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2271,
1767,
12,
947,
16,
296,
3813,
2187,
590,
16,
599,
3631,
599,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
26827,
1964,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2271,
1767,
12,
947,
16,
296,
3813,
2187,
590,
16,
599,
3631,
599,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
print "\n! Warning - MythTV python bindings could not be imported\n" | print u"\n! Warning - MythTV python bindings could not be imported\n" | def __getattr__(self, attr): """Delegate everything but write to the stream""" return getattr(self.out, attr) | 6089d4d60f2dab84c6af9981c242684b162de38e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/6089d4d60f2dab84c6af9981c242684b162de38e/jamu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
3536,
9586,
7756,
1496,
1045,
358,
326,
1407,
8395,
327,
3869,
12,
2890,
18,
659,
16,
1604,
13,
2,
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,
1001,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
3536,
9586,
7756,
1496,
1045,
358,
326,
1407,
8395,
327,
3869,
12,
2890,
18,
659,
16,
1604,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def find_associate_test_module_by_test_classs(project, module): | def find_associate_test_module_by_test_class(project, module): | def find_associate_test_module_by_test_classs(project, module): """Try to find a test module with most test cases for the given application module. """ def test_classs_number(mod): return len(mod.get_test_cases_for_module(module)) test_module = max_by_not_zero(test_classs_number, project.get_modules()) if test_module: ... | 3088a24b03acae83f73f6f0d72658d1fed6ae49c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11544/3088a24b03acae83f73f6f0d72658d1fed6ae49c/adder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
11577,
67,
3813,
67,
2978,
67,
1637,
67,
3813,
67,
1106,
12,
4406,
16,
1605,
4672,
3536,
7833,
358,
1104,
279,
1842,
1605,
598,
4486,
1842,
6088,
364,
326,
864,
2521,
1605,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
11577,
67,
3813,
67,
2978,
67,
1637,
67,
3813,
67,
1106,
12,
4406,
16,
1605,
4672,
3536,
7833,
358,
1104,
279,
1842,
1605,
598,
4486,
1842,
6088,
364,
326,
864,
2521,
1605,
1... |
return self.__executeOperation('addTaskForTransformation',lfns=lfns,se=se,printOutput=printOutput) | return self.__executeOperation('addTaskForTransformation',lfns,se,printOutput=printOutput) | def addTaskForTransformation(self,lfns=[],se='Unknown', printOutput=False): return self.__executeOperation('addTaskForTransformation',lfns=lfns,se=se,printOutput=printOutput) | 9649ac57fd20199fe74637291701ad6b70ce16a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9649ac57fd20199fe74637291701ad6b70ce16a4/Transformation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2174,
1290,
15292,
12,
2890,
16,
20850,
2387,
22850,
6487,
307,
2218,
4874,
2187,
1172,
1447,
33,
8381,
4672,
327,
365,
16186,
8837,
2988,
2668,
1289,
2174,
1290,
15292,
2187,
20850,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
2174,
1290,
15292,
12,
2890,
16,
20850,
2387,
22850,
6487,
307,
2218,
4874,
2187,
1172,
1447,
33,
8381,
4672,
327,
365,
16186,
8837,
2988,
2668,
1289,
2174,
1290,
15292,
2187,
20850,
... |
try: self.decoder.run(intr, ctrl) except: print >> sys.stderr, "Connection broken or error." traceback.print_exc() | self.decoder.run(intr, ctrl) | def listen(self): intr_sock = self.prepare_socket(L2CAP_PSM_HIDP_INTR) ctrl_sock = self.prepare_socket(L2CAP_PSM_HIDP_CTRL) | 85711d88bcf50d45a423ed8add160ec68ed204c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/917/85711d88bcf50d45a423ed8add160ec68ed204c6/ps3joy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6514,
12,
2890,
4672,
28600,
67,
15031,
273,
365,
18,
9366,
67,
7814,
12,
48,
22,
17296,
67,
5857,
49,
67,
44,
734,
52,
67,
3217,
54,
13,
6414,
67,
15031,
273,
365,
18,
9366,
67,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6514,
12,
2890,
4672,
28600,
67,
15031,
273,
365,
18,
9366,
67,
7814,
12,
48,
22,
17296,
67,
5857,
49,
67,
44,
734,
52,
67,
3217,
54,
13,
6414,
67,
15031,
273,
365,
18,
9366,
67,
7... |
if gridSite == "Unknown": | if gridSite == "Unknown": | def getPilotMonitorWeb(self,selectDict,sortList,startItem,maxItems): """ Get summary of the pilot job information in a standard structure """ resultDict = {} last_update = None if selectDict.has_key('LastUpdateTime'): last_update = selectDict['LastUpdateTime'] del selectDict['LastUpdateTime'] # Sorting instructions. ... | 4281b6ebd17e9e6456de007d4a03f9fe1ab6a236 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/4281b6ebd17e9e6456de007d4a03f9fe1ab6a236/PilotAgentsDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
22797,
7187,
4079,
12,
2890,
16,
4025,
5014,
16,
3804,
682,
16,
1937,
1180,
16,
1896,
3126,
4672,
3536,
968,
4916,
434,
326,
293,
22797,
1719,
1779,
316,
279,
4529,
3695,
3536,
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,
1689,
22797,
7187,
4079,
12,
2890,
16,
4025,
5014,
16,
3804,
682,
16,
1937,
1180,
16,
1896,
3126,
4672,
3536,
968,
4916,
434,
326,
293,
22797,
1719,
1779,
316,
279,
4529,
3695,
3536,
225... |
libraries=['ntl', 'gmp']), \ | libraries=['ntl', 'gmp', 'pari']), \ | def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False | 3a93dea60c5c29d4edbfea22e2e831b22ddc6251 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/3a93dea60c5c29d4edbfea22e2e831b22ddc6251/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
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,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,... |
last_uid = current = None for date, author, field, old, new, permanent in changelog: uid = date, author, permanent if uid != last_uid: last_uid = uid current = { 'date': format_datetime(date), 'author': author, 'fields': {} } changes.append(current) if permanent: autonum += 1 current['cnum'] = autonum if field == 'comm... | cnum = 0 for change in self.grouped_changelog_entries(ticket, db): changes.append(change) comment = '' if 'comment' in change: comment = change['comment'] change['comment'] = wiki_to_html(comment, self.env, req, db) if change['permanent']: cnum = change['cnum'] if 'replyto' in change: replies.setdefault(change['reply... | def quote_original(author, original, link): if not 'comment' in req.args: # i.e. the comment was not yet edited req.hdf['ticket.comment'] = '\n'.join( ['Replying to [%s %s]:' % (link, author)] + ['> %s' % line for line in original.splitlines()] + ['']) | 10e669f9ff9c4495cefc3e7943da30e0dc2d287f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/10e669f9ff9c4495cefc3e7943da30e0dc2d287f/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3862,
67,
8830,
12,
4161,
16,
2282,
16,
1692,
4672,
309,
486,
296,
3469,
11,
316,
1111,
18,
1968,
30,
468,
277,
18,
73,
18,
326,
2879,
1703,
486,
4671,
18532,
1111,
18,
26428,
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,
3862,
67,
8830,
12,
4161,
16,
2282,
16,
1692,
4672,
309,
486,
296,
3469,
11,
316,
1111,
18,
1968,
30,
468,
277,
18,
73,
18,
326,
2879,
1703,
486,
4671,
18532,
1111,
18,
26428,
3292,
... |
self.assertEquals(len(httpauth.password_list.passwords), 1) | self.assertEquals(len(httpauth.password_list.passwords), start_count+1) | def test_basic_two_domains_same_realm(self): # test that if two domains have the same realm, we don't allow 1 # password to overwrite the other #14613 header = 'Basic realm="Protected Space"' url = 'http://example.com/foo/test.html' url2 = 'http://example2.com/foo/test.html' self.assertEquals(len(httpauth.password_list... | 4b8289b873f0a4753ec0728418ee74d1de9d4fd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/4b8289b873f0a4753ec0728418ee74d1de9d4fd7/httpclienttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13240,
67,
15415,
67,
14180,
67,
14307,
67,
24056,
12,
2890,
4672,
468,
1842,
716,
309,
2795,
10128,
1240,
326,
1967,
11319,
16,
732,
2727,
1404,
1699,
404,
468,
2201,
358,
615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13240,
67,
15415,
67,
14180,
67,
14307,
67,
24056,
12,
2890,
4672,
468,
1842,
716,
309,
2795,
10128,
1240,
326,
1967,
11319,
16,
732,
2727,
1404,
1699,
404,
468,
2201,
358,
615... |
dll.jmi_get_cd.argtypes = [ct.c_void_p] dll.jmi_get_ci.argtypes = [ct.c_void_p] dll.jmi_get_dx.argtypes = [ct.c_void_p] | dll.jmi_get_cd.argtypes = [ct.c_void_p] dll.jmi_get_ci.argtypes = [ct.c_void_p] dll.jmi_get_dx.argtypes = [ct.c_void_p] | def load_DLL(libname, path): """Loads a model from a DLL file and returns it. The filepath can be be both with or without file suffixes (as long as standard file suffixes are used, that is). Example inputs that should work: >> lib = loadDLL('model') >> lib = loadDLL('model.dll') >> lib = loadDLL('model.so') . All of ... | eb8f7e855e40c03a39a16ea92f88dd971630efa3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/eb8f7e855e40c03a39a16ea92f88dd971630efa3/jmi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
40,
4503,
12,
2941,
529,
16,
589,
4672,
3536,
7968,
279,
938,
628,
279,
463,
4503,
585,
471,
1135,
518,
18,
225,
1021,
3608,
848,
506,
506,
3937,
598,
578,
2887,
585,
18333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
40,
4503,
12,
2941,
529,
16,
589,
4672,
3536,
7968,
279,
938,
628,
279,
463,
4503,
585,
471,
1135,
518,
18,
225,
1021,
3608,
848,
506,
506,
3937,
598,
578,
2887,
585,
18333,
... |
self.skin = SkinSelector.skin | def __init__(self, session, args = None): | bff20b44ef4d4885eea730e3dce5e3c890af6083 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/bff20b44ef4d4885eea730e3dce5e3c890af6083/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
833,
273,
599,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
833,
273,
599,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
notification_center.post_notification('BonjourAccountDidRemoveNeighbour', sender=self.account, | NotificationCenter().post_notification('BonjourAccountDidRemoveNeighbour', sender=self.account, | def _browse_cb(self, file, flags, interface_index, error_code, service_name, regtype, reply_domain): notification_center = NotificationCenter() if error_code != bonjour.kDNSServiceErr_NoError: self._discover_timer = reactor.callLater(1, self._command_channel.send, Command('discover')) return if not (flags & bonjour.kDN... | dee5c0545c8ca1bc3f9219ea078ee0dca8662a2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/dee5c0545c8ca1bc3f9219ea078ee0dca8662a2c/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
25731,
67,
7358,
12,
2890,
16,
585,
16,
2943,
16,
1560,
67,
1615,
16,
555,
67,
710,
16,
1156,
67,
529,
16,
960,
723,
16,
4332,
67,
4308,
4672,
3851,
67,
5693,
273,
8050,
8449,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25731,
67,
7358,
12,
2890,
16,
585,
16,
2943,
16,
1560,
67,
1615,
16,
555,
67,
710,
16,
1156,
67,
529,
16,
960,
723,
16,
4332,
67,
4308,
4672,
3851,
67,
5693,
273,
8050,
8449,
... |
if v is not None and v not in l: l.append(v) | if v is not None: if not isinstance(v, str): v = v.compiler_type if v not in l: l.append(v) | def finalize_options(self): log.info('unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options') build_clib = self.get_finalized_command('build_clib') build_ext = self.get_finalized_command('build_ext') config = self.get_finalized_command('config') build = self.get_finalized_command('build')... | 5c2ffbb0da2669cc15c383d378d8ff5f63fda27f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/5c2ffbb0da2669cc15c383d378d8ff5f63fda27f/config_compiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
2116,
12,
2890,
4672,
613,
18,
1376,
2668,
318,
430,
310,
642,
67,
7142,
16,
642,
16,
1361,
67,
830,
495,
16,
1361,
67,
408,
16,
1361,
4364,
1493,
74,
9576,
702,
6134,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12409,
67,
2116,
12,
2890,
4672,
613,
18,
1376,
2668,
318,
430,
310,
642,
67,
7142,
16,
642,
16,
1361,
67,
830,
495,
16,
1361,
67,
408,
16,
1361,
4364,
1493,
74,
9576,
702,
6134,
136... |
sum/product of the smaller). If r is given and r is True, I.integral_closure() starts with a check whether I is already a | sum/product of the smaller). If $r$ is given and \code{r is True}, \code{I.integral_closure()} starts with a check whether I is already a | def integral_closure(self, p=0, r=True): """ Let I == self. Returns the integral closure of I, ..., I^p, where sI is an ideal in the polynomial ring R=k[x(1),...x(n)]. If p is not given, or p==0, compute the closure of all powers up to the maximum degree in t occurring in the closure of R[It] (so this is the last powe... | 07f0039d91b8ff804ca8ca77f7d0a12a1b2061be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/07f0039d91b8ff804ca8ca77f7d0a12a1b2061be/multi_polynomial_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21423,
67,
20823,
12,
2890,
16,
293,
33,
20,
16,
436,
33,
5510,
4672,
3536,
10559,
467,
422,
365,
18,
225,
2860,
326,
21423,
7213,
434,
467,
16,
1372,
16,
467,
66,
84,
16,
1625,
272,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21423,
67,
20823,
12,
2890,
16,
293,
33,
20,
16,
436,
33,
5510,
4672,
3536,
10559,
467,
422,
365,
18,
225,
2860,
326,
21423,
7213,
434,
467,
16,
1372,
16,
467,
66,
84,
16,
1625,
272,... |
def test_ogrinfo_7(): | def test_ogrinfo_8(): | def test_ogrinfo_7(): if test_cli_utilities.get_ogrinfo_path() is None: return 'skip' ret = gdaltest.runexternal(test_cli_utilities.get_ogrinfo_path() + ' ../ogr/data/poly.shp poly -spat 479609 4764629 479764 4764817') if ogrtest.have_geos(): if ret.find('Feature Count: 4') == -1: return 'fail' return 'success' else: ... | 0676cbc5d58f30a7a94b1c52b6c833419742f497 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/0676cbc5d58f30a7a94b1c52b6c833419742f497/test_ogrinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
717,
86,
1376,
67,
28,
13332,
309,
1842,
67,
4857,
67,
1367,
1961,
18,
588,
67,
717,
86,
1376,
67,
803,
1435,
353,
599,
30,
327,
296,
7457,
11,
225,
325,
273,
15551,
2390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
86,
1376,
67,
28,
13332,
309,
1842,
67,
4857,
67,
1367,
1961,
18,
588,
67,
717,
86,
1376,
67,
803,
1435,
353,
599,
30,
327,
296,
7457,
11,
225,
325,
273,
15551,
2390,
... |
print "seek "+str(self.seek)+" 2\n" | if DEBUG: print "seek "+str(self.seek)+" 2\n" | def eventhandler(self, event): """ eventhandler for mplayer control. If an event is not bound in this function it will be passed over to the items eventhandler """ | 4d4cbecd1b64b161427892bd2f2bed9b00002280 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/4d4cbecd1b64b161427892bd2f2bed9b00002280/mplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
4176,
12,
2890,
16,
871,
4672,
3536,
871,
4176,
364,
312,
14872,
3325,
18,
971,
392,
871,
353,
486,
2489,
316,
333,
445,
518,
903,
506,
2275,
1879,
358,
326,
1516,
871,
4176,
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,
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,
871,
4176,
12,
2890,
16,
871,
4672,
3536,
871,
4176,
364,
312,
14872,
3325,
18,
971,
392,
871,
353,
486,
2489,
316,
333,
445,
518,
903,
506,
2275,
1879,
358,
326,
1516,
871,
4176,
3536... |
STRING, [cty.POINTER(FL_OBJECT)], | STRING, [cty.POINTER(FL_OBJECT)], | def fl_get_active_folder_number(ob): """ fl_get_active_folder_number(ob) -> num. """ retval = _fl_get_active_folder_number(ob) 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,
588,
67,
3535,
67,
5609,
67,
2696,
12,
947,
4672,
3536,
1183,
67,
588,
67,
3535,
67,
5609,
67,
2696,
12,
947,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
3535,
67,
5609,
67,
2696,
12,
947,
4672,
3536,
1183,
67,
588,
67,
3535,
67,
5609,
67,
2696,
12,
947,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
588,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.