rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
('process_multistmt', compile_ast_matcher(""" (stmt COMMENT*:comments | ('process_multi_stmt', compile_ast_matcher(""" (stmt COMMENT* | # Function definition: "def f(x): ..." | 9e5978789d1a0236a755e57894301e8dd453fd99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/9e5978789d1a0236a755e57894301e8dd453fd99/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
4284,
2379,
30,
315,
536,
284,
12,
92,
4672,
18483,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
4284,
2379,
30,
315,
536,
284,
12,
92,
4672,
18483,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
output_file.write(" 'copies': [\n") | def write_action(asset, webgl_mode): filename = posixpath.splitext(posixpath.basename(asset['path']))[0] filename = filename.replace('.','_') filename = filename.replace('-','_') filename = filename.lower() name = "convert_" + filename if webgl_mode: name = name + "_webgl" output = asset['path'].replace('convert_', '')... | 51cf61ff968587decf4da988cafbff403b2ef34b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/51cf61ff968587decf4da988cafbff403b2ef34b/samples_gen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1128,
12,
9406,
16,
3311,
7043,
67,
3188,
4672,
1544,
273,
16366,
803,
18,
4939,
408,
12,
24463,
803,
18,
13909,
12,
9406,
3292,
803,
3546,
3719,
63,
20,
65,
1544,
273,
1544,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1128,
12,
9406,
16,
3311,
7043,
67,
3188,
4672,
1544,
273,
16366,
803,
18,
4939,
408,
12,
24463,
803,
18,
13909,
12,
9406,
3292,
803,
3546,
3719,
63,
20,
65,
1544,
273,
1544,... | |
microop = eval('parser.microops[statement.mnemonic](%s)' % statement.params) | microop = eval('__microopClassFromInsideTheAssembler(%s)' % statement.params, {}, parser.symbols) | def handle_statement(parser, container, statement): if statement.is_microop: try: microop = eval('parser.microops[statement.mnemonic](%s)' % statement.params) except: print_error("Error creating microop object with mnemonic %s." % \ statement.mnemonic) raise try: for label in statement.labels: container.labels[label.na... | 7e7d3ee0aa73c1573b62539ed0f0a97c44fdd7ea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6787/7e7d3ee0aa73c1573b62539ed0f0a97c44fdd7ea/micro_asm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
11516,
12,
4288,
16,
1478,
16,
3021,
4672,
309,
3021,
18,
291,
67,
14458,
556,
30,
775,
30,
6481,
556,
273,
5302,
2668,
972,
14458,
556,
797,
1265,
18619,
1986,
1463,
5747,
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,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
11516,
12,
4288,
16,
1478,
16,
3021,
4672,
309,
3021,
18,
291,
67,
14458,
556,
30,
775,
30,
6481,
556,
273,
5302,
2668,
972,
14458,
556,
797,
1265,
18619,
1986,
1463,
5747,
7... |
to return an :class:`Inspector` subclass that provides additional | to return an :class:`.Inspector` subclass that provides additional | def cache(fn, self, con, *args, **kw): info_cache = kw.get('info_cache', None) if info_cache is None: return fn(self, con, *args, **kw) key = ( fn.__name__, tuple(a for a in args if isinstance(a, basestring)), tuple((k, v) for k, v in kw.iteritems() if isinstance(v, (basestring, int, float))) ) ret = info_cache.get(key... | 914ae5bcd4dbac844d26c70eeeb2f8bffd03c20d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/914ae5bcd4dbac844d26c70eeeb2f8bffd03c20d/reflection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
12,
4293,
16,
365,
16,
356,
16,
380,
1968,
16,
2826,
9987,
4672,
1123,
67,
2493,
273,
5323,
18,
588,
2668,
1376,
67,
2493,
2187,
599,
13,
309,
1123,
67,
2493,
353,
599,
30,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1247,
12,
4293,
16,
365,
16,
356,
16,
380,
1968,
16,
2826,
9987,
4672,
1123,
67,
2493,
273,
5323,
18,
588,
2668,
1376,
67,
2493,
2187,
599,
13,
309,
1123,
67,
2493,
353,
599,
30,
327... |
twist.notebook.save() | save_notebook() | def my_sigint(x, n): twist.notebook.save() signal.signal(signal.SIGINT, signal.SIG_DFL) print "(Notebook cleanly saved. Press control-C again to exit.)" | 10e310067c056d8036c0cd4f16de520b723ebd2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/10e310067c056d8036c0cd4f16de520b723ebd2f/run_notebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
7340,
474,
12,
92,
16,
290,
4672,
1923,
67,
24422,
1435,
4277,
18,
10420,
12,
10420,
18,
18513,
3217,
16,
4277,
18,
18513,
67,
4577,
48,
13,
1172,
7751,
19751,
2721,
715,
519... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
7340,
474,
12,
92,
16,
290,
4672,
1923,
67,
24422,
1435,
4277,
18,
10420,
12,
10420,
18,
18513,
3217,
16,
4277,
18,
18513,
67,
4577,
48,
13,
1172,
7751,
19751,
2721,
715,
519... |
dll = 'support/loader/inprocsrvr' if self.debug: dll = dll + '_d' | dll = self._bootloader_postfix('support/loader/inprocsrvr') | def assemble(self): print "building DLL", os.path.basename(self.out) outf = open(self.name, 'wb') dll = 'support/loader/inprocsrvr' if self.debug: dll = dll + '_d' dll = os.path.join(HOMEPATH, dll) + '.dll' self.copy(dll, outf) self.copy(self.pkg.name, outf) outf.close() os.chmod(self.name, 0755) f = open(self.out, 'w... | c4a8d5577bdce24715c5dd3b9c0c8a0c2f7fd120 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11925/c4a8d5577bdce24715c5dd3b9c0c8a0c2f7fd120/Build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19540,
12,
2890,
4672,
1172,
315,
3510,
310,
463,
4503,
3113,
1140,
18,
803,
18,
13909,
12,
2890,
18,
659,
13,
596,
74,
273,
1696,
12,
2890,
18,
529,
16,
296,
9464,
6134,
302,
2906,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19540,
12,
2890,
4672,
1172,
315,
3510,
310,
463,
4503,
3113,
1140,
18,
803,
18,
13909,
12,
2890,
18,
659,
13,
596,
74,
273,
1696,
12,
2890,
18,
529,
16,
296,
9464,
6134,
302,
2906,
... |
sys.exit.expect_call(1).and_raises(cli_mock.ExitException) | (sys.exit.expect_call(mock.anything_comparator()) .and_raises(cli_mock.ExitException)) | def test_job_list_jobs_all_and_user(self): testjob = job.job_list() sys.argv = ['atest', 'job', 'list', '-a', '-u', 'user0', '--ignore_site_file'] self.god.mock_io() sys.exit.expect_call(1).and_raises(cli_mock.ExitException) self.assertRaises(cli_mock.ExitException, testjob.parse) self.god.unmock_io() | 6f62febcbc85e4bfab852fef95e2af9570c88fa7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/6f62febcbc85e4bfab852fef95e2af9570c88fa7/job_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4688,
67,
1098,
67,
10088,
67,
454,
67,
464,
67,
1355,
12,
2890,
4672,
1842,
4688,
273,
1719,
18,
4688,
67,
1098,
1435,
2589,
18,
19485,
273,
10228,
270,
395,
2187,
296,
4688... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4688,
67,
1098,
67,
10088,
67,
454,
67,
464,
67,
1355,
12,
2890,
4672,
1842,
4688,
273,
1719,
18,
4688,
67,
1098,
1435,
2589,
18,
19485,
273,
10228,
270,
395,
2187,
296,
4688... |
sage: r.dev_off() | sage: r.dev_off() | def plot(self, *args, **kwargs): """ The R plot function. Type r.help('plot') for much more extensive documentatin about this function. See the examples below for how to use it to write output to a FILE. | cc0ae2fe046cb29c675913dd00183435eaa1f913 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/cc0ae2fe046cb29c675913dd00183435eaa1f913/r.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1021,
534,
3207,
445,
18,
225,
1412,
436,
18,
5201,
2668,
4032,
6134,
364,
9816,
1898,
1110,
14315,
1668,
270,
267,
2973,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3207,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1021,
534,
3207,
445,
18,
225,
1412,
436,
18,
5201,
2668,
4032,
6134,
364,
9816,
1898,
1110,
14315,
1668,
270,
267,
2973,
333,
... |
return self.formatSupplementLine('__traceback_info__: %s' % tbi) | return self.formatSupplementLine('__traceback_info__: %s' % (tbi,)) | def formatTracebackInfo(self, tbi): return self.formatSupplementLine('__traceback_info__: %s' % tbi) | 488d94d7117d4d37e0a8a1990a745c80b73f9d10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/488d94d7117d4d37e0a8a1990a745c80b73f9d10/ExceptionFormatter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
3448,
823,
966,
12,
2890,
16,
8739,
77,
4672,
327,
365,
18,
2139,
3088,
4330,
1670,
2668,
972,
21696,
67,
1376,
972,
30,
738,
87,
11,
738,
8739,
77,
13,
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,
740,
3448,
823,
966,
12,
2890,
16,
8739,
77,
4672,
327,
365,
18,
2139,
3088,
4330,
1670,
2668,
972,
21696,
67,
1376,
972,
30,
738,
87,
11,
738,
8739,
77,
13,
2,
-100,
-100,
-100,
-10... |
optparser.error('Error reading config file:\n %s' % e) | if len(options.configfiles) == 1: cf_name = 'config file %s' % options.configfiles[0] else: cf_name = 'config files %s' % ', '.join(options.configfiles optparser.error('Error reading %s:\n %s' % (cf_name, e)) | def parse_arguments(): # Construct the option parser. usage = '%prog ACTION [options] NAMES...' version = "Epydoc, version %s" % epydoc.__version__ optparser = OptionParser(usage=usage, version=version) action_group = OptionGroup(optparser, 'Actions') options_group = OptionGroup(optparser, 'Options') # Add options -- ... | 8ad060af38895e1974a0306ce4ce4d055d6a2df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/8ad060af38895e1974a0306ce4ce4d055d6a2df5/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7099,
13332,
468,
14291,
326,
1456,
2082,
18,
4084,
273,
1995,
14654,
11385,
306,
2116,
65,
6048,
55,
7821,
1177,
273,
315,
41,
2074,
2434,
16,
1177,
738,
87,
6,
738,
425,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7099,
13332,
468,
14291,
326,
1456,
2082,
18,
4084,
273,
1995,
14654,
11385,
306,
2116,
65,
6048,
55,
7821,
1177,
273,
315,
41,
2074,
2434,
16,
1177,
738,
87,
6,
738,
425,
20... |
myProtocol=["http://","https://"] | self.validProtocols=["http://","https://"] | def __init__(self,publicationDirectory=None,publicationURL=None): protocolTag="@PROTO@/" myProtocol=["http://","https://"] givenProtocol="" if publicationDirectory == None or\ publicationURL == None: sys.stderr.write("Error: Initializing filenameToURLMappe instance \ | a65b366e60576c35e860aa0ab34a1ec29bc5c084 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/a65b366e60576c35e860aa0ab34a1ec29bc5c084/makeCheckListWiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
28631,
2853,
33,
7036,
16,
28631,
1785,
33,
7036,
4672,
1771,
1805,
1546,
36,
25455,
36,
4898,
365,
18,
877,
21657,
33,
9614,
2505,
2207,
15937,
4528,
2207... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28631,
2853,
33,
7036,
16,
28631,
1785,
33,
7036,
4672,
1771,
1805,
1546,
36,
25455,
36,
4898,
365,
18,
877,
21657,
33,
9614,
2505,
2207,
15937,
4528,
2207... |
[('libtool-1.3.5-mktemp.patch' , 1), ('libtool-1.4.3-ltmain-SED.patch', 1), ('libtool-1.4.2-expsym-linux.patch', 1)], | [('libtool-1.4.3-ltmain-SED.patch', 1), ('libtool-1.4.2-expsym-linux.patch', 1), ('libtool-1.4.2-multilib.patch', 1), ('libtool-1.5-libtool.m4-x86_64.patch', 1)], | def build(self, config): if not self.wants_package(): return | 0b4289188eb835ec9ba1ca06f2cf41b9ffe497ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/0b4289188eb835ec9ba1ca06f2cf41b9ffe497ca/bootstrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
642,
4672,
309,
486,
365,
18,
91,
4388,
67,
5610,
13332,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
1361,
12,
2890,
16,
642,
4672,
309,
486,
365,
18,
91,
4388,
67,
5610,
13332,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
group by build.rev_time, build.rev, build.platform | group by build.rev_time, build.rev, build.platform, report.id | def generate_chart_data(self, req, config, category): assert category == 'lint' | 4c334afcaaa4993736dfec97479a48779b666b03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4547/4c334afcaaa4993736dfec97479a48779b666b03/lint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
11563,
67,
892,
12,
2890,
16,
1111,
16,
642,
16,
3150,
4672,
1815,
3150,
422,
296,
5671,
11,
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,
2103,
67,
11563,
67,
892,
12,
2890,
16,
1111,
16,
642,
16,
3150,
4672,
1815,
3150,
422,
296,
5671,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Returns boolean value of ``item`` in ``self``. | Returns boolean value of ``item in self``. | def __contains__(self, item): """ Returns boolean value of ``item`` in ``self``. EXAMPLES:: sage: G = SymmetricGroup(16) sage: g = G.gen(0) sage: h = G.gen(1) sage: g^7*h*g*h in G True sage: G = SymmetricGroup(4) sage: g = G((1,2,3,4)) sage: h = G((1,2)) sage: H = PermutationGroup([[(1,2,3,4)], [(1,2),(3,4)]]) sage: ... | 317c35fede8b7240fbdacb4dd62bbce96157450d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/317c35fede8b7240fbdacb4dd62bbce96157450d/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
761,
4672,
3536,
2860,
1250,
460,
434,
12176,
1726,
316,
365,
68,
8338,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
10042,
6899,
1114,
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,
1001,
12298,
972,
12,
2890,
16,
761,
4672,
3536,
2860,
1250,
460,
434,
12176,
1726,
316,
365,
68,
8338,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
10042,
6899,
1114,
12,
... |
raise IPCDisconnectedError("Remote end no longer connected") | return | def _send_packet(self, packet_type, data, seq = 0, timeout = None): if not self.socket: raise IPCDisconnectedError("Remote end no longer connected") if timeout == None: timeout = self._default_timeout if seq == 0: seq = self.last_seq = self.last_seq + 1 | 3ba78ab154465b2ff0620e0ded429951a6f040f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/3ba78ab154465b2ff0620e0ded429951a6f040f0/ipc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
11482,
12,
2890,
16,
4414,
67,
723,
16,
501,
16,
3833,
273,
374,
16,
2021,
273,
599,
4672,
309,
486,
365,
18,
7814,
30,
327,
225,
309,
2021,
422,
599,
30,
2021,
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,
389,
4661,
67,
11482,
12,
2890,
16,
4414,
67,
723,
16,
501,
16,
3833,
273,
374,
16,
2021,
273,
599,
4672,
309,
486,
365,
18,
7814,
30,
327,
225,
309,
2021,
422,
599,
30,
2021,
273,
... |
u.warn(_("** report bug details to mercurial@selenic.com\n")) | u.warn(_("** report bug details to " "http://www.selenic.com/mercurial/bts\n")) u.warn(_("** or mercurial@selenic.com\n")) | def print_time(): t = get_times() u.warn(_("Time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f)\n") % (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3])) | 357235d4a871576de2be1c90a68c7b62e1e590bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/357235d4a871576de2be1c90a68c7b62e1e590bd/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
582,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
582,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
74... |
def __init__(self, out=None): | def __init__(self, out=None, encoding="iso-8859-1"): | def __init__(self, out=None): if out is None: import sys out = sys.stdout handler.ContentHandler.__init__(self) self._out = out | 1ae857dd21d675f660ac4264cbe9baea51cad6c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1ae857dd21d675f660ac4264cbe9baea51cad6c7/saxutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
596,
33,
7036,
16,
2688,
1546,
9699,
17,
17258,
17,
21,
6,
4672,
309,
596,
353,
599,
30,
1930,
2589,
596,
273,
2589,
18,
10283,
1838,
18,
1350,
1503,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
596,
33,
7036,
16,
2688,
1546,
9699,
17,
17258,
17,
21,
6,
4672,
309,
596,
353,
599,
30,
1930,
2589,
596,
273,
2589,
18,
10283,
1838,
18,
1350,
1503,
1... |
def dump_blocks(self, blocks, filename): | def dump_blocks(self, blocks, filename=None): | def dump_blocks(self, blocks, filename): i = 0 while 1: ## Split the file into smaller runs if len(blocks) - i > self.MAX_SIZE: run = blocks[i:i+self.MAX_SIZE] self.dump_block_run(run, inode = filename) i += self.MAX_SIZE else: run = blocks[i:] self.dump_block_run(run, inode = filename) break | 94f16c0b6a9b9545c48ee8479d37c9bae0e039b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5569/94f16c0b6a9b9545c48ee8479d37c9bae0e039b0/imager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
7996,
12,
2890,
16,
4398,
16,
1544,
33,
7036,
4672,
277,
273,
374,
1323,
404,
30,
7541,
5385,
326,
585,
1368,
10648,
7597,
309,
562,
12,
7996,
13,
300,
277,
405,
365,
18,
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,
4657,
67,
7996,
12,
2890,
16,
4398,
16,
1544,
33,
7036,
4672,
277,
273,
374,
1323,
404,
30,
7541,
5385,
326,
585,
1368,
10648,
7597,
309,
562,
12,
7996,
13,
300,
277,
405,
365,
18,
6... |
self.transparency = transparency | self.transparency = transparency | def __init__(self, author=None, category=None, content=None, atom_id=None, link=None, published=None, title=None, updated=None, transparency=None, comments=None, event_status=None, send_event_notifications=None, visibility=None, recurrence=None, recurrence_exception=None, where=None, when=None, who=None, quick_add=None... | 220fb3846b34b52b462236a865acc3580b5bf99c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/220fb3846b34b52b462236a865acc3580b5bf99c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
913,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
9487,
33,
7036,
16,
2077,
33,
7036,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
913,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
9487,
33,
7036,
16,
2077,
33,
7036,
16,
3... |
if nextToRect != QRect(0, 0, 0, 0): rotation = nextTo.rotation else: | def resize(self, scaled): """resize the tile to the board size""" if self.rect(scaled): return self.rect(scaled) newMetrics = self.board.metrics(scaled) nextTo = self.nextTo if nextTo: if not nextTo.rect(scaled): nextTo.resize(newMetrics, scaled) nextToRect = nextTo.rect(scaled) else: nextToRect = QRect(0, 0, 0, 0) new... | 7b224c7daa06c9fecc655bccd2dc116a8deab304 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/7b224c7daa06c9fecc655bccd2dc116a8deab304/board.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7041,
12,
2890,
16,
12304,
4672,
3536,
15169,
326,
4769,
358,
326,
11094,
963,
8395,
309,
365,
18,
2607,
12,
20665,
4672,
327,
365,
18,
2607,
12,
20665,
13,
394,
5653,
273,
365,
18,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7041,
12,
2890,
16,
12304,
4672,
3536,
15169,
326,
4769,
358,
326,
11094,
963,
8395,
309,
365,
18,
2607,
12,
20665,
4672,
327,
365,
18,
2607,
12,
20665,
13,
394,
5653,
273,
365,
18,
37... | |
for var in doc.variables.items(): pass | for var in doc.variables.values(): self._get_index_terms(var.descr, var, terms, links) for (field, arg, descr) in var.metadata: self._get_index_terms(descr, var, terms, links) | def _extract_term_index(self): """ Extract the set of terms that should be indexed from all documented docstrings. Return the extracted set as a list of tuples of the form C{(key, term, [links])}. This list is used by L{write_indices()} to construct the term index. @rtype: C{list} of C{(string, ParsedDocstring, list o... | 28d88ae14617650a4a829fae94668100dc4e2b05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/28d88ae14617650a4a829fae94668100dc4e2b05/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
67,
6408,
67,
1615,
12,
2890,
4672,
3536,
8152,
326,
444,
434,
6548,
716,
1410,
506,
8808,
628,
777,
23051,
997,
10219,
18,
225,
2000,
326,
9438,
444,
487,
279,
666,
434,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8004,
67,
6408,
67,
1615,
12,
2890,
4672,
3536,
8152,
326,
444,
434,
6548,
716,
1410,
506,
8808,
628,
777,
23051,
997,
10219,
18,
225,
2000,
326,
9438,
444,
487,
279,
666,
434,
10... |
return self.GetNodeValue(type,st) | return self.getNodeValue(type,st) | def _get_NodeValue(self, type=type, st=type('')): return self.GetNodeValue(type,st) | 8835bf479a848bd4d8f51a8327f97c91cee1c2ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8835bf479a848bd4d8f51a8327f97c91cee1c2ab/STDOM.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
907,
620,
12,
2890,
16,
618,
33,
723,
16,
384,
33,
723,
2668,
26112,
30,
327,
365,
18,
588,
907,
620,
12,
723,
16,
334,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
907,
620,
12,
2890,
16,
618,
33,
723,
16,
384,
33,
723,
2668,
26112,
30,
327,
365,
18,
588,
907,
620,
12,
723,
16,
334,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
episode['show'] = showName episode['season'] = int( matchSN.group(1) ) | episode['show'] = showName episode['season'] = int( matchSN.group(1) ) episode['episode'] = 0 episode['title'] = "" episode['url'] = "" episode['airdate'] = ( 0, 0, 0 ) | def getEpisodeList(self, id): # Clear episodeList self.episodeList = [] | 0bf7811c929cfbccf828e72ca5b2ae394dfebebe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/765/0bf7811c929cfbccf828e72ca5b2ae394dfebebe/TvRage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4774,
84,
11802,
682,
12,
2890,
16,
612,
4672,
468,
10121,
17054,
682,
365,
18,
29687,
682,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
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,
4774,
84,
11802,
682,
12,
2890,
16,
612,
4672,
468,
10121,
17054,
682,
365,
18,
29687,
682,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
list.append(item) | if year != '0000': try: if int(item.date) == int(year): list.append(item) except: pass else: try: x = item.date except: list.append(item) | def browse_search_album_by_artist(self, artist, album): list = [] for item in self.conn.do.search('album', album, 'artist', artist): # Make sure it's an exact match: if artist.lower() == item.artist.lower() and album.lower() == item.album.lower(): list.append(item) return list | 5702d6d9e3d709a24b93d00b466aeb171fa3d0c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/5702d6d9e3d709a24b93d00b466aeb171fa3d0c9/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
3072,
67,
25090,
67,
1637,
67,
25737,
12,
2890,
16,
15469,
16,
14844,
4672,
666,
273,
5378,
364,
761,
316,
365,
18,
4646,
18,
2896,
18,
3072,
2668,
25090,
2187,
14844,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
3072,
67,
25090,
67,
1637,
67,
25737,
12,
2890,
16,
15469,
16,
14844,
4672,
666,
273,
5378,
364,
761,
316,
365,
18,
4646,
18,
2896,
18,
3072,
2668,
25090,
2187,
14844,
16,
2... |
out[0] = variable | out[0] = theano._asarray(variable, str(variable.dtype)) | def perform(self, node, (a,b), (out,)): if a.shape[1] != b.shape[0]: raise ValueError('shape mismatch in StructuredDot.perform', (a.shape, b.shape)) | b72ed60b8711da0371b64cd450b3a687344817c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/b72ed60b8711da0371b64cd450b3a687344817c0/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
12,
2890,
16,
756,
16,
261,
69,
16,
70,
3631,
261,
659,
16,
3719,
30,
309,
279,
18,
4867,
63,
21,
65,
480,
324,
18,
4867,
63,
20,
14542,
1002,
2068,
2668,
4867,
13484,
316,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
12,
2890,
16,
756,
16,
261,
69,
16,
70,
3631,
261,
659,
16,
3719,
30,
309,
279,
18,
4867,
63,
21,
65,
480,
324,
18,
4867,
63,
20,
14542,
1002,
2068,
2668,
4867,
13484,
316,
7... |
brush = wx.Brush(wx.NamedColour(self.week_color), wx.SOLID) self.DC.SetBrush(brush) self.DC.DrawRectangle((self.gridx[0], self.gridy[0]), (rect_w+1, height)) | brush = wx.Brush(MakeColor(self.colors[COLOR_HEADER_BACKGROUND]), wx.SOLID) DC.SetBrush(brush) | def DrawWeek(self): # draw the week days width = self.gridx[1]-self.gridx[0] height = self.gridy[1] - self.gridy[0] rect_w = self.gridx[7]-self.gridx[0] | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
6630,
12,
2890,
4672,
377,
468,
3724,
326,
4860,
4681,
1835,
273,
365,
18,
5222,
92,
63,
21,
65,
17,
2890,
18,
5222,
92,
63,
20,
65,
2072,
273,
365,
18,
5222,
93,
63,
21,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10184,
6630,
12,
2890,
4672,
377,
468,
3724,
326,
4860,
4681,
1835,
273,
365,
18,
5222,
92,
63,
21,
65,
17,
2890,
18,
5222,
92,
63,
20,
65,
2072,
273,
365,
18,
5222,
93,
63,
21,
65... |
QItemDelegate.__init__(self, parent) | QStyledItemDelegate.__init__(self, parent) | def __init__(self, parent): QItemDelegate.__init__(self, parent) self._parent = parent self.star_path = QPainterPath() self.star_path.moveTo(90, 50) for i in range(1, 5): self.star_path.lineTo(50 + 40 * cos(0.8 * i * pi), \ 50 + 40 * sin(0.8 * i * pi)) self.star_path.closeSubpath() self.star_path.setFillRule(Qt.Winding... | d128c2ef210bdfa2701acd6502b6bbee87965ca0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/d128c2ef210bdfa2701acd6502b6bbee87965ca0/library.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
2238,
24273,
1259,
1180,
9586,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
6315,
2938,
273,
982,
365,
18,
10983,
67,
803,
273,
2238,
15775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
982,
4672,
2238,
24273,
1259,
1180,
9586,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
6315,
2938,
273,
982,
365,
18,
10983,
67,
803,
273,
2238,
15775,
... |
special = re.compile('''[<>'"]''') bare_ampersand = re.compile("&(?! | def fatalError(self, exc): self.error(exc) raise exc | b46d7e4f5773873813bf0c2abf7f311d20f6ee9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/b46d7e4f5773873813bf0c2abf7f311d20f6ee9d/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10081,
668,
12,
2890,
16,
3533,
4672,
365,
18,
1636,
12,
10075,
13,
1002,
3533,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10081,
668,
12,
2890,
16,
3533,
4672,
365,
18,
1636,
12,
10075,
13,
1002,
3533,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
""" Return the discriminant of the quadratic extension K=Q(\sqrt{D}), i.e. | r""" Return the discriminant of the quadratic extension $K=Q(\sqrt{D})$, i.e. | def fundamental_discriminant(D): """ Return the discriminant of the quadratic extension K=Q(\sqrt{D}), i.e. an integer d congruent to either 0 or 1, mod 4, and such that, at most, the only square dividing it is 4. """ D = Integer(D) D = D.square_free_part() if D%4 == 1: return D return 4*D | bcf5a7291b0e34907611b6e66dd7cbe5746dd991 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bcf5a7291b0e34907611b6e66dd7cbe5746dd991/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1074,
14773,
287,
67,
2251,
9496,
20030,
12,
40,
4672,
436,
8395,
2000,
326,
29649,
20030,
434,
326,
26146,
2710,
271,
47,
33,
53,
4713,
24492,
95,
40,
6792,
8,
16,
277,
18,
73,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1074,
14773,
287,
67,
2251,
9496,
20030,
12,
40,
4672,
436,
8395,
2000,
326,
29649,
20030,
434,
326,
26146,
2710,
271,
47,
33,
53,
4713,
24492,
95,
40,
6792,
8,
16,
277,
18,
73,
... |
feats[11]=feats[8]-HXY1/max(HX,HY) feats[12]=sqrt(1-exp(-2*(HXY2-feats[8]))) | feats[di,0]=(p**2).sum() feats[di,1]=(k**2*px_minus_y).sum() feats[di,2]=1./sx/sy * ((i*j*p).sum() - ux*uy) feats[di,3]=((k-ux)**2*px).sum() feats[di,4]=(1./(1+(i-j)**2)*p).sum() feats[di,5]=(arange(2*N)*px_plus_y).sum() feats[di,6]=((arange(2*N)-feats[di,5])**2*px_plus_y).sum() feats[di,7]=entropy(px_plus_y) feats... | def haralickfeatures(img,directions = ALL_DIRECTIONS): """ Computes Haralick texture features for img. Returns a 13-vector of doubles """ if img.max() > 256: img = asarray(double(img) * 256./img.max(),uint8) p=computecooccurence(img,directions) N=256 feats=zeros(13) px=p.sum(0) py=p.sum(1) k=arange(N) ux=(k*px).sum() ... | d3802838f5b00bbb2c5160b954634d232577723f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12199/d3802838f5b00bbb2c5160b954634d232577723f/texture.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17895,
287,
1200,
7139,
12,
6081,
16,
9855,
87,
273,
8061,
67,
30516,
55,
4672,
3536,
14169,
281,
670,
297,
287,
1200,
11428,
4467,
364,
3774,
18,
225,
2860,
279,
5958,
17,
7737,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17895,
287,
1200,
7139,
12,
6081,
16,
9855,
87,
273,
8061,
67,
30516,
55,
4672,
3536,
14169,
281,
670,
297,
287,
1200,
11428,
4467,
364,
3774,
18,
225,
2860,
279,
5958,
17,
7737,
434,
... |
try: filename = form[upload_context.nameInForm].filename or '' remotefile = form[upload_context.nameInForm].file except (KeyError, AttributeError): pass else: | fieldstorage_file = form.getFile(upload_context.nameInForm) if fieldstorage_file is not None: filename = fieldstorage_file.filename or '' remotefile = fieldstorage_file.file | def accept(self, context, form): import os.path sources = [] url_context = context.entry(self, context.name+'-url') servfile_context = context.entry(self, context.name+'-sid') filename_context = context.entry(self, context.name+'-filename') | 9f6e6ddb6305fa94384b6e80e2116449de1973ac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1872/9f6e6ddb6305fa94384b6e80e2116449de1973ac/Fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
16,
819,
16,
646,
4672,
1930,
1140,
18,
803,
225,
5550,
273,
5378,
880,
67,
2472,
273,
819,
18,
4099,
12,
2890,
16,
819,
18,
529,
6797,
17,
718,
6134,
13515,
768,
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,
2791,
12,
2890,
16,
819,
16,
646,
4672,
1930,
1140,
18,
803,
225,
5550,
273,
5378,
880,
67,
2472,
273,
819,
18,
4099,
12,
2890,
16,
819,
18,
529,
6797,
17,
718,
6134,
13515,
768,
67,... |
def capture_image(self): | def capture_image(self, savefilename): | def capture_image(self): screensize = self.get_screen_size() | c48035547176d9484581a463bd2171b957b4567b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3638/c48035547176d9484581a463bd2171b957b4567b/timedscreenshot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7477,
67,
2730,
12,
2890,
16,
1923,
3459,
4672,
225,
888,
266,
773,
554,
273,
365,
18,
588,
67,
9252,
67,
1467,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7477,
67,
2730,
12,
2890,
16,
1923,
3459,
4672,
225,
888,
266,
773,
554,
273,
365,
18,
588,
67,
9252,
67,
1467,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if file.endswith(".gz"): | if filename.endswith(".gz"): | def unpackSources(self, builddir): | 7e87e4a2066ad87e01658b5a03e8e4dbdf32fde2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/7e87e4a2066ad87e01658b5a03e8e4dbdf32fde2/recipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
8628,
12,
2890,
16,
25666,
330,
449,
481,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
8628,
12,
2890,
16,
25666,
330,
449,
481,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return locale.nl_langinfo(locale.MON_1+num-1).decode('utf-8') | if hasattr(locale, 'nl_langinfo'): return locale.nl_langinfo(locale.MON_1+num-1).decode('utf-8') Months = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'] return Site.mediawiki_message(Months[num-1]) | def int2month(num): """Returns the locale's full name of month 'num' (1-12).""" return locale.nl_langinfo(locale.MON_1+num-1).decode('utf-8') | 2a65ad8edfdf63daf22bb0ff8dfba958ff565976 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/2a65ad8edfdf63daf22bb0ff8dfba958ff565976/archivebot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
509,
22,
7496,
12,
2107,
4672,
3536,
1356,
326,
2573,
1807,
1983,
508,
434,
3138,
296,
2107,
11,
261,
21,
17,
2138,
13,
12123,
309,
3859,
12,
6339,
16,
296,
14039,
67,
4936,
1376,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
509,
22,
7496,
12,
2107,
4672,
3536,
1356,
326,
2573,
1807,
1983,
508,
434,
3138,
296,
2107,
11,
261,
21,
17,
2138,
13,
12123,
309,
3859,
12,
6339,
16,
296,
14039,
67,
4936,
1376,
11,
... |
message = _from_svn(self._get_prop(core.SVN_PROP_REVISION_LOG)) author = _from_svn(self._get_prop(core.SVN_PROP_REVISION_AUTHOR)) | message = self._get_prop(core.SVN_PROP_REVISION_LOG) author = self._get_prop(core.SVN_PROP_REVISION_AUTHOR) message = message and to_unicode(message, 'utf-8') author = author and to_unicode(author, 'utf-8') | def __init__(self, rev, authz, scope, fs_ptr, pool=None): self.rev = rev self.authz = authz self.scope = scope self.fs_ptr = fs_ptr self.pool = Pool(pool) message = _from_svn(self._get_prop(core.SVN_PROP_REVISION_LOG)) author = _from_svn(self._get_prop(core.SVN_PROP_REVISION_AUTHOR)) _date = self._get_prop(core.SVN_PRO... | 9adc2d4f1e71ce837315236e41f33060fb1932de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/9adc2d4f1e71ce837315236e41f33060fb1932de/svn_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5588,
16,
18686,
16,
2146,
16,
2662,
67,
6723,
16,
2845,
33,
7036,
4672,
365,
18,
9083,
273,
5588,
365,
18,
1944,
94,
273,
18686,
365,
18,
4887,
273,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5588,
16,
18686,
16,
2146,
16,
2662,
67,
6723,
16,
2845,
33,
7036,
4672,
365,
18,
9083,
273,
5588,
365,
18,
1944,
94,
273,
18686,
365,
18,
4887,
273,
2... |
self._returncode = None | def __init__(self, node, argv, executable = None, stdin = None, stdout = None, stderr = None, shell = False, cwd = None, env = None, user = None): self._slave = node._slave """Forks and execs a program, with stdio redirection and user switching. A netns Node to run the program is is specified as the first parameter. | 8ec800fe2e1be6413d91214011f7abbfb5241ed2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8495/8ec800fe2e1be6413d91214011f7abbfb5241ed2/subprocess_.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
756,
16,
5261,
16,
9070,
273,
599,
16,
8801,
273,
599,
16,
3909,
273,
599,
16,
4514,
273,
599,
16,
5972,
273,
1083,
16,
7239,
273,
599,
16,
1550,
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,
1001,
2738,
972,
12,
2890,
16,
756,
16,
5261,
16,
9070,
273,
599,
16,
8801,
273,
599,
16,
3909,
273,
599,
16,
4514,
273,
599,
16,
5972,
273,
1083,
16,
7239,
273,
599,
16,
1550,
273,
... | |
for proposal, status in request.post.items(): if proposal == 'Commit' or status=='-': continue assert proposal.startswith('talk.') proposal = int(proposal[5:]) c.highlight.add(proposal) proposal = Proposal.find_by_id(proposal) status = ProposalStatus.find_by_name(status) proposal.status = status c.proposals = self.dbs... | talks = self.form_result['talk'] statuses = self.form_result['status'] for talk, status in zip(talks, statuses): if status is not None: c.highlight.add(talk.id) talk.status = status meta.Session.commit() c.proposals = Proposal.find_all() c.statuses = ProposalStatus.find_all() | def _approve(self): c.highlight = set() for proposal, status in request.post.items(): if proposal == 'Commit' or status=='-': continue assert proposal.startswith('talk.') proposal = int(proposal[5:]) c.highlight.add(proposal) proposal = Proposal.find_by_id(proposal) status = ProposalStatus.find_by_name(status) proposal... | 93f30e1ec41248e52209889b696dbfa24c0c1b97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/93f30e1ec41248e52209889b696dbfa24c0c1b97/proposal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12908,
537,
12,
2890,
4672,
276,
18,
15978,
273,
444,
1435,
364,
14708,
16,
1267,
316,
590,
18,
2767,
18,
3319,
13332,
309,
14708,
422,
296,
5580,
11,
578,
1267,
18920,
17,
4278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12908,
537,
12,
2890,
4672,
276,
18,
15978,
273,
444,
1435,
364,
14708,
16,
1267,
316,
590,
18,
2767,
18,
3319,
13332,
309,
14708,
422,
296,
5580,
11,
578,
1267,
18920,
17,
4278,
... |
self._logger.debug("Tracks table found.") | self._logger.debug("Track table found.") | def _initCreateTrackTable(self): c = self._conn.cursor() try: c.execute("""create table tracks (trackid integer primary key autoincrement, path text, artist text, album text, title text, tracknumber text, unscored integer)""") self._logger.debug("Tracks table created.") except sqlite3.OperationalError as err: if str(er... | afb8ac357cf5a6a40289a31d13b33e838bf2bdb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/afb8ac357cf5a6a40289a31d13b33e838bf2bdb1/Database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
1684,
4402,
1388,
12,
2890,
4672,
276,
273,
365,
6315,
4646,
18,
9216,
1435,
775,
30,
276,
18,
8837,
2932,
3660,
2640,
1014,
13933,
261,
4101,
350,
3571,
3354,
498,
2059,
3003... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
1684,
4402,
1388,
12,
2890,
4672,
276,
273,
365,
6315,
4646,
18,
9216,
1435,
775,
30,
276,
18,
8837,
2932,
3660,
2640,
1014,
13933,
261,
4101,
350,
3571,
3354,
498,
2059,
3003... |
229 | 229 | def padic_height_pairing_matrix(self, p, prec=20, height=None, check_hypotheses=True): r""" Computes the cyclotomic $p$-adic height pairing matrix of this curve with respect to the basis self.gens() for the Mordell-Weil group for a given odd prime p of good ordinary reduction. | 14f1fc8cda9bf39915df8b02111ef05d810ed99a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/14f1fc8cda9bf39915df8b02111ef05d810ed99a/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281... |
sys.stdout.write( "Searching for MySQL includes... " ) | sys.stdout.write( " Searching for MySQL includes: " ) | def checkMySQL(options): if sys.platform == "win32": MySQL_LIBSEARCHPATH = [ sys.prefix + "\Libs\mysqlclient*.lib" ] MySQL_INCSEARCHPATH = [ sys.prefix + "\include\mysql.h" ] elif sys.platform == "linux2": MySQL_LIBSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.so", \ "/usr/local/lib/mysql/libmysqlclient*.so", \ "/us... | d980221e60ef0a27e1c9e50d015876701de198d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d980221e60ef0a27e1c9e50d015876701de198d2/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
28723,
12,
2116,
4672,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
5664,
87,
64,
12527,
2625,
11146,
2941,
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,
866,
28723,
12,
2116,
4672,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
5664,
87,
64,
12527,
2625,
11146,
2941,
6... |
os.system("cppcheck --enable=all -I MyGUIEngine/Scripts/cppheck -I Platforms/DirectX/DirectXPlatform/include Platforms/DirectX/DirectXPlatform/src") | os.system("cppcheck --enable=all -I Scripts/cppcheck -I Platforms/DirectX/DirectXPlatform/include Platforms/DirectX/DirectXPlatform/src") | def checkFolderSources(folder) : os.system("cppcheck --enable=all -I MyGUIEngine/Scripts/cppheck " + folder) | fc0baea95bf26eb1876743251c3a38fca66fd8d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6622/fc0baea95bf26eb1876743251c3a38fca66fd8d9/cppcheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
3899,
8628,
12,
5609,
13,
294,
1140,
18,
4299,
2932,
4057,
84,
1893,
1493,
7589,
33,
454,
300,
45,
8005,
43,
5370,
4410,
19,
15041,
19,
4057,
84,
1129,
315,
397,
3009,
13,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
3899,
8628,
12,
5609,
13,
294,
1140,
18,
4299,
2932,
4057,
84,
1893,
1493,
7589,
33,
454,
300,
45,
8005,
43,
5370,
4410,
19,
15041,
19,
4057,
84,
1129,
315,
397,
3009,
13,
282,
... |
path = weboob.applications.__path__[0] applications = [] regexp = re.compile('^%s/([\w\d_]+)$' % path) for root, dirs, files in os.walk(path): m = regexp.match(root) if m and '__init__.py' in files: applications.append(m.group(1)) print ' '.join(applications) | for path in weboob.applications.__path__: regexp = re.compile('^%s/([\w\d_]+)$' % path) for root, dirs, files in os.walk(path): m = regexp.match(root) if m and '__init__.py' in files: applications.add(m.group(1)) print ' '.join(sorted(applications)).encode('utf-8') | def command_applications(self, *caps): import weboob.applications path = weboob.applications.__path__[0] applications = [] regexp = re.compile('^%s/([\w\d_]+)$' % path) for root, dirs, files in os.walk(path): m = regexp.match(root) if m and '__init__.py' in files: applications.append(m.group(1)) | dbaaa8ea0a3fb018e623614cf7fe31ebf8ce2c2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/dbaaa8ea0a3fb018e623614cf7fe31ebf8ce2c2c/weboobcfg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
3685,
87,
12,
2890,
16,
380,
22984,
4672,
1930,
732,
1075,
947,
18,
3685,
87,
589,
273,
732,
1075,
947,
18,
3685,
87,
16186,
803,
972,
63,
20,
65,
12165,
273,
5378,
7195,
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,
1296,
67,
3685,
87,
12,
2890,
16,
380,
22984,
4672,
1930,
732,
1075,
947,
18,
3685,
87,
589,
273,
732,
1075,
947,
18,
3685,
87,
16186,
803,
972,
63,
20,
65,
12165,
273,
5378,
7195,
2... |
centdir = struct.pack(structCentralDir, stringCentralDir, create_version, zinfo.create_system, extract_version, zinfo.reserved, zinfo.flag_bits, zinfo.compress_type, dostime, dosdate, zinfo.CRC, compress_size, file_size, len(zinfo.filename), len(extra_data), len(zinfo.comment), 0, zinfo.internal_attr, zinfo.external_at... | try: centdir = struct.pack(structCentralDir, stringCentralDir, create_version, zinfo.create_system, extract_version, zinfo.reserved, zinfo.flag_bits, zinfo.compress_type, dostime, dosdate, zinfo.CRC, compress_size, file_size, len(zinfo.filename), len(extra_data), len(zinfo.comment), 0, zinfo.internal_attr, zinfo.extern... | def close(self): """Close the file, and for mode "w" and "a" write the ending records.""" if self.fp is None: return | 8758505b352b3425ba646bdbff7a34c21eb6618a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/8758505b352b3425ba646bdbff7a34c21eb6618a/zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4605,
326,
585,
16,
471,
364,
1965,
315,
91,
6,
471,
315,
69,
6,
1045,
326,
11463,
3853,
12123,
309,
365,
18,
7944,
353,
599,
30,
327,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4605,
326,
585,
16,
471,
364,
1965,
315,
91,
6,
471,
315,
69,
6,
1045,
326,
11463,
3853,
12123,
309,
365,
18,
7944,
353,
599,
30,
327,
2,
-100,
-100,
-100... |
while not self.finished: | while not self.finished and prefinished: | def _finalize_connect(self, prefinished): """ Called after we connect to all given InProgress. prefinished is a list of indexes (relative to self._objects) that were already finished when we tried to connect to them. """ if prefinished: # One or more IP was already finished. We pass each one to # self.finish until we... | a8186295ea7b9a1111b4ccf3f61714e42fcaacbf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/a8186295ea7b9a1111b4ccf3f61714e42fcaacbf/async.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
30343,
67,
3612,
12,
2890,
16,
675,
13527,
4672,
3536,
11782,
1839,
732,
3077,
358,
777,
864,
657,
5491,
18,
225,
675,
13527,
353,
279,
666,
434,
5596,
261,
11626,
358,
365,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30343,
67,
3612,
12,
2890,
16,
675,
13527,
4672,
3536,
11782,
1839,
732,
3077,
358,
777,
864,
657,
5491,
18,
225,
675,
13527,
353,
279,
666,
434,
5596,
261,
11626,
358,
365,
6315,
... |
EMR_UNKNOWN.__init__(self) | _EMR_UNKNOWN.__init__(self) | def __init__(self,points=[],bounds=(0,0,0,0)): EMR_UNKNOWN.__init__(self) self.setBounds(bounds) self.cptl=len(points) self.aptl=points | 688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4139,
22850,
6487,
10576,
28657,
20,
16,
20,
16,
20,
16,
20,
3719,
30,
389,
3375,
54,
67,
14737,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
5694,
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,
1001,
2738,
972,
12,
2890,
16,
4139,
22850,
6487,
10576,
28657,
20,
16,
20,
16,
20,
16,
20,
3719,
30,
389,
3375,
54,
67,
14737,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
5694,
12... |
if obj.target.startswith(' t = t.strip() else: t = '<link href="%s">%s</link>' % (xmlescape(href), t.strip()) else: t = u'<link href=" | if not obj.target.startswith(' t = '<link href="%s">%s</link>' % (xmlescape(href), t) else: t = u'<link href=" | def writeLink(self,obj): """ Link nodes are intra wiki links """ | ea5b03c1dafcd821e973ce457ff59b6cb2950902 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12390/ea5b03c1dafcd821e973ce457ff59b6cb2950902/rlwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2098,
12,
2890,
16,
2603,
4672,
3536,
4048,
2199,
854,
316,
2033,
9050,
4716,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
1045,
2098,
12,
2890,
16,
2603,
4672,
3536,
4048,
2199,
854,
316,
2033,
9050,
4716,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.alias = alias | self.alias = alias[1:-1] | def __init__(self, origin, alias): self.value = template.Variable(origin) | ce0e3051905ec5e0b346e50f99b1db330f086622 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/797/ce0e3051905ec5e0b346e50f99b1db330f086622/cyclope_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4026,
16,
2308,
4672,
365,
18,
1132,
273,
1542,
18,
3092,
12,
10012,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4026,
16,
2308,
4672,
365,
18,
1132,
273,
1542,
18,
3092,
12,
10012,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return ['-DTHEANO_KERN_WID='+str(nb)] | return ['-DTHEANO_KERN_WID='+str(nb)] | def c_compile_args(self): nb = 0 if self.kshp is not None: nb = self.kshp[1] return ['-DTHEANO_KERN_WID='+str(nb)] | 98f8608be75b8b81997fa956395f0063b48ea567 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/98f8608be75b8b81997fa956395f0063b48ea567/blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
11100,
67,
1968,
12,
2890,
4672,
4264,
273,
374,
309,
365,
18,
79,
674,
84,
353,
486,
599,
30,
4264,
273,
365,
18,
79,
674,
84,
63,
21,
65,
327,
10228,
17,
40,
24644,
1258... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
11100,
67,
1968,
12,
2890,
4672,
4264,
273,
374,
309,
365,
18,
79,
674,
84,
353,
486,
599,
30,
4264,
273,
365,
18,
79,
674,
84,
63,
21,
65,
327,
10228,
17,
40,
24644,
1258... |
elif not site.gettoken: | elif not site.gettoken(): | def getPage(site, name, get_edit_page = True, read_only = False, do_quote = True, get_redirect=False): """ Get the contents of page 'name' from the 'site' wiki Do not use this directly; for 99% of the possible ideas you can use the PageLink object instead. Arguments: site - the wiki site name - the p... | 1c06f3033318568e0a7ed257e72c647b39d0d497 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/1c06f3033318568e0a7ed257e72c647b39d0d497/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8957,
12,
4256,
16,
508,
16,
336,
67,
4619,
67,
2433,
273,
1053,
16,
855,
67,
3700,
273,
1083,
16,
741,
67,
6889,
273,
1053,
16,
336,
67,
7590,
33,
8381,
4672,
3536,
968,
326,
2939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8957,
12,
4256,
16,
508,
16,
336,
67,
4619,
67,
2433,
273,
1053,
16,
855,
67,
3700,
273,
1083,
16,
741,
67,
6889,
273,
1053,
16,
336,
67,
7590,
33,
8381,
4672,
3536,
968,
326,
2939,
... |
def _dom_node(self, dom): element = dom.Element(self.tagname) for attribute, value in self.attributes.items(): element.setAttribute(attribute, str(value)) for child in self.children: element.appendChild(child._dom_node(dom)) return element def _rooted_dom_node(self, domroot): | def _dom_node(self, domroot): | def _dom_node(self, dom): element = dom.Element(self.tagname) for attribute, value in self.attributes.items(): element.setAttribute(attribute, str(value)) for child in self.children: element.appendChild(child._dom_node(dom)) return element | 183416f6087e556f5bf9bbf1bbda38d4f68a92cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/183416f6087e556f5bf9bbf1bbda38d4f68a92cc/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9859,
67,
2159,
12,
2890,
16,
4092,
4672,
930,
273,
4092,
18,
1046,
12,
2890,
18,
2692,
529,
13,
364,
1566,
16,
460,
316,
365,
18,
4350,
18,
3319,
13332,
930,
18,
542,
1499,
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,
389,
9859,
67,
2159,
12,
2890,
16,
4092,
4672,
930,
273,
4092,
18,
1046,
12,
2890,
18,
2692,
529,
13,
364,
1566,
16,
460,
316,
365,
18,
4350,
18,
3319,
13332,
930,
18,
542,
1499,
12,... |
_menu_fade = FlagOpt('Menu Fade (in/out)', '-menu-fade', True, | _menu_fade = FlagOpt('Fade (in/out)', '-menu-fade', False, | def strip_all(filename): return '' | ad44fceb6bcbb8fd485159edd5423c89e170ce17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4675/ad44fceb6bcbb8fd485159edd5423c89e170ce17/todisc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
454,
12,
3459,
4672,
327,
875,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
454,
12,
3459,
4672,
327,
875,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
bugs[l[0]] = l[1].split(",") | pkg = l[0] if pkg.startswith('src:'): pkg = pkg[4:] bugs.setdefault(pkg, []) bugs[pkg] += l[1].split(",") | def read_bugs(self, basedir): """Read the release critial bug summary from the specified directory The RC bug summaries are read from the `BugsV' file within the directory specified as `basedir' parameter. The file contains rows with the format: | 0b7aa4f3be7785927b5e8d3430468b4d9b40d1dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2784/0b7aa4f3be7785927b5e8d3430468b4d9b40d1dd/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
19381,
12,
2890,
16,
15573,
4672,
3536,
1994,
326,
3992,
7921,
649,
7934,
4916,
628,
326,
1269,
1867,
225,
1021,
24206,
7934,
24297,
854,
855,
628,
326,
1375,
31559,
58,
11,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
19381,
12,
2890,
16,
15573,
4672,
3536,
1994,
326,
3992,
7921,
649,
7934,
4916,
628,
326,
1269,
1867,
225,
1021,
24206,
7934,
24297,
854,
855,
628,
326,
1375,
31559,
58,
11,
585... |
self.connect('confirm-overwrite', self._on_confirm_overwrite) | self.connect('response', self._on_response) | def __init__(self, title, parent): | 9df421dcc90b820b77aeae88a96fc74c5e00aa54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12852/9df421dcc90b820b77aeae88a96fc74c5e00aa54/filechooser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
16,
982,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
16,
982,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if l is None: | if arg is None: | def iter_morphisms(self, l=None, codomain=None, min_length=1): r""" Iterate over all morphisms with domain ``self`` and the given codmain. | 564ffdb70e6edfcbc0b0fa7b79a0926d1d565df3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/564ffdb70e6edfcbc0b0fa7b79a0926d1d565df3/words.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
81,
7657,
23749,
12,
2890,
16,
328,
33,
7036,
16,
11012,
1530,
33,
7036,
16,
1131,
67,
2469,
33,
21,
4672,
436,
8395,
11436,
1879,
777,
14354,
23749,
598,
2461,
12176,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1400,
67,
81,
7657,
23749,
12,
2890,
16,
328,
33,
7036,
16,
11012,
1530,
33,
7036,
16,
1131,
67,
2469,
33,
21,
4672,
436,
8395,
11436,
1879,
777,
14354,
23749,
598,
2461,
12176,
2890,
... |
aFileObject.readlines() | def __init__( self, aFileObject=None ): """read EML file and make domtree""" | a9136f9d7cfe64c07579b2e7a54c27bcec2d00e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a9136f9d7cfe64c07579b2e7a54c27bcec2d00e5/eml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
279,
21471,
33,
7036,
262,
30,
3536,
896,
512,
1495,
585,
471,
1221,
4092,
3413,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
279,
21471,
33,
7036,
262,
30,
3536,
896,
512,
1495,
585,
471,
1221,
4092,
3413,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
%description | %(requirements)s %%description | def createSpecFile(self, specFile, appName, version, releaseNo, sourceDir): """Create the spec file to build rpm package on Linux. Here is some information about what goes inside a RPM spec file: http://www.rpm.org/max-rpm/s1-rpm-build-creating-spec-file.html http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html """ sp... | d8f1e03cb2baf7fa0c7a54a88b434c7a71a3c3c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d8f1e03cb2baf7fa0c7a54a88b434c7a71a3c3c0/autoBuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1990,
812,
12,
2890,
16,
857,
812,
16,
10236,
16,
1177,
16,
3992,
2279,
16,
26844,
4672,
3536,
1684,
326,
857,
585,
358,
1361,
25228,
2181,
603,
13318,
18,
13743,
353,
2690,
1779,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1990,
812,
12,
2890,
16,
857,
812,
16,
10236,
16,
1177,
16,
3992,
2279,
16,
26844,
4672,
3536,
1684,
326,
857,
585,
358,
1361,
25228,
2181,
603,
13318,
18,
13743,
353,
2690,
1779,
... |
""" self.socket = socket | """ | def __init__(self, socket): """ <Purpose> Initializes the Multiplexer object. <Arguments> socket: Socket like object that is used for multiplexing """ # Setup the socket self.socket = socket # If we are given a socket, assume it is setup if socket != None: self.connectionInit = True | aa293112179760621e4e879489565b9632bd205e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/aa293112179760621e4e879489565b9632bd205e/Multiplexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2987,
4672,
3536,
411,
10262,
4150,
34,
10188,
3128,
326,
13531,
92,
264,
733,
18,
225,
411,
4628,
34,
2987,
30,
8758,
3007,
733,
716,
353,
1399,
364,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2987,
4672,
3536,
411,
10262,
4150,
34,
10188,
3128,
326,
13531,
92,
264,
733,
18,
225,
411,
4628,
34,
2987,
30,
8758,
3007,
733,
716,
353,
1399,
364,
30... |
raise RuntimeError("Problem calling Leon's wtdist program.") | raise RuntimeError("Problem calling Leon's wtdist program. Install gap_packages*.spkg and run './configure ../..; make'.") | def spectrum(self, method=None): r""" The default method (gap) uses a GAP kernel function (in C) written by Steve Linton. METHOD: - ``None`` - defaults to gap except in the binary case - ``gap`` - uses the GAP function | cb06d6d2c243c495d5005eb7226b76f1dea9767f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/cb06d6d2c243c495d5005eb7226b76f1dea9767f/linear_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17970,
12,
2890,
16,
707,
33,
7036,
4672,
436,
8395,
1021,
805,
707,
261,
14048,
13,
4692,
279,
611,
2203,
5536,
445,
261,
267,
385,
13,
5941,
635,
7780,
537,
511,
474,
265,
18,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17970,
12,
2890,
16,
707,
33,
7036,
4672,
436,
8395,
1021,
805,
707,
261,
14048,
13,
4692,
279,
611,
2203,
5536,
445,
261,
267,
385,
13,
5941,
635,
7780,
537,
511,
474,
265,
18,
225,
... |
self.module.SetParameterAsString ( key, str(keywords[key]) ); | self.module.SetParameterAsString ( key, str(keywords[key]) ) | def Execute ( self, *args, **keywords ): self.module = self.slicer.MRMLScene.CreateNodeByClass ( "vtkMRMLCommandLineModuleNode" ); self.module.SetModuleDescription ( self.name ) pargs = self.__FindPositionalArguments() diff = len(pargs) - len(args) if diff < 0: self.module.Delete(); raise Exception ( "Plugin: " + self.... | c71f58f968a5b11929095dbd41bf5fd6e12a31e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12580/c71f58f968a5b11929095dbd41bf5fd6e12a31e5/Slicer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
261,
365,
16,
380,
1968,
16,
2826,
11771,
262,
30,
365,
18,
2978,
273,
365,
18,
2069,
21349,
18,
23464,
1495,
14370,
18,
1684,
907,
30032,
261,
315,
11734,
79,
23464,
1495,
21391,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7903,
261,
365,
16,
380,
1968,
16,
2826,
11771,
262,
30,
365,
18,
2978,
273,
365,
18,
2069,
21349,
18,
23464,
1495,
14370,
18,
1684,
907,
30032,
261,
315,
11734,
79,
23464,
1495,
21391,
... |
if result == 1: pass elif result == 0 or result == ERROR_IO_PENDING: | if not result: error = ctypes.GetLastError() if error == ERROR_IO_PENDING: result = error elif error == 1167: break else: raise HIDError("Error %d when trying to read from HID "\ "device: %s"%(error, ctypes.FormatError(error)) ) break if result == ERROR_IO_PENDING: | def run(self): if not self.raw_report_size: # don't raise any error as the hid object can still be used # for writing reports raise HIDError("Attempting to read input reports on non "\ "capable HID device") over_read = OVERLAPPED() over_read.h_event = CreateEvent(None, 0, 0, None) if over_read.h_event: self.__overlapp... | d2782cdb495cceb043d96b6756ccce7398af7309 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11669/d2782cdb495cceb043d96b6756ccce7398af7309/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
486,
365,
18,
1899,
67,
6006,
67,
1467,
30,
468,
2727,
1404,
1002,
1281,
555,
487,
326,
366,
350,
733,
848,
4859,
506,
1399,
468,
364,
7410,
10557,
1002,
670... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
486,
365,
18,
1899,
67,
6006,
67,
1467,
30,
468,
2727,
1404,
1002,
1281,
555,
487,
326,
366,
350,
733,
848,
4859,
506,
1399,
468,
364,
7410,
10557,
1002,
670... |
@type transsysFile: A C{file} object open for writing. """ def __init__(self, numericFile = None, transsysFile = None) : if not numericFile : numericFile = sys.stdout() self.nf = numericFile if not transsysFile : transsysFile = sys.stdout() self.tf = transsysFile | @type transsysFile: C{str} """ def __init__(self, numericFilename, transsysFilename, scp, ocp) : self.numeric = numericFilename self.transsys = transsysFilename self.print_control_parameters(scp, ocp) | def __init__(self, cycles, offset, rndParam) : """The constructor of the class. | b33dea50d1aabad247006bfd73e621d2e0f236fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1770/b33dea50d1aabad247006bfd73e621d2e0f236fd/randomLocalSearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
15139,
16,
1384,
16,
20391,
786,
13,
294,
3536,
1986,
3885,
434,
326,
667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
15139,
16,
1384,
16,
20391,
786,
13,
294,
3536,
1986,
3885,
434,
326,
667,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if m: revision = int(m.group('revision')) | if fstr[:5] == '<?xml': m = re.search(r'revision="(?P<revision>\d+)"',fstr) if m: revision = int(m.group('revision')) else: m = re.search(r'dir[\n\r]+(?P<revision>\d+)', fstr) if m: revision = int(m.group('revision')) | def _get_svn_revision(self,path): """ Return path's SVN revision number. """ entries = njoin(path,'.svn','entries') revision = None if os.path.isfile(entries): f = open(entries) m = re.search(r'revision="(?P<revision>\d+)"',f.read()) f.close() if m: revision = int(m.group('revision')) return revision | 843327063a597e72376beb0dad5381a94b300df4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/843327063a597e72376beb0dad5381a94b300df4/misc_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
31505,
67,
13057,
12,
2890,
16,
803,
4672,
3536,
2000,
589,
1807,
29537,
50,
6350,
1300,
18,
3536,
3222,
273,
290,
5701,
12,
803,
16,
10332,
31505,
17023,
8219,
6134,
6350,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31505,
67,
13057,
12,
2890,
16,
803,
4672,
3536,
2000,
589,
1807,
29537,
50,
6350,
1300,
18,
3536,
3222,
273,
290,
5701,
12,
803,
16,
10332,
31505,
17023,
8219,
6134,
6350,... |
return [ self.context.cwdProject ] | return [ self.context.cwdProject() ] | def repositories(self, recurse=False): if recurse: results = [] deps = self.closure(DependencyGenerator([ self.context.cwdProject ])) for d in deps: if os.path.exists(self.context.srcDir(d)): results += [ d ] return results return [ self.context.cwdProject ] | 59f958210cae0d71b1d36aed9d96d0bffa85987b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1360/59f958210cae0d71b1d36aed9d96d0bffa85987b/dws.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14531,
12,
2890,
16,
11502,
33,
8381,
4672,
309,
11502,
30,
1686,
273,
5378,
8740,
273,
365,
18,
20823,
12,
7787,
3908,
3816,
365,
18,
2472,
18,
11089,
4109,
308,
3719,
364,
302,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14531,
12,
2890,
16,
11502,
33,
8381,
4672,
309,
11502,
30,
1686,
273,
5378,
8740,
273,
365,
18,
20823,
12,
7787,
3908,
3816,
365,
18,
2472,
18,
11089,
4109,
308,
3719,
364,
302,
316,
... |
def test_debuglevel(self): | def test_debuglevel_reads(self): | def test_debuglevel(self): # test all the various places that self.msg(...) is called given_a_expect_b = [ # Telnet.fill_rawq (b'a', ": recv b''\n"), # Telnet.process_rawq (tl.IAC + bytes([88]), ": IAC 88 not recognized\n"), (tl.IAC + tl.DO + bytes([1]), ": IAC DO 1\n"), (tl.IAC + tl.DONT + bytes([1]), ": IAC DONT 1\n"... | 276fd1f07da3fda3cfbfcf3adb2b1c82fa2f9c51 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/276fd1f07da3fda3cfbfcf3adb2b1c82fa2f9c51/test_telnetlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4148,
2815,
67,
11904,
12,
2890,
4672,
468,
1842,
777,
326,
11191,
12576,
716,
365,
18,
3576,
5825,
13,
353,
2566,
864,
67,
69,
67,
12339,
67,
70,
273,
306,
468,
399,
292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4148,
2815,
67,
11904,
12,
2890,
4672,
468,
1842,
777,
326,
11191,
12576,
716,
365,
18,
3576,
5825,
13,
353,
2566,
864,
67,
69,
67,
12339,
67,
70,
273,
306,
468,
399,
292,
... |
if 'use-nfs' in opcodes: self._debug('use-nfs, so reading from %s' % realpath) return os.listdir(realpath) elif 'use-cache' in opcodes: self._debug('use-cache, so reading from memcache at key %s' % fusepath) if self._cachedDirents.has_key(fusepath): return self._cachedDirents[fusepath] | if 'enoent' in opcodes: raise OSError(errno.ENOENT, os.strerror(errno.ENOENT)) if tsumufs.nfsAvailable.isSet(): self._debug('NFS is available -- returning dirents from NFS.') return self._cachedDirents[fusepath] else: self._debug('NFS is unavailable -- returning cached disk dir stuff.') return os.listdir(self._cacheP... | def getDirents(self, fusepath): ''' Return the dirents from a directory's contents if cached. ''' | 9db20cb960799ffbe59fe605eced51bebfea1349 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/9db20cb960799ffbe59fe605eced51bebfea1349/cachemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
77,
547,
87,
12,
2890,
16,
19552,
803,
4672,
9163,
2000,
326,
4314,
547,
87,
628,
279,
1867,
1807,
2939,
309,
3472,
18,
9163,
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,
2343,
77,
547,
87,
12,
2890,
16,
19552,
803,
4672,
9163,
2000,
326,
4314,
547,
87,
628,
279,
1867,
1807,
2939,
309,
3472,
18,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if self.wantAvatarPhysicsIndicator: | if self.wantDebugIndicator: | def setupAvatarPhysicsIndicator(self): if self.wantAvatarPhysicsIndicator: indicator=loader.loadModelCopy('phase_5/models/props/dagger') #self.walkControls.setAvatarPhysicsIndicator(indicator) | f71ea38c7ee21e26a1a469a1bd317692ac3001ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/f71ea38c7ee21e26a1a469a1bd317692ac3001ae/ShipPilot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
23999,
3731,
1900,
2102,
13140,
12,
2890,
4672,
309,
365,
18,
17369,
2829,
13140,
30,
10664,
33,
6714,
18,
945,
1488,
2951,
2668,
13961,
67,
25,
19,
7665,
19,
9693,
19,
72,
7594,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
23999,
3731,
1900,
2102,
13140,
12,
2890,
4672,
309,
365,
18,
17369,
2829,
13140,
30,
10664,
33,
6714,
18,
945,
1488,
2951,
2668,
13961,
67,
25,
19,
7665,
19,
9693,
19,
72,
7594,
... |
r""" Products of two primes. These numbers have been called semiprimes (or semi-primes), biprimes or 2-almost primes. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A001358;a | def __init__(self): r""" | def _eval(self, n): return sum(i%2 for i in arith.divisors(n)) | 7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
2142,
12,
77,
9,
22,
364,
277,
316,
419,
483,
18,
2892,
291,
1383,
12,
82,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
2142,
12,
77,
9,
22,
364,
277,
316,
419,
483,
18,
2892,
291,
1383,
12,
82,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
_cookiespy = urllib2.HTTPCookieProcessor(_cookies) | def __init__(self, *args, **kwargs): dict.__init__(self, *args, **kwargs) self.__dict__ = self | 47e6fe17862a5f974e46929577872fc98af8f950 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11603/47e6fe17862a5f974e46929577872fc98af8f950/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2065,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
16186,
1576,
972,
273,
365,
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,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2065,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
16186,
1576,
972,
273,
365,
2,
-100,
-100,
-10... | |
"""Get the tags applied by an individual user to an artist""" params = self._getParams() doc = Request(self, 'album.getTags', self.api_key, params, True, self.secret).execute() | """Returns a list of the user-set tags to this artist. """ params = self._getParams() doc = Request(self, 'artist.getTags', self.api_key, params, True, self.secret).execute() | def getTags(self): """Get the tags applied by an individual user to an artist""" params = self._getParams() doc = Request(self, 'album.getTags', self.api_key, params, True, self.secret).execute() if not doc: return None tag_names = self._extract_all(doc, 'name') tags = [] for tag in tag_names: tags.append(Tag(tag, *... | b1ed3eef5bf1b1772c55649009d9222691e97329 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/b1ed3eef5bf1b1772c55649009d9222691e97329/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17388,
12,
2890,
4672,
3536,
1356,
279,
666,
434,
326,
729,
17,
542,
2342,
358,
333,
15469,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
997,
273,
1567,
12,
2890,
16,
296,
2573... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17388,
12,
2890,
4672,
3536,
1356,
279,
666,
434,
326,
729,
17,
542,
2342,
358,
333,
15469,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
997,
273,
1567,
12,
2890,
16,
296,
2573... |
</dl> | </ul> | def arg_name_to_html(self, func_doc, arg_name): """ A helper function used to format an argument name, for use in the argument description list under a routine's details entry. This just wraps strong & code tags around the arg name; and if the arg name is associated with a type, then adds it parenthetically after the n... | 4382b7be56c79a38bd4608e2a346a95750170342 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/4382b7be56c79a38bd4608e2a346a95750170342/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1501,
67,
529,
67,
869,
67,
2620,
12,
2890,
16,
1326,
67,
2434,
16,
1501,
67,
529,
4672,
3536,
432,
4222,
445,
1399,
358,
740,
392,
1237,
508,
16,
364,
999,
316,
326,
1237,
2477,
666... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1501,
67,
529,
67,
869,
67,
2620,
12,
2890,
16,
1326,
67,
2434,
16,
1501,
67,
529,
4672,
3536,
432,
4222,
445,
1399,
358,
740,
392,
1237,
508,
16,
364,
999,
316,
326,
1237,
2477,
666... |
addClassDef(classdefs, typename, parsedFile, "constructor", ConstructorDefinition(arguments=doc, type="MANUAL")) | addClassDef(classdefs, typename, parsedFile, "constructor", ConstructorDefinition(arguments=doc, type="MANUAL", allows_empty_args=allows_empty_args)) | def detectHierarchy(line, classdefs): found=datastructuredef.search(line) if found: typename, structurename, dictfield = found.group("typename", "structurename", "dictfield") addClassDef(classdefs, typename, parsedFile, "datastructure", structurename) addClassDef(classdefs, typename, parsedFile, "dictfield", dictfield,... | 9ef61b5fe23b958aa80a57e1aa7994be56216f18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/9ef61b5fe23b958aa80a57e1aa7994be56216f18/pyxtract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
12074,
12,
1369,
16,
667,
12537,
4672,
1392,
33,
13178,
13583,
536,
18,
3072,
12,
1369,
13,
309,
1392,
30,
26735,
16,
3695,
529,
16,
2065,
1518,
273,
1392,
18,
1655,
2932,
12846,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5966,
12074,
12,
1369,
16,
667,
12537,
4672,
1392,
33,
13178,
13583,
536,
18,
3072,
12,
1369,
13,
309,
1392,
30,
26735,
16,
3695,
529,
16,
2065,
1518,
273,
1392,
18,
1655,
2932,
12846,
... |
if sage_trac_re.match(bundle) and bundle.endswith('?format=raw'): | if sage_trac_re.match(bundle) and not bundle.endswith('?format=raw'): | def unbundle(self, bundle, update=True, options=''): """ Apply patches from a hg patch to the repository. | 1f5df73207ca12268531bf3ffef7c4b18931e4ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1f5df73207ca12268531bf3ffef7c4b18931e4ab/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
9991,
12,
2890,
16,
3440,
16,
1089,
33,
5510,
16,
702,
2218,
11,
4672,
3536,
5534,
16482,
628,
279,
22576,
4729,
358,
326,
3352,
18,
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,
640,
9991,
12,
2890,
16,
3440,
16,
1089,
33,
5510,
16,
702,
2218,
11,
4672,
3536,
5534,
16482,
628,
279,
22576,
4729,
358,
326,
3352,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
cmdline = ' '.join([_cmdLineQuote(a) for a in args[1:]]) | cmdline = ' '.join([_cmdLineQuote(a) for a in args]) | def __init__(self, reactor, protocol, command, args, environment, path): self.reactor = reactor self.protocol = protocol | ab1177e2a77ff9ff1bb629f272a1454466b30640 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/ab1177e2a77ff9ff1bb629f272a1454466b30640/win32eventreactor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19178,
16,
1771,
16,
1296,
16,
833,
16,
3330,
16,
589,
4672,
365,
18,
266,
3362,
273,
19178,
365,
18,
8373,
273,
1771,
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,
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,
1001,
2738,
972,
12,
2890,
16,
19178,
16,
1771,
16,
1296,
16,
833,
16,
3330,
16,
589,
4672,
365,
18,
266,
3362,
273,
19178,
365,
18,
8373,
273,
1771,
2,
-100,
-100,
-100,
-100,
-100,
... |
def MoveCursor(self, x, y, clear=False): | def MoveCursor(self, x, y, clear=False, sio=None): | def MoveCursor(self, x, y, clear=False): s = "\x1b[%d;%dH" % (y, x) if clear: s += EC_CLEAR_LINE self.user.Write(s) | 2feab6381d2f848f7922d4f6309d8eab71ea112c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/2feab6381d2f848f7922d4f6309d8eab71ea112c/roguelike.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9933,
6688,
12,
2890,
16,
619,
16,
677,
16,
2424,
33,
8381,
16,
272,
1594,
33,
7036,
4672,
272,
273,
1548,
92,
21,
70,
14451,
72,
31,
9,
72,
44,
6,
738,
261,
93,
16,
619,
13,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9933,
6688,
12,
2890,
16,
619,
16,
677,
16,
2424,
33,
8381,
16,
272,
1594,
33,
7036,
4672,
272,
273,
1548,
92,
21,
70,
14451,
72,
31,
9,
72,
44,
6,
738,
261,
93,
16,
619,
13,
309... |
def test2(): point_list = [[i] for i in range(1,32)] | def testKdSearchNN(): n = 2**8 point_list = [[i,n-i] for i in range(1,n)] | def test2(): point_list = [[i] for i in range(1,32)] node = kdTree(point_list) node.show() print 'point_list', point_list for point in point_list: best = kdSearchNN(node, point, node, 0) print 'point =', point, ', best =', best.location | 61c03666b260c361116e556d45b8fe221cf9b116 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14140/61c03666b260c361116e556d45b8fe221cf9b116/kd_tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
47,
72,
2979,
12225,
13332,
290,
273,
576,
636,
28,
1634,
67,
1098,
273,
12167,
77,
16,
82,
17,
77,
65,
364,
277,
316,
1048,
12,
21,
16,
82,
25887,
756,
273,
417,
72,
2471,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
47,
72,
2979,
12225,
13332,
290,
273,
576,
636,
28,
1634,
67,
1098,
273,
12167,
77,
16,
82,
17,
77,
65,
364,
277,
316,
1048,
12,
21,
16,
82,
25887,
756,
273,
417,
72,
2471,
1... |
self.homediredit.setText(self.homedirdialog.url().path()) | self.up.homediredit.setText(self.homedirdialog.url().path()) | def slotBrowseHomeDirClicked(self): fileurl = KURL() fileurl.setPath(self.homediredit.text()) self.homedirdialog.setCurrentURL(fileurl) if self.homedirdialog.exec_()==QDialog.Accepted: self.homediredit.setText(self.homedirdialog.url().path()) self.homedirectoryislinked = False | eb812f938fe74be7d359e6fa9fcc28e3d8c3b025 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1669/eb812f938fe74be7d359e6fa9fcc28e3d8c3b025/user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4694,
27304,
8684,
1621,
27633,
12,
2890,
4672,
585,
718,
273,
1475,
1785,
1435,
585,
718,
18,
542,
743,
12,
2890,
18,
17125,
329,
2921,
305,
18,
955,
10756,
365,
18,
17125,
329,
6909,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4694,
27304,
8684,
1621,
27633,
12,
2890,
4672,
585,
718,
273,
1475,
1785,
1435,
585,
718,
18,
542,
743,
12,
2890,
18,
17125,
329,
2921,
305,
18,
955,
10756,
365,
18,
17125,
329,
6909,
... |
u.warn(_("abort: error: %s\n") % inst.reason[1]) | try: reason = inst.reason.args[1] except: reason = inst.reason u.warn(_("abort: error: %s\n") % reason) | def print_time(): t = get_times() u.warn(_("Time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f)\n") % (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3])) | f76e8de899ea56a4789c86d956443bbaf803ea92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/f76e8de899ea56a4789c86d956443bbaf803ea92/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
582,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
582,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
74... |
dbsinfo = self.dataprovider.getFileRangeForJob(id) | dbsinfo = {} if self.dataprovider: dbsinfo = self.dataprovider.getFileRangeForJob(id) | def onJobSubmit(self, job, id): Module.onJobSubmit(self, job, id) | 40aaf71ad2f9e823717b7c778a4f20f0300899df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8443/40aaf71ad2f9e823717b7c778a4f20f0300899df/CMSSW.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
2278,
11620,
12,
2890,
16,
1719,
16,
612,
4672,
5924,
18,
265,
2278,
11620,
12,
2890,
16,
1719,
16,
612,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
2278,
11620,
12,
2890,
16,
1719,
16,
612,
4672,
5924,
18,
265,
2278,
11620,
12,
2890,
16,
1719,
16,
612,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Parses all of the percent directives found at the top of a file and returns the input text of self with all of them removed. | Returns a string which consists of the input text of this cell with the percent directives at the top removed. As it's doing this, it computes a list of all the directives and which system (if any) the cell should be run under. | def parse_percent_directives(self): """ Parses all of the percent directives found at the top of a file and returns the input text of self with all of them removed. | fcd2aab9896251f9fe30af9a2996d617648001f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/fcd2aab9896251f9fe30af9a2996d617648001f6/cell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8849,
67,
30850,
12,
2890,
4672,
3536,
2280,
2420,
777,
434,
326,
5551,
13877,
1392,
622,
326,
1760,
434,
279,
585,
471,
1135,
326,
810,
977,
434,
365,
598,
777,
434,
2182,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8849,
67,
30850,
12,
2890,
4672,
3536,
2280,
2420,
777,
434,
326,
5551,
13877,
1392,
622,
326,
1760,
434,
279,
585,
471,
1135,
326,
810,
977,
434,
365,
598,
777,
434,
2182,
3... |
msg = "WARNING: header file %s is in your directory, but not in CVS"%(dir+"/"+x) print msg WARNINGS.append(msg) | if ((skip=="ALL") or (skip.count(x)==0)): msg = "WARNING: header file %s is in your directory, but not in CVS"%(dir+"/"+x) print msg WARNINGS.append(msg) | def CopyAllHeaders(dir): # get a list of headers dirlist = os.listdir(dir) dirlist.sort() files = fnmatch.filter(dirlist,"*.h")+fnmatch.filter(dirlist,"*.I")+fnmatch.filter(dirlist,"*.T") # sanity check - do headers in directory match headers in CVS? cvsentries = ReadCvsEntries(dir) if (cvsentries != 0): cvsheaders = f... | a1a1bf8826ca0f4d0f41e04b2c8b5a6421d40ac7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/a1a1bf8826ca0f4d0f41e04b2c8b5a6421d40ac7/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5631,
1595,
3121,
12,
1214,
4672,
468,
336,
279,
666,
434,
1607,
1577,
1098,
273,
1140,
18,
1098,
1214,
12,
1214,
13,
1577,
1098,
18,
3804,
1435,
1390,
273,
18764,
18,
2188,
12,
1214,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5631,
1595,
3121,
12,
1214,
4672,
468,
336,
279,
666,
434,
1607,
1577,
1098,
273,
1140,
18,
1098,
1214,
12,
1214,
13,
1577,
1098,
18,
3804,
1435,
1390,
273,
18764,
18,
2188,
12,
1214,
... |
h = d.GetDialogItemAsControl(3) | h = d.GetDialogItemAsControl(3) | def AskPassword(prompt, default='', id=264): """Display a PROMPT string and a text entry field with a DEFAULT string. The string is displayed as bullets only. Return the contents of the text entry field when the user clicks the OK button or presses Return. Return None when the user clicks the Cancel button. If omitt... | b194fed8c029058ae5f8eea81c1c7f11b9447512 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b194fed8c029058ae5f8eea81c1c7f11b9447512/EasyDialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25747,
3913,
12,
13325,
16,
202,
805,
2218,
2187,
612,
33,
23728,
4672,
3536,
4236,
279,
453,
3942,
1856,
533,
471,
279,
977,
1241,
652,
598,
279,
3331,
533,
18,
1021,
533,
353,
10453,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25747,
3913,
12,
13325,
16,
202,
805,
2218,
2187,
612,
33,
23728,
4672,
3536,
4236,
279,
453,
3942,
1856,
533,
471,
279,
977,
1241,
652,
598,
279,
3331,
533,
18,
1021,
533,
353,
10453,
... |
return struct.unpack(">I", socket.inet_aton(struct))[0] | return struct.unpack(">I", inet_aton(string))[0] | def ip_from_string(string): return struct.unpack(">I", socket.inet_aton(struct))[0] | 3e6741ad34713e144162ddfec4f0e91bbfaca12d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/3e6741ad34713e144162ddfec4f0e91bbfaca12d/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2359,
67,
2080,
67,
1080,
12,
1080,
4672,
327,
1958,
18,
17309,
2932,
34,
45,
3113,
17661,
67,
16799,
12,
1080,
3719,
63,
20,
65,
225,
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,
2359,
67,
2080,
67,
1080,
12,
1080,
4672,
327,
1958,
18,
17309,
2932,
34,
45,
3113,
17661,
67,
16799,
12,
1080,
3719,
63,
20,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
'(tag:txt or tag:pdf) and author:Tolstoy': set([55, 56]), | '(tag:txt OR tag:pdf) and author:Tolstoy': set([55, 56]), | def universal_set(self): ''' Should return the set of all matches. ''' return set([]) | e4b0e9f5186874eac5b874627e01d8e31d865487 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/e4b0e9f5186874eac5b874627e01d8e31d865487/search_query_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26182,
67,
542,
12,
2890,
4672,
9163,
9363,
327,
326,
444,
434,
777,
1885,
18,
9163,
327,
444,
3816,
5717,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26182,
67,
542,
12,
2890,
4672,
9163,
9363,
327,
326,
444,
434,
777,
1885,
18,
9163,
327,
444,
3816,
5717,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.cache.ua_spiders = self.ua_spiders and re.compile(self.ua_spiders, re.I) | self.cache.ua_spiders = self.ua_spiders and re.compile(self.ua_spiders, re.IGNORECASE) | def __init__(self, siteid): """ Init Config instance """ # keep first! settings = {} for k in self.__dict__: settings[k] = True | dfb27923fc3c16a0cfbd8495aa0e35dd4ff4c216 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/dfb27923fc3c16a0cfbd8495aa0e35dd4ff4c216/multiconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2834,
350,
4672,
3536,
4378,
1903,
791,
3536,
468,
3455,
1122,
5,
1947,
273,
2618,
364,
417,
316,
365,
16186,
1576,
972,
30,
1947,
63,
79,
65,
273,
1053,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2834,
350,
4672,
3536,
4378,
1903,
791,
3536,
468,
3455,
1122,
5,
1947,
273,
2618,
364,
417,
316,
365,
16186,
1576,
972,
30,
1947,
63,
79,
65,
273,
1053,... |
sys.stderr.write('<unknown menu character %s>' % key_description(c)) | sys.stderr.write('--- unknown menu character %s --\n' % key_description(c)) | def writer(self): """loop and copy console->serial until EXITCHARCTER character is found. when MENUCHARACTER is found, interpret the next key locally. """ menu_active = False try: while self.alive: try: c = console.getkey() except KeyboardInterrupt: c = '\x03' if menu_active: if c == MENUCHARACTER or c == EXITCHARCTER:... | c61cb24df3b85c0b769f2fa31ac2433f3c0e4b39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/c61cb24df3b85c0b769f2fa31ac2433f3c0e4b39/miniterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2633,
12,
2890,
4672,
3536,
6498,
471,
1610,
2983,
2122,
8818,
3180,
28407,
7305,
1268,
654,
3351,
353,
1392,
18,
1347,
490,
1157,
57,
27858,
353,
1392,
16,
10634,
326,
1024,
498,
13760,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2633,
12,
2890,
4672,
3536,
6498,
471,
1610,
2983,
2122,
8818,
3180,
28407,
7305,
1268,
654,
3351,
353,
1392,
18,
1347,
490,
1157,
57,
27858,
353,
1392,
16,
10634,
326,
1024,
498,
13760,
... |
res=eval(str(res)) partner = res['partner_id'] state = res['state_id'] country = res['country_id'] conn = xmlrpclib.ServerProxy(self._uri+ '/xmlrpc/object') if not partner.strip() == '': partner_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partner', 'search', [('name','=',ustr(partner))]... | res=eval(str(res)) partner = res['partner_id'] state = res['state_id'] country = res['country_id'] conn = xmlrpclib.ServerProxy(self._uri+ '/xmlrpc/object') if not partner.strip() == '': partner_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partner', 'search', [('name','=',ustr(partner))]... | def CreateContact(self, res=None): res=eval(str(res)) partner = res['partner_id'] state = res['state_id'] country = res['country_id'] conn = xmlrpclib.ServerProxy(self._uri+ '/xmlrpc/object') if not partner.strip() == '': partner_id = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partner', 'se... | bc3c1f7a22dbca3c418f700cf48883617e53933e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/bc3c1f7a22dbca3c418f700cf48883617e53933e/tiny_xmlrpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
6567,
12,
2890,
16,
400,
33,
7036,
4672,
400,
33,
8622,
12,
701,
12,
455,
3719,
19170,
273,
400,
3292,
31993,
67,
350,
3546,
919,
273,
400,
3292,
2019,
67,
350,
3546,
5251,
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,
1788,
6567,
12,
2890,
16,
400,
33,
7036,
4672,
400,
33,
8622,
12,
701,
12,
455,
3719,
19170,
273,
400,
3292,
31993,
67,
350,
3546,
919,
273,
400,
3292,
2019,
67,
350,
3546,
5251,
273,
... |
props_layout = pango.Layout(self.pango_context) attr,text,a = pango.parse_markup(text_str, u'_') props_layout.set_attributes(attr) props_layout.set_text(text) | props_layout = self.area.create_pango_layout('') props_layout.set_markup(text_str) | def prepare_prop_layout(self, prop_list,type): pc = self.pango_context desc = pc.get_font_description() desc.set_size(PROPERTY_SIZE) pc.set_font_description(desc) prop_layout = pango.Layout(pc) text_str = self.prepare_props_list(prop_list, type) props_layout = pango.Layout(self.pango_context) attr,text,a = pango.pars... | 455bcb8edd7936175614a8072a4cf0001f27cda0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3880/455bcb8edd7936175614a8072a4cf0001f27cda0/Properties_Renderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
5986,
67,
6741,
12,
2890,
16,
2270,
67,
1098,
16,
723,
4672,
6125,
273,
365,
18,
84,
6399,
67,
2472,
3044,
273,
6125,
18,
588,
67,
5776,
67,
3384,
1435,
3044,
18,
542,
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,
2911,
67,
5986,
67,
6741,
12,
2890,
16,
2270,
67,
1098,
16,
723,
4672,
6125,
273,
365,
18,
84,
6399,
67,
2472,
3044,
273,
6125,
18,
588,
67,
5776,
67,
3384,
1435,
3044,
18,
542,
67,
... |
print uri | def query(self, query, qt="term"): """ An advanced query | 141d55944147758fd084e1b726376d17b6892978 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2232/141d55944147758fd084e1b726376d17b6892978/sindice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
843,
16,
25672,
1546,
6408,
6,
4672,
3536,
1922,
16111,
843,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
843,
16,
25672,
1546,
6408,
6,
4672,
3536,
1922,
16111,
843,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
([zeta6], [zeta6], -zeta42^7 + 3) ([zeta6], [zeta6 - 1], 2*zeta42^7 + 1) ([zeta6], [-1], -2*zeta42^7 - 1) ([zeta6], [-zeta6], zeta42^7 - 3) | ([zeta6], [zeta6], -zeta6 + 3) ([zeta6], [zeta6 - 1], 2*zeta6 + 1) ([zeta6], [-1], -2*zeta6 - 1) ([zeta6], [-zeta6], zeta6 - 3) | def jacobi_sum(self, char, check=True): """ Return the Jacobi sum associated to these Dirichlet characters (i.e., J(self,char)). EXAMPLES:: sage: D = DirichletGroup(13) sage: e = D.0 sage: f = D[-2] sage: e.jacobi_sum(f) 3*zeta156^26 + 2*zeta156^13 - 3 sage: f.jacobi_sum(e) 3*zeta156^26 + 2*zeta156^13 - 3 sage: p = 7... | 80bb64cda04307dbe55314d6e4fce85c5aab0086 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/80bb64cda04307dbe55314d6e4fce85c5aab0086/dirichlet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
67,
1364,
12,
2890,
16,
1149,
16,
866,
33,
5510,
4672,
3536,
2000,
326,
804,
1077,
30875,
2142,
3627,
358,
4259,
8446,
1354,
1810,
3949,
261,
77,
18,
73,
12990,
804,
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,
20138,
30875,
67,
1364,
12,
2890,
16,
1149,
16,
866,
33,
5510,
4672,
3536,
2000,
326,
804,
1077,
30875,
2142,
3627,
358,
4259,
8446,
1354,
1810,
3949,
261,
77,
18,
73,
12990,
804,
12,
... |
self.readNextTag(file) | self.title = tags['Title'] self.artist = tags['Artist'] self.album = tags['Album'] self.trackno = tags['Track'] self.year = tags['Year'] self.encoder = tags['Tool'] self.length = tags['Length'] self.samplerate = tags['SampleRate'] self.valid = 1 self.mime = 'audio/mp4' self.filename = file.name | def __init__(self, file): core.Music.__init__(self) self.valid = 0 returnval = 0 while returnval == 0: try: self.readNextTag(file) except ValueError: returnval = 1 if not self.valid: raise core.ParseError() | 645df27c3836f9a6a9695efcee3dfb935d1c8d54 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11721/645df27c3836f9a6a9695efcee3dfb935d1c8d54/m4a.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
4672,
2922,
18,
49,
14894,
16186,
2738,
972,
12,
2890,
13,
365,
18,
877,
273,
374,
327,
1125,
273,
374,
1323,
327,
1125,
422,
374,
30,
775,
30,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
585,
4672,
2922,
18,
49,
14894,
16186,
2738,
972,
12,
2890,
13,
365,
18,
877,
273,
374,
327,
1125,
273,
374,
1323,
327,
1125,
422,
374,
30,
775,
30,
36... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 142) else quickfix.StringField.__init__(self, 142, 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,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
5045,
22,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
5045,
22,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
97... |
title = "<span weight=\"bold\" size=\"large\">%s (%s)</span>" % (task.get_title(), len(task.get_subtasks()) ) | title = "<span weight=\"bold\" size=\"large\">%s (%s)</span>" % (task.get_title(), self.__count_tasks_rec(task) ) | def __build_task_title(self,task,extended=False): if extended : excerpt = task.get_excerpt(lines=2) if excerpt.strip() != "" : title = "<b><big>%s</big></b>\n<small>%s</small>" %(task.get_title(),excerpt) else : title = "<b><big>%s</big></b>" %task.get_title() else : alone = (not task.has_parents() and len(task.get... | f70e55fb81a2a9fe6b229beb892bf51a9054fac0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/f70e55fb81a2a9fe6b229beb892bf51a9054fac0/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
67,
4146,
67,
2649,
12,
2890,
16,
4146,
16,
14948,
33,
8381,
4672,
309,
7021,
294,
27623,
273,
1562,
18,
588,
67,
338,
17748,
12,
3548,
33,
22,
13,
309,
27623,
18,
6406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3510,
67,
4146,
67,
2649,
12,
2890,
16,
4146,
16,
14948,
33,
8381,
4672,
309,
7021,
294,
27623,
273,
1562,
18,
588,
67,
338,
17748,
12,
3548,
33,
22,
13,
309,
27623,
18,
6406,
... |
handle_encoding_declaration(c1, sys.stdout) | sage: handle_encoding_declaration(c1, sys.stdout) | def handle_encoding_declaration(contents, out): """Find a Python encoding declaration in the first line of contents. If found, output it to out and return contents without first line, else output a default utf-8 declaration and return contents. EXAMPLE: sage: import sys sage: c1='# -*- coding: latin-1 -*-\nimport os, ... | 243c8fcabc63678cc1684d28c2d0bda1a02ec48b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/243c8fcabc63678cc1684d28c2d0bda1a02ec48b/interpreter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5999,
67,
22448,
12,
3980,
16,
596,
4672,
3536,
3125,
279,
6600,
2688,
8266,
316,
326,
1122,
980,
434,
2939,
18,
971,
1392,
16,
876,
518,
358,
596,
471,
327,
2939,
2887,
1122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5999,
67,
22448,
12,
3980,
16,
596,
4672,
3536,
3125,
279,
6600,
2688,
8266,
316,
326,
1122,
980,
434,
2939,
18,
971,
1392,
16,
876,
518,
358,
596,
471,
327,
2939,
2887,
1122... |
'actions': [_get_defaults], 'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel'), ('next', 'Process'))}, | 'actions': [], 'result': {'type': 'choice', 'next_state': _check_what_next}, }, 'change': { 'actions': [], 'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel'), ('next', 'Change Currency'))}, | def _change_currency(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) inv_obj = pool.get('account.invoice') inv_line_obj = pool.get('account.invoice.line') curr_obj = pool.get('res.currency') invoice_ids = data['ids'] new_currency = data['form']['currency_id'] | 3c39f52b7785e4f403a9f047084b74118cb5588a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/3c39f52b7785e4f403a9f047084b74118cb5588a/wizard_change_currency.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3427,
67,
7095,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
225,
2198,
67,
2603,
273,
2845,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3427,
67,
7095,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
225,
2198,
67,
2603,
273,
2845,
18,
588,
... |
self.sock.connect((host, port)) | try: self.sock.connect((host, port)) except socket.error: self.close() raise | def connect(self, host='localhost', port = 0): """Connect to a host on a given port. | 17bfef5860493a0195c999ab44d4c849660cac30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/17bfef5860493a0195c999ab44d4c849660cac30/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print 'These packages are required to' | print 'This package is required to' | def check_tkz_graph(): r""" Checks if the proper `\mbox{\rm\LaTeX}` packages for the ``tikzpicture`` environment are installed in the user's environment. If the requisite packages are not found on the first call to this function, warnings are printed. Thereafter, the function caches its result in the variable ``_have_... | 99481238fceb0d8b68ce60dc6afa0cf50557a9c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/99481238fceb0d8b68ce60dc6afa0cf50557a9c1/graph_latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
16099,
94,
67,
4660,
13332,
436,
8395,
13074,
309,
326,
5338,
1375,
64,
81,
2147,
23241,
8864,
64,
30745,
21575,
60,
11760,
5907,
364,
326,
12176,
88,
1766,
94,
21126,
10335,
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,
866,
67,
16099,
94,
67,
4660,
13332,
436,
8395,
13074,
309,
326,
5338,
1375,
64,
81,
2147,
23241,
8864,
64,
30745,
21575,
60,
11760,
5907,
364,
326,
12176,
88,
1766,
94,
21126,
10335,
33... |
log.msg("speex: short read on encode %d != 320"%len(bytes)) | log.msg("speex: short read on encode, %d != 320"%len(bytes), system="codec") | def encode(self, bytes, unpack=struct.unpack): if len(bytes) != 320: log.msg("speex: short read on encode %d != 320"%len(bytes)) return None frames = list(unpack('160h', bytes)) return self.enc.encode(frames) | 79c921f7dfdcd86945a1e4eff39707a829a94c39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/79c921f7dfdcd86945a1e4eff39707a829a94c39/converters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
1731,
16,
6167,
33,
1697,
18,
17309,
4672,
309,
562,
12,
3890,
13,
480,
890,
3462,
30,
613,
18,
3576,
2932,
87,
347,
338,
30,
3025,
855,
603,
2017,
16,
738,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
1731,
16,
6167,
33,
1697,
18,
17309,
4672,
309,
562,
12,
3890,
13,
480,
890,
3462,
30,
613,
18,
3576,
2932,
87,
347,
338,
30,
3025,
855,
603,
2017,
16,
738,
72,
... |
"activeFolder", "rootFolder", | "activeFolder", "rootFolder", "saveFolder", | def import_to_global(modname, attrs=None, math=False): """ import_to_global(modname, (a,b,c,...), math): like "from modname import a,b,c,...", but imports to global namespace (__main__). If math==True, also registers functions with QtiPlot's math function list. """ mod = __import__(modname) for submod in modname.split(... | 81a1031095c3fed44bf2f5a19c917320803d3ffa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2185/81a1031095c3fed44bf2f5a19c917320803d3ffa/qtiplotrc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
3422,
33,
7036,
16,
4233,
33,
8381,
4672,
3536,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
261,
69,
16,
70,
16,
71,
16,
2777,
3631,
423... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
3422,
33,
7036,
16,
4233,
33,
8381,
4672,
3536,
1930,
67,
869,
67,
6347,
12,
1711,
529,
16,
261,
69,
16,
70,
16,
71,
16,
2777,
3631,
423... |
if hasattr(socket, 'SHUT_RDWR'): self.server.socket.shutdown(socket.SHUT_RDWR) else: self.server.socket.shutdown(2) | if os.name <> 'nt': if hasattr(socket, 'SHUT_RDWR'): self.server.socket.shutdown(socket.SHUT_RDWR) else: self.server.socket.shutdown(2) | def stop(self): self.running = False if hasattr(socket, 'SHUT_RDWR'): self.server.socket.shutdown(socket.SHUT_RDWR) else: self.server.socket.shutdown(2) self.server.socket.close() | 4b364768f02dd0cb810618831497796305db99fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/4b364768f02dd0cb810618831497796305db99fd/netsvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
365,
18,
8704,
273,
1083,
309,
1140,
18,
529,
2813,
296,
496,
4278,
309,
3859,
12,
7814,
16,
296,
2664,
1693,
67,
20403,
7181,
11,
4672,
365,
18,
3567,
18,
7814,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2132,
12,
2890,
4672,
365,
18,
8704,
273,
1083,
309,
1140,
18,
529,
2813,
296,
496,
4278,
309,
3859,
12,
7814,
16,
296,
2664,
1693,
67,
20403,
7181,
11,
4672,
365,
18,
3567,
18,
7814,
... |
def run(self, slotname): | def run(self, slotname, **kwargs): | def run(self, slotname): '''Run all plugin functions for the given slot. ''' if not self.enabled: return # Determine handler class to use if slotname in ('config'): conduitcls = ConfigPluginConduit elif slotname == 'init': conduitcls = InitPluginConduit elif slotname == 'reposetup': conduitcls = RepoSetupPluginConduit... | 74b728ccf7d1b5825815fc6f5ef86064d0870891 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/74b728ccf7d1b5825815fc6f5ef86064d0870891/plugins.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
4694,
529,
16,
2826,
4333,
4672,
9163,
1997,
777,
1909,
4186,
364,
326,
864,
4694,
18,
9163,
309,
486,
365,
18,
5745,
30,
327,
225,
468,
10229,
1838,
667,
358,
999,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16,
4694,
529,
16,
2826,
4333,
4672,
9163,
1997,
777,
1909,
4186,
364,
326,
864,
4694,
18,
9163,
309,
486,
365,
18,
5745,
30,
327,
225,
468,
10229,
1838,
667,
358,
999,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.