rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
for id in glyph.id_name: self._symbol_table.add(id[1]) | for idx in glyph.id_name: self._symbol_table.add(idx[1]) | def __init__(self, classifier, symbol_table=[], parent = None, id = -1, title = "Classifier", owner=None): if not isinstance(classifier, InteractiveClassifier): raise ValueError( "classifier must be instance of type InteractiveClassifier.") self._classifier = classifier | 47aa83a86ec74c03eab7082905f9b517bd5bb03b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/47aa83a86ec74c03eab7082905f9b517bd5bb03b/classifier_display.py |
env = Environment() | inheritenv = (ARGUMENTS.get('inheritenv', 'n') in 'yY1') if inheritenv: env = Environment(ENV=os.environ) else: env = Environment() | def generate_dependencies(self): env = Environment() self.gen_mod_config(env) cc = env['CC'] cxx = env.subst(env['CXX']) common_flags = ARGUMENTS.get('cflags', '').split(' ') cxxflags = ARGUMENTS.get('cxxflags', '').split(' ') ldflags = ARGUMENTS.get('ldflags', '').split(' ') if cc == 'cl' and cxx == 'cl': env = Enviro... | 4942081a678039cb93eea3198c9720130ecc4c78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11087/4942081a678039cb93eea3198c9720130ecc4c78/build.py |
create_dir_command = "rm -rf " + lcov_report_dir + " && mkdir " + lcov_report_dir + ";" | create_dir_command = "rm -rf " + lcov_report_dir create_dir_command += " && mkdir " + lcov_report_dir + ";" | def generate_dependencies (self): env = Environment() self.gen_mod_config (env) cc = env['CC'] cxx = env.subst (env['CXX']) common_flags = ARGUMENTS.get('cflags', '').split (' ') cxxflags = ARGUMENTS.get('cxxflags', '').split (' ') ldflags = ARGUMENTS.get('ldflags', '').split (' ') if cc == 'cl' and cxx == 'cl': env = ... | 65b62108099d81522603b9e45d6beed0151463e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11087/65b62108099d81522603b9e45d6beed0151463e1/build.py |
lcov_command = "utils/lcov/lcov -c -d . -o " info_file | lcov_command = "utils/lcov/lcov -c -d . -o " + info_file lcov_command += " --source-dirs=" + os.getcwd () lcov_command += ":" + os.path.join (os.getcwd (), variant.build_root, 'include') | def generate_dependencies (self): env = Environment() self.gen_mod_config (env) cc = env['CC'] cxx = env.subst (env['CXX']) common_flags = ARGUMENTS.get('cflags', '').split (' ') cxxflags = ARGUMENTS.get('cxxflags', '').split (' ') ldflags = ARGUMENTS.get('ldflags', '').split (' ') if cc == 'cl' and cxx == 'cl': env = ... | 65b62108099d81522603b9e45d6beed0151463e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11087/65b62108099d81522603b9e45d6beed0151463e1/build.py |
genhtml_command = "utils/lcov/genhtml -o " + lcov_report_data + " " + info_file | genhtml_command = "utils/lcov/genhtml -o " + lcov_report_dir genhtml_command += " " + info_file | def generate_dependencies (self): env = Environment() self.gen_mod_config (env) cc = env['CC'] cxx = env.subst (env['CXX']) common_flags = ARGUMENTS.get('cflags', '').split (' ') cxxflags = ARGUMENTS.get('cxxflags', '').split (' ') ldflags = ARGUMENTS.get('ldflags', '').split (' ') if cc == 'cl' and cxx == 'cl': env = ... | 65b62108099d81522603b9e45d6beed0151463e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11087/65b62108099d81522603b9e45d6beed0151463e1/build.py |
if env['PLATFORM'] == 'posix': module_builder = env.Program(target=filename, source=objects, LIBPATH=lib_path, LIBS=libs, RPATH=lib_path) else: module_builder = env.Program(target=filename, source=objects, LIBPATH=lib_path, LIBS=libs) | module_builder = env.Program(target=filename, source=objects, LIBPATH=lib_path, LIBS=libs) | def gen_mod_dep(self, variant): build_root = variant.build_root cpp_path = os.path.join(variant.build_root, 'include') env = variant.env env.Append(CPPPATH = [cpp_path]) header_dir = os.path.join(build_root, 'include', 'ns3') lib_path = os.path.join(build_root, 'lib') module_builders = [] for module in self.__modules: ... | 44cd846cb040c89da3a33639b5c4e93c6d27def4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11087/44cd846cb040c89da3a33639b5c4e93c6d27def4/build.py |
>>> namespaceLookup('fiz', 'bar', C()) | >>> namespaceLookup('fiz', 'bar', C()) | ... def traverse(self, name, remaining): | 5439095d8bf6e7ecbce09e7932b2b262ea372312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9824/5439095d8bf6e7ecbce09e7932b2b262ea372312/namespace.py |
TraversalError: '++fiz++bar' | TraversalError: (<zope.traversing.namespace.C object at 0x...>, '++fiz++bar') | ... def traverse(self, name, remaining): | 5439095d8bf6e7ecbce09e7932b2b262ea372312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9824/5439095d8bf6e7ecbce09e7932b2b262ea372312/namespace.py |
>>> namespaceLookup('foo', 'bar', C(), request) | >>> namespaceLookup('foo', 'bar', C(), request) | ... def traverse(self, name, remaining): | 5439095d8bf6e7ecbce09e7932b2b262ea372312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9824/5439095d8bf6e7ecbce09e7932b2b262ea372312/namespace.py |
TraversalError: '++foo++bar' | TraversalError: (<zope.traversing.namespace.C object at 0x...>, '++foo++bar') | ... def traverse(self, name, remaining): | 5439095d8bf6e7ecbce09e7932b2b262ea372312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9824/5439095d8bf6e7ecbce09e7932b2b262ea372312/namespace.py |
raise TraversalError("++%s++%s" % (ns, name)) | raise TraversalError(object, "++%s++%s" % (ns, name)) | ... def traverse(self, name, remaining): | 5439095d8bf6e7ecbce09e7932b2b262ea372312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9824/5439095d8bf6e7ecbce09e7932b2b262ea372312/namespace.py |
... raise TraversalError(name) | ... raise TraversalError(self, name) | ... def traverse(self, name, remaining): | 5439095d8bf6e7ecbce09e7932b2b262ea372312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9824/5439095d8bf6e7ecbce09e7932b2b262ea372312/namespace.py |
return new_getquicklinks(session) | return new_getquicklinks(self.session) | def getquicklinks(self): return new_getquicklinks(session) | 7d1384c8638addf8f0262bf508fa21017a68fc59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11388/7d1384c8638addf8f0262bf508fa21017a68fc59/indexpage.py |
self.uploadfile(session, dirname, pofilename), outputfile.getvalue()) | self.uploadfile(session, dirname, pofilename, outputfile.getvalue()) | def converttemplates(self, session): """creates PO files from the templates""" projectdir = os.path.join(self.potree.podirectory, self.projectcode) if not os.path.exists(projectdir): os.mkdir(projectdir) templatesdir = os.path.join(projectdir, "templates") if not os.path.exists(templatesdir): templatesdir = os.path.joi... | 2dcc6050d3815030373bbe4563064322a7416850 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11388/2dcc6050d3815030373bbe4563064322a7416850/projects.py |
self.uploadfile(session, dirname, pofilename, outputfile.getvalue()) | self.uploadfile(session, dirname, os.path.basename(pofilename), outputfile.getvalue()) | def converttemplates(self, session): """creates PO files from the templates""" projectdir = os.path.join(self.potree.podirectory, self.projectcode) if not os.path.exists(projectdir): os.mkdir(projectdir) templatesdir = os.path.join(projectdir, "templates") if not os.path.exists(templatesdir): templatesdir = os.path.joi... | b0520a31dacf7c3c884d4a579b921f8e769ec265 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11388/b0520a31dacf7c3c884d4a579b921f8e769ec265/projects.py |
class pootlefile(base.TranslationStore, Wrapper): | class pootlefile(Wrapper): | def finditems(self, search): """returns items that match the .assignedto and/or .assignedaction criteria in the searchobject""" # search.assignedto == [None] means assigned to nobody if search.assignedto == [None]: assignitems = self.getunassigned(search.assignedaction) else: # filter based on assign criteria assigns =... | f385cdb203c278adf8713f2b0a4de3b271e9ccfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11388/f385cdb203c278adf8713f2b0a4de3b271e9ccfb/pootlefile.py |
self.__innerobj__ = innerclass() self.UnitClass = innerclass.UnitClass | innerobj = innerclass() self.__innerobj__ = innerobj self.UnitClass = innerobj.UnitClass | def __init__(self, project=None, pofilename=None, generatestats=True): if pofilename: innerclass = factory.getclass(pofilename) self.__innerobj__ = innerclass() self.UnitClass = innerclass.UnitClass self.pofilename = pofilename if project is None: from Pootle import projects self.project = projects.DummyProject(None) ... | f385cdb203c278adf8713f2b0a4de3b271e9ccfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11388/f385cdb203c278adf8713f2b0a4de3b271e9ccfb/pootlefile.py |
return os.path.join(self.podir, dirname, pofilename) | return os.path.join(self.podir, dirname, localfilename) | def getuploadpath(self, dirname, localfilename): """gets the path of a translation file being uploaded securely, creating directories as neccessary""" if os.path.isabs(dirname) or dirname.startswith("."): raise ValueError("invalid/insecure file path: %s" % dirname) if os.path.basename(localfilename) != localfilename or... | 48e79b1f380281936f2998a6a25a2a1dac5c53f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11388/48e79b1f380281936f2998a6a25a2a1dac5c53f7/projects.py |
score = float(candidate.getnotes()) | def buildmatches(inputfile, outputfile, matcher): """Builds a .po.tm file for use in Pootle""" #Can't use the same name: it might open the existing file! outputfile = factory.getobject(outputfile, ignore=".tm") #TODO: Do something useful with current content if file exists inputfile.units.sort(match.sourcelencmp) try:... | 608f1c07ab4cf488f08d3bcfcc7b6c518c5af952 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11388/608f1c07ab4cf488f08d3bcfcc7b6c518c5af952/updatetm.py | |
newunit.addnote("%d%%" % score) | newunit.addnote(candidate.getnotes()) | def buildmatches(inputfile, outputfile, matcher): """Builds a .po.tm file for use in Pootle""" #Can't use the same name: it might open the existing file! outputfile = factory.getobject(outputfile, ignore=".tm") #TODO: Do something useful with current content if file exists inputfile.units.sort(match.sourcelencmp) try:... | 608f1c07ab4cf488f08d3bcfcc7b6c518c5af952 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11388/608f1c07ab4cf488f08d3bcfcc7b6c518c5af952/updatetm.py |
self.innerclass = factory.getclass(pofilename) innerobj = self.innerclass() | innerclass = factory.getclass(pofilename) innerobj = innerclass() | def __init__(self, project=None, pofilename=None, generatestats=True): if pofilename: self.innerclass = factory.getclass(pofilename) innerobj = self.innerclass() self.__innerobj__ = innerobj self.UnitClass = innerobj.UnitClass self.pofilename = pofilename if project is None: from Pootle import projects self.project = ... | bd2baa56ce657fc511d1b6d24db4cefdce3fa61f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11388/bd2baa56ce657fc511d1b6d24db4cefdce3fa61f/pootlefile.py |
self.add_playable(Playable(self._uri)) self.next() | self.play_uri(self._uri) | def __init__(self, uri=''): self._uri = uri self._queue = [] self._current_item_index = -1 self._saved_item_index = None self._saved_status = None self._g_timeout_id = None self._playbin = gst.element_factory_make('playbin', 'playbin') | aeaea01379481a24682241bd83689552bd7562fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2571/aeaea01379481a24682241bd83689552bd7562fa/player.py |
return self._queue[self._current_item_index] | try: return self._queue[self._current_item_index] except IndexError: import pdb; pdb.set_trace() | def get_current_item(self): """ Return the item of the playing queue which is currently selected """ return self._queue[self._current_item_index] | aeaea01379481a24682241bd83689552bd7562fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2571/aeaea01379481a24682241bd83689552bd7562fa/player.py |
property.__init__(self, fget=self.get_extensions) | property.__init__(self) | def __init__(self, interface): property.__init__(self, fget=self.get_extensions) self.interface = interface | 729ea1384882193b36b53dedbe1e2753644eda91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2571/729ea1384882193b36b53dedbe1e2753644eda91/plugin.py |
def get_extensions(self, master_plugin): | def __get__(self, master_plugin, typ): | def get_extensions(self, master_plugin): extensions = self._get_cached_extensions() for extension in extensions: extension.set_master_plugin(master_plugin) return extensions | 729ea1384882193b36b53dedbe1e2753644eda91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2571/729ea1384882193b36b53dedbe1e2753644eda91/plugin.py |
_dir = os.path.dirname(zPictureBox.__file__) self._font = font.Font(_dir + '/font.ttf',72) | _dir = os.path.dirname(extern.testGL.__file__) _font_path = os.path.join(_dir, 'common', 'font.ttf') self._font = font.Font(_font_path,72) | def __init__(self, in_text = "font"): zPictureBox.PictureBox.__init__(self) font.init() if not font.get_init(): print 'Could not render font.' sys.exit(0) _dir = os.path.dirname(zPictureBox.__file__) self._font = font.Font(_dir + '/font.ttf',72) self._texture = None self._fontsize = 32 self.SetText(in_text) | b5a8455c06dafbdf0d31e435d07a646d65f349f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2571/b5a8455c06dafbdf0d31e435d07a646d65f349f9/zFont.py |
<<<<<<< HEAD | def create_printer(): global _printer, config _printer = beaglebone_helpers.create_printer() _printer.prepared_file = None config = json_config_file.read() _printer.connect() _printer.configure(config) | 3d43a033dbdbf5699e2eee9ce4b99b8c339c69d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5673/3d43a033dbdbf5699e2eee9ce4b99b8c339c69d7/t_bone_server.py | |
======= port=80, >>>>>>> f42be67744150446bdce4fb0a646ab15a8e7c40a | def create_printer(): global _printer, config _printer = beaglebone_helpers.create_printer() _printer.prepared_file = None config = json_config_file.read() _printer.connect() _printer.configure(config) | 3d43a033dbdbf5699e2eee9ce4b99b8c339c69d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5673/3d43a033dbdbf5699e2eee9ce4b99b8c339c69d7/t_bone_server.py | |
not enough, words with less are choosen. | not enough, words with less are chosen. | def GetRandomList(self, listlength): """ GetRandomList(self, listlength) Returns a list of randomwords with listlength length. First choose words with most Levelchars, if these are not enough, words with less are choosen. """ retlist = [] selectlist = [] length = 0 val = 0 temp = 0 keys = self.list.keys() keys.sort() k... | 5ff630ebf024df4ca6595cff4925daf7b19e7a48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7210/5ff630ebf024df4ca6595cff4925daf7b19e7a48/ktouchgen.py |
print '\nConfiguration for %(Levelnum)s levels read. \n!!! Be aware, if the Levels are not numberd correctly \n!!! they will not be read completly!' %vars() | print '\nConfiguration for %(Levelnum)s levels read. \n!!! Be aware, if the Levels are not numberd correctly \n!!! they will not be read completely!' %vars() | def main(argv): Wordlist = [] UpcaseWordlist = [] # Reading the Wordlist try: wordfile = open(argv[1], 'r') except IOError: print "\nWordfile couldn't be opened.\n", DOCSTRING return 1 # Create two Wordlists, one with first char lowered # (more words for the first levels) and one like it ist read for wordstring in word... | 5ff630ebf024df4ca6595cff4925daf7b19e7a48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7210/5ff630ebf024df4ca6595cff4925daf7b19e7a48/ktouchgen.py |
pid = wx.wxExecute(cmd, 0, process) | if wx.wxVERSION > (2, 3, 2): flags = wx.wxEXEC_NOHIDE else: flags = 0 pid = wx.wxExecute(cmd, flags, process) | def spawnChild(monitor, process, args=''): """Returns an xmlrpclib.Server, a connection to an xml-rpc server, and the input and error streams. """ # Start ChildProcessServerStart.py in a new process. script_fn = os.path.join(os.path.dirname(__file__), 'ChildProcessServerStart.py') os.environ['PYTHONPATH'] = string.join... | 58ab2b5cc630600d11050cf5e6b0106c3bb1f7d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/58ab2b5cc630600d11050cf5e6b0106c3bb1f7d2/ChildProcessClient.py |
params = None | params = [] | def OnSetRunParams(self, event): model = self.getModel() dlg = wxTextEntryDialog(self.editor, 'Parameters:', 'Command-line parameters', model.lastRunParams) try: if dlg.ShowModal() == wxID_OK: model.lastRunParams = dlg.GetValue() # update running debuggers debugging this module debugger = self.editor.debugger if debugg... | 8ddbedf475be29965241b39b1729f9076673c73f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8ddbedf475be29965241b39b1729f9076673c73f/PythonControllers.py |
create(self.editor).ShowModal() | rmtDlg = create(self.editor) rmtDlg.ShowModal() rmtDlg.Destroy() | def OnAttachToDebugger(self, event): # Attach dialog code here from Debugger.RemoteDialog import create create(self.editor).ShowModal() | 8ddbedf475be29965241b39b1729f9076673c73f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8ddbedf475be29965241b39b1729f9076673c73f/PythonControllers.py |
self.SetText(self.model.data) | self.SetText(self.getModelData()) | def refreshCtrl(self): self.pos = self.GetCurrentPos() | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
self.model.data = self.GetText() | self.setModelData(self.GetText()) | def refreshModel(self): if self.isModified(): self.model.modified = true self.nonUserModification = false # hack to stop wxSTC from eating the last character self.InsertText(self.GetTextLength(), ' ') self.model.data = self.GetText() self.EmptyUndoBuffer() EditorViews.EditorView.refreshModel(self) # Remove from modi... | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
t1 = time.time() for i in range(1): self.refreshModel() t2 = time.time() | self.refreshModel() | def OnRefresh(self, event): t1 = time.time() for i in range(1): self.refreshModel() t2 = time.time() | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
def OnFindAgain(self, event): if self.lastMatchPosition is None: self.OnFind(event) else: if self.lastMatchPosition < len(self.lastSearchResults) -1: self.lastMatchPosition = self.lastMatchPosition + 1 pos = self.lastSearchResults[self.lastMatchPosition] self.selectSection(pos[0], pos[1], self.lastSearchPattern) else: ... | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py | ||
self.breaks = {} | self.tryLoadBreakpoints() | def __init__(self, parent, model): if hasattr(model, 'app') and model.app: a2 = (('Run application', self.OnRunApp, self.runAppBmp, keyDefs['RunApp']),) else: a2 = () a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', s... | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
self.CallTipSetBackground(wxColour(255, 255, 232)) | def __init__(self, parent, model): if hasattr(model, 'app') and model.app: a2 = (('Run application', self.OnRunApp, self.runAppBmp, keyDefs['RunApp']),) else: a2 = () a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', s... | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py | |
self.SetMarginWidth(1, 13) | self.SetMarginWidth(1, 12) | def __init__(self, parent, model): if hasattr(model, 'app') and model.app: a2 = (('Run application', self.OnRunApp, self.runAppBmp, keyDefs['RunApp']),) else: a2 = () a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', s... | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
partial = line[dot+1:piv-1] | partial = line[dot+1:piv] | def checkCodeComp(self): pos = self.GetCurrentPos() lnNo = self.GetCurrentLine() lnStPs = self.GetLineStartPos(lnNo) line = self.GetCurrentLineText()[0] piv = pos - lnStPs start, length = idWord(line, piv, lnStPs) startLine = start-lnStPs word = line[startLine:startLine+length] | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
if sel: print 'auto selecting', partial, sel | else: self.AutoCompShow(len(partial), string.join(list, ' ')) self.AutoCompSelect(partial) | def checkCodeComp(self): pos = self.GetCurrentPos() lnNo = self.GetCurrentLine() lnStPs = self.GetLineStartPos(lnNo) line = self.GetCurrentLineText()[0] piv = pos - lnStPs start, length = idWord(line, piv, lnStPs) startLine = start-lnStPs word = line[startLine:startLine+length] | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
print 'adding break point', bp | self.MarkerAdd(bp.line -1, brkPtMrk) def setBdbBreakpoints(self): for bp in self.breaks.values(): | def setInitialBreakpoints(self): for bp in self.breaks.values(): print 'adding break point', bp self.MarkerAdd(bp.line -1, brkPtMrk) | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
def tryLoadBreakpoints(self): import pickle fn = self.getBreakpointFilename() if os.path.exists(fn): self.breaks = pickle.load(open(fn)) self.setInitialBreakpoints() BrkPt = bdb.Breakpoint for lineNo, brk in self.breaks.items(): BrkPt.bpbynumber.append(brk) if BrkPt.bplist.has_key((brk.file, brk.line)): BrkPt.bplist[b... | def addBreakPoint(self, lineNo, temp = 0): if temp: mrk = tmpBrkPtMrk else: mrk = brkPtMrk hnd = self.MarkerAdd(lineNo - 1, mrk) filename = string.lower(self.model.filename) | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py | |
if Preferences.braceHighLight: | if Preferences.braceHighLight: | def OnUpdateUI(self, event): | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
self.SetCurrentPosition(pos + indentLevel) | if old_stc: self.SetCurrentPosition(pos + indentLevel) else: self.SetSelectionStart(pos + indentLevel) | def OnKeyDown(self, event): | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
def OnViewWhitespace(self, event): miid = self.menu.FindItem('View whitespace') if self.menu.IsChecked(miid): mode = wxSTC_WS_INVISIBLE self.menu.Check(miid, false) else: mode = wxSTC_WS_VISIBLEALWAYS self.menu.Check(miid, true) self.SetViewWhiteSpace(mode) def OnViewEOL(self, event): miid = self.menu.FindItem('Vie... | def OnAddCommentLine(self, event): pos = self.GetCurrentPos() ln = self.GetLineFromPos(pos) ls = self.GetLineStartPos(ln) self.InsertText(ls, '#-------------------------------------------' '------------------------------------'+'\n') self.SetCurrentPosition(ls+4) | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py | |
HTMLStyledTextCtrlMix.OnUpdateUI(self, event) | if Preferences.braceHighLight: HTMLStyledTextCtrlMix.OnUpdateUI(self, event) class CPPSourceView(EditorStyledTextCtrl, CPPStyledTextCtrlMix): viewName = 'Source' def __init__(self, parent, model): EditorStyledTextCtrl.__init__(self, parent, wxID_CPPSOURCEVIEW, model, (('Refresh', self.OnRefresh, '-', keyDefs['Refresh... | def OnUpdateUI(self, event): # don't update if not fully initialised if hasattr(self, 'pageIdx'): self.updateViewState() HTMLStyledTextCtrlMix.OnUpdateUI(self, event) | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py |
def OnUpdateUI(self, event): # don't update if not fully initialised if hasattr(self, 'pageIdx'): self.updateViewState() | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py | ||
filename, lineno = self.adjustedFrameInfo(frame)[:-2] | filename, lineno = self.adjustedFrameInfo(frame)[-2:] | def break_here(self, frame): # Redefine breaking :( filename = frame.f_code.co_filename if filename == 'Script (Python)': # XXX filename, lineno = self.adjustedFrameInfo(frame)[:-2] else: filename = self.canonic(filename) lineno = frame.f_lineno if not self.breaks.has_key(filename): return 0 if not lineno in self.bre... | 1131422cc2e6f8bd0a1d6b4ce152abdd289e3494 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1131422cc2e6f8bd0a1d6b4ce152abdd289e3494/IsolatedDebugger.py |
self.editor.openOrGotoModule(filename) model = self.editor.getActiveModulePage().model sourceView = model.views['Source'] sourceView.focus(false) sourceView.selectLine(lineno - 1) sourceView.setStepPos(lineno - 1) self.lastStepView = sourceView self.lastStepLineno = lineno - 1 | try: self.editor.openOrGotoModule(filename) except Exception, err: print 'Counld not open: %s'%filename else: model = self.editor.getActiveModulePage().model sourceView = model.views['Source'] sourceView.focus(false) sourceView.selectLine(lineno - 1) sourceView.setStepPos(lineno - 1) self.lastStepView = sourceView sel... | def selectSourceLine(self, filename, lineno): if self.isSourceTracing(): self.clearStepPos() if not filename: return | 021a76842fed0834abfa19b7f56ede2845e375c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/021a76842fed0834abfa19b7f56ede2845e375c4/Debugger.py |
self.toolbar.ToggleTool(wid, 1) | self.toolbar.EnableTool(wid, 1) | def enableStepping(self): # TODO: enable the step buttons. self.stepping_enabled = 1 for wid in (self.stepId, self.overId, self.outId): self.toolbar.ToggleTool(wid, 1) | 021a76842fed0834abfa19b7f56ede2845e375c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/021a76842fed0834abfa19b7f56ede2845e375c4/Debugger.py |
self.toolbar.ToggleTool(wid, 0) | self.toolbar.EnableTool(wid, 0) | def disableStepping(self): # TODO: disable the step buttons. self.stepping_enabled = 0 for wid in (self.stepId, self.overId, self.outId): self.toolbar.ToggleTool(wid, 0) | 021a76842fed0834abfa19b7f56ede2845e375c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/021a76842fed0834abfa19b7f56ede2845e375c4/Debugger.py |
wxVersion = tuple(map(lambda v: int(v), (string.split(wxPython.__version__, '.')+['0'])[:4])) | wxVersion = wxPython.__version__ for c in wxVersion: if c not in string.digits+'.': wxVersion = string.replace(wxVersion, c, '') wxVersion = tuple(map(lambda v: int(v), (string.split(wxVersion, '.')+['0'])[:4])) | def processArgs(argv): _doDebug = _doRemoteDebugSvr = _constricted = _emptyEditor = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:ERhv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'EmptyEditor', 'RemoteDebugServer', 'he... | 90fbc534608ffe15ef034ee4770b1d270422068f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90fbc534608ffe15ef034ee4770b1d270422068f/Boa.py |
def __init__(self, parent, senders, inspector, designer): | def __init__(self, parent, senders, inspector, designer, colour, pnlStyle): | def __init__(self, parent, senders, inspector, designer): | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.dragCtrl = None | self.dragging = false | def __init__(self, parent, senders, inspector, designer): | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.dragSize = wxSize() self.lastDragPos = wxPoint() | self.colour = colour self.name = '' | def __init__(self, parent, senders, inspector, designer): | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.stTL = TLSelTag(parent, wxCURSOR_SIZENWSE, tagSize, self) self.stTR = TRSelTag(parent, wxCURSOR_SIZENESW, tagSize, self) self.stBR = BRSelTag(parent, wxCURSOR_SIZENWSE, tagSize, self) self.stBL = BLSelTag(parent, wxCURSOR_SIZENESW, tagSize, self) self.stT = TSelTag(parent, wxCURSOR_SIZENS, tagSize, self) self.stB ... | self.stTL = TLSelTag(parent, wxCURSOR_SIZENWSE, tagSize, self, pnlStyle) self.stTR = TRSelTag(parent, wxCURSOR_SIZENESW, tagSize, self, pnlStyle) self.stBR = BRSelTag(parent, wxCURSOR_SIZENWSE, tagSize, self, pnlStyle) self.stBL = BLSelTag(parent, wxCURSOR_SIZENESW, tagSize, self, pnlStyle) self.stT = TSelTag(parent, w... | def __init__(self, parent, senders, inspector, designer): | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
if self.dragCtrl: | if self.dragging: | def moveRelease(self): if self.dragTag: # XXX nasty passing a None event self.OnSizeEnd(None) self.showTags() if self.dragCtrl: # XXX Have to hide and show to clean up artifacts, refreshing # XXX is not sufficient. Show/hiding seems to screw up Z order self.dragCtrl.Show(false) | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.dragCtrl.Show(false) self.dragCtrl.SetDimensions( \ | self.selection.Show(false) self.hideTags() self.selection.SetDimensions( \ | def moveRelease(self): if self.dragTag: # XXX nasty passing a None event self.OnSizeEnd(None) self.showTags() if self.dragCtrl: # XXX Have to hide and show to clean up artifacts, refreshing # XXX is not sufficient. Show/hiding seems to screw up Z order self.dragCtrl.Show(false) | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.dragCtrl.Show(true) self.dragCtrl = None | self.selection.Show(true) self.dragging = false self.setSelection() | def moveRelease(self): if self.dragTag: # XXX nasty passing a None event self.OnSizeEnd(None) self.showTags() if self.dragCtrl: # XXX Have to hide and show to clean up artifacts, refreshing # XXX is not sufficient. Show/hiding seems to screw up Z order self.dragCtrl.Show(false) | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.lastDragPos.x = pos.x self.lastDragPos.y = pos.y | def moveCapture(self, ctrl, compn, pos): # Put selection around control | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py | |
self.dragCtrl = ctrl self.dragOffset = pos self.showFramedTags(None) self.dragSize = ctrl.GetSize() | self.dragging = true self.dragOffset = pos self.showFramedTags(None) | def moveCapture(self, ctrl, compn, pos): # Put selection around control | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
def moving(self, ctrl, pos): | def moving(self, ctrl, pos, multiDragCtrl = None): if multiDragCtrl: dragCtrlPos = multiDragCtrl.GetPosition() movingCtrlPos = self.selection.GetPosition() pos = wxPoint(pos.x - dragCtrlPos.x + movingCtrlPos.x, pos.y - dragCtrlPos.y + movingCtrlPos.y) screenPos = ctrl.ClientToScreen(pos) parentPos = self.parent.Scree... | def moving(self, ctrl, pos): # Sizing if self.dragTag: screenPos = ctrl.ClientToScreen(pos) parentPos = self.parent.ScreenToClient(screenPos) if ctrl == self.designer: tb = self.designer.GetToolBar() if tb: parentPos.y = parentPos.y - tb.GetSize().y self.dragTag.setPos(parentPos) # Moving elif self.dragCtrl: self.lastD... | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
screenPos = ctrl.ClientToScreen(pos) parentPos = self.parent.ScreenToClient(screenPos) | def moving(self, ctrl, pos): # Sizing if self.dragTag: screenPos = ctrl.ClientToScreen(pos) parentPos = self.parent.ScreenToClient(screenPos) if ctrl == self.designer: tb = self.designer.GetToolBar() if tb: parentPos.y = parentPos.y - tb.GetSize().y self.dragTag.setPos(parentPos) # Moving elif self.dragCtrl: self.lastD... | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py | |
elif self.dragCtrl: self.lastDragPos.x = pos.x self.lastDragPos.y = pos.y screenPos = ctrl.ClientToScreen(pos) parentPos = self.parent.ScreenToClient(screenPos) | elif self.dragging: | def moving(self, ctrl, pos): # Sizing if self.dragTag: screenPos = ctrl.ClientToScreen(pos) parentPos = self.parent.ScreenToClient(screenPos) if ctrl == self.designer: tb = self.designer.GetToolBar() if tb: parentPos.y = parentPos.y - tb.GetSize().y self.dragTag.setPos(parentPos) # Moving elif self.dragCtrl: self.lastD... | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
dcs = self.parent.ClientToScreen(self.dragCtrl.GetPosition()) dccs = self.dragCtrl.ClientToScreen((0, 0)) | dcs = self.parent.ClientToScreen(self.selection.GetPosition()) dccs = self.selection.ClientToScreen((0, 0)) | def moving(self, ctrl, pos): # Sizing if self.dragTag: screenPos = ctrl.ClientToScreen(pos) parentPos = self.parent.ScreenToClient(screenPos) if ctrl == self.designer: tb = self.designer.GetToolBar() if tb: parentPos.y = parentPos.y - tb.GetSize().y self.dragTag.setPos(parentPos) # Moving elif self.dragCtrl: self.lastD... | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.setSelection() def selectCtrl(self, ctrl, compn): | self.setSelection() def selectCtrl(self, ctrl, compn, selectInInspector = true): | def moving(self, ctrl, pos): # Sizing if self.dragTag: screenPos = ctrl.ClientToScreen(pos) parentPos = self.parent.ScreenToClient(screenPos) if ctrl == self.designer: tb = self.designer.GetToolBar() if tb: parentPos.y = parentPos.y - tb.GetSize().y self.dragTag.setPos(parentPos) # Moving elif self.dragCtrl: self.lastD... | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.lastDragPos = wxPoint(self.position.x, self.position.y) | self.selCompn = compn | def selectCtrl(self, ctrl, compn): self.hideTags() if not ctrl: self.selection = None self.inspSel = None else: # XXX fix! if ctrl == self.designer: self.parent = ctrl cp = wxPoint(0, 0) screenPos = ctrl.ClientToScreen(cp) parentPos = self.parent.ScreenToClient(screenPos) else: self.parent = ctrl.GetParent() cp = ct... | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.inspSel = ctrl self.inspector.selectObject(ctrl, compn) | def selectCtrl(self, ctrl, compn): self.hideTags() if not ctrl: self.selection = None self.inspSel = None else: # XXX fix! if ctrl == self.designer: self.parent = ctrl cp = wxPoint(0, 0) screenPos = ctrl.ClientToScreen(cp) parentPos = self.parent.ScreenToClient(screenPos) else: self.parent = ctrl.GetParent() cp = ct... | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py | |
self.sfT.SetDimensions(trPos.x +3, trPos.y -2, trSze.x - 2*3, frmWid) self.sfR.SetDimensions(trPos.x + trSze.x, trPos.y +3, frmWid, trSze.y - 2*3) self.sfB.SetDimensions(trPos.x +3, trPos.y + trSze.y, trSze.x - 2*3, frmWid) self.sfL.SetDimensions(trPos.x -2, trPos.y +3, frmWid, trSze.y - 2*3) | self.sfT.SetDimensions(trPos.x -frmWid, trPos.y -2, trSze.x +frmWid, frmWid) self.sfR.SetDimensions(trPos.x + trSze.x, trPos.y -frmWid, frmWid, trSze.y+frmWid) self.sfB.SetDimensions(trPos.x -frmWid, trPos.y + trSze.y, trSze.x +frmWid, frmWid) self.sfL.SetDimensions(trPos.x -2, trPos.y-frmWid, frmWid, trSze.y +frm... | def setSelection(self): position = self.position size = self.size | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.position = trPos self.size = trSze def OnSizeBegin(self, event): self.dragTag = self.senders.getObject(event) self.showFramedTags(self.dragTag) def OnSizeEnd(self, event): self.resizeCtrl() self.showTags() self.dragTag = None | self.position = trPos self.size = trSze | def setSelection(self): position = self.position size = self.size | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
event.Skip() | event.Skip() class SingleSelectionGroup(SelectionGroup): def __init__(self, parent, senders, inspector, designer): SelectionGroup.__init__(self, parent, senders, inspector, designer, wxBLACK, 0) def selectCtrl(self, ctrl, compn): SelectionGroup.selectCtrl(self, ctrl, compn) if self.selection: self.inspSel = ctrl self... | def OnMouseOver(self, event): if event.Dragging(): pos = event.GetPosition() ctrl = self.senders.getObject(event) self.moving(ctrl, pos) | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
def __init__(self, parent, cursor, size, group, pnlStyle = 0): wxPanel.__init__(self, parent, -1, style = pnlStyle) | def __init__(self, parent, cursor, tagSize, group, pnlStyle): wxPanel.__init__(self, parent, -1, size = wxSize(tagSize, tagSize), style = pnlStyle) self.Show(false) | def __init__(self, parent, cursor, size, group, pnlStyle = 0): wxPanel.__init__(self, parent, -1, style = pnlStyle) self.group = group self.SetSize(wxSize(size, size)) self.SetBackgroundColour(wxBLACK) self.SetForegroundColour(wxBLACK) self.SetCursor(wxStockCursor(cursor)) self.selection = None | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.SetSize(wxSize(size, size)) self.SetBackgroundColour(wxBLACK) | self.SetBackgroundColour(group.colour) | def __init__(self, parent, cursor, size, group, pnlStyle = 0): wxPanel.__init__(self, parent, -1, style = pnlStyle) self.group = group self.SetSize(wxSize(size, size)) self.SetBackgroundColour(wxBLACK) self.SetForegroundColour(wxBLACK) self.SetCursor(wxStockCursor(cursor)) self.selection = None | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.position = wxSize(0, 0) | self.position = wxSize(0, 0) | def __init__(self, parent, cursor, size, group, pnlStyle = 0): wxPanel.__init__(self, parent, -1, style = pnlStyle) self.group = group self.SetSize(wxSize(size, size)) self.SetBackgroundColour(wxBLACK) self.SetForegroundColour(wxBLACK) self.SetCursor(wxStockCursor(cursor)) self.selection = None | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
grp.size.x = 0 if oldPos and oldSize: grp.position.x = oldPos.x + oldSize.x grp.size.y = 0 if oldPos and oldSize: grp.position.y = oldPos.y + oldSize.y | grp.size.x, grp.size.y = 0 if oldPos and oldSize: grp.position.x = oldPos.x + oldSize.x grp.position.y = oldPos.y + oldSize.y | def setPos(self, position, mirrorX, mirrorY, mirrorXY, oldPos = None, oldSize = None): grp = self.group if grp.size.x < 0 and grp.size.y < 0: grp.size.x = 0 if oldPos and oldSize: grp.position.x = oldPos.x + oldSize.x grp.size.y = 0 if oldPos and oldSize: grp.position.y = oldPos.y + oldSize.y grp.dragTag = mirrorXY eli... | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py |
self.lcFiles.node.setFilter(self.editorFilter) | self.editorFilterNode.setFilter(self.editorFilter) | def open(self, node): if node: if node.isFolderish(): self.lcFiles.refreshItems(self.modImages, node) self.updatePathLabel() if self.style & wxSAVE: btn = saveStr else: btn = openStr self.btOK.SetLabel(btn) return if self.tcFilename.GetValue(): self.lcFiles.node.setFilter(self.editorFilter) wxBoaFileDialog.currentDir =... | 34a96e9246a8036a30a7a5980fad250127ee8ae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/34a96e9246a8036a30a7a5980fad250127ee8ae4/FileDlg.py |
self.lcFiles.node.setFilter(self.editorFilter) | self.editorFilterNode.setFilter(self.editorFilter) | def OnBtcancelButton(self, event): self.lcFiles.node.setFilter(self.editorFilter) self.EndModal(wxID_CANCEL) | 34a96e9246a8036a30a7a5980fad250127ee8ae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/34a96e9246a8036a30a7a5980fad250127ee8ae4/FileDlg.py |
if not value[1:-1]: | strVal = eval(value) if not strVal: | def getValue(self): if self.editorCtrl: value = self.editorCtrl.getValue() if type(value) in StringTypes: value = `self.editorCtrl.getValue()` else: value = self.getCtrlValue() | cb5993ca7528cce10b8cb721f70b2a2f80593e0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/cb5993ca7528cce10b8cb721f70b2a2f80593e0d/PropertyEditors.py |
for c in value[1:-1]: | for c in strVal: | def getValue(self): if self.editorCtrl: value = self.editorCtrl.getValue() if type(value) in StringTypes: value = `self.editorCtrl.getValue()` else: value = self.getCtrlValue() | cb5993ca7528cce10b8cb721f70b2a2f80593e0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/cb5993ca7528cce10b8cb721f70b2a2f80593e0d/PropertyEditors.py |
def selectCtrl(self, ctrl, compn, selectInInspector = true): self.hideTags() if not ctrl: self.selection = None self.selCompn = None self.inspSel = None else: # XXX fix! if ctrl.this == self.designer.this: self.name = '' self.parent = ctrl cp = wxPoint(0, 0) screenPos = ctrl.ClientToScreen(cp) parentPos = self.parent.... | 3a291ced9cffe824b6523ff0a4c2e058148aa334 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3a291ced9cffe824b6523ff0a4c2e058148aa334/SelectionTags.py | ||
""" Set the selected control's dimensions by granulising the current selection group's size & pos """ | """ Set the selected control's dimensions from the current selection group's size & pos """ | def resizeCtrl(self): """ Set the selected control's dimensions by granulising the current selection group's size & pos """ if self.selCompn: self.selCompn.beforeResize() | 3a291ced9cffe824b6523ff0a4c2e058148aa334 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3a291ced9cffe824b6523ff0a4c2e058148aa334/SelectionTags.py |
a control and notifies the Inspector. """ | a control and notifies the Inspector. """ | def sizeFromCtrl(self): """ Called from outside the module. Set the group's size & pos from a control and notifies the Inspector. """ # XXX What about granularity? if self.selection: self.position = self.selection.GetPosition() self.size = self.selection.GetSize() self.sizeUpdate() self.positionUpdate() | 3a291ced9cffe824b6523ff0a4c2e058148aa334 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3a291ced9cffe824b6523ff0a4c2e058148aa334/SelectionTags.py |
class SingleSelectionGroup(SelectionGroup): def __init__(self, parent, senders, inspector, designer): SelectionGroup.__init__(self, parent, senders, inspector, designer, wxBLACK, 0) def selectCtrl(self, ctrl, compn): SelectionGroup.selectCtrl(self, ctrl, compn) if self.selection: self.inspSel = ctrl self.inspector.sel... | def OnMouseOver(self, event): if event.Dragging(): pos = event.GetPosition() ctrl = self.senders.getObject(event) self.moving(ctrl, pos) event.Skip() | 3a291ced9cffe824b6523ff0a4c2e058148aa334 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3a291ced9cffe824b6523ff0a4c2e058148aa334/SelectionTags.py | |
'Images/Shared/NewItems.png', 'More new ...', self.OnNewClick) | 'Images/Shared/NewItems.png', 'More new ...', self.OnMoreNewClick) | def __init__(self, parent, collEditView, additAdders = (), lvStyle = wxLC_REPORT): self.collEditPos = (-1, -1) self.collEditPos = getNextDefaultPos() self._init_ctrls(parent) | 7ef928af5a74b0fe073b5b2b019c846f35799cff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7ef928af5a74b0fe073b5b2b019c846f35799cff/CollectionEdit.py |
self.additAdders = 0 | self.additAdders = additAdders = 0 | def __init__(self, parent, collEditView, additAdders = (), lvStyle = wxLC_REPORT): self._init_ctrls(parent) | b60278563626737548dc3732d0bbe42452e8b5b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b60278563626737548dc3732d0bbe42452e8b5b7/CollectionEdit.py |
self.filename = model.filename | def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight + Preferences.windowManagerTop + \ Preferences.windowManagerBottom), wxSize(Preferences.inspWidth, Prefe... | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py | |
'Images/Debug/DebugBrowse.bmp', 'Namespace in shell', | 'Images/Debug/ShellDebug.bmp', 'Eval in shell', | def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight + Preferences.windowManagerTop + \ Preferences.windowManagerBottom), wxSize(Preferences.inspWidth, Prefe... | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py |
self.splitter = wxSplitterWindow(self, -1, style = wxSP_NOBORDER) | self.splitter = wxSplitterWindow(self, -1, style = wxSP_NOBORDER| wxSP_3DSASH | wxSP_FULLSASH) | def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight + Preferences.windowManagerTop + \ Preferences.windowManagerBottom), wxSize(Preferences.inspWidth, Prefe... | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py |
print 'getVarValue', name | def getVarValue(self, name): print 'getVarValue', name if self.frame: try: return pprint.pformat(eval(name, self.frame.f_globals, self.frame.f_locals)) except Exception, message: return pprint.pformat(str(message)) else: return '(No current frame)' | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py | |
wxPhonyApp.debugger = self wxPython.wx.wxApp = wxPhonyApp wxPython.wx.wxPySimpleApp = wxPhonyApp | wxPython.wx.wxApp.debugger = self | def debug_file(self, filename, params = None): filename = path.join(pyPath, filename) saveout = sys.stdout saveerr = sys.stderr if params is None: params = [] | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py |
sys.path.append(self.modpath) | sys.path.insert(0, self.modpath) | def debug_file(self, filename, params = None): filename = path.join(pyPath, filename) saveout = sys.stdout saveerr = sys.stderr if params is None: params = [] | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py |
sys.stderr = ShellEditor.PseudoFileErrTC(owin) | sys.stderr = PseudoFileErrTC(owin) | def debug_file(self, filename, params = None): filename = path.join(pyPath, filename) saveout = sys.stdout saveerr = sys.stderr if params is None: params = [] | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py |
sys.stdout = ShellEditor.PseudoFileOutTC(owin) | sys.stdout = PseudoFileOutTC(owin) | def debug_file(self, filename, params = None): filename = path.join(pyPath, filename) saveout = sys.stdout saveerr = sys.stderr if params is None: params = [] | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py |
print "I''m frozen!" | print "I'm frozen!" | def debug_file(self, filename, params = None): filename = path.join(pyPath, filename) saveout = sys.stdout saveerr = sys.stderr if params is None: params = [] | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py |
wxPython.wx.wxApp = tmpApp wxPython.wx.wxPySimpleApp = tmpSimpleApp | del wxPython.wx.wxApp.debugger | def debug_file(self, filename, params = None): filename = path.join(pyPath, filename) saveout = sys.stdout saveerr = sys.stderr if params is None: params = [] | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py |
self.sb.status.SetLabel('') | self.sb.status.SetLabel('Running') | def interaction(self, frame, info=None): self.frame = frame code = frame.f_code file = code.co_filename base = os.path.basename(file) lineno = frame.f_lineno | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py |
self.stopMainLoop() | def OnDebug(self, event): if self.interacting: self.set_continue() self.stopMainLoop() else: self.debug_file(self.filename) self.stopMainLoop() | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py | |
self.stopMainLoop() | self.stopMainLoop() | def OnDebug(self, event): if self.interacting: self.set_continue() self.stopMainLoop() else: self.debug_file(self.filename) self.stopMainLoop() | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.