rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
class NoSuchDefaultParentError(SchemaError): 'While creating %s, defaultParent %s, specified on kind %s, was not found' def __str__(self): kind = self.args[1] return self.__doc__ %(self.str(self.getItem()), kind._values['defaultParent'], kind.itsPath) | def __str__(self): return self.args[0] % self.args[1:] | e49e664adb87b75b2a1b6eb7e61451a38c89af40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e49e664adb87b75b2a1b6eb7e61451a38c89af40/ItemError.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
365,
18,
1968,
63,
20,
65,
738,
365,
18,
1968,
63,
21,
26894,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
365,
18,
1968,
63,
20,
65,
738,
365,
18,
1968,
63,
21,
26894,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
dialog = builder.get_object("config_not_complete_confirmation_dialog") | dialog = self.builder.get_object("config_not_complete_confirmation_dialog") | def delete_event(self, widget, event, data=None): if self.config.changed(): self.config.write() if not self.config.backup_enabled: self.__stop_applet() self.__stop_restore_backend() self.__remove_crontab_entry() return False | 1de0740b9143908c992922a8e39a2259609b01c8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/736/1de0740b9143908c992922a8e39a2259609b01c8/cozy_setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
2575,
12,
2890,
16,
3604,
16,
871,
16,
501,
33,
7036,
4672,
309,
365,
18,
1425,
18,
6703,
13332,
365,
18,
1425,
18,
2626,
1435,
309,
486,
365,
18,
1425,
18,
9572,
67,
5745,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2575,
12,
2890,
16,
3604,
16,
871,
16,
501,
33,
7036,
4672,
309,
365,
18,
1425,
18,
6703,
13332,
365,
18,
1425,
18,
2626,
1435,
309,
486,
365,
18,
1425,
18,
9572,
67,
5745,... |
raise Exception('Command "%s" failed.\n' % (' '.join(cmd)) + | raise Exception('Command "%s" failed.\n' % cmd_str + | def RunCommand(cmd, print_cmd=True, error_ok=False, error_message=None, exit_code=False, redirect_stdout=False, redirect_stderr=False, cwd=None, input=None, enter_chroot=False): """Runs a shell command. Keyword arguments: cmd - cmd to run. Should be input to subprocess.POpen. If a string, converted to an array using... | 2e79fe48ce361b93d726cab4d55fbef17aa1d9c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/2e79fe48ce361b93d726cab4d55fbef17aa1d9c9/cros_build_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
2189,
12,
4172,
16,
1172,
67,
4172,
33,
5510,
16,
555,
67,
601,
33,
8381,
16,
555,
67,
2150,
33,
7036,
16,
2427,
67,
710,
33,
8381,
16,
3136,
67,
10283,
33,
8381,
16,
3136,
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,
1939,
2189,
12,
4172,
16,
1172,
67,
4172,
33,
5510,
16,
555,
67,
601,
33,
8381,
16,
555,
67,
2150,
33,
7036,
16,
2427,
67,
710,
33,
8381,
16,
3136,
67,
10283,
33,
8381,
16,
3136,
6... |
('build-temp', 't', | ('build-temp=', 't', | def show_compilers(): from distutils.ccompiler import show_compilers show_compilers() | 4426c2928982990cc79e27a64bc2167257c29159 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/4426c2928982990cc79e27a64bc2167257c29159/build_clib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
2919,
330,
414,
13332,
628,
2411,
5471,
18,
71,
9576,
1930,
2405,
67,
2919,
330,
414,
2405,
67,
2919,
330,
414,
1435,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
2919,
330,
414,
13332,
628,
2411,
5471,
18,
71,
9576,
1930,
2405,
67,
2919,
330,
414,
2405,
67,
2919,
330,
414,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
database = sql_db.db_connect('template1', serialize=1) | database = sql_db.db_connect('template1') | def restore(self, password, db_name, data): security.check_super(password) logger = Logger() | 376fa055886a505d4953e448c3880fda2ba38bf5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/376fa055886a505d4953e448c3880fda2ba38bf5/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
12,
2890,
16,
2201,
16,
1319,
67,
529,
16,
501,
4672,
4373,
18,
1893,
67,
9565,
12,
3664,
13,
1194,
273,
4242,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
12,
2890,
16,
2201,
16,
1319,
67,
529,
16,
501,
4672,
4373,
18,
1893,
67,
9565,
12,
3664,
13,
1194,
273,
4242,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
char = self.string[0] | char = self.string[self.index] | def __next(self): | 842e911e887411eb043a164240fdb6b694895e87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/842e911e887411eb043a164240fdb6b694895e87/sre_parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4285,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4285,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
An optional callable, defaults to :func:`~sqlalchemy.orm.mapper`. Will be used to map subclasses to their Tables. | An optional callable, defaults to :func:`~sqlalchemy.orm.mapper`. Will be used to map subclasses to their Tables. | def declarative_base(bind=None, metadata=None, mapper=None, cls=object, name='Base', constructor=_declarative_constructor, metaclass=DeclarativeMeta): """Construct a base class for declarative class definitions. The new base class will be given a metaclass that produces appropriate :class:`~sqlalchemy.schema.Table` ob... | 47663a62287b4563a15dc08b4942a49616f9f1df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/47663a62287b4563a15dc08b4942a49616f9f1df/declarative.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3496,
297,
1535,
67,
1969,
12,
4376,
33,
7036,
16,
1982,
33,
7036,
16,
5815,
33,
7036,
16,
2028,
33,
1612,
16,
508,
2218,
2171,
2187,
3885,
33,
67,
8840,
297,
1535,
67,
12316,
16,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3496,
297,
1535,
67,
1969,
12,
4376,
33,
7036,
16,
1982,
33,
7036,
16,
5815,
33,
7036,
16,
2028,
33,
1612,
16,
508,
2218,
2171,
2187,
3885,
33,
67,
8840,
297,
1535,
67,
12316,
16,
21... |
('certificat_uniq', 'unique (certificat)', 'The certificat ID of the module must be unique !') | ('certificate_uniq', 'unique (certificate)', 'The certificate ID of the module must be unique !') | def _get_views(self, cr, uid, ids, field_name=None, arg=None, context={}): res = {} model_data_obj = self.pool.get('ir.model.data') view_obj = self.pool.get('ir.ui.view') report_obj = self.pool.get('ir.actions.report.xml') menu_obj = self.pool.get('ir.ui.menu') mlist = self.browse(cr, uid, ids, context=context) mnames ... | 5418bf7003f9733309f8b82e9ed86e9af25aa71a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/5418bf7003f9733309f8b82e9ed86e9af25aa71a/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7061,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
33,
7036,
16,
1501,
33,
7036,
16,
819,
12938,
4672,
400,
273,
2618,
938,
67,
892,
67,
2603,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7061,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
33,
7036,
16,
1501,
33,
7036,
16,
819,
12938,
4672,
400,
273,
2618,
938,
67,
892,
67,
2603,
273,
365,
... |
req = """ SELECT bom_customization_key_id | req = """ SELECT mrp_bom_customization_key_id | def list_customizations(self, cr, uid, ids, name, args, context): result = {} for id in ids: result[id] = "" #TODO CHECKME: stock.move should only be linked to one and only one mrp.production hopefully req = """ SELECT sale_order_line_id FROM mrp_production prod INNER JOIN mrp_production_move_ids rel ON rel.productio... | de35ef5e4544cd801efbd8c35e70d07b6b3b0130 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/de35ef5e4544cd801efbd8c35e70d07b6b3b0130/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
3662,
7089,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
563,
273,
2618,
364,
612,
316,
3258,
30,
225,
563,
63,
350,
65,
273,
1408,
225,
468,
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,
666,
67,
3662,
7089,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
563,
273,
2618,
364,
612,
316,
3258,
30,
225,
563,
63,
350,
65,
273,
1408,
225,
468,
6... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 129) else quickfix.StringField.__init__(self, 129, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2593,
29,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2593,
29,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
97... |
for result in self._leakDetector.getContainerByIdGen(id): | for result in self._leakDetector.getContainerByIdGen(objId): | def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this contain... | d9560fa19bec29d4ea08e0b58cd1b7384659f9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d9560fa19bec29d4ea08e0b58cd1b7384659f9ff/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
365,
6315,
298,
581,
12594,
6315,
1615,
22,
3782,
548,
22,
1897,
63,
2890,
6315,
1615,
65,
273,
2618,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
217... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
365,
6315,
298,
581,
12594,
6315,
1615,
22,
3782,
548,
22,
1897,
63,
2890,
6315,
1615,
65,
273,
2618,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
217... |
"cmd_%(name)s_%(count)d = %(cd_action)s%(mkdirs)s%(action)s" % { | "cmd_%(name)s_%(count)d = export LD_LIBRARY_PATH=" "$(builddir)/lib.host:$(builddir)/lib.target:$$LD_LIBRARY_PATH; " "%(cd_action)s%(mkdirs)s%(action)s" % { | def WriteRules(self, rules, extra_sources, extra_outputs, part_of_all): """Write Makefile code for any 'rules' from the gyp input. | f08e786bfd94e22e960e589e653476039adc697a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6220/f08e786bfd94e22e960e589e653476039adc697a/make.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
4478,
12,
2890,
16,
2931,
16,
2870,
67,
10141,
16,
2870,
67,
12295,
16,
1087,
67,
792,
67,
454,
4672,
3536,
3067,
4344,
768,
981,
364,
1281,
296,
7482,
11,
628,
326,
314,
879,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2598,
4478,
12,
2890,
16,
2931,
16,
2870,
67,
10141,
16,
2870,
67,
12295,
16,
1087,
67,
792,
67,
454,
4672,
3536,
3067,
4344,
768,
981,
364,
1281,
296,
7482,
11,
628,
326,
314,
879,
... |
obj.fields.append(self._parse_function(callback, Callback)) | obj.fields.append(self._parse_function_common(callback, Callback)) | def _parse_object_interface(self, node): ctor_args = [node.attrib['name'], node.attrib.get('parent'), node.attrib[_glibns('type-name')], node.attrib[_glibns('get-type')]] if node.tag == _corens('interface'): klass = GLibInterface elif node.tag == _corens('class'): klass = GLibObject is_abstract = node.attrib.get('abstr... | 34db824e4656506e5dfa8df3d0446950b5a48e65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2770/34db824e4656506e5dfa8df3d0446950b5a48e65/girparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
1612,
67,
5831,
12,
2890,
16,
756,
4672,
15120,
67,
1968,
273,
306,
2159,
18,
14588,
3292,
529,
17337,
756,
18,
14588,
18,
588,
2668,
2938,
19899,
756,
18,
14588,
63,
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,
2670,
67,
1612,
67,
5831,
12,
2890,
16,
756,
4672,
15120,
67,
1968,
273,
306,
2159,
18,
14588,
3292,
529,
17337,
756,
18,
14588,
18,
588,
2668,
2938,
19899,
756,
18,
14588,
63,
67... |
""" Apply given remote revision to workingdir """ | def _getUpstreamChangesets(self, sincerev): parent = Branch.open(self.repository.repository) | 2e0638a7d819f1cb47aa1a0f1d936fddc13d8505 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/2e0638a7d819f1cb47aa1a0f1d936fddc13d8505/bzrng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1211,
3256,
7173,
2413,
12,
2890,
16,
5367,
71,
822,
90,
4672,
982,
273,
15449,
18,
3190,
12,
2890,
18,
9071,
18,
9071,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1211,
3256,
7173,
2413,
12,
2890,
16,
5367,
71,
822,
90,
4672,
982,
273,
15449,
18,
3190,
12,
2890,
18,
9071,
18,
9071,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
"""Connects a L{ConnectedDatagramProtocol} instance to a UDP port. | """Connects a L{twisted.internet.protocol.ConnectedDatagramProtocol} instance to a UDP port. | def connectUDP(self, remotehost, remoteport, protocol, localport=0, interface='', maxPacketSize=8192): """Connects a L{ConnectedDatagramProtocol} instance to a UDP port. """ | 61b27ac6b2779aeb25ead8677978334e2f000f50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/61b27ac6b2779aeb25ead8677978334e2f000f50/interfaces.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
20352,
12,
2890,
16,
2632,
2564,
16,
2632,
655,
16,
1771,
16,
1191,
655,
33,
20,
16,
1560,
2218,
2187,
943,
6667,
1225,
33,
28,
15561,
4672,
3536,
21500,
279,
511,
95,
11246,
254... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
20352,
12,
2890,
16,
2632,
2564,
16,
2632,
655,
16,
1771,
16,
1191,
655,
33,
20,
16,
1560,
2218,
2187,
943,
6667,
1225,
33,
28,
15561,
4672,
3536,
21500,
279,
511,
95,
11246,
254... |
return self.get_type().apply_async(args, kwargs, options) | return self.get_type().apply_async(args, kwargs, **options) | def apply_async(self, args, kwargs, **options): """Apply this task asynchronously.""" # For callbacks: extra args are prepended to the stored args. args = tuple(args) + tuple(self.args) kwargs = dict(self.kwargs, **kwargs) options = dict(self.options, **options) return self.get_type().apply_async(args, kwargs, options) | 915e2f5a10680d91fd1340c0811d69fd3ff2212e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/915e2f5a10680d91fd1340c0811d69fd3ff2212e/sets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
3810,
12,
2890,
16,
833,
16,
1205,
16,
2826,
2116,
4672,
3536,
7001,
333,
1562,
14952,
12123,
468,
2457,
6689,
30,
2870,
833,
854,
26989,
358,
326,
4041,
833,
18,
833,
273,
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,
2230,
67,
3810,
12,
2890,
16,
833,
16,
1205,
16,
2826,
2116,
4672,
3536,
7001,
333,
1562,
14952,
12123,
468,
2457,
6689,
30,
2870,
833,
854,
26989,
358,
326,
4041,
833,
18,
833,
273,
3... |
s = idaapi.get_struc(id) | s = idaapi.get_struc(sid) | def DelStruc(id): """ Delete a structure type @param id: structure type ID @return: 0 if bad structure type ID is passed 1 otherwise the structure type is deleted. All data and other structure types referencing to the deleted structure type will be displayed as array of bytes. """ s = idaapi.get_struc(id) if not s: r... | 4f22943d42ee1d5013421d280b3bd776bee83fb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3410/4f22943d42ee1d5013421d280b3bd776bee83fb9/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6603,
1585,
5286,
12,
350,
4672,
3536,
2504,
279,
3695,
618,
225,
632,
891,
612,
30,
3695,
618,
1599,
225,
632,
2463,
30,
374,
309,
5570,
3695,
618,
1599,
353,
2275,
404,
3541,
326,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6603,
1585,
5286,
12,
350,
4672,
3536,
2504,
279,
3695,
618,
225,
632,
891,
612,
30,
3695,
618,
1599,
225,
632,
2463,
30,
374,
309,
5570,
3695,
618,
1599,
353,
2275,
404,
3541,
326,
36... |
return self.http_error(status, message, mimetype, template) | return self.http_error(401, message, mimetype, template) | def do401(self, message=None, mimetype=None, template=None): return self.http_error(status, message, mimetype, template) | c7d3e2ad36b4db31f729c0f18ec882f2531e7321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/c7d3e2ad36b4db31f729c0f18ec882f2531e7321/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
27002,
12,
2890,
16,
883,
33,
7036,
16,
12595,
33,
7036,
16,
1542,
33,
7036,
4672,
327,
365,
18,
2505,
67,
1636,
12,
2327,
16,
883,
16,
12595,
16,
1542,
13,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
27002,
12,
2890,
16,
883,
33,
7036,
16,
12595,
33,
7036,
16,
1542,
33,
7036,
4672,
327,
365,
18,
2505,
67,
1636,
12,
2327,
16,
883,
16,
12595,
16,
1542,
13,
2,
-100,
-100,
-100,... |
return self.mxDate.day_of_year | return self.__getDateInfo('R') @property | def day_of_year(self): "Returns the day of year." return self.mxDate.day_of_year | dc37f604c4264c805e9fab4cc4c3e536cca49463 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/dc37f604c4264c805e9fab4cc4c3e536cca49463/tdates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2548,
67,
792,
67,
6874,
12,
2890,
4672,
315,
1356,
326,
2548,
434,
3286,
1199,
327,
365,
18,
11023,
1626,
18,
2881,
67,
792,
67,
6874,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2548,
67,
792,
67,
6874,
12,
2890,
4672,
315,
1356,
326,
2548,
434,
3286,
1199,
327,
365,
18,
11023,
1626,
18,
2881,
67,
792,
67,
6874,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
settings = QSettings() | settings = QSettings() | def convertstate(state): if state == 0: return Qt.Unchecked else: return Qt.Checked | b9327622dd95b5274e69106da8742583ce3f1017 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3907/b9327622dd95b5274e69106da8742583ce3f1017/puddlesettings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
2019,
12,
2019,
4672,
309,
919,
422,
374,
30,
327,
7354,
18,
984,
4532,
469,
30,
327,
7354,
18,
11454,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
2019,
12,
2019,
4672,
309,
919,
422,
374,
30,
327,
7354,
18,
984,
4532,
469,
30,
327,
7354,
18,
11454,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
scind.mean(j.astype(float), labels_per_point.astype(int), indexes)) | scind.mean(j.astype(float), labels_per_point, indexes)) | def convex_hull_ijv(pixel_labels, indexes): '''Return the convex hull for each label using an ijv labeling pixel_labels: the labeling of the pixels in i,j,v form where i & j are the coordinates of a pixel and v is the pixel's label number indexes: the indexes at which to measure the convex hull Returns a matrix and a... | 31bc056c689075950705139026e754657d3b8eee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2600/31bc056c689075950705139026e754657d3b8eee/cpmorphology.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26213,
67,
76,
420,
67,
8302,
90,
12,
11743,
67,
5336,
16,
5596,
4672,
9163,
990,
326,
26213,
22474,
364,
1517,
1433,
1450,
392,
19313,
90,
1433,
310,
225,
4957,
67,
5336,
30,
326,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26213,
67,
76,
420,
67,
8302,
90,
12,
11743,
67,
5336,
16,
5596,
4672,
9163,
990,
326,
26213,
22474,
364,
1517,
1433,
1450,
392,
19313,
90,
1433,
310,
225,
4957,
67,
5336,
30,
326,
143... |
'text': wikiutil.escape(segments[-1]), } | 'text': wikiutil.escape(page.page_name.split('/')[-1]),} | def title(self, d): """ Assemble the title @param d: parameter dictionary @rtype: string @return: title html """ _ = self.request.getText | 3e2336c5f913adac17a8017f9310979f46d25652 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/3e2336c5f913adac17a8017f9310979f46d25652/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2077,
12,
2890,
16,
302,
4672,
3536,
2970,
10045,
326,
2077,
225,
632,
891,
302,
30,
1569,
3880,
632,
86,
723,
30,
533,
632,
2463,
30,
2077,
1729,
3536,
389,
273,
365,
18,
2293,
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,
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,
2077,
12,
2890,
16,
302,
4672,
3536,
2970,
10045,
326,
2077,
225,
632,
891,
302,
30,
1569,
3880,
632,
86,
723,
30,
533,
632,
2463,
30,
2077,
1729,
3536,
389,
273,
365,
18,
2293,
18,
... |
opts, args = getopt.getopt(sys.argv[1:], 'm:qv') | opts, args = getopt.getopt(sys.argv[1:], 't:m:qva') | def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'm:qv') except getopt.error, msg: sys.stdout = sys.stderr print msg print __doc__%vars(webchecker) sys.exit(2) for o, a in opts: if o == '-m': webchecker.maxpage = string.atoi(a) if o == '-q': webchecker.verbose = 0 if o == '-v': webchecker.verbose = webchecker.... | f58d8dfa0f8cbb6fa682c04f5685b4d6a2011915 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f58d8dfa0f8cbb6fa682c04f5685b4d6a2011915/wcgui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
88,
30,
81,
30,
85,
15304,
6134,
1335,
336,
3838,
18,
1636,
16,
1234,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
88,
30,
81,
30,
85,
15304,
6134,
1335,
336,
3838,
18,
1636,
16,
1234,
... |
return KeysView(self) | return list(self) | def keys(self): return KeysView(self) | e4662bfc927a4538da3cb49db68aa88a3d1a4a4e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/e4662bfc927a4538da3cb49db68aa88a3d1a4a4e/_abcoll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1311,
12,
2890,
4672,
327,
11432,
1767,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1311,
12,
2890,
4672,
327,
11432,
1767,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
errors['endDate'] = "End date is not valid" | errors['endDate'] = _(u'error_invalid_end_date', default=u'End date is not valid.') | def post_validate(self, REQUEST=None, errors=None): """Validates start and end date | 334d175fa990e06f03ba34d9884d450fd996bb35 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11956/334d175fa990e06f03ba34d9884d450fd996bb35/event.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
5662,
12,
2890,
16,
12492,
33,
7036,
16,
1334,
33,
7036,
4672,
3536,
9594,
787,
471,
679,
1509,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
5662,
12,
2890,
16,
12492,
33,
7036,
16,
1334,
33,
7036,
4672,
3536,
9594,
787,
471,
679,
1509,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
for l in locale.getAvailableLocales(): if str(l) == str(locale): return True | lName = locale.getName() if lName in locale.getAvailableLocales(): return True if lName in ('zh_CN', 'zh_TW'): return True | def isValidPyICULocale(locale): """ Returns True if the locale string passed is in the list of available PyICU locales otherwise false. @param locale: a c{str} locale @type locale: ASCII c{str} @return: c{boolean} True if a valid PyICU locale otherwise False """ for l in locale.getAvailableLocales(): if str(l) == st... | c9efc6d061529bd9cd11f7029c50fd2b6b69b7d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9228/c9efc6d061529bd9cd11f7029c50fd2b6b69b7d9/i18nmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4908,
9413,
2871,
57,
3916,
12,
6339,
4672,
3536,
2860,
1053,
309,
326,
2573,
533,
2275,
353,
316,
326,
666,
434,
2319,
4707,
2871,
57,
6922,
3541,
629,
18,
225,
632,
891,
2573,
30,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4908,
9413,
2871,
57,
3916,
12,
6339,
4672,
3536,
2860,
1053,
309,
326,
2573,
533,
2275,
353,
316,
326,
666,
434,
2319,
4707,
2871,
57,
6922,
3541,
629,
18,
225,
632,
891,
2573,
30,
27... |
tracAttachment = Attachment(a['filename'], a['thedata']) trac.addAttachment(bugid, tracAttachment, a['description'], author) ticket['keywords'] = string.join(keywords) ticketid = trac.addTicket(**ticket) print "Success!" | print "\n8. Importing users and passwords..." if BZ_VERSION >= 2180: mysql_cur.execute("SELECT login_name, cryptpassword FROM profiles") users = mysql_cur.fetchall() htpasswd = file("htpasswd", 'w') for user in users: if LOGIN_MAP.has_key(user['login_name']): login = LOGIN_MAP[user['login_name']] else: login = user['lo... | def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla if BZ_VERSION == '2.11': print 'Using Buzvilla v%s schema.' % BZ_VERSION activityFields['removed'] = 'oldvalue' activityFields['added'] = 'newvalue' # init Bugzilla environment print "B... | 63f7bce156a2ed5a10227f95c07a9ae105efaf62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/63f7bce156a2ed5a10227f95c07a9ae105efaf62/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
24899,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
16,
389,
3074,
16,
389,
5734,
4672,
5728,
2314,
273,
2286,
12233,
1435,
225,
468,
2236,
364,
12156,
5244,
434,
7934,
15990... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
24899,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
16,
389,
3074,
16,
389,
5734,
4672,
5728,
2314,
273,
2286,
12233,
1435,
225,
468,
2236,
364,
12156,
5244,
434,
7934,
15990... |
(typ, [data]) = <instance>.search(charset, criterium, ...) | (typ, [data]) = <instance>.search(charset, criterion, ...) | def search(self, charset, *criteria): """Search mailbox for matching messages. | aea29399c856adb9ba6351e32689befdff8e1ff7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/aea29399c856adb9ba6351e32689befdff8e1ff7/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4856,
16,
380,
9714,
4672,
3536,
2979,
14187,
364,
3607,
2743,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4856,
16,
380,
9714,
4672,
3536,
2979,
14187,
364,
3607,
2743,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
r""" Thue-Morse sequence. Let $A_k$ denote the first $2^k$ terms; then $A_0 = 0$, and for $k \ge 0$, $A_{k+1} = A_k B_k$, where $B_k$ is obtained from $A_k$ by interchanging 0's and 1's. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A010060;a | def __init__(self): r""" | def _eval(self, n): return self.f(n) | d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
365,
18,
74,
12,
82,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
389,
8622,
12,
2890,
16,
290,
4672,
327,
365,
18,
74,
12,
82,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
links = [ a.href for a in resp.html.findAll('a') ] | links = [ a['href'] for a in resp.html.findAll('a') ] | def test_tree(self): ci = self._get_ci() resp = self.app.get(ci + 'tree/') assert len(resp.html.findAll('tr')) == 2, resp.showbrowser() resp = self.app.get(ci + 'tree/') assert 'README' in resp, resp.showbrowser() links = [ a.href for a in resp.html.findAll('a') ] assert 'README' in links, resp.showbrowser() assert 'RE... | d11b24fe82f3cddbd79d9199e42f7064717b024a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/d11b24fe82f3cddbd79d9199e42f7064717b024a/test_controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3413,
12,
2890,
4672,
9039,
273,
365,
6315,
588,
67,
8450,
1435,
1718,
273,
365,
18,
2910,
18,
588,
12,
8450,
397,
296,
3413,
2473,
13,
1815,
562,
12,
12243,
18,
2620,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3413,
12,
2890,
4672,
9039,
273,
365,
6315,
588,
67,
8450,
1435,
1718,
273,
365,
18,
2910,
18,
588,
12,
8450,
397,
296,
3413,
2473,
13,
1815,
562,
12,
12243,
18,
2620,
18,
... |
if ((%(_z)s->descr->type_num != PyArray_DOUBLE) && (%(_z)s->descr->type_num != PyArray_FLOAT)) | if ((%(_zout)s->descr->type_num != PyArray_DOUBLE) && (%(_zout)s->descr->type_num != PyArray_FLOAT)) | def c_compile_args(self): return ldflags(libs=False, flags=True) | a5256ba2c40614a069040dbec774df5c09684923 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/a5256ba2c40614a069040dbec774df5c09684923/blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
11100,
67,
1968,
12,
2890,
4672,
327,
328,
2180,
80,
1341,
12,
21571,
33,
8381,
16,
2943,
33,
5510,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
11100,
67,
1968,
12,
2890,
4672,
327,
328,
2180,
80,
1341,
12,
21571,
33,
8381,
16,
2943,
33,
5510,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
filename = os.path.join(self.torrent_dir, record[0]) | filename = os.path.join(self.torrent_dir, record[2]) | def register(self, category, torrent_dir): self.category = category self.torrent_dir = torrent_dir return # consider for migration # insert the torrent details into InvertedIndex and TorrentFiles tables, if the DB is just migrated to a new version sql = "select torrent_file_name from Torrent where torrent_file_name is ... | 6493f7e81b05a2e100cd426f0d5ef7fe6d9fbd3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9686/6493f7e81b05a2e100cd426f0d5ef7fe6d9fbd3b/SqliteCacheDBHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
12,
2890,
16,
3150,
16,
17351,
67,
1214,
4672,
365,
18,
4743,
273,
3150,
365,
18,
13039,
547,
67,
1214,
273,
17351,
67,
1214,
327,
468,
5260,
364,
6333,
468,
2243,
326,
17351,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
12,
2890,
16,
3150,
16,
17351,
67,
1214,
4672,
365,
18,
4743,
273,
3150,
365,
18,
13039,
547,
67,
1214,
273,
17351,
67,
1214,
327,
468,
5260,
364,
6333,
468,
2243,
326,
17351,
31... |
openid_url = models.CharField(primary_key=True, blank=False, max_length=255) user = models.ForeignKey(User) | openid_url = models.CharField(primary_key=True, blank=False, max_length=255, verbose_name=_('OpenID URL')) user = models.ForeignKey(User, verbose_name=_('User')) | def __unicode__(self): return u"Association: %s, %s" % (self.server_url, self.handle) | 4d3a8d1f4f22ed89cda4ce3344f7956df2698169 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5675/4d3a8d1f4f22ed89cda4ce3344f7956df2698169/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
582,
6,
7174,
30,
738,
87,
16,
738,
87,
6,
738,
261,
2890,
18,
3567,
67,
718,
16,
365,
18,
4110,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
582,
6,
7174,
30,
738,
87,
16,
738,
87,
6,
738,
261,
2890,
18,
3567,
67,
718,
16,
365,
18,
4110,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return "Numerators of continued fraction convergents to sqrt(2)." def _precompute(self, how_many=150): try: f = self._f except AttributeError: self._f = recur_gen2(1,1,2,1) f = self._f self._b += [f.next() for i in range(how_many)] def _eval(self, n): if len(self._b) <= n: self._precompute(n - len(self._b) + 1) ... | """ EXAMPLES: sage: sloane.A001045._repr_() 'Jacobsthal sequence: a(n) = a(n-1) + 2a(n-2).' """ return "Jacobsthal sequence: a(n) = a(n-1) + 2a(n-2)." class A000129(RecurrenceSequence2): def __init__(self): r""" Pell numbers: $a(0) = 0$, $a(1) = 1$; for $n > 1$, $a(n) = 2a(n-1) + a(n-2)$. Denominators of continued f... | def _repr_(self): return "Numerators of continued fraction convergents to sqrt(2)." | 7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
327,
315,
2578,
264,
3062,
434,
17545,
5957,
8330,
14581,
75,
4877,
358,
5700,
12,
22,
14944,
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,
12715,
67,
12,
2890,
4672,
327,
315,
2578,
264,
3062,
434,
17545,
5957,
8330,
14581,
75,
4877,
358,
5700,
12,
22,
14944,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
annotations['min_%s' % field] = Min(field) annotations['max_%s' % field] = Max(field) annotations['avg_%s' % field] = Avg(field) annotations['stddev_%s' % field] = StdDev(field) | annotations['min_%s' % field] = Min(p%field) annotations['max_%s' % field] = Max(p%field) annotations['avg_%s' % field] = Avg(p%field) annotations['stddev_%s' % field] = StdDev(p%field) | def _execute(self): """ Private method for executing query, always runs query and then updates cache """ annotations = {} aa_rows = {} # main aggregate functions for field in self.angles: annotations['min_%s' % field] = Min(field) annotations['max_%s' % field] = Max(field) annotations['avg_%s' % field] = DirectionalAv... | 74f9b2a1bd92e5595f4550b8f493b12de94b2b27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6163/74f9b2a1bd92e5595f4550b8f493b12de94b2b27/directional_stddev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
12,
2890,
4672,
3536,
8726,
707,
364,
11274,
843,
16,
3712,
7597,
843,
471,
1508,
4533,
1247,
3536,
5617,
273,
2618,
12391,
67,
3870,
273,
2618,
225,
468,
2774,
7047,
4186,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
12,
2890,
4672,
3536,
8726,
707,
364,
11274,
843,
16,
3712,
7597,
843,
471,
1508,
4533,
1247,
3536,
5617,
273,
2618,
12391,
67,
3870,
273,
2618,
225,
468,
2774,
7047,
4186,
36... |
for d in dists: if d.project_name in openmdao_packages: pdir = os.path.join(topdir, openmdao_packages[d.project_name][0], d.project_name) if 'src' in os.listdir(pdir): os.chdir(os.path.join(pdir, 'src')) else: os.chdir(pdir) create_releaseinfo_file(d.project_name, options.version) _build_dev_egg(pdir, destdir) | for project_name in openmdao_packages: pdir = os.path.join(topdir, openmdao_packages[project_name][0], project_name) if 'src' in os.listdir(pdir): os.chdir(os.path.join(pdir, 'src')) else: os.chdir(pdir) create_releaseinfo_file(project_name, options.version) _build_sdist(pdir, destdir) | def main(): parser = OptionParser() parser.add_option("-d", "--destination", action="store", type="string", dest="destdir", help="directory where distributions will be placed") parser.add_option("","--version", action="store", type="string", dest="version", help="version string applied to all openmdao distributions") (... | 6e690e9bb0098603e045f34cc8efc67e79bf25d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/6e690e9bb0098603e045f34cc8efc67e79bf25d3/mkrelease.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
1435,
2082,
18,
1289,
67,
3482,
2932,
17,
72,
3113,
5238,
10590,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
10488,
1214,
3113,
2809,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2082,
273,
18862,
1435,
2082,
18,
1289,
67,
3482,
2932,
17,
72,
3113,
5238,
10590,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
10488,
1214,
3113,
2809,
15... |
logger.debug("Method insert called") | msg = "Method dmtinsert called. Known processes %s, " % str(dmt_proc_dict) msg += "known segment_definers %s" % str(dmt_seg_def_dict) logger.debug(msg) | def insertdmt(self, arg): """ Insert LIGO_LW xml data from the DMT in the metadata database. For DMT inserts, we need to check for existing process_id and segment_definer_id rows and change the contents of the table to be inserted accordingly. We must also update the end_time of any existing entries in the process tabl... | ff00258024f26a6827771de6adc9ba764793dadd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/ff00258024f26a6827771de6adc9ba764793dadd/LDBDServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
72,
1010,
12,
2890,
16,
1501,
4672,
3536,
8040,
511,
3047,
51,
67,
48,
59,
2025,
501,
628,
326,
463,
6152,
316,
326,
1982,
2063,
18,
2457,
463,
6152,
15607,
16,
732,
1608,
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,
2243,
72,
1010,
12,
2890,
16,
1501,
4672,
3536,
8040,
511,
3047,
51,
67,
48,
59,
2025,
501,
628,
326,
463,
6152,
316,
326,
1982,
2063,
18,
2457,
463,
6152,
15607,
16,
732,
1608,
358,
... |
for k,v in form.items()]) | for k,v in form.iteritems()]) | def _httpreq(self, service_path, method='GET', body=None, form=None, headers=None): """ make an http request to the service. form arguments are encoded in the url, even for POST, if a non-form content-type is given for the body. returns a pair (resp, body) resp is the response object and may be different depending o... | 6d6aafe562f229264a2095f872951c4601a9d6e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11603/6d6aafe562f229264a2095f872951c4601a9d6e4/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2022,
1484,
85,
12,
2890,
16,
1156,
67,
803,
16,
707,
2218,
3264,
2187,
1417,
33,
7036,
16,
646,
33,
7036,
16,
1607,
33,
7036,
4672,
3536,
1221,
392,
1062,
590,
358,
326,
1156,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2022,
1484,
85,
12,
2890,
16,
1156,
67,
803,
16,
707,
2218,
3264,
2187,
1417,
33,
7036,
16,
646,
33,
7036,
16,
1607,
33,
7036,
4672,
3536,
1221,
392,
1062,
590,
358,
326,
1156,
... |
self.curl_obj.setopt(pycurl.POSTFIELDS, opts.data) | self.curl_obj.setopt(pycurl.POSTFIELDS, self._to_utf8(opts.data)) | def _set_opts(self, opts={}): # XXX if not opts: opts = self.opts | cb29da0d279384ba1cdf0de54227e0e9e55253e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7001/cb29da0d279384ba1cdf0de54227e0e9e55253e8/grabber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
4952,
12,
2890,
16,
1500,
12938,
4672,
468,
11329,
309,
486,
1500,
30,
1500,
273,
365,
18,
4952,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
4952,
12,
2890,
16,
1500,
12938,
4672,
468,
11329,
309,
486,
1500,
30,
1500,
273,
365,
18,
4952,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self._private_messages and len(forgave)<3: v.message(self.getMessage('forgive_many', { 'vname' : v.exactName, 'attackers' : string.join(forgave, ', ') })) for attacker in forgave: attacker.message(self.getMessage('forgive_many', { 'vname' : v.exactName, 'attackers' : string.join(forgave, ', ') })) | if self._private_messages: client.message(self.getMessage('forgive_many', { 'vname' : client.exactName, 'attackers' : string.join(forgave, ', ') })) | def cmd_forgiveall(self, data, client, cmd=None): """\ - forgive all attackers' tk points """ v = self.getClientTkInfo(client) if len(v.attackers) > 0: forgave = [] for cid,points in v.attackers.items(): if v.isGrudged(cid): continue | 19b20bd5ea1ab2eabc947842d6357015965c592a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/19b20bd5ea1ab2eabc947842d6357015965c592a/tk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
1884,
75,
688,
454,
12,
2890,
16,
501,
16,
1004,
16,
1797,
33,
7036,
4672,
3536,
64,
300,
364,
75,
688,
777,
13843,
414,
11,
13030,
3143,
3536,
331,
273,
365,
18,
588,
1227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
1884,
75,
688,
454,
12,
2890,
16,
501,
16,
1004,
16,
1797,
33,
7036,
4672,
3536,
64,
300,
364,
75,
688,
777,
13843,
414,
11,
13030,
3143,
3536,
331,
273,
365,
18,
588,
1227... |
this_base = 16 + self.slot * 16 r[base+12:base+16] = r[this_base+8:this_base+12] r[this_base+8:this_base+12] = IO.encode_link(slot_number) | this_slot = 16 + self.slot * 16 r[free_slot+12:free_slot+16] = r[this_slot+8:this_slot+12] r[this_slot+8:this_slot+12] = IO.encode_link(free_slot_n) | def index_word(self, word, doc_number, position): if word: prefix, suffix = word[0], word[1:] if prefix in self.children: subtree = self.children[prefix] else: # Get an empty slot slot_number = self.root.tree_handler._get_free_slot() # Update data structure on memoty subtree = self.children[prefix] = Tree(self.root, sl... | 51eb36a817138ff485eeb1b9a616f10eb8b4fcc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/51eb36a817138ff485eeb1b9a616f10eb8b4fcc1/IIndex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
67,
1095,
12,
2890,
16,
2076,
16,
997,
67,
2696,
16,
1754,
4672,
309,
2076,
30,
1633,
16,
3758,
273,
2076,
63,
20,
6487,
2076,
63,
21,
26894,
309,
1633,
316,
365,
18,
5906,
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,
770,
67,
1095,
12,
2890,
16,
2076,
16,
997,
67,
2696,
16,
1754,
4672,
309,
2076,
30,
1633,
16,
3758,
273,
2076,
63,
20,
6487,
2076,
63,
21,
26894,
309,
1633,
316,
365,
18,
5906,
30,
... |
except (facebook.GraphAPIError, urlfetch.DownloadError): | except (facebook.GraphAPIError, urlfetch.DownloadError, AttributeError): | def get_facebook_nickname(user): email = user.email() memcache_key = "facebook_nickname_%s" % email name = memcache.get(memcache_key) if name is not None: return name id = email.replace(FACEBOOK_ID_EMAIL_PREFIX, "") graph = facebook.GraphAPI() try: profile = graph.get_object(id) # Workaround http://code.google.com/... | f46848d78ce3f37168886a100762d6dd5c80a956 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/f46848d78ce3f37168886a100762d6dd5c80a956/facebook_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
23130,
67,
17091,
529,
12,
1355,
4672,
225,
2699,
273,
729,
18,
3652,
1435,
225,
20549,
67,
856,
273,
315,
23130,
67,
17091,
529,
10185,
87,
6,
738,
2699,
508,
273,
20549,
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,
23130,
67,
17091,
529,
12,
1355,
4672,
225,
2699,
273,
729,
18,
3652,
1435,
225,
20549,
67,
856,
273,
315,
23130,
67,
17091,
529,
10185,
87,
6,
738,
2699,
508,
273,
20549,
18,... |
new_detail = values[1] + '''<head><link rel="stylesheet" type="text/css" href="%scss/quality-log-style.css" media="all"/></head>'''%(c['buildbotURL']) | new_detail = values[1] + '''<head><link rel="stylesheet" type="text/css" href="%(root)scss/quality-log-style.css" media="all"/></head>''') | def createSummary(self, log): data = False logs = log.getText() counts = {} summaries = {} for m in self.MESSAGES: counts[m] = 0 summaries[m] = [] | dc234b0fc5d2f084b3f489b9841f8d4984ea0a84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12355/dc234b0fc5d2f084b3f489b9841f8d4984ea0a84/buildstep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4733,
12,
2890,
16,
613,
4672,
501,
273,
1083,
5963,
273,
613,
18,
588,
1528,
1435,
225,
6880,
273,
2618,
24297,
273,
2618,
364,
312,
316,
365,
18,
26195,
30,
6880,
63,
81,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4733,
12,
2890,
16,
613,
4672,
501,
273,
1083,
5963,
273,
613,
18,
588,
1528,
1435,
225,
6880,
273,
2618,
24297,
273,
2618,
364,
312,
316,
365,
18,
26195,
30,
6880,
63,
81,
65,
... |
tmpList.append(chan) zValueDict[sngl.ifo]=tmpList else: sys.stdout.write("Omega scan summary file not for for %s. ...skipping...\n"%sngl.ifo) | zValueDict[sngl.ifo].append(chan) if len(zValueDict[sngl.ifo]) == 0: sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) | def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex... | 481b556f895e5b0b4caf0acaf35400d2993db8e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/481b556f895e5b0b4caf0acaf35400d2993db8e5/makeCheckListWiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1564,
1098,
12,
13044,
5359,
33,
7036,
16,
13044,
27055,
71,
33,
7036,
16,
13044,
2471,
33,
7036,
16,
768,
22,
1785,
33,
7036,
4672,
3536,
2985,
358,
2911,
279,
866,
1098,
1625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1564,
1098,
12,
13044,
5359,
33,
7036,
16,
13044,
27055,
71,
33,
7036,
16,
13044,
2471,
33,
7036,
16,
768,
22,
1785,
33,
7036,
4672,
3536,
2985,
358,
2911,
279,
866,
1098,
1625,
... |
del names['__basicsize__'] del names['__cmp__'] del names['__dictoffset__'] del names['__itemsize__'] del names['__weakrefoffset__'] | names.remove('__basicsize__') names.remove('__cmp__') names.remove('__dictoffset__') names.remove('__itemsize__') names.remove('__weakrefoffset__') | def cls_delta(clsname, expl1, cls1, expl2, cls2): cache = cls_delta_cache print "; cls %s" % clsname try: rep = cache[(cls1, cls2)] return rep except KeyError: pass rep = ClassReport(clsname) rep.shortname = clsname.split('.')[1] rep.set_status(cls1, cls2, expl1) cls1_is_not_a_class = False if not expl1.is_class(cls... | c09dbd8c77966028e40c6e2eaf24bec8973b1b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/c09dbd8c77966028e40c6e2eaf24bec8973b1b2d/delta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2028,
67,
9878,
12,
6429,
529,
16,
22991,
21,
16,
2028,
21,
16,
22991,
22,
16,
2028,
22,
4672,
1247,
273,
2028,
67,
9878,
67,
2493,
1172,
13636,
2028,
738,
87,
6,
738,
2028,
529,
775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2028,
67,
9878,
12,
6429,
529,
16,
22991,
21,
16,
2028,
21,
16,
22991,
22,
16,
2028,
22,
4672,
1247,
273,
2028,
67,
9878,
67,
2493,
1172,
13636,
2028,
738,
87,
6,
738,
2028,
529,
775... |
def teardown(self): platformutils.warnIfNotOnMainThread('VideoAreaView.teardown') if self.videoWindow.isFullScreen: self.videoWindow.exitFullScreen() self.window().removeChildWindow_(self.videoWindow) self.videoWindow.orderOut_(nil) self.videoWindow.teardown() | def teardown(self): platformutils.warnIfNotOnMainThread('VideoAreaView.teardown') if self.videoWindow.isFullScreen: self.videoWindow.exitFullScreen() self.window().removeChildWindow_(self.videoWindow) self.videoWindow.orderOut_(nil) self.videoWindow.teardown() | 7dc7d1e4329b9b3820a0686ec5940afd8157bff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/7dc7d1e4329b9b3820a0686ec5940afd8157bff6/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28196,
12,
2890,
4672,
4072,
5471,
18,
8935,
10288,
1398,
6376,
3830,
2668,
10083,
5484,
1767,
18,
736,
20684,
6134,
309,
365,
18,
9115,
3829,
18,
291,
5080,
7956,
30,
365,
18,
9115,
382... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28196,
12,
2890,
4672,
4072,
5471,
18,
8935,
10288,
1398,
6376,
3830,
2668,
10083,
5484,
1767,
18,
736,
20684,
6134,
309,
365,
18,
9115,
3829,
18,
291,
5080,
7956,
30,
365,
18,
9115,
382... | |
{'elementary_entity':'Defined to be one elementary unit of choice, usually atoms or other elementary particles.\nApproximately equal to 1.6605e-24 moles.', 'mole':'SI base unit of quantity.\nDefined to be the amount of substance that has an equal number of elementary entities as there are atoms in 12 grams of carbon-12... | {'elementary_entity':'Defined to be one elementary unit of choice, usually atoms or other elementary particles.\nApproximately equal to 1.6605e-24 moles.', 'mole':'SI base unit of quantity.\nDefined to be the amount of substance that has an equal number of elementary entities as there are atoms in 12 grams of carbon-12... | def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun... | 04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
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,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... |
self.MenuBar.setGeometry(QRect(0,0,1115,22)) | self.MenuBar.setGeometry(QRect(0,0,1115,33)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 12c8fe24cb1ace55e7caf0b09c7238554087208a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/12c8fe24cb1ace55e7caf0b09c7238554087208a/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
cdslangs.sort() | def perform_modifytranslations(colID, ln=cdslang, sel_type='', trans=[], confirm=-1, callback='yes'): """Modify the translations of a collection""" output = '' subtitle = '' cdslangs = get_languages() cdslangs.sort() if confirm in ["2", 2] and colID: finresult = modify_translations(colID, cdslangs, sel_type, trans, "c... | dcfee6aed5014f8f3ab0894c2338409e2d8ca65b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/dcfee6aed5014f8f3ab0894c2338409e2d8ca65b/websearchadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
17042,
13457,
12,
1293,
734,
16,
7211,
33,
4315,
2069,
539,
16,
357,
67,
723,
2218,
2187,
906,
22850,
6487,
6932,
29711,
21,
16,
1348,
2218,
9707,
11,
4672,
3536,
11047,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
17042,
13457,
12,
1293,
734,
16,
7211,
33,
4315,
2069,
539,
16,
357,
67,
723,
2218,
2187,
906,
22850,
6487,
6932,
29711,
21,
16,
1348,
2218,
9707,
11,
4672,
3536,
11047,
326,
... | |
run(t.trace, 'execfile(' + `progname` + ')') | t.run('execfile(' + `progname` + ')') | def main(argv = None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:", ["help", "version", "trace", "count", "report", "no-report", "file=", "logdir=", "missing", "ignore-module=", "ignore-dir=", "coverdir="]) except getopt.error, msg: print >> sys.stderr,... | a30eacf45815c14b480972c5097677fac83ed4c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a30eacf45815c14b480972c5097677fac83ed4c0/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
1948... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
1948... |
self.hboxlayout65.addItem(spacerItem64) self.vboxlayout31.addLayout(self.hboxlayout65) | self.hboxlayout62.addItem(spacerItem64) self.vboxlayout30.addLayout(self.hboxlayout62) | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
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,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
return float(t) | return t | def _ReadLastRun(self): # 0 signifies an error t = 0 | c4a62e7f43eb9e42f8c65202c5af159c05b67103 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3644/c4a62e7f43eb9e42f8c65202c5af159c05b67103/Scheduler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1994,
3024,
1997,
12,
2890,
4672,
468,
374,
1573,
5032,
392,
555,
268,
273,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1994,
3024,
1997,
12,
2890,
4672,
468,
374,
1573,
5032,
392,
555,
268,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return (self.shared_only + ['-bundle', '-undefined', 'dynamic_lookup'] | return (self.shared_only + ['-dynamiclib', '-undefined', 'dynamic_lookup'] | def _args_for_shared(self, args): return (self.shared_only + ['-bundle', '-undefined', 'dynamic_lookup'] + args) | 2e95c59182380ec25487978faa6c3be3411ba9df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/2e95c59182380ec25487978faa6c3be3411ba9df/darwin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1968,
67,
1884,
67,
11574,
12,
2890,
16,
833,
4672,
327,
261,
2890,
18,
11574,
67,
3700,
397,
10228,
17,
14507,
2941,
2187,
2400,
5978,
2187,
296,
14507,
67,
8664,
3546,
397,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1968,
67,
1884,
67,
11574,
12,
2890,
16,
833,
4672,
327,
261,
2890,
18,
11574,
67,
3700,
397,
10228,
17,
14507,
2941,
2187,
2400,
5978,
2187,
296,
14507,
67,
8664,
3546,
397,
833,
... |
pass | def buildCleanExpr(self, expr): self.recursionLevel += 1 expr = expr.replace(" ", "") print(self.getDebugPrefix() + " * buildCleanExpr: " + expr) # For every operator level for opLevel in self.operatorLevels: # For every operator in the current level for op in opLevel.operators: lastOccurence = expr.find(op.text) wh... | aec5ef1811f0433d6644b354a775090ca343942a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14498/aec5ef1811f0433d6644b354a775090ca343942a/ExpressionParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
7605,
4742,
12,
2890,
16,
3065,
4672,
365,
18,
31347,
2355,
1011,
404,
225,
3065,
273,
3065,
18,
2079,
2932,
3104,
1408,
13,
225,
1172,
12,
2890,
18,
588,
2829,
2244,
1435,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7605,
4742,
12,
2890,
16,
3065,
4672,
365,
18,
31347,
2355,
1011,
404,
225,
3065,
273,
3065,
18,
2079,
2932,
3104,
1408,
13,
225,
1172,
12,
2890,
18,
588,
2829,
2244,
1435,
397,
... | |
""" Test ImagePrimitiveEvaluator with a data window """ | """ Test ImagePrimitiveEvaluator with a data window """ | def testDataWindow( self ) : """ Test ImagePrimitiveEvaluator with a data window """ displayWindow = Box2i( V2i( 0, 0 ), V2i( 99, 99 ) ) dataWindow = Box2i( V2i( 50, 50), V2i( 99, 99 ) ) img = ImagePrimitive( dataWindow, displayWindow ) | 58fb77e98f3635e6cbde51fe2007926b7d5d0fd4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/58fb77e98f3635e6cbde51fe2007926b7d5d0fd4/ImagePrimitiveEvaluator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
751,
3829,
12,
365,
262,
294,
3536,
7766,
3421,
9840,
15876,
598,
279,
501,
2742,
3536,
225,
2562,
3829,
273,
8549,
22,
77,
12,
776,
22,
77,
12,
374,
16,
374,
262,
16,
776,
22,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
751,
3829,
12,
365,
262,
294,
3536,
7766,
3421,
9840,
15876,
598,
279,
501,
2742,
3536,
225,
2562,
3829,
273,
8549,
22,
77,
12,
776,
22,
77,
12,
374,
16,
374,
262,
16,
776,
22,... |
self.center = 0 self.bond_width = abs( self.bond_width) | return (1, 0) | def get_circles_for_side( side): res = 0 side1, side2 = side while len( side1): a1 = side1.pop(0) for a2 in side2: atoms = copy.copy( self.molecule.atoms_map) atoms.remove( self.atom1) atoms.remove( self.atom2) if accessible( a1, a2, atoms): res += 1 return res | 63aa8de15cad833fb626b0c351076ad00b5150de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4298/63aa8de15cad833fb626b0c351076ad00b5150de/classes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11614,
9558,
67,
1884,
67,
5564,
12,
4889,
4672,
400,
273,
374,
4889,
21,
16,
4889,
22,
273,
4889,
1323,
562,
12,
4889,
21,
4672,
279,
21,
273,
4889,
21,
18,
5120,
12,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11614,
9558,
67,
1884,
67,
5564,
12,
4889,
4672,
400,
273,
374,
4889,
21,
16,
4889,
22,
273,
4889,
1323,
562,
12,
4889,
21,
4672,
279,
21,
273,
4889,
21,
18,
5120,
12,
20,
... |
def setup(srcdir, tarball='libcap-2.14.tar.gz'): | def setup(srcdir, tarball='libcap-2.16.tar.gz'): | def setup(srcdir, tarball='libcap-2.14.tar.gz'): topdir = os.getcwd() autotest_utils.extract_tarball_to_dir(tarball, srcdir) os.chdir(os.path.join(srcdir, 'libcap')) utils.system('patch -p0 < ../../libcap.patch') os.chdir(srcdir) utils.system('make -C libcap') os.chdir(topdir) | a88d44c6ce332d7dd21dc5992327a649447ad13d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/a88d44c6ce332d7dd21dc5992327a649447ad13d/libcap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
4816,
1214,
16,
29441,
2218,
2941,
5909,
17,
22,
18,
2313,
18,
11718,
18,
9764,
11,
4672,
1760,
1214,
273,
1140,
18,
588,
11089,
1435,
2059,
352,
395,
67,
5471,
18,
8004,
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,
3875,
12,
4816,
1214,
16,
29441,
2218,
2941,
5909,
17,
22,
18,
2313,
18,
11718,
18,
9764,
11,
4672,
1760,
1214,
273,
1140,
18,
588,
11089,
1435,
2059,
352,
395,
67,
5471,
18,
8004,
67,... |
self.debug_trace("numericValue") | def numericValue(self): self.debug_trace("numericValue") return 1; | ecf78c969222f7513a2f516b0355728295fb546a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/ecf78c969222f7513a2f516b0355728295fb546a/pxlasm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6389,
620,
12,
2890,
4672,
327,
404,
31,
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,
6389,
620,
12,
2890,
4672,
327,
404,
31,
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.w.SAFilter.setChecked(0) | self.w.filterCheckBox.setChecked(0) | def restore_gui(self): self.w.selectAtomsDashboard.hide() self.w.SAFilter.setChecked(0) | 5aa5552a6d34b6b134ad8d88b5e59bd218738926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/5aa5552a6d34b6b134ad8d88b5e59bd218738926/selectMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
67,
20292,
12,
2890,
4672,
365,
18,
91,
18,
4025,
14280,
14830,
18,
11248,
1435,
365,
18,
91,
18,
2188,
19174,
18,
542,
11454,
12,
20,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
67,
20292,
12,
2890,
4672,
365,
18,
91,
18,
4025,
14280,
14830,
18,
11248,
1435,
365,
18,
91,
18,
2188,
19174,
18,
542,
11454,
12,
20,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
... |
elif hasattr(other, "timetuple"): | elif hasattr(other, "timetuple") and not isinstance(other, date): | def __le__(self, other): if isinstance(other, datetime): return self.__cmp(other) <= 0 elif hasattr(other, "timetuple"): return NotImplemented else: _cmperror(self, other) | ceeb318540b62b368d28aedf1baef856c96583c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ceeb318540b62b368d28aedf1baef856c96583c9/datetime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
298,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
3314,
4672,
327,
365,
16186,
9625,
12,
3011,
13,
1648,
374,
1327,
3859,
12,
3011,
16,
315,
8584,
278,
2268,
7923,
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,
1001,
298,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
3314,
4672,
327,
365,
16186,
9625,
12,
3011,
13,
1648,
374,
1327,
3859,
12,
3011,
16,
315,
8584,
278,
2268,
7923,
471... |
]), | ]), postOps = [ | def mutator(pop, param): 'Parameter has a length of region and a mutation rate at each basepair' region, rate = param # there are certainly more efficient algorithm, but this # example just mutate each basepair one by one.... for i in range(region): if random.random() < rate: try: idx = pop.addLoci(chrom=0, pos=i)[0] e... | 505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29156,
12,
5120,
16,
579,
4672,
296,
1662,
711,
279,
769,
434,
3020,
471,
279,
11934,
4993,
622,
1517,
1026,
6017,
11,
3020,
16,
4993,
273,
579,
468,
1915,
854,
8626,
715,
1898,
14382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29156,
12,
5120,
16,
579,
4672,
296,
1662,
711,
279,
769,
434,
3020,
471,
279,
11934,
4993,
622,
1517,
1026,
6017,
11,
3020,
16,
4993,
273,
579,
468,
1915,
854,
8626,
715,
1898,
14382,
... |
if conf.verbose: | if config.verbose: | def run(config, tim=None): """ This method is where the data reduction process gets done. @param config: Object containing the data reduction configuration information. @type config: L{hlr_utils.Configure} @param tim: (OPTIONAL) Object that will allow the method to perform timing evaluations. @type tim: C{sns_time.Di... | bb758ce3cbe25f73e8a8618bfaf541f06d48e121 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/bb758ce3cbe25f73e8a8618bfaf541f06d48e121/sas_background.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
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,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... |
def irc_NICK(self, prefix, params): """Called when an IRC user changes their nickname.""" old_nick = nick (prefix) new_nick = params[0] irc.IRCClient.irc_NICK (self, prefix, params) | def irc_NICK(self, prefix, params): """Called when an IRC user changes their nickname.""" old_nick = nick (prefix) new_nick = params[0] irc.IRCClient.irc_NICK (self, prefix, params) | bae29ed52ed462ea33084079c4a0ff0162490d5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5759/bae29ed52ed462ea33084079c4a0ff0162490d5c/ircbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
1310,
67,
50,
16656,
12,
2890,
16,
1633,
16,
859,
4672,
3536,
8185,
1347,
392,
467,
11529,
729,
3478,
3675,
19570,
12123,
1592,
67,
17091,
273,
10909,
261,
3239,
13,
394,
67,
17091,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
1310,
67,
50,
16656,
12,
2890,
16,
1633,
16,
859,
4672,
3536,
8185,
1347,
392,
467,
11529,
729,
3478,
3675,
19570,
12123,
1592,
67,
17091,
273,
10909,
261,
3239,
13,
394,
67,
17091,... | |
if self.codeFile == "": return f = open(self.codeFile, 'r') | if self.codeFile == "": return self.error(0) try: f = open(self.codeFile, 'r') except (IOError, OSError), ex: self.text.setPlainText("") return | def openScript(self, filename=None): if filename == None: self.codeFile = str(QFileDialog.getOpenFileName(self, 'Open Python Script', self.codeFile, 'Python files (*.py)\nAll files(*.*)')) else: self.codeFile = filename if self.codeFile == "": return f = open(self.codeFile, 'r') self.text.setPlainText(f.read()) f.clo... | e12abf25a91c255817e9488e4289a7d646f714b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/e12abf25a91c255817e9488e4289a7d646f714b3/OWPythonScript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
3651,
12,
2890,
16,
1544,
33,
7036,
4672,
309,
1544,
422,
599,
30,
365,
18,
710,
812,
273,
609,
12,
53,
812,
6353,
18,
588,
3678,
4771,
12,
2890,
16,
296,
3678,
6600,
7739,
218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
3651,
12,
2890,
16,
1544,
33,
7036,
4672,
309,
1544,
422,
599,
30,
365,
18,
710,
812,
273,
609,
12,
53,
812,
6353,
18,
588,
3678,
4771,
12,
2890,
16,
296,
3678,
6600,
7739,
218... |
onKeyPress="if(is_submit(event)) process_new_worksheet_menu_submit();"></input> Pass: <input id="new_worksheet_pass" class="add_new_worksheet_menu" | onKeyPress="if(is_submit(event)) process_new_worksheet_menu_submit();"></input><br> Password: <input id="new_worksheet_pass" class="add_new_worksheet_menu" | def _html_body(self, worksheet_id, show_debug=False, worksheet_authorized=False): worksheet = self.get_worksheet_with_id(worksheet_id) if worksheet.computing(): interrupt_class = "interrupt" else: interrupt_class = "interrupt_grey" | 98f0d51a488763e849229b1add84fdf4c476184f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/98f0d51a488763e849229b1add84fdf4c476184f/notebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2620,
67,
3432,
12,
2890,
16,
13622,
67,
350,
16,
2405,
67,
4148,
33,
8381,
16,
13622,
67,
8434,
33,
8381,
4672,
13622,
273,
365,
18,
588,
67,
1252,
8118,
67,
1918,
67,
350,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2620,
67,
3432,
12,
2890,
16,
13622,
67,
350,
16,
2405,
67,
4148,
33,
8381,
16,
13622,
67,
8434,
33,
8381,
4672,
13622,
273,
365,
18,
588,
67,
1252,
8118,
67,
1918,
67,
350,
12,... |
crsm = Epetra.CrsMatrix(Epetra.Copy, self.rowMap, self.colMap, 3) | crsm = Epetra.CrsMatrix(Epetra.Copy, self.rowMap, self.colMap, 3, False) | def testScale(self): "Test Epetra.CrsMatrix Scale method" crsm = Epetra.CrsMatrix(Epetra.Copy, self.rowMap, self.colMap, 3) self.fillMatrixGlobal(crsm) crsm.Scale(10) for lrid in range(crsm.NumMyRows()): grid = crsm.GRID(lrid) refValues = [-10,20,-10] if grid == 0 : refValues.pop( 0) if grid == self.size-1: re... | ef9f17a94c1e422ebac2fd724d09713b0beffb58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1130/ef9f17a94c1e422ebac2fd724d09713b0beffb58/testCrsMatrix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5587,
12,
2890,
4672,
315,
4709,
512,
6951,
354,
18,
39,
5453,
4635,
12591,
707,
6,
4422,
4808,
273,
512,
6951,
354,
18,
39,
5453,
4635,
12,
41,
6951,
354,
18,
2951,
16,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5587,
12,
2890,
4672,
315,
4709,
512,
6951,
354,
18,
39,
5453,
4635,
12591,
707,
6,
4422,
4808,
273,
512,
6951,
354,
18,
39,
5453,
4635,
12,
41,
6951,
354,
18,
2951,
16,
365,
1... |
lastupdate=os.stat(os.path.join(path, ".hg", "00changelog.d")).st_mtime) | lastupdate=d) | def entries(**map): parity = 0 for name, path in self.repos: u = ui.ui() try: u.readconfig(file(os.path.join(path, '.hg', 'hgrc'))) except IOError: pass get = u.config | b161b1f630b4282caf82e544bdbf164182269aa5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/b161b1f630b4282caf82e544bdbf164182269aa5/hgweb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3222,
12,
636,
1458,
4672,
19904,
273,
374,
364,
508,
16,
589,
316,
365,
18,
15564,
30,
582,
273,
5915,
18,
4881,
1435,
775,
30,
582,
18,
896,
1425,
12,
768,
12,
538,
18,
803,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3222,
12,
636,
1458,
4672,
19904,
273,
374,
364,
508,
16,
589,
316,
365,
18,
15564,
30,
582,
273,
5915,
18,
4881,
1435,
775,
30,
582,
18,
896,
1425,
12,
768,
12,
538,
18,
803,
18,
... |
return ( '/'.join(self.tree_encode() ) | return ( '/'.join(self.tree_encode())) | def full_name(self): """ Returns the full, slash-delimited name of a node """ return ( '/'.join(self.tree_encode() ) | 5259a51ee0fcc97351a9e9631df580ede9dc562f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12041/5259a51ee0fcc97351a9e9631df580ede9dc562f/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
67,
529,
12,
2890,
4672,
3536,
2860,
326,
1983,
16,
9026,
17,
3771,
1038,
329,
508,
434,
279,
756,
3536,
327,
261,
2023,
18,
5701,
12,
2890,
18,
3413,
67,
3015,
1435,
262,
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,
1983,
67,
529,
12,
2890,
4672,
3536,
2860,
326,
1983,
16,
9026,
17,
3771,
1038,
329,
508,
434,
279,
756,
3536,
327,
261,
2023,
18,
5701,
12,
2890,
18,
3413,
67,
3015,
1435,
262,
2,
-... |
env.Replace( BOOST_VERSION = conf.CheckBoostVersion(), | env.SetDefault( BOOST_VERSION = conf.CheckBoostVersion(), | def Configure(env): conf = env.Configure(clean=False, help=False, custom_tests=senfconf.Tests(), config_h="#/senf/autoconf.hh") env.Replace( BOOST_VERSION = conf.CheckBoostVersion(), BOOST_VARIANT = conf.CheckBoostVariants( '', 'mt' ), NEED_BOOST_EXT = not conf.CheckCXXHeader("boost/bimap.hpp"), HAVE_BOOST_SPIRIT_IN... | 615bd01742e3b6ec0a3813d4fef7b99147be8fd9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2548/615bd01742e3b6ec0a3813d4fef7b99147be8fd9/senfutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11758,
12,
3074,
4672,
2195,
273,
1550,
18,
11207,
12,
6200,
33,
8381,
16,
2809,
33,
8381,
16,
1679,
67,
16341,
33,
87,
275,
74,
3923,
18,
14650,
9334,
642,
67,
76,
1546,
7,
19,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11758,
12,
3074,
4672,
2195,
273,
1550,
18,
11207,
12,
6200,
33,
8381,
16,
2809,
33,
8381,
16,
1679,
67,
16341,
33,
87,
275,
74,
3923,
18,
14650,
9334,
642,
67,
76,
1546,
7,
19,
87,
... |
(self._poly - right._poly, \ | (selfpoly - rightpoly, \ | def _sub_(self, right): selfpoly = self._poly rightpoly = right._poly if self._valbase > right._valbase: selfpoly = selfpoly * self.base_ring().prime_pow(self._valbase - right._valbase) baseval = right._valbase elif self._valbase < right._valbase: rightpoly = rightpoly * self.base_ring().prime_pow(right._valbase - self... | 2f581da873d3013613f130b268b49700d9ba56b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2f581da873d3013613f130b268b49700d9ba56b0/polynomial_padic_capped_relative_dense.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
67,
12,
2890,
16,
2145,
4672,
365,
16353,
273,
365,
6315,
16353,
2145,
16353,
273,
2145,
6315,
16353,
309,
365,
6315,
1125,
1969,
405,
2145,
6315,
1125,
1969,
30,
365,
16353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1717,
67,
12,
2890,
16,
2145,
4672,
365,
16353,
273,
365,
6315,
16353,
2145,
16353,
273,
2145,
6315,
16353,
309,
365,
6315,
1125,
1969,
405,
2145,
6315,
1125,
1969,
30,
365,
16353,
... |
self.s[0] = QRadioButton('Cross Validation', self.sBox) | self.s[0] = QRadioButton('Cross validation', self.sBox) | def __init__(self,parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "TestLearners") self.inputs = [("Data", ExampleTableWithClass, self.cdata, Default), ("Separate Test Data", ExampleTableWithClass, self.testdata), ("Learner", orange.Learner, self.learner, Multiple)] self.outputs = [("... | ad0dd33158759d64d09c4d6b454359c1bdf51b1f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/ad0dd33158759d64d09c4d6b454359c1bdf51b1f/OWTestLearners.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
4709,
1682,
1303,
414,
7923,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
4709,
1682,
1303,
414,
7923,
2... |
}) | }, lang) | def ApprovedAddMembers(self, names, passwords, digest, ack=None, admin_notif=None): """Subscribe members in list `names'. | 573bc3f5543df89d6c925b452984ab250387f81e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/573bc3f5543df89d6c925b452984ab250387f81e/MailList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1716,
685,
2155,
986,
6918,
12,
2890,
16,
1257,
16,
24210,
16,
5403,
16,
8479,
33,
7036,
16,
3981,
67,
902,
430,
33,
7036,
4672,
3536,
16352,
4833,
316,
666,
1375,
1973,
10332,
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,
1716,
685,
2155,
986,
6918,
12,
2890,
16,
1257,
16,
24210,
16,
5403,
16,
8479,
33,
7036,
16,
3981,
67,
902,
430,
33,
7036,
4672,
3536,
16352,
4833,
316,
666,
1375,
1973,
10332,
2,
-100... |
return task | for key in taskInfo: task[key] = taskInfo[key] self.updateDB( task ) jobs = [] for jI in jobInfos: job = Job( jI ) jobs.append(job) task.addJobs(jobs) self.updateDB( task ) del jobs task = self.loadTaskByName(taskInfo['name']) for i in xrange(len(task.jobs)): attrs = rjAttrs[ str(task.jobs[i]['name']) ] self.getR... | def declare( self, xml ) : """ register job related informations in the db """ task = self.deserialize( xml ) task.updateInternalData() self.saveTask( task ) | edd2ef0abd571115973df8d60c2b77a94cda8db4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/edd2ef0abd571115973df8d60c2b77a94cda8db4/BossLiteAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14196,
12,
365,
16,
2025,
262,
294,
3536,
1744,
1719,
3746,
26978,
316,
326,
1319,
3536,
225,
1562,
273,
365,
18,
18109,
12,
2025,
262,
1562,
18,
2725,
3061,
751,
1435,
365,
18,
5688,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14196,
12,
365,
16,
2025,
262,
294,
3536,
1744,
1719,
3746,
26978,
316,
326,
1319,
3536,
225,
1562,
273,
365,
18,
18109,
12,
2025,
262,
1562,
18,
2725,
3061,
751,
1435,
365,
18,
5688,
... |
return [repo[x].parents()[0].rev()] | p = repo[x].parents()[0].rev() return [r for r in subset if r == p] | def p1(repo, subset, x): """``p1([set])`` First parent of changesets in set, or the working directory. """ if x is None: return [repo[x].parents()[0].rev()] ps = set() cl = repo.changelog for r in getset(repo, range(len(repo)), x): ps.add(cl.parentrevs(r)[0]) return [r for r in subset if r in ps] | 8689bb0228d787f2445e37cea37b66fadecbf5d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/8689bb0228d787f2445e37cea37b66fadecbf5d5/revset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
21,
12,
7422,
16,
7931,
16,
619,
4672,
3536,
10335,
84,
21,
3816,
542,
5717,
10335,
5783,
982,
434,
3478,
2413,
316,
444,
16,
578,
326,
5960,
1867,
18,
3536,
309,
619,
353,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
21,
12,
7422,
16,
7931,
16,
619,
4672,
3536,
10335,
84,
21,
3816,
542,
5717,
10335,
5783,
982,
434,
3478,
2413,
316,
444,
16,
578,
326,
5960,
1867,
18,
3536,
309,
619,
353,
599,
... |
Return a one dimensional AES like representation of the matrix M. | Return a one-dimensional AES-like representation of the matrix M. | def hex_str_vector(self, M): """ Return a one dimensional AES like representation of the matrix M. That is, show the finite field elements as hex strings. INPUT: - ``M`` - an AES state array EXAMPLE:: sage: sr = mq.SR(2, 2, 2, 4) sage: k = sr.base_ring() sage: A = matrix(k, 2, 2, [1, k.gen(), 0, k.gen()^2]) sag... | 019849b2438f7aac031134d883a8d8c124e94dfe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/019849b2438f7aac031134d883a8d8c124e94dfe/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
67,
701,
67,
7737,
12,
2890,
16,
490,
4672,
3536,
2000,
279,
1245,
17,
31236,
15986,
17,
5625,
4335,
434,
326,
3148,
490,
18,
225,
12466,
353,
16,
2405,
326,
25922,
652,
2186,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
67,
701,
67,
7737,
12,
2890,
16,
490,
4672,
3536,
2000,
279,
1245,
17,
31236,
15986,
17,
5625,
4335,
434,
326,
3148,
490,
18,
225,
12466,
353,
16,
2405,
326,
25922,
652,
2186,
48... |
class literal_block(General, TextElement): pass class doctest_block(General, TextElement): pass class line_block(General, TextElement): pass | class literal_block(General, FixedTextElement): pass class doctest_block(General, FixedTextElement): pass class line_block(General, FixedTextElement): pass | def astext(self): return self.get('delimiter', ' ') + TextElement.astext(self) | 7bb8263582e31fd45f21b978e0692b20f92c3429 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/7bb8263582e31fd45f21b978e0692b20f92c3429/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3364,
408,
12,
2890,
4672,
327,
365,
18,
588,
2668,
15751,
2187,
296,
8624,
397,
3867,
1046,
18,
689,
408,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3364,
408,
12,
2890,
4672,
327,
365,
18,
588,
2668,
15751,
2187,
296,
8624,
397,
3867,
1046,
18,
689,
408,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
retrn self.dbName in self.config.flaggedRevsList | return self.dbName in self.config.flaggedRevsList | def hasFlaggedRevs(self): retrn self.dbName in self.config.flaggedRevsList | f075237241fc24f3c92ad18d4956cc5c40d6dec7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9870/f075237241fc24f3c92ad18d4956cc5c40d6dec7/WikiDump.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
4678,
2423,
426,
6904,
12,
2890,
4672,
327,
365,
18,
1966,
461,
316,
365,
18,
1425,
18,
6420,
2423,
426,
6904,
682,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
4678,
2423,
426,
6904,
12,
2890,
4672,
327,
365,
18,
1966,
461,
316,
365,
18,
1425,
18,
6420,
2423,
426,
6904,
682,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
'location_dest_id': fields.many2one('stock.location', 'Delivery Location', readonly=True, states={'draft':[('readonly',False)]}), | 'location_dest_id': fields.many2one('stock.location', 'Delivery Location', required=True, readonly=True, states={'draft':[('readonly',False)]}), | def _amount_total(self, cr, uid, ids, field_name, arg, context): res = {} untax = self._amount_untaxed(cr, uid, ids, field_name, arg, context) tax = self._amount_tax(cr, uid, ids, field_name, arg, context) cur_obj=self.pool.get('res.currency') for id in ids: repair=self.browse(cr, uid, [id])[0] cur=repair.pricelist_id.... | 0fe331ad2ffd5967cda7186e9110f283bdb71cab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/0fe331ad2ffd5967cda7186e9110f283bdb71cab/mrp_repair.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8949,
67,
4963,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
4672,
400,
273,
2618,
640,
8066,
273,
365,
6315,
8949,
67,
318,
8066,
329,
12,
3353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8949,
67,
4963,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
4672,
400,
273,
2618,
640,
8066,
273,
365,
6315,
8949,
67,
318,
8066,
329,
12,
3353,... |
'WHERE '+self._table+'.id IN ('+ids_str+')'+' and '.join(d1), d2) | 'WHERE '+self._table+'.id IN ('+ids_str+')'+d1, d2) | def write(self, cr, user, ids, vals, context=None): readonly = None for field in vals.copy(): fobj = None if field in self._columns: fobj = self._columns[field] else: fobj = self._inherit_fields[field][2] if not fobj: continue groups = fobj.write | 1af47e0487851c6562a18c1c31badb4a86cd7618 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/1af47e0487851c6562a18c1c31badb4a86cd7618/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
17102,
273,
599,
364,
652,
316,
5773,
18,
3530,
13332,
24705,
273,
599,
309,
652,
316,
365,
6315,
5112,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
17102,
273,
599,
364,
652,
316,
5773,
18,
3530,
13332,
24705,
273,
599,
309,
652,
316,
365,
6315,
5112,
... |
g2c = 'g2c-pic' | g2c = self.g2c + '-pic' | def get_libraries(self): opt = [] d = self.get_libgcc_dir() if d is not None: g2c = 'g2c-pic' f = self.static_lib_format % (g2c, self.static_lib_extension) if not os.path.isfile(os.path.join(d,f)): g2c = 'g2c' else: g2c = 'g2c' if sys.platform=='win32': opt.append('gcc') if g2c is not None: opt.append(g2c) if sys.plat... | a4d16e5474254922bf4ea0ab76c4293aa2fba519 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/a4d16e5474254922bf4ea0ab76c4293aa2fba519/gnu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
31417,
12,
2890,
4672,
2153,
273,
5378,
302,
273,
365,
18,
588,
67,
2941,
75,
952,
67,
1214,
1435,
309,
302,
353,
486,
599,
30,
314,
22,
71,
273,
365,
18,
75,
22,
71,
397,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31417,
12,
2890,
4672,
2153,
273,
5378,
302,
273,
365,
18,
588,
67,
2941,
75,
952,
67,
1214,
1435,
309,
302,
353,
486,
599,
30,
314,
22,
71,
273,
365,
18,
75,
22,
71,
397,... |
s.bind('', self.port) | s.bind(('', self.port)) | def __init__(self, port=None, connection_hook=None): self.connections = [] self.port = port or self.default_port self.connection_hook = connection_hook | 77e96eaa06f405209f4fd1e3d6e0d074c2c0d8a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/77e96eaa06f405209f4fd1e3d6e0d074c2c0d8a6/protocol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1756,
33,
7036,
16,
1459,
67,
4476,
33,
7036,
4672,
365,
18,
13313,
273,
5378,
365,
18,
655,
273,
1756,
578,
365,
18,
1886,
67,
655,
365,
18,
4071,
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,
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,
1756,
33,
7036,
16,
1459,
67,
4476,
33,
7036,
4672,
365,
18,
13313,
273,
5378,
365,
18,
655,
273,
1756,
578,
365,
18,
1886,
67,
655,
365,
18,
4071,
67,... |
if data[0] == "menu": if menustore.iter_has_child(src_iter): copy_rows(new_iter, src_iter, menustore, model) elif data[0] == "installed": if installedstore.iter_has_child(src_iter): copy_rows(new_iter, src_iter, installedstore, model) if data[0] == "menu": menustore.remove(src_iter) | if int(data[1]) != sibling and int(data[1]) != parent: if data[0] == "menu": if menustore.iter_has_child(src_iter): copy_rows(new_iter, src_iter, menustore, model) elif data[0] == "installed": if installedstore.iter_has_child(src_iter): copy_rows(new_iter, src_iter, installedstore, model) if data[0] == "menu": menustor... | def drag_data_received_data(treeview, context, x, y, selection, info, etime): model = treeview.get_model() data = selection.data global src_iter temp_dict = {} if data[:4]=="http": data = string.split(data, "?") data[1] = string.split(data[1], "&") for row in data[1]: key, content = string.split(row, "=") content = str... | 47bde868a82da1716473d9e648050fb034dfb8d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2725/47bde868a82da1716473d9e648050fb034dfb8d2/denu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8823,
67,
892,
67,
15213,
67,
892,
12,
3413,
1945,
16,
819,
16,
619,
16,
677,
16,
4421,
16,
1123,
16,
225,
2374,
4672,
938,
273,
2151,
1945,
18,
588,
67,
2284,
1435,
501,
273,
4421,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8823,
67,
892,
67,
15213,
67,
892,
12,
3413,
1945,
16,
819,
16,
619,
16,
677,
16,
4421,
16,
1123,
16,
225,
2374,
4672,
938,
273,
2151,
1945,
18,
588,
67,
2284,
1435,
501,
273,
4421,
... |
avail = [] | avail = [] | def doPackageLists(self, pkgnarrow='all', patterns=None, showdups=None, ignore_case=False): """generates lists of packages, un-reduced, based on pkgnarrow option""" | 73608510136c99d64d53a82d34851986935d56d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/73608510136c99d64d53a82d34851986935d56d3/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2261,
7432,
12,
2890,
16,
2365,
1600,
7815,
2218,
454,
2187,
6884,
33,
7036,
16,
2405,
72,
18294,
33,
7036,
16,
2305,
67,
3593,
33,
8381,
4672,
3536,
3441,
815,
6035,
434,
5907,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2261,
7432,
12,
2890,
16,
2365,
1600,
7815,
2218,
454,
2187,
6884,
33,
7036,
16,
2405,
72,
18294,
33,
7036,
16,
2305,
67,
3593,
33,
8381,
4672,
3536,
3441,
815,
6035,
434,
5907,
1... |
if saveFileName: self.saveFileName = saveFileName else: self.saveFileName = getConfig()['global']['saveFile'] | object.__init__(self) if saveFileName: self.saveFileName = os.path.join( getConfig()['global']['workingDir'], saveFileName ) else: self.saveFileName = os.path.join(getConfig()['global']['workingDir'], getConfig()['global']['saveFile']) | def __init__(self, saveFileName=None): u"""saveFileName: location where we store persistence data lastChecked: seconds since epoch when we last checked the threads downloads: a list of download links, so that we do not repeat ourselves minScanTime: a dictionary, keyed by rss link aka thread name, with values of tuples ... | 0cb1506674182526857aef8db2e41c9d94e09cdf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/0cb1506674182526857aef8db2e41c9d94e09cdf/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1923,
4771,
33,
7036,
4672,
582,
8395,
5688,
4771,
30,
2117,
1625,
732,
1707,
9756,
501,
1142,
11454,
30,
3974,
3241,
7632,
1347,
732,
1142,
5950,
326,
740... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
4771,
33,
7036,
4672,
582,
8395,
5688,
4771,
30,
2117,
1625,
732,
1707,
9756,
501,
1142,
11454,
30,
3974,
3241,
7632,
1347,
732,
1142,
5950,
326,
740... |
elif 0 < self.servertimeout < 3600: | elif 0 < self.servertimeout < 600: | def setServerTimer(self): if self.servertimeout == -1: self.servertimeout = 15 elif 0 < self.servertimeout < 3600: self.servertimeout = self.servertimeout * 2 self.servertimer = threading.Timer(self.servertimeout, self.ServerTimeout) self.servertimer.start() self.logMessage(_("The server seems to be down or not respond... | 709f13bcf92bb586dda4f6c80360acf19f44d12b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/709f13bcf92bb586dda4f6c80360acf19f44d12b/pynicotine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2081,
6777,
12,
2890,
4672,
309,
365,
18,
3567,
4538,
422,
300,
21,
30,
365,
18,
3567,
4538,
273,
4711,
1327,
374,
411,
365,
18,
3567,
4538,
411,
14707,
30,
365,
18,
3567,
4538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2081,
6777,
12,
2890,
4672,
309,
365,
18,
3567,
4538,
422,
300,
21,
30,
365,
18,
3567,
4538,
273,
4711,
1327,
374,
411,
365,
18,
3567,
4538,
411,
14707,
30,
365,
18,
3567,
4538,
... |
maketables() | maketables(1) | def dump(t1, t2, shift, bytes): print >>sys.stderr, "%d+%d bins at shift %d; %d bytes" % ( len(t1), len(t2), shift, bytes) | f70c0d142ca2d51d6b27a5b66866f40595929c59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f70c0d142ca2d51d6b27a5b66866f40595929c59/makeunicodedata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
88,
21,
16,
268,
22,
16,
4654,
16,
1731,
4672,
1172,
1671,
9499,
18,
11241,
16,
2213,
72,
15,
9,
72,
8963,
622,
4654,
738,
72,
31,
738,
72,
1731,
6,
738,
261,
562,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
88,
21,
16,
268,
22,
16,
4654,
16,
1731,
4672,
1172,
1671,
9499,
18,
11241,
16,
2213,
72,
15,
9,
72,
8963,
622,
4654,
738,
72,
31,
738,
72,
1731,
6,
738,
261,
562,
12,
... |
pass | def __init__(self): if _debug: print "\t%s: Called Text.__init__()" % rendererName self.font = "Times" pass | 62078b286467bb98c79ebc509c9a691dac1367d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/62078b286467bb98c79ebc509c9a691dac1367d3/text.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
309,
389,
4148,
30,
1172,
1548,
88,
9,
87,
30,
11782,
3867,
16186,
2738,
972,
10031,
738,
5690,
461,
365,
18,
5776,
273,
315,
10694,
6,
1342,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
309,
389,
4148,
30,
1172,
1548,
88,
9,
87,
30,
11782,
3867,
16186,
2738,
972,
10031,
738,
5690,
461,
365,
18,
5776,
273,
315,
10694,
6,
1342,
2,
-100,
... | |
'url': (self.castString, {' | 'url': (self.castNone, {' | def __init__(self, ownerDocument=None, file=None): if ownerDocument is None: ownerDocument = self.documentClass() self.ownerDocument = ownerDocument | a8c51bc71d05a4264b928903496af3823a8dacfb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7864/a8c51bc71d05a4264b928903496af3823a8dacfb/TeX.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19701,
33,
7036,
16,
585,
33,
7036,
4672,
309,
19701,
353,
599,
30,
19701,
273,
365,
18,
5457,
797,
1435,
365,
18,
8443,
2519,
273,
19701,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19701,
33,
7036,
16,
585,
33,
7036,
4672,
309,
19701,
353,
599,
30,
19701,
273,
365,
18,
5457,
797,
1435,
365,
18,
8443,
2519,
273,
19701,
2,
-100,
-100,... |
shop=self.pool.get('sale.shop').browse(cr,uid,shop_id) v['project_id']=shop.project_id.id | shop = self.pool.get('sale.shop').browse(cr, uid, shop_id) v['project_id'] = shop.project_id.id | def onchange_shop_id(self, cr, uid, ids, shop_id): v={} if shop_id: shop=self.pool.get('sale.shop').browse(cr,uid,shop_id) v['project_id']=shop.project_id.id # Que faire si le client a une pricelist a lui ? if shop.pricelist_id.id: v['pricelist_id']=shop.pricelist_id.id #v['payment_default_id']=shop.payment_default_id.... | fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
5020,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
12122,
67,
350,
4672,
331,
12938,
309,
12122,
67,
350,
30,
12122,
273,
365,
18,
6011,
18,
588,
2668,
87,
534... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3427,
67,
5020,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
12122,
67,
350,
4672,
331,
12938,
309,
12122,
67,
350,
30,
12122,
273,
365,
18,
6011,
18,
588,
2668,
87,
534... |
cssdict['font-size'] = fnums[3+int(size)] | esize = 3 + int(size) if esize < 1: esize = 1 if esize > 7: esize = 7 cssdict['font-size'] = fnums[esize] | def flatten_node(self, node, stylizer, names, styles, psize, left=0): if not isinstance(node.tag, basestring) \ or namespace(node.tag) != XHTML_NS: return tag = barename(node.tag) style = stylizer.style(node) cssdict = style.cssdict() if 'align' in node.attrib: cssdict['text-align'] = node.attrib['align'] del node.attr... | 825045db71bb0540555e83a5438d06f6918b23db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/825045db71bb0540555e83a5438d06f6918b23db/flatcss.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5341,
67,
2159,
12,
2890,
16,
756,
16,
16253,
80,
1824,
16,
1257,
16,
5687,
16,
293,
1467,
16,
2002,
33,
20,
4672,
309,
486,
1549,
12,
2159,
18,
2692,
16,
10699,
13,
521,
578,
1981,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5341,
67,
2159,
12,
2890,
16,
756,
16,
16253,
80,
1824,
16,
1257,
16,
5687,
16,
293,
1467,
16,
2002,
33,
20,
4672,
309,
486,
1549,
12,
2159,
18,
2692,
16,
10699,
13,
521,
578,
1981,
... |
timer = LocalTimer(cb, args, kwargs) event_timeout = event.timeout(seconds, timer) timer.impl = event_timeout return timer | current = api.getcurrent() if current is self.greenlet: return self.schedule_call_global(seconds, cb, *args, **kwargs) event_impl = event.event(_scheduled_call_local, (cb, args, kwargs, current)) wrapper = event_wrapper(event_impl, seconds=seconds) self.events_to_add.append(wrapper) return wrapper | def schedule_call_local(self, seconds, cb, *args, **kwargs): timer = LocalTimer(cb, args, kwargs) event_timeout = event.timeout(seconds, timer) timer.impl = event_timeout return timer | c728f1c908af8a79377310e7dad92816ae1ae4f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/c728f1c908af8a79377310e7dad92816ae1ae4f1/libevent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4788,
67,
1991,
67,
3729,
12,
2890,
16,
3974,
16,
2875,
16,
380,
1968,
16,
2826,
4333,
4672,
5441,
273,
3566,
6777,
12,
7358,
16,
833,
16,
1205,
13,
871,
67,
4538,
273,
871,
18,
4538... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4788,
67,
1991,
67,
3729,
12,
2890,
16,
3974,
16,
2875,
16,
380,
1968,
16,
2826,
4333,
4672,
5441,
273,
3566,
6777,
12,
7358,
16,
833,
16,
1205,
13,
871,
67,
4538,
273,
871,
18,
4538... |
INF_VERSION : 'version', INF_PROCNAME : 'procname', INF_LFLAGS : 'lflags', INF_DEMNAMES : 'demnames', INF_FILETYPE : 'filetype', INF_FCORESIZ : 'fcoresize', INF_CORESTART : 'corestart', INF_OSTYPE : 'ostype', INF_APPTYPE : 'apptype', INF_START_SP : 'startSP', INF_START_AF : 'af', I... | INF_VERSION : (False, 'version'), INF_PROCNAME : (False, 'procname'), INF_LFLAGS : (False, 'lflags'), INF_DEMNAMES : (False, 'demnames'), INF_FILETYPE : (False, 'filetype'), INF_FCORESIZ : (False, 'fcoresize'), INF_CORESTART : (False, 'corestart'), INF_OSTYPE : (False, 'ostype'), INF_APPTYPE... | def SetCharPrm (offset, value): SetLongPrm(offset, value) | 29b47497d67cadb8b21d1a3429f7b9be50b6f793 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/29b47497d67cadb8b21d1a3429f7b9be50b6f793/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
2156,
2050,
81,
261,
3348,
16,
460,
4672,
1000,
3708,
2050,
81,
12,
3348,
16,
460,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
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,
1000,
2156,
2050,
81,
261,
3348,
16,
460,
4672,
1000,
3708,
2050,
81,
12,
3348,
16,
460,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.assertEqual(check_line('f("a=1")', REPORTER), None) | self.assertEqual(check_line('f("a=1")'), None) | def test_known_values_instring_1(self): self.assertEqual(check_line('f("a=1")', REPORTER), None) | 455beb61539a40eb35dfd637d0cd015a7cbec7a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/928/455beb61539a40eb35dfd637d0cd015a7cbec7a0/test_format.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2994,
67,
2372,
67,
267,
1080,
67,
21,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
1893,
67,
1369,
2668,
74,
2932,
69,
33,
21,
7923,
2187,
2438,
52,
916,
2560,
3631,
599,
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,
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,
2994,
67,
2372,
67,
267,
1080,
67,
21,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
1893,
67,
1369,
2668,
74,
2932,
69,
33,
21,
7923,
2187,
2438,
52,
916,
2560,
3631,
599,
13,... |
print text_size | def getTextSizeFromImage(self, image, page_resolution): text_size = graphics.getTextSizeFromImage(image) if not text_size: return None y_resolution = float(page_resolution) text_size /= y_resolution text_size *= DTP print text_size return round(text_size) | 990ec303f61ed8f27796a4399b0306be055080a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3764/990ec303f61ed8f27796a4399b0306be055080a4/layoutAnalysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6701,
1225,
1265,
2040,
12,
2890,
16,
1316,
16,
1363,
67,
19182,
4672,
977,
67,
1467,
273,
17313,
18,
588,
1528,
1225,
1265,
2040,
12,
2730,
13,
309,
486,
977,
67,
1467,
30,
327,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6701,
1225,
1265,
2040,
12,
2890,
16,
1316,
16,
1363,
67,
19182,
4672,
977,
67,
1467,
273,
17313,
18,
588,
1528,
1225,
1265,
2040,
12,
2730,
13,
309,
486,
977,
67,
1467,
30,
327,
599,
... | |
if not partner_id and user_id : | if not partner_id and not user_id : | def _find_project_bug(self, cr, uid,section_id,lp_server=None,context={}): | 7ee1f15663eb8bfca25ecb85124286fb683d82e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee1f15663eb8bfca25ecb85124286fb683d82e7/crm_lp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
4406,
67,
925,
12,
2890,
16,
4422,
16,
4555,
16,
3464,
67,
350,
16,
9953,
67,
3567,
33,
7036,
16,
2472,
12938,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
4720,
67,
4406,
67,
925,
12,
2890,
16,
4422,
16,
4555,
16,
3464,
67,
350,
16,
9953,
67,
3567,
33,
7036,
16,
2472,
12938,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.ThreshKByte = default_ThreshKByte | self.ThreshKByte = (.8 * self.MaxKByte) | def __init__(self, xid, name, rspec): self.xid = xid self.name = name self.time = 0 self.bytes = 0 self.i2bytes = 0 self.MaxRate = default_MaxRate self.MinRate = default_MinRate self.Maxi2Rate = default_Maxi2Rate self.Mini2Rate = default_Mini2Rate self.MaxKByte = default_MaxKByte self.ThreshKByte = default_ThreshKByte ... | 329419f2c6de2b011a55dbd9f1f91337ef3b840a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6995/329419f2c6de2b011a55dbd9f1f91337ef3b840a/bwmon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19031,
16,
508,
16,
436,
2793,
4672,
365,
18,
6212,
273,
19031,
365,
18,
529,
273,
508,
365,
18,
957,
273,
374,
365,
18,
3890,
273,
374,
365,
18,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19031,
16,
508,
16,
436,
2793,
4672,
365,
18,
6212,
273,
19031,
365,
18,
529,
273,
508,
365,
18,
957,
273,
374,
365,
18,
3890,
273,
374,
365,
18,
77,
... |
if atr.indexed: indexes.add(((atr.columnName,), (atr.attrname,))) for compound in atr.compoundIndexes: indexes.add((tuple(inatr.columnName for inatr in compound), tuple(inatr.attrname for inatr in compound))) | def _actualTableCreation(self, tableClass, key): """ In the event that an Item subclass which has never before been added to the schema of our SQLite database, create the table, update the schema, and return the typeID. This is internal to the implementation of getTypeID. It must be run in a transaction. | 0f84c461dd47f0bbf091904d0fe01eee5f8480ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6981/0f84c461dd47f0bbf091904d0fe01eee5f8480ff/store.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18672,
1388,
9906,
12,
2890,
16,
1014,
797,
16,
498,
4672,
3536,
657,
326,
871,
716,
392,
4342,
10177,
1492,
711,
5903,
1865,
2118,
3096,
358,
326,
1963,
434,
3134,
16192,
2063,
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,
18672,
1388,
9906,
12,
2890,
16,
1014,
797,
16,
498,
4672,
3536,
657,
326,
871,
716,
392,
4342,
10177,
1492,
711,
5903,
1865,
2118,
3096,
358,
326,
1963,
434,
3134,
16192,
2063,
16,... | |
return negInf | return _negInf | def ln(self, context=None): """Returns the natural (base e) 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,
7211,
12,
2890,
16,
819,
33,
7036,
4672,
3536,
1356,
326,
15145,
261,
1969,
425,
13,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7211,
12,
2890,
16,
819,
33,
7036,
4672,
3536,
1356,
326,
15145,
261,
1969,
425,
13,
613,
31249,
434,
365,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
clean_filename = sanitize(filename) base = os.path.split(os.path.splitext(clean_filename)[0])[1] abs_base = os.path.abspath(os.path.split(os.path.splitext(clean_filename)[0])[0]) | base = sanitize(os.path.abspath(filename)) | def cython(filename, verbose=False, compile_message=False, use_cache=False, create_local_c_file=False, annotate=True, sage_namespace=True): if not filename.endswith('pyx'): print "File (=%s) should have extension .pyx"%filename clean_filename = sanitize(filename) base = os.path.split(os.path.splitext(clean_filename)[0... | d820d4249633985ac4ede9382662c0a655b77f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d820d4249633985ac4ede9382662c0a655b77f89/cython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6143,
3041,
12,
3459,
16,
3988,
33,
8381,
16,
4074,
67,
2150,
33,
8381,
16,
999,
67,
2493,
33,
8381,
16,
752,
67,
3729,
67,
71,
67,
768,
33,
8381,
16,
13795,
33,
5510,
16,
272,
410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6143,
3041,
12,
3459,
16,
3988,
33,
8381,
16,
4074,
67,
2150,
33,
8381,
16,
999,
67,
2493,
33,
8381,
16,
752,
67,
3729,
67,
71,
67,
768,
33,
8381,
16,
13795,
33,
5510,
16,
272,
410... |
`beginchar' is the start character for the fragment. If self is not looking at an instance of `beginchar' then getdelimited returns the empty string. | `beginchar' is the start character for the fragment. If self is not looking at an instance of `beginchar' then getdelimited returns the empty string. | def getdelimited(self, beginchar, endchars, allowcomments = 1): """Parse a header fragment delimited by special characters. | 8ede07cdfca2de9fd7d4ed84bc2b545f5d60f4da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8ede07cdfca2de9fd7d4ed84bc2b545f5d60f4da/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3771,
1038,
329,
12,
2890,
16,
2376,
3001,
16,
679,
7549,
16,
1699,
9231,
273,
404,
4672,
3536,
3201,
279,
1446,
5481,
18609,
635,
4582,
3949,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3771,
1038,
329,
12,
2890,
16,
2376,
3001,
16,
679,
7549,
16,
1699,
9231,
273,
404,
4672,
3536,
3201,
279,
1446,
5481,
18609,
635,
4582,
3949,
18,
2,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.