rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
) toggle_actions = ( ('Status Bar', None, _('_Status Bar'), None, _('Status Bar'), self.toggle_status_bar, self.statusbar_show), ('Toolbar', None, _('_Toolbar'), None, _('Toolbar'), self.toggle_toolbar, self.toolbar_show), ) uiDescription = """ <ui> <popup name="Popup"> <menuitem action="Next Image"/> <menuitem action="Previous Image"/> <separator name="FM1"/> <menuitem action="Out"/> <menuitem action="In"/> <menuitem action="1:1"/> <menuitem action="Fit"/> <separator name="FM2"/> <menuitem action="Rotate Left"/> <menuitem action="Rotate Right"/> <separator name="FM4"/> <menuitem action="Start Slideshow"/> <menuitem action="Stop Slideshow"/> <separator name="FM3"/> <menuitem action="Exit Full Screen"/> <menuitem action="Full Screen"/> </popup> <menubar name="MainMenu"> <menu action="FileMenu"> <menuitem action="Open Image"/> <menuitem action="Open Folder"/> <separator name="FM1"/> <menuitem action="Quit"/> </menu> <menu action="EditMenu"> <menuitem action="Rotate Left"/> <menuitem action="Rotate Right"/> <separator name="FM1"/> <menuitem action="Flip Vertically"/> <menuitem action="Flip Horizontally"/> <separator name="FM4"/> <menuitem action="Delete Image"/> <separator name="FM3"/> <menuitem action="Open in Editor"/> <separator name="FM2"/> <menuitem action="Preferences"/> </menu> <menu action="ViewMenu"> <menuitem action="Out"/> <menuitem action="In"/> <menuitem action="1:1"/> <menuitem action="Fit"/> <separator name="FM2"/> <menuitem action="Toolbar"/> <menuitem action="Status Bar"/> <separator name="FM1"/> <menuitem action="Full Screen"/> </menu> <menu action="GoMenu"> <menuitem action="Next Image"/> <menuitem action="Previous Image"/> <menuitem action="Random Image"/> <separator name="FM1"/> <menuitem action="First Image"/> <menuitem action="Last Image"/> <separator name="FM2"/> <menuitem action="Start Slideshow"/> <menuitem action="Stop Slideshow"/> </menu> <menu action="HelpMenu"> <menuitem action="About"/> </menu> </menubar> <toolbar name="MainToolbar"> <toolitem action="Open Image"/> <separator name="FM1"/> <toolitem action="Out"/> <toolitem action="In"/> <toolitem action="1:1"/> <toolitem action="Fit"/> <separator name="FM2"/> <toolitem action="Previous2"/> <toolitem action="Next2"/> </toolbar> </ui> """ | ) toggle_actions = ( ('Status Bar', None, _('_Status Bar'), None, _('Status Bar'), self.toggle_status_bar, self.statusbar_show), ('Toolbar', None, _('_Toolbar'), None, _('Toolbar'), self.toggle_toolbar, self.toolbar_show), ) uiDescription = """ <ui> <popup name="Popup"> <menuitem action="Next Image"/> <menuitem action="Previous Image"/> <separator name="FM1"/> <menuitem action="Out"/> <menuitem action="In"/> <menuitem action="1:1"/> <menuitem action="Fit"/> <separator name="FM2"/> <menuitem action="Rotate Left"/> <menuitem action="Rotate Right"/> <separator name="FM4"/> <menuitem action="Start Slideshow"/> <menuitem action="Stop Slideshow"/> <separator name="FM3"/> <menuitem action="Exit Full Screen"/> <menuitem action="Full Screen"/> </popup> <menubar name="MainMenu"> <menu action="FileMenu"> <menuitem action="Open Image"/> <menuitem action="Open Folder"/> <separator name="FM1"/> <menuitem action="Quit"/> </menu> <menu action="EditMenu"> <menuitem action="Rotate Left"/> <menuitem action="Rotate Right"/> <separator name="FM1"/> <menuitem action="Flip Vertically"/> <menuitem action="Flip Horizontally"/> <separator name="FM4"/> <menuitem action="Delete Image"/> <separator name="FM3"/> <menuitem action="Open in Editor"/> <separator name="FM2"/> <menuitem action="Preferences"/> </menu> <menu action="ViewMenu"> <menuitem action="Out"/> <menuitem action="In"/> <menuitem action="1:1"/> <menuitem action="Fit"/> <separator name="FM2"/> <menuitem action="Toolbar"/> <menuitem action="Status Bar"/> <separator name="FM1"/> <menuitem action="Full Screen"/> </menu> <menu action="GoMenu"> <menuitem action="Next Image"/> <menuitem action="Previous Image"/> <menuitem action="Random Image"/> <separator name="FM1"/> <menuitem action="First Image"/> <menuitem action="Last Image"/> <separator name="FM2"/> <menuitem action="Start Slideshow"/> <menuitem action="Stop Slideshow"/> </menu> <menu action="HelpMenu"> <menuitem action="About"/> </menu> </menubar> <toolbar name="MainToolbar"> <toolitem action="Open Image"/> <separator name="FM1"/> <toolitem action="Out"/> <toolitem action="In"/> <toolitem action="1:1"/> <toolitem action="Fit"/> <separator name="FM2"/> <toolitem action="Previous2"/> <toolitem action="Next2"/> </toolbar> </ui> """ | def __init__(self): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if translate: hbox = gtk.HBox(spacing=3) hbox.pack_start(widget) img = gtk.Image() img.set_from_stock('terp-translate', gtk.ICON_SIZE_MENU) ebox = gtk.EventBox() ebox.set_events(gtk.gdk.BUTTON_PRESS_MASK) self.trans_box.append((ebox, name, fname, widget)) ebox.add(img) hbox.pack_start(ebox, fill=False, expand=False) hbox.show_all() | def wid_add(self, widget, name=None, expand=False, ypadding=2, rowspan=1, colspan=1, translate=False, fname=None, help_tip=False, fill=False): (table, width, height) = self.cont[-1] if colspan > self.col[-1]: colspan = self.col[-1] length = name and 1 or 0 if colspan + width + length > self.col[-1]: self.newline() (table, width, height) = self.cont[-1] yopt = False if expand: yopt = yopt | gtk.EXPAND if fill: yopt = yopt | gtk.FILL if colspan == 1 and length == 1: colspan = 2 if name: label = gtk.Label(name) eventbox = gtk.EventBox() eventbox.set_events(gtk.gdk.BUTTON_PRESS_MASK) self.trans_box_label.append((eventbox, name, fname)) eventbox.add(label) if help_tip: self.tooltips.set_tip(eventbox, help_tip) self.tooltips.enable() eventbox.show() if '_' in name: label.set_text_with_mnemonic(name) label.set_mnemonic_widget(widget) label.set_alignment(1.0, 0.5) table.attach(eventbox, width, width + 1, height, height + rowspan, yoptions=yopt, xoptions=gtk.FILL, ypadding=ypadding, xpadding=2) hbox = widget hbox.show_all() if translate: hbox = gtk.HBox(spacing=3) hbox.pack_start(widget) img = gtk.Image() img.set_from_stock('terp-translate', gtk.ICON_SIZE_MENU) ebox = gtk.EventBox() ebox.set_events(gtk.gdk.BUTTON_PRESS_MASK) self.trans_box.append((ebox, name, fname, widget)) | 49a255dbfd8dc896f11f960d9184a024445edd01 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/49a255dbfd8dc896f11f960d9184a024445edd01/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15481,
67,
1289,
12,
2890,
16,
3604,
16,
508,
33,
7036,
16,
4542,
33,
8381,
16,
677,
9598,
33,
22,
16,
1027,
3969,
33,
21,
16,
20856,
33,
21,
16,
4204,
33,
8381,
16,
5299,
33,
7036,
16,
2809,
67,
14587,
33,
8381,
16,
3636,
33,
8381,
4672,
261,
2121,
16,
1835,
16,
2072,
13,
273,
365,
18,
1213,
18919,
21,
65,
309,
20856,
405,
365,
18,
1293,
18919,
21,
14542,
20856,
273,
365,
18,
1293,
18919,
21,
65,
769,
273,
508,
471,
404,
578,
374,
309,
20856,
397,
1835,
397,
769,
405,
365,
18,
1293,
18919,
21,
14542,
365,
18,
22861,
1435,
261,
2121,
16,
1835,
16,
2072,
13,
273,
365,
18,
1213,
18919,
21,
65,
677,
3838,
273,
1083,
309,
4542,
30,
677,
3838,
273,
677,
3838,
571,
22718,
18,
16109,
4307,
309,
3636,
30,
677,
3838,
273,
677,
3838,
571,
22718,
18,
29818,
309,
20856,
422,
404,
471,
769,
422,
404,
30,
20856,
273,
576,
309,
508,
30,
1433,
273,
22718,
18,
2224,
12,
529,
13,
871,
2147,
273,
22718,
18,
1133,
3514,
1435,
871,
2147,
18,
542,
67,
5989,
12,
4521,
79,
18,
75,
2883,
18,
20068,
67,
22526,
67,
11704,
13,
365,
18,
2338,
67,
2147,
67,
1925,
18,
6923,
12443,
2575,
2147,
16,
508,
16,
5299,
3719,
871,
2147,
18,
1289,
12,
1925,
13,
309,
2809,
67,
14587,
30,
365,
18,
869,
4397,
7146,
18,
542,
67,
14587,
12,
2575,
2147,
16,
2809,
67,
14587,
13,
365,
18,
869,
4397,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15481,
67,
1289,
12,
2890,
16,
3604,
16,
508,
33,
7036,
16,
4542,
33,
8381,
16,
677,
9598,
33,
22,
16,
1027,
3969,
33,
21,
16,
20856,
33,
21,
16,
4204,
33,
8381,
16,
5299,
33,
7036,
16,
2809,
67,
14587,
33,
8381,
16,
3636,
33,
8381,
4672,
261,
2121,
16,
1835,
16,
2072,
13,
273,
365,
18,
1213,
18919,
21,
65,
309,
20856,
405,
365,
18,
1293,
18919,
21,
14542,
20856,
273,
365,
18,
1293,
18919,
21,
65,
769,
273,
508,
471,
404,
578,
374,
309,
20856,
397,
1835,
397,
769,
405,
365,
18,
1293,
18919,
21,
14542,
365,
18,
22861,
1435,
261,
2121,
16,
1835,
16,
2072,
13,
273,
365,
18,
1213,
18919,
21,
65,
677,
2
] |
|
if cfg_target != cur_target: | elif map(int, cfg_target.split('.')) > map(int, cur_target.split('.')): | def _init_posix(): """Initialize the module as appropriate for POSIX systems.""" g = {} # load the installed Makefile: try: filename = get_makefile_filename() parse_makefile(filename, g) except IOError, msg: my_msg = "invalid Python installation: unable to open %s" % filename if hasattr(msg, "strerror"): my_msg = my_msg + " (%s)" % msg.strerror raise DistutilsPlatformError(my_msg) # load the installed pyconfig.h: try: filename = get_config_h_filename() parse_config_h(file(filename), g) except IOError, msg: my_msg = "invalid Python installation: unable to open %s" % filename if hasattr(msg, "strerror"): my_msg = my_msg + " (%s)" % msg.strerror raise DistutilsPlatformError(my_msg) # On MacOSX we need to check the setting of the environment variable # MACOSX_DEPLOYMENT_TARGET: configure bases some choices on it so # it needs to be compatible. # If it isn't set we set it to the configure-time value if sys.platform == 'darwin' and g.has_key('CONFIGURE_MACOSX_DEPLOYMENT_TARGET'): cfg_target = g['CONFIGURE_MACOSX_DEPLOYMENT_TARGET'] cur_target = os.getenv('MACOSX_DEPLOYMENT_TARGET', '') if cur_target == '': cur_target = cfg_target os.putenv('MACOSX_DEPLOYMENT_TARGET', cfg_target) if cfg_target != cur_target: my_msg = ('$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configure' % (cur_target, cfg_target)) raise DistutilsPlatformError(my_msg) # On AIX, there are wrong paths to the linker scripts in the Makefile # -- these paths are relative to the Python source, but when installed # the scripts are in another directory. if python_build: g['LDSHARED'] = g['BLDSHARED'] elif get_python_version() < '2.1': # The following two branches are for 1.5.2 compatibility. if sys.platform == 'aix4': # what about AIX 3.x ? # Linker script is in the config directory, not in Modules as the # Makefile says. python_lib = get_python_lib(standard_lib=1) ld_so_aix = os.path.join(python_lib, 'config', 'ld_so_aix') python_exp = os.path.join(python_lib, 'config', 'python.exp') g['LDSHARED'] = "%s %s -bI:%s" % (ld_so_aix, g['CC'], python_exp) elif sys.platform == 'beos': # Linker script is in the config directory. In the Makefile it is # relative to the srcdir, which after installation no longer makes # sense. python_lib = get_python_lib(standard_lib=1) linkerscript_path = string.split(g['LDSHARED'])[0] linkerscript_name = os.path.basename(linkerscript_path) linkerscript = os.path.join(python_lib, 'config', linkerscript_name) # XXX this isn't the right place to do this: adding the Python # library to the link, if needed, should be in the "build_ext" # command. (It's also needed for non-MS compilers on Windows, and # it's taken care of for them by the 'build_ext.get_libraries()' # method.) g['LDSHARED'] = ("%s -L%s/lib -lpython%s" % (linkerscript, PREFIX, get_python_version())) global _config_vars _config_vars = g | 59075eb264becaa8279f81a90846e8c248033c32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/59075eb264becaa8279f81a90846e8c248033c32/sysconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
24463,
13332,
3536,
7520,
326,
1605,
487,
5505,
364,
13803,
31773,
14908,
12123,
314,
273,
2618,
468,
1262,
326,
5876,
4344,
768,
30,
775,
30,
1544,
273,
336,
67,
6540,
768,
67,
3459,
1435,
1109,
67,
6540,
768,
12,
3459,
16,
314,
13,
1335,
8340,
16,
1234,
30,
3399,
67,
3576,
273,
315,
5387,
6600,
13193,
30,
13496,
358,
1696,
738,
87,
6,
738,
1544,
309,
3859,
12,
3576,
16,
315,
701,
1636,
6,
4672,
3399,
67,
3576,
273,
3399,
67,
3576,
397,
315,
6142,
87,
2225,
738,
1234,
18,
701,
1636,
225,
1002,
19893,
5471,
8201,
668,
12,
4811,
67,
3576,
13,
225,
468,
1262,
326,
5876,
2395,
1425,
18,
76,
30,
775,
30,
1544,
273,
336,
67,
1425,
67,
76,
67,
3459,
1435,
1109,
67,
1425,
67,
76,
12,
768,
12,
3459,
3631,
314,
13,
1335,
8340,
16,
1234,
30,
3399,
67,
3576,
273,
315,
5387,
6600,
13193,
30,
13496,
358,
1696,
738,
87,
6,
738,
1544,
309,
3859,
12,
3576,
16,
315,
701,
1636,
6,
4672,
3399,
67,
3576,
273,
3399,
67,
3576,
397,
315,
6142,
87,
2225,
738,
1234,
18,
701,
1636,
225,
1002,
19893,
5471,
8201,
668,
12,
4811,
67,
3576,
13,
225,
468,
2755,
13217,
4618,
60,
732,
1608,
358,
866,
326,
3637,
434,
326,
3330,
2190,
468,
14246,
4618,
60,
67,
1639,
22971,
3212,
67,
16374,
30,
5068,
8337,
2690,
7246,
603,
518,
1427,
468,
518,
4260,
358,
506,
7318,
18,
468,
971,
518,
5177,
1404,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
24463,
13332,
3536,
7520,
326,
1605,
487,
5505,
364,
13803,
31773,
14908,
12123,
314,
273,
2618,
468,
1262,
326,
5876,
4344,
768,
30,
775,
30,
1544,
273,
336,
67,
6540,
768,
67,
3459,
1435,
1109,
67,
6540,
768,
12,
3459,
16,
314,
13,
1335,
8340,
16,
1234,
30,
3399,
67,
3576,
273,
315,
5387,
6600,
13193,
30,
13496,
358,
1696,
738,
87,
6,
738,
1544,
309,
3859,
12,
3576,
16,
315,
701,
1636,
6,
4672,
3399,
67,
3576,
273,
3399,
67,
3576,
397,
315,
6142,
87,
2225,
738,
1234,
18,
701,
1636,
225,
1002,
19893,
5471,
8201,
668,
12,
4811,
67,
3576,
13,
225,
468,
1262,
326,
5876,
2395,
1425,
18,
76,
30,
775,
30,
2
] |
NewLib = os.path.join(InstallRoot_CompilerWithPrevious, "lib") | def CopyRecursive(From, To): CopyCommand = "xcopy /fiverdh " ToParent = os.path.dirname(To) if (os.name != "nt"): CopyCommand = "cp --preserve --recursive " print("mkdir " + ToParent) print(CopyCommand + From + " " + To) if os.path.isdir(To): shutil.rmtree(To) else: CreateDirectory(ToParent) shutil.copytree(From, To) return True | b209776b476bf401c3dff79e1c53369b5d15c9f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9328/b209776b476bf401c3dff79e1c53369b5d15c9f7/make-dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5631,
10483,
12,
1265,
16,
2974,
4672,
5631,
2189,
273,
315,
92,
3530,
342,
74,
1667,
19153,
315,
2974,
3054,
273,
1140,
18,
803,
18,
12287,
12,
774,
13,
309,
261,
538,
18,
529,
480,
315,
496,
6,
4672,
5631,
2189,
273,
315,
4057,
1493,
27297,
225,
1493,
10543,
315,
1172,
2932,
26686,
315,
397,
2974,
3054,
13,
1172,
12,
2951,
2189,
397,
6338,
397,
315,
315,
397,
2974,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
774,
4672,
11060,
18,
86,
17371,
12,
774,
13,
469,
30,
1788,
2853,
12,
774,
3054,
13,
11060,
18,
3530,
3413,
12,
1265,
16,
2974,
13,
327,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5631,
10483,
12,
1265,
16,
2974,
4672,
5631,
2189,
273,
315,
92,
3530,
342,
74,
1667,
19153,
315,
2974,
3054,
273,
1140,
18,
803,
18,
12287,
12,
774,
13,
309,
261,
538,
18,
529,
480,
315,
496,
6,
4672,
5631,
2189,
273,
315,
4057,
1493,
27297,
225,
1493,
10543,
315,
1172,
2932,
26686,
315,
397,
2974,
3054,
13,
1172,
12,
2951,
2189,
397,
6338,
397,
315,
315,
397,
2974,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
774,
4672,
11060,
18,
86,
17371,
12,
774,
13,
469,
30,
1788,
2853,
12,
774,
3054,
13,
11060,
18,
3530,
3413,
12,
1265,
16,
2974,
13,
327,
1053,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
assert numpy.allclose(rval_cpu, rval_gpu,rtol=1e-4,atol=1e-6) | assert numpy.allclose(rval_cpu, rval_gpu,rtol=1e-4,atol=1e-4) | def test_conv_nnet2(): numpy.random.seed(23456) rval_cpu = run_conv_nnet2(shared) numpy.random.seed(23456) rval_gpu = run_conv_nnet2(tcn.shared_constructor) assert numpy.allclose(rval_cpu, rval_gpu,rtol=1e-4,atol=1e-6) | 1b5c9a7103c69d9dffc5877df1986dce48c58747 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/1b5c9a7103c69d9dffc5877df1986dce48c58747/test_nnet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4896,
67,
82,
2758,
22,
13332,
3972,
18,
9188,
18,
12407,
12,
17959,
4313,
13,
14267,
67,
11447,
273,
1086,
67,
4896,
67,
82,
2758,
22,
12,
11574,
13,
3972,
18,
9188,
18,
12407,
12,
17959,
4313,
13,
14267,
67,
23162,
273,
1086,
67,
4896,
67,
82,
2758,
22,
12,
5111,
82,
18,
11574,
67,
12316,
13,
1815,
3972,
18,
454,
4412,
12,
86,
1125,
67,
11447,
16,
14267,
67,
23162,
16,
86,
3490,
33,
21,
73,
17,
24,
16,
270,
355,
33,
21,
73,
17,
24,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4896,
67,
82,
2758,
22,
13332,
3972,
18,
9188,
18,
12407,
12,
17959,
4313,
13,
14267,
67,
11447,
273,
1086,
67,
4896,
67,
82,
2758,
22,
12,
11574,
13,
3972,
18,
9188,
18,
12407,
12,
17959,
4313,
13,
14267,
67,
23162,
273,
1086,
67,
4896,
67,
82,
2758,
22,
12,
5111,
82,
18,
11574,
67,
12316,
13,
1815,
3972,
18,
454,
4412,
12,
86,
1125,
67,
11447,
16,
14267,
67,
23162,
16,
86,
3490,
33,
21,
73,
17,
24,
16,
270,
355,
33,
21,
73,
17,
24,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print my_damadged if my_losses > 0: | if long(my_losses) >0 : | def clean(self): cleaned_data = self.cleaned_data my_losses = cleaned_data.get('numberUnitsLost') my_lr = cleaned_data.get('unitsLostReason') my_damadged = cleaned_data.get('numberUnitsDamaged') my_dr = cleaned_data.get('unitsDamagedReason') | 98959dbdb10174fc285daa151fcafa2459af00d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12559/98959dbdb10174fc285daa151fcafa2459af00d7/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
12,
2890,
4672,
9426,
67,
892,
273,
365,
18,
6200,
329,
67,
892,
3399,
67,
30851,
273,
9426,
67,
892,
18,
588,
2668,
2696,
7537,
19024,
6134,
3399,
67,
10826,
273,
9426,
67,
892,
18,
588,
2668,
7705,
19024,
8385,
6134,
3399,
67,
72,
301,
361,
2423,
273,
9426,
67,
892,
18,
588,
2668,
2696,
7537,
40,
301,
11349,
6134,
3399,
67,
3069,
273,
9426,
67,
892,
18,
588,
2668,
7705,
40,
301,
11349,
8385,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
4672,
9426,
67,
892,
273,
365,
18,
6200,
329,
67,
892,
3399,
67,
30851,
273,
9426,
67,
892,
18,
588,
2668,
2696,
7537,
19024,
6134,
3399,
67,
10826,
273,
9426,
67,
892,
18,
588,
2668,
7705,
19024,
8385,
6134,
3399,
67,
72,
301,
361,
2423,
273,
9426,
67,
892,
18,
588,
2668,
2696,
7537,
40,
301,
11349,
6134,
3399,
67,
3069,
273,
9426,
67,
892,
18,
588,
2668,
7705,
40,
301,
11349,
8385,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setattr(obj, 'filename', filename or self.getName()) | setattr(obj, 'filename', filename) | def set(self, instance, value, **kwargs): """ Assign input value to object. If mimetype is not specified, pass to processing method without one and add mimetype returned to kwargs. Assign kwargs to instance. """ if not value: return | d7ace5536aee3f4226777daa41452539b7bad11c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/d7ace5536aee3f4226777daa41452539b7bad11c/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
4333,
4672,
3536,
12093,
810,
460,
358,
733,
18,
971,
12595,
353,
486,
1269,
16,
1342,
358,
4929,
707,
2887,
1245,
471,
527,
12595,
2106,
358,
1205,
18,
12093,
1205,
358,
791,
18,
3536,
309,
486,
460,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
4333,
4672,
3536,
12093,
810,
460,
358,
733,
18,
971,
12595,
353,
486,
1269,
16,
1342,
358,
4929,
707,
2887,
1245,
471,
527,
12595,
2106,
358,
1205,
18,
12093,
1205,
358,
791,
18,
3536,
309,
486,
460,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if is_debug_build: base_d, ext_d = os.path.splitext(template) template_d = base_d + "_d" + ext_d template = template_d | def build_executable(self, target, template, arcname, script, vars={}): # Build an executable for the target # template is the exe-stub to use, and arcname is the zipfile # containing the python modules. from py2exe_util import add_resource, add_icon if is_debug_build: base_d, ext_d = os.path.splitext(template) template_d = base_d + "_d" + ext_d template = template_d | dca50236874fcc02c2cbd030bf60671f9ac9161e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1361/dca50236874fcc02c2cbd030bf60671f9ac9161e/build_exe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
17751,
12,
2890,
16,
1018,
16,
1542,
16,
8028,
529,
16,
2728,
16,
4153,
12938,
4672,
468,
3998,
392,
9070,
364,
326,
1018,
468,
1542,
353,
326,
15073,
17,
12847,
358,
999,
16,
471,
8028,
529,
353,
326,
18823,
468,
4191,
326,
5790,
4381,
18,
628,
2395,
22,
14880,
67,
1367,
1930,
527,
67,
3146,
16,
527,
67,
3950,
309,
353,
67,
4148,
67,
3510,
30,
1026,
67,
72,
16,
1110,
67,
72,
273,
1140,
18,
803,
18,
4939,
408,
12,
3202,
13,
1542,
67,
72,
273,
1026,
67,
72,
397,
4192,
72,
6,
397,
1110,
67,
72,
1542,
273,
1542,
67,
72,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
17751,
12,
2890,
16,
1018,
16,
1542,
16,
8028,
529,
16,
2728,
16,
4153,
12938,
4672,
468,
3998,
392,
9070,
364,
326,
1018,
468,
1542,
353,
326,
15073,
17,
12847,
358,
999,
16,
471,
8028,
529,
353,
326,
18823,
468,
4191,
326,
5790,
4381,
18,
628,
2395,
22,
14880,
67,
1367,
1930,
527,
67,
3146,
16,
527,
67,
3950,
309,
353,
67,
4148,
67,
3510,
30,
1026,
67,
72,
16,
1110,
67,
72,
273,
1140,
18,
803,
18,
4939,
408,
12,
3202,
13,
1542,
67,
72,
273,
1026,
67,
72,
397,
4192,
72,
6,
397,
1110,
67,
72,
1542,
273,
1542,
67,
72,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
smtp = smtplib.SMTP("localhost", 9091, timeout=30) | smtp = smtplib.SMTP(HOST, PORT, timeout=30) | def testTimeoutValue(self): # a value smtp = smtplib.SMTP("localhost", 9091, timeout=30) self.assertEqual(smtp.sock.gettimeout(), 30) smtp.sock.close() | c216b484c34a826e47aa0b25a453091ad1cc1e3b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/c216b484c34a826e47aa0b25a453091ad1cc1e3b/test_smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2694,
620,
12,
2890,
4672,
468,
279,
460,
17660,
273,
272,
1010,
6673,
18,
55,
14636,
12,
8908,
16,
20987,
16,
2021,
33,
5082,
13,
365,
18,
11231,
5812,
12,
20278,
18,
15031,
18,
588,
4538,
9334,
5196,
13,
17660,
18,
15031,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2694,
620,
12,
2890,
4672,
468,
279,
460,
17660,
273,
272,
1010,
6673,
18,
55,
14636,
12,
8908,
16,
20987,
16,
2021,
33,
5082,
13,
365,
18,
11231,
5812,
12,
20278,
18,
15031,
18,
588,
4538,
9334,
5196,
13,
17660,
18,
15031,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if type(commandlist) == type(()) and len(commandlist[0]) > 1: | if type(commandlist[0]) == type(()) and len(commandlist[0]) > 1: | def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfolder=1, id=ARGV_ID): d = GetNewDialog(id, -1) if not d: print "Can't get DLOG resource with id =", id return | 4227340a8bad85ccbc649c9eb7648c9f3229f58d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4227340a8bad85ccbc649c9eb7648c9f3229f58d/EasyDialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4117,
90,
12,
3482,
1098,
33,
7036,
16,
1296,
1098,
33,
7036,
16,
527,
1673,
768,
33,
21,
16,
527,
2704,
768,
33,
21,
16,
527,
5609,
33,
21,
16,
612,
33,
10973,
58,
67,
734,
4672,
302,
273,
968,
1908,
6353,
12,
350,
16,
300,
21,
13,
309,
486,
302,
30,
1172,
315,
2568,
1404,
336,
463,
4842,
1058,
598,
612,
273,
3113,
612,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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33,
21,
16,
612,
33,
10973,
58,
67,
734,
4672,
302,
273,
968,
1908,
6353,
12,
350,
16,
300,
21,
13,
309,
486,
302,
30,
1172,
315,
2568,
1404,
336,
463,
4842,
1058,
598,
612,
273,
3113,
612,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(1, Complex(0,10), 'TypeError'), | (1, Complex(0,10), 1), | def test(): testsuite = { 'a+b': [ (1, 10, 11), (1, Complex(0,10), Complex(1,10)), (Complex(0,10), 1, Complex(1,10)), (Complex(0,10), Complex(1), Complex(1,10)), (Complex(1), Complex(0,10), Complex(1,10)), ], 'a-b': [ (1, 10, -9), (1, Complex(0,10), Complex(1,-10)), (Complex(0,10), 1, Complex(-1,10)), (Complex(0,10), Complex(1), Complex(-1,10)), (Complex(1), Complex(0,10), Complex(1,-10)), ], 'a*b': [ (1, 10, 10), (1, Complex(0,10), Complex(0, 10)), (Complex(0,10), 1, Complex(0,10)), (Complex(0,10), Complex(1), Complex(0,10)), (Complex(1), Complex(0,10), Complex(0,10)), ], 'a/b': [ (1., 10, 0.1), (1, Complex(0,10), Complex(0, -0.1)), (Complex(0, 10), 1, Complex(0, 10)), (Complex(0, 10), Complex(1), Complex(0, 10)), (Complex(1), Complex(0,10), Complex(0, -0.1)), ], 'pow(a,b)': [ (1, 10, 1), (1, Complex(0,10), 'TypeError'), (Complex(0,10), 1, Complex(0,10)), (Complex(0,10), Complex(1), Complex(0,10)), (Complex(1), Complex(0,10), 'TypeError'), (2, Complex(4,0), 16), ], 'cmp(a,b)': [ (1, 10, -1), (1, Complex(0,10), 1), (Complex(0,10), 1, -1), (Complex(0,10), Complex(1), -1), (Complex(1), Complex(0,10), 1), ], } exprs = testsuite.keys() exprs.sort() for expr in exprs: print expr + ':' t = (expr,) for item in testsuite[expr]: apply(checkop, t+item) | 5d63d562e8015e55591da523d87bba373733db00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5d63d562e8015e55591da523d87bba373733db00/Complex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
7434,
9519,
273,
288,
296,
69,
15,
70,
4278,
306,
261,
21,
16,
1728,
16,
4648,
3631,
261,
21,
16,
16060,
12,
20,
16,
2163,
3631,
16060,
12,
21,
16,
2163,
13,
3631,
261,
12795,
12,
20,
16,
2163,
3631,
404,
16,
16060,
12,
21,
16,
2163,
13,
3631,
261,
12795,
12,
20,
16,
2163,
3631,
16060,
12,
21,
3631,
16060,
12,
21,
16,
2163,
13,
3631,
261,
12795,
12,
21,
3631,
16060,
12,
20,
16,
2163,
3631,
16060,
12,
21,
16,
2163,
13,
3631,
308,
16,
296,
69,
17,
70,
4278,
306,
261,
21,
16,
1728,
16,
300,
29,
3631,
261,
21,
16,
16060,
12,
20,
16,
2163,
3631,
16060,
12,
21,
16,
17,
2163,
13,
3631,
261,
12795,
12,
20,
16,
2163,
3631,
404,
16,
16060,
19236,
21,
16,
2163,
13,
3631,
261,
12795,
12,
20,
16,
2163,
3631,
16060,
12,
21,
3631,
16060,
19236,
21,
16,
2163,
13,
3631,
261,
12795,
12,
21,
3631,
16060,
12,
20,
16,
2163,
3631,
16060,
12,
21,
16,
17,
2163,
13,
3631,
308,
16,
296,
69,
14,
70,
4278,
306,
261,
21,
16,
1728,
16,
1728,
3631,
261,
21,
16,
16060,
12,
20,
16,
2163,
3631,
16060,
12,
20,
16,
1728,
13,
3631,
261,
12795,
12,
20,
16,
2163,
3631,
404,
16,
16060,
12,
20,
16,
2163,
13,
3631,
261,
12795,
12,
20,
16,
2163,
3631,
16060,
12,
21,
3631,
16060,
12,
20,
16,
2163,
13,
3631,
261,
12795,
12,
21,
3631,
16060,
12,
20,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13332,
7434,
9519,
273,
288,
296,
69,
15,
70,
4278,
306,
261,
21,
16,
1728,
16,
4648,
3631,
261,
21,
16,
16060,
12,
20,
16,
2163,
3631,
16060,
12,
21,
16,
2163,
13,
3631,
261,
12795,
12,
20,
16,
2163,
3631,
404,
16,
16060,
12,
21,
16,
2163,
13,
3631,
261,
12795,
12,
20,
16,
2163,
3631,
16060,
12,
21,
3631,
16060,
12,
21,
16,
2163,
13,
3631,
261,
12795,
12,
21,
3631,
16060,
12,
20,
16,
2163,
3631,
16060,
12,
21,
16,
2163,
13,
3631,
308,
16,
296,
69,
17,
70,
4278,
306,
261,
21,
16,
1728,
16,
300,
29,
3631,
261,
21,
16,
16060,
12,
20,
16,
2163,
3631,
16060,
12,
21,
16,
17,
2163,
2
] |
def __init__(self, host, port = NNTP_PORT): | def __init__(self, host, port = NNTP_PORT, user=None, password=None): | def __init__(self, host, port = NNTP_PORT): self.host = host self.port = port self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.connect(self.host, self.port) self.file = self.sock.makefile('rb') self.debugging = 0 self.welcome = self.getresp() | c054bb84dc565c1f03f3661e7d797c8687b7d36a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c054bb84dc565c1f03f3661e7d797c8687b7d36a/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
16,
1756,
273,
423,
1784,
52,
67,
6354,
16,
729,
33,
7036,
16,
2201,
33,
7036,
4672,
365,
18,
2564,
273,
1479,
365,
18,
655,
273,
1756,
365,
18,
15031,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
365,
18,
15031,
18,
3612,
12,
2890,
18,
2564,
16,
365,
18,
655,
13,
365,
18,
768,
273,
365,
18,
15031,
18,
6540,
768,
2668,
6731,
6134,
365,
18,
4148,
1998,
273,
374,
365,
18,
91,
16312,
273,
365,
18,
588,
12243,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
16,
1756,
273,
423,
1784,
52,
67,
6354,
16,
729,
33,
7036,
16,
2201,
33,
7036,
4672,
365,
18,
2564,
273,
1479,
365,
18,
655,
273,
1756,
365,
18,
15031,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
365,
18,
15031,
18,
3612,
12,
2890,
18,
2564,
16,
365,
18,
655,
13,
365,
18,
768,
273,
365,
18,
15031,
18,
6540,
768,
2668,
6731,
6134,
365,
18,
4148,
1998,
273,
374,
365,
18,
91,
16312,
273,
365,
18,
588,
12243,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
eJytU11P2zAUffevuKQ8AFqJ+srUh6IhgcTKRFgnjSLXTW4aS6ld2U6zgvbfd50PSD+GNI08JLHv 8fW5557bg4dMWkhljrAsrIM5QmExgVK6DAKrCxMjzKUKRezkWjgM4Cw1eglzYbMz1oONLiAWSmkH plAgHSTSYOzyDWMJtqfg5BReGNAjU3iEvoLgmN/dfuGTm/uH76Nb/m30cB3AE3wGl6GqkP7x28ND 0FcE/lpp4yrg616hLDrYO1TFU8mqb6+u3Ga6yBNI0BHnqigQKoFnm32CMpNxBplYIwj6UCjWy6UP u0y4Sq8mFakWizwn3ZyGBd1NMtBfqo1frAQJ2xy15wA/SFtduCbspFo0abaAXgg49rwhzoRaoIWS miQS/9qAF5yuNWhXxByTHXEvRxHp2df16md0zSdX99HN3fiAyFVpfbMlz9/aFA0OdSka7DWJgHs9 igbvtqgJtxRqSBu9Gk/eiB0RLyIyhEBplaB1pvBGwx1uPYgwT6EFHO3c3veh1qHt1b8ZmbqOS2Mw p+4rB2thpJjnaLue3r6bsQ7VYcB5Z8l5wBoRuvWwPYuSjLW9m0UHHXJ+eTPm49HXK84vGljX/WxX TZ/Mt6GSLJiRuVGJJcJ0K+80mFVKEsdd9by1pMjJ2xa9W2FEO4rst5BxM+baSBKlgSNC5tzqIgzL sjx/RkdmXZ+ToUOrU1cKg6HwGUL26prHDq0ZpTxIcDqbPUFdC+YW306fvFPUaX2AWtqxH/ugsf+A kf/Pcf/3UW/HnBT5Axjqy2Y= | eJytVF1v2jAUfc+vuA19aKvRiNdOPFAVqUgtrQhj0kplTHJDLAUb2Q5ZO+2/7zokbQKs0rTmgeDc 73OObwemqTCQiAxhnRsLS4TcYAyFsCn4RuU6QlgKGfDIii236MNFotUaltykF14HXlQOEZdSWdC5 BGEhFhojm714Xox1FJydwy8P6BEJPEFXgn/KHu5u2Gw0mX4b3LHHwfTWh2f4CjZFWXq6x33uH3N9 88CfG6Vt6fj2LZcGLRwElfZEeOW7s5vcpCrPYojRUs/lUMBlDK8m/QJFKqIUUr5F4PQiU6TWa2e2 KbclXlUqQi3iWUa4WQUrqk0w0L9EaXfYcAK2CjWXAN8JW5XbymyFXFVpWo4OCDh1fUOUcrlCAwWR xGP38wIOcCqr0Wyoc4z3wL0ehIRnV+1OP8JbNhtOwtHD+AjI5Whd3YLnbzSFvWMshb0DksjxgKOw 9yFFlbluYedSW4fj2XtjJ9QXNdIHXyoZo7E6d0LDvd46EGKWQO1wsle960y1QuvSvz0S9c4utMaM 2JcWtlwLvszQNDXdru15jVb7PmONI2O+V4HQnMc7kCjBuJN3dWh4B4xdj8ZsPLgfMnZVuTXV7+04 e4VWGLsZhYPruyF7nDzcP073ENonwNWvmSvT+Qu6Eyj5GmHeyjv3FyUBNNqhIDrgVCl4RtfCoBM6 DOiLJOWuRFRtCKUF4dkIQYTU2s1VEBRFcfmKlrS+vaT7EBiV2IJrDLjLErSF99RocUGpjzY7Xyye 4X02zAy2s5x9MOj5eyApZE/RTq6ftEw+YZH85xL59wVSLw+C4Q8Om94M | def after_install(options, home_dir): subprocess.call([join(home_dir, 'bin', 'easy_install'), 'MyPackage']) subprocess.call([join(home_dir, 'bin', 'my-package-script'), 'setup', home_dir]) | d30edcad856caf48734040fec2336b9978dde674 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12981/d30edcad856caf48734040fec2336b9978dde674/virtualenv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
5425,
12,
2116,
16,
6382,
67,
1214,
4672,
6652,
18,
1991,
3816,
5701,
12,
8712,
67,
1214,
16,
296,
4757,
2187,
296,
73,
15762,
67,
5425,
19899,
296,
12062,
2261,
19486,
6652,
18,
1991,
3816,
5701,
12,
8712,
67,
1214,
16,
296,
4757,
2187,
296,
4811,
17,
5610,
17,
4263,
19899,
296,
8401,
2187,
6382,
67,
1214,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1839,
67,
5425,
12,
2116,
16,
6382,
67,
1214,
4672,
6652,
18,
1991,
3816,
5701,
12,
8712,
67,
1214,
16,
296,
4757,
2187,
296,
73,
15762,
67,
5425,
19899,
296,
12062,
2261,
19486,
6652,
18,
1991,
3816,
5701,
12,
8712,
67,
1214,
16,
296,
4757,
2187,
296,
4811,
17,
5610,
17,
4263,
19899,
296,
8401,
2187,
6382,
67,
1214,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
while true: | while True: | def setup(config): """Configure the STOMP Broker connection protocol factory. config = { 'host' : '', 'port' : '', 'username' : '', 'password' : '', 'channel' : 'evasion' } Isolate messages from multiple deviceaccesss, using the same broker, by creating new channels ie evasionoslo, evasionbmnt, etc """ | 0c5412dcb3e1344d1c843eca0a6874b50390df7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12467/0c5412dcb3e1344d1c843eca0a6874b50390df7c/stompprotocol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
1425,
4672,
3536,
11207,
326,
2347,
1872,
52,
20438,
1459,
1771,
3272,
18,
225,
642,
273,
288,
296,
2564,
11,
294,
10226,
296,
655,
11,
294,
10226,
296,
5053,
11,
294,
10226,
296,
3664,
11,
294,
10226,
296,
4327,
11,
294,
296,
73,
4423,
285,
11,
289,
225,
2585,
30144,
2743,
628,
3229,
2346,
3860,
87,
16,
1450,
326,
1967,
8625,
16,
635,
4979,
394,
5750,
9228,
2113,
345,
285,
538,
383,
16,
2113,
345,
285,
70,
21818,
16,
5527,
225,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
296,
2564,
11,
294,
10226,
296,
655,
11,
294,
10226,
296,
5053,
11,
294,
10226,
296,
3664,
11,
294,
10226,
296,
4327,
11,
294,
296,
73,
4423,
285,
11,
289,
225,
2585,
30144,
2743,
628,
3229,
2346,
3860,
87,
16,
1450,
326,
1967,
8625,
16,
635,
4979,
394,
5750,
9228,
2113,
345,
285,
538,
383,
16,
2113,
345,
285,
70,
21818,
16,
5527,
225,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return getint( | return self.tk.getint( | def winfo_id(self): return getint( self.tk.call('winfo', 'id', self._w)) | cef4c844df324979f25ffec172c141a5d5c4672e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cef4c844df324979f25ffec172c141a5d5c4672e/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
1376,
67,
350,
12,
2890,
4672,
327,
365,
18,
16099,
18,
588,
474,
12,
365,
18,
16099,
18,
1991,
2668,
91,
1376,
2187,
296,
350,
2187,
365,
6315,
91,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
1376,
67,
350,
12,
2890,
4672,
327,
365,
18,
16099,
18,
588,
474,
12,
365,
18,
16099,
18,
1991,
2668,
91,
1376,
2187,
296,
350,
2187,
365,
6315,
91,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print("The Python SSL module was not built") | def find_working_perl(perls): for perl in perls: fh = os.popen(perl + ' -e "use Win32;"') fh.read() rc = fh.close() if rc: continue return perl print("Can not find a suitable PERL:") if perls: print(" the following perl interpreters were found:") for p in perls: print(" ", p) print(" None of these versions appear suitable for building OpenSSL") else: print(" NO perl interpreters were found on this machine at all!") print(" Please install ActivePerl and ensure it appears on your path") print("The Python SSL module was not built") return None | 64769907bf2b42428cf366b627a194db211a2c15 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/64769907bf2b42428cf366b627a194db211a2c15/build_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
20478,
67,
457,
80,
12,
457,
3251,
4672,
364,
1534,
80,
316,
1534,
3251,
30,
7625,
273,
1140,
18,
84,
3190,
12,
457,
80,
397,
296,
300,
73,
315,
1202,
21628,
1578,
4868,
6134,
7625,
18,
896,
1435,
4519,
273,
7625,
18,
4412,
1435,
309,
4519,
30,
1324,
327,
1534,
80,
1172,
2932,
2568,
486,
1104,
279,
10631,
10950,
48,
2773,
13,
309,
1534,
3251,
30,
1172,
2932,
326,
3751,
1534,
80,
1554,
1484,
5432,
4591,
1392,
2773,
13,
364,
293,
316,
1534,
3251,
30,
1172,
2932,
3104,
293,
13,
1172,
2932,
599,
434,
4259,
5244,
9788,
10631,
364,
10504,
21859,
7923,
469,
30,
1172,
2932,
3741,
1534,
80,
1554,
1484,
5432,
4591,
1392,
603,
333,
5228,
622,
777,
4442,
13,
1172,
2932,
7801,
3799,
8857,
2173,
80,
471,
3387,
518,
14606,
603,
3433,
589,
7923,
327,
599,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1104,
67,
20478,
67,
457,
80,
12,
457,
3251,
4672,
364,
1534,
80,
316,
1534,
3251,
30,
7625,
273,
1140,
18,
84,
3190,
12,
457,
80,
397,
296,
300,
73,
315,
1202,
21628,
1578,
4868,
6134,
7625,
18,
896,
1435,
4519,
273,
7625,
18,
4412,
1435,
309,
4519,
30,
1324,
327,
1534,
80,
1172,
2932,
2568,
486,
1104,
279,
10631,
10950,
48,
2773,
13,
309,
1534,
3251,
30,
1172,
2932,
326,
3751,
1534,
80,
1554,
1484,
5432,
4591,
1392,
2773,
13,
364,
293,
316,
1534,
3251,
30,
1172,
2932,
3104,
293,
13,
1172,
2932,
599,
434,
4259,
5244,
9788,
10631,
364,
10504,
21859,
7923,
469,
30,
1172,
2932,
3741,
1534,
80,
1554,
1484,
5432,
4591,
1392,
603,
333,
2
] |
|
return True; | return True | def test_03 (): # call to initialize a context ctx = vortex.Ctx (); # call to init ctx if not ctx.init (): error ("Failed to init Vortex context"); return False; # call to create a connection conn = vortex.Connection (ctx, host, port); # check connection status after if if not conn.is_ok (): error ("Expected to find proper connection result, but found error. Error code was: " + str(conn.status) + ", message: " + conn.error_msg); return False; # now shutdown conn.shutdown (); # now close the connection (already shutted down) conn.close (); ctx.exit () # finish ctx del ctx return True; | 44bc361f3b497230e1d601079e2df89085d4b1cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/44bc361f3b497230e1d601079e2df89085d4b1cd/vortex-regression-client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4630,
1832,
30,
468,
745,
358,
4046,
279,
819,
1103,
273,
331,
20873,
18,
6442,
261,
1769,
225,
468,
745,
358,
1208,
1103,
309,
486,
1103,
18,
2738,
1832,
30,
555,
7566,
2925,
358,
1208,
776,
20873,
819,
8863,
327,
1083,
31,
225,
468,
745,
358,
752,
279,
1459,
1487,
273,
331,
20873,
18,
1952,
261,
5900,
16,
1479,
16,
1756,
1769,
225,
468,
866,
1459,
1267,
1839,
309,
309,
486,
1487,
18,
291,
67,
601,
1832,
30,
555,
7566,
6861,
358,
1104,
5338,
1459,
563,
16,
1496,
1392,
555,
18,
1068,
981,
1703,
30,
315,
397,
609,
12,
4646,
18,
2327,
13,
397,
3104,
883,
30,
315,
397,
1487,
18,
1636,
67,
3576,
1769,
327,
1083,
31,
225,
468,
2037,
5731,
1487,
18,
15132,
261,
1769,
225,
468,
2037,
1746,
326,
1459,
261,
17583,
9171,
2344,
2588,
13,
1487,
18,
4412,
261,
1769,
225,
1103,
18,
8593,
1832,
225,
468,
4076,
1103,
1464,
1103,
225,
327,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4630,
1832,
30,
468,
745,
358,
4046,
279,
819,
1103,
273,
331,
20873,
18,
6442,
261,
1769,
225,
468,
745,
358,
1208,
1103,
309,
486,
1103,
18,
2738,
1832,
30,
555,
7566,
2925,
358,
1208,
776,
20873,
819,
8863,
327,
1083,
31,
225,
468,
745,
358,
752,
279,
1459,
1487,
273,
331,
20873,
18,
1952,
261,
5900,
16,
1479,
16,
1756,
1769,
225,
468,
866,
1459,
1267,
1839,
309,
309,
486,
1487,
18,
291,
67,
601,
1832,
30,
555,
7566,
6861,
358,
1104,
5338,
1459,
563,
16,
1496,
1392,
555,
18,
1068,
981,
1703,
30,
315,
397,
609,
12,
4646,
18,
2327,
13,
397,
3104,
883,
30,
315,
397,
1487,
18,
1636,
67,
3576,
1769,
327,
2
] |
(title, extension) = os.path.splitext(os.path.basename(filename)) | def get_all_tracks(self): tracks = [] | 8b246ef484fdc115b48d8e9a815edc52238b52cf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/8b246ef484fdc115b48d8e9a815edc52238b52cf/sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
21499,
12,
2890,
4672,
13933,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
21499,
12,
2890,
4672,
13933,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
xt = self._simuBackward(endGen, freq, minMutAge, maxMutAge) | xt = self._simuBackward(endGen, freq, self.minMutAge, self.maxMutAge) | def simuBackward(self, endGen, endFreq, minMutAge=None, maxMutAge=None, maxAttempts = 1000): '''Simulate trajectories of multiple disease susceptibility loci using a forward time approach. This function accepts allele frequencies of alleles of multiple unlinked loci (*endFreq*) at the end of generation *endGen*. Depending on the number of loci and subpopulations, parameter *beginFreq* can be a number (same frequency for all loci in all subpopulations), or a list of frequencies for each locus (same frequency in all subpopulations), or a list of frequencies for each locus in each subpopulation in the order of ``loc0_sp0``, ``loc1_sp0``, ..., ``loc0_sp1``, ``loc1_sp1``, ... and so on. | 0b6200faec4523264df7eb8b695f3e0e800711b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/0b6200faec4523264df7eb8b695f3e0e800711b2/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3142,
89,
26283,
12,
2890,
16,
679,
7642,
16,
679,
14485,
16,
1131,
7420,
9692,
33,
7036,
16,
943,
7420,
9692,
33,
7036,
16,
943,
10113,
273,
4336,
4672,
9163,
7993,
6243,
1284,
937,
2401,
434,
3229,
302,
26816,
11375,
956,
3628,
1515,
77,
1450,
279,
5104,
813,
17504,
18,
1220,
445,
8104,
14551,
18138,
434,
24634,
434,
3229,
8255,
329,
1515,
77,
261,
14,
409,
14485,
12437,
622,
326,
679,
434,
9377,
380,
409,
7642,
11146,
4019,
2846,
603,
326,
1300,
434,
1515,
77,
471,
720,
5120,
21011,
16,
1569,
380,
10086,
14485,
14,
848,
506,
279,
1300,
261,
14307,
8670,
364,
777,
1515,
77,
316,
777,
720,
5120,
21011,
3631,
578,
279,
666,
434,
18138,
364,
1517,
22896,
261,
14307,
8670,
316,
777,
720,
5120,
21011,
3631,
578,
279,
666,
434,
18138,
364,
1517,
22896,
316,
1517,
720,
23555,
316,
326,
1353,
434,
12176,
1829,
20,
67,
1752,
20,
68,
9191,
12176,
1829,
21,
67,
1752,
20,
68,
9191,
1372,
16,
12176,
1829,
20,
67,
1752,
21,
68,
9191,
12176,
1829,
21,
67,
1752,
21,
68,
9191,
1372,
471,
1427,
603,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
3142,
89,
26283,
12,
2890,
16,
679,
7642,
16,
679,
14485,
16,
1131,
7420,
9692,
33,
7036,
16,
943,
7420,
9692,
33,
7036,
16,
943,
10113,
273,
4336,
4672,
9163,
7993,
6243,
1284,
937,
2401,
434,
3229,
302,
26816,
11375,
956,
3628,
1515,
77,
1450,
279,
5104,
813,
17504,
18,
1220,
445,
8104,
14551,
18138,
434,
24634,
434,
3229,
8255,
329,
1515,
77,
261,
14,
409,
14485,
12437,
622,
326,
679,
434,
9377,
380,
409,
7642,
11146,
4019,
2846,
603,
326,
1300,
434,
1515,
77,
471,
720,
5120,
21011,
16,
1569,
380,
10086,
14485,
14,
848,
506,
279,
1300,
261,
14307,
8670,
364,
777,
1515,
77,
316,
777,
720,
5120,
21011,
3631,
578,
279,
666,
434,
18138,
364,
2
] |
return self.__label def Label(self): | def __str__(self): return self.__label | e47208cc236cc1e83b18487d1da8ae6ba3663eb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1130/e47208cc236cc1e83b18487d1da8ae6ba3663eb7/exPyOperator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
365,
16186,
1925,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16186,
1925,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
tinfo = tar.gettarinfo(name=x.abspath(), arcname=x.path_from(self.base_path)) | tinfo = tar.gettarinfo(name=x.abspath(), arcname=self.get_base_name() + '/' + x.path_from(self.base_path)) | def archive(self): """ Create the archive (override or subclass) """ import tarfile | 464a87414a1fb565e4e69a8076e1356940ff17e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/464a87414a1fb565e4e69a8076e1356940ff17e1/Scripting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5052,
12,
2890,
4672,
3536,
1788,
326,
5052,
261,
10601,
578,
10177,
13,
3536,
1930,
25857,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5052,
12,
2890,
4672,
3536,
1788,
326,
5052,
261,
10601,
578,
10177,
13,
3536,
1930,
25857,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.debug("Using xmi 1.1+ parser.") | log.debug("Using xmi 1.1 parser.") | def parse(xschemaFileName=None, xschema=None, packages=[], generator=None,**kw): """ """ global XMI if xschemaFileName: suff = os.path.splitext(xschemaFileName)[1].lower() if suff.lower() in ('.zargo','.zuml','.zip'): log.debug("Opening %s ..." % suff.lower()) zf = ZipFile(xschemaFileName) xmis = [n for n in zf.namelist() \ if os.path.splitext(n)[1].lower() in ['.xmi','.xml']] assert(len(xmis)==1) buf = zf.read(xmis[0]) doc = minidom.parseString(buf) else: doc = minidom.parse(xschemaFileName) else: doc = minidom.parseString(xschema) try: xmi = doc.getElementsByTagName('XMI')[0] xmiver = str(xmi.getAttribute('xmi.version')) log.debug("XMI version: %s", xmiver) if xmiver >= "1.2": log.debug("Using xmi 1.2+ parser.") XMI = XMI1_2(**kw) elif xmiver >= "1.1": log.debug("Using xmi 1.1+ parser.") XMI = XMI1_1(**kw) else: log.debug("Using xmi 1.1+ parser.") XMI = XMI1_0(**kw) except: log.debug("No version info found, taking XMI1_0.") XMI.generator = generator root = buildHierarchy(doc, packages) return root | 41f07970bf469ceb8d49b95ba8f127c4ae3bd98a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11658/41f07970bf469ceb8d49b95ba8f127c4ae3bd98a/xmiparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
92,
4821,
4771,
33,
7036,
16,
619,
4821,
33,
7036,
16,
5907,
22850,
6487,
4456,
33,
7036,
16,
636,
9987,
4672,
3536,
3536,
2552,
1139,
7492,
225,
309,
619,
4821,
4771,
30,
272,
3809,
273,
1140,
18,
803,
18,
4939,
408,
12,
92,
4821,
4771,
25146,
21,
8009,
8167,
1435,
309,
272,
3809,
18,
8167,
1435,
316,
7707,
18,
94,
26999,
2187,
10332,
94,
22192,
2187,
10332,
4450,
11,
4672,
613,
18,
4148,
2932,
21378,
738,
87,
18483,
738,
272,
3809,
18,
8167,
10756,
22758,
273,
18364,
12,
92,
4821,
4771,
13,
619,
11173,
273,
306,
82,
364,
290,
316,
22758,
18,
17808,
5449,
1435,
521,
309,
1140,
18,
803,
18,
4939,
408,
12,
82,
25146,
21,
8009,
8167,
1435,
316,
10228,
18,
92,
9197,
2187,
10332,
2902,
3546,
65,
1815,
12,
1897,
12,
92,
11173,
13,
631,
21,
13,
1681,
273,
22758,
18,
896,
12,
92,
11173,
63,
20,
5717,
997,
273,
1131,
350,
362,
18,
2670,
780,
12,
4385,
13,
469,
30,
997,
273,
1131,
350,
362,
18,
2670,
12,
92,
4821,
4771,
13,
469,
30,
997,
273,
1131,
350,
362,
18,
2670,
780,
12,
92,
4821,
13,
225,
775,
30,
619,
9197,
273,
997,
18,
588,
3471,
10401,
2668,
60,
7492,
6134,
63,
20,
65,
25179,
1667,
273,
609,
12,
92,
9197,
18,
588,
1499,
2668,
92,
9197,
18,
1589,
26112,
613,
18,
4148,
2932,
60,
7492,
1177,
30,
738,
87,
3113,
25179,
1667,
13,
309,
25179,
1667,
1545,
315,
21,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
92,
4821,
4771,
33,
7036,
16,
619,
4821,
33,
7036,
16,
5907,
22850,
6487,
4456,
33,
7036,
16,
636,
9987,
4672,
3536,
3536,
2552,
1139,
7492,
225,
309,
619,
4821,
4771,
30,
272,
3809,
273,
1140,
18,
803,
18,
4939,
408,
12,
92,
4821,
4771,
25146,
21,
8009,
8167,
1435,
309,
272,
3809,
18,
8167,
1435,
316,
7707,
18,
94,
26999,
2187,
10332,
94,
22192,
2187,
10332,
4450,
11,
4672,
613,
18,
4148,
2932,
21378,
738,
87,
18483,
738,
272,
3809,
18,
8167,
10756,
22758,
273,
18364,
12,
92,
4821,
4771,
13,
619,
11173,
273,
306,
82,
364,
290,
316,
22758,
18,
17808,
5449,
1435,
521,
309,
1140,
18,
803,
18,
4939,
408,
12,
82,
25146,
2
] |
print >> f, " | print >> f, " | def saveConfig(opt, file, param): """ Write a configuration file. This file can be later read with command line option -c or --config . opt: the option description list file: output file param: parameters returned from getParam """ try: f = open(file,'w') except: print 'Can not open ', file , ' to write.' return options = [] for g in opt: # execlude separators from opt if not g.has_key('separator'): options.append(g) if len(options) != len(param): raise ValueError("Length of option specification and param should be the same.") print >> f, "# configuration file for program", sys.argv[0] print >> f, "# saved at ", time.asctime() for p in range(0, len(options)): if options[p].has_key('label'): print >> f # write arg and long arg if options[p].has_key('label'): print >> f, "# label:\t%s" % options[p]['label'] if options[p].has_key('arg'): if options[p]['arg'][-1] == ':': print >> f, "# shortarg:\t-%s = %s" % (options[p]['arg'][0:-1], str( param[p] )) else: print >> f, "# shortarg:\t-%s" % options[p]['arg'] # write description if options[p].has_key('description'): desc = options[p]['description'].splitlines() print >> f, "# description:" for d in desc: print >> f, "#\t", d.strip() if options[p].has_key('longarg'): if options[p]['longarg'][-1] == '=': arg = options[p]['longarg'][0:-1] else: arg = options[p]['longarg'] # write out option value, try to make it python readable if type(param[p]) == type(''): if "'" in param[p]: print >> f, '%s = "%s"' % (options[p]['longarg'][0:-1], param[p]) else: print >> f, "%s = '%s'" % (options[p]['longarg'][0:-1], param[p]) else: print >> f, "%s = %s" % (options[p]['longarg'][0:-1], str(param[p])) print >> f, "\n\n#The same options can be given by command line options (subject to minor changes)" cmd = "# --noDialog " # shorter version scmd = "# --noDialog " for p in range(0, len(options)): if options[p].has_key('label') and options[p].has_key('longarg'): defaultVal = options[p].has_key('useDefault') and options[p]['useDefault'] \ and str(param[p]) == str(options[p]['default']) if options[p]['longarg'][-1] == '=': if str(param[p]).find(",") >= 0: # has single quote arg = " --" + options[p]['longarg'][0:-1] \ + '="' + str( param[p] ) + '"' cmd += arg if not defaultVal: scmd += arg else: arg = " --" + options[p]['longarg'][0:-1] \ + "='" + str( param[p] ) + "'" cmd += arg if not defaultVal: scmd += arg elif param[p]: # this option is True cmd += "--" + options[p]['longarg'] if not defaultVal: cmd += "--" + options[p]['longarg'] print >> f, ' \\\n# '.join(textwrap.wrap(cmd, break_long_words=False)) # print out shorter version print >> f, "\n\n#Or a shorter version if default arguments are ignored" print >> f, ' \\\n# '.join(textwrap.wrap(scmd, break_long_words=False)) f.close() | c69a244874f5f1978249139cc9496c79075a69f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/c69a244874f5f1978249139cc9496c79075a69f5/simuOpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
809,
12,
3838,
16,
585,
16,
579,
4672,
3536,
2598,
279,
1664,
585,
18,
1220,
585,
848,
506,
5137,
855,
598,
1296,
980,
1456,
225,
300,
71,
225,
578,
1493,
1425,
225,
263,
225,
2153,
30,
326,
1456,
2477,
666,
225,
585,
30,
876,
585,
225,
579,
30,
1472,
2106,
628,
225,
9027,
225,
3536,
775,
30,
284,
273,
1696,
12,
768,
11189,
91,
6134,
1335,
30,
1172,
296,
2568,
486,
1696,
2265,
585,
269,
296,
358,
1045,
1093,
327,
702,
273,
5378,
364,
314,
316,
2153,
30,
468,
1196,
80,
1317,
14815,
628,
2153,
309,
486,
314,
18,
5332,
67,
856,
2668,
11287,
11,
4672,
702,
18,
6923,
12,
75,
13,
309,
562,
12,
2116,
13,
480,
562,
12,
891,
4672,
1002,
2068,
2932,
1782,
434,
1456,
7490,
471,
579,
1410,
506,
326,
1967,
1199,
13,
1172,
1671,
284,
16,
6619,
1664,
585,
364,
5402,
3113,
2589,
18,
19485,
63,
20,
65,
1172,
1671,
284,
16,
6619,
5198,
622,
3104,
813,
18,
345,
21261,
1435,
364,
293,
316,
1048,
12,
20,
16,
562,
12,
2116,
3719,
30,
309,
702,
63,
84,
8009,
5332,
67,
856,
2668,
1925,
11,
4672,
1172,
1671,
284,
468,
1045,
1501,
471,
1525,
1501,
309,
702,
63,
84,
8009,
5332,
67,
856,
2668,
1925,
11,
4672,
1172,
1671,
284,
16,
6619,
1433,
5581,
88,
9,
87,
6,
738,
702,
63,
84,
23962,
1925,
3546,
309,
702,
63,
84,
8009,
5332,
67,
856,
2668,
3175,
11,
4672,
309,
702,
63,
84,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
809,
12,
3838,
16,
585,
16,
579,
4672,
3536,
2598,
279,
1664,
585,
18,
1220,
585,
848,
506,
5137,
855,
598,
1296,
980,
1456,
225,
300,
71,
225,
578,
1493,
1425,
225,
263,
225,
2153,
30,
326,
1456,
2477,
666,
225,
585,
30,
876,
585,
225,
579,
30,
1472,
2106,
628,
225,
9027,
225,
3536,
775,
30,
284,
273,
1696,
12,
768,
11189,
91,
6134,
1335,
30,
1172,
296,
2568,
486,
1696,
2265,
585,
269,
296,
358,
1045,
1093,
327,
702,
273,
5378,
364,
314,
316,
2153,
30,
468,
1196,
80,
1317,
14815,
628,
2153,
309,
486,
314,
18,
5332,
67,
856,
2668,
11287,
11,
4672,
702,
18,
6923,
12,
75,
13,
309,
562,
12,
2116,
13,
2
] |
text = self._split_header(text) | text = self._split_header(h, text) | def _write_headers(self, msg): for h, v in msg.items(): # We only write the MIME-Version: header for the outermost # container message. Unfortunately, we can't use same technique # as for the Unix-From above because we don't know when # MIME-Version: will occur. if h.lower() == 'mime-version' and not self.__first: continue # RFC 2822 says that lines SHOULD be no more than maxheaderlen # characters wide, so we're well within our rights to split long # headers. text = '%s: %s' % (h, v) if self.__maxheaderlen > 0 and len(text) > self.__maxheaderlen: text = self._split_header(text) print >> self._fp, text # A blank line always separates headers from body print >> self._fp | ff4accdde6bf1d73d36a973bf0501ae490603de0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ff4accdde6bf1d73d36a973bf0501ae490603de0/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
2485,
12,
2890,
16,
1234,
4672,
364,
366,
16,
331,
316,
1234,
18,
3319,
13332,
468,
1660,
1338,
1045,
326,
13195,
17,
1444,
30,
1446,
364,
326,
596,
28055,
468,
1478,
883,
18,
225,
1351,
24233,
16,
732,
848,
1404,
999,
1967,
17734,
2161,
468,
487,
364,
326,
9480,
17,
1265,
5721,
2724,
732,
2727,
1404,
5055,
1347,
468,
13195,
17,
1444,
30,
903,
3334,
18,
309,
366,
18,
8167,
1435,
422,
296,
11757,
17,
1589,
11,
471,
486,
365,
16186,
3645,
30,
1324,
468,
8372,
9131,
3787,
20185,
716,
2362,
6122,
31090,
506,
1158,
1898,
2353,
943,
3374,
1897,
468,
3949,
14812,
16,
1427,
732,
4565,
5492,
3470,
3134,
14989,
358,
1416,
1525,
468,
1607,
18,
977,
273,
1995,
87,
30,
738,
87,
11,
738,
261,
76,
16,
331,
13,
309,
365,
16186,
1896,
3374,
1897,
405,
374,
471,
562,
12,
955,
13,
405,
365,
16186,
1896,
3374,
1897,
30,
977,
273,
365,
6315,
4939,
67,
3374,
12,
76,
16,
977,
13,
1172,
1671,
365,
6315,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,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
2485,
12,
2890,
16,
1234,
4672,
364,
366,
16,
331,
316,
1234,
18,
3319,
13332,
468,
1660,
1338,
1045,
326,
13195,
17,
1444,
30,
1446,
364,
326,
596,
28055,
468,
1478,
883,
18,
225,
1351,
24233,
16,
732,
848,
1404,
999,
1967,
17734,
2161,
468,
487,
364,
326,
9480,
17,
1265,
5721,
2724,
732,
2727,
1404,
5055,
1347,
468,
13195,
17,
1444,
30,
903,
3334,
18,
309,
366,
18,
8167,
1435,
422,
296,
11757,
17,
1589,
11,
471,
486,
365,
16186,
3645,
30,
1324,
468,
8372,
9131,
3787,
20185,
716,
2362,
6122,
31090,
506,
1158,
1898,
2353,
943,
3374,
1897,
468,
3949,
14812,
16,
1427,
732,
4565,
5492,
3470,
3134,
14989,
358,
1416,
1525,
468,
2
] |
self.location_text = [] def end_(self, tag): style = self.location_style if self.location_text: if self.location_start or self.location_end: | self.text_lines = [] def end_feature(self, tag): if self.location_start or self.location_end: if self.text_lines: | def start_(self, tag, attrs): self.location_style = self.settings["location-style"] self.location_start = None self.location_end = None self.location_text = [] | 7795919201eb3f63ba6ae6a328d1c7499aba60a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/7795919201eb3f63ba6ae6a328d1c7499aba60a2/StdHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
12,
2890,
16,
1047,
16,
3422,
4672,
365,
18,
3562,
67,
4060,
273,
365,
18,
4272,
9614,
3562,
17,
4060,
11929,
365,
18,
3562,
67,
1937,
273,
599,
365,
18,
3562,
67,
409,
273,
599,
365,
18,
3562,
67,
955,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
787,
67,
12,
2890,
16,
1047,
16,
3422,
4672,
365,
18,
3562,
67,
4060,
273,
365,
18,
4272,
9614,
3562,
17,
4060,
11929,
365,
18,
3562,
67,
1937,
273,
599,
365,
18,
3562,
67,
409,
273,
599,
365,
18,
3562,
67,
955,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if length: | if length > 1024: | def add_in_urllist(url, add_item, engine, cache_url = None): if (engine == 'google' and config.copyright_check_in_source_google) or \ (engine == 'yahoo' and config.copyright_check_in_source_yahoo) or \ (engine == 'msn' and config.copyright_check_in_source_msn): check_in_source = True else: check_in_source = False if check_in_source or config.copyright_show_date or config.copyright_show_length: s = None cache = False # list to store date, length, cache URL comment = list() try: s = WebPage(add_item) except URL_exclusion: pass except NoWebPage: cache = True if s: # Before of add url in result list, perform the check in source if check_in_source: if s.check_in_source(): return if config.copyright_show_date: date = s.lastmodified() if date: if date[:3] != time.localtime()[:3]: comment.append("%s/%s/%s" % (date[2], date[1], date[0])) unit = 'bytes' if config.copyright_show_length: length = s.length() if length: # convert in kilobyte length /= 1024 unit = 'KB' if length > 1024: # convert in megabyte length /= 1024 unit = 'MB' if length > 0: comment.append("%d %s" % (length, unit)) if cache: if cache_url: if engine == 'google': comment.append('[http://www.google.com/search?sourceid=navclient&q=cache:%s Google cache]' % urllib2.quote(short_url(add_item))) elif engine == 'yahoo': #cache = False #comment.append('[%s Yahoo cache]' % re.sub('&appid=[^&]*','', urllib2.unquote(cache_url))) comment.append("''Yahoo cache''") elif engine == 'msn': comment.append('[%s Live cache]' % re.sub('&lang=[^&]*','', cache_url)) else: comment.append('[http://web.archive.org/*/%s archive.org]' % short_url(add_item)) for i in range(len(url)): if add_item in url[i]: if engine not in url[i][1]: if url[i][2]: comment = url[i][2] url[i] = (add_item, url[i][1] + ', ' + engine, comment) return url.append((add_item, engine, comment)) return | 98b49ec34c6d4067c0248a230c0b407821cf72a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/98b49ec34c6d4067c0248a230c0b407821cf72a1/copyright.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
267,
67,
718,
1098,
12,
718,
16,
527,
67,
1726,
16,
4073,
16,
1247,
67,
718,
273,
599,
4672,
225,
309,
261,
8944,
422,
296,
9536,
11,
471,
642,
18,
29187,
67,
1893,
67,
267,
67,
3168,
67,
9536,
13,
578,
521,
261,
8944,
422,
296,
93,
9795,
5161,
11,
471,
642,
18,
29187,
67,
1893,
67,
267,
67,
3168,
67,
93,
9795,
5161,
13,
578,
521,
261,
8944,
422,
296,
959,
82,
11,
471,
642,
18,
29187,
67,
1893,
67,
267,
67,
3168,
67,
959,
82,
4672,
866,
67,
267,
67,
3168,
273,
1053,
469,
30,
866,
67,
267,
67,
3168,
273,
1083,
225,
309,
866,
67,
267,
67,
3168,
578,
642,
18,
29187,
67,
4500,
67,
712,
578,
642,
18,
29187,
67,
4500,
67,
2469,
30,
272,
273,
599,
1247,
273,
1083,
225,
468,
666,
358,
1707,
1509,
16,
769,
16,
1247,
1976,
2879,
273,
666,
1435,
225,
775,
30,
272,
273,
2999,
1964,
12,
1289,
67,
1726,
13,
1335,
1976,
67,
338,
15335,
30,
1342,
1335,
2631,
4079,
1964,
30,
1247,
273,
1053,
225,
309,
272,
30,
468,
11672,
434,
527,
880,
316,
563,
666,
16,
3073,
326,
866,
316,
1084,
309,
866,
67,
267,
67,
3168,
30,
309,
272,
18,
1893,
67,
267,
67,
3168,
13332,
327,
225,
309,
642,
18,
29187,
67,
4500,
67,
712,
30,
1509,
273,
272,
18,
2722,
7342,
1435,
309,
1509,
30,
309,
1509,
10531,
23,
65,
480,
813,
18,
3729,
957,
1435,
10531,
23,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
267,
67,
718,
1098,
12,
718,
16,
527,
67,
1726,
16,
4073,
16,
1247,
67,
718,
273,
599,
4672,
225,
309,
261,
8944,
422,
296,
9536,
11,
471,
642,
18,
29187,
67,
1893,
67,
267,
67,
3168,
67,
9536,
13,
578,
521,
261,
8944,
422,
296,
93,
9795,
5161,
11,
471,
642,
18,
29187,
67,
1893,
67,
267,
67,
3168,
67,
93,
9795,
5161,
13,
578,
521,
261,
8944,
422,
296,
959,
82,
11,
471,
642,
18,
29187,
67,
1893,
67,
267,
67,
3168,
67,
959,
82,
4672,
866,
67,
267,
67,
3168,
273,
1053,
469,
30,
866,
67,
267,
67,
3168,
273,
1083,
225,
309,
866,
67,
267,
67,
3168,
578,
642,
18,
29187,
67,
2
] |
endDay = datetime(startDay.year, startDay.month, startDay.day + 1) | def wxSynchronizeWidget(self, **hints): # We now want the preview area to always appear. If the calendar is visible, however, we always want the # preview area to describe today, rather than the currently selected day. minical = Block.Block.findBlockByName("MiniCalendar") if isMainCalendarVisible() or not minical: today = datetime.today() startDay = datetime.combine(today, time(0)) endDay = datetime(startDay.year, startDay.month, startDay.day + 1) else: startDay = minical.widget.getSelectedDate() endDay = datetime(startDay.year, startDay.month, startDay.day + 1) | bb2a26ea141e51ada03c64851f6877fea5e9873d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/bb2a26ea141e51ada03c64851f6877fea5e9873d/CalendarBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7075,
19298,
554,
4609,
12,
2890,
16,
2826,
24598,
4672,
468,
1660,
2037,
2545,
326,
10143,
5091,
358,
3712,
9788,
18,
225,
971,
326,
5686,
353,
6021,
16,
14025,
16,
732,
3712,
2545,
326,
468,
10143,
5091,
358,
6401,
10074,
16,
9178,
2353,
326,
4551,
3170,
2548,
18,
1131,
1706,
273,
3914,
18,
1768,
18,
4720,
1768,
5911,
2932,
2930,
77,
7335,
7923,
309,
353,
6376,
7335,
6207,
1435,
578,
486,
1131,
1706,
30,
10074,
273,
3314,
18,
30064,
1435,
787,
4245,
273,
3314,
18,
14082,
12,
30064,
16,
813,
12,
20,
3719,
469,
30,
787,
4245,
273,
1131,
1706,
18,
6587,
18,
588,
7416,
1626,
1435,
679,
4245,
273,
3314,
12,
1937,
4245,
18,
6874,
16,
787,
4245,
18,
7496,
16,
787,
4245,
18,
2881,
397,
404,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7075,
19298,
554,
4609,
12,
2890,
16,
2826,
24598,
4672,
468,
1660,
2037,
2545,
326,
10143,
5091,
358,
3712,
9788,
18,
225,
971,
326,
5686,
353,
6021,
16,
14025,
16,
732,
3712,
2545,
326,
468,
10143,
5091,
358,
6401,
10074,
16,
9178,
2353,
326,
4551,
3170,
2548,
18,
1131,
1706,
273,
3914,
18,
1768,
18,
4720,
1768,
5911,
2932,
2930,
77,
7335,
7923,
309,
353,
6376,
7335,
6207,
1435,
578,
486,
1131,
1706,
30,
10074,
273,
3314,
18,
30064,
1435,
787,
4245,
273,
3314,
18,
14082,
12,
30064,
16,
813,
12,
20,
3719,
469,
30,
787,
4245,
273,
1131,
1706,
18,
6587,
18,
588,
7416,
1626,
1435,
679,
4245,
273,
3314,
12,
1937,
4245,
18,
6874,
16,
787,
2
] |
|
this = apply(_quickfix.new_TrdRegTimestamp, args) | this = _quickfix.new_TrdRegTimestamp(*args) | def __init__(self, *args): this = apply(_quickfix.new_TrdRegTimestamp, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
1070,
72,
1617,
4921,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
1070,
72,
1617,
4921,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pyver = ".".join([str(i) for i in sys.version_info[:2]]) | def dmg_name(): #maj, min = macosx_version()[:2] pyver = ".".join([str(i) for i in sys.version_info[:2]]) #return "scipy-%s-py%s-macosx%s.%s.dmg" % \ # (FULLVERSION, pyver, maj, min) return "scipy-%s-py%s-python.org.dmg" % \ (FULLVERSION, pyver) | 62e14d7237ef2ae99cb135aa1e662bedca1dd80c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/62e14d7237ef2ae99cb135aa1e662bedca1dd80c/pavement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9113,
75,
67,
529,
13332,
468,
12585,
16,
1131,
273,
5318,
538,
92,
67,
1589,
1435,
10531,
22,
65,
225,
468,
2463,
315,
1017,
9126,
6456,
87,
17,
2074,
9,
87,
17,
5821,
538,
92,
9,
87,
7866,
87,
18,
10956,
75,
6,
738,
521,
468,
3639,
261,
18111,
5757,
16,
2395,
502,
16,
29478,
16,
1131,
13,
327,
315,
1017,
9126,
6456,
87,
17,
2074,
9,
87,
17,
8103,
18,
3341,
18,
10956,
75,
6,
738,
521,
261,
18111,
5757,
16,
2395,
502,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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5821,
538,
92,
9,
87,
7866,
87,
18,
10956,
75,
6,
738,
521,
468,
3639,
261,
18111,
5757,
16,
2395,
502,
16,
29478,
16,
1131,
13,
327,
315,
1017,
9126,
6456,
87,
17,
2074,
9,
87,
17,
8103,
18,
3341,
18,
10956,
75,
6,
738,
521,
261,
18111,
5757,
16,
2395,
502,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
width=80, | width=79, | def __init__ (self, indent_increment=0, max_help_position=24, width=80, short_first=0): HelpFormatter.__init__ ( self, indent_increment, max_help_position, width, short_first) | 4e9e7a61404ea168ffa30f5ef5203d3e0cb3d172 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4e9e7a61404ea168ffa30f5ef5203d3e0cb3d172/optparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
3504,
67,
15016,
33,
20,
16,
943,
67,
5201,
67,
3276,
33,
3247,
16,
1835,
33,
7235,
16,
3025,
67,
3645,
33,
20,
4672,
11288,
5074,
16186,
2738,
972,
261,
365,
16,
3504,
67,
15016,
16,
943,
67,
5201,
67,
3276,
16,
1835,
16,
3025,
67,
3645,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
3504,
67,
15016,
33,
20,
16,
943,
67,
5201,
67,
3276,
33,
3247,
16,
1835,
33,
7235,
16,
3025,
67,
3645,
33,
20,
4672,
11288,
5074,
16186,
2738,
972,
261,
365,
16,
3504,
67,
15016,
16,
943,
67,
5201,
67,
3276,
16,
1835,
16,
3025,
67,
3645,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.pid and self.paused: os.kill(self.pid, signal.SIGCONT) print "continued hatari with PID %d" % self.pid self.paused = False | return self.send_message("hatari-cont\n") | def unpause(self): if self.pid and self.paused: os.kill(self.pid, signal.SIGCONT) print "continued hatari with PID %d" % self.pid self.paused = False | d5af29786f36313ce7c47a3b5fe963033faa2dd7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/d5af29786f36313ce7c47a3b5fe963033faa2dd7/hatari-console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
19476,
12,
2890,
4672,
327,
365,
18,
4661,
67,
2150,
2932,
76,
8761,
77,
17,
1213,
64,
82,
7923,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
19476,
12,
2890,
4672,
327,
365,
18,
4661,
67,
2150,
2932,
76,
8761,
77,
17,
1213,
64,
82,
7923,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
exitall() | if mycontext['winner'] == None: mycontext['winner'] = 'timer' | def foo(): exitall() | b7c7498ec59a2f7198af0e874c08755821fb2cee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/b7c7498ec59a2f7198af0e874c08755821fb2cee/ut_repytests_randomratetest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8431,
13332,
309,
3399,
2472,
3292,
91,
7872,
3546,
422,
599,
30,
3399,
2472,
3292,
91,
7872,
3546,
273,
296,
12542,
11,
282,
2,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8431,
13332,
309,
3399,
2472,
3292,
91,
7872,
3546,
422,
599,
30,
3399,
2472,
3292,
91,
7872,
3546,
273,
296,
12542,
11,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
repr += 'PHI RANGE %.2f %.2f\n' % \ (self._header['phi_start'], self._header['phi_end']) | repr += 'PHI WIDTH %.2f\n' % \ (self._header['phi_start'] - self._header['phi_end']) | def __repr__(self): if self.get_wavelength(): repr = 'SWEEP %s [WAVELENGTH %s]\n' % \ (self._name, self.get_wavelength().get_name()) else: repr = 'SWEEP %s [WAVELENGTH UNDEFINED]\n' % self._name | f944b479cf6f80bbb13faa20490c05a0318c54ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/f944b479cf6f80bbb13faa20490c05a0318c54ed/XSweep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
309,
365,
18,
588,
67,
91,
16775,
13332,
8480,
273,
296,
55,
6950,
10541,
738,
87,
306,
59,
26714,
7096,
738,
87,
13944,
82,
11,
738,
521,
261,
2890,
6315,
529,
16,
365,
18,
588,
67,
91,
16775,
7675,
588,
67,
529,
10756,
469,
30,
8480,
273,
296,
55,
6950,
10541,
738,
87,
306,
59,
26714,
7096,
21919,
13944,
82,
11,
738,
365,
6315,
529,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12715,
972,
12,
2890,
4672,
309,
365,
18,
588,
67,
91,
16775,
13332,
8480,
273,
296,
55,
6950,
10541,
738,
87,
306,
59,
26714,
7096,
738,
87,
13944,
82,
11,
738,
521,
261,
2890,
6315,
529,
16,
365,
18,
588,
67,
91,
16775,
7675,
588,
67,
529,
10756,
469,
30,
8480,
273,
296,
55,
6950,
10541,
738,
87,
306,
59,
26714,
7096,
21919,
13944,
82,
11,
738,
365,
6315,
529,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
realm=quote(realm) | realm=_quote(realm) | def _parse_response(self,response): """Parse a client reponse and pass to further processing. :Parameters: - `response`: the response from the client. :Types: - `response`: `str` :return: a challenge, a success indicator or a failure indicator. :returntype: `sasl.Challenge`, `sasl.Success` or `sasl.Failure`""" response=response.split('\x00')[0] # workaround for some SASL implementations if self.realm: realm=to_utf8(self.realm) realm=quote(realm) else: realm=None username=None cnonce=None digest_uri=None response_val=None authzid=None nonce_count=None while response: m=param_re.match(response) if not m: self.__logger.debug("Response syntax error: %r" % (response,)) return Failure("not-authorized") response=m.group("rest") var=m.group("var") val=m.group("val") self.__logger.debug("%r: %r" % (var,val)) if var=="realm": realm=val[1:-1] elif var=="cnonce": if cnonce: self.__logger.debug("Duplicate cnonce") return Failure("not-authorized") cnonce=val[1:-1] elif var=="qop": if val!='auth': self.__logger.debug("qop other then 'auth'") return Failure("not-authorized") elif var=="digest-uri": digest_uri=val[1:-1] elif var=="authzid": authzid=val[1:-1] elif var=="username": username=val[1:-1] elif var=="response": response_val=val elif var=="nc": nonce_count=val self.last_nonce_count+=1 if int(nonce_count)!=self.last_nonce_count: self.__logger.debug("bad nonce: %r != %r" % (nonce_count,self.last_nonce_count)) return Failure("not-authorized") return self._check_params(username,realm,cnonce,digest_uri, response_val,authzid,nonce_count) | 1e1db4225095c220966b09e2e9bd16f3ebaf7760 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/1e1db4225095c220966b09e2e9bd16f3ebaf7760/digest_md5.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
2740,
12,
2890,
16,
2740,
4672,
3536,
3201,
279,
1004,
283,
575,
471,
1342,
358,
9271,
4929,
18,
225,
294,
2402,
30,
300,
1375,
2740,
68,
30,
326,
766,
628,
326,
1004,
18,
294,
2016,
30,
300,
1375,
2740,
68,
30,
1375,
701,
68,
225,
294,
2463,
30,
279,
12948,
16,
279,
2216,
10664,
578,
279,
5166,
10664,
18,
294,
2463,
723,
30,
1375,
29361,
80,
18,
18359,
9191,
1375,
29361,
80,
18,
4510,
68,
578,
1375,
29361,
80,
18,
5247,
68,
8395,
766,
33,
2740,
18,
4939,
2668,
64,
92,
713,
6134,
63,
20,
65,
468,
18975,
364,
2690,
24380,
48,
16164,
309,
365,
18,
24056,
30,
11319,
33,
869,
67,
3158,
28,
12,
2890,
18,
24056,
13,
11319,
33,
67,
6889,
12,
24056,
13,
469,
30,
11319,
33,
7036,
2718,
33,
7036,
276,
12824,
33,
7036,
5403,
67,
1650,
33,
7036,
766,
67,
1125,
33,
7036,
18686,
350,
33,
7036,
7448,
67,
1883,
33,
7036,
1323,
766,
30,
312,
33,
891,
67,
266,
18,
1916,
12,
2740,
13,
309,
486,
312,
30,
365,
16186,
4901,
18,
4148,
2932,
1064,
6279,
555,
30,
738,
86,
6,
738,
261,
2740,
16,
3719,
327,
13436,
2932,
902,
17,
8434,
7923,
766,
33,
81,
18,
1655,
2932,
8792,
7923,
569,
33,
81,
18,
1655,
2932,
1401,
7923,
1244,
33,
81,
18,
1655,
2932,
1125,
7923,
365,
16186,
4901,
18,
4148,
27188,
86,
30,
738,
86,
6,
738,
261,
1401,
16,
1125,
3719,
309,
569,
31713,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2740,
12,
2890,
16,
2740,
4672,
3536,
3201,
279,
1004,
283,
575,
471,
1342,
358,
9271,
4929,
18,
225,
294,
2402,
30,
300,
1375,
2740,
68,
30,
326,
766,
628,
326,
1004,
18,
294,
2016,
30,
300,
1375,
2740,
68,
30,
1375,
701,
68,
225,
294,
2463,
30,
279,
12948,
16,
279,
2216,
10664,
578,
279,
5166,
10664,
18,
294,
2463,
723,
30,
1375,
29361,
80,
18,
18359,
9191,
1375,
29361,
80,
18,
4510,
68,
578,
1375,
29361,
80,
18,
5247,
68,
8395,
766,
33,
2740,
18,
4939,
2668,
64,
92,
713,
6134,
63,
20,
65,
468,
18975,
364,
2690,
24380,
48,
16164,
309,
365,
18,
24056,
30,
11319,
33,
869,
67,
3158,
28,
12,
2
] |
if check and not context.get('no_store_function'): | if check and ((not context.get('no_store_function')) or journal.entry_posted): | def create(self, cr, uid, vals, context=None, check=True): if not context: context={} account_obj = self.pool.get('account.account') tax_obj=self.pool.get('account.tax') if ('account_id' in vals) and not account_obj.read(cr, uid, vals['account_id'], ['active'])['active']: raise osv.except_osv(_('Bad account!'), _('You can not use an inactive account!')) if 'journal_id' in vals and 'journal_id' not in context: context['journal_id'] = vals['journal_id'] if 'period_id' in vals and 'period_id' not in context: context['period_id'] = vals['period_id'] if ('journal_id' not in context) and ('move_id' in vals) and vals['move_id']: m = self.pool.get('account.move').browse(cr, uid, vals['move_id']) context['journal_id'] = m.journal_id.id context['period_id'] = m.period_id.id | ee48c965e50a90706d37f3ee951dffcaa7e7cb73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ee48c965e50a90706d37f3ee951dffcaa7e7cb73/account_move_line.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
5773,
16,
819,
33,
7036,
16,
866,
33,
5510,
4672,
309,
486,
819,
30,
819,
12938,
2236,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
4631,
6134,
5320,
67,
2603,
33,
2890,
18,
6011,
18,
588,
2668,
4631,
18,
8066,
6134,
309,
7707,
4631,
67,
350,
11,
316,
5773,
13,
471,
486,
2236,
67,
2603,
18,
896,
12,
3353,
16,
4555,
16,
5773,
3292,
4631,
67,
350,
17337,
10228,
3535,
19486,
3292,
3535,
3546,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
6434,
2236,
5124,
3631,
389,
2668,
6225,
848,
486,
999,
392,
16838,
2236,
5124,
3719,
309,
296,
22644,
67,
350,
11,
316,
5773,
471,
296,
22644,
67,
350,
11,
486,
316,
819,
30,
819,
3292,
22644,
67,
350,
3546,
273,
5773,
3292,
22644,
67,
350,
3546,
309,
296,
6908,
67,
350,
11,
316,
5773,
471,
296,
6908,
67,
350,
11,
486,
316,
819,
30,
819,
3292,
6908,
67,
350,
3546,
273,
5773,
3292,
6908,
67,
350,
3546,
309,
7707,
22644,
67,
350,
11,
486,
316,
819,
13,
471,
7707,
8501,
67,
350,
11,
316,
5773,
13,
471,
5773,
3292,
8501,
67,
350,
3546,
30,
312,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
8501,
16063,
25731,
12,
3353,
16,
4555,
16,
5773,
3292,
8501,
67,
350,
19486,
819,
3292,
22644,
67,
350,
3546,
273,
312,
18,
22644,
67,
350,
18,
350,
819,
3292,
6908,
67,
350,
3546,
273,
312,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
5773,
16,
819,
33,
7036,
16,
866,
33,
5510,
4672,
309,
486,
819,
30,
819,
12938,
2236,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
4631,
6134,
5320,
67,
2603,
33,
2890,
18,
6011,
18,
588,
2668,
4631,
18,
8066,
6134,
309,
7707,
4631,
67,
350,
11,
316,
5773,
13,
471,
486,
2236,
67,
2603,
18,
896,
12,
3353,
16,
4555,
16,
5773,
3292,
4631,
67,
350,
17337,
10228,
3535,
19486,
3292,
3535,
3546,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
6434,
2236,
5124,
3631,
389,
2668,
6225,
848,
486,
999,
392,
16838,
2236,
5124,
3719,
309,
296,
22644,
67,
350,
11,
316,
2
] |
def on_edit_active_task(self, widget, row=None, col=None): | def on_edit_active_task(self, widget, row=None, col=None): | def on_edit_active_task(self, widget, row=None, col=None): #pylint: disable-msg=W0613 tid = self.get_selected_task() if tid: self.open_task(tid) | 451ea29e3924785bc6c6b8648aa6459b292a0db4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/451ea29e3924785bc6c6b8648aa6459b292a0db4/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4619,
67,
3535,
67,
4146,
12,
2890,
16,
3604,
16,
1027,
33,
7036,
16,
645,
33,
7036,
4672,
468,
2074,
5671,
30,
4056,
17,
3576,
33,
59,
7677,
3437,
11594,
273,
365,
18,
588,
67,
8109,
67,
4146,
1435,
309,
11594,
30,
365,
18,
3190,
67,
4146,
12,
18081,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4619,
67,
3535,
67,
4146,
12,
2890,
16,
3604,
16,
1027,
33,
7036,
16,
645,
33,
7036,
4672,
468,
2074,
5671,
30,
4056,
17,
3576,
33,
59,
7677,
3437,
11594,
273,
365,
18,
588,
67,
8109,
67,
4146,
1435,
309,
11594,
30,
365,
18,
3190,
67,
4146,
12,
18081,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'Endtime occured in depth %s' % depth | def go (queue): """ Finds and prints the best move from the current position """ searchLock.acquire() try: queue.put(None) # TODO: Length info should be put in the book. # Btw. 10 is not enough. Try 20 if len(board.history) < 14: movestr = getBestOpening(board) if movestr: mvs = [parseSAN(board, movestr)] if len(board.history) >= 14 or not movestr: global mytime, increment, scr lsearch.searching = True if mytime == None: mvs, scr = alphaBeta (board, sd) else: # We bet that the game will be about 40 moves. That gives us # starttime / 40 seconds per turn + the incremnt. # TODO: Create more sophisticated method. if mytime <= 60: usetime = float(mytime) / 30 else: usetime = float(mytime) / max((40-len(board.history)/2), 2) usetime = max (usetime, 0.5) # We don't wan't to search for e.g. 0 secs starttime = time() lsearch.endtime = starttime + usetime prevtime = 0 print "Time left: %3.2f seconds; Plan to thinking for %3.2f seconds; Endtime at %0.2f" % \ (mytime, usetime, lsearch.endtime) for depth in range(1, sd+1): # Heuristic time saving # Don't waste time, if the estimated isn't enough to complete next depth if usetime > prevtime*4 or usetime <= 1: print 'Starting depth %s at %0.2f' % (depth, time()) lsearch.timecheck_counter = lsearch.TIMECHECK_FREQ search_result = alphaBeta(board, depth) if lsearch.searching: mvs, scr = search_result if time() > lsearch.endtime: print 'Endtime occured after depth %s' % depth break else: print 'Endtime occured in depth %s' % depth break prevtime = time()-starttime - prevtime else: print 'Not enough time for depth %s' % depth break print 'Move at %0.1f' % time() mytime -= time() - starttime mytime += increment if not mvs: if not lsearch.searching: # We were interupted lsearch.movesearches = 0 lsearch.nodes = 0 searchLock.release() return if lsearch.last == 4: print "resign" else: if scr == 0: print "result", reprResult[DRAW] elif scr < 0: if board.color == WHITE: print "result", reprResult[BLACKWON] else: print "result", reprResult[WHITEWON] else: if board.color == WHITE: print "result", reprResult[WHITEWON] else: print "result", reprResult[BLACKWON] print "last:", lsearch.last, scr return print "moves were:", " ".join(listToSan(board, mvs)), scr lsearch.movesearches = 0 lsearch.nodes = 0 lsearch.searching = False move = mvs[0] print "move", toSAN(board, move) board.applyMove(move) finally: searchLock.release() | 6195ab01b21d419f1148d6c07190f7630a4d17fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/6195ab01b21d419f1148d6c07190f7630a4d17fb/PyChess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
261,
4000,
4672,
3536,
4163,
87,
471,
14971,
326,
3796,
3635,
628,
326,
783,
1754,
3536,
1623,
2531,
18,
1077,
1039,
1435,
775,
30,
2389,
18,
458,
12,
7036,
13,
468,
2660,
30,
11311,
1123,
1410,
506,
1378,
316,
326,
6978,
18,
468,
605,
11246,
18,
1728,
353,
486,
7304,
18,
6161,
4200,
309,
562,
12,
3752,
18,
8189,
13,
411,
5045,
30,
13934,
313,
273,
28782,
21378,
12,
3752,
13,
309,
13934,
313,
30,
312,
6904,
273,
306,
2670,
22721,
12,
3752,
16,
13934,
313,
25887,
225,
309,
562,
12,
3752,
18,
8189,
13,
1545,
5045,
578,
486,
13934,
313,
30,
225,
2552,
3399,
957,
16,
5504,
16,
11991,
328,
3072,
18,
3072,
310,
273,
1053,
225,
309,
3399,
957,
422,
599,
30,
312,
6904,
16,
11991,
273,
4190,
38,
1066,
261,
3752,
16,
8349,
13,
225,
469,
30,
468,
1660,
2701,
716,
326,
7920,
903,
506,
2973,
8063,
13934,
18,
12466,
14758,
584,
468,
23437,
342,
8063,
3974,
1534,
7005,
397,
326,
7033,
21818,
18,
468,
2660,
30,
1788,
1898,
272,
23169,
5846,
690,
707,
18,
309,
3399,
957,
1648,
4752,
30,
584,
2374,
273,
1431,
12,
4811,
957,
13,
342,
5196,
469,
30,
584,
2374,
273,
1431,
12,
4811,
957,
13,
342,
943,
12443,
7132,
17,
1897,
12,
3752,
18,
8189,
13176,
22,
3631,
576,
13,
584,
2374,
273,
943,
261,
407,
2374,
16,
374,
18,
25,
13,
468,
1660,
2727,
1404,
341,
304,
1404,
358,
1623,
364,
425,
18,
75,
18,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
261,
4000,
4672,
3536,
4163,
87,
471,
14971,
326,
3796,
3635,
628,
326,
783,
1754,
3536,
1623,
2531,
18,
1077,
1039,
1435,
775,
30,
2389,
18,
458,
12,
7036,
13,
468,
2660,
30,
11311,
1123,
1410,
506,
1378,
316,
326,
6978,
18,
468,
605,
11246,
18,
1728,
353,
486,
7304,
18,
6161,
4200,
309,
562,
12,
3752,
18,
8189,
13,
411,
5045,
30,
13934,
313,
273,
28782,
21378,
12,
3752,
13,
309,
13934,
313,
30,
312,
6904,
273,
306,
2670,
22721,
12,
3752,
16,
13934,
313,
25887,
225,
309,
562,
12,
3752,
18,
8189,
13,
1545,
5045,
578,
486,
13934,
313,
30,
225,
2552,
3399,
957,
16,
5504,
16,
11991,
328,
3072,
18,
3072,
310,
273,
1053,
2
] |
|
additional_path=os.path.join(buildenv['root'],'chandler',ver,'lib')+\ os.pathsep + os.path.join(buildenv['root'],'chandler',ver,'db','lib')+\ os.pathsep + os.path.join(buildenv['root'],'chandler',ver,'dbxml','lib') ld_library_path = additional_path + os.pathsep + ld_library_path | additional_paths = [ os.path.join(CHANDLERBIN, ver, 'lib'), os.path.join(CHANDLERBIN, ver, 'db', 'lib'), os.path.join(CHANDLERBIN, ver, 'dbxml', 'lib'), ld_library_path ] ld_library_path = os.pathsep.join(additional_paths) | def setupEnvironment(buildenv): if buildenv['version'] == 'debug': path = buildenv['root'] + os.sep + 'chandler' + os.sep + 'debug' + os.sep + 'bin' + \ os.pathsep + buildenv['path'] os.putenv('BUILDMODE', 'debug') if buildenv['version'] == 'release': path = buildenv['root'] + os.sep + 'chandler' + os.sep + 'release' + os.sep + 'bin' + \ os.pathsep + buildenv['path'] os.putenv('BUILDMODE', 'release') # to run Chandler-related scripts from directories other than # chandler, PYTHONPATH is needed pythonpaths = [] prevPath = os.getenv('PYTHONPATH') if prevPath: pythonpaths.append(prevPath) # need to add chandler and chandler/parcels to PYTHONPATH pythonpaths.append(os.path.join(buildenv['root'], "chandler")) pythonpaths.append(os.path.join(buildenv['root'], "chandler", "parcels")) pythonpath = os.pathsep.join(pythonpaths) # log(buildenv, HARDHAT_MESSAGE, 'hardhat', "Setting path to " + path) # os.putenv('path', path) if (sys.platform == 'cygwin'): # Even though we're under cygwin, we're going to be launching # external programs that expect PATH to be in DOS format, so # convert it try: if('.'.join(map(str, sys.version_info[:3])) < '2.3.0'): # we only need to fix the path on versions before 2.3 cygpath = os.popen("/bin/cygpath -wp \"" + path + "\"", "r") path = cygpath.readline() path = path[:-1] cygpath.close() # also convert PYTHONPATH to DOS format cygpath = os.popen("/bin/cygpath -wp \"" + pythonpath + "\"", "r") pythonpath = cygpath.readline() pythonpath = pythonpath[:-1] cygpath.close() except Exception, e: print e print "Unable to call 'cygpath' to determine DOS-equivalent for PATH" print "Either make sure that 'cygpath' is in your PATH or run the Windows version" print "of Python from http://python.org/, rather than the Cygwin Python" raise HardHatError os.putenv('PATH', path) os.putenv('PYTHONPATH', pythonpath) if buildenv['os'] == 'win': # Use DOS format paths under windows os.putenv('CHANDLERHOME', buildenv['root_dos']+"\\chandler") else: os.putenv('CHANDLERHOME', buildenv['root']+os.sep+"chandler") if buildenv['os'] == 'posix': ld_library_path = os.environ.get('LD_LIBRARY_PATH', '') ver = buildenv['version'] additional_path=os.path.join(buildenv['root'],'chandler',ver,'lib')+\ os.pathsep + os.path.join(buildenv['root'],'chandler',ver,'db','lib')+\ os.pathsep + os.path.join(buildenv['root'],'chandler',ver,'dbxml','lib') ld_library_path = additional_path + os.pathsep + ld_library_path os.putenv('LD_LIBRARY_PATH', ld_library_path) if buildenv['os'] == 'osx': dyld_library_path = os.environ.get('DYLD_LIBRARY_PATH', '') ver = buildenv['version'] additional_path=os.path.join(buildenv['root'],'chandler',ver,'lib')+\ os.pathsep + os.path.join(buildenv['root'],'chandler',ver,'db','lib')+\ os.pathsep + os.path.join(buildenv['root'],'chandler',ver,'dbxml','lib') dyld_library_path = additional_path + os.pathsep + dyld_library_path os.putenv('DYLD_LIBRARY_PATH', dyld_library_path) dyld_framework_path = os.environ.get('DYLD_FRAMEWORK_PATH', '') additional_path = os.path.join( buildenv['root'], 'chandler', ver, 'Library', 'Frameworks') dyld_framework_path = additional_path + os.pathsep + dyld_framework_path os.putenv('DYLD_FRAMEWORK_PATH', dyld_framework_path) | a17acba4eaef7c37e9e8fb617272ca059931311b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/a17acba4eaef7c37e9e8fb617272ca059931311b/hardhatlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
5494,
12,
3510,
3074,
4672,
225,
309,
1361,
3074,
3292,
1589,
3546,
422,
296,
4148,
4278,
589,
273,
1361,
3074,
3292,
3085,
3546,
397,
1140,
18,
10814,
397,
296,
343,
464,
749,
11,
397,
1140,
18,
10814,
397,
296,
4148,
11,
397,
1140,
18,
10814,
397,
296,
4757,
11,
397,
521,
1140,
18,
803,
10814,
397,
1361,
3074,
3292,
803,
3546,
1140,
18,
458,
3074,
2668,
20215,
7038,
2187,
296,
4148,
6134,
225,
309,
1361,
3074,
3292,
1589,
3546,
422,
296,
9340,
4278,
589,
273,
1361,
3074,
3292,
3085,
3546,
397,
1140,
18,
10814,
397,
296,
343,
464,
749,
11,
397,
1140,
18,
10814,
397,
296,
9340,
11,
397,
1140,
18,
10814,
397,
296,
4757,
11,
397,
521,
1140,
18,
803,
10814,
397,
1361,
3074,
3292,
803,
3546,
1140,
18,
458,
3074,
2668,
20215,
7038,
2187,
296,
9340,
6134,
225,
468,
358,
1086,
1680,
464,
749,
17,
9243,
8873,
628,
6402,
1308,
2353,
468,
462,
464,
749,
16,
12191,
20131,
4211,
353,
3577,
5790,
4481,
273,
5378,
2807,
743,
273,
1140,
18,
588,
3074,
2668,
16235,
20131,
4211,
6134,
309,
2807,
743,
30,
5790,
4481,
18,
6923,
12,
10001,
743,
13,
225,
468,
1608,
358,
527,
462,
464,
749,
471,
462,
464,
749,
19,
1065,
2183,
87,
358,
12191,
20131,
4211,
5790,
4481,
18,
6923,
12,
538,
18,
803,
18,
5701,
12,
3510,
3074,
3292,
3085,
17337,
315,
343,
464,
749,
6,
3719,
5790,
4481,
18,
6923,
12,
538,
18,
803,
18,
5701,
12,
3510,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5494,
12,
3510,
3074,
4672,
225,
309,
1361,
3074,
3292,
1589,
3546,
422,
296,
4148,
4278,
589,
273,
1361,
3074,
3292,
3085,
3546,
397,
1140,
18,
10814,
397,
296,
343,
464,
749,
11,
397,
1140,
18,
10814,
397,
296,
4148,
11,
397,
1140,
18,
10814,
397,
296,
4757,
11,
397,
521,
1140,
18,
803,
10814,
397,
1361,
3074,
3292,
803,
3546,
1140,
18,
458,
3074,
2668,
20215,
7038,
2187,
296,
4148,
6134,
225,
309,
1361,
3074,
3292,
1589,
3546,
422,
296,
9340,
4278,
589,
273,
1361,
3074,
3292,
3085,
3546,
397,
1140,
18,
10814,
397,
296,
343,
464,
749,
11,
397,
1140,
18,
10814,
397,
296,
9340,
11,
397,
1140,
18,
10814,
397,
296,
4757,
11,
397,
2
] |
""" runs = self.runs() lis = [] max_length = max([len(r) for r in runs]) for run in runs: if len(run) == max_length: lis.append(run) return lis | sage: Permutation([5, 7, 1, 2, 6, 4, 3]).longest_increasing_subsequences() [[1, 2, 6], [1, 2, 4], [1, 2, 3]] """ patt=range(1,self.longest_increasing_subsequence_length()+1) return map(lambda m : map(lambda i : self[i],m) , self.pattern_positions(patt)) | def longest_increasing_subsequence(self): r""" Returns a list of the longest increasing subsequences of the permutation p. EXAMPLES:: sage: Permutation([2,3,4,1]).longest_increasing_subsequence() [[2, 3, 4]] """ runs = self.runs() lis = [] max_length = max([len(r) for r in runs]) for run in runs: if len(run) == max_length: lis.append(run) return lis | 2742a7a9592580d4385949a1063b94fbc3d28432 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2742a7a9592580d4385949a1063b94fbc3d28432/permutation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
267,
1793,
11730,
67,
1717,
6178,
12,
2890,
4672,
436,
8395,
2860,
279,
666,
434,
326,
12163,
21006,
720,
17190,
434,
326,
17440,
293,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
13813,
9245,
3816,
22,
16,
23,
16,
24,
16,
21,
65,
2934,
5748,
395,
67,
267,
1793,
11730,
67,
1717,
6178,
1435,
12167,
22,
16,
890,
16,
1059,
13563,
3536,
7597,
273,
365,
18,
20152,
1435,
328,
291,
273,
5378,
943,
67,
2469,
273,
943,
3816,
1897,
12,
86,
13,
364,
436,
316,
7597,
5717,
364,
1086,
316,
7597,
30,
309,
562,
12,
2681,
13,
422,
943,
67,
2469,
30,
328,
291,
18,
6923,
12,
2681,
13,
327,
328,
291,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12163,
67,
267,
1793,
11730,
67,
1717,
6178,
12,
2890,
4672,
436,
8395,
2860,
279,
666,
434,
326,
12163,
21006,
720,
17190,
434,
326,
17440,
293,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
13813,
9245,
3816,
22,
16,
23,
16,
24,
16,
21,
65,
2934,
5748,
395,
67,
267,
1793,
11730,
67,
1717,
6178,
1435,
12167,
22,
16,
890,
16,
1059,
13563,
3536,
7597,
273,
365,
18,
20152,
1435,
328,
291,
273,
5378,
943,
67,
2469,
273,
943,
3816,
1897,
12,
86,
13,
364,
436,
316,
7597,
5717,
364,
1086,
316,
7597,
30,
309,
562,
12,
2681,
13,
422,
943,
67,
2469,
30,
328,
291,
18,
6923,
12,
2681,
13,
327,
328,
291,
2,
-100,
-100
] |
self.selected = default children = self.menu.children() for child in range(len(children)): if children[child].get_data("Gimp-ID") == default: self.set_history(child) break | if default == None: self.selected = self.menu.children()[0].get_data("Gimp-ID") self.set_history (0) else: self.selected = default children = self.menu.children() for child in range(len(children)): if children[child].get_data("Gimp-ID") == default: self.set_history(child) break | def __init__(self, default=None): gtk.OptionMenu.__init__(self) self.menu = ImageMenu(None, self.clicked) self.set_menu(self.menu) self.selected = default children = self.menu.children() for child in range(len(children)): if children[child].get_data("Gimp-ID") == default: self.set_history(child) break | ed0ff9f51947e99429f4ee8e045e0cf67f3109ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/ed0ff9f51947e99429f4ee8e045e0cf67f3109ff/gimpui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
805,
33,
7036,
4672,
22718,
18,
1895,
4599,
16186,
2738,
972,
12,
2890,
13,
365,
18,
5414,
273,
3421,
4599,
12,
7036,
16,
365,
18,
7475,
329,
13,
365,
18,
542,
67,
5414,
12,
2890,
18,
5414,
13,
365,
18,
8109,
273,
805,
2325,
273,
365,
18,
5414,
18,
5906,
1435,
364,
1151,
316,
1048,
12,
1897,
12,
5906,
3719,
30,
309,
2325,
63,
3624,
8009,
588,
67,
892,
2932,
43,
14532,
17,
734,
7923,
422,
805,
30,
365,
18,
542,
67,
8189,
12,
3624,
13,
898,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
805,
33,
7036,
4672,
22718,
18,
1895,
4599,
16186,
2738,
972,
12,
2890,
13,
365,
18,
5414,
273,
3421,
4599,
12,
7036,
16,
365,
18,
7475,
329,
13,
365,
18,
542,
67,
5414,
12,
2890,
18,
5414,
13,
365,
18,
8109,
273,
805,
2325,
273,
365,
18,
5414,
18,
5906,
1435,
364,
1151,
316,
1048,
12,
1897,
12,
5906,
3719,
30,
309,
2325,
63,
3624,
8009,
588,
67,
892,
2932,
43,
14532,
17,
734,
7923,
422,
805,
30,
365,
18,
542,
67,
8189,
12,
3624,
13,
898,
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
] |
if isinstance(value, tuple): | else: | def __init__(self, value=None): if value is None: self.sign = None self.int = 0 self.exp = None if isinstance(value, Decimal): if value._sign: self.sign = -1 else: self.sign = 1 cum = 0 for digit in value._int: cum = cum * 10 + digit self.int = cum self.exp = value._exp if isinstance(value, tuple): self.sign = value[0] self.int = value[1] self.exp = value[2] | b7ed2df9f8b3eaa226b68d6c2ebfcb1ddb522d57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b7ed2df9f8b3eaa226b68d6c2ebfcb1ddb522d57/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
460,
33,
7036,
4672,
309,
460,
353,
599,
30,
365,
18,
2977,
273,
599,
365,
18,
474,
273,
374,
365,
18,
2749,
273,
599,
309,
1549,
12,
1132,
16,
11322,
4672,
309,
460,
6315,
2977,
30,
365,
18,
2977,
273,
300,
21,
469,
30,
365,
18,
2977,
273,
404,
14471,
273,
374,
364,
8035,
316,
460,
6315,
474,
30,
14471,
273,
14471,
380,
1728,
397,
8035,
365,
18,
474,
273,
14471,
365,
18,
2749,
273,
460,
6315,
2749,
469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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
460,
33,
7036,
4672,
309,
460,
353,
599,
30,
365,
18,
2977,
273,
599,
365,
18,
474,
273,
374,
365,
18,
2749,
273,
599,
309,
1549,
12,
1132,
16,
11322,
4672,
309,
460,
6315,
2977,
30,
365,
18,
2977,
273,
300,
21,
469,
30,
365,
18,
2977,
273,
404,
14471,
273,
374,
364,
8035,
316,
460,
6315,
474,
30,
14471,
273,
14471,
380,
1728,
397,
8035,
365,
18,
474,
273,
14471,
365,
18,
2749,
273,
460,
6315,
2749,
469,
30,
225,
365,
18,
2977,
273,
460,
63,
20,
65,
365,
18,
474,
273,
460,
63,
21,
65,
365,
18,
2749,
273,
460,
63,
22,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def run_script(self, script, args=None): | def test_issue_8(self): """Test that the module works with 'python -m'.""" module = 'spt_issue_8' pypath = os.environ.get('PYTHONPATH', None) dir = tempfile.mkdtemp() os.environ['PYTHONPATH'] = dir + os.pathsep + (pypath or '') try: open(dir + '/' + module + '.py', 'w').write( self._clean_whitespaces(r""" import setproctitle setproctitle.setproctitle("X" * 40) print open("/proc/self/cmdline").read() """)) rv = self.run_script(args="-m " + module) self.assertEqual(rv.replace('\x00', ' ').rstrip(), 'X' * 40) finally: shutil.rmtree(dir, ignore_errors=True) if pypath is not None: os.environ['PYTHONPATH'] = pypath else: del os.environ['PYTHONPATH'] def run_script(self, script=None, args=None): | def run_script(self, script, args=None): """run a script in a separate process. | f37b68a239d4e9e0cbaa53e8d2c107c08a8f2f67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11588/f37b68a239d4e9e0cbaa53e8d2c107c08a8f2f67/setproctitle_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13882,
67,
28,
12,
2890,
4672,
3536,
4709,
716,
326,
1605,
6330,
598,
296,
8103,
300,
81,
11,
12123,
1605,
273,
296,
87,
337,
67,
13882,
67,
28,
11,
2395,
803,
273,
1140,
18,
28684,
18,
588,
2668,
16235,
20131,
4211,
2187,
599,
13,
1577,
273,
13275,
18,
24816,
72,
5814,
1435,
1140,
18,
28684,
3292,
16235,
20131,
4211,
3546,
273,
1577,
397,
1140,
18,
803,
10814,
397,
261,
2074,
803,
578,
28707,
775,
30,
1696,
12,
1214,
397,
2023,
397,
1605,
397,
2418,
2074,
2187,
296,
91,
16063,
2626,
12,
365,
6315,
6200,
67,
3350,
21693,
12,
86,
8395,
1930,
444,
685,
299,
1280,
444,
685,
299,
1280,
18,
542,
685,
299,
1280,
2932,
60,
6,
380,
8063,
13,
1172,
1696,
2932,
19,
9381,
19,
2890,
19,
4172,
1369,
20387,
896,
1435,
3536,
3719,
225,
5633,
273,
365,
18,
2681,
67,
4263,
12,
1968,
1546,
17,
81,
315,
397,
1605,
13,
365,
18,
11231,
5812,
12,
4962,
18,
2079,
2668,
64,
92,
713,
2187,
296,
296,
2934,
86,
6406,
9334,
296,
60,
11,
380,
8063,
13,
225,
3095,
30,
11060,
18,
86,
17371,
12,
1214,
16,
2305,
67,
4324,
33,
5510,
13,
309,
2395,
803,
353,
486,
599,
30,
1140,
18,
28684,
3292,
16235,
20131,
4211,
3546,
273,
2395,
803,
469,
30,
1464,
1140,
18,
28684,
3292,
16235,
20131,
4211,
3546,
282,
1652,
1086,
67,
4263,
12,
2890,
16,
2728,
33,
7036,
16,
833,
33,
7036,
4672,
3536,
2681,
279,
2728,
316,
279,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13882,
67,
28,
12,
2890,
4672,
3536,
4709,
716,
326,
1605,
6330,
598,
296,
8103,
300,
81,
11,
12123,
1605,
273,
296,
87,
337,
67,
13882,
67,
28,
11,
2395,
803,
273,
1140,
18,
28684,
18,
588,
2668,
16235,
20131,
4211,
2187,
599,
13,
1577,
273,
13275,
18,
24816,
72,
5814,
1435,
1140,
18,
28684,
3292,
16235,
20131,
4211,
3546,
273,
1577,
397,
1140,
18,
803,
10814,
397,
261,
2074,
803,
578,
28707,
775,
30,
1696,
12,
1214,
397,
2023,
397,
1605,
397,
2418,
2074,
2187,
296,
91,
16063,
2626,
12,
365,
6315,
6200,
67,
3350,
21693,
12,
86,
8395,
1930,
444,
685,
299,
1280,
444,
685,
299,
1280,
18,
542,
685,
299,
1280,
2932,
60,
2
] |
imageF_anat_fwhm = build_fwhm(mat_anat, step) | imageF_anat_fwhm = build_fwhm(anat_mat, step) | def demo_MRI_coregistration(anatfile, funclist, optimizer_method='powell', histo_method=1, smooth_histo=0, smooth_image=0, ftype=1): """ demo with (must have file ANAT1_V0001.img and fMRI directory fMRIData) measures, imageF_anat, fmri_series = reg.demo_MRI_coregistration() show results with In [59]: measures[25]['cost'] Out[59]: -0.48607185 In [60]: measures[25]['align_cost'] Out[60]: -0.99514639 In [61]: measures[25]['align_rotate'] Out[61]: array([ 1.94480181, 5.64703989, 5.35002136, -5.00544405, -2.2712214, -1.42249691], dtype=float32) In [62]: measures[25]['rotate'] Out[62]: array([ 1.36566341, 4.70644331, 4.68198586, -4.32256889, -2.47607017, -2.39173937], dtype=float32) """ # demo of alignment of fMRI series with anatomical MRI # in this demo, each fMRI volume is first perturbed (rotated, translated) # by a random value. The initial registration is measured, then the optimal # alignment is computed and the registration measure made following the volume remap. # The fMRI registration is done with the first fMRI volume using normalized cross-correlation. # Each fMRI volume is rotated to the fMRI-0 volume and the series is ensemble averaged. # The ensemble averaged is then registered with the anatomical MRI volume using normalized mutual information. # The fMRI series is then rotated with this parameter. The alignments are done with 3D cubic splines. # read the anatomical MRI volume anat_desc = load_anatMRI_desc() imageF_anat, anat_mat = load_volume(anat_desc, imagename=anatfile) imageF = imageF_anat.copy() # the sampling structure step = np.array([1, 1, 1], dtype=np.int32) # the volume filter imageF_anat_fwhm = build_fwhm(mat_anat, step) # allocate the structure for the processed fMRI array metric_test = np.dtype([('cost', 'f'), ('align_cost', 'f'), ('rotate', 'f', 6), ('align_rotate', 'f', 6)]) # allocate the empty dictionary that will contain metrics and aligned volumes fmri_series = {} # read in the file list of the fMRI data fMRIdata = read_fMRI_directory('fMRIData\*.img') fmri_desc = load_fMRI_desc() image_fmri, fmri_mat = load_volume(fmri_desc, fMRIdata[0]) # one time build of the fwhm that is used to build the filter kernels anat_fwhm = build_fwhm(anat_mat, step) fmri_fwhm = build_fwhm(fmri_mat, step) # blank volume that will be used for ensemble average for fMRI volumes # prior to functional-anatomical coregistration ave_fMRI_volume = np.zeros([fmri_desc['layers']*fmri_desc['rows']*fmri_desc['cols']].dtype=np.float64) count = 0 number_volumes = len(fMRIdata) measures = np.zeros(number_volumes, dtype=metric_test) # load and perturb (rotation, translation) the fMRI volumes for i in fMRIdata: image = load_volume(fmri_desc, i) # random perturbation of angle, translation for each volume beyond the first if count == 0: fmri_series[count] = image count = count + 1 else: x = np.random.random(6) - 0.5 x = 10.0 * x fmri_series[count] = demo_rotate_fMRI_volume(image, fmri_desc, x) measures[count]['rotate'][0:6] = x[0:6] count = count + 1 # load and register the fMRI volumes with volume_0 using normalized cross correlation metric imageF = fmri_series[0] if smooth_image: imageF = filter_image_3D(imageF, fmri_fwhm, ftype) for i in range(1, number_volumes): imageG = fmri_series[i] if smooth_image: imageG = filter_image_3D(imageG, fmri_fwhm, ftype) # the measure prior to alignment measures[i]['cost'] = check_alignment(imageF, fmri_mat, imageG, fmri_mat, method='ncc', lite=histo_method, smhist=smooth_histo) x = coregister(imageF, fmri_mat, imageG, fmri_mat, lite=histo_method, method='ncc', opt_method=optimizer_method, smhist=smooth_histo) measures[i]['align_rotate'][0:6] = x[0:6] measures[i]['align_cost'] = check_alignment(imageF, fmri_mat, imageG, fmri_mat, method='ncc', lite=histo_method, smhist=smooth_histo, alpha=x[0], beta=x[1], gamma=x[2], Tx=x[3], Ty=x[4], Tz=x[5]) # align the volumes and average them for co-registration with the anatomical MRI ave_fMRI_volume = fmri_series[0]['data'].astype(np.float64) for i in range(1, number_volumes): image = fmri_series[i] x[0:6] = measures[i]['align_rotate'][0:6] # overwrite the fMRI volume with the aligned volume fmri_series[i] = remap_image(image, x, resample='cubic') ave_fMRI_volume = ave_fMRI_volume + fmri_series[i]['data'].astype(np.float64) ave_fMRI_volume = (ave_fMRI_volume / float(number_volumes)).astype(np.uint8) ave_fMRI_volume = {'data' : ave_fMRI_volume, 'mat' : imageF['mat'], 'dim' : imageF['dim'], 'fwhm' : imageF['fwhm']} # register (using normalized mutual information) with the anatomical MRI if smooth_image: imageF_anat = filter_image_3D(imageF_anat, anat_fwhm, ftype) x = coregister(imageF_anat, anat_mat, ave_fMRI_volume, fmri_mat, lite=histo_method, method='nmi', opt_method=optimizer_method, smhist=smooth_histo) print 'functional-anatomical align parameters ' print x for i in range(number_volumes): image = fmri_series[i] # overwrite the fMRI volume with the anatomical-aligned volume fmri_series[i] = remap_image(image, x, resample='cubic') return measures, imageF, fmri_series | 8ba3c3ee13ac48ee356ec8319930a6b0510f110b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/8ba3c3ee13ac48ee356ec8319930a6b0510f110b/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
67,
49,
2259,
67,
3644,
75,
4218,
12,
304,
270,
768,
16,
1326,
1098,
16,
13066,
67,
2039,
2218,
23509,
1165,
2187,
5356,
83,
67,
2039,
33,
21,
16,
11957,
67,
11488,
83,
33,
20,
16,
11957,
67,
2730,
33,
20,
16,
21219,
33,
21,
4672,
3536,
21477,
598,
261,
11926,
1240,
585,
8175,
789,
21,
67,
58,
13304,
18,
6081,
471,
284,
49,
2259,
1867,
284,
23464,
734,
396,
13,
225,
22692,
16,
1316,
42,
67,
304,
270,
16,
10940,
566,
67,
10222,
273,
960,
18,
27928,
67,
49,
2259,
67,
3644,
75,
4218,
1435,
225,
2405,
1686,
598,
225,
657,
306,
6162,
14542,
22692,
63,
2947,
23962,
12398,
3546,
2976,
63,
6162,
14542,
300,
20,
18,
8875,
4848,
27,
30489,
225,
657,
306,
4848,
14542,
22692,
63,
2947,
23962,
7989,
67,
12398,
3546,
2976,
63,
4848,
14542,
300,
20,
18,
2733,
25,
3461,
21607,
225,
657,
306,
9498,
14542,
22692,
63,
2947,
23962,
7989,
67,
20342,
3546,
2976,
63,
9498,
14542,
526,
3816,
404,
18,
29,
6334,
28,
1611,
11861,
16,
225,
1381,
18,
30792,
4630,
29,
6675,
16,
225,
1381,
18,
4763,
24908,
26959,
16,
300,
25,
18,
28564,
6334,
24,
6260,
16,
300,
22,
18,
5324,
22266,
3461,
16,
300,
21,
18,
9452,
3247,
29,
8148,
21,
6487,
3182,
33,
5659,
1578,
13,
225,
657,
306,
8898,
14542,
22692,
63,
2947,
23962,
20342,
3546,
2976,
63,
8898,
14542,
526,
3816,
404,
18,
5718,
4313,
4449,
9803,
16,
225,
1059,
18,
7301,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
67,
49,
2259,
67,
3644,
75,
4218,
12,
304,
270,
768,
16,
1326,
1098,
16,
13066,
67,
2039,
2218,
23509,
1165,
2187,
5356,
83,
67,
2039,
33,
21,
16,
11957,
67,
11488,
83,
33,
20,
16,
11957,
67,
2730,
33,
20,
16,
21219,
33,
21,
4672,
3536,
21477,
598,
261,
11926,
1240,
585,
8175,
789,
21,
67,
58,
13304,
18,
6081,
471,
284,
49,
2259,
1867,
284,
23464,
734,
396,
13,
225,
22692,
16,
1316,
42,
67,
304,
270,
16,
10940,
566,
67,
10222,
273,
960,
18,
27928,
67,
49,
2259,
67,
3644,
75,
4218,
1435,
225,
2405,
1686,
598,
225,
657,
306,
6162,
14542,
22692,
63,
2947,
23962,
12398,
3546,
2976,
63,
6162,
14542,
300,
20,
2
] |
date = time.mktime(date) - tzoffset | date = time.mktime(date) | def _set_date(self, message): if message.has_key('Date'): self.datestr = str(message['Date']) date = parsedate_tz(message['Date']) else: self.datestr = '' date = None if date is not None: date, tzoffset = date[:9], date[-1] or 0 try: date = time.mktime(date) - tzoffset except (ValueError, OverflowError): date = self._last_article_time + 1 #print 'Article with bad date:', self.msgid else: date = self._last_article_time + 1 #print 'Article without date:', self.msgid | dc7419ac4b677865de9e1355400d0946df139154 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/dc7419ac4b677865de9e1355400d0946df139154/pipermail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
712,
12,
2890,
16,
883,
4672,
309,
883,
18,
5332,
67,
856,
2668,
1626,
11,
4672,
365,
18,
9683,
313,
273,
609,
12,
2150,
3292,
1626,
19486,
1509,
273,
1109,
712,
67,
12994,
12,
2150,
3292,
1626,
19486,
469,
30,
365,
18,
9683,
313,
273,
875,
1509,
273,
599,
309,
1509,
353,
486,
599,
30,
1509,
16,
6016,
3348,
273,
1509,
10531,
29,
6487,
1509,
18919,
21,
65,
578,
374,
775,
30,
1509,
273,
813,
18,
24816,
957,
12,
712,
13,
1335,
261,
23610,
16,
10752,
2426,
668,
4672,
1509,
273,
365,
6315,
2722,
67,
11480,
67,
957,
397,
404,
468,
1188,
296,
7880,
598,
5570,
1509,
30,
2187,
365,
18,
3576,
350,
469,
30,
1509,
273,
365,
6315,
2722,
67,
11480,
67,
957,
397,
404,
468,
1188,
296,
7880,
2887,
1509,
30,
2187,
365,
18,
3576,
350,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
712,
12,
2890,
16,
883,
4672,
309,
883,
18,
5332,
67,
856,
2668,
1626,
11,
4672,
365,
18,
9683,
313,
273,
609,
12,
2150,
3292,
1626,
19486,
1509,
273,
1109,
712,
67,
12994,
12,
2150,
3292,
1626,
19486,
469,
30,
365,
18,
9683,
313,
273,
875,
1509,
273,
599,
309,
1509,
353,
486,
599,
30,
1509,
16,
6016,
3348,
273,
1509,
10531,
29,
6487,
1509,
18919,
21,
65,
578,
374,
775,
30,
1509,
273,
813,
18,
24816,
957,
12,
712,
13,
1335,
261,
23610,
16,
10752,
2426,
668,
4672,
1509,
273,
365,
6315,
2722,
67,
11480,
67,
957,
397,
404,
468,
1188,
296,
7880,
598,
5570,
1509,
30,
2187,
365,
18,
3576,
350,
469,
30,
2
] |
print '\t< %s' % line[:-2] | print '\t< %s' % line | def _get_line(self): | 568f22046d54f57ebb15b35bb4692bb3d957b838 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/568f22046d54f57ebb15b35bb4692bb3d957b838/imaplib.py | [
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1369,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
format = ('%%%is: %%-%is | ' % (width[1], width[1]), | format = ('%%%is: %%-%is | ' % (width[0], width[1]), | def format_props(self): tkt = self.ticket fields = [f for f in tkt.fields if f['type'] != 'textarea' and f['name'] != 'summary'] t = self.modtime or tkt.time_changed width = [0, 0, 0, 0] for i, f in enum([f['name'] for f in fields]): if not f in tkt.values.keys(): continue fval = tkt[f] if fval.find('\n') > -1: continue idx = 2 * (i % 2) if len(f) > width[idx]: width[idx] = len(f) if len(fval) > width[idx + 1]: width[idx + 1] = len(fval) format = ('%%%is: %%-%is | ' % (width[1], width[1]), ' %%%is: %%-%is%s' % (width[2], width[3], CRLF)) i = 1 l = (width[0] + width[1] + 5) sep = l*'-' + '+' + (self.COLS-l)*'-' txt = sep + CRLF big = [] for i, f in enum([f['name'] for f in fields]): if not tkt.values.has_key(f): continue fval = tkt[f] if '\n' in str(fval): big.append((f.capitalize(), fval)) else: txt += format[i % 2] % (f.capitalize(), fval) if not i % 2: txt += '\n' if big: txt += sep for k,v in big: txt += '\n%s:\n%s\n\n' % (k,v) txt += sep return txt | 9bb4cb5932e143037f51c68f14b7b8e45bffcc7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/9bb4cb5932e143037f51c68f14b7b8e45bffcc7a/Notify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
9693,
12,
2890,
4672,
268,
8629,
273,
365,
18,
16282,
1466,
273,
306,
74,
364,
284,
316,
268,
8629,
18,
2821,
309,
284,
3292,
723,
3546,
480,
296,
16701,
11,
471,
284,
3292,
529,
3546,
480,
296,
7687,
3546,
268,
273,
365,
18,
1711,
957,
578,
268,
8629,
18,
957,
67,
6703,
1835,
273,
306,
20,
16,
374,
16,
374,
16,
374,
65,
364,
277,
16,
284,
316,
2792,
3816,
74,
3292,
529,
3546,
364,
284,
316,
1466,
65,
4672,
309,
486,
284,
316,
268,
8629,
18,
2372,
18,
2452,
13332,
1324,
284,
1125,
273,
268,
8629,
63,
74,
65,
309,
284,
1125,
18,
4720,
2668,
64,
82,
6134,
405,
300,
21,
30,
1324,
2067,
273,
576,
380,
261,
77,
738,
576,
13,
309,
562,
12,
74,
13,
405,
1835,
63,
3465,
14542,
1835,
63,
3465,
65,
273,
562,
12,
74,
13,
309,
562,
12,
74,
1125,
13,
405,
1835,
63,
3465,
397,
404,
14542,
1835,
63,
3465,
397,
404,
65,
273,
562,
12,
74,
1125,
13,
740,
273,
7707,
11438,
9,
291,
30,
225,
26510,
6456,
291,
225,
571,
225,
296,
738,
261,
2819,
63,
20,
6487,
1835,
63,
21,
65,
3631,
296,
738,
11438,
291,
30,
225,
26510,
6456,
291,
9,
87,
11,
738,
261,
2819,
63,
22,
6487,
1835,
63,
23,
6487,
21791,
3719,
277,
273,
404,
328,
273,
261,
2819,
63,
20,
65,
397,
1835,
63,
21,
65,
397,
1381,
13,
5478,
273,
328,
4035,
6627,
397,
10058,
397,
261,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
9693,
12,
2890,
4672,
268,
8629,
273,
365,
18,
16282,
1466,
273,
306,
74,
364,
284,
316,
268,
8629,
18,
2821,
309,
284,
3292,
723,
3546,
480,
296,
16701,
11,
471,
284,
3292,
529,
3546,
480,
296,
7687,
3546,
268,
273,
365,
18,
1711,
957,
578,
268,
8629,
18,
957,
67,
6703,
1835,
273,
306,
20,
16,
374,
16,
374,
16,
374,
65,
364,
277,
16,
284,
316,
2792,
3816,
74,
3292,
529,
3546,
364,
284,
316,
1466,
65,
4672,
309,
486,
284,
316,
268,
8629,
18,
2372,
18,
2452,
13332,
1324,
284,
1125,
273,
268,
8629,
63,
74,
65,
309,
284,
1125,
18,
4720,
2668,
64,
82,
6134,
405,
300,
21,
30,
1324,
2067,
273,
2
] |
document.warning("Malformed lyx document: Can't find subcaptionText!") i = endInset continue caption = document.body[l][16:].strip('"') del document.body[l] | caption = "" else: caption = document.body[l][16:].strip('"') del document.body[l] addedLines -= 1 | def convert_subfig(document): " Convert subfigures to subfloats. " i = 0 while 1: i = find_token(document.body, '\\begin_inset Graphics', i) if i == -1: return endInset = find_end_of_inset(document.body, i) if endInset == -1: document.warning("Malformed lyx document: Missing '\\end_inset' in convert_subfig.") i += 1 continue k = find_token(document.body, '\tsubcaption', i, endInset) if k == -1: i = endInset continue l = find_token(document.body, '\tsubcaptionText', i, endInset) if l == -1: document.warning("Malformed lyx document: Can't find subcaptionText!") i = endInset continue caption = document.body[l][16:].strip('"') del document.body[l] del document.body[k] addedLines = -2 subst = ['\\begin_inset Float figure', 'wide false', 'sideways false', 'status open', '', '\\begin_layout Plain Layout', '\\begin_inset Caption', '', '\\begin_layout Plain Layout'] + latex2lyx(caption) + \ [ '\\end_layout', '', '\\end_inset', '', '\\end_layout', '', '\\begin_layout Plain Layout'] document.body[i : i] = subst addedLines += len(subst) endInset += addedLines subst = ['', '\\end_inset', '', '\\end_layout'] document.body[endInset : endInset] = subst addedLines += len(subst) i += addedLines + 1 | e171ec6929a00660898deb9ef69e921dc987026b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/e171ec6929a00660898deb9ef69e921dc987026b/lyx_1_6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
1717,
470,
12,
5457,
4672,
315,
4037,
720,
470,
1823,
358,
720,
5659,
87,
18,
315,
277,
273,
374,
1323,
404,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
10086,
67,
267,
542,
16830,
2187,
277,
13,
309,
277,
422,
300,
21,
30,
327,
679,
382,
542,
273,
1104,
67,
409,
67,
792,
67,
267,
542,
12,
5457,
18,
3432,
16,
277,
13,
309,
679,
382,
542,
422,
300,
21,
30,
1668,
18,
8551,
2932,
18695,
18519,
92,
1668,
30,
10230,
3718,
409,
67,
267,
542,
11,
316,
1765,
67,
1717,
470,
1199,
13,
277,
1011,
404,
1324,
417,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
2337,
88,
1717,
15386,
2187,
277,
16,
679,
382,
542,
13,
309,
417,
422,
300,
21,
30,
277,
273,
679,
382,
542,
1324,
328,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
2337,
88,
1717,
15386,
1528,
2187,
277,
16,
679,
382,
542,
13,
309,
328,
422,
300,
21,
30,
11006,
273,
1408,
469,
30,
11006,
273,
1668,
18,
3432,
63,
80,
6362,
2313,
30,
8009,
6406,
2668,
5187,
13,
1464,
1668,
18,
3432,
63,
80,
65,
3096,
5763,
3947,
404,
1464,
1668,
18,
3432,
63,
79,
65,
3096,
5763,
273,
300,
22,
27750,
273,
10228,
1695,
10086,
67,
267,
542,
5450,
7837,
2187,
296,
26767,
629,
2187,
296,
5564,
3052,
629,
2187,
296,
2327,
1696,
2187,
10226,
3718,
10086,
67,
6741,
17367,
9995,
2187,
3718,
10086,
67,
267,
542,
25064,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
1717,
470,
12,
5457,
4672,
315,
4037,
720,
470,
1823,
358,
720,
5659,
87,
18,
315,
277,
273,
374,
1323,
404,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
10086,
67,
267,
542,
16830,
2187,
277,
13,
309,
277,
422,
300,
21,
30,
327,
679,
382,
542,
273,
1104,
67,
409,
67,
792,
67,
267,
542,
12,
5457,
18,
3432,
16,
277,
13,
309,
679,
382,
542,
422,
300,
21,
30,
1668,
18,
8551,
2932,
18695,
18519,
92,
1668,
30,
10230,
3718,
409,
67,
267,
542,
11,
316,
1765,
67,
1717,
470,
1199,
13,
277,
1011,
404,
1324,
417,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
2337,
88,
1717,
15386,
2
] |
if words[0][0] == ' | if words[0].startswith(' | def _url_bracket_repl(self, word): """Handle bracketed URLs.""" word = word[1:-1] # strip brackets # Local extended link? [:page name:link text] XXX DEPRECATED if word[0] == ':': words = word[1:].split(':', 1) if len(words) == 1: words = words * 2 target_and_text = 'wiki:Self:"%s" %s' % tuple(words) return self.interwiki(target_and_text, pretty_url=1) | 38b2c33a807a471d736e03c16f4f6f1c36cc5636 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/38b2c33a807a471d736e03c16f4f6f1c36cc5636/text_moin_wiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
718,
67,
21025,
67,
26745,
12,
2890,
16,
2076,
4672,
3536,
3259,
9843,
329,
10414,
12123,
2076,
273,
2076,
63,
21,
30,
17,
21,
65,
468,
2569,
15597,
225,
468,
3566,
7021,
1692,
35,
306,
30,
2433,
508,
30,
1232,
977,
65,
11329,
2030,
14838,
309,
2076,
63,
20,
65,
422,
3921,
30,
4511,
273,
2076,
63,
21,
30,
8009,
4939,
2668,
30,
2187,
404,
13,
309,
562,
12,
3753,
13,
422,
404,
30,
4511,
273,
4511,
380,
576,
1018,
67,
464,
67,
955,
273,
296,
13044,
30,
10084,
2773,
9,
87,
6,
738,
87,
11,
738,
3193,
12,
3753,
13,
327,
365,
18,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
718,
67,
21025,
67,
26745,
12,
2890,
16,
2076,
4672,
3536,
3259,
9843,
329,
10414,
12123,
2076,
273,
2076,
63,
21,
30,
17,
21,
65,
468,
2569,
15597,
225,
468,
3566,
7021,
1692,
35,
306,
30,
2433,
508,
30,
1232,
977,
65,
11329,
2030,
14838,
309,
2076,
63,
20,
65,
422,
3921,
30,
4511,
273,
2076,
63,
21,
30,
8009,
4939,
2668,
30,
2187,
404,
13,
309,
562,
12,
3753,
13,
422,
404,
30,
4511,
273,
4511,
380,
576,
1018,
67,
464,
67,
955,
273,
296,
13044,
30,
10084,
2773,
9,
87,
6,
738,
87,
11,
738,
3193,
12,
3753,
13,
327,
365,
18,
2761,
13044,
12,
3299,
67,
464,
67,
955,
16,
7517,
67,
718,
33,
2
] |
class Error(Exception): """Wikipedia error""" class NoPage(Error): """Wikipedia page does not exist""" class IsRedirectPage(Error): """Wikipedia page is a redirect page""" class IsNotRedirectPage(Error): """Wikipedia page is not a redirect page""" class LockedPage(Error): """Wikipedia page is locked""" class NoSuchEntity(ValueError): """No entity exist for this character""" class SectionError(ValueError): """The section specified by class NoNamespace(Error): """Wikipedia page is not in a special namespace""" SaxError = xml.sax._exceptions.SAXParseException class PageLink: """A Wikipedia page link.""" def __init__(self, code, title = None, incode = None): """ Constructor. Normally called with two arguments: Parameters: 1) The language code of the wiki on which the page resides 2) The title of the page as a unicode string The argument incode can be specified to help decode the name; it is the language where this link was found. """ self._code = code title = title.strip() if title and title[0]==':': title = title[1:] self._urlname = link2url(title, self._code, incode = incode) self._linkname = url2link(self._urlname, code = self._code, incode = mylang) def code(self): """The code for the language of the page this PageLink refers to, without :""" return self._code def encoding(self): """ Returns the character encoding used on this page's wiki. """ return code2encoding(self._code) def urlname(self): """The name of the page this PageLink refers to, in a form suitable for the URL of the page.""" return self._urlname def linkname(self): """The name of the page this PageLink refers to, in a form suitable for a wiki-link""" return self._linkname def catname(self): """The name of the page without the namespace part. Gives an error if the page is from the main namespace.""" title=self.linkname() parts=title.split(':') parts=parts[1:] if parts==[]: raise NoNamespace(self) return ':'.join(parts) def hashname(self): """The name of the section this PageLink refers to. Sections are denominated by a None is returned.""" ln = self.linkname() ln = re.sub('& if not ' return None else: hn = ln[ln.find(' hn = re.sub('&hash;', '& return hn def hashfreeLinkname(self): hn=self.hashname() if hn: return self.linkname()[:-len(hn)-1] else: return self.linkname() def ascii_linkname(self): """Make a link-name that contains only ascii characters""" return url2link(self._urlname, code = self._code, incode = 'ascii') def __str__(self): """A simple ASCII representation of the pagelink""" return "%s:%s" % (self._code, self.ascii_linkname()) def __repr__(self): """A more complete string representation""" return "%s{%s}" % (self.__class__.__name__, str(self)) def aslink(self): """A string representation in the form of an interwiki link""" return "[[%s:%s]]" % (self.code(), self.linkname()) def aslocallink(self): """A string representation in the form of a local link""" return "[[%s]]" % (self.linkname()) def asselflink(self): """A string representation in the form of a local link, but prefixed by the language code""" return "%s:[[%s]]" % (self.code(), self.linkname()) def get(self, read_only = False): """The wiki-text of the page. This will retrieve the page if it has not been retrieved yet. This can raise the following exceptions that should be caught by the calling code: NoPage: The page does not exist IsRedirectPage: The page is a redirect. The argument of the exception is the page it redirects to. LockedPage: The page is locked, and therefore it won't be possible to change the page. This exception won't be raised if the argument read_only is True. SectionError: The subject does not exist on a page with a """ if hasattr(self, '_redirarg'): raise IsRedirectPage,self._redirarg if hasattr(self, '_getexception'): raise self._getexception if not hasattr(self, '_contents'): try: self._contents = getPage(self.code(), self.urlname(), read_only = read_only) hn = self.hashname() if hn: hn = underline2space(hn) m = re.search("== *%s *==" % hn, self._contents) if not m: output("WARNING: Hashname does not exist: %s" % self) except NoPage: self._getexception = NoPage raise except IsRedirectPage,arg: self._getexception = IsRedirectPage self._redirarg = arg raise except LockedPage: self._getexception = LockedPage raise except SectionError: self._getexception = SectionError raise return self._contents def exists(self): """True if the page exists (itself or as redirect), False if not""" try: self.get(read_only = True) except NoPage: return False except IsRedirectPage: return True except SectionError: return False return True def isRedirectPage(self): """True if the page is a redirect page, False if not or not existing""" try: self.get(read_only = True) except NoPage: return False except IsRedirectPage: return True return False def isEmpty(self): """True if the page except for language links and category links has less than 4 characters, False otherwise. Can return the same exceptions as get() """ txt = self.get(read_only = True) txt = removeLanguageLinks(txt) txt = removeCategoryLinks(txt, self.code()) if len(txt) < 4: return 1 else: return 0 def put(self, newtext, comment=None, watchArticle = False, minorEdit = True): """Replace the new page with the contents of the first argument. The second argument is a string that is to be used as the summary for the modification """ if self.exists(): newPage="0" else: newPage="1" return putPage(self.code(), self.urlname(), newtext, comment, watchArticle, minorEdit, newPage) def interwiki(self): """A list of interwiki links in the page. This will retrieve the page text to do its work, so it can raise the same exceptions that are raised by the get() method. The return value is a list of PageLink objects for each of the interwiki links in the page text. """ result = [] ll = getLanguageLinks(self.get(read_only = True), incode = self.code()) for newcode,newname in ll.iteritems(): if newname[0] == ':': print "ERROR> link from %s to %s:%s has leading :?!"%(self,newcode,repr(newname)) if newname[0] == ' ': print "ERROR> link from %s to %s:%s has leading space?!"%(self,newcode,repr(newname)) try: result.append(self.__class__(newcode, newname, incode = self.code())) except UnicodeEncodeError: print "ERROR> link from %s to %s:%s is invalid encoding?!"%(self,newcode,repr(newname)) except NoSuchEntity: print "ERROR> link from %s to %s:%s contains invalid character?!"%(self,newcode,repr(newname)) except ValueError: print "ERROR> link from %s to %s:%s contains invalid unicode reference?!"%(self,newcode,repr(newname)) return result def categories(self): """A list of categories that the article is in. This will retrieve the page text to do its work, so it can raise the same exceptions that are raised by the get() method. The return value is a list of PageLink objects for each of the category links in the page text.""" result = [] ll = getCategoryLinks(self.get(read_only = True), self.code()) for catname in ll: result.append(self.__class__(self.code(), title = catname)) return result def __cmp__(self, other): """Pseudo method to be able to use equality and inequality tests on PageLink objects""" if not hasattr(other, 'code'): return -1 if not self.code() == other.code(): return cmp(self.code(), other.code()) u1=html2unicode(self.linkname(), language = self.code()) u2=html2unicode(other.linkname(), language = other.code()) return cmp(u1,u2) def __hash__(self): """Pseudo method that makes it possible to store PageLink objects as keys in hash-tables. This relies on the fact that the string representation of an instance can not change after the construction. """ return hash(str(self)) def links(self): """Gives the normal (not-interwiki, non-category) pages the page links to, as a list of strings """ result = [] try: thistxt = removeLanguageLinks(self.get(read_only = True)) except IsRedirectPage: return thistxt = removeCategoryLinks(thistxt, self.code()) w=r'([^\]\|]*)' Rlink = re.compile(r'\[\['+w+r'(\|'+w+r')?\]\]') for l in Rlink.findall(thistxt): result.append(l[0]) return result def imagelinks(self): """Gives the wiki-images the page shows, as a list of strings """ result = [] im=family.image_namespace(self._code) + ':' w1=r'('+im+'[^\]\|]*)' w2=r'([^\]]*)' Rlink = re.compile(r'\[\['+w1+r'(\|'+w2+r')?\]\]') for l in Rlink.findall(self.get(read_only = True)): result.append(PageLink(self._code,l[0])) w1=r'('+im.lower()+'[^\]\|]*)' w2=r'([^\]]*)' Rlink = re.compile(r'\[\['+w1+r'(\|'+w2+r')?\]\]') for l in Rlink.findall(self.get(read_only = True)): result.append(PageLink(self._code,l[0])) return result def getRedirectTo(self, read_only = False): """ If the page is a redirect page, gives the title of the page it redirects to. Otherwise it will raise an IsNotRedirectPage exception. This function can raise a NoPage exception, and unless the argument read_only is True, a LockedPage exception as well. """ try: self.get(read_only = True) except NoPage: raise NoPage(self) except LockedPage: raise LockedPage(self) except IsRedirectPage, arg: return str(arg) else: raise IsNotRedirectPage(self) def delete(pl, reason = None, prompt = True): """Deletes the page from the wiki. Requires administrator status. If reason is None, asks for a reason. If prompt is True, asks the user if he wants to delete the page. """ def post_multipart(host, selector, fields): """ Post fields and files to an http host as multipart/form-data. fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files. Return the server's response page. """ import httplib content_type, body = encode_multipart_formdata(fields) h = httplib.HTTP(host) h.putrequest('POST', selector) h.putheader('content-type', content_type) h.putheader('content-length', str(len(body))) h.putheader("User-agent", "RobHooftWikiRobot/1.0") h.putheader('Host', host) h.putheader('Cookie', cookies) h.endheaders() h.send(body) errcode, errmsg, headers = h.getreply() return h.file.read() def encode_multipart_formdata(fields): """ fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return (content_type, body) ready for httplib.HTTP instance """ BOUNDARY = '----------ThIs_Is_tHe_bouNdaRY_$' CRLF = '\r\n' L = [] for (key, value) in fields: L.append('--' + BOUNDARY) L.append('Content-Disposition: form-data; name="%s"' % key) L.append('') L.append(value) L.append('--' + BOUNDARY + '--') L.append('') body = CRLF.join(L) content_type = 'multipart/form-data; boundary=%s' % BOUNDARY return content_type, body if reason == None: reason = input(u'Please enter a reason for the deletion:', myencoding()) answer = 'y' if prompt: answer = input(u'Do you want to delete %s? [y|N]' % pl.linkname()) if answer in ['y', 'Y']: output(u'Deleting page %s...' % pl.linkname()) returned_html = post_multipart(family.hostname(mylang), family.delete_address(pl.urlname()), (('wpReason', reason), ('wpConfirm', '1'))) deleted_msg = mediawiki_messages.get('actioncomplete') deleted_msg = re.escape(deleted_msg) deleted_msgR = re.compile(deleted_msg) if deleted_msgR.search(returned_html): output(u'Deletion successful.') else: output(u'Deletion failed:.') try: ibegin = returned_html.index('<!-- start content -->') + 22 iend = returned_html.index('<!-- end content -->') except ValueError: output(returned_html, myencoding()) else: returned_html = returned_html[ibegin:iend] output(returned_html, myencoding()) def redirectRe(code): if family.redirect.has_key(code): txt = '(?:redirect|'+family.redirect[code]+')' else: txt = 'redirect' return re.compile(r'\ class WikimediaXmlHandler(xml.sax.handler.ContentHandler): def setCallback(self, callback): self.callback = callback def startElement(self, name, attrs): self.destination = None if name == 'page': self.text=u'' self.title=u'' self.timestamp=u'' elif name == 'text': self.destination = 'text' elif name == 'title': self.destination = 'title' elif name == 'timestamp': self.destination = 'timestamp' def endElement(self, name): if name == 'revision': text = self.text while text and text[-1] in '\n ': text = text[:-1] text = u'\r\n'.join(text.split('\n')) timestamp = (self.timestamp[0:4]+ self.timestamp[5:7]+ self.timestamp[8:10]+ self.timestamp[11:13]+ self.timestamp[14:16]+ self.timestamp[17:19]) self.callback(self.title.strip(), timestamp, text) def characters(self, data): if self.destination == 'text': self.text += data elif self.destination == 'title': self.title += data elif self.destination == 'timestamp': self.timestamp += data class GetAll: debug = 0 def __init__(self, code, pages): self.code = code self.pages = [] for pl in pages: if not hasattr(pl,'_contents') and not hasattr(pl,'_getexception'): self.pages.append(pl) else: output(u"BUGWARNING: %s already done!" % pl.aslink()) def run(self): data = self.getData() handler = WikimediaXmlHandler() handler.setCallback(self.oneDone) try: xml.sax.parseString(data, handler) except xml.sax._exceptions.SAXParseException: f=open('sax_parse_bug.dat','w') f.write(data) f.close() print "Dumped invalid XML to sax_parse_bug.dat" raise for pl in self.pages: if not hasattr(pl,'_contents') and not hasattr(pl,'_getexception'): pl._getexception = NoPage elif hasattr(pl,'_contents') and pl.code()=="eo": for c in 'C','G','H','J','S','U': for c2 in c,c.lower(): for x in 'X','x': pl._contents = pl._contents.replace(c2+x,c2+x+x) def oneDone(self, title, timestamp, text): pl = PageLink(self.code, title) for pl2 in self.pages: if PageLink(self.code, pl2.hashfreeLinkname()) == pl: if not hasattr(pl2,'_contents') and not hasattr(pl2,'_getexception'): break else: print repr(title) print repr(pl) print repr(self.pages) print "BUG> bug, page not found in list" if self.debug: xtext = pl2.get(read_only = True) if text != xtext: print " import difflib for line in difflib.ndiff(xtext.split('\r\n'), text.split('\r\n')): if line[0] in ['+', '-']: print repr(line)[2:-1] if edittime[self.code, link2url(title, self.code)] != timestamp: print " print "-",edittime[self.code, link2url(title, self.code)] print "+",timestamp else: m = redirectRe(self.code).match(text) if m: pl2._getexception = IsRedirectPage(m.group(1)) else: if len(text)<50: output(u"DBG> short text in %s:" % pl2.aslink()) output(text) hn = pl2.hashname() if hn: m = re.search("== *%s *==" % hn, text) if not m: output("WARNING: Hashname does not exist: %s" % self) else: pl2._contents = text edittime[self.code, link2url(title, self.code)] = timestamp else: pl2._contents = text edittime[self.code, link2url(title, self.code)] = timestamp def getData(self): import httplib addr = family.export_address(self.code) pagenames = u'\r\n'.join([x.hashfreeLinkname() for x in self.pages]) pagenames = forCode(pagenames, self.code) data = urlencode(( ('action', 'submit'), ('pages', pagenames), ('curonly', 'True'), )) headers = {"Content-type": "application/x-www-form-urlencoded", "User-agent": "RobHooftWikiRobot/1.0"} get_throttle(requestsize = len(self.pages)) conn = httplib.HTTPConnection(family.hostname(self.code)) conn.request("POST", addr, data, headers) response = conn.getresponse() data = response.read() conn.close() return data def getall(code, pages): print u'Getting %d pages from %s:' % (len(pages), code) return GetAll(code, pages).run() def PageLinksFromFile(fn): """Read a file of page links between double-square-brackets, and return them as a list of PageLink objects. 'fn' is the name of the file that should be read.""" f=open(fn, 'r') R=re.compile(r'\[\[([^:]*):([^\]]*)\]\]') for line in f.readlines(): m=R.match(line) if m: yield PageLink(m.group(1), m.group(2)) else: print "ERROR: Did not understand %s line:\n%s" % (fn, repr(line)) f.close() def unescape(s): """Replace escaped HTML-special characters by their originals""" if '&' not in s: return s s = s.replace("<", "<") s = s.replace(">", ">") s = s.replace("'", "'") s = s.replace(""", '"') s = s.replace("&", "&") return s def setAction(s): """Set a summary to use for changed page submissions""" global action action = s setAction('Wikipedia python library') def urlencode(query): """This can encode a query so that it can be sent as a query using a http POST request""" l=[] for k, v in query: if debug: print "k =", k print "v =", v k = urllib.quote(k) v = urllib.quote(v) l.append(k + '=' + v) return '&'.join(l) Rmorespaces = re.compile(' +') def space2underline(name): name = Rmorespaces.sub(' ', name) return name.replace(' ', '_') Rmoreunderlines = re.compile('__+') def underline2space(name): name = Rmoreunderlines.sub('_', name) return name.replace('_', ' ') import time class Throttle: def __init__(self, delay = config.throttle, ignore = 0): """Make sure there are at least 'delay' seconds between page-gets after 'ignore' initial page-gets""" self.delay = delay self.ignore = ignore self.now = 0 self.next_multiplicity = 1.0 def setDelay(self, delay = config.throttle): self.delay = delay def waittime(self): """Calculate the time in seconds we will have to wait if a query would be made right now""" if self.ignore > 0: return 0.0 thisdelay = self.next_multiplicity * self.delay now = time.time() ago = now - self.now if ago < thisdelay: delta = thisdelay - ago return delta else: return 0.0 def __call__(self, requestsize = 1): """This is called from getPage without arguments. It will make sure that if there are no 'ignores' left, there are at least delay seconds since the last time it was called before it returns.""" if self.ignore > 0: self.ignore -= 1 else: waittime = self.waittime() import math self.next_multiplicity = math.log(1+requestsize)/math.log(2.0) if waittime > config.noisysleep: print "Sleeping for %.1f seconds" % waittime time.sleep(waittime) self.now = time.time() get_throttle = Throttle() put_throttle = Throttle(config.put_throttle) def putPage(code, name, text, comment = None, watchArticle = False, minorEdit = True, newPage = False): """Upload 'text' on page 'name' to the 'code' language wikipedia. Use of this routine can normally be avoided; use PageLink.put instead. """ import httplib put_throttle() host = family.hostname(code) address = family.put_address(code, space2underline(name)) if comment is None: comment=action if not loggedin or code != mylang: comment = username + ' - ' + comment comment = comment.encode(code2encoding(code)) try: text = forCode(text, code) predata = [ ('wpSave', '1'), ('wpSummary', comment), ('wpTextbox1', text)] if newPage and newPage != '0': predata.append(('wpEdittime', '')) else: predata.append(('wpEdittime', edittime[code, link2url(name, code)])) if minorEdit and minorEdit != '0': predata.append(('wpMinoredit', '1')) if watchArticle and watchArticle != '0': predata.append(('wpWatchthis', '1')) data = urlencode(tuple(predata)) except KeyError: print edittime raise if debug: print text print address print data return None, None, None output(url2unicode("Changing page %s:%s"%(code,name), language = code)) conn = httplib.HTTPConnection(host) conn.putrequest("POST", address) conn.putheader('Content-Length', str(len(data))) conn.putheader("Content-type", "application/x-www-form-urlencoded") conn.putheader("User-agent", "RobHooftWikiRobot/1.0") if cookies and code == mylang: conn.putheader('Cookie',cookies) conn.endheaders() conn.send(data) response = conn.getresponse() data = response.read() conn.close() if data != '': output(data, decoder = myencoding()) return response.status, response.reason, data def forCode(text, code): """Prepare the unicode string 'text' for inclusion into a page for language 'code'. All of the characters in the text should be encodable, otherwise this will fail! This condition is normally met, except if you would copy text verbatim from an UTF-8 language into a iso-8859-1 language, and none of the robots in the package should do such things""" if type(text) == type(u''): text = text.encode(code2encoding(code)) return text class MyURLopener(urllib.FancyURLopener): version="RobHooftWikiRobot/1.0" def getUrl(host,address): """Low-level routine to get a URL from wikipedia. host and address are the host and address part of a http url. Return value is a 2-tuple of the text of the page, and the character set used to encode it. """ uo = MyURLopener() if cookies: uo.addheader('Cookie', cookies) f = uo.open('http://%s%s'%(host, address)) text = f.read() ct = f.info()['Content-Type'] R = re.compile('charset=([^\'\"]+)') m = R.search(ct) if m: charset = m.group(1) else: charset = None return text,charset def getPage(code, name, get_edit_page = True, read_only = False, do_quote = True): """ Get the contents of page 'name' from the 'code' language wikipedia Do not use this directly; for 99% of the possible ideas you can use the PageLink object instead. Arguments: code - the wiki's language code name - the page name get_edit_page - If true, gets the edit page, otherwise gets the normal page. read_only - If true, doesn't raise LockedPage exceptions. do_quote - ??? (TODO: what is this for?) This routine returns a unicode string containing the wiki text if get_edit_page is True; otherwise it returns a unicode string containing the entire page's HTML code. """ host = family.hostname(code) name = re.sub(' ', '_', name) output(url2unicode(u'Getting page %s:%s' % (code, name), language = code)) if not '%' in name and do_quote: if name != urllib.quote(name): print "DBG> quoting",name name = urllib.quote(name) address = family.get_address(code, name) if get_edit_page: address += '&action=edit&printable=yes' if debug: print host, address get_throttle() retry_idle_time = 1 while True: text, charset = getUrl(host,address) if get_edit_page: if debug: print "Raw:", len(text), type(text), text.count('x') if charset is None: print "WARNING: No character set found" else: if charsets.has_key(code): assert charsets[code].lower() == charset.lower(), "charset for %s changed from %s to %s"%(code,charsets[code],charset) charsets[code] = charset if code2encoding(code).lower() != charset.lower(): raise ValueError("code2encodings has wrong charset for %s. It should be %s"%(code,charset)) if debug>1: print repr(text) if not read_only: if text.find('Userlogin') != -1: output(u'Warning: You\'re probably not logged in on %s:' % code) m = re.search('value="(\d+)" name=\'wpEdittime\'',text) if m: edittime[code, link2url(name, code)] = m.group(1) else: m = re.search('value="(\d+)" name="wpEdittime"',text) if m: edittime[code, link2url(name, code)] = m.group(1) else: edittime[code, link2url(name, code)] = "0" try: i1 = re.search('<textarea[^>]*>', text).end() except AttributeError: print "WARNING: No text area found on %s%s. Maybe the server is down. Retrying in %d minutes..." % (host, address, retry_idle_time) time.sleep(retry_idle_time * 60) retry_idle_time *= 2 continue i2 = re.search('</textarea>', text).start() if i2-i1 < 2: raise NoPage(code, name) if debug: print text[i1:i2] m = redirectRe(code).match(text[i1:i2]) if m: output(u"DBG> %s is redirect to %s" % (url2unicode(name, language = code), unicode(m.group(1), code2encoding(code)))) raise IsRedirectPage(m.group(1)) if edittime[code, link2url(name, code)] == "0" and not read_only: print "DBG> page may be locked?!" raise LockedPage() x = text[i1:i2] x = unescape(x) while x and x[-1] in '\n ': x = x[:-1] else: x = text x = unicode(x, charset, errors = 'replace') return x def languages(first = []): """Return a list of language codes for known wikipedia servers. If a list of language codes is given as argument, these will be put at the front of the returned list.""" result = [] for key in first: if key in family.langs.iterkeys(): result.append(key) for key in family.seriouslangs: if key not in result: result.append(key) return result def allpages(start = '!'): """Generator which yields all articles in the home language in alphanumerical order, starting at a given page. By default, it starts at '!', so it should yield all pages. The objects returned by this generator are all PageLink()s. """ while 1: start = link2url(start, code = mylang) returned_html = getPage(mylang, family.allpagesname(mylang, start), do_quote = False, get_edit_page = False) try: ibegin = returned_html.index('<table') iend = returned_html.index('</table') except ValueError: raise NoPage('Couldn\'t extract allpages special page. Make sure you\'re using the MonoBook skin.') returned_html = returned_html[ibegin:iend] if family.version(mylang)=="1.2": R = re.compile('/wiki/(.*?)" *class=[\'\"]printable') else: R = re.compile('title ="(.*?)"') n = 0 for hit in R.findall(returned_html): n = n + 1 if family.version(mylang)=="1.2": yield PageLink(mylang, url2link(hit, code = mylang, incode = mylang)) else: yield PageLink(mylang, hit) start = hit + '%20%200' if n < 100: break def getLanguageLinks(text,incode=None): """Returns a dictionary of other language links mentioned in the text in the form {code:pagename}. Do not call this routine directly, use PageLink objects instead""" result = {} interwikiR = re.compile(r'\[\[([a-z\-]+):([^\]]*)\]\]') for code, pagetitle in interwikiR.findall(text): if code in family.obsolete: output(u"ERROR: ignoring link to obsolete language %s" % code) elif not pagetitle: print "ERROR: empty link to %s:" % code elif code in family.langs: if '|' in pagetitle: pagetitle = pagetitle[:pagetitle.index('|')] if incode == 'eo': pagetitle=pagetitle.replace('xx','x') if not pagetitle: output(u"ERROR: ignoring impossible link to %s:%s" % (code, pagetitle)) else: result[code] = pagetitle if incode in ['zh','zh-cn','zh-tw']: m=re.search(u'\\[\\[([^\\]\\|]*)\\|\u7b80\\]\\]', text) if m: result['zh-cn'] = m.group(1) m=re.search(u'\\[\\[([^\\]\\|]*)\\|\u7c21\\]\\]', text) if m: result['zh-cn'] = m.group(1) m=re.search(u'\\[\\[([^\\]\\|]*)\\|\u7e41\\]\\]', text) if m: result['zh-tw'] = m.group(1) return result def removeLanguageLinks(text): """Given the wiki-text of a page, return that page with all interwiki links removed. If a link to an unknown language is encountered, a warning is printed.""" interwikiR = re.compile(r'\[\[([a-z\-]+):[^\]]*\]\][\s]*') index = 0 done = False while not done: match = interwikiR.search(text, index) if not match: done = True else: code = match.group(1) if code in family.langs: text = text[:match.start()] + text[match.end():] index = match.start() else: index = match.end() if len(code) == 2: print "WARNING: Link to unknown language %s" % (match.group(1)) return normalWhitespace(text) def replaceLanguageLinks(oldtext, new): """Replace the interwiki language links given in the wikitext given in oldtext by the new links given in new. 'new' should be a dictionary with the language names as keys, and either PageLink objects or the link-names of the pages as values. """ s = interwikiFormat(new) s2 = removeLanguageLinks(oldtext) if s: if mylang in config.interwiki_attop: newtext = s + config.interwiki_text_separator + s2 else: newtext = s2 + config.interwiki_text_separator + s else: newtext = s2 return newtext def interwikiFormat(links): """Create a suitable string encoding all interwiki links for a wikipedia page. 'links' should be a dictionary with the language names as keys, and either PageLink objects or the link-names of the pages as values. The string is formatted for inclusion in mylang. """ if not links: return '' s = [] ar = links.keys() ar.sort() if mylang in family.interwiki_putfirst: ar2 = [] for code in family.interwiki_putfirst[mylang]: if code in ar: del ar[ar.index(code)] ar2 = ar2 + [code] ar = ar2 + ar for code in ar: try: s.append(links[code].aslink()) except AttributeError: s.append('[[%s:%s]]' % (code, links[code])) if mylang in config.interwiki_on_one_line: sep = ' ' else: sep = '\r\n' s=sep.join(s) + '\r\n' return s def normalWhitespace(text): while 1: if text and text.startswith('\r\n'): text=text[2:] elif text and text.startswith(' '): text=text[1:] else: break while 1: if text and text[-1:] in '\r\n \t': text=text[:-1] else: break text += '\n' return text def getCategoryLinks(text, code): """Returns a list of category links. in the form {code:pagename}. Do not call this routine directly, use PageLink objects instead""" result = [] ns = family.category_namespaces(code) for prefix in ns: R = re.compile(r'\[\['+prefix+':([^\]]*)\]\]') for t in R.findall(text): if t: t = t.strip() if code == 'eo': t = t.replace('xx','x') t = t[:1].capitalize() + t[1:] result.append(ns[0]+':'+t) else: print "ERROR: empty category link" return result def removeCategoryLinks(text, code): """Given the wiki-text of a page, return that page with all category links removed. """ ns = family.category_namespaces(code) for prefix in ns: text = re.sub(r'\[\['+prefix+':([^\]]*)\]\]', '', text) return normalWhitespace(text) def replaceCategoryLinks(oldtext, new, code = None): """Replace the category links given in the wikitext given in oldtext by the new links given in new. 'new' should be a list of category pagelink objects. """ if code is None: code = mylang interwiki_links = getLanguageLinks(oldtext) oldtext = removeLanguageLinks(oldtext) s = categoryFormat(new) s2 = removeCategoryLinks(oldtext, code) if s: if mylang in config.category_attop: newtext = s + config.category_text_separator + s2 else: newtext = s2 + config.category_text_separator + s else: newtext = s2 newtext = replaceLanguageLinks(newtext, interwiki_links) return newtext def categoryFormat(links): """Create a suitable string encoding all category links for a wikipedia page. 'links' should be a list of category pagelink objects. The string is formatted for inclusion in mylang. """ if not links: return '' s = [] for pl in links: s.append(pl.aslocallink()) if mylang in config.category_on_one_line: sep = ' ' else: sep = '\r\n' s.sort() s=sep.join(s) + '\r\n' return s def myencoding(): """The character encoding used by the home wiki""" return code2encoding(mylang) def code2encoding(code): """Return the encoding for a specific language wikipedia""" if code == 'ascii': return code return family.code2encoding(code) def code2encodings(code): """Return a list of historical encodings for a specific language wikipedia""" return family.code2encodings(code) def url2link(percentname, incode, code): """Convert a url-name of a page into a proper name for an interwiki link the argument 'incode' specifies the encoding of the target wikipedia """ result = underline2space(percentname) x = url2unicode(result, language = code) return unicode2html(x, encoding = code2encoding(incode)) def link2url(name, code, incode = None): """Convert an interwiki link name of a page to the proper name to be used in a URL for that page. code should specify the language for the link""" if code == 'eo': name = name.replace('cx','& name = name.replace('Cx','& name = name.replace('CX','& name = name.replace('gx','& name = name.replace('Gx','& name = name.replace('GX','& name = name.replace('hx','& name = name.replace('Hx','& name = name.replace('HX','& name = name.replace('jx','& name = name.replace('Jx','& name = name.replace('JX','& name = name.replace('sx','& name = name.replace('Sx','& name = name.replace('SX','& name = name.replace('ux','& name = name.replace('Ux','& name = name.replace('UX','& name = name.replace('XX','X') name = name.replace('Xx','X') name = name.replace('xx','x') name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& name = name.replace('& if '%' in name: try: name = url2unicode(name, language = code) except UnicodeError: name = html2unicode(name, language = code, altlanguage = incode) else: name = html2unicode(name, language = code, altlanguage = incode) name = name.strip() if name: if not code in family.nocapitalize: name = name[0].upper()+name[1:] try: result = str(name.encode(code2encoding(code))) except UnicodeError: print "Cannot convert %s into a URL for %s" % (repr(name), code) result = addEntity(name) print "Using entities instead",result print "BUG> This is probably a bug in the robot that did not recognize an interwiki link!" result = space2underline(result) return urllib.quote(result) def isInterwikiLink(s): """Try to check whether s is in the form "xx:link" where xx: is a known language. In such a case we are dealing with an interwiki link.""" if not ':' in s: return False l,k=s.split(':',1) if l in family.langs: return True return False def getReferences(pl, follow_redirects = True): host = family.hostname(pl.code()) url = family.references_address(mylang, pl.urlname()) output(u'Getting references to %s:%s' % (pl.code(), pl.linkname())) txt, charset = getUrl(host,url) txt = txt.replace('<a', 'a') txt = txt.replace('</a', '/a') txt = txt.replace('<li', 'li') txt = txt.replace('</li', 'li') if not follow_redirects: cascadedListR = re.compile(r"(.*<ul>[^<]*)<ul>[^<]*<\/ul>([^<]*</\ul>.*)") endR = re.compile(r"</ul>") pos = 0 while cascadedListR.search(txt): m = cascadedListR.search(txt) txt = m.group(1) + m.group(2) Rref = re.compile('li>a href.*="([^"]*)"') x = Rref.findall(txt) x.sort() for i in range(len(x)-1, 0, -1): if x[i] == x[i-1]: del x[i] return x def UnicodeToAsciiHtml(s): html = [] for c in s: cord = ord(c) if cord < 128: html.append(c) else: html.append('& return ''.join(html) def url2unicode(percentname, language): for c in percentname: if ord(c)>128: x=percentname break else: x=urllib.unquote(str(percentname)) for encoding in ('utf-8',)+code2encodings(language): try: encode_func, decode_func, stream_reader, stream_writer = codecs.lookup(encoding) x,l = decode_func(x) return x except UnicodeError: pass raise UnicodeError("Could not decode %s" % repr(percentname)) def unicode2html(x, encoding): try: encode_func, decode_func, stream_reader, stream_writer = codecs.lookup(encoding) y,l = encode_func(x) except UnicodeError: x = UnicodeToAsciiHtml(x) return x def removeEntity(name): import htmlentitydefs Rentity = re.compile(r'&([A-Za-z]+);') result = u'' i = 0 while i < len(name): m = Rentity.match(name[i:]) if m: if htmlentitydefs.name2codepoint.has_key(m.group(1)): x = htmlentitydefs.name2codepoint[m.group(1)] result = result + unichr(x) i += m.end() else: result += name[i] i += 1 else: result += name[i] i += 1 return result def addEntity(name): """Convert a unicode name into ascii name with entities""" import htmlentitydefs result = '' for c in name: if ord(c) < 128: result += str(c) else: for k, v in htmlentitydefs.entitydefs.iteritems(): if (len(v) == 1 and ord(c) == ord(v)) or v == '& result += '&%s;' % k break else: result += '& return result def unicodeName(name, language, altlanguage = None): for encoding in code2encodings(language): try: if type(name)==type(u''): return name else: return unicode(name, encoding) except UnicodeError: continue if altlanguage is not None: print "DBG> Using local encoding!", altlanguage, "to", language, name for encoding in code2encodings(altlanguage): try: return unicode(name, encoding) except UnicodeError: continue raise Error("Cannot decode") def html2unicode(name, language, altlanguage=None): name = unicodeName(name, language, altlanguage) name = removeEntity(name) Runi = re.compile('& Runi2 = re.compile('& result = u'' i=0 while i < len(name): m = Runi.match(name[i:]) m2 = Runi2.match(name[i:]) if m: result += unichr(int(m.group(1))) i += m.end() elif m2: result += unichr(int(m2.group(1),16)) i += m2.end() else: try: result += name[i] i += 1 except UnicodeDecodeError: print repr(name) raise return result def setFamily(fam): """ Import the user's family. If not changed in user_config, the family is Wikipedia. """ try: global family namespace_dict = {} exec "import %s_family as family_module" % fam in namespace_dict family = namespace_dict['family_module'] except ImportError: print "Error importing the family. This probably means the family" print "name is mistyped in the configuration file" sys.exit(1) if hasattr(family,'Family'): family=family.Family() def setMyLang(code): """Change the home language""" global mylang global cookies mylang = code try: f = open('login-data/%s-login.data' % mylang) cookies = '; '.join([x.strip() for x in f.readlines()]) loggedin = True f.close() except IOError: cookies = None loggedin = False def checkLogin(): global loggedin txt = getPage(mylang,'Non-existing page', get_edit_page = False) loggedin = 'Userlogin' not in txt return loggedin def argHandler(arg): ''' Takes a commandline parameter, converts it to unicode, and returns it unless it is one of the global parameters as -lang or -throttle. If it is a global parameter, processes it and returns None. ''' if sys.platform=='win32': arg = unicode(arg, 'windows-1252') else: arg = unicode(arg, config.console_encoding) if arg.startswith('-family:'): setFamily(arg[8:]) elif arg.startswith('-lang:'): setMyLang(arg[6:]) elif arg.startswith('-throttle:'): get_throttle.setDelay(int(arg[10:])) elif arg.startswith('-putthrottle:'): put_throttle.setDelay(int(arg[13:])) else: return arg return None username = config.username if not config.username: print "Please make a file user-config.py, and put in there:" print "One line saying \"username='yy'\"" print "One line saying \"mylang='xx'\"" print "....filling in your real name and home wikipedia." print "for other possible configuration variables check config.py" sys.exit(1) setFamily(config.family) setMyLang(config.mylang) if not family.langs.has_key(mylang): print "Home-wikipedia from user-config.py does not exist" print "Defaulting to test: wikipedia" setMyLang('test') family.langs['test']='test.wikipedia.org' | def altlang(code): if code in ['fa','ku']: return ['ar'] if code=='sk': return ['cs'] if code=='nds': return ['de','nl'] if code in ['ca','gn','nah']: return ['es'] if code=='eu': return ['es','fr'] if code=='gl': return ['es','pt'] if code in ['br','oc','th','vi','wa']: return ['fr'] if code=='als': return ['fr','de'] if code=='co': return ['fr','it'] if code=='fy': return ['nl'] if code=='csb': return ['pl'] if code in ['mo','roa-rup']: return ['ro'] if code in ['be','lt','lv','uk']: return ['ru'] if code=='uz': return ['ru','tr'] if code in ['ja','ko','minnan','za','zh','zh-cn','zh-tw']: return ['zh','zh-cn','zh-tw'] if code=='da': return ['nb','no'] if code in ['is','no','nb']: return ['no','nb','nn','da'] if code=='sv': return ['da','no','nb'] if code in ['id','jv','ms','su']: return ['id','ms','jv','su'] if code in ['bs','hr','mk','sh','sr']: return ['hr','sr','bs'] if code in ['ia','ie']: return ['ia','la','ie','es','fr','it'] if code=='sa': return ['hi'] if code=='yi': return ['he'] if code=='bi': return ['tpi'] if code=='tpi': return ['bi'] return [] | 21ca3000e6246da761b51efabc2992c3e4ad578a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/21ca3000e6246da761b51efabc2992c3e4ad578a/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3770,
4936,
12,
710,
4672,
309,
981,
316,
10228,
507,
17023,
31562,
3546,
30,
327,
10228,
297,
3546,
309,
981,
18920,
7771,
4278,
327,
10228,
2143,
3546,
309,
981,
18920,
82,
2377,
4278,
327,
10228,
323,
17023,
14039,
3546,
309,
981,
316,
10228,
5353,
17023,
1600,
17023,
6582,
76,
3546,
30,
327,
10228,
281,
3546,
309,
981,
18920,
73,
89,
4278,
327,
10228,
281,
17023,
4840,
3546,
309,
981,
18920,
7043,
4278,
327,
10228,
281,
17023,
337,
3546,
309,
981,
316,
10228,
2848,
17023,
504,
17023,
451,
17023,
522,
17023,
91,
69,
3546,
30,
327,
10228,
4840,
3546,
309,
981,
18920,
1031,
4278,
327,
10228,
4840,
17023,
323,
3546,
309,
981,
18920,
2894,
4278,
327,
10228,
4840,
17023,
305,
3546,
309,
981,
18920,
74,
93,
4278,
327,
10228,
14039,
3546,
309,
981,
18920,
2143,
70,
4278,
327,
10228,
412,
3546,
309,
981,
316,
10228,
8683,
17023,
303,
69,
17,
86,
416,
3546,
30,
327,
10228,
303,
3546,
309,
981,
316,
10228,
2196,
17023,
5618,
17023,
3070,
17023,
19445,
3546,
30,
327,
10228,
8653,
3546,
309,
981,
18920,
29298,
4278,
327,
10228,
8653,
17023,
313,
3546,
309,
981,
316,
10228,
12333,
17023,
28179,
17023,
1154,
13569,
17023,
11939,
17023,
23121,
17023,
23121,
17,
10305,
17023,
23121,
17,
11246,
3546,
30,
327,
10228,
23121,
17023,
23121,
17,
10305,
17023,
23121,
17,
11246,
3546,
309,
981,
18920,
2414,
4278,
327,
10228,
6423,
17023,
2135,
3546,
309,
981,
316,
10228,
291,
17023,
2135,
17023,
6423,
3546,
30,
327,
10228,
2135,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3770,
4936,
12,
710,
4672,
309,
981,
316,
10228,
507,
17023,
31562,
3546,
30,
327,
10228,
297,
3546,
309,
981,
18920,
7771,
4278,
327,
10228,
2143,
3546,
309,
981,
18920,
82,
2377,
4278,
327,
10228,
323,
17023,
14039,
3546,
309,
981,
316,
10228,
5353,
17023,
1600,
17023,
6582,
76,
3546,
30,
327,
10228,
281,
3546,
309,
981,
18920,
73,
89,
4278,
327,
10228,
281,
17023,
4840,
3546,
309,
981,
18920,
7043,
4278,
327,
10228,
281,
17023,
337,
3546,
309,
981,
316,
10228,
2848,
17023,
504,
17023,
451,
17023,
522,
17023,
91,
69,
3546,
30,
327,
10228,
4840,
3546,
309,
981,
18920,
1031,
4278,
327,
10228,
4840,
17023,
323,
3546,
309,
981,
18920,
2894,
4278,
327,
10228,
4840,
17023,
2
] |
|
def install(self): sys.path.insert(0, self) | def install(self): sys.path.insert(0, self) | 2de07507437c9c4f18a0ba8d79f54df846aa9524 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2de07507437c9c4f18a0ba8d79f54df846aa9524/imputil.py | [
1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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
2589,
18,
803,
18,
6387,
12,
20,
16,
365,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
+"empty can data. The units of the parameters should "\ +"be microseconds and there should be as many values "\ +"as datasets.") | +"for empty can data. The units of the parameters "\ +"should be microseconds and there should be as many "\ +"values as datasets.") | def __init__(self, usage=None, option_list=None, options_class=None, version=None, conflict_handler='error', description=None, **kwargs): """ Constructor for C{DgsOptions} | d467b953a0853f22af0c6d60c3e0dcc605af15c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/763/d467b953a0853f22af0c6d60c3e0dcc605af15c1/hlr_dgs_options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4084,
33,
7036,
16,
1456,
67,
1098,
33,
7036,
16,
702,
67,
1106,
33,
7036,
16,
1177,
33,
7036,
16,
7546,
67,
4176,
2218,
1636,
2187,
2477,
33,
7036,
16,
2826,
4333,
4672,
3536,
11417,
364,
385,
95,
40,
564,
1320,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4084,
33,
7036,
16,
1456,
67,
1098,
33,
7036,
16,
702,
67,
1106,
33,
7036,
16,
1177,
33,
7036,
16,
7546,
67,
4176,
2218,
1636,
2187,
2477,
33,
7036,
16,
2826,
4333,
4672,
3536,
11417,
364,
385,
95,
40,
564,
1320,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not self.data[section]["options"][option]["input"]: | try: if not self.data[section]["options"][option]["input"]: return [] return self.data[section]["options"][option]["input"].split(";") except: | def getInputValues(self, section, option): if not self.data[section]["options"][option]["input"]: return [] return self.data[section]["options"][option]["input"].split(";") | 257a9dd06ac0788ce0c149625c7711d5d0f71d97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/257a9dd06ac0788ce0c149625c7711d5d0f71d97/XMLConfigParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12353,
1972,
12,
2890,
16,
2442,
16,
1456,
4672,
775,
30,
309,
486,
365,
18,
892,
63,
3464,
6362,
6,
2116,
6,
6362,
3482,
6362,
6,
2630,
11929,
30,
327,
5378,
327,
365,
18,
892,
63,
3464,
6362,
6,
2116,
6,
6362,
3482,
6362,
6,
2630,
6,
8009,
4939,
2932,
4868,
13,
1335,
30,
327,
5378,
327,
365,
18,
892,
63,
3464,
6362,
6,
2116,
6,
6362,
3482,
6362,
6,
2630,
6,
8009,
4939,
2932,
4868,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12353,
1972,
12,
2890,
16,
2442,
16,
1456,
4672,
775,
30,
309,
486,
365,
18,
892,
63,
3464,
6362,
6,
2116,
6,
6362,
3482,
6362,
6,
2630,
11929,
30,
327,
5378,
327,
365,
18,
892,
63,
3464,
6362,
6,
2116,
6,
6362,
3482,
6362,
6,
2630,
6,
8009,
4939,
2932,
4868,
13,
1335,
30,
327,
5378,
327,
365,
18,
892,
63,
3464,
6362,
6,
2116,
6,
6362,
3482,
6362,
6,
2630,
6,
8009,
4939,
2932,
4868,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.collisionNode.setCollideGeom(0) | def collideWithWidget(self): # This collision node should not be tested against by any other # collision solids self.collisionNode.setIntoCollideMask(BitMask32().allOff()) # This collision node will test for collisions with any collision # solids with a bit mask set to 0x80000000 mask = BitMask32() mask.setBit(31) self.collisionNode.setFromCollideMask(mask) # But in this case, don't test against actual geometry self.collisionNode.setCollideGeom(0) | b3123b3c2d6680e9678288c9946c1e32f10a2db1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/b3123b3c2d6680e9678288c9946c1e32f10a2db1/seSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
645,
8130,
1190,
4609,
12,
2890,
4672,
468,
1220,
17740,
756,
1410,
486,
506,
18432,
5314,
635,
1281,
1308,
468,
17740,
3704,
2232,
365,
18,
12910,
1951,
907,
18,
542,
5952,
914,
8130,
5796,
12,
5775,
5796,
1578,
7675,
454,
7210,
10756,
468,
1220,
17740,
756,
903,
1842,
364,
27953,
598,
1281,
17740,
468,
3704,
2232,
598,
279,
2831,
3066,
444,
358,
374,
92,
28,
17877,
3066,
273,
6539,
5796,
1578,
1435,
3066,
18,
542,
5775,
12,
6938,
13,
365,
18,
12910,
1951,
907,
18,
542,
1265,
914,
8130,
5796,
12,
4455,
13,
468,
12484,
316,
333,
648,
16,
2727,
1404,
1842,
5314,
3214,
5316,
365,
18,
12910,
1951,
907,
18,
542,
914,
8130,
16972,
12,
20,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
645,
8130,
1190,
4609,
12,
2890,
4672,
468,
1220,
17740,
756,
1410,
486,
506,
18432,
5314,
635,
1281,
1308,
468,
17740,
3704,
2232,
365,
18,
12910,
1951,
907,
18,
542,
5952,
914,
8130,
5796,
12,
5775,
5796,
1578,
7675,
454,
7210,
10756,
468,
1220,
17740,
756,
903,
1842,
364,
27953,
598,
1281,
17740,
468,
3704,
2232,
598,
279,
2831,
3066,
444,
358,
374,
92,
28,
17877,
3066,
273,
6539,
5796,
1578,
1435,
3066,
18,
542,
5775,
12,
6938,
13,
365,
18,
12910,
1951,
907,
18,
542,
1265,
914,
8130,
5796,
12,
4455,
13,
468,
12484,
316,
333,
648,
16,
2727,
1404,
1842,
5314,
3214,
5316,
365,
18,
12910,
1951,
907,
18,
542,
914,
8130,
16972,
12,
20,
13,
2
] |
|
def Notify(self,region): | def Notify(self, region): | def Notify(self,region): '''Generate change notification for region''' pass | 663fd7648200f6806c0af46cf879014c1a3e3e9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/663fd7648200f6806c0af46cf879014c1a3e3e9e/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10918,
12,
2890,
16,
3020,
4672,
9163,
4625,
2549,
3851,
364,
3020,
26418,
1342,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10918,
12,
2890,
16,
3020,
4672,
9163,
4625,
2549,
3851,
364,
3020,
26418,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
file.Write(" // TODO(gman): Make sure validate checks arg_count\n") file.Write(" // covers data_size.\n") | file.Write(" // TODO(gman): Make sure validate checks\n") file.Write(" // immediate_data_size covers data_size.\n") file.Write(" GLint* location = GetSharedMemoryAs<GLint*>(\n") file.Write( " c.location_shm_id, c.location_shm_offset, sizeof(*location));\n") file.Write(" // TODO(gman): Validate location.\n") | def WriteImmediateServiceImplementation(self, func, file): """Overrriden from TypeHandler.""" file.Write( "parse_error::ParseError GLES2DecoderImpl::Handle%s(\n" % func.name) file.Write( " unsigned int arg_count, const gles2::%s& c) {\n" % func.name) last_arg = func.GetLastOriginalArg() | 6b5cc7aeca6761c88c0f98b0e54990becbe32177 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/6b5cc7aeca6761c88c0f98b0e54990becbe32177/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1179,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
12,
315,
2670,
67,
1636,
2866,
21004,
611,
11386,
22,
7975,
2828,
2866,
3259,
9,
87,
4713,
82,
6,
738,
1326,
18,
529,
13,
585,
18,
3067,
12,
315,
565,
9088,
509,
1501,
67,
1883,
16,
1866,
314,
1040,
22,
2866,
9,
87,
10,
276,
13,
18890,
82,
6,
738,
1326,
18,
529,
13,
1142,
67,
3175,
273,
1326,
18,
967,
3024,
8176,
4117,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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3067,
12,
315,
2670,
67,
1636,
2866,
21004,
611,
11386,
22,
7975,
2828,
2866,
3259,
9,
87,
4713,
82,
6,
738,
1326,
18,
529,
13,
585,
18,
3067,
12,
315,
565,
9088,
509,
1501,
67,
1883,
16,
1866,
314,
1040,
22,
2866,
9,
87,
10,
276,
13,
18890,
82,
6,
738,
1326,
18,
529,
13,
1142,
67,
3175,
273,
1326,
18,
967,
3024,
8176,
4117,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
None, [cty.c_int, cty.c_int, cty.c_int, cty.c_int, cty.c_int], | None, [cty.c_int, cty.c_int, cty.c_int, cty.c_int, cty.c_int], | def fl_hide_fselector(): """ fl_hide_fselector() """ _fl_hide_fselector() | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
11248,
67,
74,
9663,
13332,
3536,
1183,
67,
11248,
67,
74,
9663,
1435,
3536,
225,
389,
2242,
67,
11248,
67,
74,
9663,
1435,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
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,
1183,
67,
11248,
67,
74,
9663,
13332,
3536,
1183,
67,
11248,
67,
74,
9663,
1435,
3536,
225,
389,
2242,
67,
11248,
67,
74,
9663,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._make_fake_item("pcf.mpeg") | self._make_fake_item("pcf.avi") | def setUp(self): MiroTestCase.setUp(self) self.feed = Feed(u'dtv:manualFeed', initiallyAutoDownloadable=False) self.tempdir = FilenameType(tempfile.mkdtemp()) self._make_fake_item("pcf.mpeg") self._make_fake_item("dean.avi") self._make_fake_item("npr.txt") self.container_item = FileItem(self.tempdir, self.feed.id) | a2417b283be86b9f5f04384e9d4664d9483bf713 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/a2417b283be86b9f5f04384e9d4664d9483bf713/itemtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
490,
11373,
4709,
2449,
18,
542,
1211,
12,
2890,
13,
365,
18,
7848,
273,
14013,
12,
89,
14271,
24161,
30,
19840,
8141,
2187,
22458,
4965,
7109,
429,
33,
8381,
13,
365,
18,
5814,
1214,
273,
16671,
559,
12,
5814,
768,
18,
24816,
72,
5814,
10756,
365,
6315,
6540,
67,
28395,
67,
1726,
2932,
2436,
74,
18,
69,
522,
7923,
365,
6315,
6540,
67,
28395,
67,
1726,
2932,
323,
304,
18,
69,
522,
7923,
365,
6315,
6540,
67,
28395,
67,
1726,
2932,
82,
683,
18,
5830,
7923,
365,
18,
3782,
67,
1726,
273,
1387,
1180,
12,
2890,
18,
5814,
1214,
16,
365,
18,
7848,
18,
350,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24292,
12,
2890,
4672,
490,
11373,
4709,
2449,
18,
542,
1211,
12,
2890,
13,
365,
18,
7848,
273,
14013,
12,
89,
14271,
24161,
30,
19840,
8141,
2187,
22458,
4965,
7109,
429,
33,
8381,
13,
365,
18,
5814,
1214,
273,
16671,
559,
12,
5814,
768,
18,
24816,
72,
5814,
10756,
365,
6315,
6540,
67,
28395,
67,
1726,
2932,
2436,
74,
18,
69,
522,
7923,
365,
6315,
6540,
67,
28395,
67,
1726,
2932,
323,
304,
18,
69,
522,
7923,
365,
6315,
6540,
67,
28395,
67,
1726,
2932,
82,
683,
18,
5830,
7923,
365,
18,
3782,
67,
1726,
273,
1387,
1180,
12,
2890,
18,
5814,
1214,
16,
365,
18,
7848,
18,
350,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
s += '=\\texttt{%s}' % default.summary_pyval_repr().to_latex(None) | s += '={\\tt %s}' % default.summary_pyval_repr().to_latex(None) | def func_arg(self, name, default): s = '\\textit{%s}' % plaintext_to_latex(self._arg_name(name)) if default is not None: s += '=\\texttt{%s}' % default.summary_pyval_repr().to_latex(None) return s | 6fb49cf093665ae39b3a24201c873bf5dc8a8c4f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/6fb49cf093665ae39b3a24201c873bf5dc8a8c4f/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
67,
3175,
12,
2890,
16,
508,
16,
805,
4672,
272,
273,
3718,
955,
305,
95,
9,
87,
1713,
738,
11917,
67,
869,
67,
26264,
12,
2890,
6315,
3175,
67,
529,
12,
529,
3719,
309,
805,
353,
486,
599,
30,
272,
1011,
296,
5899,
1695,
748,
738,
87,
1713,
738,
805,
18,
7687,
67,
2074,
1125,
67,
12715,
7675,
869,
67,
26264,
12,
7036,
13,
327,
272,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1326,
67,
3175,
12,
2890,
16,
508,
16,
805,
4672,
272,
273,
3718,
955,
305,
95,
9,
87,
1713,
738,
11917,
67,
869,
67,
26264,
12,
2890,
6315,
3175,
67,
529,
12,
529,
3719,
309,
805,
353,
486,
599,
30,
272,
1011,
296,
5899,
1695,
748,
738,
87,
1713,
738,
805,
18,
7687,
67,
2074,
1125,
67,
12715,
7675,
869,
67,
26264,
12,
7036,
13,
327,
272,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def setActivePrivacyList(disp,listname=None): return SetActivePrivacyList(disp,listname,'default') | def setDefaultPrivacyList(disp,listname=None): return setActivePrivacyList(disp,listname,'default') | def setActivePrivacyList(disp,listname=None): return SetActivePrivacyList(disp,listname,'default') | d8ac2e919214806eb7127ce45cb0c52382f7e679 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/d8ac2e919214806eb7127ce45cb0c52382f7e679/features.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9277,
15475,
3505,
682,
12,
25453,
16,
1098,
529,
33,
7036,
4672,
327,
20669,
15475,
3505,
682,
12,
25453,
16,
1098,
529,
11189,
1886,
6134,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def randstr(length, pool = valid_xml_chars): sample = random.sample(pool, length) return u''.join(sample) | def randstr(length, pool = valid_xml_chars, encoding = "utf-8"): sample = random.sample(pool, min(length, len(pool))) while True: s = u''.join(sample) bytes = len(s.encode(encoding)) if bytes > length: sample.pop() elif bytes < length: sample += random.sample(pool, min(length - bytes, len(pool))) random.shuffle(sample) else: break return s | def randstr(length, pool = valid_xml_chars): sample = random.sample(pool, length) return u''.join(sample) | 8cecf35d2c665fe2ac2e0982da46d39e3fc05b42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/8cecf35d2c665fe2ac2e0982da46d39e3fc05b42/Test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5605,
701,
12,
2469,
16,
2845,
273,
923,
67,
2902,
67,
7549,
16,
2688,
273,
315,
3158,
17,
28,
6,
4672,
3296,
273,
2744,
18,
6358,
12,
6011,
16,
1131,
12,
2469,
16,
562,
12,
6011,
20349,
1323,
1053,
30,
272,
273,
582,
6309,
18,
5701,
12,
6358,
13,
1731,
273,
562,
12,
87,
18,
3015,
12,
5999,
3719,
309,
1731,
405,
769,
30,
3296,
18,
5120,
1435,
1327,
1731,
411,
769,
30,
3296,
1011,
2744,
18,
6358,
12,
6011,
16,
1131,
12,
2469,
300,
1731,
16,
562,
12,
6011,
20349,
2744,
18,
31980,
12,
6358,
13,
469,
30,
898,
327,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5605,
701,
12,
2469,
16,
2845,
273,
923,
67,
2902,
67,
7549,
16,
2688,
273,
315,
3158,
17,
28,
6,
4672,
3296,
273,
2744,
18,
6358,
12,
6011,
16,
1131,
12,
2469,
16,
562,
12,
6011,
20349,
1323,
1053,
30,
272,
273,
582,
6309,
18,
5701,
12,
6358,
13,
1731,
273,
562,
12,
87,
18,
3015,
12,
5999,
3719,
309,
1731,
405,
769,
30,
3296,
18,
5120,
1435,
1327,
1731,
411,
769,
30,
3296,
1011,
2744,
18,
6358,
12,
6011,
16,
1131,
12,
2469,
300,
1731,
16,
562,
12,
6011,
20349,
2744,
18,
31980,
12,
6358,
13,
469,
30,
898,
327,
272,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
v1.apiTrapPDU.getSpecificTrap(v1Pdu) | (v1.apiTrapPDU.getSpecificTrap(v1Pdu),) | def v1ToV2(v1Pdu, origV2Pdu=None): pduType = v1Pdu.tagSet v2Pdu = __v1ToV2PduMap[pduType].clone() v2c.apiPDU.setDefaults(v2Pdu) v2VarBinds = [] # 3.1 if rfc3411.notificationClassPDUs.has_key(pduType): # 3.1.1 sysUpTime = v1.apiTrapPDU.getTimeStamp(v1Pdu) # 3.1.2 genericTrap = v1.apiTrapPDU.getGenericTrap(v1Pdu) if genericTrap == 6: snmpTrapOID = v1.apiTrapPDU.getEnterprise(v1Pdu) + (0,) + \ v1.apiTrapPDU.getSpecificTrap(v1Pdu) # 3.1.3 else: snmpTrapOID = __v1ToV2TrapMap[genericTrap] v2VarBinds.append((__sysUpTime, sysUpTime)) v2VarBinds.append((snmpTrapOID, __null)) # 3.1.4 --> done below varBinds = v1.apiTrapPDU.getVarBinds(v1Pdu) else: varBinds = v1.apiPDU.getVarBinds(v1Pdu) # Translate Var-Binds for oid, v1Val in varBinds: # 2.1.1.11 if v1Val.tagSet == v1.NetworkAddress.tagSet: v1Val = v1Val.getComponent() v2VarBinds.append( (oid, __v1ToV2ValueMap[v1Val.tagSet].clone(v1Val)) ) if rfc3411.responseClassPDUs.has_key(pduType): # 4.1.2.2 --> one-to-one mapping v2c.apiPDU.setErrorStatus( v2Pdu, int(v1.apiPDU.getErrorStatus(v1Pdu)) ) v2c.apiPDU.setErrorIndex( v2Pdu, int(v1.apiPDU.getErrorIndex(v1Pdu)) ) # 4.1.2.1 --> no-op if not rfc3411.notificationClassPDUs.has_key(pduType): v2c.apiPDU.setRequestID(v2Pdu, long(v1.apiPDU.getRequestID(v1Pdu))) v2c.apiPDU.setVarBinds(v2Pdu, v2VarBinds) return v2Pdu | fe783ae8abac7335363d6714b7f73ebac09bcf0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/fe783ae8abac7335363d6714b7f73ebac09bcf0a/rfc2576.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
331,
21,
774,
58,
22,
12,
90,
21,
52,
2544,
16,
1647,
58,
22,
52,
2544,
33,
7036,
4672,
21160,
559,
273,
331,
21,
52,
2544,
18,
2692,
694,
331,
22,
52,
2544,
273,
1001,
90,
21,
774,
58,
22,
52,
2544,
863,
63,
84,
2544,
559,
8009,
14056,
1435,
331,
22,
71,
18,
2425,
52,
16214,
18,
542,
7019,
12,
90,
22,
52,
2544,
13,
225,
331,
22,
1537,
17856,
273,
5378,
225,
468,
890,
18,
21,
309,
16590,
5026,
2499,
18,
9927,
797,
21527,
3477,
18,
5332,
67,
856,
12,
84,
2544,
559,
4672,
468,
890,
18,
21,
18,
21,
2589,
1211,
950,
273,
331,
21,
18,
2425,
56,
1266,
52,
16214,
18,
588,
21536,
12,
90,
21,
52,
2544,
13,
225,
468,
890,
18,
21,
18,
22,
5210,
56,
1266,
273,
331,
21,
18,
2425,
56,
1266,
52,
16214,
18,
588,
7014,
56,
1266,
12,
90,
21,
52,
2544,
13,
309,
5210,
56,
1266,
422,
1666,
30,
15366,
56,
1266,
12945,
273,
331,
21,
18,
2425,
56,
1266,
52,
16214,
18,
588,
30699,
12,
90,
21,
52,
2544,
13,
397,
261,
20,
16,
13,
397,
521,
261,
90,
21,
18,
2425,
56,
1266,
52,
16214,
18,
588,
9969,
56,
1266,
12,
90,
21,
52,
2544,
3631,
13,
225,
468,
890,
18,
21,
18,
23,
469,
30,
15366,
56,
1266,
12945,
273,
1001,
90,
21,
774,
58,
22,
56,
1266,
863,
63,
13540,
56,
1266,
65,
225,
331,
22,
1537,
17856,
18,
6923,
12443,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
331,
21,
774,
58,
22,
12,
90,
21,
52,
2544,
16,
1647,
58,
22,
52,
2544,
33,
7036,
4672,
21160,
559,
273,
331,
21,
52,
2544,
18,
2692,
694,
331,
22,
52,
2544,
273,
1001,
90,
21,
774,
58,
22,
52,
2544,
863,
63,
84,
2544,
559,
8009,
14056,
1435,
331,
22,
71,
18,
2425,
52,
16214,
18,
542,
7019,
12,
90,
22,
52,
2544,
13,
225,
331,
22,
1537,
17856,
273,
5378,
225,
468,
890,
18,
21,
309,
16590,
5026,
2499,
18,
9927,
797,
21527,
3477,
18,
5332,
67,
856,
12,
84,
2544,
559,
4672,
468,
890,
18,
21,
18,
21,
2589,
1211,
950,
273,
331,
21,
18,
2425,
56,
1266,
52,
16214,
18,
588,
21536,
12,
2
] |
self.copyVLCPluginFiles(buildBase) | self.copyVLCPluginFiles(self.bdist_base, buildBase) | def buildXulrunnerInstallation(self): | 5a05510d177509c044b084c55b5a0cdf98cac9dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/5a05510d177509c044b084c55b5a0cdf98cac9dc/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
60,
332,
18156,
21790,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
60,
332,
18156,
21790,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
FIXME: should return string or unicode? | def escape(s, quote=0): """ Escape possible html tags Replace special characters '&', '<' and '>' by SGML entities. (taken from cgi.escape so we don't have to include that, even if we don't use cgi at all) FIXME: should return string or unicode? @param s: (unicode) string to escape @param quote: bool, should transform '\"' to '"' @rtype: (unicode) string @return: escaped version of s """ if not isinstance(s, (str, unicode)): s = str(s) # Must first replace & s = s.replace("&", "&") # Then other... s = s.replace("<", "<") s = s.replace(">", ">") if quote: s = s.replace('"', """) return s | 21b6589c5c8e4d96e4743f8318476c1670f80a4e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/21b6589c5c8e4d96e4743f8318476c1670f80a4e/wikiutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4114,
12,
87,
16,
3862,
33,
20,
4672,
3536,
18025,
3323,
1729,
2342,
225,
6910,
4582,
3949,
5183,
2187,
9138,
471,
7481,
635,
348,
43,
1495,
5140,
18,
261,
29113,
628,
276,
10052,
18,
6939,
1427,
732,
2727,
1404,
1240,
358,
2341,
716,
16,
5456,
309,
732,
2727,
1404,
999,
276,
10052,
622,
777,
13,
225,
632,
891,
272,
30,
261,
9124,
13,
533,
358,
4114,
632,
891,
3862,
30,
1426,
16,
1410,
2510,
2337,
5187,
358,
5183,
9270,
4359,
632,
86,
723,
30,
261,
9124,
13,
533,
632,
2463,
30,
8345,
1177,
434,
272,
3536,
309,
486,
1549,
12,
87,
16,
261,
701,
16,
5252,
3719,
30,
272,
273,
609,
12,
87,
13,
225,
468,
6753,
1122,
1453,
473,
272,
273,
272,
18,
2079,
2932,
10,
3113,
7830,
931,
4868,
13,
225,
468,
9697,
1308,
2777,
272,
273,
272,
18,
2079,
2932,
32,
3113,
7830,
5618,
4868,
13,
272,
273,
272,
18,
2079,
2932,
2984,
16,
7830,
4521,
4868,
13,
309,
3862,
30,
272,
273,
272,
18,
2079,
22076,
2187,
7830,
9270,
4868,
13,
327,
272,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
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,
4114,
12,
87,
16,
3862,
33,
20,
4672,
3536,
18025,
3323,
1729,
2342,
225,
6910,
4582,
3949,
5183,
2187,
9138,
471,
7481,
635,
348,
43,
1495,
5140,
18,
261,
29113,
628,
276,
10052,
18,
6939,
1427,
732,
2727,
1404,
1240,
358,
2341,
716,
16,
5456,
309,
732,
2727,
1404,
999,
276,
10052,
622,
777,
13,
225,
632,
891,
272,
30,
261,
9124,
13,
533,
358,
4114,
632,
891,
3862,
30,
1426,
16,
1410,
2510,
2337,
5187,
358,
5183,
9270,
4359,
632,
86,
723,
30,
261,
9124,
13,
533,
632,
2463,
30,
8345,
1177,
434,
272,
3536,
309,
486,
1549,
12,
87,
16,
261,
701,
16,
5252,
3719,
30,
272,
273,
609,
12,
87,
13,
225,
468,
6753,
1122,
2
] |
|
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 198) else quickfix.StringField.__init__(self, 198, 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,
5342,
28,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
5342,
28,
16,
501,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" | """ | def fl_setpup_itemcb(nm, ni, py_cb): """ fl_setpup_itemcb(nm, ni, py_cb) -> pup_cb """ c_cb = FL_PUP_CB(py_cb) _cfunc_refs[get_rand_dictkey()] = c_cb retval = _fl_setpup_itemcb(nm, ni, c_cb) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
84,
416,
67,
1726,
7358,
12,
15094,
16,
16398,
16,
2395,
67,
7358,
4672,
3536,
1183,
67,
542,
84,
416,
67,
1726,
7358,
12,
15094,
16,
16398,
16,
2395,
67,
7358,
13,
317,
293,
416,
67,
7358,
3536,
225,
276,
67,
7358,
273,
31358,
67,
52,
3079,
67,
8876,
12,
2074,
67,
7358,
13,
389,
71,
644,
67,
9316,
63,
588,
67,
7884,
67,
1576,
856,
1435,
65,
273,
276,
67,
7358,
5221,
273,
389,
2242,
67,
542,
84,
416,
67,
1726,
7358,
12,
15094,
16,
16398,
16,
276,
67,
7358,
13,
327,
5221,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
1183,
67,
542,
84,
416,
67,
1726,
7358,
12,
15094,
16,
16398,
16,
2395,
67,
7358,
4672,
3536,
1183,
67,
542,
84,
416,
67,
1726,
7358,
12,
15094,
16,
16398,
16,
2395,
67,
7358,
13,
317,
293,
416,
67,
7358,
3536,
225,
276,
67,
7358,
273,
31358,
67,
52,
3079,
67,
8876,
12,
2074,
67,
7358,
13,
389,
71,
644,
67,
9316,
63,
588,
67,
7884,
67,
1576,
856,
1435,
65,
273,
276,
67,
7358,
5221,
273,
389,
2242,
67,
542,
84,
416,
67,
1726,
7358,
12,
15094,
16,
16398,
16,
276,
67,
7358,
13,
327,
5221,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else: div = array(div).ravel() | def divide(self,div): """Divide a plex-2 Formex at the values in div. | 78dfb861a7377632c52ff3d4ac21a8bafe223d5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2499/78dfb861a7377632c52ff3d4ac21a8bafe223d5b/formex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12326,
12,
2890,
16,
2892,
4672,
3536,
7244,
831,
279,
293,
4149,
17,
22,
2748,
338,
622,
326,
924,
316,
3739,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12326,
12,
2890,
16,
2892,
4672,
3536,
7244,
831,
279,
293,
4149,
17,
22,
2748,
338,
622,
326,
924,
316,
3739,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.widthentry.set_state("disabled") self.heightentry.set_state("disabled") | self.widthentry.set_state(DISABLED) self.heightentry.set_state(DISABLED) | def set_entry_sensitivity(self): formatname = self.var_format_name.get() if formatname != USER_SPECIFIC: self.widthentry.set_state("disabled") self.heightentry.set_state("disabled") else: self.widthentry.set_state("enabled") self.heightentry.set_state("enabled") | 12ea705b7dda6fed702963677016d0203d5d0ad5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/12ea705b7dda6fed702963677016d0203d5d0ad5/page_panel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4099,
67,
87,
773,
20862,
12,
2890,
4672,
740,
529,
273,
365,
18,
1401,
67,
2139,
67,
529,
18,
588,
1435,
309,
740,
529,
480,
7443,
67,
13847,
22183,
30,
365,
18,
2819,
4099,
18,
542,
67,
2019,
12,
24493,
13,
365,
18,
4210,
4099,
18,
542,
67,
2019,
12,
24493,
13,
469,
30,
365,
18,
2819,
4099,
18,
542,
67,
2019,
2932,
5745,
7923,
365,
18,
4210,
4099,
18,
542,
67,
2019,
2932,
5745,
7923,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4099,
67,
87,
773,
20862,
12,
2890,
4672,
740,
529,
273,
365,
18,
1401,
67,
2139,
67,
529,
18,
588,
1435,
309,
740,
529,
480,
7443,
67,
13847,
22183,
30,
365,
18,
2819,
4099,
18,
542,
67,
2019,
12,
24493,
13,
365,
18,
4210,
4099,
18,
542,
67,
2019,
12,
24493,
13,
469,
30,
365,
18,
2819,
4099,
18,
542,
67,
2019,
2932,
5745,
7923,
365,
18,
4210,
4099,
18,
542,
67,
2019,
2932,
5745,
7923,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
data = NotificationData(message_id=chunk.message_id, message=chunk, code=chunk.status.code, reason=chunk.status.reason) | data = NotificationData(message_id=chunk.message_id, message=chunk, code=chunk.status.code, reason=chunk.status.comment) | def _on_incoming(self, chunk=None, error=None): if error is not None: if isinstance(error.value, ConnectionDone): self.notification_center.post_notification('MSRPChatDidEnd', self) else: self.notification_center.post_notification('MSRPChatDidFail', self, NotificationData(context='reading', failure=error)) if chunk.method=='REPORT': # in theory, REPORT can come with Byte-Range which would limit the scope of the REPORT to # the part of the message. data = NotificationData(message_id=chunk.message_id, message=chunk, code=chunk.status.code, reason=chunk.status.reason) if chunk.status.code == 200: self.notification_center.post_notification('MSRPChatDidDeliverMessage', self, data) else: self.notification_center.post_notification('MSRPChatDidNotDeliverMessage', self, data) elif chunk.method=='SEND': if chunk.content_type.lower()=='message/cpim': cpim_headers, content = MessageCPIMParser.parse_string(chunk.data) content_type = cpim_headers.get('Content-Type') else: cpim_headers = {} content = chunk.data content_type = chunk.content_type # TODO: issue a success report if needed # TODO: check wrapped content-type and issue a report if it's invalid ndata = NotificationData(content=content, content_type=content_type, cpim_headers=cpim_headers, message=chunk) self.notification_center.post_notification('MSRPChatGotMessage', self, ndata) | 370c1b4f87d36d4f80c280b86e7413ce6d6513c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/370c1b4f87d36d4f80c280b86e7413ce6d6513c9/msrp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
31033,
12,
2890,
16,
2441,
33,
7036,
16,
555,
33,
7036,
4672,
309,
555,
353,
486,
599,
30,
309,
1549,
12,
1636,
18,
1132,
16,
4050,
7387,
4672,
365,
18,
9927,
67,
5693,
18,
2767,
67,
9927,
2668,
3537,
54,
52,
14163,
18250,
1638,
2187,
365,
13,
469,
30,
365,
18,
9927,
67,
5693,
18,
2767,
67,
9927,
2668,
3537,
54,
52,
14163,
18250,
3754,
2187,
365,
16,
8050,
751,
12,
2472,
2218,
21803,
2187,
5166,
33,
1636,
3719,
309,
2441,
18,
2039,
18920,
22710,
4278,
468,
316,
326,
630,
16,
27711,
848,
12404,
598,
3506,
17,
2655,
1492,
4102,
1800,
326,
2146,
434,
326,
27711,
358,
468,
326,
1087,
434,
326,
883,
18,
501,
273,
8050,
751,
12,
2150,
67,
350,
33,
6551,
18,
2150,
67,
350,
16,
883,
33,
6551,
16,
981,
33,
6551,
18,
2327,
18,
710,
16,
3971,
33,
6551,
18,
2327,
18,
3469,
13,
309,
2441,
18,
2327,
18,
710,
422,
4044,
30,
365,
18,
9927,
67,
5693,
18,
2767,
67,
9927,
2668,
3537,
54,
52,
14163,
18250,
20813,
1079,
2187,
365,
16,
501,
13,
469,
30,
365,
18,
9927,
67,
5693,
18,
2767,
67,
9927,
2668,
3537,
54,
52,
14163,
18250,
1248,
20813,
1079,
2187,
365,
16,
501,
13,
1327,
2441,
18,
2039,
18920,
21675,
4278,
309,
2441,
18,
1745,
67,
723,
18,
8167,
1435,
18920,
2150,
19,
4057,
381,
4278,
3283,
381,
67,
2485,
16,
913,
273,
2350,
39,
1102,
49,
2678,
18,
2670,
67,
1080,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
265,
67,
31033,
12,
2890,
16,
2441,
33,
7036,
16,
555,
33,
7036,
4672,
309,
555,
353,
486,
599,
30,
309,
1549,
12,
1636,
18,
1132,
16,
4050,
7387,
4672,
365,
18,
9927,
67,
5693,
18,
2767,
67,
9927,
2668,
3537,
54,
52,
14163,
18250,
1638,
2187,
365,
13,
469,
30,
365,
18,
9927,
67,
5693,
18,
2767,
67,
9927,
2668,
3537,
54,
52,
14163,
18250,
3754,
2187,
365,
16,
8050,
751,
12,
2472,
2218,
21803,
2187,
5166,
33,
1636,
3719,
309,
2441,
18,
2039,
18920,
22710,
4278,
468,
316,
326,
630,
16,
27711,
848,
12404,
598,
3506,
17,
2655,
1492,
4102,
1800,
326,
2146,
434,
326,
27711,
358,
468,
326,
1087,
434,
326,
883,
18,
501,
2
] |
sage: Q < P True sage: Q > P False | sage: p1, p2 = Posets(2).list() sage: p2 == p1, p1 != p2 (False, True) sage: [[p1.__eq__(p2) for p1 in Posets(2)] for p2 in Posets(2)] [[True, False], [False, True]] sage: [[p2.__eq__(p1) for p1 in Posets(2)] for p2 in Posets(2)] [[True, False], [False, True]] sage: [[p2 == p1 for p1 in Posets(3)] for p2 in Posets(3)] [[True, False, False, False, False], [False, True, False, False, False], [False, False, True, False, False], [False, False, False, True, False], [False, False, False, False, True]] | def __cmp__(self, other): r""" Define comparison for finite posets. | 005c9d76ebe95b1355f114a9f30279a423f95b63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/005c9d76ebe95b1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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
436,
8395,
13184,
5826,
364,
25922,
949,
2413,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cycles[entry.cycle].add_function(function) | try: cycle = cycles[entry.cycle] except KeyError: sys.stderr.write('warning: <cycle %u as a whole> entry missing\n' % entry.cycle) cycle = Cycle() cycles[entry.cycle] = cycle cycle.add_function(function) | def parse(self): self.parse_cg() self.fp.close() | 948e5ead56ae22fb4ca4883bb53fe3b19dd54fc5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8271/948e5ead56ae22fb4ca4883bb53fe3b19dd54fc5/gprof2dot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
365,
18,
2670,
67,
26275,
1435,
365,
18,
7944,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1109,
12,
2890,
4672,
365,
18,
2670,
67,
26275,
1435,
365,
18,
7944,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._sock.connect(server) | self._sock.connect((server[0], int(server[1]))) | def connect(self,server=None): """ Try to connect. Returns non-empty string on success. """ try: if not server: server=self._server self._sock=socket.socket(socket.AF_INET, socket.SOCK_STREAM) self._sock.connect(server) self._send=self._sock.sendall self._recv=self._sock.recv self.DEBUG("Successfully connected to remote host %s"%`server`,'start') return 'ok' except socket.error, (errno, strerror): self.DEBUG("Failed to connect to remote host %s: %s (%s)"%(`server`, strerror, errno),'error') except: pass | 81cfae86cebc4e16e235b5987e021c740efe1c3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/81cfae86cebc4e16e235b5987e021c740efe1c3b/transports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
3567,
33,
7036,
4672,
3536,
6161,
358,
3077,
18,
2860,
1661,
17,
5531,
533,
603,
2216,
18,
3536,
775,
30,
309,
486,
1438,
30,
1438,
33,
2890,
6315,
3567,
365,
6315,
15031,
33,
7814,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
365,
6315,
15031,
18,
3612,
12443,
3567,
63,
20,
6487,
509,
12,
3567,
63,
21,
65,
20349,
365,
6315,
4661,
33,
2890,
6315,
15031,
18,
4661,
454,
365,
6315,
18334,
33,
2890,
6315,
15031,
18,
18334,
365,
18,
9394,
2932,
18303,
5840,
358,
2632,
1479,
738,
87,
28385,
68,
3567,
9191,
11,
1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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
3567,
33,
7036,
4672,
3536,
6161,
358,
3077,
18,
2860,
1661,
17,
5531,
533,
603,
2216,
18,
3536,
775,
30,
309,
486,
1438,
30,
1438,
33,
2890,
6315,
3567,
365,
6315,
15031,
33,
7814,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
365,
6315,
15031,
18,
3612,
12443,
3567,
63,
20,
6487,
509,
12,
3567,
63,
21,
65,
20349,
365,
6315,
4661,
33,
2890,
6315,
15031,
18,
4661,
454,
365,
6315,
18334,
33,
2890,
6315,
15031,
18,
18334,
365,
18,
9394,
2932,
18303,
5840,
358,
2632,
1479,
738,
87,
28385,
68,
3567,
9191,
11,
1937,
6134,
327,
296,
601,
11,
1335,
2987,
18,
1636,
16,
261,
2
] |
str(e), QtGuiQMessageBox.Ok, self) | str(e), QtGui.QMessageBox.Ok, self) | def enable_current_package(self): av = self._available_packages_list inst = self._enabled_packages_list item = av.currentItem() pos = av.indexFromItem(item).row() codepath = str(item.text()) pm = get_package_manager() | e7a563305ef544be68f8fab40de69c9937b781ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/e7a563305ef544be68f8fab40de69c9937b781ec/preferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
67,
2972,
67,
5610,
12,
2890,
4672,
1712,
273,
365,
6315,
5699,
67,
10308,
67,
1098,
1804,
273,
365,
6315,
5745,
67,
10308,
67,
1098,
761,
273,
1712,
18,
2972,
1180,
1435,
949,
273,
1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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4237,
67,
2972,
67,
5610,
12,
2890,
4672,
1712,
273,
365,
6315,
5699,
67,
10308,
67,
1098,
1804,
273,
365,
6315,
5745,
67,
10308,
67,
1098,
761,
273,
1712,
18,
2972,
1180,
1435,
949,
273,
1712,
18,
1615,
1265,
1180,
12,
1726,
2934,
492,
1435,
981,
803,
273,
609,
12,
1726,
18,
955,
10756,
7430,
273,
336,
67,
5610,
67,
4181,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
m = _load_example_standard_model('vdp', 'VDP_pack_VDP_Opt') | m = _load_example_standard_model('VDP_pack_VDP_Opt') | def main(): m = _load_example_standard_model('vdp', 'VDP_pack_VDP_Opt') # Whether the cost as a function of input U should be plotted GEN_PLOT = False if GEN_PLOT: cost_graph(m) else: SHOOTING_METHOD = 'multiple' if SHOOTING_METHOD=='single': opt_u = single_shooting(m) print "Optimal u:", opt_u elif SHOOTING_METHOD == 'multiple': grid = [(0, 0.1), (0.1, 0.2), (0.2, 0.3), (0.3, 0.4), (0.4, 0.5), (0.5, 0.6), (0.6, 0.7), (0.7, 0.8), (0.8, 0.9), (0.9, 1.0),] initial_u = 0.25 opt_us = multiple_shooting(m, initial_u, grid) print "Optimal us:", opt_us | b50b5a0d061f9da771e0a0c30212562fc234a8cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/b50b5a0d061f9da771e0a0c30212562fc234a8cc/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
312,
273,
389,
945,
67,
8236,
67,
10005,
67,
2284,
2668,
58,
8640,
67,
2920,
67,
58,
8640,
67,
6179,
6134,
225,
468,
17403,
326,
6991,
487,
279,
445,
434,
810,
587,
1410,
506,
3207,
2344,
611,
1157,
67,
20485,
56,
273,
1083,
225,
309,
611,
1157,
67,
20485,
56,
30,
6991,
67,
4660,
12,
81,
13,
469,
30,
6122,
51,
1974,
1360,
67,
5327,
273,
296,
9622,
11,
309,
6122,
51,
1974,
1360,
67,
5327,
18920,
7526,
4278,
2153,
67,
89,
273,
2202,
67,
674,
1632,
310,
12,
81,
13,
1172,
315,
6179,
2840,
582,
2773,
16,
2153,
67,
89,
1327,
6122,
51,
1974,
1360,
67,
5327,
422,
296,
9622,
4278,
3068,
273,
306,
12,
20,
16,
374,
18,
21,
3631,
261,
20,
18,
21,
16,
374,
18,
22,
3631,
261,
20,
18,
22,
16,
374,
18,
23,
3631,
261,
20,
18,
23,
16,
374,
18,
24,
3631,
261,
20,
18,
24,
16,
374,
18,
25,
3631,
261,
20,
18,
25,
16,
374,
18,
26,
3631,
261,
20,
18,
26,
16,
374,
18,
27,
3631,
261,
20,
18,
27,
16,
374,
18,
28,
3631,
261,
20,
18,
28,
16,
374,
18,
29,
3631,
261,
20,
18,
29,
16,
404,
18,
20,
3631,
65,
2172,
67,
89,
273,
374,
18,
2947,
2153,
67,
407,
273,
3229,
67,
674,
1632,
310,
12,
81,
16,
2172,
67,
89,
16,
3068,
13,
1172,
315,
6179,
2840,
584,
2773,
16,
2153,
67,
407,
565,
2,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2774,
13332,
312,
273,
389,
945,
67,
8236,
67,
10005,
67,
2284,
2668,
58,
8640,
67,
2920,
67,
58,
8640,
67,
6179,
6134,
225,
468,
17403,
326,
6991,
487,
279,
445,
434,
810,
587,
1410,
506,
3207,
2344,
611,
1157,
67,
20485,
56,
273,
1083,
225,
309,
611,
1157,
67,
20485,
56,
30,
6991,
67,
4660,
12,
81,
13,
469,
30,
6122,
51,
1974,
1360,
67,
5327,
273,
296,
9622,
11,
309,
6122,
51,
1974,
1360,
67,
5327,
18920,
7526,
4278,
2153,
67,
89,
273,
2202,
67,
674,
1632,
310,
12,
81,
13,
1172,
315,
6179,
2840,
582,
2773,
16,
2153,
67,
89,
1327,
6122,
51,
1974,
1360,
67,
5327,
422,
296,
9622,
4278,
3068,
273,
306,
12,
2
] |
if vendor.find("Authentic AMD") != -1: | if vendor.find("Authentic AMD") != -1 or vendor.find("AuthenticAMD") != -1: | def getCanonX86_64Arch(arch): if arch != "x86_64": return arch vendor = None f = open("/proc/cpuinfo", "r") lines = f.readlines() f.close() for line in lines: if line.startswith("vendor_id"): vendor = line.split(':')[1] break if vendor is None: return arch if vendor.find("Authentic AMD") != -1: return "amd64" if vendor.find("GenuineIntel") != -1: return "ia32e" return arch | 77f7d7522eb4932db5cbf47f9830cfeb557d3c01 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/77f7d7522eb4932db5cbf47f9830cfeb557d3c01/arch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12006,
265,
60,
5292,
67,
1105,
12269,
12,
991,
4672,
309,
6637,
480,
315,
92,
5292,
67,
1105,
6877,
327,
6637,
225,
8556,
273,
599,
284,
273,
1696,
2932,
19,
9381,
19,
11447,
1376,
3113,
315,
86,
7923,
2362,
273,
284,
18,
896,
3548,
1435,
284,
18,
4412,
1435,
364,
980,
316,
2362,
30,
309,
980,
18,
17514,
1918,
2932,
10645,
67,
350,
6,
4672,
8556,
273,
980,
18,
4939,
2668,
2497,
25146,
21,
65,
898,
309,
8556,
353,
599,
30,
327,
6637,
225,
309,
8556,
18,
4720,
2932,
1730,
4499,
432,
6188,
7923,
480,
300,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12006,
265,
60,
5292,
67,
1105,
12269,
12,
991,
4672,
309,
6637,
480,
315,
92,
5292,
67,
1105,
6877,
327,
6637,
225,
8556,
273,
599,
284,
273,
1696,
2932,
19,
9381,
19,
11447,
1376,
3113,
315,
86,
7923,
2362,
273,
284,
18,
896,
3548,
1435,
284,
18,
4412,
1435,
364,
980,
316,
2362,
30,
309,
980,
18,
17514,
1918,
2932,
10645,
67,
350,
6,
4672,
8556,
273,
980,
18,
4939,
2668,
2497,
25146,
21,
65,
898,
309,
8556,
353,
599,
30,
327,
6637,
225,
309,
8556,
18,
4720,
2932,
1730,
4499,
432,
6188,
7923,
480,
300,
21,
578,
8556,
18,
4720,
2932,
1730,
4499,
2192,
40,
7923,
480,
300,
21,
30,
327,
315,
301,
72,
1105,
6,
309,
2
] |
format must be a suiteable R engine, use png! | format must be a suitable R engine, use png! | def save(self, filename=None, device = 'png', verbose=0, block=True, extra_opts=''): """ save R plot | ea65c0348826ad23788362228d4628b48c1f37f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ea65c0348826ad23788362228d4628b48c1f37f5/r.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
33,
7036,
16,
2346,
273,
296,
6446,
2187,
3988,
33,
20,
16,
1203,
33,
5510,
16,
2870,
67,
4952,
2218,
11,
4672,
3536,
1923,
534,
3207,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1923,
12,
2890,
16,
1544,
33,
7036,
16,
2346,
273,
296,
6446,
2187,
3988,
33,
20,
16,
1203,
33,
5510,
16,
2870,
67,
4952,
2218,
11,
4672,
3536,
1923,
534,
3207,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
os.write(pipe[1], patch) | fcntl.fcntl(pipe[1], fcntl.F_SETFD, 1) p2 = subprocess.Popen(patchArgs, stdin=pipe[0], stderr=devnull, shell=False) os.close(pipe[0]) offset=0 while len(patch[offset:]): offset += os.write(pipe[1], patch[offset:]) | def patchme(self, patch, f, destDir, patchlevels): devnull = open('/dev/null', 'w') for patchlevel in patchlevels: patchArgs = [ 'nohup', 'patch', '-d', destDir, '-p%s'%patchlevel, ] if self.backup: patchArgs.extend(['-b', '-z', self.backup]) if self.extraArgs: patchArgs.extend(self.extraArgs) | 702d998ceeaf6aba5c764d1e72e035ea234633b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/702d998ceeaf6aba5c764d1e72e035ea234633b2/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
3501,
12,
2890,
16,
4729,
16,
284,
16,
26231,
16,
4729,
12095,
4672,
4461,
2011,
273,
1696,
2668,
19,
5206,
19,
2011,
2187,
296,
91,
6134,
364,
4729,
2815,
316,
4729,
12095,
30,
4729,
2615,
273,
306,
296,
2135,
76,
416,
2187,
296,
2272,
2187,
2400,
72,
2187,
26231,
16,
2400,
84,
9,
87,
11,
9,
2272,
2815,
16,
308,
309,
365,
18,
9572,
30,
4729,
2615,
18,
14313,
12,
3292,
17,
70,
2187,
2400,
94,
2187,
365,
18,
9572,
5717,
309,
365,
18,
7763,
2615,
30,
4729,
2615,
18,
14313,
12,
2890,
18,
7763,
2615,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4729,
3501,
12,
2890,
16,
4729,
16,
284,
16,
26231,
16,
4729,
12095,
4672,
4461,
2011,
273,
1696,
2668,
19,
5206,
19,
2011,
2187,
296,
91,
6134,
364,
4729,
2815,
316,
4729,
12095,
30,
4729,
2615,
273,
306,
296,
2135,
76,
416,
2187,
296,
2272,
2187,
2400,
72,
2187,
26231,
16,
2400,
84,
9,
87,
11,
9,
2272,
2815,
16,
308,
309,
365,
18,
9572,
30,
4729,
2615,
18,
14313,
12,
3292,
17,
70,
2187,
2400,
94,
2187,
365,
18,
9572,
5717,
309,
365,
18,
7763,
2615,
30,
4729,
2615,
18,
14313,
12,
2890,
18,
7763,
2615,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"keyrelease" | "keydown", "keyup", "text" | def loop(self): try: rawline = raw_input(self.prompt) return rawline except EOFError: return "" | 1ae4eef03cf9254ebd7268f4360910f8c75cd049 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2811/1ae4eef03cf9254ebd7268f4360910f8c75cd049/hatari-console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
12,
2890,
4672,
775,
30,
1831,
1369,
273,
1831,
67,
2630,
12,
2890,
18,
13325,
13,
327,
1831,
1369,
1335,
6431,
668,
30,
327,
1408,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
data = '''\ | data = b'''\ | def test_specified_attributes(self): for x, y in self.set_get_pairs: self.parser.specified_attributes = x self.assertEquals(self.parser.specified_attributes, y) | 4134c8fe1945cab0f4efd2f6077f86364b0e0b0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/4134c8fe1945cab0f4efd2f6077f86364b0e0b0a/test_pyexpat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13827,
67,
4350,
12,
2890,
4672,
364,
619,
16,
677,
316,
365,
18,
542,
67,
588,
67,
11545,
30,
365,
18,
4288,
18,
13827,
67,
4350,
273,
619,
365,
18,
11231,
8867,
12,
2890,
18,
4288,
18,
13827,
67,
4350,
16,
677,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13827,
67,
4350,
12,
2890,
4672,
364,
619,
16,
677,
316,
365,
18,
542,
67,
588,
67,
11545,
30,
365,
18,
4288,
18,
13827,
67,
4350,
273,
619,
365,
18,
11231,
8867,
12,
2890,
18,
4288,
18,
13827,
67,
4350,
16,
677,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.wfile.write('OK convert %s' % path) | except: self.wfile.write('ERR 550 internal pyuno error \n') if ret_val != 0: self.wfile.write('ERR 550 conversion not finished: %s' % ( ret_val,)) else: self.wfile.write('OK 200 %s' % (dest_path,)) | def handle(self): """The protocol: | a4efc31f4118b7019dddfa683d9a0eae052a74ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9162/a4efc31f4118b7019dddfa683d9a0eae052a74ca/pyunoserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
3536,
1986,
1771,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
3536,
1986,
1771,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
if gold_beg == 1: gold_coins = GOLD_COIN elif gold_beg < 6: gold_coins = GOLD_COIN1 else: gold_coins = GOLD_COIN2 | def response( char, args, target ): if not char: return # you can only try to npc if not target.char or not target.char.npc: return npc = target.char # check if this npc is a 'human' ? # You are too far away... if not char.canreach( npc.pos, BEGGING_RANGE ): # male npc if not npc.gender: char.socket.clilocmessage( 500401, "", 0x3b2, 3 ) # female npc else: char.socket.clilocmessage( 500402, "", 0x3b2, 3 ) return # town cryer : I feel sorry for thee... Thou dost not look trustworthy... no gold for thee today! : 500405 + 500406 gold = npc.countresource( GOLD_COIN ) if not gold or gold < 10: # Thou dost not look trustworthy... no gold for thee today! char.socket.clilocmessage( 500406, "", 0x3b2, 3, npc ) return success = char.checkskill( BEGGING, 0, 1200 ) cur_time = servertime() char.socket.settag( 'skill_delay', cur_time + BEGGING_DELAY ) # npc who has more than 100gp will give you 10gp if gold < 100: gold_beg = gold / 10 else: gold_beg = 10 if gold_beg == 1: gold_coins = GOLD_COIN elif gold_beg < 6: gold_coins = GOLD_COIN1 else: gold_coins = GOLD_COIN2 # success msg : I feel sorry for thee... here have a gold coin : 500405 + 1010012 # fail msg : They seem unwilling to give you any money : 500404 if success: char.socket.clilocmessage( 500405, "", 0x3b2, 3, npc ) char.socket.clilocmessage( 1010012, "", 0x3b2, 3, npc ) npc.useresource( gold_beg, 0x0eed ) backpack = char.getbackpack() if not backpack: return coins = wolfpack.additem( gold_coins ) if not coins: return coins.amount = gold_beg backpack.additem( coins ) coins.update() else: char.socket.clilocmessage( 500404, "", 0x3b2, 3, npc ) | ba60fceb6886ed4d1742af0ab67848d17698746d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/ba60fceb6886ed4d1742af0ab67848d17698746d/begging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
309,
486,
1149,
30,
327,
225,
468,
1846,
848,
1338,
775,
358,
1130,
71,
309,
486,
1018,
18,
3001,
578,
486,
1018,
18,
3001,
18,
82,
2436,
30,
327,
225,
1130,
71,
273,
1018,
18,
3001,
468,
866,
309,
333,
1130,
71,
353,
279,
296,
24270,
11,
692,
225,
468,
4554,
854,
4885,
10247,
10804,
2777,
309,
486,
1149,
18,
4169,
12974,
12,
1130,
71,
18,
917,
16,
9722,
43,
19066,
67,
15928,
262,
30,
468,
312,
5349,
1130,
71,
309,
486,
1130,
71,
18,
27638,
30,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
6604,
27002,
16,
23453,
374,
92,
23,
70,
22,
16,
890,
262,
468,
284,
351,
5349,
1130,
71,
469,
30,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
6604,
24,
3103,
16,
23453,
374,
92,
23,
70,
22,
16,
890,
262,
327,
225,
468,
358,
91,
82,
276,
1176,
264,
294,
467,
1656,
292,
272,
21637,
364,
326,
73,
2777,
935,
1395,
302,
669,
486,
2324,
10267,
91,
7825,
93,
2777,
1158,
20465,
364,
326,
73,
10074,
5,
294,
6604,
24,
6260,
397,
6604,
7132,
26,
20465,
273,
1130,
71,
18,
1883,
3146,
12,
611,
11846,
67,
3865,
706,
262,
309,
486,
20465,
578,
20465,
411,
1728,
30,
468,
935,
1395,
302,
669,
486,
2324,
10267,
91,
7825,
93,
2777,
1158,
20465,
364,
326,
73,
10074,
5,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
6604,
7132,
26,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
309,
486,
1149,
30,
327,
225,
468,
1846,
848,
1338,
775,
358,
1130,
71,
309,
486,
1018,
18,
3001,
578,
486,
1018,
18,
3001,
18,
82,
2436,
30,
327,
225,
1130,
71,
273,
1018,
18,
3001,
468,
866,
309,
333,
1130,
71,
353,
279,
296,
24270,
11,
692,
225,
468,
4554,
854,
4885,
10247,
10804,
2777,
309,
486,
1149,
18,
4169,
12974,
12,
1130,
71,
18,
917,
16,
9722,
43,
19066,
67,
15928,
262,
30,
468,
312,
5349,
1130,
71,
309,
486,
1130,
71,
18,
27638,
30,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
6604,
27002,
16,
23453,
374,
92,
23,
70,
22,
16,
890,
262,
468,
2
] |
|
"frameset":"inFrameset" | "frameset":"inFrameset", "html":"beforeHead" | def resetInsertionMode(self): # The name of this method is mostly historical. (It's also used in the # specification.) last = False newModes = { "select":"inSelect", "td":"inCell", "th":"inCell", "tr":"inRow", "tbody":"inTableBody", "thead":"inTableBody", "tfoot":"inTableBody", "caption":"inCaption", "colgroup":"inColumnGroup", "table":"inTable", "head":"inBody", "body":"inBody", "frameset":"inFrameset" } for node in self.tree.openElements[::-1]: nodeName = node.name if node == self.tree.openElements[0]: last = True if nodeName not in ['td', 'th']: # XXX assert self.innerHTML nodeName = self.innerHTML # Check for conditions that should only happen in the innerHTML # case if nodeName in ("select", "colgroup", "head", "frameset"): # XXX assert self.innerHTML if nodeName in newModes: self.phase = self.phases[newModes[nodeName]] break elif node.namespace in (namespaces["mathml"], namespaces["svg"]): self.phase = self.phases["inForeignContent"] self.secondaryPhase = self.phases["inBody"] break elif nodeName == "html": if self.tree.headPointer is None: self.phase = self.phases["beforeHead"] else: self.phase = self.phases["afterHead"] break elif last: self.phase = self.phases["inBody"] break | 77eceaa2cacdd5e675e33c63937306de2cc9b3b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10463/77eceaa2cacdd5e675e33c63937306de2cc9b3b3/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
29739,
2309,
12,
2890,
4672,
468,
1021,
508,
434,
333,
707,
353,
23958,
23922,
18,
261,
7193,
1807,
2546,
1399,
316,
326,
468,
7490,
12998,
1142,
273,
1083,
394,
18868,
273,
288,
315,
4025,
15563,
267,
3391,
3113,
315,
4465,
15563,
267,
4020,
3113,
315,
451,
15563,
267,
4020,
3113,
315,
313,
15563,
267,
1999,
3113,
315,
20779,
15563,
267,
1388,
2250,
3113,
315,
24604,
15563,
267,
1388,
2250,
3113,
315,
88,
10923,
15563,
267,
1388,
2250,
3113,
315,
15386,
15563,
267,
21158,
3113,
315,
1293,
1655,
15563,
267,
1494,
1114,
3113,
315,
2121,
15563,
267,
1388,
3113,
315,
1978,
15563,
267,
2250,
3113,
315,
3432,
15563,
267,
2250,
3113,
315,
10278,
278,
15563,
267,
15162,
278,
3113,
315,
2620,
15563,
5771,
1414,
6,
289,
364,
756,
316,
365,
18,
3413,
18,
3190,
3471,
63,
2866,
17,
21,
14542,
7553,
273,
756,
18,
529,
309,
756,
422,
365,
18,
3413,
18,
3190,
3471,
63,
20,
14542,
1142,
273,
1053,
309,
7553,
486,
316,
10228,
4465,
2187,
296,
451,
3546,
30,
468,
11329,
1815,
365,
18,
7872,
4870,
7553,
273,
365,
18,
7872,
4870,
468,
2073,
364,
4636,
716,
1410,
1338,
5865,
316,
326,
14129,
468,
648,
309,
7553,
316,
7566,
4025,
3113,
315,
1293,
1655,
3113,
315,
1978,
3113,
315,
10278,
278,
6,
4672,
468,
11329,
1815,
365,
18,
7872,
4870,
309,
7553,
316,
394,
18868,
30,
365,
18,
13961,
273,
365,
18,
844,
3304,
63,
2704,
18868,
63,
2159,
461,
13563,
898,
1327,
756,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
29739,
2309,
12,
2890,
4672,
468,
1021,
508,
434,
333,
707,
353,
23958,
23922,
18,
261,
7193,
1807,
2546,
1399,
316,
326,
468,
7490,
12998,
1142,
273,
1083,
394,
18868,
273,
288,
315,
4025,
15563,
267,
3391,
3113,
315,
4465,
15563,
267,
4020,
3113,
315,
451,
15563,
267,
4020,
3113,
315,
313,
15563,
267,
1999,
3113,
315,
20779,
15563,
267,
1388,
2250,
3113,
315,
24604,
15563,
267,
1388,
2250,
3113,
315,
88,
10923,
15563,
267,
1388,
2250,
3113,
315,
15386,
15563,
267,
21158,
3113,
315,
1293,
1655,
15563,
267,
1494,
1114,
3113,
315,
2121,
15563,
267,
1388,
3113,
315,
1978,
15563,
267,
2250,
3113,
315,
3432,
15563,
267,
2250,
3113,
315,
10278,
278,
15563,
267,
15162,
278,
2
] |
return self.user.get_absolute_url() | return "/profile/users/%s/" % self.user | def get_absolute_url(self): return self.user.get_absolute_url() | 7edefec0672c00843557626c7f8e45d854e45cf2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12976/7edefec0672c00843557626c7f8e45d854e45cf2/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12547,
67,
718,
12,
2890,
4672,
327,
365,
18,
1355,
18,
588,
67,
12547,
67,
718,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12547,
67,
718,
12,
2890,
4672,
327,
365,
18,
1355,
18,
588,
67,
12547,
67,
718,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if dist.project_name == 'openmdao.main': version = dist.version | def after_install(options, home_dir): global logger reqs = %(reqs)s cmds = %(cmds)s url = 'http://openmdao.org/dists' found = [c for c in cmds if url in c] if not found: cmds.extend(['-f',url]) etc = join(home_dir, 'etc') ## TODO: this should all come from distutils ## like distutils.sysconfig.get_python_inc() if sys.platform == 'win32': lib_dir = join(home_dir, 'Lib') bin_dir = join(home_dir, 'Scripts') elif is_jython: lib_dir = join(home_dir, 'Lib') bin_dir = join(home_dir, 'bin') else: lib_dir = join(home_dir, 'lib', py_version) bin_dir = join(home_dir, 'bin') if not os.path.exists(etc): os.makedirs(etc) reqnumpy = 'numpy' numpyidx = None for i,req in enumerate(reqs): if req.startswith('numpy') and len(req)>5 and req[5]=='=' or req[5]=='>': reqnumpy = req numpyidx = i break _single_install(cmds, reqnumpy, bin_dir) # force numpy first so we can use f2py later if numpyidx is not None: reqs.remove(reqs[numpyidx]) for req in reqs: _single_install(cmds, req, bin_dir) """ parser = OptionParser() parser.add_option("-d", "--destination", action="store", type="string", dest='dest', help="specify destination directory", default='.') (options, args) = parser.parse_args() openmdao_pkgs = ['openmdao.util', 'openmdao.units', 'openmdao.main', 'openmdao.lib', 'openmdao.test', 'openmdao.examples.simple', 'openmdao.examples.bar3simulation', 'openmdao.examples.enginedesign', ] cmds = [] reqs = [] dists = working_set.resolve([Requirement.parse(r) for r in openmdao_pkgs]) for dist in dists: if dist.project_name == 'openmdao.main': version = dist.version reqs.append('%s' % dist.as_requirement()) reqs = list(set(reqs)) # eliminate duplicates (numpy was in there twice somehow) optdict = { 'reqs': reqs, 'cmds':cmds, 'version': version } dest = os.path.abspath(options.dest) scriptname = os.path.join(dest,'go-openmdao-%s.py' % version) with open(scriptname, 'wb') as f: f.write(virtualenv.create_bootstrap_script(script_str % optdict)) os.chmod(scriptname, 0755) | 77fa5b73347fe1308474a849071f1353a3b6f03d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/77fa5b73347fe1308474a849071f1353a3b6f03d/mkinstaller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
5425,
12,
2116,
16,
6382,
67,
1214,
4672,
2552,
1194,
20927,
273,
8975,
25782,
13,
87,
13446,
273,
8975,
24680,
13,
87,
880,
273,
296,
2505,
2207,
3190,
1264,
6033,
18,
3341,
19,
30467,
11,
1392,
273,
306,
71,
364,
276,
316,
13446,
309,
880,
316,
276,
65,
309,
486,
1392,
30,
13446,
18,
14313,
12,
3292,
17,
74,
2187,
718,
5717,
5527,
273,
1233,
12,
8712,
67,
1214,
16,
296,
14175,
6134,
7541,
2660,
30,
333,
1410,
777,
12404,
628,
2411,
5471,
7541,
3007,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
2561,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
5664,
6134,
4158,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
15041,
6134,
1327,
353,
67,
78,
18490,
30,
2561,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
5664,
6134,
4158,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
4757,
6134,
469,
30,
2561,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
2941,
2187,
2395,
67,
1589,
13,
4158,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
296,
4757,
6134,
225,
309,
486,
1140,
18,
803,
18,
1808,
12,
14175,
4672,
1140,
18,
81,
9477,
10539,
12,
14175,
13,
1111,
15974,
273,
296,
15974,
11,
3972,
3465,
273,
599,
364,
277,
16,
3658,
316,
4241,
12,
25782,
4672,
309,
1111,
18,
17514,
1918,
2668,
15974,
6134,
471,
562,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
5425,
12,
2116,
16,
6382,
67,
1214,
4672,
2552,
1194,
20927,
273,
8975,
25782,
13,
87,
13446,
273,
8975,
24680,
13,
87,
880,
273,
296,
2505,
2207,
3190,
1264,
6033,
18,
3341,
19,
30467,
11,
1392,
273,
306,
71,
364,
276,
316,
13446,
309,
880,
316,
276,
65,
309,
486,
1392,
30,
13446,
18,
14313,
12,
3292,
17,
74,
2187,
718,
5717,
5527,
273,
1233,
12,
8712,
67,
1214,
16,
296,
14175,
6134,
7541,
2660,
30,
333,
1410,
777,
12404,
628,
2411,
5471,
7541,
3007,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
2561,
67,
1214,
273,
1233,
12,
8712,
67,
1214,
16,
2
] |
|
self.root_name, self.files = read_new_catalogue(0x800) | self.root_name, self.files = self.read_new_catalogue(0x800) | def __init__(self, adf): # Check the properties using the length of the file adf.seek(0,2) length = adf.tell() adf.seek(0,0) if length == 163840: self.ntracks = 40 self.nsectors = 16 self.sector_size = 256 interleave = 0 self.disc_type = 'adf' #if string.lower(adf_file[-4:])==(suffix+"adf"): elif length == 327680: self.ntracks = 80 self.nsectors = 16 self.sector_size = 256 interleave = 0 self.disc_type = 'adf' #elif string.lower(adf_file[-4:])==(suffix+"adl"): elif length == 655360: self.ntracks = 160 self.nsectors = 16 # per track self.sector_size = 256 # in bytes interleave = 1 self.disc_type = 'adl' elif length == 819200: if identify_format(adf) == 'D': self.ntracks = 80 self.nsectors = 10 self.sector_size = 1024 interleave = 0 self.disc_type = 'adD' elif identify_format(adf) == 'E': self.ntracks = 80 self.nsectors = 10 self.sector_size = 1024 interleave = 0 self.disc_type = 'adE' else: raise ADFS_exception, \ 'Please supply a .adf, .adl or .adD file.' elif length == 1638400: self.ntracks = 80 self.nsectors = 20 self.sector_size = 1024 interleave = 0 self.disc_type = 'adEbig' else: raise ADFS_exception, 'Please supply a .adf, .adl or .adD file.' # Read tracks self.sectors = self.read_tracks(adf, interleave) # Close the ADF file adf.close() #open('dump', 'wb').write(self.sectors) #sys.exit() self.disc_name = 'Untitled' if self.disc_type == 'adD': # Find the root directory name and all the files and directories # contained within it self.root_name, self.files = read_old_catalogue(0x400) elif self.disc_type == 'adE': # Read the disc name and map self.disc_name, self.disc_map = read_disc_info() # Find the root directory name and all the files and directories # contained within it self.root_name, self.files = read_new_catalogue(0x800) elif self.disc_type == 'adEbig': # Read the disc name and map self.disc_name, self.disc_map = read_disc_info() # Find the root directory name and all the files and directories # contained within it self.root_name, self.files = read_new_catalogue(0xc8800) else: # Find the root directory name and all the files and directories # contained within it self.root_name, self.files = read_old_catalogue(2*self.sector_size) | 25f0ef7dc7411ab5a651cc7127ed79f5bcd54fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3059/25f0ef7dc7411ab5a651cc7127ed79f5bcd54fc3/ADF2INF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1261,
74,
4672,
225,
468,
2073,
326,
1790,
1450,
326,
769,
434,
326,
585,
1261,
74,
18,
16508,
12,
20,
16,
22,
13,
769,
273,
1261,
74,
18,
88,
1165,
1435,
1261,
74,
18,
16508,
12,
20,
16,
20,
13,
225,
309,
769,
422,
2872,
17295,
20,
30,
365,
18,
82,
21499,
273,
8063,
365,
18,
82,
5709,
1383,
273,
2872,
365,
18,
5709,
280,
67,
1467,
273,
8303,
1554,
19574,
273,
374,
365,
18,
2251,
71,
67,
723,
273,
296,
361,
74,
11,
225,
468,
430,
533,
18,
8167,
12,
361,
74,
67,
768,
18919,
24,
30,
5717,
631,
12,
8477,
9078,
361,
74,
6,
4672,
1327,
769,
422,
29317,
3672,
30,
365,
18,
82,
21499,
273,
8958,
365,
18,
82,
5709,
1383,
273,
2872,
365,
18,
5709,
280,
67,
1467,
273,
8303,
1554,
19574,
273,
374,
365,
18,
2251,
71,
67,
723,
273,
296,
361,
74,
11,
225,
468,
292,
430,
533,
18,
8167,
12,
361,
74,
67,
768,
18919,
24,
30,
5717,
631,
12,
8477,
9078,
361,
80,
6,
4672,
1327,
769,
422,
8982,
29751,
30,
365,
18,
82,
21499,
273,
25430,
365,
18,
82,
5709,
1383,
273,
2872,
3639,
468,
1534,
3298,
365,
18,
5709,
280,
67,
1467,
273,
8303,
565,
468,
316,
1731,
1554,
19574,
273,
404,
365,
18,
2251,
71,
67,
723,
273,
296,
361,
80,
11,
225,
1327,
769,
422,
1725,
3657,
6976,
30,
225,
309,
9786,
67,
2139,
12,
361,
74,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1261,
74,
4672,
225,
468,
2073,
326,
1790,
1450,
326,
769,
434,
326,
585,
1261,
74,
18,
16508,
12,
20,
16,
22,
13,
769,
273,
1261,
74,
18,
88,
1165,
1435,
1261,
74,
18,
16508,
12,
20,
16,
20,
13,
225,
309,
769,
422,
2872,
17295,
20,
30,
365,
18,
82,
21499,
273,
8063,
365,
18,
82,
5709,
1383,
273,
2872,
365,
18,
5709,
280,
67,
1467,
273,
8303,
1554,
19574,
273,
374,
365,
18,
2251,
71,
67,
723,
273,
296,
361,
74,
11,
225,
468,
430,
533,
18,
8167,
12,
361,
74,
67,
768,
18919,
24,
30,
5717,
631,
12,
8477,
9078,
361,
74,
6,
4672,
1327,
769,
422,
29317,
3672,
2
] |
frameCustom=Frame(frame,borderwidth=2,relief=GROOVE) frameKeySets=Frame(frame,borderwidth=2,relief=GROOVE) | frameCustom=LabelFrame(frame,borderwidth=2,relief=GROOVE, text=' Custom Key Bindings ') frameKeySets=LabelFrame(frame,borderwidth=2,relief=GROOVE, text=' Key Set ') | def CreatePageKeys(self): #tkVars self.bindingTarget=StringVar(self) self.builtinKeys=StringVar(self) self.customKeys=StringVar(self) self.keysAreBuiltin=BooleanVar(self) self.keyBinding=StringVar(self) ##widget creation #body frame frame=self.tabPages.pages['Keys']['page'] #body section frames frameCustom=Frame(frame,borderwidth=2,relief=GROOVE) frameKeySets=Frame(frame,borderwidth=2,relief=GROOVE) #frameCustom frameTarget=Frame(frameCustom) labelCustomTitle=Label(frameCustom,text='Set Custom Key Bindings') labelTargetTitle=Label(frameTarget,text='Action - Key(s)') scrollTargetY=Scrollbar(frameTarget) scrollTargetX=Scrollbar(frameTarget,orient=HORIZONTAL) self.listBindings=Listbox(frameTarget,takefocus=FALSE, exportselection=FALSE) self.listBindings.bind('<ButtonRelease-1>',self.KeyBindingSelected) scrollTargetY.config(command=self.listBindings.yview) scrollTargetX.config(command=self.listBindings.xview) self.listBindings.config(yscrollcommand=scrollTargetY.set) self.listBindings.config(xscrollcommand=scrollTargetX.set) self.buttonNewKeys=Button(frameCustom,text='Get New Keys for Selection', command=self.GetNewKeys,state=DISABLED) buttonSaveCustomKeys=Button(frameCustom, text='Save as New Custom Key Set',command=self.SaveAsNewKeySet) #frameKeySets labelKeysTitle=Label(frameKeySets,text='Select a Key Set') labelTypeTitle=Label(frameKeySets,text='Select : ') self.radioKeysBuiltin=Radiobutton(frameKeySets,variable=self.keysAreBuiltin, value=1,command=self.SetKeysType,text='a Built-in Key Set') self.radioKeysCustom=Radiobutton(frameKeySets,variable=self.keysAreBuiltin, value=0,command=self.SetKeysType,text='a Custom Key Set') self.optMenuKeysBuiltin=DynOptionMenu(frameKeySets, self.builtinKeys,None,command=None) self.optMenuKeysCustom=DynOptionMenu(frameKeySets, self.customKeys,None,command=None) self.buttonDeleteCustomKeys=Button(frameKeySets,text='Delete Custom Key Set', command=self.DeleteCustomKeys) ##widget packing #body frameCustom.pack(side=LEFT,padx=5,pady=5,expand=TRUE,fill=BOTH) frameKeySets.pack(side=LEFT,padx=5,pady=5,fill=Y) #frameCustom labelCustomTitle.pack(side=TOP,anchor=W,padx=5,pady=5) buttonSaveCustomKeys.pack(side=BOTTOM,fill=X,padx=5,pady=5) self.buttonNewKeys.pack(side=BOTTOM,fill=X,padx=5,pady=5) frameTarget.pack(side=LEFT,padx=5,pady=5,expand=TRUE,fill=BOTH) #frame target frameTarget.columnconfigure(0,weight=1) frameTarget.rowconfigure(1,weight=1) labelTargetTitle.grid(row=0,column=0,columnspan=2,sticky=W) self.listBindings.grid(row=1,column=0,sticky=NSEW) scrollTargetY.grid(row=1,column=1,sticky=NS) scrollTargetX.grid(row=2,column=0,sticky=EW) #frameKeySets labelKeysTitle.pack(side=TOP,anchor=W,padx=5,pady=5) labelTypeTitle.pack(side=TOP,anchor=W,padx=5,pady=5) self.radioKeysBuiltin.pack(side=TOP,anchor=W,padx=5) self.radioKeysCustom.pack(side=TOP,anchor=W,padx=5,pady=2) self.optMenuKeysBuiltin.pack(side=TOP,fill=X,padx=5,pady=5) self.optMenuKeysCustom.pack(side=TOP,fill=X,anchor=W,padx=5,pady=5) self.buttonDeleteCustomKeys.pack(side=TOP,fill=X,padx=5,pady=5) return frame | 55017c8d2483230b370f09b40eaa33e91cc2555a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/55017c8d2483230b370f09b40eaa33e91cc2555a/configDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1964,
2396,
12,
2890,
4672,
468,
16099,
5555,
365,
18,
7374,
2326,
33,
780,
1537,
12,
2890,
13,
365,
18,
24553,
2396,
33,
780,
1537,
12,
2890,
13,
365,
18,
3662,
2396,
33,
780,
1537,
12,
2890,
13,
365,
18,
2452,
4704,
28032,
33,
5507,
1537,
12,
2890,
13,
365,
18,
856,
5250,
33,
780,
1537,
12,
2890,
13,
7541,
6587,
6710,
468,
3432,
2623,
2623,
33,
2890,
18,
7032,
5716,
18,
7267,
3292,
2396,
21712,
2433,
3546,
468,
3432,
2442,
7793,
2623,
3802,
33,
2224,
3219,
12,
3789,
16,
8815,
2819,
33,
22,
16,
266,
549,
10241,
33,
43,
1457,
51,
3412,
16,
977,
2218,
6082,
1929,
6936,
899,
8624,
2623,
653,
2785,
33,
2224,
3219,
12,
3789,
16,
8815,
2819,
33,
22,
16,
266,
549,
10241,
33,
43,
1457,
51,
3412,
16,
977,
2218,
1929,
1000,
8624,
468,
3789,
3802,
2623,
2326,
33,
3219,
12,
3789,
3802,
13,
1433,
3802,
4247,
33,
2224,
12,
3789,
3802,
16,
955,
2218,
694,
6082,
1929,
6936,
899,
6134,
1433,
2326,
4247,
33,
2224,
12,
3789,
2326,
16,
955,
2218,
1803,
300,
1929,
12,
87,
2506,
13,
5532,
2326,
61,
33,
31636,
12,
3789,
2326,
13,
5532,
2326,
60,
33,
31636,
12,
3789,
2326,
16,
14766,
33,
44,
20344,
13,
365,
18,
1098,
10497,
33,
682,
2147,
12,
3789,
2326,
16,
22188,
13923,
33,
21053,
16,
3359,
10705,
33,
21053,
13,
365,
18,
1098,
10497,
18,
4376,
2668,
32,
3616,
7391,
17,
21,
1870,
16,
2890,
18,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1964,
2396,
12,
2890,
4672,
468,
16099,
5555,
365,
18,
7374,
2326,
33,
780,
1537,
12,
2890,
13,
365,
18,
24553,
2396,
33,
780,
1537,
12,
2890,
13,
365,
18,
3662,
2396,
33,
780,
1537,
12,
2890,
13,
365,
18,
2452,
4704,
28032,
33,
5507,
1537,
12,
2890,
13,
365,
18,
856,
5250,
33,
780,
1537,
12,
2890,
13,
7541,
6587,
6710,
468,
3432,
2623,
2623,
33,
2890,
18,
7032,
5716,
18,
7267,
3292,
2396,
21712,
2433,
3546,
468,
3432,
2442,
7793,
2623,
3802,
33,
2224,
3219,
12,
3789,
16,
8815,
2819,
33,
22,
16,
266,
549,
10241,
33,
43,
1457,
51,
3412,
16,
977,
2218,
6082,
1929,
6936,
899,
8624,
2623,
653,
2785,
33,
2224,
3219,
2
] |
def __init__(self, text, fileclass=StringIO.StringIO): | def __init__(self, text, fileclass=io.BytesIO): if isinstance(text, str): text = bytes(text) | def __init__(self, text, fileclass=StringIO.StringIO): self.text = text self.fileclass = fileclass self.data = b'' | 8fff7924a4217dc73de2042168a0eda7243e26d7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/8fff7924a4217dc73de2042168a0eda7243e26d7/test_httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
977,
16,
585,
1106,
33,
1594,
18,
2160,
4294,
4672,
309,
1549,
12,
955,
16,
609,
4672,
977,
273,
1731,
12,
955,
13,
365,
18,
955,
273,
977,
365,
18,
768,
1106,
273,
585,
1106,
365,
18,
892,
273,
324,
6309,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
977,
16,
585,
1106,
33,
1594,
18,
2160,
4294,
4672,
309,
1549,
12,
955,
16,
609,
4672,
977,
273,
1731,
12,
955,
13,
365,
18,
955,
273,
977,
365,
18,
768,
1106,
273,
585,
1106,
365,
18,
892,
273,
324,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._dormant.append(cnx) | if cnx.poolable: self._dormant.append(cnx) else: self._cursize -= 1 | def _return_cnx(self, cnx): self._available.acquire() try: tid = threading._get_ident() if tid in self._active: num, cnx_ = self._active.get(tid) assert cnx is cnx_ if num > 1: self._active[tid][0] = num - 1 else: del self._active[tid] if cnx not in self._dormant: cnx.rollback() self._dormant.append(cnx) self._available.notify() finally: self._available.release() | 1607c27eb386200cbab77ab76d92632834ac41e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/1607c27eb386200cbab77ab76d92632834ac41e9/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2463,
67,
10305,
92,
12,
2890,
16,
29492,
4672,
365,
6315,
5699,
18,
1077,
1039,
1435,
775,
30,
11594,
273,
17254,
6315,
588,
67,
6392,
1435,
309,
11594,
316,
365,
6315,
3535,
30,
818,
16,
29492,
67,
273,
365,
6315,
3535,
18,
588,
12,
18081,
13,
1815,
29492,
353,
29492,
67,
309,
818,
405,
404,
30,
365,
6315,
3535,
63,
18081,
6362,
20,
65,
273,
818,
300,
404,
469,
30,
1464,
365,
6315,
3535,
63,
18081,
65,
309,
29492,
486,
316,
365,
6315,
72,
535,
970,
30,
29492,
18,
20050,
1435,
309,
29492,
18,
6011,
429,
30,
365,
6315,
72,
535,
970,
18,
6923,
12,
10305,
92,
13,
469,
30,
365,
6315,
1397,
1467,
3947,
404,
365,
6315,
5699,
18,
12336,
1435,
3095,
30,
365,
6315,
5699,
18,
9340,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2463,
67,
10305,
92,
12,
2890,
16,
29492,
4672,
365,
6315,
5699,
18,
1077,
1039,
1435,
775,
30,
11594,
273,
17254,
6315,
588,
67,
6392,
1435,
309,
11594,
316,
365,
6315,
3535,
30,
818,
16,
29492,
67,
273,
365,
6315,
3535,
18,
588,
12,
18081,
13,
1815,
29492,
353,
29492,
67,
309,
818,
405,
404,
30,
365,
6315,
3535,
63,
18081,
6362,
20,
65,
273,
818,
300,
404,
469,
30,
1464,
365,
6315,
3535,
63,
18081,
65,
309,
29492,
486,
316,
365,
6315,
72,
535,
970,
30,
29492,
18,
20050,
1435,
309,
29492,
18,
6011,
429,
30,
365,
6315,
72,
535,
970,
18,
6923,
12,
10305,
92,
13,
469,
30,
365,
6315,
1397,
1467,
3947,
404,
365,
2
] |
def _amount_all(self, cr, uid, ids, field_name, arg, context): | def _amount_all(self, cr, uid, ids, field_name, arg, context=None): | def _amount_all(self, cr, uid, ids, field_name, arg, context): res = {} cur_obj=self.pool.get('res.currency') for order in self.browse(cr, uid, ids): res[order.id] = { 'amount_untaxed': 0.0, 'amount_tax': 0.0, 'amount_total': 0.0, } val = val1 = 0.0 cur=order.pricelist_id.currency_id for line in order.order_line: for c in self.pool.get('account.tax').compute_all(cr, uid, line.taxes_id, line.price_unit, line.product_qty, order.partner_address_id.id, line.product_id.id, order.partner_id)['taxes']: val+= c['amount'] val1 += line.price_subtotal res[order.id]['amount_tax']=cur_obj.round(cr, uid, cur, val) res[order.id]['amount_untaxed']=cur_obj.round(cr, uid, cur, val1) res[order.id]['amount_total']=res[order.id]['amount_untaxed'] + res[order.id]['amount_tax'] return res | 18d91e942da0a835a4d6b528115c091175aaaaaa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/18d91e942da0a835a4d6b528115c091175aaaaaa/purchase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8949,
67,
454,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
33,
7036,
4672,
400,
273,
2618,
662,
67,
2603,
33,
2890,
18,
6011,
18,
588,
2668,
455,
18,
7095,
6134,
364,
1353,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
400,
63,
1019,
18,
350,
65,
273,
288,
296,
8949,
67,
318,
8066,
329,
4278,
374,
18,
20,
16,
296,
8949,
67,
8066,
4278,
374,
18,
20,
16,
296,
8949,
67,
4963,
4278,
374,
18,
20,
16,
289,
1244,
273,
1244,
21,
273,
374,
18,
20,
662,
33,
1019,
18,
683,
335,
5449,
67,
350,
18,
7095,
67,
350,
364,
980,
316,
1353,
18,
1019,
67,
1369,
30,
364,
276,
316,
365,
18,
6011,
18,
588,
2668,
4631,
18,
8066,
16063,
9200,
67,
454,
12,
3353,
16,
4555,
16,
980,
18,
8066,
281,
67,
350,
16,
980,
18,
8694,
67,
4873,
16,
980,
18,
5896,
67,
85,
4098,
16,
1353,
18,
31993,
67,
2867,
67,
350,
18,
350,
16,
980,
18,
5896,
67,
350,
18,
350,
16,
1353,
18,
31993,
67,
350,
13,
3292,
8066,
281,
3546,
30,
1244,
15,
33,
276,
3292,
8949,
3546,
1244,
21,
1011,
980,
18,
8694,
67,
1717,
4963,
400,
63,
1019,
18,
350,
23962,
8949,
67,
8066,
3546,
33,
1397,
67,
2603,
18,
2260,
12,
3353,
16,
4555,
16,
662,
16,
1244,
13,
400,
63,
1019,
18,
350,
23962,
8949,
67,
318,
8066,
329,
3546,
33,
1397,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
454,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
33,
7036,
4672,
400,
273,
2618,
662,
67,
2603,
33,
2890,
18,
6011,
18,
588,
2668,
455,
18,
7095,
6134,
364,
1353,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
400,
63,
1019,
18,
350,
65,
273,
288,
296,
8949,
67,
318,
8066,
329,
4278,
374,
18,
20,
16,
296,
8949,
67,
8066,
4278,
374,
18,
20,
16,
296,
8949,
67,
4963,
4278,
374,
18,
20,
16,
289,
1244,
273,
1244,
21,
273,
374,
18,
20,
662,
33,
1019,
18,
683,
335,
5449,
67,
350,
18,
7095,
67,
350,
364,
980,
316,
1353,
18,
1019,
2
] |
isolist=[] | mkisofs = ['/usr/bin/mkisofs'] mkisofs.extend(['-v', '-U', '-J', '-R', '-T']) x86bootargs = ['-b', 'isolinux/isolinux.bin', '-c', 'isolinux/boot.cat', '-no-emul-boot', '-boot-load-size', '4', '-boot-info-table'] ia64bootargs = ['-b', 'images/boot.img', '-no-emul-boot'] ppcbootargs = ['-part', '-hfs', '-r', '-l', '-sysid', 'PPC', '-no-desktop', '-allow-multidot', '-chrp-boot'] ppcbootargs.append('-map') ppcbootargs.append(os.path.join(anaruntime, 'mapping')) ppcbootargs.append('-magic') ppcbootargs.append(os.path.join(anaruntime, 'magic')) ppcbootargs.append('-hfs-bless') | def doCreateIsos(self): """Create isos from the various split directories.""" | 4e8d70bf9fa3bbca0112014aab29f696ee748b84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8489/4e8d70bf9fa3bbca0112014aab29f696ee748b84/pungi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
741,
1684,
2520,
538,
12,
2890,
4672,
3536,
1684,
353,
538,
628,
326,
11191,
1416,
6402,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
idx = self.curCaInfo.get(self.idxAttr, None) if idx: self.caInfo[idx] = self.curCaInfo | if isinstance(self.idxAttr, types.TupleType): full_idx = () for idx in self.idxAttr: idx = self.curCaInfo.get(idx, None) if idx: full_idx += (idx,) if len(full_idx) == len(self.idxAttr): self.caInfo[full_idx] = self.curCaInfo else: idx = self.curCaInfo.get(self.idxAttr, None) if idx: self.caInfo[idx] = self.curCaInfo | def endElement(self, name): """ End of an XML element - save everything we learned """ if name == 'c': idx = self.curCaInfo.get(self.idxAttr, None) if idx: self.caInfo[idx] = self.curCaInfo elif name == 'a': if self.attrName in self.attrlist or len(self.attrlist) == 0: self.curCaInfo[self.attrName] = self.attrInfo else: pass | dfd52eb6398f2fbeec3fffdb87bae6b2823e51e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12088/dfd52eb6398f2fbeec3fffdb87bae6b2823e51e0/condor_common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
3536,
4403,
434,
392,
3167,
930,
300,
1923,
7756,
732,
16094,
329,
3536,
309,
508,
422,
296,
71,
4278,
309,
1549,
12,
2890,
18,
3465,
3843,
16,
1953,
18,
9038,
559,
4672,
1983,
67,
3465,
273,
1832,
364,
2067,
316,
365,
18,
3465,
3843,
30,
2067,
273,
365,
18,
1397,
23508,
966,
18,
588,
12,
3465,
16,
599,
13,
309,
2067,
30,
1983,
67,
3465,
1011,
261,
3465,
16,
13,
309,
562,
12,
2854,
67,
3465,
13,
422,
562,
12,
2890,
18,
3465,
3843,
4672,
365,
18,
5353,
966,
63,
2854,
67,
3465,
65,
273,
365,
18,
1397,
23508,
966,
469,
30,
2067,
273,
365,
18,
1397,
23508,
966,
18,
588,
12,
2890,
18,
3465,
3843,
16,
599,
13,
309,
2067,
30,
365,
18,
5353,
966,
63,
3465,
65,
273,
365,
18,
1397,
23508,
966,
1327,
508,
422,
296,
69,
4278,
309,
365,
18,
1747,
461,
316,
365,
18,
1747,
1098,
578,
562,
12,
2890,
18,
1747,
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0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
3536,
4403,
434,
392,
3167,
930,
300,
1923,
7756,
732,
16094,
329,
3536,
309,
508,
422,
296,
71,
4278,
309,
1549,
12,
2890,
18,
3465,
3843,
16,
1953,
18,
9038,
559,
4672,
1983,
67,
3465,
273,
1832,
364,
2067,
316,
365,
18,
3465,
3843,
30,
2067,
273,
365,
18,
1397,
23508,
966,
18,
588,
12,
3465,
16,
599,
13,
309,
2067,
30,
1983,
67,
3465,
1011,
261,
3465,
16,
13,
309,
562,
12,
2854,
67,
3465,
13,
422,
562,
12,
2890,
18,
3465,
3843,
4672,
365,
18,
5353,
966,
63,
2854,
67,
3465,
65,
273,
365,
18,
1397,
23508,
966,
469,
30,
2067,
273,
365,
18,
1397,
23508,
966,
18,
588,
12,
2
] |
box = OWGUI.indentedBox(box) | box = OWGUI.indentedBox(box, sep=OWGUI.checkButtonOffsetHint(cb)) | def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, 'k-Means Clustering') | 5921e86a0f8db837ec398576f4d3480209314d2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/5921e86a0f8db837ec398576f4d3480209314d2a/OWKMeans.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
79,
17,
4667,
634,
29103,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
79,
17,
4667,
634,
29103,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.escChar: ret = re.sub(self.escCharReplacePattern,"\g<1>",ret) if self.escQuote: ret.replace(self.escQuote, self.quoteChar) return loc,ret | if isinstance(ret,basestring): if self.escChar: ret = re.sub(self.escCharReplacePattern,"\g<1>",ret) if self.escQuote: ret = ret.replace(self.escQuote, self.quoteChar) return loc, ret | def parseImpl( self, instring, loc, doActions=True ): result = instring[loc] == self.firstQuoteChar and self.re.match(instring,loc) or None if not result: exc = self.myException exc.loc = loc exc.pstr = instring raise exc loc = result.end() ret = ParseResults(result.group()) if self.unquoteResults: # strip off quotes quoteLen = len(self.quoteChar) ret = ret[quoteLen:-quoteLen] # replace escaped characters if self.escChar: ret = re.sub(self.escCharReplacePattern,"\g<1>",ret) | 9a33bb57ceb368ac97295f985a97dd23a908c708 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/9a33bb57ceb368ac97295f985a97dd23a908c708/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
563,
273,
316,
1080,
63,
1829,
65,
422,
365,
18,
3645,
10257,
2156,
471,
365,
18,
266,
18,
1916,
12,
267,
1080,
16,
1829,
13,
578,
599,
309,
486,
563,
30,
3533,
273,
365,
18,
4811,
503,
3533,
18,
1829,
273,
1515,
3533,
18,
84,
701,
273,
316,
1080,
1002,
3533,
225,
1515,
273,
563,
18,
409,
1435,
325,
273,
2884,
3447,
12,
2088,
18,
1655,
10756,
225,
309,
365,
18,
318,
6889,
3447,
30,
225,
468,
2569,
3397,
10681,
3862,
2891,
273,
562,
12,
2890,
18,
6889,
2156,
13,
325,
273,
325,
63,
6889,
2891,
30,
17,
6889,
2891,
65,
225,
468,
1453,
8345,
3949,
309,
365,
18,
742,
2156,
30,
325,
273,
283,
18,
1717,
12,
2890,
18,
742,
2156,
5729,
3234,
10837,
64,
75,
32,
21,
2984,
16,
1349,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
563,
273,
316,
1080,
63,
1829,
65,
422,
365,
18,
3645,
10257,
2156,
471,
365,
18,
266,
18,
1916,
12,
267,
1080,
16,
1829,
13,
578,
599,
309,
486,
563,
30,
3533,
273,
365,
18,
4811,
503,
3533,
18,
1829,
273,
1515,
3533,
18,
84,
701,
273,
316,
1080,
1002,
3533,
225,
1515,
273,
563,
18,
409,
1435,
325,
273,
2884,
3447,
12,
2088,
18,
1655,
10756,
225,
309,
365,
18,
318,
6889,
3447,
30,
225,
468,
2569,
3397,
10681,
3862,
2891,
273,
562,
12,
2890,
18,
6889,
2156,
13,
325,
273,
325,
63,
6889,
2891,
30,
17,
6889,
2891,
65,
225,
2
] |
self.theQtyValue = string.atof( aText ) self.theValueChangedByTextField = TRUE self.setValue( self.theQtyFPN, self.theQtyValue ) | self.theValue = string.atof( aText ) self.theStub.setProperty( 'Value', self.theValue ) | def changeValue( self, obj ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
620,
12,
365,
16,
1081,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2549,
620,
12,
365,
16,
1081,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
field.SetSelection(-1, -1) | field.SelectAll() | def SelectFirstField(self): for entry in self.fieldList: key, field, type = entry if type != 'boolean': field.SetFocus() field.SetSelection(-1, -1) return | 694dfd6c1e5d63980ca8ca9631a004b962a68731 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/694dfd6c1e5d63980ca8ca9631a004b962a68731/PreferencesDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6766,
3759,
974,
12,
2890,
4672,
364,
1241,
316,
365,
18,
1518,
682,
30,
498,
16,
652,
16,
618,
273,
1241,
309,
618,
480,
296,
6494,
4278,
652,
18,
694,
9233,
1435,
652,
18,
3391,
1595,
1435,
327,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6766,
3759,
974,
12,
2890,
4672,
364,
1241,
316,
365,
18,
1518,
682,
30,
498,
16,
652,
16,
618,
273,
1241,
309,
618,
480,
296,
6494,
4278,
652,
18,
694,
9233,
1435,
652,
18,
3391,
1595,
1435,
327,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
destrev = sr.parents(qbase)[0] | heads = dict.fromkeys(sr.heads()) for h in sr.heads(qbase): del heads[h] destrev = heads.keys() destrev.append(sr.changelog.parents(qbase)[0]) | def clone(ui, source, dest=None, **opts): '''clone main and patch repository at same time If source is local, destination will have no patches applied. If source is remote, this command can not check if patches are applied in source, so cannot guarantee that patches are not applied in destination. If you clone remote repository, be sure before that it has no patches applied. Source patch repository is looked for in <src>/.hg/patches by default. Use -p <url> to change. ''' commands.setremoteconfig(ui, opts) if dest is None: dest = hg.defaultdest(source) sr = hg.repository(ui, ui.expandpath(source)) qbase, destrev = None, None if sr.local(): if sr.mq.applied: qbase = revlog.bin(sr.mq.applied[0].rev) if not hg.islocal(dest): destrev = sr.parents(qbase)[0] ui.note(_('cloning main repo\n')) sr, dr = hg.clone(ui, sr, dest, pull=opts['pull'], rev=destrev, update=False, stream=opts['uncompressed']) ui.note(_('cloning patch repo\n')) spr, dpr = hg.clone(ui, opts['patches'] or (sr.url() + '/.hg/patches'), dr.url() + '/.hg/patches', pull=opts['pull'], update=not opts['noupdate'], stream=opts['uncompressed']) if dr.local(): if qbase: ui.note(_('stripping applied patches from destination repo\n')) dr.mq.strip(dr, qbase, update=False, backup=None) if not opts['noupdate']: ui.note(_('updating destination repo\n')) hg.update(dr, dr.changelog.tip()) | 04ea4542d67a393f91e2a6a3367b5221a1a31e40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/04ea4542d67a393f91e2a6a3367b5221a1a31e40/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3236,
12,
4881,
16,
1084,
16,
1570,
33,
7036,
16,
2826,
4952,
4672,
9163,
14056,
2774,
471,
4729,
3352,
622,
1967,
813,
225,
971,
1084,
353,
1191,
16,
2929,
903,
1240,
1158,
16482,
6754,
18,
225,
971,
1084,
353,
2632,
16,
333,
1296,
848,
486,
866,
309,
16482,
854,
6754,
316,
1084,
16,
1427,
2780,
18779,
716,
16482,
854,
486,
6754,
316,
2929,
18,
225,
971,
1846,
3236,
2632,
3352,
16,
506,
3071,
1865,
716,
518,
711,
1158,
16482,
6754,
18,
225,
4998,
4729,
3352,
353,
27321,
364,
316,
411,
4816,
34,
15865,
26981,
19,
30278,
635,
805,
18,
225,
2672,
300,
84,
411,
718,
34,
358,
2549,
18,
9163,
4364,
18,
542,
2764,
352,
22703,
12,
4881,
16,
1500,
13,
309,
1570,
353,
599,
30,
1570,
273,
22576,
18,
1886,
10488,
12,
3168,
13,
9133,
273,
22576,
18,
9071,
12,
4881,
16,
5915,
18,
12320,
803,
12,
3168,
3719,
1043,
1969,
16,
1570,
9083,
273,
599,
16,
599,
309,
9133,
18,
3729,
13332,
309,
9133,
18,
11636,
18,
438,
3110,
30,
1043,
1969,
273,
5588,
1330,
18,
4757,
12,
11254,
18,
11636,
18,
438,
3110,
63,
20,
8009,
9083,
13,
309,
486,
22576,
18,
291,
3729,
12,
10488,
4672,
22742,
273,
2065,
18,
2080,
2452,
12,
11254,
18,
20263,
10756,
364,
366,
316,
9133,
18,
20263,
12,
85,
1969,
4672,
1464,
22742,
63,
76,
65,
1570,
9083,
273,
22742,
18,
2452,
1435,
1570,
9083,
18,
6923,
12,
11254,
18,
24083,
12970,
18,
12606,
12,
85,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3236,
12,
4881,
16,
1084,
16,
1570,
33,
7036,
16,
2826,
4952,
4672,
9163,
14056,
2774,
471,
4729,
3352,
622,
1967,
813,
225,
971,
1084,
353,
1191,
16,
2929,
903,
1240,
1158,
16482,
6754,
18,
225,
971,
1084,
353,
2632,
16,
333,
1296,
848,
486,
866,
309,
16482,
854,
6754,
316,
1084,
16,
1427,
2780,
18779,
716,
16482,
854,
486,
6754,
316,
2929,
18,
225,
971,
1846,
3236,
2632,
3352,
16,
506,
3071,
1865,
716,
518,
711,
1158,
16482,
6754,
18,
225,
4998,
4729,
3352,
353,
27321,
364,
316,
411,
4816,
34,
15865,
26981,
19,
30278,
635,
805,
18,
225,
2672,
300,
84,
411,
718,
34,
358,
2549,
18,
9163,
4364,
18,
542,
2764,
352,
22703,
12,
4881,
2
] |
if not wsc.check_user(uid): | if not wsc.check_user(uid, 'cfgwebsearch'): | def showportalboxes(req, colID, ln=cdslang, callback='yes', confirm=0): navtrail_previous_links = wsc.getnavtrail() + """> <a class=navtrail href="%s/admin/websearch/websearchadmin.py/">Edit Collection Tree</a> """ % (weburl) try: uid = getUid(req) except MySQLdb.Error, e: return error_page(req) if not wsc.check_user(uid): return page(title="Edit Collection", body=wsc.perform_showportalboxes(colID=colID, ln=ln, callback=callback, confirm=confirm), uid=uid, language=ln, urlargs=req.args, navtrail = navtrail_previous_links, lastupdated=__lastupdated__) else: return auth_failed(uid, navtrail_previous_links) | 64768d1c90331fa30ff327f07b134d7b2140dd2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/64768d1c90331fa30ff327f07b134d7b2140dd2a/websearchadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
24386,
15918,
12,
3658,
16,
645,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
6932,
33,
20,
4672,
8775,
15565,
67,
11515,
67,
7135,
273,
341,
1017,
18,
588,
11589,
15565,
1435,
397,
3536,
10,
4521,
31,
411,
69,
667,
33,
11589,
15565,
3897,
11613,
87,
19,
3666,
19,
4875,
3072,
19,
4875,
3072,
3666,
18,
2074,
4898,
34,
4666,
2200,
4902,
1757,
69,
34,
3536,
738,
261,
4875,
718,
13,
282,
775,
30,
4555,
273,
31652,
12,
3658,
13,
1335,
13485,
1966,
18,
668,
16,
425,
30,
327,
555,
67,
2433,
12,
3658,
13,
282,
309,
486,
341,
1017,
18,
1893,
67,
1355,
12,
1911,
16,
296,
7066,
4875,
3072,
11,
4672,
327,
1363,
12,
2649,
1546,
4666,
2200,
3113,
1417,
33,
91,
1017,
18,
16092,
67,
4500,
24386,
15918,
12,
1293,
734,
33,
1293,
734,
16,
7211,
33,
2370,
16,
1348,
33,
3394,
16,
6932,
33,
10927,
3631,
4555,
33,
1911,
16,
2653,
33,
2370,
16,
880,
1968,
33,
3658,
18,
1968,
16,
8775,
15565,
273,
8775,
15565,
67,
11515,
67,
7135,
16,
1142,
7007,
33,
972,
2722,
7007,
972,
13,
469,
30,
327,
1357,
67,
7307,
12,
1911,
16,
8775,
15565,
67,
11515,
67,
7135,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
24386,
15918,
12,
3658,
16,
645,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
6932,
33,
20,
4672,
8775,
15565,
67,
11515,
67,
7135,
273,
341,
1017,
18,
588,
11589,
15565,
1435,
397,
3536,
10,
4521,
31,
411,
69,
667,
33,
11589,
15565,
3897,
11613,
87,
19,
3666,
19,
4875,
3072,
19,
4875,
3072,
3666,
18,
2074,
4898,
34,
4666,
2200,
4902,
1757,
69,
34,
3536,
738,
261,
4875,
718,
13,
282,
775,
30,
4555,
273,
31652,
12,
3658,
13,
1335,
13485,
1966,
18,
668,
16,
425,
30,
327,
555,
67,
2433,
12,
3658,
13,
282,
309,
486,
341,
1017,
18,
1893,
67,
1355,
12,
1911,
16,
296,
7066,
4875,
3072,
11,
4672,
2
] |
self.pattern += (r'|(%s)' % _escapeRegexChars(escQuote)) | self.pattern += (r'|(%s)' % re.escape(escQuote)) | def __init__( self, quoteChar, escChar=None, escQuote=None, multiline=False, unquoteResults=True): """ Defined with the following parameters: - quoteCharacter - string of one or more characters defining the quote delimiting string - escapeCharacter - character to escape quotes, typically backslash (default=None) - escapedQuote - special quote sequence to escape an embedded quote string (such as SQL's "" to escape and embedded ") (default=None) - multiline - boolean indicating whether quotes can span multiple lines (default=False) - unquoteResults - boolean indicating whether the matched text should be unquoted (default=True) """ super(QuotedString,self).__init__() # remove white space from quote char - wont work anyway quoteChar = quoteChar.strip() if len(quoteChar) == 0: warnings.warn("quoteChar cannot be the empty string",SyntaxWarning,stacklevel=2) raise SyntaxError() self.quoteChar = quoteChar self.firstQuoteChar = quoteChar[0] self.escChar = escChar self.escQuote = escQuote self.unquoteResults = unquoteResults if multiline: self.flags = re.MULTILINE | re.DOTALL self.pattern = r'%s([^%s%s]' % \ ( _escapeRegexChars(self.quoteChar), _escapeRegexRangeChars(self.quoteChar[0]), (escChar is not None and _escapeRegexRangeChars(escChar) or '') ) else: self.flags = 0 self.pattern = r'%s([^%s\n\r%s]' % \ ( _escapeRegexChars(self.quoteChar), _escapeRegexRangeChars(self.quoteChar[0]), (escChar is not None and _escapeRegexRangeChars(escChar) or '') ) if len(self.quoteChar) > 1: self.pattern += ( '|(' + ')|('.join("%s[^%s]" % (_escapeRegexChars(self.quoteChar[:i]), _escapeRegexRangeChars(self.quoteChar[i])) for i in range(len(self.quoteChar)-1,0,-1)) + ')' ) if escQuote: self.pattern += (r'|(%s)' % _escapeRegexChars(escQuote)) if escChar: self.pattern += (r'|(%s.)' % _escapeRegexChars(escChar)) self.escCharReplacePattern = self.escChar+"(.)" self.pattern += (r')*%s' % _escapeRegexChars(self.quoteChar)) try: self.re = re.compile(self.pattern, self.flags) self.reString = self.pattern except Exception,e: warnings.warn("invalid pattern (%s) passed to Regex" % self.pattern, SyntaxWarning, stacklevel=2) raise | 9a33bb57ceb368ac97295f985a97dd23a908c708 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/9a33bb57ceb368ac97295f985a97dd23a908c708/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
3862,
2156,
16,
2904,
2156,
33,
7036,
16,
2904,
10257,
33,
7036,
16,
19431,
33,
8381,
16,
25611,
3447,
33,
5510,
4672,
3536,
18003,
329,
598,
326,
3751,
1472,
30,
300,
3862,
7069,
300,
533,
434,
1245,
578,
1898,
3949,
9364,
326,
3862,
11564,
310,
533,
300,
4114,
7069,
300,
3351,
358,
4114,
10681,
16,
14755,
23253,
261,
1886,
33,
7036,
13,
300,
8345,
10257,
300,
4582,
3862,
3102,
358,
4114,
392,
7488,
3862,
533,
261,
87,
2648,
487,
3063,
1807,
1408,
358,
4114,
471,
7488,
9369,
261,
1886,
33,
7036,
13,
300,
19431,
300,
1250,
11193,
2856,
10681,
848,
4548,
3229,
2362,
261,
1886,
33,
8381,
13,
300,
25611,
3447,
300,
1250,
11193,
2856,
326,
4847,
977,
1410,
506,
640,
15179,
261,
1886,
33,
5510,
13,
3536,
2240,
12,
15919,
780,
16,
2890,
2934,
972,
2738,
972,
1435,
225,
468,
1206,
9578,
3476,
628,
3862,
1149,
300,
341,
1580,
1440,
13466,
3862,
2156,
273,
3862,
2156,
18,
6406,
1435,
309,
562,
12,
6889,
2156,
13,
422,
374,
30,
5599,
18,
8935,
2932,
6889,
2156,
2780,
506,
326,
1008,
533,
3113,
8070,
6210,
16,
3772,
2815,
33,
22,
13,
1002,
18453,
1435,
225,
365,
18,
6889,
2156,
273,
3862,
2156,
365,
18,
3645,
10257,
2156,
273,
3862,
2156,
63,
20,
65,
365,
18,
742,
2156,
273,
2904,
2156,
365,
18,
742,
10257,
273,
2904,
10257,
365,
18,
318,
6889,
3447,
273,
25611,
3447,
225,
309,
19431,
30,
365,
18,
7133,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
365,
16,
3862,
2156,
16,
2904,
2156,
33,
7036,
16,
2904,
10257,
33,
7036,
16,
19431,
33,
8381,
16,
25611,
3447,
33,
5510,
4672,
3536,
18003,
329,
598,
326,
3751,
1472,
30,
300,
3862,
7069,
300,
533,
434,
1245,
578,
1898,
3949,
9364,
326,
3862,
11564,
310,
533,
300,
4114,
7069,
300,
3351,
358,
4114,
10681,
16,
14755,
23253,
261,
1886,
33,
7036,
13,
300,
8345,
10257,
300,
4582,
3862,
3102,
358,
4114,
392,
7488,
3862,
533,
261,
87,
2648,
487,
3063,
1807,
1408,
358,
4114,
471,
7488,
9369,
261,
1886,
33,
7036,
13,
300,
19431,
300,
1250,
11193,
2856,
10681,
848,
4548,
3229,
2362,
261,
1886,
33,
8381,
13,
300,
25611,
3447,
300,
2
] |
out += """ (<a href="./lost">%(lost_pass)s</a>)""" % { | out += """ (<a href="./lost?ln=%(ln)s">%(lost_pass)s</a>)""" % { 'ln' : ln, | def tmpl_login_form(self, ln, referer, internal, register_available, methods, selected_method, supportemail): """ Displays a login form | 3a0a1175062a33241e371559b1e5cbfaec2cd7e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/3a0a1175062a33241e371559b1e5cbfaec2cd7e9/websession_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
5819,
67,
687,
12,
2890,
16,
7211,
16,
18068,
16,
2713,
16,
1744,
67,
5699,
16,
2590,
16,
3170,
67,
2039,
16,
2865,
3652,
4672,
3536,
9311,
87,
279,
3925,
646,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10720,
67,
5819,
67,
687,
12,
2890,
16,
7211,
16,
18068,
16,
2713,
16,
1744,
67,
5699,
16,
2590,
16,
3170,
67,
2039,
16,
2865,
3652,
4672,
3536,
9311,
87,
279,
3925,
646,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.tk.call(self._w, 'info', 'hidden', entry) | return self.tk.call(self._w, 'info', 'hidden', entry) | def info_hidden(self, entry): | b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
67,
6345,
12,
2890,
16,
1241,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
id(obj), name, | def debugStateCall(self, obj=None, fsmMemberName='fsm', secondaryFsm='secondaryFSM'): """ If this notify is in debug mode, print the time of the call followed by the [fsm state] notifier category and the function call (with parameters). """ if (self.__debug): state = '' doId = '' if obj is not None: fsm=obj.__dict__.get(fsmMemberName) if fsm is not None: stateObj = fsm.getCurrentState() if stateObj is not None: #state = "%s=%s"%(fsmMemberName, stateObj.getName()) state = stateObj.getName() fsm=obj.__dict__.get(secondaryFsm) if fsm is not None: stateObj = fsm.getCurrentState() if stateObj is not None: #state = "%s=%s"%(fsmMemberName, stateObj.getName()) state = "%s, %s"%(state, stateObj.getName()) | f1139fb38d574fc954aecc3072ded9079f363058 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/f1139fb38d574fc954aecc3072ded9079f363058/Notifier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
1119,
1477,
12,
2890,
16,
1081,
33,
7036,
16,
26957,
4419,
461,
2218,
2556,
81,
2187,
9946,
42,
4808,
2218,
19674,
4931,
49,
11,
4672,
3536,
971,
333,
5066,
353,
316,
1198,
1965,
16,
1172,
326,
813,
434,
326,
745,
10860,
635,
326,
306,
2556,
81,
919,
65,
19057,
3150,
471,
326,
445,
745,
261,
1918,
1472,
2934,
3536,
309,
261,
2890,
16186,
4148,
4672,
919,
273,
875,
741,
548,
273,
875,
309,
1081,
353,
486,
599,
30,
225,
26957,
33,
2603,
16186,
1576,
25648,
588,
12,
2556,
81,
4419,
461,
13,
309,
26957,
353,
486,
599,
30,
919,
2675,
273,
26957,
18,
588,
3935,
1119,
1435,
309,
919,
2675,
353,
486,
599,
30,
468,
2019,
273,
2213,
87,
5095,
87,
6,
17105,
2556,
81,
4419,
461,
16,
919,
2675,
18,
17994,
10756,
919,
273,
919,
2675,
18,
17994,
1435,
225,
26957,
33,
2603,
16186,
1576,
25648,
588,
12,
19674,
42,
4808,
13,
309,
26957,
353,
486,
599,
30,
919,
2675,
273,
26957,
18,
588,
3935,
1119,
1435,
309,
919,
2675,
353,
486,
599,
30,
468,
2019,
273,
2213,
87,
5095,
87,
6,
17105,
2556,
81,
4419,
461,
16,
919,
2675,
18,
17994,
10756,
919,
273,
2213,
87,
16,
738,
87,
6,
17105,
2019,
16,
919,
2675,
18,
17994,
10756,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1198,
1119,
1477,
12,
2890,
16,
1081,
33,
7036,
16,
26957,
4419,
461,
2218,
2556,
81,
2187,
9946,
42,
4808,
2218,
19674,
4931,
49,
11,
4672,
3536,
971,
333,
5066,
353,
316,
1198,
1965,
16,
1172,
326,
813,
434,
326,
745,
10860,
635,
326,
306,
2556,
81,
919,
65,
19057,
3150,
471,
326,
445,
745,
261,
1918,
1472,
2934,
3536,
309,
261,
2890,
16186,
4148,
4672,
919,
273,
875,
741,
548,
273,
875,
309,
1081,
353,
486,
599,
30,
225,
26957,
33,
2603,
16186,
1576,
25648,
588,
12,
2556,
81,
4419,
461,
13,
309,
26957,
353,
486,
599,
30,
919,
2675,
273,
26957,
18,
588,
3935,
1119,
1435,
309,
919,
2675,
353,
486,
599,
30,
468,
2019,
273,
2
] |
Subsets and Splits