rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
defaults = '(%s) + ' % defaults | defaults = ['nose'] + defaults.split() defaults = "argv=%s" % defaults | def install(self): options = self.options dest = [] eggs, ws = self.egg.working_set(('nose', )) | c21edffebe549551e15a079b28e9d9f30f17468c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8505/c21edffebe549551e15a079b28e9d9f30f17468c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
702,
273,
365,
18,
2116,
1570,
273,
5378,
9130,
564,
16,
4945,
273,
365,
18,
23171,
18,
20478,
67,
542,
12,
2668,
2135,
307,
2187,
8623,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
702,
273,
365,
18,
2116,
1570,
273,
5378,
9130,
564,
16,
4945,
273,
365,
18,
23171,
18,
20478,
67,
542,
12,
2668,
2135,
307,
2187,
8623,
2,
-100,
-100,
-100,
-100... |
if os.path.dirname(egg_path) == os.path.realpath(plugins_dir): | if paths_equal(os.path.dirname(egg_path), os.path.realpath(plugins_dir)): | def enable_modules(egg_path, modules): """Automatically enable any components provided by plugins loaded from the environment plugins directory.""" if os.path.dirname(egg_path) == os.path.realpath(plugins_dir): for module in modules: env.config.setdefault('components', module + '.*', 'enabled') | be2581dafc033eab80b37351567821c90cf835bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/be2581dafc033eab80b37351567821c90cf835bf/loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
67,
6400,
12,
23171,
67,
803,
16,
4381,
4672,
3536,
31910,
4237,
1281,
4085,
2112,
635,
4799,
4203,
628,
326,
3330,
4799,
1867,
12123,
309,
2953,
67,
9729,
12,
538,
18,
803,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
67,
6400,
12,
23171,
67,
803,
16,
4381,
4672,
3536,
31910,
4237,
1281,
4085,
2112,
635,
4799,
4203,
628,
326,
3330,
4799,
1867,
12123,
309,
2953,
67,
9729,
12,
538,
18,
803,
18,
... |
r""" Mersenne primes (of form $2^p - 1$ where $p$ is a prime). (See A000043 for the values of $p$.) Warning: a(39) has 4,053,946 digits! INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000668;a Mersenne primes (of form 2^p - 1 where p is a prime). (See A000043 for the val... | def __init__(self): r""" Mersenne primes (of form $2^p - 1$ where $p$ is a prime). (See A000043 for the values of $p$.) | def _eval(self, n): try: return Integer(self._b[n-1]) except (AttributeError, IndexError): self._b = [2,3,5,7,13,17,19,31,61,89,107,127,521,607,1279,2203,2281,3217,4253,4423,9689,9941,11213,19937,21701,23209,44497,86243,110503,132049,216091,756839,859433,1257787,1398269,2976221,3021377,6972593,13466917] return Integer(... | 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,
775,
30,
327,
2144,
12,
2890,
6315,
70,
63,
82,
17,
21,
5717,
1335,
261,
1499,
668,
16,
10195,
4672,
365,
6315,
70,
273,
306,
22,
16,
23,
16,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8622,
12,
2890,
16,
290,
4672,
775,
30,
327,
2144,
12,
2890,
6315,
70,
63,
82,
17,
21,
5717,
1335,
261,
1499,
668,
16,
10195,
4672,
365,
6315,
70,
273,
306,
22,
16,
23,
16,
25... |
def index(path, archivo, output): | def index(path, indexpage, output): | def index(path, archivo, output): f = formatter.AbstractFormatter(AlmostNullWriter()) parser = IdxHlpHtmlParser(f) parser.path = path parser.ft = output fil = path + '/' + archivo parser.feed(open(fil).read()) parser.close() | 29c9f8334992377a2a6594733078b21037410fb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/29c9f8334992377a2a6594733078b21037410fb7/prechm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
803,
16,
770,
2433,
16,
876,
4672,
284,
273,
4453,
18,
7469,
5074,
12,
1067,
10329,
2041,
2289,
10756,
2082,
273,
3124,
92,
44,
9953,
4353,
2678,
12,
74,
13,
2082,
18,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
803,
16,
770,
2433,
16,
876,
4672,
284,
273,
4453,
18,
7469,
5074,
12,
1067,
10329,
2041,
2289,
10756,
2082,
273,
3124,
92,
44,
9953,
4353,
2678,
12,
74,
13,
2082,
18,
803,
... |
data = [data_read[id] for id in data_ids] | data = [] for id in data_ids: for rec in data_read: if rec['id'] == id: data.append(rec) | def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): """ Get the list of records in list view grouped by the given ``groupby`` fields | baaf9e4490dca16d8a8a66d81b525984f67c6493 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/baaf9e4490dca16d8a8a66d81b525984f67c6493/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1655,
12,
2890,
16,
4422,
16,
4555,
16,
2461,
16,
1466,
16,
13126,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
968,
326,
666,
434,
3853,
316,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1655,
12,
2890,
16,
4422,
16,
4555,
16,
2461,
16,
1466,
16,
13126,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
968,
326,
666,
434,
3853,
316,
666,
... |
self.drag_multiple_atoms = True self.atomsSetup(a) else: if a.picked: self.cursor_over_when_LMB_pressed = 'Picked Atom' else: self.cursor_over_when_LMB_pressed = 'Unpicked Atom' self.drag_multiple_atoms = False self.atomSetup(a) | else: self.cursor_over_when_LMB_pressed = 'Unpicked Atom' self.atomSetup(a) | def atomLeftDown(self, a, event): if not a.picked and self.o.modkeys is None: self.o.assy.unpickatoms() a.pick() if not a.picked and self.o.modkeys == 'Shift': a.pick() if a.picked and len(self.o.assy.selatoms_list()) > 1: # now called when two or more atoms are selected. mark 060202. self.cursor_over_when_LMB_pressed... | e4a846430da32f8219706ecaa3f18f53cca635c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e4a846430da32f8219706ecaa3f18f53cca635c5/selectMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3179,
3910,
4164,
12,
2890,
16,
279,
16,
871,
4672,
309,
486,
279,
18,
11503,
329,
471,
365,
18,
83,
18,
1711,
2452,
353,
599,
30,
365,
18,
83,
18,
428,
93,
18,
318,
11503,
14937,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3179,
3910,
4164,
12,
2890,
16,
279,
16,
871,
4672,
309,
486,
279,
18,
11503,
329,
471,
365,
18,
83,
18,
1711,
2452,
353,
599,
30,
365,
18,
83,
18,
428,
93,
18,
318,
11503,
14937,
... |
if old_data != new_data and platform.atom_debug: | if old_data != new_data and platform.atom_debug and self.debug: | def __init__(self, imageName, ideal_width = None, ideal_height = None, rescale = True, ##e filter = ... convert = False, _tmpmode = None ): #bruce 061127 added options, self attrs, docstring; some are marked [untested] in docstring [###k need to test them]; ##e add options for resize filter choice, whether to use im.co... | e02d0b00e0b76f270fffa3574425b41208f59dcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e02d0b00e0b76f270fffa3574425b41208f59dcd/ImageUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
29842,
16,
23349,
67,
2819,
273,
599,
16,
23349,
67,
4210,
273,
599,
16,
30323,
273,
1053,
16,
7541,
73,
1034,
273,
1372,
1765,
273,
1083,
16,
389,
5645,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29842,
16,
23349,
67,
2819,
273,
599,
16,
23349,
67,
4210,
273,
599,
16,
30323,
273,
1053,
16,
7541,
73,
1034,
273,
1372,
1765,
273,
1083,
16,
389,
5645,... |
bannedCEs = self.am_getOption('/BannedCEs','') | bannedCEs = self.am_getOption('BannedCEs','') | def _lookForCE(self): sites = gConfig.getSections('/Resources/Sites/LCG')['Value'] | e7fe144bdf9e77019e8be7de0be022052acb42ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e7fe144bdf9e77019e8be7de0be022052acb42ca/CE2CSAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7330,
1290,
1441,
12,
2890,
4672,
225,
9180,
273,
314,
809,
18,
588,
15965,
2668,
19,
3805,
19,
17055,
19,
13394,
43,
6134,
3292,
620,
3546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7330,
1290,
1441,
12,
2890,
4672,
225,
9180,
273,
314,
809,
18,
588,
15965,
2668,
19,
3805,
19,
17055,
19,
13394,
43,
6134,
3292,
620,
3546,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for extension in ['.bmp', '.png']: | for extension in ['.dds', '.DDS', '.png', '.PNG', '.bmp', '.BMP']: | def findTex(basefile, texture, subdirs): texdir=basefile for l in range(5): q=texdir[:-1].rfind(Blender.sys.dirsep) if q==-1: return texdir=texdir[:q+1] for subdir in subdirs: # Handle empty subdir if subdir: sd=subdir+Blender.sys.dirsep for extension in ['.bmp', '.png']: try: return Image.Load(texdir+sd+texture+exten... | fc77a00953bca824ecd1bf743f3145de2937751d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10896/fc77a00953bca824ecd1bf743f3145de2937751d/XPlaneUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
16733,
12,
1969,
768,
16,
11428,
16,
720,
8291,
4672,
16573,
1214,
33,
1969,
768,
364,
328,
316,
1048,
12,
25,
4672,
1043,
33,
21763,
1214,
10531,
17,
21,
8009,
86,
4720,
12,
480... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
16733,
12,
1969,
768,
16,
11428,
16,
720,
8291,
4672,
16573,
1214,
33,
1969,
768,
364,
328,
316,
1048,
12,
25,
4672,
1043,
33,
21763,
1214,
10531,
17,
21,
8009,
86,
4720,
12,
480... |
a = C() a.wrc = weakref.ref(referenced, callback) | a = A() weakref.ref(referenced, callback) | def callback(*args): pass | 4cc8af1ee482a19a09e3b05f1f2afc0cd2841f0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4cc8af1ee482a19a09e3b05f1f2afc0cd2841f0c/test_weakref.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
30857,
1968,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
30857,
1968,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
5.0000000000000000 | 5 | def round(x, ndigits=0): """ round(number[, ndigits]) -> double-precision real number Round a number to a given precision in decimal digits (default 0 digits). This always returns a real double field element. EXAMPLES: sage: round(sqrt(2),2) 1.41 sage: round(sqrt(2),5) 1.41421 sage: round(pi) 3.0 sage: b = 5.4999999... | 428d0dbea1697edfbbddbc494c9170d6235f02f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/428d0dbea1697edfbbddbc494c9170d6235f02f1/functional.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3643,
12,
92,
16,
5346,
360,
1282,
33,
20,
4672,
3536,
3643,
12,
2696,
63,
16,
5346,
360,
1282,
5717,
317,
1645,
17,
14548,
2863,
1300,
225,
11370,
279,
1300,
358,
279,
864,
6039,
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,
3643,
12,
92,
16,
5346,
360,
1282,
33,
20,
4672,
3536,
3643,
12,
2696,
63,
16,
5346,
360,
1282,
5717,
317,
1645,
17,
14548,
2863,
1300,
225,
11370,
279,
1300,
358,
279,
864,
6039,
316,... |
cursor = connection.cursor() cursor.execute("SELECT name FROM sqlite_master WHERE type == 'table'") return [name for (name,) in cursor] | return [name for (name,) in connection.cursor().execute("SELECT name FROM sqlite_master WHERE type == 'table'")] | def get_table_names(connection): """ Return a list of the table names in the database. """ cursor = connection.cursor() cursor.execute("SELECT name FROM sqlite_master WHERE type == 'table'") return [name for (name,) in cursor] | 473e8f82c49994472dd50f3d32660d64e8c24980 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/473e8f82c49994472dd50f3d32660d64e8c24980/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2121,
67,
1973,
12,
4071,
4672,
3536,
2000,
279,
666,
434,
326,
1014,
1257,
316,
326,
2063,
18,
3536,
327,
306,
529,
364,
261,
529,
16,
13,
316,
1459,
18,
9216,
7675,
8837,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
2121,
67,
1973,
12,
4071,
4672,
3536,
2000,
279,
666,
434,
326,
1014,
1257,
316,
326,
2063,
18,
3536,
327,
306,
529,
364,
261,
529,
16,
13,
316,
1459,
18,
9216,
7675,
8837,
... |
Return the HTML representation of a jQuery slider. | Return the HTML representation of a jQuery range slider. | def html_rangeslider(id, values, callback, steps, default_l=0, default_r=1, margin=0): """ Return the HTML representation of a jQuery slider. INPUT: id -- string -- the DOM id of the slider (better be unique) values -- 'null' or javascript string containing array of values on slider callback-- javascript that is... | 1d3f50ebffa376e7bd2e2d89dc307d13a57d23f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/1d3f50ebffa376e7bd2e2d89dc307d13a57d23f6/interact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
14530,
80,
3585,
12,
350,
16,
924,
16,
1348,
16,
6075,
16,
805,
67,
80,
33,
20,
16,
805,
67,
86,
33,
21,
16,
7333,
33,
20,
4672,
3536,
2000,
326,
3982,
4335,
434,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
14530,
80,
3585,
12,
350,
16,
924,
16,
1348,
16,
6075,
16,
805,
67,
80,
33,
20,
16,
805,
67,
86,
33,
21,
16,
7333,
33,
20,
4672,
3536,
2000,
326,
3982,
4335,
434,
279,
... |
def filter(self, viewlets): return [(name, viewlet) for (name, viewlet) in viewlets if not IDisableViewlet.providedBy(viewlet)] | def filter(self, viewlets): return [(name, viewlet) for (name, viewlet) in viewlets if not IDisableViewlet.providedBy(viewlet)] | 9066867da9a614fb4fa1a81529d705645bc66290 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7127/9066867da9a614fb4fa1a81529d705645bc66290/skin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
12,
2890,
16,
1476,
17307,
4672,
327,
306,
12,
529,
16,
1476,
1810,
13,
364,
261,
529,
16,
1476,
1810,
13,
316,
1476,
17307,
309,
486,
1599,
291,
429,
1767,
1810,
18,
29206,
858,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
12,
2890,
16,
1476,
17307,
4672,
327,
306,
12,
529,
16,
1476,
1810,
13,
364,
261,
529,
16,
1476,
1810,
13,
316,
1476,
17307,
309,
486,
1599,
291,
429,
1767,
1810,
18,
29206,
858,... | |
well, images = self.get_well_images(row, column) if not well: | wellobj, images = self.get_well_images(row, column) if not wellobj: | def parse(self): print "Parsing: %s" % self.original_file.name.val provider = self.original_file_provider data = provider.get_original_file_data(self.original_file) try: et = ElementTree(file=data) finally: data.close() root = et.getroot() areas = root.findall(self.AREA_XPATH) print "Area count: %d" % len(areas) for i,... | f73973150de356774f52323c09dce402a0d8abad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/f73973150de356774f52323c09dce402a0d8abad/populate_roi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
1172,
315,
13963,
30,
738,
87,
6,
738,
365,
18,
8830,
67,
768,
18,
529,
18,
1125,
2893,
273,
365,
18,
8830,
67,
768,
67,
6778,
501,
273,
2893,
18,
588,
67,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
1172,
315,
13963,
30,
738,
87,
6,
738,
365,
18,
8830,
67,
768,
18,
529,
18,
1125,
2893,
273,
365,
18,
8830,
67,
768,
67,
6778,
501,
273,
2893,
18,
588,
67,
88... |
def _test_urls(self, urls, handlers, urlopen=_urlopen_with_retry): | def _test_urls(self, urls, handlers, retry=True): | def _test_urls(self, urls, handlers, urlopen=_urlopen_with_retry): import socket import time import logging debug = logging.getLogger("test_urllib2").debug | cdbd6d4dc83f7072c793555df75f6e11afdd9648 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/cdbd6d4dc83f7072c793555df75f6e11afdd9648/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
16,
3300,
33,
5510,
4672,
1930,
2987,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
3813,
67,
718,
2941,
22,
20387,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
16,
3300,
33,
5510,
4672,
1930,
2987,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
3813,
67,
718,
2941,
22,
20387,
4... |
req = Mock(chrome={}, href=Href('/trac.cgi'), base_path='/trac.cgi', path_info='') | req = Mock(chrome={}, abs_href=Href('http://example.org/trac.cgi'), href=Href('/trac.cgi'), base_path='/trac.cgi', path_info='') | def test_logo(self): req = Mock(chrome={}, href=Href('/trac.cgi'), base_path='/trac.cgi', path_info='') | bde940b9e58fd7dfd50250394096a02c1eb63113 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/bde940b9e58fd7dfd50250394096a02c1eb63113/chrome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19882,
12,
2890,
4672,
1111,
273,
7867,
12,
343,
10896,
28793,
3897,
33,
15962,
2668,
19,
313,
1077,
18,
19062,
19899,
1026,
67,
803,
2218,
19,
313,
1077,
18,
19062,
2187,
589,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19882,
12,
2890,
4672,
1111,
273,
7867,
12,
343,
10896,
28793,
3897,
33,
15962,
2668,
19,
313,
1077,
18,
19062,
19899,
1026,
67,
803,
2218,
19,
313,
1077,
18,
19062,
2187,
589,... |
self.ctx.out("Added %s users to %s" % (len(args.user), args.group)) | self.ctx.out("Added %s users to %s" % (len(args.user), args.GROUP)) | def insert(self, args): import omero c = self.ctx.conn(args) a = c.sf.getAdminService() grp = a.getGroup(args.group) self.addusersbyid(c, grp, args.user) self.ctx.out("Added %s users to %s" % (len(args.user), args.group)) | 62c199b66e3251f9ae4540a6ce0df6e17600fd2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/62c199b66e3251f9ae4540a6ce0df6e17600fd2e/group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
12,
2890,
16,
833,
4672,
1930,
8068,
2439,
276,
273,
365,
18,
5900,
18,
4646,
12,
1968,
13,
279,
273,
276,
18,
21668,
18,
588,
4446,
1179,
1435,
14295,
273,
279,
18,
588,
1114,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
12,
2890,
16,
833,
4672,
1930,
8068,
2439,
276,
273,
365,
18,
5900,
18,
4646,
12,
1968,
13,
279,
273,
276,
18,
21668,
18,
588,
4446,
1179,
1435,
14295,
273,
279,
18,
588,
1114,
... |
print "Vertex %i is selected" % (face.v[i].index) | print "In mesh: %s, Vertex %i is selected" % (mesh.name, face.v[i].index) | def treat_bone(b, parent = None): #skip bones that start with _ #also skips children of that bone so be careful if b.getName()[0] == '_' : return head = b.getHead() tail = b.getTail() # Turns the Blender's head-tail-roll notation into a quaternion quat = matrix2quaternion(blender_bone2matrix(head, tail, b.getRoll())) ... | fb3ba39d342ecdd6ceb27be63321d95e909a9bb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/481/fb3ba39d342ecdd6ceb27be63321d95e909a9bb1/blend2cal3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
67,
19930,
12,
70,
16,
982,
273,
599,
4672,
468,
7457,
324,
5322,
716,
787,
598,
389,
468,
31144,
24646,
2325,
434,
716,
30823,
1427,
506,
26850,
309,
324,
18,
17994,
1435,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
67,
19930,
12,
70,
16,
982,
273,
599,
4672,
468,
7457,
324,
5322,
716,
787,
598,
389,
468,
31144,
24646,
2325,
434,
716,
30823,
1427,
506,
26850,
309,
324,
18,
17994,
1435,
63,
... |
cmemsubsets = attr_from_atttrs_or_bases(bases, attrs, '_cmemsubsets_') | cmemsubsets = attr_from_attrs_or_bases(bases, attrs, '_cmemsubsets_') | def __new__(cls, clsname, bases, attrs): clibdir = attr_from_atttrs_or_bases(bases, attrs, '_clibdir_') clibname = attr_from_atttrs_or_bases(bases, attrs, '_clibname_') cmembers = attr_from_atttrs_or_bases(bases, attrs, '_cmembers_') cfuncs = attr_from_atttrs_or_bases(bases, attrs, '_cfuncs_') if any(c is None for c in... | ebd7e700dee7a426d074bad8aa7d89071bbb2a61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10321/ebd7e700dee7a426d074bad8aa7d89071bbb2a61/simobj.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
2028,
529,
16,
8337,
16,
3422,
4672,
927,
495,
1214,
273,
1604,
67,
2080,
67,
4558,
28007,
67,
280,
67,
18602,
12,
18602,
16,
3422,
16,
2070,
830,
495,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2704,
972,
12,
6429,
16,
2028,
529,
16,
8337,
16,
3422,
4672,
927,
495,
1214,
273,
1604,
67,
2080,
67,
4558,
28007,
67,
280,
67,
18602,
12,
18602,
16,
3422,
16,
2070,
830,
495,
... |
cmd_func = getattr(handler, cmd) cmd_func() | def start_cmd(argv): cmd_arg = '' if len(argv) > 1: cmd_arg = argv[1] # change common help args to help command if cmd_arg in ('--help', '-h', '--usage', '-u', '/?'): cmd_arg = 'usage' completions = complete_command(cmd_arg) if cmd_arg and len(completions) > 0: if len(completions) == 1: # get the only completion ... | f91beeacf06ee26c7f93ba881ffc708acb9b6bcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10355/f91beeacf06ee26c7f93ba881ffc708acb9b6bcf/hm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
4172,
12,
19485,
4672,
225,
1797,
67,
3175,
273,
875,
309,
562,
12,
19485,
13,
405,
404,
30,
1797,
67,
3175,
273,
5261,
63,
21,
65,
225,
468,
2549,
2975,
2809,
833,
358,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
4172,
12,
19485,
4672,
225,
1797,
67,
3175,
273,
875,
309,
562,
12,
19485,
13,
405,
404,
30,
1797,
67,
3175,
273,
5261,
63,
21,
65,
225,
468,
2549,
2975,
2809,
833,
358,
280... | |
logging.info("Reading costs from '%s'" % file) | logging.debug("Reading costs from '%s'" % file) | def readCostsFile(file): logging.info("Reading costs from '%s'" % file) costs = [ ] with open(file, "r") as fd: ## Read costs until we find our date tag for line in reversed(fd.readlines()): if line.startswith("-- "): break data = line.split("\t") costs.insert(0, (int(data[0]), float(data[1]))) ## Read ## WITH return c... | 7252cafc619e15c263669d73db03ebfdbbe27311 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11748/7252cafc619e15c263669d73db03ebfdbbe27311/vldb-experiments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
21420,
812,
12,
768,
4672,
2907,
18,
4148,
2932,
15714,
22793,
628,
1995,
87,
4970,
738,
585,
13,
22793,
273,
306,
308,
598,
1696,
12,
768,
16,
315,
86,
7923,
487,
5194,
30,
7541,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
21420,
812,
12,
768,
4672,
2907,
18,
4148,
2932,
15714,
22793,
628,
1995,
87,
4970,
738,
585,
13,
22793,
273,
306,
308,
598,
1696,
12,
768,
16,
315,
86,
7923,
487,
5194,
30,
7541,... |
if self._bysetpos and self._timeset: for pos in self._bysetpos: | if bysetpos and timeset: for pos in bysetpos: | def _iter(self): year, month, day, hour, minute, second, weekday, yearday, _ = \ self._dtstart.timetuple() | d375f07e08a8fd61f1640e67f981e1abdac8d8d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/d375f07e08a8fd61f1640e67f981e1abdac8d8d1/rrule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2165,
12,
2890,
4672,
3286,
16,
3138,
16,
2548,
16,
6126,
16,
8044,
16,
2205,
16,
7560,
16,
677,
73,
1060,
528,
16,
389,
273,
521,
365,
6315,
7510,
1937,
18,
8584,
278,
2268,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2165,
12,
2890,
4672,
3286,
16,
3138,
16,
2548,
16,
6126,
16,
8044,
16,
2205,
16,
7560,
16,
677,
73,
1060,
528,
16,
389,
273,
521,
365,
6315,
7510,
1937,
18,
8584,
278,
2268,
14... |
z = zipfile.ZipFile(zip_filename, "wb", | z = zipfile.ZipFile(zip_filename, "w", | def visit (z, dirname, names): for name in names: path = os.path.normpath(os.path.join(dirname, name)) if os.path.isfile(path): z.write(path, path) | 1642182b2b8894f97c4df65c278e6a9db6422660 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1642182b2b8894f97c4df65c278e6a9db6422660/archive_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
261,
94,
16,
4283,
16,
1257,
4672,
364,
508,
316,
1257,
30,
589,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
12287,
16,
508,
3719,
309,
1140,
18,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
261,
94,
16,
4283,
16,
1257,
4672,
364,
508,
316,
1257,
30,
589,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
12287,
16,
508,
3719,
309,
1140,
18,
803,
... |
lines.append(', %s = %s\n' % (k,fortran_style(k,v))) | lines.append(' %s = %s\n' % (k,fortran_style(k,v))) | def produce_namelist_contents(self): # return a string which can be used as the contents of # a plume namelist file lines = [] vItems = self.vals.items() vItems.sort() for (k,v) in vItems: try: lines.append(', %s = %s\n' % (k,fortran_style(k,v))) except FortranConversionException: raise Exception('%s \n %s \n %s' % (... | c73eb598367ecec577f53c4fe98e9ad0580f7d34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2666/c73eb598367ecec577f53c4fe98e9ad0580f7d34/build_case.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11402,
67,
17808,
5449,
67,
3980,
12,
2890,
4672,
225,
468,
327,
279,
533,
1492,
848,
506,
1399,
487,
326,
2939,
434,
468,
279,
886,
2066,
15135,
5449,
585,
225,
2362,
273,
5378,
331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11402,
67,
17808,
5449,
67,
3980,
12,
2890,
4672,
225,
468,
327,
279,
533,
1492,
848,
506,
1399,
487,
326,
2939,
434,
468,
279,
886,
2066,
15135,
5449,
585,
225,
2362,
273,
5378,
331,
... |
for i in range(0, 0xD800): | for i in range(0, 0x110000): | def __init__(self, filename, exclusions, expand=1): file = open(filename) table = [None] * 0x110000 while 1: s = file.readline() if not s: break s = s.strip().split(";") char = int(s[0], 16) table[char] = s | 9e20872ba59891867e733a6bf73ae9e6c08289b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9e20872ba59891867e733a6bf73ae9e6c08289b1/makeunicodedata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
29523,
16,
4542,
33,
21,
4672,
585,
273,
1696,
12,
3459,
13,
1014,
273,
306,
7036,
65,
380,
374,
92,
2499,
2787,
1323,
404,
30,
272,
273,
585... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
29523,
16,
4542,
33,
21,
4672,
585,
273,
1696,
12,
3459,
13,
1014,
273,
306,
7036,
65,
380,
374,
92,
2499,
2787,
1323,
404,
30,
272,
273,
585... |
'object': 'account.account.open_general_ledger.init', | 'object': 'account.account.print_general_ledger.init', | def default_posted(self, cursor, user, context=None): return False | d0e2877854fa8d55067ec10bb8ac70224b2dd4b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/d0e2877854fa8d55067ec10bb8ac70224b2dd4b4/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
2767,
329,
12,
2890,
16,
3347,
16,
729,
16,
819,
33,
7036,
4672,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
2767,
329,
12,
2890,
16,
3347,
16,
729,
16,
819,
33,
7036,
4672,
327,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
_logger.debug('Successfully set activity properties for %s', self._id) | _logger.debug('%r props successfully set to %r', self, props) | def properties_set(e=None): if e is None: _logger.debug('Successfully set activity properties for %s', self._id) # signal it back to local processes too # FIXME: if we stopped ignoring Telepathy # ActivityPropertiesChanged signals from ourselves, we could # just use that... self.set_properties(props, changed) else: _lo... | 25577b1486c01197df936bb991230734bc38df7b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3113/25577b1486c01197df936bb991230734bc38df7b/activity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1790,
67,
542,
12,
73,
33,
7036,
4672,
309,
425,
353,
599,
30,
389,
4901,
18,
4148,
29909,
86,
3458,
4985,
444,
358,
738,
86,
2187,
365,
16,
3458,
13,
468,
4277,
518,
1473,
358,
1191... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1790,
67,
542,
12,
73,
33,
7036,
4672,
309,
425,
353,
599,
30,
389,
4901,
18,
4148,
29909,
86,
3458,
4985,
444,
358,
738,
86,
2187,
365,
16,
3458,
13,
468,
4277,
518,
1473,
358,
1191... |
for mname, entrylist in Bindings.menudefs: menu = menudict.get(mname) if not menu: continue for entry in entrylist: if not entry: menu.add_separator() | tkversion = root.tk.eval('info patchlevel') if tkversion >= '8.4.14': Bindings.menudefs[0] = ('application', [ ('About IDLE', '<<about-idle>>'), None, ]) root.createcommand('::tk::mac::ShowPreferences', config_dialog) else: for mname, entrylist in Bindings.menudefs: menu = menudict.get(mname) if not menu: continue | def config_dialog(event=None): import configDialog configDialog.ConfigDialog(root, 'Settings') | 2c17b32a8f6a14583ca3d772acc0ab8d88f9eb0b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/2c17b32a8f6a14583ca3d772acc0ab8d88f9eb0b/macosxSupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
642,
67,
12730,
12,
2575,
33,
7036,
4672,
1930,
642,
6353,
642,
6353,
18,
809,
6353,
12,
3085,
16,
296,
2628,
6134,
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,
642,
67,
12730,
12,
2575,
33,
7036,
4672,
1930,
642,
6353,
642,
6353,
18,
809,
6353,
12,
3085,
16,
296,
2628,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ans = _install_scripts.run(self) | ans = _install_scripts.run(self) | def run(self): ans = _install_scripts.run(self) self.update_scripts() return ans | 5ebdb94696d97f47d7564118ea2405202ea2318c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/5ebdb94696d97f47d7564118ea2405202ea2318c/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
4152,
273,
389,
5425,
67,
12827,
18,
2681,
12,
2890,
13,
365,
18,
2725,
67,
12827,
1435,
327,
4152,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
4152,
273,
389,
5425,
67,
12827,
18,
2681,
12,
2890,
13,
365,
18,
2725,
67,
12827,
1435,
327,
4152,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assert [node.op for node in f.maker.env.toposort()] == [sigmoid, | assert [node.op for node in f.maker.env.toposort()] == [sigmoid, | def test_exp_over_1_plus_exp(self): m = theano.config.mode if m == 'FAST_COMPILE': m = 'FAST_RUN' m = theano.compile.mode.get_mode(m) m = m.excluding('local_elemwise_fusion') | db66b8e6a0132948664a7226d628ce6b448ea23c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/db66b8e6a0132948664a7226d628ce6b448ea23c/test_sigm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2749,
67,
1643,
67,
21,
67,
10103,
67,
2749,
12,
2890,
4672,
312,
273,
326,
31922,
18,
1425,
18,
3188,
309,
312,
422,
296,
2046,
882,
67,
31075,
900,
4278,
312,
273,
296,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2749,
67,
1643,
67,
21,
67,
10103,
67,
2749,
12,
2890,
4672,
312,
273,
326,
31922,
18,
1425,
18,
3188,
309,
312,
422,
296,
2046,
882,
67,
31075,
900,
4278,
312,
273,
296,
2... |
@print_method | def on_iter_children(self, parent): if parent: if len(parent) == 1: return (parent[0], 0) else: return None | e44fcb0ae4a01d4be12b33910504e5e994ed9b5b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5682/e44fcb0ae4a01d4be12b33910504e5e994ed9b5b/dbus_introspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
2165,
67,
5906,
12,
2890,
16,
982,
4672,
309,
982,
30,
309,
562,
12,
2938,
13,
422,
404,
30,
327,
261,
2938,
63,
20,
6487,
374,
13,
469,
30,
327,
599,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
2165,
67,
5906,
12,
2890,
16,
982,
4672,
309,
982,
30,
309,
562,
12,
2938,
13,
422,
404,
30,
327,
261,
2938,
63,
20,
6487,
374,
13,
469,
30,
327,
599,
2,
-100,
-100,
-100,... | |
'version' : "0.8.3.a", | 'version' : "0.8.3.b", | def path(p): if WIN and ' ' in p: return '"%s"'%p else: return p | 39a96352c5f5d8cc87589d2f490231e902c57401 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2464/39a96352c5f5d8cc87589d2f490231e902c57401/info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
12,
84,
4672,
309,
678,
706,
471,
296,
296,
316,
293,
30,
327,
22563,
87,
5187,
9,
84,
469,
30,
327,
293,
225,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
12,
84,
4672,
309,
678,
706,
471,
296,
296,
316,
293,
30,
327,
22563,
87,
5187,
9,
84,
469,
30,
327,
293,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
score(bayes, unknown) | for u in unknown: if len(unknown) > 1: print "Scoring", u score(bayes, u) | def main(): """Main program; parse options and go.""" try: opts, args = getopt.getopt(sys.argv[1:], 'hdfg:s:p:u:') except getopt.error, msg: usage(2, msg) if not opts: usage(2, "No options given") pck = DEFAULTDB good = spam = unknown = None do_filter = usedb = False for opt, arg in opts: if opt == '-h': usage(0) eli... | c9870420a64c1bd5a600a2397e137afd48384e63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/c9870420a64c1bd5a600a2397e137afd48384e63/hammie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
5402,
31,
1109,
702,
471,
1960,
12123,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
22057,
2137,
30,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
5402,
31,
1109,
702,
471,
1960,
12123,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
22057,
2137,
30,
87,
... |
'/lib', | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | c6b4ea30c40d923a15612c5713674d94e2efc1fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c6b4ea30c40d923a15612c5713674d94e2efc1fe/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | |
'EXECUTION': ('ref/naming', ''), 'NAMESPACES': ('ref/naming', 'global ASSIGNMENT DELETION'), | 'EXECUTION': ('ref/execmodel', 'NAMESPACES DYNAMICFEATURES EXCEPTIONS'), 'NAMESPACES': ('ref/naming', 'global ASSIGNMENT DELETION DYNAMICFEATURES'), 'DYNAMICFEATURES': ('ref/dynamic-features', ''), | 'METHODS': ('lib/typesmethods', 'class def CLASSES TYPES'), | ee7fe652704dbef27f3afe0cc5742f6e3a1c9b36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ee7fe652704dbef27f3afe0cc5742f6e3a1c9b36/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
296,
25750,
4278,
7707,
2941,
19,
2352,
5163,
2187,
296,
1106,
1652,
29859,
20230,
3463,
55,
19899,
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,
296,
25750,
4278,
7707,
2941,
19,
2352,
5163,
2187,
296,
1106,
1652,
29859,
20230,
3463,
55,
19899,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
structure using the JMol Applet. """ basename = "%s_CHAIN%s_NTLS%d_ANIMATE" % (self.struct_id, chain.chain_id, cpartition.num_tls_segments()) html_path = "%s.html" % (basename) pdb_path = "%s.pdb" % (basename) | structure using the Jmol Applet. """ basename = "%s_CHAIN%s_NTLS%d_ANIMATE" % ( self.struct_id, chain.chain_id, cpartition.num_tls_segments()) html_file = "%s.html" % (basename) pdb_file = "%s.pdb" % (basename) raw_r3d_file = "%s.raw" % (basename) r3d_body_file = "%s.r3d" % (basename) | def jmol_animate_html(self, chain, cpartition): """Writes out the HTML page which will display the structure using the JMol Applet. """ basename = "%s_CHAIN%s_NTLS%d_ANIMATE" % (self.struct_id, chain.chain_id, cpartition.num_tls_segments()) | 81092918682cb3b404793cc6abd4020f9621498a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10674/81092918682cb3b404793cc6abd4020f9621498a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
525,
21260,
67,
304,
4988,
67,
2620,
12,
2890,
16,
2687,
16,
276,
10534,
4672,
3536,
8368,
596,
326,
3982,
1363,
1492,
903,
2562,
326,
3695,
1450,
326,
804,
49,
355,
1716,
1469,
18,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
525,
21260,
67,
304,
4988,
67,
2620,
12,
2890,
16,
2687,
16,
276,
10534,
4672,
3536,
8368,
596,
326,
3982,
1363,
1492,
903,
2562,
326,
3695,
1450,
326,
804,
49,
355,
1716,
1469,
18,
35... |
self.textNode.setShadowColor(*shadow) self.textNode.setShadow(*shadowOffset) | self.textNode.setShadowColor(shadow[0], shadow[1], shadow[2], shadow[3]) self.textNode.setShadow(0.04, 0.04) | def setShadow(self, shadow): self.textNode.freeze() if shadow[3] != 0: # If we have a shadow color, create a shadow. self.textNode.setShadowColor(*shadow) self.textNode.setShadow(*shadowOffset) else: # Otherwise, remove the shadow. self.textNode.clearShadow() self.textNode.thaw() | 78164ebad6af4d191b45b9ce4a90f1efe276eeb9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/78164ebad6af4d191b45b9ce4a90f1efe276eeb9/OnscreenText.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12957,
12,
2890,
16,
10510,
4672,
365,
18,
955,
907,
18,
29631,
1435,
309,
10510,
63,
23,
65,
480,
374,
30,
468,
971,
732,
1240,
279,
10510,
2036,
16,
752,
279,
10510,
18,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12957,
12,
2890,
16,
10510,
4672,
365,
18,
955,
907,
18,
29631,
1435,
309,
10510,
63,
23,
65,
480,
374,
30,
468,
971,
732,
1240,
279,
10510,
2036,
16,
752,
279,
10510,
18,
365,
... |
for i in range(0,len(mylist),2): | for i in range(0, len(mylist), 2): | def create_data_paths(thing): """ This function takes in a string that contains NeXus path and signal pairs and turns them into a tuple (for one pair) or a list of tuples. Parameters: ---------- -> things is a string containing a list of NeXus path and signal pairs Returns: ------- <- A tuple or list of tuples of the... | aed9fc6677d3ad19b72ea3d7da2fc9d6d0cf6bf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/aed9fc6677d3ad19b72ea3d7da2fc9d6d0cf6bf8/hlr_driver_helper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
892,
67,
4481,
12,
4274,
4672,
3536,
1220,
445,
5530,
316,
279,
533,
716,
1914,
7455,
60,
407,
589,
471,
4277,
5574,
471,
20748,
2182,
1368,
279,
3193,
261,
1884,
1245,
3082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
892,
67,
4481,
12,
4274,
4672,
3536,
1220,
445,
5530,
316,
279,
533,
716,
1914,
7455,
60,
407,
589,
471,
4277,
5574,
471,
20748,
2182,
1368,
279,
3193,
261,
1884,
1245,
3082,
... |
os.system(crop_cmd % (source_file, border[1], height - border[0] - border[2], width - border[1], border[0], dest_file + "-r.png")) os.system(crop_cmd % (source_file, border[3], border[2], 0, height - border[2], dest_file + "-bl.png")) os.system(crop_cmd % (source_file, width- border[3] - border[1], border[2], border[3... | if border[1] > 0: os.system(crop_cmd % (source_file, border[1], height - border[0] - border[2], width - border[1], border[0], dest_file + "-r.png")) if border[2] > 0 and border[3] > 0: os.system(crop_cmd % (source_file, border[3], border[2], 0, height - border[2], dest_file + "-bl.png")) if border[2] > 0: os.system(cro... | def slice(self, source, dest_prefix, border, trim_width): | 17cc5bcc924116d63735d2b69b5de8c0a40637d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/17cc5bcc924116d63735d2b69b5de8c0a40637d1/ImageClipping.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2788,
12,
2890,
16,
1084,
16,
1570,
67,
3239,
16,
5795,
16,
2209,
67,
2819,
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,
... | [
1,
1,
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,
2788,
12,
2890,
16,
1084,
16,
1570,
67,
3239,
16,
5795,
16,
2209,
67,
2819,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
os.path.mkdir(root+"tmp",01777) | os.mkdir(root+"tmp",01777) | def ebuild_init(): "performs db/variable initialization for the ebuild system. Not required for other scripts." global local_virts, root_virts, roottree, localtree, ebuild_initialized, root, virtuals local_virts=getvirtuals("/") if root=="/": root_virts=local_virts else: root_virts=getvirtuals(root) localtree=vartree... | 38698ba7a157967c492d312fba5eb7780479f4ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/38698ba7a157967c492d312fba5eb7780479f4ec/portage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
3510,
67,
2738,
13332,
315,
457,
9741,
1319,
19,
6105,
10313,
364,
326,
425,
3510,
2619,
18,
225,
2288,
1931,
364,
1308,
8873,
1199,
2552,
1191,
67,
14035,
87,
16,
1365,
67,
14035,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
3510,
67,
2738,
13332,
315,
457,
9741,
1319,
19,
6105,
10313,
364,
326,
425,
3510,
2619,
18,
225,
2288,
1931,
364,
1308,
8873,
1199,
2552,
1191,
67,
14035,
87,
16,
1365,
67,
14035,
... |
print c.title() print "----------------------------------------" | wikipedia.output(c.title()) wikipedia.output("----------------------------------------" | def make_categories(page, list, site = None): if site is None: site = wikipedia.getSite() pllist=[] for p in list: cattitle="%s:%s" % (site.category_namespace(), p) pllist.append(wikipedia.Page(site,cattitle)) page.put(wikipedia.replaceCategoryLinks(page.get(), pllist), comment = wikipedia.translate(site.lang, msg)) | 188da8c210889294c76ba2dce6fd22781cf41ee3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/188da8c210889294c76ba2dce6fd22781cf41ee3/catall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
8995,
12,
2433,
16,
666,
16,
2834,
273,
599,
4672,
309,
2834,
353,
599,
30,
2834,
273,
21137,
18,
588,
4956,
1435,
886,
1098,
33,
8526,
364,
293,
316,
666,
30,
6573,
2649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
8995,
12,
2433,
16,
666,
16,
2834,
273,
599,
4672,
309,
2834,
353,
599,
30,
2834,
273,
21137,
18,
588,
4956,
1435,
886,
1098,
33,
8526,
364,
293,
316,
666,
30,
6573,
2649,
... |
def create_sections(self): | def create_content_areas(self): | def create_sections(self): sections = [] | 29e1c0bc49c57611900a91e964b3d32e2705c60f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/29e1c0bc49c57611900a91e964b3d32e2705c60f/bb9_course.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1745,
67,
21766,
12,
2890,
4672,
7178,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1745,
67,
21766,
12,
2890,
4672,
7178,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.library_dirs.append(os.path.join(sys.exec_prefix, 'PC', 'VC6')) | self.library_dirs.append(os.path.join(sys.exec_prefix, 'PCBuild')) | def finalize_options (self): from distutils import sysconfig | 8337693158071c365994faad9d3f282aa61949ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8337693158071c365994faad9d3f282aa61949ed/build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
2116,
261,
2890,
4672,
628,
2411,
5471,
1930,
2589,
1425,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12409,
67,
2116,
261,
2890,
4672,
628,
2411,
5471,
1930,
2589,
1425,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
S = singular_default f = S(f) I = self._singular_(S).groebner() g = f.reduce(I, 1) | if self.base_ring() == sage.rings.integer_ring.ZZ: g = self._reduce_using_macaulay2(f) else: S = singular_default f = S(f) I = self._singular_(S).groebner() g = f.reduce(I, 1) | def _contains_(self, f): """ EXAMPLES: sage: R, (x,y) = PolynomialRing(QQ, 2, 'xy').objgens() sage: I = (x^3 + y, y)*R sage: x in I False sage: y in I True sage: x^3 + 2*y in I True """ S = singular_default f = S(f) I = self._singular_(S).groebner() g = f.reduce(I, 1) # 1 avoids tail reduction (page 67 of singular boo... | 7d36938ead7392c7dfeaf12445ddb5ebb472995d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7d36938ead7392c7dfeaf12445ddb5ebb472995d/multi_polynomial_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12298,
67,
12,
2890,
16,
284,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
534,
16,
261,
92,
16,
93,
13,
273,
6730,
13602,
10369,
12,
53,
53,
16,
576,
16,
296,
1698,
16063,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12298,
67,
12,
2890,
16,
284,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
534,
16,
261,
92,
16,
93,
13,
273,
6730,
13602,
10369,
12,
53,
53,
16,
576,
16,
296,
1698,
16063,
... |
def say(self,event): | def say(self,event=None): | def say(self,event): message=self.input.get('1.0',END)[:-1] self.input.delete('1.0',END) if message: self.messageReceived(message,self.gateway.username) self.im.directMessage(self.gateway,self.contact,message) return "break" # don't put the newline in | 9078cecc707fdea05de3fce15190ee235bb404f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9078cecc707fdea05de3fce15190ee235bb404f5/tkim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12532,
12,
2890,
16,
2575,
33,
7036,
4672,
883,
33,
2890,
18,
2630,
18,
588,
2668,
21,
18,
20,
2187,
4415,
13,
10531,
17,
21,
65,
365,
18,
2630,
18,
3733,
2668,
21,
18,
20,
2187,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12532,
12,
2890,
16,
2575,
33,
7036,
4672,
883,
33,
2890,
18,
2630,
18,
588,
2668,
21,
18,
20,
2187,
4415,
13,
10531,
17,
21,
65,
365,
18,
2630,
18,
3733,
2668,
21,
18,
20,
2187,
4... |
if type(destip) is not str or type(destport) is not int or type(message) \ is not str: raise RepyArgumentError("Invalid type of one or more arguments " + \ "to sendmessage().") if not _is_valid_network_port(destport): raise RepyArgumentError("Destination port number must be an " + \ "integer, between 1 and 65535.") ... | def sendmessage(destip, destport, message, localip, localport): """ <Purpose> Send a message to a host / port <Arguments> destip: The host to send a message to destport: The port to send the message to message: The message to send localhost: The local IP to send the message from localport: The local port to send the m... | d4ee8209e162b6ccd341f8d349a90df0a51e60af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7280/d4ee8209e162b6ccd341f8d349a90df0a51e60af/emulcomm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
2150,
12,
10488,
625,
16,
1570,
655,
16,
883,
16,
1191,
625,
16,
1191,
655,
4672,
3536,
411,
10262,
4150,
34,
2479,
279,
883,
358,
279,
1479,
342,
1756,
225,
411,
4628,
34,
1570,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
2150,
12,
10488,
625,
16,
1570,
655,
16,
883,
16,
1191,
625,
16,
1191,
655,
4672,
3536,
411,
10262,
4150,
34,
2479,
279,
883,
358,
279,
1479,
342,
1756,
225,
411,
4628,
34,
1570,... | |
for hn in all_hosts_untagged: | for hn in all_active_hosts() + all_active_clusters(): | def list_all_hosts(hostgroups): hostlist = [] for hn in all_hosts_untagged: if len(hostgroups) == 0: hostlist.append(hn) else: for hg in hostgroups_of(hn): if hg in hostgroups: hostlist.append(hn) break return hostlist | 0e3f4033079a7debacf35afff4a2f8d3e675d04c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5589/0e3f4033079a7debacf35afff4a2f8d3e675d04c/check_mk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
454,
67,
11588,
12,
2564,
4650,
4672,
1479,
1098,
273,
5378,
364,
366,
82,
316,
777,
67,
3535,
67,
11588,
1435,
397,
777,
67,
3535,
67,
16806,
13332,
309,
562,
12,
2564,
4650,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
454,
67,
11588,
12,
2564,
4650,
4672,
1479,
1098,
273,
5378,
364,
366,
82,
316,
777,
67,
3535,
67,
11588,
1435,
397,
777,
67,
3535,
67,
16806,
13332,
309,
562,
12,
2564,
4650,... |
that produced the best value. Nothing that got passed into this function should have modified state at the end. """ | that produced the best value. If there are no speculative children for whatever reason, return the particle like in SocialPromotion. Nothing that got passed into this function should have modified state at the end. """ if not children: newparticle = particle.copy() newparticle.iters += 1 return newparticle | def pick_child(self, particle, it1messages, children): """Instead of picking the branch that matches PSO, just take the branch that produced the best value. Nothing that got passed into this function should have modified state at the end. """ # We still do this so that the child will have the correct nbestval. compara... | 7a3971afd2cc9b63d644b90664fcb03d4fc17784 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/966/7a3971afd2cc9b63d644b90664fcb03d4fc17784/specmethod.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6002,
67,
3624,
12,
2890,
16,
20036,
16,
518,
21,
6833,
16,
2325,
4672,
3536,
10773,
684,
434,
6002,
310,
326,
3803,
716,
1885,
453,
3584,
16,
2537,
4862,
326,
3803,
716,
14929,
326,
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,
6002,
67,
3624,
12,
2890,
16,
20036,
16,
518,
21,
6833,
16,
2325,
4672,
3536,
10773,
684,
434,
6002,
310,
326,
3803,
716,
1885,
453,
3584,
16,
2537,
4862,
326,
3803,
716,
14929,
326,
3... |
for build in self.buildfarm.get_tree_builds(tree=tree): | for build in self.buildfarm.get_tree_builds(tree): | def render(self, myself, tree, sort_by): """Draw the "recent builds" view""" last_host = "" all_builds = [] | 6f759d61aa9f4714f83d32476fcc23e0c846d5e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6f759d61aa9f4714f83d32476fcc23e0c846d5e7/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
3399,
2890,
16,
2151,
16,
1524,
67,
1637,
4672,
3536,
6493,
326,
315,
20872,
10736,
6,
1476,
8395,
1142,
67,
2564,
273,
1408,
777,
67,
27324,
273,
5378,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
3399,
2890,
16,
2151,
16,
1524,
67,
1637,
4672,
3536,
6493,
326,
315,
20872,
10736,
6,
1476,
8395,
1142,
67,
2564,
273,
1408,
777,
67,
27324,
273,
5378,
2,
-100,
-1... |
self.__class__.buildloaders() | self.__class__.buildloaders() | def __init__(self, space, w_name): """ NOT_RPYTHON """ Module.__init__(self, space, w_name) self.lazy = True self.__class__.buildloaders() | 3eb08eaee2e9933f115f49dc38774af6ce244f2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/3eb08eaee2e9933f115f49dc38774af6ce244f2c/lazymodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3476,
16,
341,
67,
529,
4672,
3536,
4269,
67,
54,
16235,
20131,
3536,
5924,
16186,
2738,
972,
12,
2890,
16,
3476,
16,
341,
67,
529,
13,
365,
18,
15998,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3476,
16,
341,
67,
529,
4672,
3536,
4269,
67,
54,
16235,
20131,
3536,
5924,
16186,
2738,
972,
12,
2890,
16,
3476,
16,
341,
67,
529,
13,
365,
18,
15998,
... |
def __init__(self, class_names, currmodule, show_builtins=False): | def __init__(self, class_names, currmodule, show_builtins=False, parts=0): | def __init__(self, class_names, currmodule, show_builtins=False): """ *class_names* is a list of child classes to show bases from. | c27cf37aa3413c1706ea1f344972d60ea1f8fe98 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/c27cf37aa3413c1706ea1f344972d60ea1f8fe98/inheritance_diagram.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
667,
67,
1973,
16,
4306,
2978,
16,
2405,
67,
12406,
2679,
33,
8381,
16,
2140,
33,
20,
4672,
3536,
380,
1106,
67,
1973,
14,
353,
279,
666,
434,
1151,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
667,
67,
1973,
16,
4306,
2978,
16,
2405,
67,
12406,
2679,
33,
8381,
16,
2140,
33,
20,
4672,
3536,
380,
1106,
67,
1973,
14,
353,
279,
666,
434,
1151,
33... |
return redirect('/%s/%s' % (translation_project.language.code, translation_project.project.code), message=_('You do not have the right to create SDF files.')) return HttpResponse(translation_project.getoo(), content_type="text/tab-separated-values") | return redirect(translation_project.pootle_path, message=_('You do not have the right to create SDF files.')) response = HttpResponse(translation_project.getoo(), content_type="text/tab-separated-values") filename = "%s-%s.sdf" % (translation_project.language.code, translation_project.project.code) response['Content-D... | def export_sdf(request, translation_project, file_path): if not check_permission("pocompile", request): return redirect('/%s/%s' % (translation_project.language.code, translation_project.project.code), message=_('You do not have the right to create SDF files.')) return HttpResponse(translation_project.getoo(), content_... | 86599fc890798d44fcfeed62691f736edc44d7ad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/86599fc890798d44fcfeed62691f736edc44d7ad/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
87,
2180,
12,
2293,
16,
4794,
67,
4406,
16,
585,
67,
803,
4672,
309,
486,
866,
67,
9827,
2932,
84,
9970,
84,
398,
3113,
590,
4672,
327,
3136,
12,
10173,
67,
4406,
18,
1631,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
87,
2180,
12,
2293,
16,
4794,
67,
4406,
16,
585,
67,
803,
4672,
309,
486,
866,
67,
9827,
2932,
84,
9970,
84,
398,
3113,
590,
4672,
327,
3136,
12,
10173,
67,
4406,
18,
1631,... |
print l.fontName,l.fontSize,l.textColor,l.bold, l.text[:25] | print l.fontName,l.fontSize,l.textColor,l.bold, l.rise, l.text[:25] | def parse(self, text, style): """Given a formatted string will return a list of ParaFrag objects with their calculated widths. If errors occur None will be returned and the self.errors holds a list of the error messages. """ | fb31c922497891b8ad98204ce2fce8be3ea66367 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/fb31c922497891b8ad98204ce2fce8be3ea66367/paraparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
2154,
4672,
3536,
6083,
279,
4955,
533,
903,
327,
279,
666,
434,
2280,
69,
19509,
2184,
598,
3675,
8894,
15801,
18,
971,
1334,
3334,
599,
903,
506,
2106,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
2154,
4672,
3536,
6083,
279,
4955,
533,
903,
327,
279,
666,
434,
2280,
69,
19509,
2184,
598,
3675,
8894,
15801,
18,
971,
1334,
3334,
599,
903,
506,
2106,
4... |
self.clear_details() | def change_filter(self): x = 0 criteria = gutils.on_combo_box_entry_changed(self.filter_criteria) text = gutils.gescape(self.e_filter.get_text()) if criteria == self._("Original Title") and text: data = self.db.select_movie_by_original_title(text) elif criteria == self._("Title") and text: data = self.db.select_movie_... | 62027b66efec9335f6fb8c23a1a1f464a1cc0de8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/62027b66efec9335f6fb8c23a1a1f464a1cc0de8/quick_filter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
2188,
12,
2890,
4672,
619,
273,
374,
3582,
273,
314,
5471,
18,
265,
67,
25053,
67,
2147,
67,
4099,
67,
6703,
12,
2890,
18,
2188,
67,
9714,
13,
977,
273,
314,
5471,
18,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
2188,
12,
2890,
4672,
619,
273,
374,
3582,
273,
314,
5471,
18,
265,
67,
25053,
67,
2147,
67,
4099,
67,
6703,
12,
2890,
18,
2188,
67,
9714,
13,
977,
273,
314,
5471,
18,
75,
... | |
G = Graphics() for i in range(0, len(funcs)): G += plot(funcs[i], (xmin, xmax), polar=polar, **kwds) return G | return reduce(operator.add, (plot(f, (xmin, xmax), polar=polar, **kwds) for f in funcs)) | def _call(self, funcs, xrange, parametric=False, polar=False, label='', randomize=True, **kwds): options = dict(self.options) if kwds.has_key('color') and not kwds.has_key('rgbcolor'): kwds['rgbcolor'] = kwds['color'] del kwds['color'] for k, v in kwds.iteritems(): options[k] = v | 4cdc64d73e24ddcdf396a7b5f766f02774b0c237 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4cdc64d73e24ddcdf396a7b5f766f02774b0c237/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
15630,
16,
12314,
16,
579,
1591,
33,
8381,
16,
24244,
33,
8381,
16,
1433,
2218,
2187,
2744,
554,
33,
5510,
16,
2826,
25577,
4672,
702,
273,
2065,
12,
2890,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
15630,
16,
12314,
16,
579,
1591,
33,
8381,
16,
24244,
33,
8381,
16,
1433,
2218,
2187,
2744,
554,
33,
5510,
16,
2826,
25577,
4672,
702,
273,
2065,
12,
2890,
18,... |
TargetAdd('p3dpython.exe', input='p3dpython_p3dpython_composite1.obj') TargetAdd('p3dpython.exe', input='p3dpython_p3dPythonMain.obj') TargetAdd('p3dpython.exe', input=COMMON_PANDA_LIBS) TargetAdd('p3dpython.exe', opts=['PYTHON', 'TINYXML', 'WINUSER']) | TargetAdd('p3dpythonw.exe', input='p3dpython_p3dpython_composite1.obj') TargetAdd('p3dpythonw.exe', input='p3dpython_p3dPythonMain.obj') TargetAdd('p3dpythonw.exe', input=COMMON_PANDA_LIBS) TargetAdd('p3dpythonw.exe', opts=['PYTHON', 'TINYXML', 'WINUSER']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | a784967166568651ddcd4db3e9b53cfae6015155 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/a784967166568651ddcd4db3e9b53cfae6015155/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
recipes = model.MachineRecipe.query().join(['distro','arch']).join(['recipeset','job']).filter(model.RecipeSet.job_id.in_(jobs)).add_column(model.Arch.arch) | recipes = model.Recipe.query().join(['distro','arch']).join(['recipeset','job']).filter(model.RecipeSet.job_id.in_(jobs)).add_column(model.Arch.arch) | def generate_data(self,**kw): """ generate_data() returns a nested tuple which represents tasks->arches->whiteboards and their data objects """ jobs = [] self.arches_used = {} self.whiteboards_used = {} whiteboard_data = {} if 'job_ids' in kw: jobs = kw['job_ids'].split() elif 'whiteboard' in kw: job_query = model.Job.... | 8306f353ee9dcb83abbdc9a64dfbc3f90292e940 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/8306f353ee9dcb83abbdc9a64dfbc3f90292e940/job_matrix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
892,
12,
2890,
16,
636,
9987,
4672,
3536,
2103,
67,
892,
1435,
1135,
279,
4764,
3193,
1492,
8686,
4592,
2122,
991,
281,
2122,
14739,
3752,
87,
471,
3675,
501,
2184,
3536,
6550,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
892,
12,
2890,
16,
636,
9987,
4672,
3536,
2103,
67,
892,
1435,
1135,
279,
4764,
3193,
1492,
8686,
4592,
2122,
991,
281,
2122,
14739,
3752,
87,
471,
3675,
501,
2184,
3536,
6550,... |
self.session.openWithCallback(self.closed, BouquetSelector, bouquets, self.openBouquetEPG) | if withCallback: self.session.openWithCallback(self.closed, BouquetSelector, bouquets, self.openBouquetEPG) else: self.session.open(BouquetSelector, bouquets, self.openBouquetEPG) | def openMultiServiceEPG(self): bouquets = self.servicelist.getBouquetList() if bouquets is None: cnt = 0 else: cnt = len(bouquets) if cnt > 1: # show bouquet list self.session.openWithCallback(self.closed, BouquetSelector, bouquets, self.openBouquetEPG) elif cnt == 1: self.openBouquetEPG(bouquets[0][1]) | 2828914fb949a9f120285e7473512937ea184694 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/2828914fb949a9f120285e7473512937ea184694/InfoBarGenerics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
5002,
1179,
10541,
43,
12,
2890,
4672,
800,
89,
372,
2413,
273,
365,
18,
23039,
335,
5449,
18,
588,
38,
1395,
28357,
682,
1435,
309,
800,
89,
372,
2413,
353,
599,
30,
7599,
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,
1696,
5002,
1179,
10541,
43,
12,
2890,
4672,
800,
89,
372,
2413,
273,
365,
18,
23039,
335,
5449,
18,
588,
38,
1395,
28357,
682,
1435,
309,
800,
89,
372,
2413,
353,
599,
30,
7599,
273,
... |
if not type(obj) in [int, long]: | if not _is_in(type(obj), [int, long]): | def _require_integer(obj): if not type(obj) in [int, long]: raise NamespaceRequirementError | e299317fe6ca36856f4bca6d67a5dd5543caf8c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7272/e299317fe6ca36856f4bca6d67a5dd5543caf8c9/namespace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6528,
67,
7745,
12,
2603,
4672,
309,
486,
389,
291,
67,
267,
12,
723,
12,
2603,
3631,
306,
474,
16,
1525,
65,
4672,
1002,
6005,
18599,
668,
565,
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,
389,
6528,
67,
7745,
12,
2603,
4672,
309,
486,
389,
291,
67,
267,
12,
723,
12,
2603,
3631,
306,
474,
16,
1525,
65,
4672,
1002,
6005,
18599,
668,
565,
2,
-100,
-100,
-100,
-100,
-100,
... |
purchase_unit = fields.Function(fields.Many2One('product.uom', None, | purchase_unit = fields.Function(fields.Many2One('product.uom', | def button_draft(self, cursor, user, ids, context=None): for shipment in self.browse(cursor, user, ids, context=context): for move in shipment.incoming_moves: if move.state == 'cancel' and move.purchase_line: self.raise_user_error(cursor, 'reset_move') | 2084f3ecac8769c90bdc77d2fc695113ab459286 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9276/2084f3ecac8769c90bdc77d2fc695113ab459286/purchase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
17153,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
364,
26990,
316,
365,
18,
25731,
12,
9216,
16,
729,
16,
3258,
16,
819,
33,
2472,
4672,
364,
3635,
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,
3568,
67,
17153,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
364,
26990,
316,
365,
18,
25731,
12,
9216,
16,
729,
16,
3258,
16,
819,
33,
2472,
4672,
364,
3635,
316... |
if Name[0] == '(': Name = Name[1:Name.find(')')] if Name.find('(') > -1: Name = Name[Name.find('(') + 1 : Name.find(')')] Name = Name.replace('WINAPI', '') Name = Name.replace('*', '').strip() if Name.upper() != Name: EccGlobalData.gDb.TblReport.Insert(ERROR_NAMING_CONVENTION_CHECK_TYPEDEF_STATEMENT, OtherMsg = "The | if Name != '' and Name != None: if Name[0] == '(': Name = Name[1:Name.find(')')] if Name.find('(') > -1: Name = Name[Name.find('(') + 1 : Name.find(')')] Name = Name.replace('WINAPI', '') Name = Name.replace('*', '').strip() if Name.upper() != Name: EccGlobalData.gDb.TblReport.Insert(ERROR_NAMING_CONVENTION_CHECK_TYPED... | EdkLogger.quiet("Checking naming covention of #typedef statement ...") | d708b560f283d258671c42c0a2245e61ae9460a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/d708b560f283d258671c42c0a2245e61ae9460a5/Check.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
512,
2883,
3328,
18,
20380,
2932,
14294,
14634,
1825,
11111,
434,
468,
723,
536,
3021,
1372,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
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,
512,
2883,
3328,
18,
20380,
2932,
14294,
14634,
1825,
11111,
434,
468,
723,
536,
3021,
1372,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
L = map(abs, [-0.5]*n) doit(L) L = range(n/2-1, -1, -1) L[len(L):] = range(n/2) | L = map(abs, [-0.5] * n) doit(L) del L half = n // 2 L = range(half - 1, -1, -1) L.extend(range(half)) L = map(float, L) | def tabulate(r): """Tabulate sort speed for lists of various sizes. The sizes are 2**i for i in r (the argument, a list). The output displays i, 2**i, and the time to sort arrays of 2**i floating point numbers with the following properties: *sort: random data \sort: descending data /sort: ascending data ~sort: many ... | 1a0647b0e18d6de52c4c51bdae9fe97eb7441d05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1a0647b0e18d6de52c4c51bdae9fe97eb7441d05/sortperf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3246,
6243,
12,
86,
4672,
3536,
5661,
6243,
1524,
8632,
364,
6035,
434,
11191,
8453,
18,
225,
1021,
8453,
854,
576,
636,
77,
364,
277,
316,
436,
261,
5787,
1237,
16,
279,
666,
2934,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3246,
6243,
12,
86,
4672,
3536,
5661,
6243,
1524,
8632,
364,
6035,
434,
11191,
8453,
18,
225,
1021,
8453,
854,
576,
636,
77,
364,
277,
316,
436,
261,
5787,
1237,
16,
279,
666,
2934,
22... |
if w.x < 0: w.x = -w.x | if w.i < 0: w.i = -w.i | def no_quad_change(): # No quadrant change -- compute new average enemy distances game.quad[game.sector.x][game.sector.y] = game.ship if game.enemies: for enemy in game.enemies: finald = (w-enemy.kloc).distance() enemy.kavgd = 0.5 * (finald + enemy.kdist) enemy.kdist = finald game.enemies.sort(lambda x, y: cmp(x.kdist,... | e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1158,
67,
21733,
67,
3427,
13332,
468,
2631,
9474,
6890,
2549,
1493,
3671,
394,
8164,
570,
351,
93,
12491,
7920,
18,
21733,
63,
13957,
18,
5709,
280,
18,
92,
6362,
13957,
18,
5709,
280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1158,
67,
21733,
67,
3427,
13332,
468,
2631,
9474,
6890,
2549,
1493,
3671,
394,
8164,
570,
351,
93,
12491,
7920,
18,
21733,
63,
13957,
18,
5709,
280,
18,
92,
6362,
13957,
18,
5709,
280,
... |
elif days_left < options.warning_days: | elif int(days_left) < options.warning_days: | def parse_exit(result): if len(result) == 0: print "Dell's database appears to be down for this system." sys.exit(WARNING) start_date, end_date, days_left = result[0] if days_left < options.critical_days: print 'Warranty start date: %s End date: %s Days left: %s' \ % (start_date, end_date, days_left) sys.exit(CRITICA... | bcc8d42c7ab9447ba44b394a2e5e59078c4944b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4345/bcc8d42c7ab9447ba44b394a2e5e59078c4944b2/check_dell_warranty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8593,
12,
2088,
4672,
309,
562,
12,
2088,
13,
422,
374,
30,
1172,
315,
40,
1165,
1807,
2063,
14606,
358,
506,
2588,
364,
333,
2619,
1199,
2589,
18,
8593,
12,
9511,
13,
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,
1109,
67,
8593,
12,
2088,
4672,
309,
562,
12,
2088,
13,
422,
374,
30,
1172,
315,
40,
1165,
1807,
2063,
14606,
358,
506,
2588,
364,
333,
2619,
1199,
2589,
18,
8593,
12,
9511,
13,
225,
... |
munkicommon.display_debug2('Our OS version is %s' % | munkicommon.display_debug1('Our OS version is %s' % | def compare_version_keys(a, b): """Internal comparison function for use in sorting""" return cmp(version.LooseVersion(b), version.LooseVersion(a)) | a7cc6e5457cecd7fa2c6866422f5e2d1e1afb3f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/a7cc6e5457cecd7fa2c6866422f5e2d1e1afb3f8/updatecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
1589,
67,
2452,
12,
69,
16,
324,
4672,
3536,
3061,
5826,
445,
364,
999,
316,
9602,
8395,
327,
9411,
12,
1589,
18,
1504,
2584,
1444,
12,
70,
3631,
1177,
18,
1504,
2584,
1444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
1589,
67,
2452,
12,
69,
16,
324,
4672,
3536,
3061,
5826,
445,
364,
999,
316,
9602,
8395,
327,
9411,
12,
1589,
18,
1504,
2584,
1444,
12,
70,
3631,
1177,
18,
1504,
2584,
1444,
... |
opt['label'] = opt('configName') | opt['label'] = opt['configName'] | def getParam(options=[], doc="", details="", noDialog=False, checkUnprocessedArgs=True, verbose=False, nCol=1): """ Get parameters from either - a Tcl/Tk based, or wxPython based parameter dialog (wxPython is used if it is available) - command line argument - configuration file specified by -c file ( --config file... | fbfdb77ed5ec801194e390c5ef5425b11c5de04a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/401/fbfdb77ed5ec801194e390c5ef5425b11c5de04a/simuOpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9027,
12,
2116,
22850,
6487,
997,
1546,
3113,
3189,
1546,
3113,
1158,
6353,
33,
8381,
16,
866,
984,
11005,
2615,
33,
5510,
16,
3988,
33,
8381,
16,
290,
914,
33,
21,
4672,
3536,
968,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9027,
12,
2116,
22850,
6487,
997,
1546,
3113,
3189,
1546,
3113,
1158,
6353,
33,
8381,
16,
866,
984,
11005,
2615,
33,
5510,
16,
3988,
33,
8381,
16,
290,
914,
33,
21,
4672,
3536,
968,
14... |
tools = ["default", "doxygen"], toolpath = toolpath ) | tools = ["default", "doxygen"], toolpath = toolpath ) | def my_excepthook(type, value, tb): print >> sys.stderr, "Error:", value sys.exit(1) | 7af88c53a736b363ff2eb80bb9856b21b963e3cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6561/7af88c53a736b363ff2eb80bb9856b21b963e3cc/SConsUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
14137,
4476,
12,
723,
16,
460,
16,
8739,
4672,
1172,
1671,
2589,
18,
11241,
16,
315,
668,
2773,
16,
460,
2589,
18,
8593,
12,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
14137,
4476,
12,
723,
16,
460,
16,
8739,
4672,
1172,
1671,
2589,
18,
11241,
16,
315,
668,
2773,
16,
460,
2589,
18,
8593,
12,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raise ValueError, "Incorrect length of data produced" | raise IOError, "Incorrect length of data produced" | def _read_eof(self): # We've read to the end of the file, so we have to rewind in order # to reread the 8 bytes containing the CRC and the file size. # We check the that the computed CRC and size of the # uncompressed data matches the stored values. Note that the size # stored is the true file size mod 2**32. self.fil... | 8062d6f010115e36aa16fff4abcf234ad537f20c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8062d6f010115e36aa16fff4abcf234ad537f20c/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
9339,
12,
2890,
4672,
468,
1660,
8081,
855,
358,
326,
679,
434,
326,
585,
16,
1427,
732,
1240,
358,
12881,
316,
1353,
468,
358,
436,
264,
684,
326,
1725,
1731,
4191,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
9339,
12,
2890,
4672,
468,
1660,
8081,
855,
358,
326,
679,
434,
326,
585,
16,
1427,
732,
1240,
358,
12881,
316,
1353,
468,
358,
436,
264,
684,
326,
1725,
1731,
4191,
326,... |
yield self.Action(os.makedirs, change.path) | yield self.Action(mkdir, change.path) | def emptydirs(self): for change in self: if not lexists(change.path) and change.OP == 's': yield self.Action(os.makedirs, change.path) | 2989f9ad9384aec3953724eae6744104fde43440 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10616/2989f9ad9384aec3953724eae6744104fde43440/changes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1008,
8291,
12,
2890,
4672,
364,
2549,
316,
365,
30,
309,
486,
5275,
1486,
12,
3427,
18,
803,
13,
471,
2549,
18,
3665,
422,
296,
87,
4278,
2824,
365,
18,
1803,
12,
538,
18,
81,
9477,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1008,
8291,
12,
2890,
4672,
364,
2549,
316,
365,
30,
309,
486,
5275,
1486,
12,
3427,
18,
803,
13,
471,
2549,
18,
3665,
422,
296,
87,
4278,
2824,
365,
18,
1803,
12,
538,
18,
81,
9477,... |
try: tokens = self.__bandDic[text] except KeyError : print self.__bandDic traceback.print_exc() tokens = "" try: band_number = int(tokens[0]) except: traceback.print_exc() return raster = self.layer.get_data(self.src_index) if raster is not None: dataset = raster.get_dataset() if self.layer.get_property('_scale_lock'... | dataset = self.layer.parent.get_dataset() raster = self.layer.get_dataset_raster(band_number) if raster: self.layer.set_source(idx, raster, raster.min, raster.max, self.layer.get_const_value(idx), self.layer.source_get_lut(idx), | def set_band_cb(self, combo): text = combo.get_active_text() if not text.strip(): # this happens when the entry is cleared during # text replacement return if self.updating: return | 30093beb2981ba47380749a3f1c597965f66f39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11090/30093beb2981ba47380749a3f1c597965f66f39e/gvrasterpropdlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
12752,
67,
7358,
12,
2890,
16,
16778,
4672,
977,
273,
16778,
18,
588,
67,
3535,
67,
955,
1435,
309,
486,
977,
18,
6406,
13332,
468,
333,
10555,
1347,
326,
1241,
353,
16054,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
12752,
67,
7358,
12,
2890,
16,
16778,
4672,
977,
273,
16778,
18,
588,
67,
3535,
67,
955,
1435,
309,
486,
977,
18,
6406,
13332,
468,
333,
10555,
1347,
326,
1241,
353,
16054,
49... |
_introspecting[oid] = class_doc | def introspect_class(cls): """ Add API documentation information about the class C{cls} to C{class_doc}. """ oid = id(cls) if oid in _introspecting: return _introspecting[oid] # Create the ClassDoc. class_doc = ClassDoc(pyval=cls, repr=value_repr(cls), canonical_name = get_canonical_name(cls)) _introspecting[oid] = c... | 8306498614e7db9ddd2c5e78aa700eded3f33a2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/8306498614e7db9ddd2c5e78aa700eded3f33a2e/docintrospecter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30165,
67,
1106,
12,
6429,
4672,
3536,
1436,
1491,
7323,
1779,
2973,
326,
667,
385,
95,
6429,
97,
358,
385,
95,
1106,
67,
2434,
5496,
3536,
7764,
273,
612,
12,
6429,
13,
309,
7764,
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,
30165,
67,
1106,
12,
6429,
4672,
3536,
1436,
1491,
7323,
1779,
2973,
326,
667,
385,
95,
6429,
97,
358,
385,
95,
1106,
67,
2434,
5496,
3536,
7764,
273,
612,
12,
6429,
13,
309,
7764,
316... | |
Dictionary-like object representing the QUERY_STRING parameters. Always present, if possibly empty. If the same key is present in the query string multiple times, it will be present as a list. | Dictionary-like object representing the QUERY_STRING parameters. Always present, if possibly empty. If the same key is present in the query string multiple times, it will be present as a list. | def get(): doc = textwrap.dedent("""\ Dictionary-like object representing the QUERY_STRING parameters. Always present, if possibly empty. | 6c8e6d1c1dfc626d7e80e1c6dc732fb68fa472b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/6c8e6d1c1dfc626d7e80e1c6dc732fb68fa472b8/request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
13332,
997,
273,
30271,
18,
785,
319,
2932,
3660,
64,
16447,
17,
5625,
733,
5123,
326,
17089,
67,
5804,
1472,
18,
14178,
3430,
16,
309,
10016,
1008,
18,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
13332,
997,
273,
30271,
18,
785,
319,
2932,
3660,
64,
16447,
17,
5625,
733,
5123,
326,
17089,
67,
5804,
1472,
18,
14178,
3430,
16,
309,
10016,
1008,
18,
2,
-100,
-100,
-100,
-100,
... |
obj = self.__cache.get( cache_key ) | obj = cache.get( cache_key ) | def select_one( self, Object_type, sql_command, use_cache = False ): """ Execute the given sql_command and return its results in the form of an object of Object_type, or None if there was no match. | 2d554551204aafdd7c364a25e684b058fd134fb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6754/2d554551204aafdd7c364a25e684b058fd134fb0/Database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
476,
12,
365,
16,
1033,
67,
723,
16,
1847,
67,
3076,
16,
999,
67,
2493,
273,
1083,
262,
30,
3536,
7903,
326,
864,
1847,
67,
3076,
471,
327,
2097,
1686,
316,
326,
646,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
476,
12,
365,
16,
1033,
67,
723,
16,
1847,
67,
3076,
16,
999,
67,
2493,
273,
1083,
262,
30,
3536,
7903,
326,
864,
1847,
67,
3076,
471,
327,
2097,
1686,
316,
326,
646,
434,
... |
except Exception ,x: | except Exception , x: | def _query( self, cmd, conn = False ): """ execute MySQL query command return S_OK structure with fetchall result as tuple it returns an empty tuple if no matching rows are found return S_ERROR upon error """ self.logger.debug( '_query:', cmd) | 0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08/MySQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
12,
365,
16,
1797,
16,
1487,
273,
1083,
262,
30,
3536,
1836,
13485,
843,
1296,
327,
348,
67,
3141,
3695,
598,
24780,
563,
487,
3193,
518,
1135,
392,
1008,
3193,
309,
1158,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
12,
365,
16,
1797,
16,
1487,
273,
1083,
262,
30,
3536,
1836,
13485,
843,
1296,
327,
348,
67,
3141,
3695,
598,
24780,
563,
487,
3193,
518,
1135,
392,
1008,
3193,
309,
1158,
3... |
ans=eval(gap.eval("Combinations(%s,%s)"%(items,ZZ(self.k))).replace("\n","")) return map(lambda x: map(label, x), ans) | indices = uniq(sorted(items)) counts = [0]*len(indices) for i in items: counts[indices.index(i)] += 1 for iv in IntegerVectors(self.k, len(indices), outer=counts): yield sum([[self.mset[indices[i]]]*iv[i] for i in range(len(indices))],[]) | def label(x): return self.mset[x] | 4c6e52de84c983fc78fecda4efe23166c23e516c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4c6e52de84c983fc78fecda4efe23166c23e516c/combination.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1433,
12,
92,
4672,
327,
365,
18,
81,
542,
63,
92,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1433,
12,
92,
4672,
327,
365,
18,
81,
542,
63,
92,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
dialog = gtk.FileChooserDialog(title=_("Open Image"),action=gtk.FILE_CHOOSER_ACTION_OPEN,buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN,gtk.RESPONSE_OK)) | dialog = gtk.FileChooserDialog( title=_("Open Image"), action=gtk.FILE_CHOOSER_ACTION_OPEN, buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN,gtk.RESPONSE_OK)) | def image_local(self, _widget): dialog = gtk.FileChooserDialog(title=_("Open Image"),action=gtk.FILE_CHOOSER_ACTION_OPEN,buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN,gtk.RESPONSE_OK)) filefilter = gtk.FileFilter() filefilter.set_name(_("Images")) filefilter.add_pixbuf_formats() dialog.add_filter(filefil... | a611157e0fc7d242d58df67886095dce4cc46388 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/a611157e0fc7d242d58df67886095dce4cc46388/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
67,
3729,
12,
2890,
16,
389,
6587,
4672,
6176,
273,
22718,
18,
812,
17324,
6353,
12,
2077,
33,
67,
2932,
3678,
3421,
6,
3631,
1301,
33,
4521,
79,
18,
3776,
67,
22213,
51,
2123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
67,
3729,
12,
2890,
16,
389,
6587,
4672,
6176,
273,
22718,
18,
812,
17324,
6353,
12,
2077,
33,
67,
2932,
3678,
3421,
6,
3631,
1301,
33,
4521,
79,
18,
3776,
67,
22213,
51,
2123,
... |
def __call__(self, data, y, x=None, nc=None, weight=None): | self.save_partial = save_partial def __call__(self, data, y=None, x=None, nc=None, weight=None, **kwds): if y == None: y = [ data.domain.classVar ] | def __init__(self, name='PLS regression', nc = None): self.name = name self.nc = nc | e8a7c8d2ae14302029948b56e59003ddda075e7a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/e8a7c8d2ae14302029948b56e59003ddda075e7a/orngRegression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
2218,
52,
3045,
23215,
2187,
8194,
273,
599,
4672,
365,
18,
529,
273,
508,
365,
18,
14202,
273,
8194,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
2218,
52,
3045,
23215,
2187,
8194,
273,
599,
4672,
365,
18,
529,
273,
508,
365,
18,
14202,
273,
8194,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def check_match(self, filename, pattern, should_match=1): | def check_match(self, filename, pattern, should_match=1, fn=fnmatch): | def check_match(self, filename, pattern, should_match=1): if should_match: self.assertTrue(fnmatch(filename, pattern), "expected %r to match pattern %r" % (filename, pattern)) else: self.assertTrue(not fnmatch(filename, pattern), "expected %r not to match pattern %r" % (filename, pattern)) | b3375def553bbd39f1213970915bfe12e0c3aaf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/b3375def553bbd39f1213970915bfe12e0c3aaf0/test_fnmatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1916,
12,
2890,
16,
1544,
16,
1936,
16,
1410,
67,
1916,
33,
21,
16,
2295,
33,
4293,
1916,
4672,
309,
1410,
67,
1916,
30,
365,
18,
11231,
5510,
12,
4293,
1916,
12,
3459,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1916,
12,
2890,
16,
1544,
16,
1936,
16,
1410,
67,
1916,
33,
21,
16,
2295,
33,
4293,
1916,
4672,
309,
1410,
67,
1916,
30,
365,
18,
11231,
5510,
12,
4293,
1916,
12,
3459,
16,
... |
for ae,ssi in zip(alpha,ss): | for ae,ssi in zip(alpha.data(),ss): | def model_error_ml(self): #XXX needs clean solution / one more unfinished project if (self.alpha_beta_params is None): free_reflections_per_bin = 140 estimation_algorithm = "analytical" else: free_reflections_per_bin=self.alpha_beta_params.free_reflections_per_bin estimation_algorithm = self.alpha_beta_params.estimatio... | fab2f37abea3d72e41f30c0909cef47032013e93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/fab2f37abea3d72e41f30c0909cef47032013e93/f_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
938,
67,
1636,
67,
781,
12,
2890,
4672,
468,
15639,
4260,
2721,
6959,
342,
1245,
1898,
640,
13527,
1984,
309,
261,
2890,
18,
5429,
67,
5758,
67,
2010,
353,
599,
4672,
4843,
67,
26606,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
938,
67,
1636,
67,
781,
12,
2890,
4672,
468,
15639,
4260,
2721,
6959,
342,
1245,
1898,
640,
13527,
1984,
309,
261,
2890,
18,
5429,
67,
5758,
67,
2010,
353,
599,
4672,
4843,
67,
26606,
... |
self._buf = '' | self._buf = b"" | def readline(self): L = [self._buf] self._buf = '' while 1: i = L[-1].find("\n") if i >= 0: break s = self._read() if s == '': break L.append(s) if i == -1: # loop exited because there is no more data return "".join(L) else: all = "".join(L) # XXX could do enough bookkeeping not to do a 2nd search i = all.find("\n") + ... | 910e3e908837b13bd6a1f027c67fbdbdd3646dc3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/910e3e908837b13bd6a1f027c67fbdbdd3646dc3/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
4672,
511,
273,
306,
2890,
6315,
4385,
65,
365,
6315,
4385,
273,
324,
3660,
1323,
404,
30,
277,
273,
511,
18919,
21,
8009,
4720,
31458,
82,
7923,
309,
277,
1545,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
4672,
511,
273,
306,
2890,
6315,
4385,
65,
365,
6315,
4385,
273,
324,
3660,
1323,
404,
30,
277,
273,
511,
18919,
21,
8009,
4720,
31458,
82,
7923,
309,
277,
1545,
374,
... |
if (len(busy) != len(busyp) or len(unavailable) != len(unavailablep) or len(tentative) != len(tentativep)): | if ((len(busy) != len(busyp)) or (len(unavailable) != len(unavailablep)) or (len(tentative) != len(tentativep))): | def verify(self, manager, uri, response, respdata, args): #@UnusedVariable # Must have status 200 if response.status != 200: return False, " HTTP Status Code Wrong: %d" % (response.status,) | 77a79cbf84e287376957d5c42a38dc89a31628c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/129/77a79cbf84e287376957d5c42a38dc89a31628c3/freeBusy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
2890,
16,
3301,
16,
2003,
16,
766,
16,
1718,
892,
16,
833,
4672,
468,
36,
21106,
3092,
225,
468,
6753,
1240,
1267,
4044,
309,
766,
18,
2327,
480,
4044,
30,
327,
1083,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
2890,
16,
3301,
16,
2003,
16,
766,
16,
1718,
892,
16,
833,
4672,
468,
36,
21106,
3092,
225,
468,
6753,
1240,
1267,
4044,
309,
766,
18,
2327,
480,
4044,
30,
327,
1083,
16,
3... |
tabCols=idleConf.GetOption('main','Indent','tab-cols', default=4,type='int') | def LoadTabCfg(self): ##indent type radibuttons spaceIndent=idleConf.GetOption('main','Indent','use-spaces', default=1,type='bool') self.indentBySpaces.set(spaceIndent) ##indent sizes spaceNum=idleConf.GetOption('main','Indent','num-spaces', default=4,type='int') tabCols=idleConf.GetOption('main','Indent','tab-cols', d... | 22cc40d7b201cf9033ebbca4fe11980daac2a344 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/22cc40d7b201cf9033ebbca4fe11980daac2a344/configDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
5661,
8198,
12,
2890,
4672,
7541,
9355,
618,
6719,
495,
2644,
87,
3476,
7790,
33,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
7790,
17023,
1202,
17,
9554,
2187,
805,
33,
21,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
5661,
8198,
12,
2890,
4672,
7541,
9355,
618,
6719,
495,
2644,
87,
3476,
7790,
33,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
7790,
17023,
1202,
17,
9554,
2187,
805,
33,
21,
16,... | |
return 'FixedMode(%d, %s)' % (ints2string(self.index), self.mode.tolist()) | return 'FixedMode(%s, %s)' % (ints2string(self.index), self.mode.tolist()) | def __repr__(self): return 'FixedMode(%d, %s)' % (ints2string(self.index), self.mode.tolist()) | 03fdc0f5f6dadf07cf9e2318625122cdd80619bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/03fdc0f5f6dadf07cf9e2318625122cdd80619bc/constraints.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
296,
7505,
2309,
9275,
72,
16,
738,
87,
2506,
738,
261,
28142,
22,
1080,
12,
2890,
18,
1615,
3631,
365,
18,
3188,
18,
3490,
376,
10756,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
296,
7505,
2309,
9275,
72,
16,
738,
87,
2506,
738,
261,
28142,
22,
1080,
12,
2890,
18,
1615,
3631,
365,
18,
3188,
18,
3490,
376,
10756,
2,
-100,
... |
self.model.add_task(task) | self.iter_map[task.key] = self.model.append(task) | def handle_task_list(self, running_tasks, pending_tasks): for task in running_tasks: self.model.add_task(task) for task in pending_tasks: self.model.add_task(task) self.table.model_changed() | 6a5205d108e2499d2934df657db6373747d3ee3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/6a5205d108e2499d2934df657db6373747d3ee3d/videoconversionscontroller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4146,
67,
1098,
12,
2890,
16,
3549,
67,
9416,
16,
4634,
67,
9416,
4672,
364,
1562,
316,
3549,
67,
9416,
30,
365,
18,
2165,
67,
1458,
63,
4146,
18,
856,
65,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4146,
67,
1098,
12,
2890,
16,
3549,
67,
9416,
16,
4634,
67,
9416,
4672,
364,
1562,
316,
3549,
67,
9416,
30,
365,
18,
2165,
67,
1458,
63,
4146,
18,
856,
65,
273,
365,
18,
... |
if operands: expr = Expression(context, operands) if expr.complete: pa = expr.value if context.memmap.isFixed(pa): context.currentRecord.code = [ pa ] context.currentRecord.complete = True else: context.error("FCADR operand must be in fixed memory") retval = True return retval | expr = Expression(context, operands) if expr.complete: pa = expr.value if context.memmap.isFixed(pa): context.currentRecord.code = [ pa ] context.currentRecord.complete = True else: context.error("FCADR operand must be in fixed memory") | def parse_FCADR(self, context, operands): retval = False pa = None if operands: expr = Expression(context, operands) if expr.complete: pa = expr.value if context.memmap.isFixed(pa): context.currentRecord.code = [ pa ] context.currentRecord.complete = True else: context.error("FCADR operand must be in fixed memory") ret... | 0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f/directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
4488,
1880,
54,
12,
2890,
16,
819,
16,
14883,
4672,
5221,
273,
1083,
6790,
273,
599,
309,
14883,
30,
3065,
273,
5371,
12,
2472,
16,
14883,
13,
309,
3065,
18,
6226,
30,
6790,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4488,
1880,
54,
12,
2890,
16,
819,
16,
14883,
4672,
5221,
273,
1083,
6790,
273,
599,
309,
14883,
30,
3065,
273,
5371,
12,
2472,
16,
14883,
13,
309,
3065,
18,
6226,
30,
6790,
... |
s = numpy.sum(L, axis=0) for i in range(len(dataMatrix)): L[i,i] = -s[i] matrix = numpy.dot(matrix, L) matrix = numpy.dot(matrix, dataMatrix) vals, vectors = eig(matrix) vals = list(vals) if NComps == -1: NComps = len(vals) NComps = min(NComps, len(vals)) retVals = [] retIndices = [] for i in range(NComps): retVal... | if NComps == -1: NComps = len(vals) NComps = min(NComps, len(vals)) retVals = [] retIndices = [] for i in range(NComps): retVals.append(max(vals)) bestInd = vals.index(max(vals)) retIndices.append(bestInd) vals[bestInd] = -1 return retVals, numpy.take(vectors.T, retIndices, axis = 0) | def createPCAProjection(dataMatrix, classArray = None, NComps = -1, useGeneralizedEigenvectors = 1): try: if type(dataMatrix) == numpy.ma.core.MaskedArray: dataMatrix = numpy.array(dataMatrix) if classArray != None and type(classArray) == numpy.ma.core.MaskedArray: classArray = numpy.array(classArray) dataMatrix = num... | c474403ff8c39e9e3151c39b55fcbee01a0c2b96 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/c474403ff8c39e9e3151c39b55fcbee01a0c2b96/orngLinProj.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3513,
37,
14789,
12,
892,
4635,
16,
667,
1076,
273,
599,
16,
423,
799,
1121,
273,
300,
21,
16,
999,
12580,
1235,
41,
360,
29098,
273,
404,
4672,
775,
30,
309,
618,
12,
892,
4635... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3513,
37,
14789,
12,
892,
4635,
16,
667,
1076,
273,
599,
16,
423,
799,
1121,
273,
300,
21,
16,
999,
12580,
1235,
41,
360,
29098,
273,
404,
4672,
775,
30,
309,
618,
12,
892,
4635... |
gLogger.fatal(errStr,self.name) return S_ERROR(errStr) resDict = {'Failed':failed,'Successful':successful} return S_OK(resDict) def isFile(self,path): | gLogger.fatal( errStr, self.name ) return S_ERROR( errStr ) resDict = {'Failed':failed, 'Successful':successful} return S_OK( resDict ) def isFile( self, path ): | def getFileMetadata(self,path): """ Get metadata associated to the file """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
2277,
12,
2890,
16,
803,
4672,
3536,
225,
968,
1982,
3627,
358,
326,
585,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6034,
2277,
12,
2890,
16,
803,
4672,
3536,
225,
968,
1982,
3627,
358,
326,
585,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
... |
option = linkcl.get(optionid, k) | option = linkcl.get(optionid, k) or '' | def field(self, showid=0, size=None): ''' Render a form edit field for the property ''' linkcl = self._db.getclass(self._prop.classname) if linkcl.getprops().has_key('order'): sort_on = 'order' else: sort_on = linkcl.labelprop() options = linkcl.filter(None, {}, ('+', sort_on), (None, None)) # TODO: make this a field d... | 1c48136eafda745b9d5d5f52896567de92958e94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/1c48136eafda745b9d5d5f52896567de92958e94/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
652,
12,
2890,
16,
2405,
350,
33,
20,
16,
963,
33,
7036,
4672,
9163,
6987,
279,
646,
3874,
652,
364,
326,
1272,
9163,
1692,
830,
273,
365,
6315,
1966,
18,
588,
1106,
12,
2890,
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,
652,
12,
2890,
16,
2405,
350,
33,
20,
16,
963,
33,
7036,
4672,
9163,
6987,
279,
646,
3874,
652,
364,
326,
1272,
9163,
1692,
830,
273,
365,
6315,
1966,
18,
588,
1106,
12,
2890,
6315,
... |
super(orm_deprecated, self).read(*args, **kwargs) | super(orm_deprecated, self).search(*args, **kwargs) | def search(self, *args, **kwargs): self.__issue_depr() super(orm_deprecated, self).read(*args, **kwargs) | 9ed5d1146a50bc8e5fc83390f162cf3b1d92038b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/9ed5d1146a50bc8e5fc83390f162cf3b1d92038b/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
16186,
13882,
67,
323,
683,
1435,
2240,
12,
535,
67,
14089,
16,
365,
2934,
896,
30857,
1968,
16,
2826,
4333,
13,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
16186,
13882,
67,
323,
683,
1435,
2240,
12,
535,
67,
14089,
16,
365,
2934,
896,
30857,
1968,
16,
2826,
4333,
13,
2,
-100,
-100... |
self.linkDataSet(parent) | self.linkDataSet() | def __init__(self,cache,name,clean,parent): """ Construct a persistent data instance """ #Initialize the dictionary DataSmart.__init__(self) | 7cc2372956f7a4ac95ae020c76f52a3265230110 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/7cc2372956f7a4ac95ae020c76f52a3265230110/data_smart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2493,
16,
529,
16,
6200,
16,
2938,
4672,
3536,
14291,
279,
9195,
501,
791,
3536,
468,
7520,
326,
3880,
1910,
23824,
16186,
2738,
972,
12,
2890,
13,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2493,
16,
529,
16,
6200,
16,
2938,
4672,
3536,
14291,
279,
9195,
501,
791,
3536,
468,
7520,
326,
3880,
1910,
23824,
16186,
2738,
972,
12,
2890,
13,
2,
-1... |
"""Compares two strings and return their similarity. | """Compares two strings and returns their similarity. | def compare(s1, s2, **kwargs): """Compares two strings and return their similarity. | 15fca4a0d544fb176178902195a1b897f9d277b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12095/15fca4a0d544fb176178902195a1b897f9d277b9/ngram.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
12,
87,
21,
16,
272,
22,
16,
2826,
4333,
4672,
3536,
19199,
2795,
2064,
471,
327,
3675,
16416,
18,
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,
3400,
12,
87,
21,
16,
272,
22,
16,
2826,
4333,
4672,
3536,
19199,
2795,
2064,
471,
327,
3675,
16416,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
del circs[circid] | if circs.has_key(circid): del circs[circid] | def handleEvent(s, body, circs, streamsByNonce, streamsByIdent): event, args = TorControl.unpack_event(body) if event == TorControl.EVENT_TYPE.STREAMSTATUS: status, ident, target = args print "Got stream event:",TorControl.STREAM_STATUS.nameOf[status],\ ident,target if status in (TorControl.STREAM_STATUS.NEW_CONNECT, T... | 85c6d25e5ba735654da0df0f04cb0dc723a7d9d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7483/85c6d25e5ba735654da0df0f04cb0dc723a7d9d2/ExerciseServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1133,
12,
87,
16,
1417,
16,
5886,
2143,
16,
8205,
858,
13611,
16,
8205,
5132,
319,
4672,
871,
16,
833,
273,
23763,
3367,
18,
17309,
67,
2575,
12,
3432,
13,
309,
871,
422,
23763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1133,
12,
87,
16,
1417,
16,
5886,
2143,
16,
8205,
858,
13611,
16,
8205,
5132,
319,
4672,
871,
16,
833,
273,
23763,
3367,
18,
17309,
67,
2575,
12,
3432,
13,
309,
871,
422,
23763,
... |
self.authors.push(Person(name, email)) | person = Person(name, email) self.authors.append(person) return person | def find_author(self, name=None, email=None, add_author=False): """ Find author with given name and/or email. If author does not exist, add the author if add_author is True. """ | 478b13cc6888f9e546d7343cf757ab057b244b6a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13575/478b13cc6888f9e546d7343cf757ab057b244b6a/search.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4161,
12,
2890,
16,
508,
33,
7036,
16,
2699,
33,
7036,
16,
527,
67,
4161,
33,
8381,
4672,
3536,
4163,
2869,
598,
864,
508,
471,
19,
280,
2699,
18,
971,
2869,
1552,
486,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4161,
12,
2890,
16,
508,
33,
7036,
16,
2699,
33,
7036,
16,
527,
67,
4161,
33,
8381,
4672,
3536,
4163,
2869,
598,
864,
508,
471,
19,
280,
2699,
18,
971,
2869,
1552,
486,
100... |
if self._data_files.has_key('GXRARM.XDS'): Debug.write('Deleting postrefinement results') del(self._data_files['GXPARM.XDS']) | def _integrate_prepare(self): '''Prepare for integration - in XDS terms this may mean rerunning IDXREF to get the XPARM etc. DEFPIX is considered part of the full integration as it is resolution dependent.''' | 026dd60e1909ecee3c94d6896bd1e8856288e888 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/026dd60e1909ecee3c94d6896bd1e8856288e888/XDSIntegrater.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14970,
5141,
67,
9366,
12,
2890,
4672,
9163,
7543,
364,
12040,
300,
316,
1139,
3948,
6548,
333,
2026,
3722,
436,
19780,
2093,
1599,
60,
10771,
358,
336,
326,
1139,
2778,
49,
5527,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
14970,
5141,
67,
9366,
12,
2890,
4672,
9163,
7543,
364,
12040,
300,
316,
1139,
3948,
6548,
333,
2026,
3722,
436,
19780,
2093,
1599,
60,
10771,
358,
336,
326,
1139,
2778,
49,
5527,
1... | |
wanted_columns.append((key, caption)) | wanted_columns.append((key, sort_name, sort_type, caption)) | def on_cleanup_ipod_activate(self, widget, *args): columns = ( ('title', _('Episode')), ('podcast', _('Podcast')), ('filesize', _('Size')), ('modified', _('Copied')), ('playcount', _('Play count')), ('released', _('Released')), ) | d04c533b5d76014416b59855c0d2055d4c8f86c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/d04c533b5d76014416b59855c0d2055d4c8f86c1/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
16732,
67,
625,
369,
67,
10014,
12,
2890,
16,
3604,
16,
380,
1968,
4672,
2168,
273,
261,
7707,
2649,
2187,
389,
2668,
18918,
11802,
6134,
3631,
7707,
7832,
4155,
2187,
389,
2668... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
16732,
67,
625,
369,
67,
10014,
12,
2890,
16,
3604,
16,
380,
1968,
4672,
2168,
273,
261,
7707,
2649,
2187,
389,
2668,
18918,
11802,
6134,
3631,
7707,
7832,
4155,
2187,
389,
2668... |
assert callable(f), "%s is not callable" % f if self._eventTriggers.has_key(eventType): triglist = self._eventTriggers[eventType] | assert callable(_f), "%s is not callable" % _f if self._eventTriggers.has_key(_eventType): triglist = self._eventTriggers[_eventType] | def addSystemEventTrigger(self, phase, eventType, f, *args, **kw): """See twisted.internet.interfaces.IReactorCore.addSystemEventTrigger. """ assert callable(f), "%s is not callable" % f if self._eventTriggers.has_key(eventType): triglist = self._eventTriggers[eventType] else: triglist = [[], [], []] self._eventTrigger... | 2be731a1ed281980caf599001b09591be5493949 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/2be731a1ed281980caf599001b09591be5493949/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3163,
1133,
6518,
12,
2890,
16,
6855,
16,
11216,
16,
284,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
9704,
2339,
25444,
18,
267,
14726,
18,
15898,
18,
45,
426,
3362,
4670,
18,
128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3163,
1133,
6518,
12,
2890,
16,
6855,
16,
11216,
16,
284,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
9704,
2339,
25444,
18,
267,
14726,
18,
15898,
18,
45,
426,
3362,
4670,
18,
128... |
sslView.refresh(_mergeCallback) | sslView.refresh() | def loadCertificatesToContext(repView, ctx): """ Add certificates to SSL Context. @param repView: repository view @param ctx: M2Crypto.SSL.Context """ sslView = _getSSLView(repView.repository) store = ctx.get_cert_store() with _sslLock: for x509 in certificateCache: store.add_x509(x509) else: sslView.refresh(_mer... | d38101f4012af9193973782985a096478abcc606 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/d38101f4012af9193973782985a096478abcc606/ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
14133,
774,
1042,
12,
14462,
1767,
16,
1103,
4672,
3536,
1436,
12522,
358,
7419,
1772,
18,
225,
632,
891,
2071,
1767,
30,
3352,
1476,
632,
891,
1103,
30,
377,
490,
22,
18048,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
14133,
774,
1042,
12,
14462,
1767,
16,
1103,
4672,
3536,
1436,
12522,
358,
7419,
1772,
18,
225,
632,
891,
2071,
1767,
30,
3352,
1476,
632,
891,
1103,
30,
377,
490,
22,
18048,
18,
... |
def fromAttribute(klass, attribute, model): | def fromAttribute(klass, attribute, parent, model): | def fromAttribute(klass, attribute, model): """ Instantiates a property from an XML Schema attribute. """ instance = klass(attribute, model) instance.isAttribute = True return instance | f7dfca6f480dea7bcef9a6d2f82aea89291574e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1844/f7dfca6f480dea7bcef9a6d2f82aea89291574e1/fu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
1499,
12,
22626,
16,
1566,
16,
982,
16,
938,
4672,
3536,
11190,
16020,
279,
1272,
628,
392,
3167,
4611,
1566,
18,
3536,
791,
273,
7352,
12,
4589,
16,
938,
13,
791,
18,
291,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
1499,
12,
22626,
16,
1566,
16,
982,
16,
938,
4672,
3536,
11190,
16020,
279,
1272,
628,
392,
3167,
4611,
1566,
18,
3536,
791,
273,
7352,
12,
4589,
16,
938,
13,
791,
18,
291,
1499,
... |
VS.playSound(self.speech[index], self.player.Position(), (10000,10000,10000)) | VS.playSound(self.speech[index], self.player.Position(), (0,0,0)) | def Execute (self): # do not do anything before the player undocks if (self.stage==STAGE_DOCKED): self.complete = self.getSaveValue() if (self.complete==0): # publish news text = "CEPHID SECURITY INITIATIVE GIVES TRINING FOR FLIGHT SAFETY\\\The Cephid Security Initiative (CSI) is offering training for pilots with the p... | 66c46e79ea501cbc68b49d8dd0a03a57988f1683 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2883/66c46e79ea501cbc68b49d8dd0a03a57988f1683/quest_tutorial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
261,
2890,
4672,
468,
741,
486,
741,
6967,
1865,
326,
7291,
22927,
20641,
309,
261,
2890,
18,
12869,
631,
882,
2833,
67,
3191,
3507,
2056,
4672,
365,
18,
6226,
273,
365,
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,
7903,
261,
2890,
4672,
468,
741,
486,
741,
6967,
1865,
326,
7291,
22927,
20641,
309,
261,
2890,
18,
12869,
631,
882,
2833,
67,
3191,
3507,
2056,
4672,
365,
18,
6226,
273,
365,
18,
588,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.