rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
check_fsencoding(fs_encoding) | if sys.platform == 'darwin': expected = 'utf-8' elif sys.platform == 'win32': expected = 'mbcs' else: expected = None self.check_fsencoding(fs_encoding) @unittest.skipIf(sys.platform in ('win32', 'darwin'), 'PYTHONFSENCODING is ignored on Windows and Mac OS X') def test_pythonfsencoding(self): | def check_fsencoding(fs_encoding, expected=None): self.assertIsNotNone(fs_encoding) if sys.platform == 'darwin': self.assertEqual(fs_encoding, 'utf-8') codecs.lookup(fs_encoding) if expected: self.assertEqual(fs_encoding, expected) | c71f6e8ce3eea0d3949b53421bb764b60aabff10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/c71f6e8ce3eea0d3949b53421bb764b60aabff10/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2556,
5999,
12,
2556,
67,
5999,
16,
2665,
33,
7036,
4672,
365,
18,
11231,
28041,
7036,
12,
2556,
67,
5999,
13,
309,
2589,
18,
9898,
422,
296,
28076,
4278,
365,
18,
11231,
5812... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2556,
5999,
12,
2556,
67,
5999,
16,
2665,
33,
7036,
4672,
365,
18,
11231,
28041,
7036,
12,
2556,
67,
5999,
13,
309,
2589,
18,
9898,
422,
296,
28076,
4278,
365,
18,
11231,
5812... |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemImage(self, item, image, which=TreeItemIcon_Normal): """Sets the item image, depending on the item state.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1180,
2040,
12,
2890,
16,
761,
16,
1316,
16,
1492,
33,
2471,
1180,
5554,
67,
5506,
4672,
3536,
2785,
326,
761,
1316,
16,
8353,
603,
326,
761,
919,
12123,
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,
1000,
1180,
2040,
12,
2890,
16,
761,
16,
1316,
16,
1492,
33,
2471,
1180,
5554,
67,
5506,
4672,
3536,
2785,
326,
761,
1316,
16,
8353,
603,
326,
761,
919,
12123,
2,
-100,
-100,
-100,
-10... |
if linebreak<len(lines): | if type(lines) in StringTypes and linebreak<len(lines): | def getFieldFormatted(self, name, fieldtype, map={}, doc=None, rawType='String', indent_level=0): """Return the formatted field definitions for the schema. """ | 3b6c50eced03d9a645183db95acc9db3b7d09564 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/3b6c50eced03d9a645183db95acc9db3b7d09564/ArchetypesGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5031,
18298,
12,
2890,
16,
508,
16,
652,
723,
16,
852,
28793,
997,
33,
7036,
16,
25333,
2218,
780,
2187,
3504,
67,
2815,
33,
20,
4672,
3536,
990,
326,
4955,
652,
6377,
364,
326,
1963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5031,
18298,
12,
2890,
16,
508,
16,
652,
723,
16,
852,
28793,
997,
33,
7036,
16,
25333,
2218,
780,
2187,
3504,
67,
2815,
33,
20,
4672,
3536,
990,
326,
4955,
652,
6377,
364,
326,
1963,
... |
and not bool(int(self.get_state_attrs(model).get('readonly', 0))): | and not bool(int(self.get_state_attrs(model ).get('readonly') or 0)): | def validate(self, model): res = True if bool(int(self.get_state_attrs(model).get('required', 0))): if not model.value[self.name] \ and not bool(int(self.get_state_attrs(model).get('readonly', 0))): res = False self.get_state_attrs(model)['valid'] = res return res | 41855126f552fbf9ee8e1e95c196cc428fe7e61d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/41855126f552fbf9ee8e1e95c196cc428fe7e61d/field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
938,
4672,
400,
273,
1053,
309,
1426,
12,
474,
12,
2890,
18,
588,
67,
2019,
67,
7039,
12,
2284,
2934,
588,
2668,
4718,
2187,
374,
3719,
4672,
309,
486,
938,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
938,
4672,
400,
273,
1053,
309,
1426,
12,
474,
12,
2890,
18,
588,
67,
2019,
67,
7039,
12,
2284,
2934,
588,
2668,
4718,
2187,
374,
3719,
4672,
309,
486,
938,
18,
1... |
gdaltest_list.append( (item, item.__name__ + '_interverted') ) | gdaltest_list.append( (item, item.__name__ + '_inverted') ) | def tiff_ovr_restore_endianness(): gdal.SetConfigOption( 'GDAL_TIFF_ENDIANNESS', gdaltest.tiff_endianness ) return 'success' | ba2fa21907f21dacef3095d5e503f04ebc96c423 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/ba2fa21907f21dacef3095d5e503f04ebc96c423/tiff_ovr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
3048,
67,
1527,
86,
67,
13991,
67,
409,
77,
1072,
403,
13332,
15551,
287,
18,
694,
809,
1895,
12,
296,
27338,
1013,
67,
56,
16962,
67,
30597,
5407,
1260,
2187,
15551,
2390,
395,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
268,
3048,
67,
1527,
86,
67,
13991,
67,
409,
77,
1072,
403,
13332,
15551,
287,
18,
694,
809,
1895,
12,
296,
27338,
1013,
67,
56,
16962,
67,
30597,
5407,
1260,
2187,
15551,
2390,
395,
1... |
space = self.space | def get_w_obj(self, allow_null): self.nesting += 1 if self.nesting < MAX_MARSHAL_DEPTH: tc = self.get1() w_ret = self._dispatch[ord(tc)](self.space, self, tc) if w_ret is None and not allow_null: space = self.space raise OperationError(space.w_TypeError, space.wrap( 'NULL object in marshal data')) else: self._overflow(... | d2460893dc043e26e0914df547635e43032e5ec2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/d2460893dc043e26e0914df547635e43032e5ec2/interp_marshal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
91,
67,
2603,
12,
2890,
16,
1699,
67,
2011,
4672,
365,
18,
82,
10100,
1011,
404,
309,
365,
18,
82,
10100,
411,
4552,
67,
19772,
2664,
1013,
67,
27479,
30,
1715,
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,
336,
67,
91,
67,
2603,
12,
2890,
16,
1699,
67,
2011,
4672,
365,
18,
82,
10100,
1011,
404,
309,
365,
18,
82,
10100,
411,
4552,
67,
19772,
2664,
1013,
67,
27479,
30,
1715,
273,
365,
18... | |
for x in wobj: cmd=cmd+' "'+x+'"' | for x in wobj: cmd = cmd + ' ' + x | def CompileLIB(lib=0, obj=[], opts=[]): if (lib==0): sys.exit("syntax error in CompileLIB directive") if (COMPILER=="MSVC7"): wlib = PREFIX+"/lib/" + lib wobj = xpaths(PREFIX+"/tmp/",obj,"") ALLTARGETS.append(wlib) if (older(wlib, wobj)): cmd = 'lib.exe /nologo /OUT:"' + wlib + '"' if (OPTIMIZE==4): cmd = cmd + " /LTC... | c85190276cd6a9b01b212e9fdd00c907bf653374 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c85190276cd6a9b01b212e9fdd00c907bf653374/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
14484,
12,
2941,
33,
20,
16,
1081,
22850,
6487,
1500,
33,
8526,
4672,
309,
261,
2941,
631,
20,
4672,
2589,
18,
8593,
2932,
14308,
555,
316,
16143,
14484,
8655,
7923,
225,
309,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
14484,
12,
2941,
33,
20,
16,
1081,
22850,
6487,
1500,
33,
8526,
4672,
309,
261,
2941,
631,
20,
4672,
2589,
18,
8593,
2932,
14308,
555,
316,
16143,
14484,
8655,
7923,
225,
309,
261... |
self.env.log.info("Sending SMTP notification to %s:%d to %s" % (self.smtp_server, self.smtp_port, recipients)) | self.env.log.info("Sending SMTP notification to %s"%recipients) | def remove_dup(rcpts, all): """Remove duplicates""" tmp = [] for rcpt in rcpts: if not rcpt in all: tmp.append(rcpt) all.append(rcpt) return (tmp, all) | 316a97f9aaf39940e9733b16299e962e8d4225aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6208/316a97f9aaf39940e9733b16299e962e8d4225aa/notification.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
26427,
12,
1310,
1092,
16,
777,
4672,
3536,
3288,
11211,
8395,
1853,
273,
5378,
364,
4519,
337,
316,
4519,
1092,
30,
309,
486,
4519,
337,
316,
777,
30,
1853,
18,
6923,
12,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
26427,
12,
1310,
1092,
16,
777,
4672,
3536,
3288,
11211,
8395,
1853,
273,
5378,
364,
4519,
337,
316,
4519,
1092,
30,
309,
486,
4519,
337,
316,
777,
30,
1853,
18,
6923,
12,
13... |
return first | if w_fromlist is not None and space.is_true(w_fromlist): return w_mod else: return first | def __import__(w_modulename, w_globals=None, w_locals=None, w_fromlist=None): modulename = space.unwrap(w_modulename) if not isinstance(modulename, str): try: helper = ', not ' + modulename.__class__.__name__ except AttributeError: helper = '' raise OperationError(space.w_TypeError, space.wrap("__import__() argument 1 ... | c30f71abebab8417ac6014210b93260b973f9448 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/c30f71abebab8417ac6014210b93260b973f9448/__builtin__interp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5666,
972,
12,
91,
67,
1711,
332,
1069,
16,
341,
67,
16227,
33,
7036,
16,
341,
67,
17977,
33,
7036,
16,
341,
67,
2080,
1098,
33,
7036,
4672,
31961,
273,
3476,
18,
318,
4113,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5666,
972,
12,
91,
67,
1711,
332,
1069,
16,
341,
67,
16227,
33,
7036,
16,
341,
67,
17977,
33,
7036,
16,
341,
67,
2080,
1098,
33,
7036,
4672,
31961,
273,
3476,
18,
318,
4113,
12... |
types.TypeType, types.CodeType, types.FunctionType): | types.TypeType, types.CodeType, types.FunctionType, types.StringType, types.UnicodeType): return True if id(obj) in self._id2ref: | def _isDeadEnd(self, obj): if type(obj) in (types.BooleanType, types.BuiltinFunctionType, types.BuiltinMethodType, types.ComplexType, types.FloatType, types.IntType, types.LongType, types.NoneType, types.NotImplementedType, types.TypeType, types.CodeType, types.FunctionType): return True # if it's an internal object, i... | bb22b15b9f0ccdc40e73d008896e3199a4fa2dc3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/bb22b15b9f0ccdc40e73d008896e3199a4fa2dc3/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
11852,
1638,
12,
2890,
16,
1081,
4672,
309,
618,
12,
2603,
13,
316,
261,
2352,
18,
5507,
559,
16,
1953,
18,
28032,
2083,
559,
16,
1953,
18,
28032,
21988,
16,
1953,
18,
12795,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
291,
11852,
1638,
12,
2890,
16,
1081,
4672,
309,
618,
12,
2603,
13,
316,
261,
2352,
18,
5507,
559,
16,
1953,
18,
28032,
2083,
559,
16,
1953,
18,
28032,
21988,
16,
1953,
18,
12795,... |
logger.error('Test dictionary does not have test named %s' % name) | logger.info('Test dictionary does not have test named %s' % name) | def run_test_by_name(name, test_modules=test_modules): global last_format_exception last_format_exception = "" logger.info('Starting Test:: %s' % name) if not test_modules.has_key(name): logger.error('Test dictionary does not have test named %s' % name) return False # Run any dependencies if hasattr(test_modules[nam... | 6d12e87d113888bbc982b504a398d155b3fe79b3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/6d12e87d113888bbc982b504a398d155b3fe79b3/run_recorded.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3813,
67,
1637,
67,
529,
12,
529,
16,
1842,
67,
6400,
33,
3813,
67,
6400,
4672,
2552,
1142,
67,
2139,
67,
4064,
225,
1142,
67,
2139,
67,
4064,
273,
1408,
1194,
18,
1376,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3813,
67,
1637,
67,
529,
12,
529,
16,
1842,
67,
6400,
33,
3813,
67,
6400,
4672,
2552,
1142,
67,
2139,
67,
4064,
225,
1142,
67,
2139,
67,
4064,
273,
1408,
1194,
18,
1376,
26... |
self.poly_points = u.reduce_poly(self.poly_points) | def loop(self): for event in pygame.event.get(): if event.type == QUIT: self.running = False elif event.type == KEYDOWN and event.key == K_ESCAPE: self.running = False elif event.type == MOUSEBUTTONDOWN and event.button == 1: # LMB if pygame.key.get_mods() & KMOD_SHIFT: p = self.flipyv(Vec2d(event.pos)) self.polys.appe... | 357a18dfb2992f3a7a89b76b284238fb568250f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8535/357a18dfb2992f3a7a89b76b284238fb568250f1/demo_playground.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
12,
2890,
4672,
364,
871,
316,
2395,
13957,
18,
2575,
18,
588,
13332,
309,
871,
18,
723,
422,
10110,
1285,
30,
365,
18,
8704,
273,
1083,
1327,
871,
18,
723,
422,
5311,
12711,
471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
12,
2890,
4672,
364,
871,
316,
2395,
13957,
18,
2575,
18,
588,
13332,
309,
871,
18,
723,
422,
10110,
1285,
30,
365,
18,
8704,
273,
1083,
1327,
871,
18,
723,
422,
5311,
12711,
471... | |
Loads a project from a Jokosher 0.1 (ZPO) project file into the given project object using the XML document doc. | Loads a project from a Jokosher 0.1 (ZPO) project file into the given project object using the XML document doc. Parameters: project -- Jokosher 0.1 (ZPO) project file. doc -- XML document doc used to load the 0.1 Project into the given 0.2+ Project object. Returns: the loaded Project object. | def LoadFromZPOFile(project, doc): """ Loads a project from a Jokosher 0.1 (ZPO) project file into the given project object using the XML document doc. """ def LoadEventFromZPO(self, node): """ Loads event properties from a Jokosher 0.1 XML node and saves then to the given self object. """ params = node.getElementsByTa... | e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
1265,
62,
2419,
812,
12,
4406,
16,
997,
4672,
3536,
4444,
87,
279,
1984,
628,
279,
804,
601,
538,
1614,
374,
18,
21,
261,
62,
2419,
13,
1984,
585,
1368,
326,
864,
1984,
733,
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,
4444,
1265,
62,
2419,
812,
12,
4406,
16,
997,
4672,
3536,
4444,
87,
279,
1984,
628,
279,
804,
601,
538,
1614,
374,
18,
21,
261,
62,
2419,
13,
1984,
585,
1368,
326,
864,
1984,
733,
14... |
str += I+'<TH BGCOLOR=" ' Trees </TH>\n' | str += I+'<th bgcolor=" str += ' Trees </th>\n' | def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') str += '<TABLE CLASS="navbar" BORDER="0" WIDTH="100%"' str += ' CELLPADDING="0" BGCOLOR="#a0c0ff" CELLSPACING="0">\n' str += ' <TR>\n' str += ' <TD WIDTH="100%">\n' str += ' <TA... | 1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
67,
... |
name = string.lower(name) | name = name.lower() | def getproxies_environment(): """Return a dictionary of scheme -> proxy server URL mappings. Scan the environment for variables named <scheme>_proxy; this seems to be the standard convention. If you need a different way, you can pass a proxies dictionary to the [Fancy]URLopener constructor. """ proxies = {} for name... | b2493f855a7319ce0748bfb965253cad9c9f5a2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b2493f855a7319ce0748bfb965253cad9c9f5a2c/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20314,
606,
67,
10274,
13332,
3536,
990,
279,
3880,
434,
4355,
317,
2889,
1438,
1976,
7990,
18,
225,
8361,
326,
3330,
364,
3152,
4141,
411,
9068,
34,
67,
5656,
31,
333,
12001,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20314,
606,
67,
10274,
13332,
3536,
990,
279,
3880,
434,
4355,
317,
2889,
1438,
1976,
7990,
18,
225,
8361,
326,
3330,
364,
3152,
4141,
411,
9068,
34,
67,
5656,
31,
333,
12001,
358,
... |
unittest.FunctionTestCase(pth_file.test) | self.pth_file_tests(pth_file) | def test_addsitedir(self): # Same tests for test_addpackage since addsitedir() essentially just # calls addpackage() for every .pth file in the directory pth_file = PthFile() pth_file.cleanup() # Make sure that nothing is pre-existing that is # tested for try: site.addsitedir(pth_file.base_dir, set()) unittest.Function... | 343b86712c9fdcc8dbaf9e460ac6b9b23b23b555 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/343b86712c9fdcc8dbaf9e460ac6b9b23b23b555/test_site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
25428,
16261,
481,
12,
2890,
4672,
468,
17795,
7434,
364,
1842,
67,
1289,
5610,
3241,
4831,
16261,
481,
1435,
18518,
11220,
2537,
468,
4097,
527,
5610,
1435,
364,
3614,
263,
2397... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25428,
16261,
481,
12,
2890,
4672,
468,
17795,
7434,
364,
1842,
67,
1289,
5610,
3241,
4831,
16261,
481,
1435,
18518,
11220,
2537,
468,
4097,
527,
5610,
1435,
364,
3614,
263,
2397... |
nestedmanifestpath, installinfo, | nestedmanifestpath, installinfo, | def processManifestForInstalls(manifestpath, installinfo, parentcatalogs=[]): """ Processes manifests to build a list of items to install. Can be recursive if manifests include other manifests. Probably doesn't handle circular manifest references well. """ cataloglist = getManifestValueForKey(manifestpath, 'catalogs') ... | 5350042f4ddfb098468c8d75b15dfa28757b9321 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/5350042f4ddfb098468c8d75b15dfa28757b9321/updatecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
9121,
1290,
6410,
87,
12,
14357,
803,
16,
3799,
1376,
16,
982,
2574,
287,
14072,
33,
8526,
4672,
3536,
4389,
281,
29700,
358,
1361,
279,
666,
434,
1516,
358,
3799,
18,
4480,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
9121,
1290,
6410,
87,
12,
14357,
803,
16,
3799,
1376,
16,
982,
2574,
287,
14072,
33,
8526,
4672,
3536,
4389,
281,
29700,
358,
1361,
279,
666,
434,
1516,
358,
3799,
18,
4480,
506,
... |
if sqlite_version >= MIN_SQLITE_VERSION: | if sqlite_version >= MIN_SQLITE_VERSION_NUMBER: | 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') | 07f5b35e190ab9be85143c6e8e1217d96bbf75ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/07f5b35e190ab9be85143c6e8e1217d96bbf75ca/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,
... |
py_exc = PyCompileError(err.__class__,err.args,dfile or file) | py_exc = PyCompileError(err.__class__, err, dfile or file) | def compile(file, cfile=None, dfile=None, doraise=False): """Byte-compile one Python source file to Python bytecode. Arguments: file: source filename cfile: target filename; defaults to source with 'c' or 'o' appended ('c' normally, 'o' in optimizing mode, giving .pyc or .pyo) dfile: purported filename; defaul... | 6854c28371ed24f4a2308d2b84c7be32d85e0323 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/6854c28371ed24f4a2308d2b84c7be32d85e0323/py_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
768,
16,
276,
768,
33,
7036,
16,
302,
768,
33,
7036,
16,
302,
10610,
784,
33,
8381,
4672,
3536,
3216,
17,
11100,
1245,
6600,
1084,
585,
358,
6600,
22801,
18,
225,
13599,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
768,
16,
276,
768,
33,
7036,
16,
302,
768,
33,
7036,
16,
302,
10610,
784,
33,
8381,
4672,
3536,
3216,
17,
11100,
1245,
6600,
1084,
585,
358,
6600,
22801,
18,
225,
13599,
30,
... |
arch.attach_filter(self.ins, filter) | attach_filter(self.ins, filter) | def __init__(self, iface = None, type = ETH_P_ALL, filter=None, nofilter=0): if iface is None: iface = conf.iface self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type)) self.ins.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 0) _flush_fd(self.ins) if not nofilter: if conf.except_filter: if fil... | 14c74c45cca1c3048391b67bd41fd3df4f699bde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7311/14c74c45cca1c3048391b67bd41fd3df4f699bde/linux.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9751,
273,
599,
16,
618,
273,
512,
2455,
67,
52,
67,
4685,
16,
1034,
33,
7036,
16,
290,
792,
1088,
33,
20,
4672,
309,
9751,
353,
599,
30,
9751,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9751,
273,
599,
16,
618,
273,
512,
2455,
67,
52,
67,
4685,
16,
1034,
33,
7036,
16,
290,
792,
1088,
33,
20,
4672,
309,
9751,
353,
599,
30,
9751,
273,
... |
message['body'] = tools.ustr(message['body'].decode(encoding)) | message['body'] = self._to_decode(message['body'], [encoding]) from_mail = self._decode_header(message['From']) | def email_send(self, cr, uid, model, res_id, msg, from_email=False, email_default=False): """This function Sends return email on submission of Fetched email in OpenERP database @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @... | 817ae449127e154dfebfe18df0f6f85578f83905 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/817ae449127e154dfebfe18df0f6f85578f83905/mail_gateway.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2699,
67,
4661,
12,
2890,
16,
4422,
16,
4555,
16,
938,
16,
400,
67,
350,
16,
1234,
16,
628,
67,
3652,
33,
8381,
16,
2699,
67,
1886,
33,
8381,
4672,
3536,
2503,
445,
2479,
87,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2699,
67,
4661,
12,
2890,
16,
4422,
16,
4555,
16,
938,
16,
400,
67,
350,
16,
1234,
16,
628,
67,
3652,
33,
8381,
16,
2699,
67,
1886,
33,
8381,
4672,
3536,
2503,
445,
2479,
87,
327,
... |
layout = QtGui.QVBoxLayout(self.demoFrame) | layout = QtGui.QVBoxLayout() | def __init__(self, *args): QtGui.QMainWindow.__init__(self, *args) self.demo = IzhikevichDemo() self.signalMapper = QtCore.QSignalMapper(self) self.demoFrame = QtGui.QFrame(self) self.controlPanel = QtGui.QFrame(self.demoFrame) self.figureNo = {} self.buttons = {} for key, value in IzhikevichDemo.parameters.items(): bu... | d286f81c7aaa940be197d2f0ffa180a384328600 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2961/d286f81c7aaa940be197d2f0ffa180a384328600/demogui_qt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
23425,
18,
53,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
365,
18,
27928,
273,
467,
23121,
2547,
90,
1354,
27126,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
23425,
18,
53,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
365,
18,
27928,
273,
467,
23121,
2547,
90,
1354,
27126,
1435,
... |
cur.execute('SELECT name FROM packages WHERE name="%s"' % name) | cur.execute('SELECT name FROM packages WHERE name=?', (name,)) | def hasName(self, name): cur = self._primarydb.cursor() cur.execute('SELECT name FROM packages WHERE name="%s"' % name) return bool(cur.fetchone()) | 1bd6adee371af6defb14a869c8d6fece65e51000 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/1bd6adee371af6defb14a869c8d6fece65e51000/sqliterepodb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
461,
12,
2890,
16,
508,
4672,
662,
273,
365,
6315,
8258,
1966,
18,
9216,
1435,
662,
18,
8837,
2668,
4803,
508,
4571,
5907,
4852,
508,
17282,
2187,
261,
529,
16,
3719,
327,
1426,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
461,
12,
2890,
16,
508,
4672,
662,
273,
365,
6315,
8258,
1966,
18,
9216,
1435,
662,
18,
8837,
2668,
4803,
508,
4571,
5907,
4852,
508,
17282,
2187,
261,
529,
16,
3719,
327,
1426,
1... |
self.allowaddfolder = False | self.allowaddfolder = False self.cleanrequest = self.cleanRequest() | def __call__(self): context = aq_inner(self.context) request = aq_inner(self.request) session = request.get('SESSION', None) self.showbreadcrumbs = request.get('showbreadcrumbs', self.showbreadcrumbs) self.setScopeInfos(context, request, self.showbreadcrumbs) # use self.multiselect = False (or multiselect = False in... | 04367e846c8cc439945321c1384fac8649be48dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/04367e846c8cc439945321c1384fac8649be48dd/finder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
225,
819,
273,
279,
85,
67,
7872,
12,
2890,
18,
2472,
13,
590,
273,
279,
85,
67,
7872,
12,
2890,
18,
2293,
13,
1339,
273,
590,
18,
588,
2668,
7042,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
4672,
225,
819,
273,
279,
85,
67,
7872,
12,
2890,
18,
2472,
13,
590,
273,
279,
85,
67,
7872,
12,
2890,
18,
2293,
13,
1339,
273,
590,
18,
588,
2668,
7042,
... |
obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'set', obj_) self.content_.append(obj_) if hasattr(self, 'add_set'): self.add_set(obj_.value) elif hasattr(self, 'set_set'): self.set_set(obj_.value) if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.... | self.set.append(obj_) | def buildChildren(self, child_, nodeName_, from_subclass=False): if nodeName_ == 'network': type_name_ = child_.attrib.get('{http://www.w3.org/2001/XMLSchema-instance}type') if type_name_ is None: type_name_ = child_.attrib.get('type') if type_name_ is not None: type_names_ = type_name_.split(':') if len(type_names_) =... | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4212,
12,
2890,
16,
1151,
67,
16,
7553,
67,
16,
628,
67,
10678,
33,
8381,
4672,
309,
7553,
67,
422,
296,
5185,
4278,
618,
67,
529,
67,
273,
1151,
27799,
14588,
18,
588,
2668,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4212,
12,
2890,
16,
1151,
67,
16,
7553,
67,
16,
628,
67,
10678,
33,
8381,
4672,
309,
7553,
67,
422,
296,
5185,
4278,
618,
67,
529,
67,
273,
1151,
27799,
14588,
18,
588,
2668,
9... |
permission = STATE_PERMISSION_MAPPING.get(tag_name.lower(), tag_value or '') | permission = STATE_PERMISSION_MAPPING.get(tag_name.lower(), tag_name or '') | def permissionsDefinitions(self): """ return a list of dictionaries with permission definitions | 26ace38ce9e04cf6dcf82bf906f243030a6368df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11941/26ace38ce9e04cf6dcf82bf906f243030a6368df/WorkflowGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4371,
7130,
12,
2890,
4672,
3536,
327,
279,
666,
434,
16176,
598,
4132,
6377,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4371,
7130,
12,
2890,
4672,
3536,
327,
279,
666,
434,
16176,
598,
4132,
6377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
sage: a(1) 2 sage: a(8) 19 sage: a(305) 2011 sage: a.list(12) [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37] sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer AUTHOR: -- Jaap Spies (2007-01-17) """ def __init__(self): | INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000040; a The prime numbers. sage: a(1) 2 sage: a(8) 19 sage: a(305) 2011 sage: a.list(12) [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37] sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a posit... | def _eval(self, n): if n < 10: return n else: return self(n//10) | 8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
290,
411,
1728,
30,
327,
290,
469,
30,
327,
365,
12,
82,
759,
2163,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
8622,
12,
2890,
16,
290,
4672,
309,
290,
411,
1728,
30,
327,
290,
469,
30,
327,
365,
12,
82,
759,
2163,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
node.SetName(slicer.MRMLScene.GetUniqueNameByString(c)) | node.SetName(slicer.MRMLScene.GetUniqueNameByString(className+"A")) | def Execute ( self, *args, **keywords ): self.module = slicer.MRMLScene.CreateNodeByClass("vtkMRMLCommandLineModuleNode") self.module.SetModuleDescription(self.name) pargs = self.__FindPositionalArguments() #print 'Positional', str(pargs) #print 'Args', str(args) diff = len(pargs) - len(args) if diff < 0: self.module =... | ec89fcb4b00f44a172f3762faa70342aa9e14d50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12580/ec89fcb4b00f44a172f3762faa70342aa9e14d50/Slicer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
261,
365,
16,
380,
1968,
16,
2826,
11771,
262,
30,
365,
18,
2978,
273,
2020,
21349,
18,
23464,
1495,
14370,
18,
1684,
907,
30032,
2932,
11734,
79,
23464,
1495,
21391,
3120,
907,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
261,
365,
16,
380,
1968,
16,
2826,
11771,
262,
30,
365,
18,
2978,
273,
2020,
21349,
18,
23464,
1495,
14370,
18,
1684,
907,
30032,
2932,
11734,
79,
23464,
1495,
21391,
3120,
907,
79... |
scope -- see the documentaion of this class. | scope -- see the documentation of this class. | def set_rate(self, value, scope=Scope.SELF): """Set the speech rate (speed) for further speech commands. | 7c9633115d399a569dd8e2ac33c37854b07f2e0f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7484/7c9633115d399a569dd8e2ac33c37854b07f2e0f/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
5141,
12,
2890,
16,
460,
16,
2146,
33,
3876,
18,
26280,
4672,
3536,
694,
326,
24556,
4993,
261,
13871,
13,
364,
9271,
24556,
4364,
18,
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,
444,
67,
5141,
12,
2890,
16,
460,
16,
2146,
33,
3876,
18,
26280,
4672,
3536,
694,
326,
24556,
4993,
261,
13871,
13,
364,
9271,
24556,
4364,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def __init__(self, **args): | def __init__(self, generators, **args): | def __init__(self, **args): dict.__init__(self) self.setdefault("JobName", None) self.setdefault("RunNumber", None) self.setdefault("MaxEvents", None) self.setdefault("SkipEvents", None) self.update(args) | f19e62686249065ebc65b174fb3a87b8701730ac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8886/f19e62686249065ebc65b174fb3a87b8701730ac/FactoriseJobSpec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13327,
16,
2826,
1968,
4672,
2065,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
1886,
2932,
29425,
3113,
599,
13,
365,
18,
542,
1886,
2932,
1997,
1854,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13327,
16,
2826,
1968,
4672,
2065,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
1886,
2932,
29425,
3113,
599,
13,
365,
18,
542,
1886,
2932,
1997,
1854,
... |
patch = pname(i) | def pname(i): if status == 'A': return self.applied[i].name else: return self.series[i] | 519294f93b8bc6bc0ba09afe34334f9f97a6da6a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/519294f93b8bc6bc0ba09afe34334f9f97a6da6a/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19952,
12,
77,
4672,
309,
1267,
422,
296,
37,
4278,
327,
365,
18,
438,
3110,
63,
77,
8009,
529,
469,
30,
327,
365,
18,
10222,
63,
77,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19952,
12,
77,
4672,
309,
1267,
422,
296,
37,
4278,
327,
365,
18,
438,
3110,
63,
77,
8009,
529,
469,
30,
327,
365,
18,
10222,
63,
77,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
import mediawiki_messages for i in pages_for_exclusion_database: path = 'copyright/' + i[0] + '/' + i[2] mediawiki_messages.makepath(path) p = wikipedia.Page(wikipedia.getSite(i[0]),i[1]) yield p, path | for i in pages_for_exclusion_database: path = 'copyright/' + i[0] + '/' + i[2] mediawiki_messages.makepath(path) p = wikipedia.Page(wikipedia.getSite(i[0]),i[1]) yield p, path | def exclusion_file_list(): import mediawiki_messages for i in pages_for_exclusion_database: path = 'copyright/' + i[0] + '/' + i[2] mediawiki_messages.makepath(path) p = wikipedia.Page(wikipedia.getSite(i[0]),i[1]) yield p, path | 1fc8304d6ddd18fcd83597ff7597b54525735edf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/1fc8304d6ddd18fcd83597ff7597b54525735edf/copyright.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21244,
67,
768,
67,
1098,
13332,
364,
277,
316,
4689,
67,
1884,
67,
338,
15335,
67,
6231,
30,
589,
273,
296,
29187,
2473,
397,
277,
63,
20,
65,
397,
2023,
397,
277,
63,
22,
65,
3539,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21244,
67,
768,
67,
1098,
13332,
364,
277,
316,
4689,
67,
1884,
67,
338,
15335,
67,
6231,
30,
589,
273,
296,
29187,
2473,
397,
277,
63,
20,
65,
397,
2023,
397,
277,
63,
22,
65,
3539,... |
for col in [(('Remove', 'removefield'),)]: | for col in [(('Remove search field', 'removefield'),)]: | def perform_showsearchfields(colID, ln=cdslang, callback='yes', content='', confirm=-1): """show the search fields of this collection..""" colID = int(colID) col_dict = dict(get_def_name('', "collection")) fld_dict = dict(get_def_name('', "field")) fld_type = get_sort_nametypes() subtitle = """<a name="6">6. Modify s... | e02bf14cfa93e6c83692292855ee97a11d40e01d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e02bf14cfa93e6c83692292855ee97a11d40e01d/websearchadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
4500,
3072,
2821,
12,
1293,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
913,
2218,
2187,
6932,
29711,
21,
4672,
3536,
4500,
326,
1623,
1466,
434,
333,
1849,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
4500,
3072,
2821,
12,
1293,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
913,
2218,
2187,
6932,
29711,
21,
4672,
3536,
4500,
326,
1623,
1466,
434,
333,
1849,... |
if 'align' in attrs: | if attrs.has_key('align'): | def visit_image(self, node): attrs = node.attributes pre = [] # in reverse order post = ['\\includegraphics{%s}' % attrs['uri']] inline = isinstance(node.parent, nodes.TextElement) if 'scale' in attrs: # Could also be done with ``scale`` option to # ``\includegraphics``; doing it this way for con... | b79c24e80c3204c2f0823bfbc1032b17fbbc6bf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/b79c24e80c3204c2f0823bfbc1032b17fbbc6bf9/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
3422,
273,
756,
18,
4350,
675,
273,
5378,
13491,
468,
316,
4219,
1353,
1603,
273,
10228,
1695,
6702,
31586,
95,
9,
87,
1713,
738,
3422,
3292,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
3422,
273,
756,
18,
4350,
675,
273,
5378,
13491,
468,
316,
4219,
1353,
1603,
273,
10228,
1695,
6702,
31586,
95,
9,
87,
1713,
738,
3422,
3292,
1... |
inc_base = Globals.rbdir.append_path("increments") if not inc_base.lstat(): inc_base.mkdir() | if not incdir.lstat(): incdir.mkdir() | def backup_final_init(rpout): """Open the backup log and the error log, create increments dir""" global prevtime if Log.verbosity > 0: Log.open_logfile(Globals.rbdir.append("backup.log")) checkdest_if_necessary(rpout) prevtime = backup_get_mirrortime() if prevtime >= Time.curtime: Log.FatalError( | 4275530cc4703b385bb9ee6795aa7071cdf0b832 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6202/4275530cc4703b385bb9ee6795aa7071cdf0b832/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5114,
67,
6385,
67,
2738,
12,
13832,
659,
4672,
3536,
3678,
326,
5114,
613,
471,
326,
555,
613,
16,
752,
17071,
1577,
8395,
2552,
2807,
957,
309,
1827,
18,
16629,
8807,
405,
374,
30,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5114,
67,
6385,
67,
2738,
12,
13832,
659,
4672,
3536,
3678,
326,
5114,
613,
471,
326,
555,
613,
16,
752,
17071,
1577,
8395,
2552,
2807,
957,
309,
1827,
18,
16629,
8807,
405,
374,
30,
1... |
args += ['--file', ctxt.resolve(file_)] | margs += ['--file', ctxt.resolve(file_)] | def make(ctxt, target=None, file_=None, keep_going=False): """Execute a Makefile target. :param ctxt: the build context :type ctxt: `Context` :param file\_: name of the Makefile :param keep_going: whether make should keep going when errors are encountered """ executable = ctxt.config.get_filepath('make.path') or 'make... | a8229bf1cb2f568adce3c329c24ddc8f0387f30e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4547/a8229bf1cb2f568adce3c329c24ddc8f0387f30e/ctools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
20364,
16,
1018,
33,
7036,
16,
585,
67,
33,
7036,
16,
3455,
67,
8162,
33,
8381,
4672,
3536,
5289,
279,
4344,
768,
1018,
18,
225,
294,
891,
14286,
30,
326,
1361,
819,
294,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
20364,
16,
1018,
33,
7036,
16,
585,
67,
33,
7036,
16,
3455,
67,
8162,
33,
8381,
4672,
3536,
5289,
279,
4344,
768,
1018,
18,
225,
294,
891,
14286,
30,
326,
1361,
819,
294,
7... |
initdefault = utils.system_output('runlevel').split()[1] | initdefault = utils.system_output('/sbin/runlevel').split()[1] | def __init__(self, job): """ job The job object for this job """ self.autodir = os.path.abspath(os.environ['AUTODIR']) self.setup(job) | 423f493d16dd64c2a2722355b6a7c078e0e5b1ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/423f493d16dd64c2a2722355b6a7c078e0e5b1ec/harness_standalone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1719,
4672,
3536,
1719,
1021,
1719,
733,
364,
333,
1719,
3536,
365,
18,
5854,
369,
481,
273,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
28684,
3292,
37,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1719,
4672,
3536,
1719,
1021,
1719,
733,
364,
333,
1719,
3536,
365,
18,
5854,
369,
481,
273,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
28684,
3292,
37,
... |
Asynchronous equivalent of `apply()` builtin | Asynchronous version of `apply()` method. | def apply_async(self, func, args=(), kwds={}, callback=None): ''' Asynchronous equivalent of `apply()` builtin ''' assert self._state == RUN result = ApplyResult(self._cache, callback) self._taskqueue.put(([(result._job, None, func, args, kwds)], None)) return result | 6eb90134e6b0faa268d442f34915444d72ffc7d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/6eb90134e6b0faa268d442f34915444d72ffc7d0/pool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
3810,
12,
2890,
16,
1326,
16,
833,
33,
9334,
17149,
28793,
1348,
33,
7036,
4672,
9163,
2970,
7121,
1177,
434,
1375,
9010,
20338,
707,
18,
9163,
1815,
365,
6315,
2019,
422,
1548... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
3810,
12,
2890,
16,
1326,
16,
833,
33,
9334,
17149,
28793,
1348,
33,
7036,
4672,
9163,
2970,
7121,
1177,
434,
1375,
9010,
20338,
707,
18,
9163,
1815,
365,
6315,
2019,
422,
1548... |
3 | def out_degree_iterator(self, vertices=None, labels=False): """ Same as degree_iterator, but for out degree. | 9d36d03b3ab7f06625c58cdce4e33c649f2fc772 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/9d36d03b3ab7f06625c58cdce4e33c649f2fc772/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
596,
67,
21361,
67,
9838,
12,
2890,
16,
6928,
33,
7036,
16,
3249,
33,
8381,
4672,
3536,
17795,
487,
10782,
67,
9838,
16,
1496,
364,
596,
10782,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
596,
67,
21361,
67,
9838,
12,
2890,
16,
6928,
33,
7036,
16,
3249,
33,
8381,
4672,
3536,
17795,
487,
10782,
67,
9838,
16,
1496,
364,
596,
10782,
18,
2,
-100,
-100,
-100,
-100,
-100,
-10... | |
bootBlocks.append(self.generateBootCode(fileUri, parts, packages, boot, variants, settings, bootPackage, globalCodes, format)) | filesPackages = packagesOfFiles(fileUri, packages) bootBlocks.append(self.generateBootCode(parts, filesPackages, boot, variants, settings, bootPackage, globalCodes, format)) | def generateBootScript(bootPackage=""): self._console.info("Generating boot script...") bootBlocks = [] | 3978f530a7d64dbbf06451cc3ce692ba259795e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/3978f530a7d64dbbf06451cc3ce692ba259795e9/CodeGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
15817,
3651,
12,
7137,
2261,
1546,
6,
4672,
365,
6315,
8698,
18,
1376,
2932,
21755,
4835,
2728,
7070,
13,
4835,
6450,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
15817,
3651,
12,
7137,
2261,
1546,
6,
4672,
365,
6315,
8698,
18,
1376,
2932,
21755,
4835,
2728,
7070,
13,
4835,
6450,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
resultDict[lfn][transID]['JobStatus'] = jobStatus | resultDict[lfn][transID]['JobStatus'] = jobStatus | def getFileSummary(self,lfns,transName=''): """ Get file status summary in all the transformations """ if transName: result = self.getTransformation(transName) if not result['OK']: return result transList = [result['Value']] else: result = self.getAllTransformations() if not result['OK']: return S_ERROR('Can not get tr... | 5a5c47e955bd5a1be7125f1a9f51ee35548af729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/5a5c47e955bd5a1be7125f1a9f51ee35548af729/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
4733,
12,
2890,
16,
20850,
2387,
16,
2338,
461,
2218,
11,
4672,
3536,
968,
585,
1267,
4916,
316,
777,
326,
19245,
3536,
309,
906,
461,
30,
563,
273,
365,
18,
588,
15292,
12,
2338... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
4733,
12,
2890,
16,
20850,
2387,
16,
2338,
461,
2218,
11,
4672,
3536,
968,
585,
1267,
4916,
316,
777,
326,
19245,
3536,
309,
906,
461,
30,
563,
273,
365,
18,
588,
15292,
12,
2338... |
self.server_advertised_uri = message_summary.message_account.replace('sip:', '', 1) or None | self.server_advertised_uri = message_summary.message_account and message_summary.message_account.replace('sip:', '', 1) or None | def _CH_subscribe(self, command): notification_center = NotificationCenter() settings = SIPSimpleSettings() | 81ad92dccc1505d86acda20ded7ee5b9aa03346a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/81ad92dccc1505d86acda20ded7ee5b9aa03346a/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1792,
67,
9174,
12,
2890,
16,
1296,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
1947,
273,
348,
2579,
5784,
2628,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
1792,
67,
9174,
12,
2890,
16,
1296,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
1947,
273,
348,
2579,
5784,
2628,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return "%s - %s - %s" % (self.played_on, self.song.artist, self.song) | try: return "%s - %s - %s" % (self.played_on, self.song.artist, self.song) except Song.DoesNotExist: print "Error: Could not find the song for random play %s." % self.id return "" | def __unicode__(self): return "%s - %s - %s" % (self.played_on, self.song.artist, self.song) | 045ade910b9ee144eb0ab73baac00928131b1887 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10992/045ade910b9ee144eb0ab73baac00928131b1887/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
2213,
87,
300,
738,
87,
300,
738,
87,
6,
738,
261,
2890,
18,
1601,
329,
67,
265,
16,
365,
18,
816,
75,
18,
25737,
16,
365,
18,
816,
75,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9124,
972,
12,
2890,
4672,
327,
2213,
87,
300,
738,
87,
300,
738,
87,
6,
738,
261,
2890,
18,
1601,
329,
67,
265,
16,
365,
18,
816,
75,
18,
25737,
16,
365,
18,
816,
75,
13,
... |
raise WalkerEror | raise WalkerError | def parameters(self, nodelist): raise WalkerEror | 0059b73cde32fd3140b1abc1bf9faa7d33bba8d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0059b73cde32fd3140b1abc1bf9faa7d33bba8d7/transformer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1472,
12,
2890,
16,
30068,
4672,
1002,
7564,
264,
29228,
280,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1472,
12,
2890,
16,
30068,
4672,
1002,
7564,
264,
29228,
280,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
""" Compare two collections of units, or a collection of units with some other object. EXAMPLES:: sage: units.length == 10 False sage: units.length == units.length True sage: units.length == units.mass False """ if not isinstance(other, Units): return cmp(type(self), type(other)) return cmp((self.__name, self.__data)... | """ Compare two collections of units, or a collection of units with some other object. EXAMPLES:: sage: units.length == 10 False sage: units.length == units.length True sage: units.length == units.mass False """ if not isinstance(other, Units): return cmp(type(self), type(other)) return cmp((self.__name, self.__data)... | def __cmp__(self, other): | ed891e5784edd8a5e4d544f1ef837edc82b93924 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ed891e5784edd8a5e4d544f1ef837edc82b93924/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
options.log = arg | options.logfile = arg | def sleep(self, reason): self.log("", "%s, sleeping for %d seconds" % (reason, config.sleep)) time.sleep(config.sleep) | 91f26ab71153877344d21a25833ce7282670e21e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11991/91f26ab71153877344d21a25833ce7282670e21e/syncpkgcd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5329,
12,
2890,
16,
3971,
4672,
365,
18,
1330,
2932,
3113,
2213,
87,
16,
5329,
310,
364,
738,
72,
3974,
6,
738,
261,
10579,
16,
642,
18,
19607,
3719,
813,
18,
19607,
12,
1425,
18,
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,
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,
5329,
12,
2890,
16,
3971,
4672,
365,
18,
1330,
2932,
3113,
2213,
87,
16,
5329,
310,
364,
738,
72,
3974,
6,
738,
261,
10579,
16,
642,
18,
19607,
3719,
813,
18,
19607,
12,
1425,
18,
19... |
self.tk.call('tixSetSilent', self._w, value) | self.tk.call('tixSetSilent', self._w, value) | def set_silent(self, value): | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
21862,
12,
2890,
16,
460,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
21862,
12,
2890,
16,
460,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.default(line) return | return self.default(line) | def onecmd(self, line): line = string.strip(line) if line == '?': line = 'help' elif line == '!': if hasattr(self, 'do_shell'): line = 'shell' else: self.default(line) return elif not line: self.emptyline() return self.lastcmd = line i, n = 0, len(line) while i < n and line[i] in self.identchars: i = i+1 cmd, arg = lin... | ebc50ab318d8f90298757368f4820ef8b3565e41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ebc50ab318d8f90298757368f4820ef8b3565e41/cmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1245,
4172,
12,
2890,
16,
980,
4672,
980,
273,
533,
18,
6406,
12,
1369,
13,
309,
980,
422,
13023,
4278,
980,
273,
296,
5201,
11,
1327,
980,
422,
11817,
4278,
309,
3859,
12,
2890,
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,
1245,
4172,
12,
2890,
16,
980,
4672,
980,
273,
533,
18,
6406,
12,
1369,
13,
309,
980,
422,
13023,
4278,
980,
273,
296,
5201,
11,
1327,
980,
422,
11817,
4278,
309,
3859,
12,
2890,
16,
... |
|| (%(z)s->dimensions[0] != ((npy_int32 *)%(a_nrows)s->data)[0]) || (%(z)s->dimensions[1] != %(b)s->dimensions[1]) | || (%(z)s->dimensions[0] != %(b)s->dimensions[0]) | def c_code(self, node, name, (a_val, a_ind, a_ptr, a_nrows, b), (z,), sub): return """ if (%(a_val)s->nd != 1) {PyErr_SetString(PyExc_NotImplementedError, "rank(a_val) != 1"); %(fail)s;} if (%(a_ind)s->nd != 1) {PyErr_SetString(PyExc_NotImplementedError, "rank(a_ind) != 1"); %(fail)s;} if (%(a_ptr)s->nd != 1) {PyErr_Se... | 46305ee5eb1cd7beebd74117366afb20cd152a02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/46305ee5eb1cd7beebd74117366afb20cd152a02/test_debugmode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
12,
2890,
16,
756,
16,
508,
16,
261,
69,
67,
1125,
16,
279,
67,
728,
16,
279,
67,
6723,
16,
279,
67,
82,
3870,
16,
324,
3631,
261,
94,
16,
3631,
720,
4672,
327,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
12,
2890,
16,
756,
16,
508,
16,
261,
69,
67,
1125,
16,
279,
67,
728,
16,
279,
67,
6723,
16,
279,
67,
82,
3870,
16,
324,
3631,
261,
94,
16,
3631,
720,
4672,
327,
353... |
return self._MPolynomial__element.dict()!={} | return self._MPolynomial_element__element.dict()!={} | def __nonzero__(self): """ Returns True if self != 0 | a51b41dcaa6938d9a2f83783b86d59d1ee70083b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/a51b41dcaa6938d9a2f83783b86d59d1ee70083b/multi_polynomial_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
26449,
972,
12,
2890,
4672,
3536,
2860,
1053,
309,
365,
480,
374,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
26449,
972,
12,
2890,
4672,
3536,
2860,
1053,
309,
365,
480,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
class Import(XMLSchemaComponent, MarkerInterface): | class Import(XMLSchemaComponent): | def load(self, node): pnode = node.getParentNode() if pnode: pname = SplitQName(pnode.getTagName())[1] if pname == 'types': attributes = {} self.setAttributes(pnode) attributes.update(self.attributes) self.setAttributes(node) for k,v in attributes['xmlns'].items(): if not self.attributes['xmlns'].has_key(k): self.attri... | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
756,
4672,
293,
2159,
273,
756,
18,
588,
3054,
907,
1435,
309,
293,
2159,
30,
19952,
273,
5385,
13688,
12,
84,
2159,
18,
588,
8520,
10756,
63,
21,
65,
309,
19952,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
756,
4672,
293,
2159,
273,
756,
18,
588,
3054,
907,
1435,
309,
293,
2159,
30,
19952,
273,
5385,
13688,
12,
84,
2159,
18,
588,
8520,
10756,
63,
21,
65,
309,
19952,
... |
if self._postgres_rules_present: | if _POSTGRES_RULES_PRESENT: | def load(self, record_iterator, fetch_NCBI_taxonomy=False): """Load a set of SeqRecords into the BioSQL database. | 21b0ba9510d1d14671c4745cc930845f54f9b378 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/21b0ba9510d1d14671c4745cc930845f54f9b378/BioSeqDatabase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
1409,
67,
9838,
16,
2158,
67,
50,
8876,
45,
67,
13141,
33,
8381,
4672,
3536,
2563,
279,
444,
434,
14367,
6499,
1368,
326,
21209,
3997,
2063,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
1409,
67,
9838,
16,
2158,
67,
50,
8876,
45,
67,
13141,
33,
8381,
4672,
3536,
2563,
279,
444,
434,
14367,
6499,
1368,
326,
21209,
3997,
2063,
18,
2,
-100,
-100,
-100... |
filter = os.path.splitext(filepattern[self.combo.get_active()] [1]) [1] self.filelist.add_uris(folders, filter=filter) | patterns = filepattern[self.combo.get_active()][1].split(';') extensions = [os.path.splitext(p)[1] for p in patterns] self.filelist.add_uris(folders, extensions=extensions) | def on_addfolder_activate(self, *args): last_folder = self.prefs.get_string('last-used-folder') if last_folder: self.addfolderchooser.set_current_folder_uri(last_folder) | a6ab25e2a6e3a996db50986725aba976da466d0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2369/a6ab25e2a6e3a996db50986725aba976da466d0c/soundconverter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1289,
5609,
67,
10014,
12,
2890,
16,
380,
1968,
4672,
1142,
67,
5609,
273,
365,
18,
1484,
2556,
18,
588,
67,
1080,
2668,
2722,
17,
3668,
17,
5609,
6134,
309,
1142,
67,
5609,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1289,
5609,
67,
10014,
12,
2890,
16,
380,
1968,
4672,
1142,
67,
5609,
273,
365,
18,
1484,
2556,
18,
588,
67,
1080,
2668,
2722,
17,
3668,
17,
5609,
6134,
309,
1142,
67,
5609,
... |
prompts_key_order = ('verbose_flag','dry_run_flag','video_source_filename','video_transcoded_filename','video_final_filename', 'audio_raw_filename','audio_compressed_filename','video_length','video_scale','video_codec','video_encode_passes', 'video_key_interval','video_bitrate','video_target_size','video_bitrate_fudge_... | def convert (options): """This is the heart of it all -- this performs an end-to-end conversion of a video from one format to another. It requires a dictionary of options. The conversion process will also add some keys to the dictionary such as length of the video and crop area. The dictionary is returned. """ prin... | def delete_tmp_files (video_transcoded_filename, audio_raw_filename, audio_compressed_filename, verbose_flag=0, dry_run_flag=0): file_list = ' '.join(['divx2pass.log', video_transcoded_filename, audio_raw_filename, audio_compressed_filename]) cmd = "rm -f " + file_list if verbose_flag: print cmd if not dry_run_flag: ru... | be30ec4b2cb43f3694a8e7451fcb72bc576e9114 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/be30ec4b2cb43f3694a8e7451fcb72bc576e9114/rippy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
5645,
67,
2354,
261,
9115,
67,
2338,
24808,
67,
3459,
16,
7447,
67,
1899,
67,
3459,
16,
7447,
67,
15385,
67,
3459,
16,
3988,
67,
6420,
33,
20,
16,
10299,
67,
2681,
67,
6420... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
5645,
67,
2354,
261,
9115,
67,
2338,
24808,
67,
3459,
16,
7447,
67,
1899,
67,
3459,
16,
7447,
67,
15385,
67,
3459,
16,
3988,
67,
6420,
33,
20,
16,
10299,
67,
2681,
67,
6420... |
files = sorted([ cs+f for f in os.listdir(cs) if os.path.isfile(cs+f) and str(cs+f)[-4:] == '.tar']) | files = sorted([ cs+f for f in os.listdir(cs) if os.path.isfile(cs+f) and str(cs+f)[-4:] == '.tar'], reverse=True) | def update(self): # clear status message on new selection self.status_set(" ") | 859de969e3c68e442edc8b294975d852885559c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11428/859de969e3c68e442edc8b294975d852885559c6/shr_homedir.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
468,
2424,
1267,
883,
603,
394,
4421,
365,
18,
2327,
67,
542,
2932,
9369,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
468,
2424,
1267,
883,
603,
394,
4421,
365,
18,
2327,
67,
542,
2932,
9369,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
scatter_data_dict[combined_scatter_data[0][scatter_counter]] = [exp_peak_value,mod_peak_value,relative_difference] | def extract_comp_data(comp_file_info): ## Read in d line dict from config file and Process data from source .csv files. exp_data = [] mod_data = [] exp_data_dict = {} mod_data_dict = {} exp_scatter_data_labels = [] mod_scatter_data_labels = [] #List of variables from configuration file column names. exp_data_filenam... | 3e2c9216d1753d72aa35eb4b00ead3a64cc08c5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/3e2c9216d1753d72aa35eb4b00ead3a64cc08c5d/Validation_Data_Processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
2919,
67,
892,
12,
2919,
67,
768,
67,
1376,
4672,
7541,
2720,
316,
302,
980,
2065,
628,
642,
585,
471,
4389,
501,
628,
1084,
263,
6715,
1390,
18,
225,
1329,
67,
892,
273,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
2919,
67,
892,
12,
2919,
67,
768,
67,
1376,
4672,
7541,
2720,
316,
302,
980,
2065,
628,
642,
585,
471,
4389,
501,
628,
1084,
263,
6715,
1390,
18,
225,
1329,
67,
892,
273,
5... | |
Bh = other.h | def __mul__(self, other): if isinstance(other, Matrix3): # Caching repeatedly accessed attributes in local variables # apparently increases performance by 20%. Attrib: Will McGugan. Aa = self.a Ab = self.b Ac = self.c Ad = self.d Ae = self.e Af = self.f Ag = self.g Ah = self.h Ai = self.i Aj = self.j Ak = self.k Ba = ... | 57e478f8e42a793b86403b95c51da94ea0ccb46b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12664/57e478f8e42a793b86403b95c51da94ea0ccb46b/euclid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16411,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
7298,
23,
4672,
468,
23782,
310,
30412,
15539,
1677,
316,
1191,
3152,
468,
29614,
715,
7033,
3304,
9239,
635,
4200,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16411,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
7298,
23,
4672,
468,
23782,
310,
30412,
15539,
1677,
316,
1191,
3152,
468,
29614,
715,
7033,
3304,
9239,
635,
4200,
9... | |
sys.stderr.write(_("Can't read --exclude-file: %s") % options.excludefilename) | print >> sys.stderr, _( "Can't read --exclude-file: %s") % options.excludefilename | def main(): global default_keywords try: opts, args = getopt.getopt( sys.argv[1:], 'ad:DEhk:Kno:p:S:Vvw:x:', ['extract-all', 'default-domain', 'escape', 'help', 'keyword=', 'no-default-keywords', 'add-location', 'no-location', 'output=', 'output-dir=', 'style=', 'verbose', 'version', 'width=', 'exclude-file=', 'docstri... | 2a4bed71ce64fa0e786930772938ded32c1ff884 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2a4bed71ce64fa0e786930772938ded32c1ff884/pygettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
805,
67,
11771,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
2589,
18,
19485,
63,
21,
30,
6487,
296,
361,
30,
1639,
76,
79,
30,
47,
2135,
30,
84,
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,
2774,
13332,
2552,
805,
67,
11771,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
2589,
18,
19485,
63,
21,
30,
6487,
296,
361,
30,
1639,
76,
79,
30,
47,
2135,
30,
84,
3... |
"lowpass": signal.lowpass, | "lowpass": signal.lowpass, | def filter(self, type, options): """ Filters the data of the current trace. This is performed in place on the actual data array. The original data is not accessible anymore afterwards. To keep your original data, use :meth:`~obspy.core.trace.Trace.copy` to make a copy of your trace. This also makes an entry with inform... | b10d64aa00c34019092da26998e3120d162272a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b10d64aa00c34019092da26998e3120d162272a1/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
12,
2890,
16,
618,
16,
702,
4672,
3536,
14475,
326,
501,
434,
326,
783,
2606,
18,
1220,
353,
9591,
316,
3166,
603,
326,
3214,
501,
526,
18,
1021,
2282,
501,
353,
486,
12718,
1682... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
12,
2890,
16,
618,
16,
702,
4672,
3536,
14475,
326,
501,
434,
326,
783,
2606,
18,
1220,
353,
9591,
316,
3166,
603,
326,
3214,
501,
526,
18,
1021,
2282,
501,
353,
486,
12718,
1682... |
task.get_status()) | task.get_status(), str(task.get_modified()), str(task.get_due_date()), str(task.get_start_date()), str(task.get_days_left()), str(task.get_closed_date()), map(lambda t: t.get_name(), task.get_tags())) | def __init__(self, title, text, subtasks, status ): self.title = title self.text = text self.subtasks = subtasks self.status = status | 12ef78af13aaab2a4def3cd8b92c57d5c835e138 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/12ef78af13aaab2a4def3cd8b92c57d5c835e138/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
16,
977,
16,
720,
9416,
16,
1267,
262,
30,
365,
18,
2649,
565,
273,
2077,
365,
18,
955,
377,
273,
977,
365,
18,
1717,
9416,
273,
720,
9416,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
16,
977,
16,
720,
9416,
16,
1267,
262,
30,
365,
18,
2649,
565,
273,
2077,
365,
18,
955,
377,
273,
977,
365,
18,
1717,
9416,
273,
720,
9416,
365,
... |
pass ret[index] = change | ret[index] = ranges[index][1] else: ret[index] = change | def getEpsilonNeighbor(self, ranges, parameters, epsilon): """ Given a list of parameters, returns a randomly generated policy nearby such that each parameter is changed randomly by +epsilon * range, 0, or -epsilon * range. """ ret = copy(parameters) #print 'ret was', ret for index in range(len(parameters)): param = r... | cfea52b3194b9410af0aed0148155ab7e610de13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13791/cfea52b3194b9410af0aed0148155ab7e610de13/Strategy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4774,
1121,
10327,
24684,
12,
2890,
16,
7322,
16,
1472,
16,
12263,
4672,
3536,
16803,
279,
666,
434,
1472,
16,
1135,
279,
20153,
4374,
3329,
13378,
1637,
4123,
716,
1517,
1569,
353,
3550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4774,
1121,
10327,
24684,
12,
2890,
16,
7322,
16,
1472,
16,
12263,
4672,
3536,
16803,
279,
666,
434,
1472,
16,
1135,
279,
20153,
4374,
3329,
13378,
1637,
4123,
716,
1517,
1569,
353,
3550,
... |
return negInf | return _negInf | def log10(self, context=None): """Returns the base 10 logarithm of self.""" | c5de0969ca2a82c66efd30bb675f03c2324a3b27 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/c5de0969ca2a82c66efd30bb675f03c2324a3b27/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
2163,
12,
2890,
16,
819,
33,
7036,
4672,
3536,
1356,
326,
1026,
1728,
613,
31249,
434,
365,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
2163,
12,
2890,
16,
819,
33,
7036,
4672,
3536,
1356,
326,
1026,
1728,
613,
31249,
434,
365,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
res['quantity']='____________' res['price_unit']='______________' res['discount']='____________' res['tax_types']='_________________' | res['quantity']='___________________' res['price_unit']='______________________' res['discount']='____________________________________' res['tax_types']='_____________________' | def invoice_lines(self,invoice): result =[] sub_total={} info=[] invoice_list=[] res={} list_in_seq={} ids = self.pool.get('account.invoice.line').search(self.cr, self.uid, [('invoice_id', '=', invoice.id)]) ids.sort() for id in range(0,len(ids)): info = self.pool.get('account.invoice.line').browse(self.cr, self.uid,id... | 47dab5031ed30952745db2b2a15be7faf0425f14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/47dab5031ed30952745db2b2a15be7faf0425f14/special_message_invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9179,
67,
3548,
12,
2890,
16,
16119,
4672,
563,
273,
8526,
720,
67,
4963,
12938,
1123,
33,
8526,
9179,
67,
1098,
33,
8526,
400,
12938,
666,
67,
267,
67,
5436,
12938,
3258,
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,
9179,
67,
3548,
12,
2890,
16,
16119,
4672,
563,
273,
8526,
720,
67,
4963,
12938,
1123,
33,
8526,
9179,
67,
1098,
33,
8526,
400,
12938,
666,
67,
267,
67,
5436,
12938,
3258,
273,
365,
18... |
drawcylinder(color2, self.a2pos, self.center, TubeRadius) if not (v1 and v2): drawsphere(black, self.center, TubeRadius, level) else: drawcylinder(red, self.c1, self.c2, TubeRadius) if v1: drawcylinder(color1, self.a1pos, self.c1, TubeRadius) | drawcylinder(color2, a2pos, c2, TubeRadius) | via dispdef from the calling molecule -- this might cause bugs if some | 8458fbfe4c9e599a4e7092a28b468082d5fe6e91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8458fbfe4c9e599a4e7092a28b468082d5fe6e91/bonds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3970,
16232,
536,
628,
326,
4440,
13661,
1493,
333,
4825,
4620,
22398,
309,
2690,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3970,
16232,
536,
628,
326,
4440,
13661,
1493,
333,
4825,
4620,
22398,
309,
2690,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
debug ("No server") | debugOutput ("No server") | def run (func, retry): while (True): try: return func () except socket.error: pass if not retry: debug ("Server down, continue...") break debug ("No server") time.sleep (sleepTime) | 46333b5180c6ef09526dfb16187b8091da0c3b07 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11382/46333b5180c6ef09526dfb16187b8091da0c3b07/worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
644,
16,
3300,
4672,
1323,
261,
5510,
4672,
775,
30,
327,
1326,
1832,
1335,
2987,
18,
1636,
30,
1342,
309,
486,
3300,
30,
1198,
7566,
2081,
2588,
16,
1324,
7070,
13,
898,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
644,
16,
3300,
4672,
1323,
261,
5510,
4672,
775,
30,
327,
1326,
1832,
1335,
2987,
18,
1636,
30,
1342,
309,
486,
3300,
30,
1198,
7566,
2081,
2588,
16,
1324,
7070,
13,
898,
11... |
- ``base_ring`` - - ``a, b`` - - ``names`` - | - ``base_ring`` - commutative ring - ``a, b`` - elements of ``base_ring`` - ``names`` - string (optional, default 'i, j, k') names of the generators | def __init__(self, base_ring, a, b, names='i,j,k'): """ Create the quaternion algebra with `i^2 = a`, `j^2 = b`, and `i*j = -j*i = k`. | 1fe7e945a5e69662d3b79300c558387c31fea323 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1fe7e945a5e69662d3b79300c558387c31fea323/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
8022,
16,
279,
16,
324,
16,
1257,
2218,
77,
16,
78,
16,
79,
11,
4672,
3536,
1788,
326,
26774,
524,
29087,
598,
1375,
77,
66,
22,
273,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
8022,
16,
279,
16,
324,
16,
1257,
2218,
77,
16,
78,
16,
79,
11,
4672,
3536,
1788,
326,
26774,
524,
29087,
598,
1375,
77,
66,
22,
273,
279,
... |
self.listeners.remove(listener) | if self in BaseNode.listeners: BaseNode.listeners[self].remove(listener) | def removeChangeListener(self,listener): self.listeners.remove(listener) | a7f439fd5d43e4c0a8d29370108b24a55eec1c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/553/a7f439fd5d43e4c0a8d29370108b24a55eec1c74/nef.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
15744,
12,
2890,
16,
12757,
4672,
365,
18,
16072,
18,
4479,
12,
12757,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
15744,
12,
2890,
16,
12757,
4672,
365,
18,
16072,
18,
4479,
12,
12757,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return http.Response(stream = '') | return HTMLResponse(stream = '') | def send_worksheet_to_folder(filename): W = notebook.get_worksheet_with_filename(filename) self.action(W) | 5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1252,
8118,
67,
869,
67,
5609,
12,
3459,
4672,
678,
273,
14718,
18,
588,
67,
1252,
8118,
67,
1918,
67,
3459,
12,
3459,
13,
365,
18,
1128,
12,
59,
13,
225,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1252,
8118,
67,
869,
67,
5609,
12,
3459,
4672,
678,
273,
14718,
18,
588,
67,
1252,
8118,
67,
1918,
67,
3459,
12,
3459,
13,
365,
18,
1128,
12,
59,
13,
225,
2,
-100,
-100,
... |
rStar.sub('.*', w) rQues.sub('.', w) | w=rStar.sub('.*', w) w=rQues.sub('.', w) l.append(w) | def __init__(self, spec, opt): self.spec = spec self.opt = opt self.name = None rMatch=[] rNotMatch=[] | eb086e1515667a2e7dfa51e290c77bb6c64e6b7f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10890/eb086e1515667a2e7dfa51e290c77bb6c64e6b7f/ssh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
857,
16,
2153,
4672,
365,
18,
2793,
273,
857,
365,
18,
3838,
273,
2153,
365,
18,
529,
273,
599,
436,
2060,
33,
8526,
436,
1248,
2060,
33,
8526,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
857,
16,
2153,
4672,
365,
18,
2793,
273,
857,
365,
18,
3838,
273,
2153,
365,
18,
529,
273,
599,
436,
2060,
33,
8526,
436,
1248,
2060,
33,
8526,
2,
-100... |
__default_templates_dir__ = '%(templates)s' __default_htdocs_dir__ = '%(htdocs)s' __default_wiki_dir__ = '%(wiki)s' | __default_templates_dir__ = '%(templates)r' __default_htdocs_dir__ = '%(htdocs)r' __default_wiki_dir__ = '%(wiki)r' | def siteconfig(self): templates_dir = os.path.join(self.prefix, 'share','trac','templates') htdocs_dir = os.path.join(self.prefix, 'share','trac','htdocs') wiki_dir = os.path.join(self.prefix, 'share','trac','wiki-default') f = open(_p('trac/siteconfig.py'),'w') f.write(""" | 8443c255dd8510c6485a8ebbb4362ff5ef67d19d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/8443c255dd8510c6485a8ebbb4362ff5ef67d19d/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10982,
22703,
12,
2890,
4672,
5539,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3239,
16,
296,
14419,
17023,
313,
1077,
17023,
8502,
6134,
14049,
8532,
67,
1214,
273,
1140,
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,
10982,
22703,
12,
2890,
4672,
5539,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3239,
16,
296,
14419,
17023,
313,
1077,
17023,
8502,
6134,
14049,
8532,
67,
1214,
273,
1140,
18,... |
def load_state_from(self, key): file = self.get_fs().open(key) | def load_state_from(self, uri): file = vfs.open(uri) | def load_state_from(self, key): file = self.get_fs().open(key) try: self.load_state_from_file(file) finally: file.close() | 890adc9e90f61f83c8d8c5987e90022926fac395 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/890adc9e90f61f83c8d8c5987e90022926fac395/file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2019,
67,
2080,
12,
2890,
16,
2003,
4672,
585,
273,
20682,
18,
3190,
12,
1650,
13,
775,
30,
365,
18,
945,
67,
2019,
67,
2080,
67,
768,
12,
768,
13,
3095,
30,
585,
18,
441... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
67,
2019,
67,
2080,
12,
2890,
16,
2003,
4672,
585,
273,
20682,
18,
3190,
12,
1650,
13,
775,
30,
365,
18,
945,
67,
2019,
67,
2080,
67,
768,
12,
768,
13,
3095,
30,
585,
18,
441... |
r"(?P<ltgt>'[^']+'|\"[^\"]+\"|[^\] ]+)" | r"(?P<ltgt>'[^']+'|\"[^\"]+\"|[^\] ]*)" | def process(self, req, text, inline=False): if self.error: return system_message('Error: Failed to load processor <code>%s</code>' % self.name, self.error) text = self.processor(req, text) if inline: code_block_start = re.compile('^<div class="code-block">') code_block_end = re.compile('</div>$') text, nr = code_block_... | 34b29c0f312d443016791ddf8fee393e374df1f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/34b29c0f312d443016791ddf8fee393e374df1f0/formatter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
1111,
16,
977,
16,
6370,
33,
8381,
4672,
309,
365,
18,
1636,
30,
327,
2619,
67,
2150,
2668,
668,
30,
11175,
358,
1262,
6659,
411,
710,
9822,
87,
1757,
710,
1870,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
1111,
16,
977,
16,
6370,
33,
8381,
4672,
309,
365,
18,
1636,
30,
327,
2619,
67,
2150,
2668,
668,
30,
11175,
358,
1262,
6659,
411,
710,
9822,
87,
1757,
710,
1870,
... |
namespace_db = ''): | namespace_db = '', db_type = 'mysql'): | def __init__(self, name, doc = "", db_host = 'localhost', db_user = 'root', db_passwd = '', sql_db = '', namespace_db = ''): """Intialize with information for connecting to the BioSQL db. """ Source.__init__(self, name, None, None, doc, None) self.db_host = db_host self.db_user = db_user self.db_passwd = db_passwd self... | 960e7a195133e1deb5a781779fb6b8c9faaf47cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/960e7a195133e1deb5a781779fb6b8c9faaf47cf/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
997,
273,
23453,
1319,
67,
2564,
273,
296,
13014,
2187,
1319,
67,
1355,
273,
296,
3085,
2187,
1319,
67,
24002,
273,
10226,
1847,
67,
1966,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
997,
273,
23453,
1319,
67,
2564,
273,
296,
13014,
2187,
1319,
67,
1355,
273,
296,
3085,
2187,
1319,
67,
24002,
273,
10226,
1847,
67,
1966,
273,
... |
w(t) = - t + \cdots | i(t) = - t + a_1 t^2 + \cdots | def inverse(self, prec=20): r""" The formal group power series w. | 3dd6c4995539987856c14d8566324ff22f7c9b34 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3dd6c4995539987856c14d8566324ff22f7c9b34/formal_group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8322,
12,
2890,
16,
13382,
33,
3462,
4672,
436,
8395,
1021,
25739,
1041,
7212,
4166,
341,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8322,
12,
2890,
16,
13382,
33,
3462,
4672,
436,
8395,
1021,
25739,
1041,
7212,
4166,
341,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return lockfile else: return None | successfile = lockfile return successfile, lockfile | def lock(self): #print "xxx creating cache lock" path = self._path lockfile = os.path.join(path, "cache.lock") try: fd = os.open(lockfile, os.O_CREAT|os.O_EXCL|os.O_RDWR) except: return None if fd: os.close(fd) return lockfile else: return None | 10b47ba6909b19222120543654160f36fe7bc685 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/10b47ba6909b19222120543654160f36fe7bc685/Cache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2176,
12,
2890,
4672,
468,
1188,
315,
18310,
4979,
1247,
2176,
6,
589,
273,
365,
6315,
803,
2176,
768,
273,
1140,
18,
803,
18,
5701,
12,
803,
16,
315,
2493,
18,
739,
7923,
775,
30,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2176,
12,
2890,
4672,
468,
1188,
315,
18310,
4979,
1247,
2176,
6,
589,
273,
365,
6315,
803,
2176,
768,
273,
1140,
18,
803,
18,
5701,
12,
803,
16,
315,
2493,
18,
739,
7923,
775,
30,
5... |
<dd>Go to the BibIndex interface to modify</dd> | <dd>Go to the BibIndex interface to modify the available search fields</dd> | def perform_showsearchfields(colID, ln=cdslang, callback='yes', content='', confirm=-1): """show the search fields of this collection..""" colID = int(colID) col_dict = dict(get_def_name('', "collection")) fld_dict = dict(get_def_name('', "field")) fld_type = get_sort_nametypes() subtitle = """<a name="6">6. Modify s... | e02bf14cfa93e6c83692292855ee97a11d40e01d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e02bf14cfa93e6c83692292855ee97a11d40e01d/websearchadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
4500,
3072,
2821,
12,
1293,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
913,
2218,
2187,
6932,
29711,
21,
4672,
3536,
4500,
326,
1623,
1466,
434,
333,
1849,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
4500,
3072,
2821,
12,
1293,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
913,
2218,
2187,
6932,
29711,
21,
4672,
3536,
4500,
326,
1623,
1466,
434,
333,
1849,... |
self.failIfEqual(time.gmtime(xmas2002),time.localtime(xmas2002)) self.failUnless(time.tzname[0] in ('EST','AEST')) self.failUnless(time.tzname[1] in ('EST','EDT','AEDT')) self.failUnlessEqual(len(time.tzname),2) self.failUnlessEqual(time.daylight,1) self.failUnlessEqual(time.timezone,-36000) self.failUnlessEqual(time.a... | self.failIfEqual(time.gmtime(xmas2002), time.localtime(xmas2002)) self.failUnless(time.tzname[0] == 'AEST', str(time.tzname[0])) self.failUnless(time.tzname[1] == 'AEDT', str(time.tzname[1])) self.failUnlessEqual(len(time.tzname), 2) self.failUnlessEqual(time.daylight, 1) self.failUnlessEqual(time.timezone, -36000) sel... | def test_tzset(self): if not hasattr(time, "tzset"): return # Can't test this; don't want the test suite to fail | 0bb27d52a755bc77f9610e468f23f3c7f5f27863 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0bb27d52a755bc77f9610e468f23f3c7f5f27863/test_time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12994,
542,
12,
2890,
4672,
309,
486,
3859,
12,
957,
16,
315,
12994,
542,
6,
4672,
327,
468,
4480,
1404,
1842,
333,
31,
2727,
1404,
2545,
326,
1842,
11371,
358,
2321,
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,
1842,
67,
12994,
542,
12,
2890,
4672,
309,
486,
3859,
12,
957,
16,
315,
12994,
542,
6,
4672,
327,
468,
4480,
1404,
1842,
333,
31,
2727,
1404,
2545,
326,
1842,
11371,
358,
2321,
2,
-100... |
shutil.copytree(source, destination) def move_file(self, source, destination): """Moves the source file into a new destination. The destination may be a file or a directory. In the latter case, the file's original basename is kept. If the destination file exists, it is overwritten. The missing intermediate directorie... | shutil.copytree(source, dest) return source, dest | def _copy_dir(self, source, destination): if not os.path.exists(source): raise DataError("Source directory '%s' does not exist" % source) if not os.path.isdir(source): raise DataError("Source directory '%s' is not a directory" % source) if os.path.exists(destination) and not os.path.isdir(destination): raise DataError(... | 8394d54a14ff248630063a73df253438178dff53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/8394d54a14ff248630063a73df253438178dff53/OperatingSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
67,
1214,
12,
2890,
16,
1084,
16,
2929,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
3168,
4672,
1002,
1910,
668,
2932,
1830,
1867,
1995,
87,
11,
1552,
486,
1005,
6,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
67,
1214,
12,
2890,
16,
1084,
16,
2929,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
3168,
4672,
1002,
1910,
668,
2932,
1830,
1867,
1995,
87,
11,
1552,
486,
1005,
6,
738,
... |
custom.append_page(custom_stub) | def create_stub(icon_name, head_text, tail_text): head_label = gtk.Label(head_text) head_label_a = gtk.Alignment(0.5, 1, 0, 0) head_label_a.add(head_label) icon = Icon(icon_name=icon_name, icon_size=gtk.ICON_SIZE_LARGE_TOOLBAR) tail_label = gtk.Label(tail_text) tail_label_a = gtk.Alignment(0.5, 0, 0, 0) tail_label_a.ad... | e1da2477f69248320d33906c1bee515b73201170 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5598/e1da2477f69248320d33906c1bee515b73201170/library.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
12847,
12,
3950,
67,
529,
16,
910,
67,
955,
16,
5798,
67,
955,
4672,
910,
67,
1925,
273,
22718,
18,
2224,
12,
1978,
67,
955,
13,
910,
67,
1925,
67,
69,
273,
22718,
18,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12847,
12,
3950,
67,
529,
16,
910,
67,
955,
16,
5798,
67,
955,
4672,
910,
67,
1925,
273,
22718,
18,
2224,
12,
1978,
67,
955,
13,
910,
67,
1925,
67,
69,
273,
22718,
18,
115... | |
op.redo_callback_add(self._edit_grp.part.restack_below) op.undo_callback_add(self._edit_grp.part.restack_above) | op.redo_callback_add(self._restack_below, self._edit_grp.part.name) op.undo_callback_add(self._restack_above, self._edit_grp.part.name) | def _down_cb(self, obj, emission, source): r = self._edit_grp.part.restack_below() if not r: return | 3cdd7fa1ad4be14ff909532b228fdeed23e9a479 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/3cdd7fa1ad4be14ff909532b228fdeed23e9a479/parts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2378,
67,
7358,
12,
2890,
16,
1081,
16,
801,
19710,
16,
1084,
4672,
436,
273,
365,
6315,
4619,
67,
17532,
18,
2680,
18,
266,
3772,
67,
27916,
1435,
309,
486,
436,
30,
327,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2378,
67,
7358,
12,
2890,
16,
1081,
16,
801,
19710,
16,
1084,
4672,
436,
273,
365,
6315,
4619,
67,
17532,
18,
2680,
18,
266,
3772,
67,
27916,
1435,
309,
486,
436,
30,
327,
2,
-1... |
def get_target_arch(): | def file_contains_pattern(file, pattern): if not os.path.isfile(file): raise NameError, 'file %s does not exist' % file return not system('egrep -q ' + pattern + ' ' + file, ignorestatus = 1) def list_grep(list, pattern): compiled = re.compile(pattern) for line in list: match = compiled.search(line) if (match): retur... | def get_target_arch(): | f704e80581790bc77dc32a059b81e06bed39f6cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/f704e80581790bc77dc32a059b81e06bed39f6cf/autotest_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3299,
67,
991,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3299,
67,
991,
13332,
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... |
clauses = [dictionaryTable.c.Headword == headword] return clauses, filters | headwordClause = self.headwordSearchStrategy.getWhereClause( dictionaryTable.c.Headword, headwordStr) headwordMatchFunc = self.headwordSearchStrategy.getMatchFunction( headwordStr) return [headwordClause], [(['Headword'], headwordMatchFunc)] | def _getHeadwordSearch(self, headwordStr, **options): filters = [(['Headword'], lambda headword: headword == headwordStr)] | 7768f0434aecc2e353c85a4406b0b7da401f6ea2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/7768f0434aecc2e353c85a4406b0b7da401f6ea2/dictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1414,
1095,
2979,
12,
2890,
16,
910,
1095,
1585,
16,
2826,
2116,
4672,
3415,
273,
306,
12,
3292,
1414,
1095,
17337,
3195,
910,
1095,
30,
910,
1095,
422,
910,
1095,
1585,
25887,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1414,
1095,
2979,
12,
2890,
16,
910,
1095,
1585,
16,
2826,
2116,
4672,
3415,
273,
306,
12,
3292,
1414,
1095,
17337,
3195,
910,
1095,
30,
910,
1095,
422,
910,
1095,
1585,
25887,... |
ts = datetime.datetime.strptime(\ | ts = datetime.datetime(*time.strptime(\ | def read_dagman_out(self, dagman_out_fileobj): """ Parse .dag.dagman.out file and update the status of each node. """ c = self.conn.cursor() | 9333afc6919e7f3a1ca347e56e9fd126971e24f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9333afc6919e7f3a1ca347e56e9fd126971e24f5/dagmanutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
30204,
4728,
67,
659,
12,
2890,
16,
22940,
4728,
67,
659,
67,
768,
2603,
4672,
3536,
2884,
263,
30204,
18,
30204,
4728,
18,
659,
585,
471,
1089,
326,
1267,
434,
1517,
756,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
30204,
4728,
67,
659,
12,
2890,
16,
22940,
4728,
67,
659,
67,
768,
2603,
4672,
3536,
2884,
263,
30204,
18,
30204,
4728,
18,
659,
585,
471,
1089,
326,
1267,
434,
1517,
756,
18,... |
id='c4o4i7m2lbamc4k26sc2vokh5g%40group.calendar.google.com', | id='python.gcal.test%40gmail.com', | def _UpdateCalendarSubscription(self, id='c4o4i7m2lbamc4k26sc2vokh5g%40group.calendar.google.com', color=None, hidden=None, selected=None): """Updates the subscription to the calendar with the specified ID.""" print 'Updating the calendar subscription with ID: %s' % id calendar_url = ( 'http://www.google.com/calendar/f... | 980bb5187d34949a037cf44b33b0415fdeb404fb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/980bb5187d34949a037cf44b33b0415fdeb404fb/calendarExample.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1891,
7335,
6663,
12,
2890,
16,
612,
2218,
8103,
18,
75,
771,
18,
3813,
9,
7132,
75,
4408,
18,
832,
2187,
2036,
33,
7036,
16,
5949,
33,
7036,
16,
3170,
33,
7036,
4672,
3536,
512... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1891,
7335,
6663,
12,
2890,
16,
612,
2218,
8103,
18,
75,
771,
18,
3813,
9,
7132,
75,
4408,
18,
832,
2187,
2036,
33,
7036,
16,
5949,
33,
7036,
16,
3170,
33,
7036,
4672,
3536,
512... |
_("User added."), type='info') | _(u"User added."), type='info') | def action_join(self, action, data): | f921c02aaa739050bf2e48f26256894efa8593fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12186/f921c02aaa739050bf2e48f26256894efa8593fa/joinform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
5701,
12,
2890,
16,
1301,
16,
501,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
5701,
12,
2890,
16,
1301,
16,
501,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return StormCachingBuildResultStore(os.path.join(self.path, "data", "oldrevs"), self._get_store()) | path = os.path.join(self.path, "data", "oldrevs") return StormCachingBuildResultStore(path, self._get_store()) | def _open_build_results(self): return StormCachingBuildResultStore(os.path.join(self.path, "data", "oldrevs"), self._get_store()) | 9233c193c5e94ca45c2e567ebe60773e2e222df7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/9233c193c5e94ca45c2e567ebe60773e2e222df7/sqldb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
67,
3510,
67,
4717,
12,
2890,
4672,
327,
934,
535,
17712,
3116,
1253,
2257,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
803,
16,
315,
892,
3113,
315,
1673,
266,
6904,
6,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
3190,
67,
3510,
67,
4717,
12,
2890,
4672,
327,
934,
535,
17712,
3116,
1253,
2257,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
803,
16,
315,
892,
3113,
315,
1673,
266,
6904,
6,
363... |
TixWidget.__init__(self, master, 'tixResizeHandle', ['options'], cnf, kw) | TixWidget.__init__(self, master, 'tixResizeHandle', ['options'], cnf, kw) | def __init__(self, master, cnf={}, **kw): | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
23118,
28793,
2826,
9987,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
23118,
28793,
2826,
9987,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
gps,gps,\ | iStart,iStop,\ | def queryDB(self,gps=None,window=int(30)): """ Takes two arguments the gps time as an integer and the window to search around this time with default to 30 seconds. It returns a dictionary variable assesible via X["ifo"] which will be a list of [flag,version,start,stop,active] """ try: dbSocket=self.__createRawCursor__... | d50fb6641d78687333e9e8db1521f90b9d1c4243 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/d50fb6641d78687333e9e8db1521f90b9d1c4243/fu_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
2290,
12,
2890,
16,
75,
1121,
33,
7036,
16,
5668,
33,
474,
12,
5082,
3719,
30,
3536,
23004,
2795,
1775,
326,
20985,
813,
487,
392,
3571,
471,
326,
2742,
358,
1623,
6740,
333,
813,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
2290,
12,
2890,
16,
75,
1121,
33,
7036,
16,
5668,
33,
474,
12,
5082,
3719,
30,
3536,
23004,
2795,
1775,
326,
20985,
813,
487,
392,
3571,
471,
326,
2742,
358,
1623,
6740,
333,
813,... |
self.body = body | try: self.body = unicode(body) except: self.body = "" | def setBody(self, body): """ Set body content @param body: content """ self.body = body #fixCodification(body) | 82ca4787102bc9acfa7c86a648f631872f15821c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5712/82ca4787102bc9acfa7c86a648f631872f15821c/message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16492,
12,
2890,
16,
1417,
4672,
3536,
1000,
1417,
913,
225,
632,
891,
1417,
30,
913,
3536,
225,
775,
30,
365,
18,
3432,
273,
5252,
12,
3432,
13,
1335,
30,
365,
18,
3432,
273,
1408,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16492,
12,
2890,
16,
1417,
4672,
3536,
1000,
1417,
913,
225,
632,
891,
1417,
30,
913,
3536,
225,
775,
30,
365,
18,
3432,
273,
5252,
12,
3432,
13,
1335,
30,
365,
18,
3432,
273,
1408,
... |
glPopMatrix() | def draw_skeleton(robot): # draw_skeleton a sphere at each mobile joint if robot.jointType in ["free","rotate"]: pos=robot.globalTransformation[0:3,3] glPushMatrix() glTranslatef(pos[0], pos[1], pos[2]) sphere = gluNewQuadric() gluSphere(sphere,0.01,10,10) glPopMatrix() if robot.jointType=="rotate": parent=robot.paren... | 6c8980597f3e7251a86df3e8d30abea97fa396d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14506/6c8980597f3e7251a86df3e8d30abea97fa396d8/quickview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
7771,
12143,
12,
28870,
4672,
468,
3724,
67,
7771,
12143,
279,
20041,
622,
1517,
13411,
15916,
309,
14386,
18,
16452,
559,
316,
8247,
9156,
15937,
20342,
11929,
30,
949,
33,
2887... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
7771,
12143,
12,
28870,
4672,
468,
3724,
67,
7771,
12143,
279,
20041,
622,
1517,
13411,
15916,
309,
14386,
18,
16452,
559,
316,
8247,
9156,
15937,
20342,
11929,
30,
949,
33,
2887... | |
'executable':os.path.basename(executableFile), | 'executable':os.path.basename( executableFile ), | def __writeJDL(self,executableFile): """ Create the JDL for submission """ | 45afa08b7552c5b79d1cfd9cac53e65115f5e15a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/45afa08b7552c5b79d1cfd9cac53e65115f5e15a/CREAMComputingElement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2626,
46,
8914,
12,
2890,
16,
17751,
812,
4672,
3536,
1788,
326,
804,
8914,
364,
8515,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2626,
46,
8914,
12,
2890,
16,
17751,
812,
4672,
3536,
1788,
326,
804,
8914,
364,
8515,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.requirements['~providelenght'] = PreambleCmds.providelenght | self.requirements['~providelength'] = PreambleCmds.providelength | def visit_docinfo(self, node): # tabularx: automatic width of columns, no page breaks allowed. self.requirements['tabularx'] = r'\usepackage{tabularx}' self.requirements['~providelenght'] = PreambleCmds.providelenght self.fallbacks['docinfo'] = PreambleCmds.docinfo self.docinfo = ['%' + '_'*75 + '\n', '\\begin{center}\... | 1b8dac55202344263da9188c7d59f13cb6f789ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/1b8dac55202344263da9188c7d59f13cb6f789ae/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2434,
1376,
12,
2890,
16,
756,
4672,
468,
28342,
92,
30,
5859,
1835,
434,
2168,
16,
1158,
1363,
16217,
2935,
18,
365,
18,
16175,
3292,
7032,
2490,
92,
3546,
273,
436,
8314,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2434,
1376,
12,
2890,
16,
756,
4672,
468,
28342,
92,
30,
5859,
1835,
434,
2168,
16,
1158,
1363,
16217,
2935,
18,
365,
18,
16175,
3292,
7032,
2490,
92,
3546,
273,
436,
8314,
1... |
if isinstance(val_doc, str): | if isinstance(val_doc.repr, str): | def _get_valuedoc(self, value): """ If a C{ValueDoc} for the given value exists in the valuedoc cache, then return it; otherwise, create a new C{ValueDoc}, add it to the cache, and return it. When possible, the new C{ValueDoc}'s C{pyval}, C{repr}, and C{canonical_name} attributes will be set appropriately. """ pyid = ... | 392f245daee952b9c584626bb963363f399cfc17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/392f245daee952b9c584626bb963363f399cfc17/docinspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4531,
329,
504,
12,
2890,
16,
460,
4672,
3536,
971,
279,
385,
95,
620,
1759,
97,
364,
326,
864,
460,
1704,
316,
326,
31037,
504,
1247,
16,
1508,
327,
518,
31,
3541,
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,
389,
588,
67,
4531,
329,
504,
12,
2890,
16,
460,
4672,
3536,
971,
279,
385,
95,
620,
1759,
97,
364,
326,
864,
460,
1704,
316,
326,
31037,
504,
1247,
16,
1508,
327,
518,
31,
3541,
16,... |
self.cachefile = self.escape_url(self.url) + '.data' | self.cachefile = self.escape_url(self.url + '@' + version) + '.data' | def __init__(self, basepath, url, version, arches, components, groups, rawurl): Source.__init__(self, basepath, url, version, arches, components, groups, rawurl) self.cachefile = self.escape_url(self.url) + '.data' self.pkgnames = set() | 4b84fa15c231c5ad72d261fdb27c470a386de4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/4b84fa15c231c5ad72d261fdb27c470a386de4b3/Packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23853,
16,
880,
16,
1177,
16,
6637,
281,
16,
4085,
16,
3252,
16,
13954,
4672,
4998,
16186,
2738,
972,
12,
2890,
16,
23853,
16,
880,
16,
1177,
16,
6637,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23853,
16,
880,
16,
1177,
16,
6637,
281,
16,
4085,
16,
3252,
16,
13954,
4672,
4998,
16186,
2738,
972,
12,
2890,
16,
23853,
16,
880,
16,
1177,
16,
6637,
... |
return '%s@%s elif current_rev == newest_rev: if find_tags: if current_rev in tag_revs: tag = tag_revs.get(current_rev, current_rev) logger.notify('Revision %s seems to be equivalent to tag %s' % (current_rev, tag)) return '%s@%s return '%s@%s | full_egg_name = '%s-%s' % (egg_project_name, tag_revs[current_rev]) | def get_src_requirement(self, dist, location, find_tags): repo = self.get_url(location) if not repo.lower().startswith('bzr:'): repo = 'bzr+' + repo egg_project_name = dist.egg_name().split('-', 1)[0] if not repo: return None current_rev = self.get_revision(location) tag_revs = self.get_tag_revs(location) newest_rev = ... | 3fce15540ce2ceb5bd4eb61b89955505cfac2fee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/3fce15540ce2ceb5bd4eb61b89955505cfac2fee/pip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4816,
67,
30848,
12,
2890,
16,
2411,
16,
2117,
16,
1104,
67,
4156,
4672,
3538,
273,
365,
18,
588,
67,
718,
12,
3562,
13,
309,
486,
3538,
18,
8167,
7675,
17514,
1918,
2668,
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,
336,
67,
4816,
67,
30848,
12,
2890,
16,
2411,
16,
2117,
16,
1104,
67,
4156,
4672,
3538,
273,
365,
18,
588,
67,
718,
12,
3562,
13,
309,
486,
3538,
18,
8167,
7675,
17514,
1918,
2668,
2... |
function specfically returns data needed for the second part | function specifically returns data needed for the second part | def _coset_reduction_data_second_coord(G): """ Compute data used for determining the canonical coset representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the second part of the reduction step (the second coordinate). | a7a2f133ec49a8bfd06f95e0c8415deef8a6a034 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/a7a2f133ec49a8bfd06f95e0c8415deef8a6a034/congroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14445,
278,
67,
1118,
4062,
67,
892,
67,
8538,
67,
5732,
12,
43,
4672,
3536,
8155,
501,
1399,
364,
23789,
326,
7378,
4987,
278,
23174,
434,
392,
930,
434,
348,
48,
67,
22,
12,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14445,
278,
67,
1118,
4062,
67,
892,
67,
8538,
67,
5732,
12,
43,
4672,
3536,
8155,
501,
1399,
364,
23789,
326,
7378,
4987,
278,
23174,
434,
392,
930,
434,
348,
48,
67,
22,
12,
6... |
elif len(sys.argv) != 2: | elif len(sys.argv) == 2: param = PARAM pos = (0,0,0); else: | def processHistos(image, pos, p): out = [[] for t in range(0, image.get_header()['dim'][4])] #generate the histogram for measurements for t in range(0, image.get_header()['dim'][4]): upper = image.get_data()[pos[0],pos[1],pos[2],t,p, -2] lower = image.get_data()[pos[0],pos[1],pos[2],t,p, -3] count = image.get_header()[... | f60d63a4afd00ce55bdba6e863061dff3401f117 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5491/f60d63a4afd00ce55bdba6e863061dff3401f117/makehist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
8648,
538,
12,
2730,
16,
949,
16,
293,
4672,
596,
273,
306,
8526,
364,
268,
316,
1048,
12,
20,
16,
1316,
18,
588,
67,
3374,
1435,
3292,
3509,
3546,
63,
24,
5717,
65,
468,
7163,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
8648,
538,
12,
2730,
16,
949,
16,
293,
4672,
596,
273,
306,
8526,
364,
268,
316,
1048,
12,
20,
16,
1316,
18,
588,
67,
3374,
1435,
3292,
3509,
3546,
63,
24,
5717,
65,
468,
7163,... |
self.rangeIncrement = timedelta(days=1) | self.rangeIncrement = one_day | def __init__(self, *arguments, **keywords): super(PreviewArea, self).__init__(*arguments, **keywords) self.rangeIncrement = timedelta(days=1) | b31c7f21f040e03a857a64320483f9e46b579f01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b31c7f21f040e03a857a64320483f9e46b579f01/CalendarBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
7099,
16,
2826,
11771,
4672,
2240,
12,
11124,
5484,
16,
365,
2934,
972,
2738,
972,
30857,
7099,
16,
2826,
11771,
13,
365,
18,
3676,
10798,
273,
10661,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
7099,
16,
2826,
11771,
4672,
2240,
12,
11124,
5484,
16,
365,
2934,
972,
2738,
972,
30857,
7099,
16,
2826,
11771,
13,
365,
18,
3676,
10798,
273,
10661,... |
@param method: None is the default and does not create a form while "GET" or "POST" will create the form using the given method | @param method: None is the default and does not create a form while "GET" or "POST" will create the form using the given method | def _format(self, formatter=None, method=None): """ does the formatting of the table @param formatter: formatter @param method: None is the default and does not create a form while "GET" or "POST" will create the form using the given method """ fmt = formatter or self.request.formatter | 34fff45b2c30342de6ee494f07759b9573440575 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/34fff45b2c30342de6ee494f07759b9573440575/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
12,
2890,
16,
4453,
33,
7036,
16,
707,
33,
7036,
4672,
3536,
1552,
326,
10407,
434,
326,
1014,
632,
891,
4453,
30,
4453,
632,
891,
707,
30,
599,
353,
326,
805,
471,
1552,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2139,
12,
2890,
16,
4453,
33,
7036,
16,
707,
33,
7036,
4672,
3536,
1552,
326,
10407,
434,
326,
1014,
632,
891,
4453,
30,
4453,
632,
891,
707,
30,
599,
353,
326,
805,
471,
1552,
... |
default=None, help="do not rotate the logfile") | help="do not rotate the logfile") | def __init__(self, fname=None): self.options = { 'email_from':False, 'xmlrpc_interface': '', # this will bind the server to all interfaces 'xmlrpc_port': 8069, 'netrpc_interface': '', 'netrpc_port': 8070, 'xmlrpcs_interface': '', # this will bind the server to all interfaces 'xmlrpcs_port': 8071, 'db_host': False... | 417f87440ec5b4bc42abe1f51f61b2309e111672 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/417f87440ec5b4bc42abe1f51f61b2309e111672/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5299,
33,
7036,
4672,
365,
18,
2116,
273,
288,
296,
3652,
67,
2080,
4278,
8381,
16,
296,
2902,
7452,
67,
5831,
4278,
10226,
565,
468,
333,
903,
1993,
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,
1001,
2738,
972,
12,
2890,
16,
5299,
33,
7036,
4672,
365,
18,
2116,
273,
288,
296,
3652,
67,
2080,
4278,
8381,
16,
296,
2902,
7452,
67,
5831,
4278,
10226,
565,
468,
333,
903,
1993,
326... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.