bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def set_internal_breakpoint(self, filename, lineno, temporary=0, cond = None): if not self.breaks.has_key(filename): self.breaks[filename] = [] list = self.breaks[filename] if not lineno in list: list.append(lineno)
def set_internal_breakpoint(self, filename, lineno, temporary=0, cond = None): if not self.breaks.has_key(filename): self.breaks[filename] = [] list = self.breaks[filename] if not lineno in list: list.append(lineno)
30,200
def set_internal_breakpoint(self, filename, lineno, temporary=0, cond = None): if not self.breaks.has_key(filename): self.breaks[filename] = [] list = self.breaks[filename] if not lineno in list: list.append(lineno)
def set_internal_breakpoint(self, filename, lineno, temporary=0, cond = None): if not self.breaks.has_key(filename): self.breaks[filename] = [] list = self.breaks[filename] if not lineno in list: list.append(lineno)
30,201
def set_break(self, filename, lineno, temporary=0, cond = None): import linecache # Import as late as possible line = linecache.getline(filename, lineno) if not line: return 'That line does not exist!' self.set_internal_breakpoint(filename, lineno, temporary, cond) return bdb.Breakpoint(filename, lineno, temporary, con...
def set_break(self, filename, lineno, temporary=0, cond = None): import linecache # Import as late as possible line = linecache.getline(filename, lineno) if not line: return 'That line does not exist!' self.set_internal_breakpoint(filename, lineno, temporary, cond) return bdb.Breakpoint(filename, lineno, temporary, con...
30,202
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
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
30,203
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
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
30,204
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
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
30,205
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
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
30,206
def selectSourceLine(self): if self.stackView.stack and self.isSourceTracing(): stack = self.stackView.stack frame, lineno = stack[len(stack)-1] try: modname = frame.f_globals['__name__'] except: return code = frame.f_code filename = code.co_filename
def selectSourceLine(self): if self.stackView.stack and self.isSourceTracing(): stack = self.stackView.stack frame, lineno = stack[len(stack)-1] try: modname = frame.f_globals['__name__'] except: return code = frame.f_code filename = code.co_filename
30,207
def selectSourceLine(self): if self.stackView.stack and self.isSourceTracing(): stack = self.stackView.stack frame, lineno = stack[len(stack)-1] try: modname = frame.f_globals['__name__'] except: return code = frame.f_code filename = code.co_filename
def selectSourceLine(self): if self.stackView.stack and self.isSourceTracing(): stack = self.stackView.stack frame, lineno = stack[len(stack)-1] try: modname = frame.f_globals['__name__'] except: return code = frame.f_code filename = code.co_filename
30,208
def enableTools(self, enable = true): self.toolbar.EnableTool(self.runId, enable) self.toolbar.EnableTool(self.stepId, enable) self.toolbar.EnableTool(self.overId, enable) self.toolbar.EnableTool(self.outId, enable) self.toolbar.EnableTool(self.stopId, enable)
def enableTools(self, enable = true): self.toolbar.EnableTool(self.runId, enable) self.toolbar.EnableTool(self.stepId, enable) self.toolbar.EnableTool(self.overId, enable) self.toolbar.EnableTool(self.outId, enable) self.toolbar.EnableTool(self.stopId, enable)
30,209
def enableTools(self, enable = true): self.toolbar.EnableTool(self.runId, enable) self.toolbar.EnableTool(self.stepId, enable) self.toolbar.EnableTool(self.overId, enable) self.toolbar.EnableTool(self.outId, enable) self.toolbar.EnableTool(self.stopId, enable)
def enableTools(self, enable = true): self.toolbar.EnableTool(self.runId, enable) self.toolbar.EnableTool(self.stepId, enable) self.toolbar.EnableTool(self.overId, enable) self.toolbar.EnableTool(self.outId, enable) self.toolbar.EnableTool(self.stopId, enable)
30,210
def isSourceTracing(self): return self.toolbar.GetToolState(self.sourceTraceId)
def isSourceTracing(self): return self.toolbar.GetToolState(self.sourceTraceId)
30,211
def isDebugBrowsing(self): return self.toolbar.GetToolState(self.debugBrowseId)
def isDebugBrowsing(self): return self.toolbar.GetToolState(self.debugBrowseId)
30,212
def OnStop(self, event): wxPhonyApp.inMainLoop = false self.set_quit() self.model.editor.clearAllStepPoints() self.stackView.load_stack([])
def OnStop(self, event): wxPhonyApp.inMainLoop = false self.set_quit() self.model.editor.clearAllStepPoints() self.stackView.load_stack([])
30,213
def OnCloseWindow(self, event): try: if self.interacting: # XXX mmm self.OnStop(None) self.locs.destroy() self.globs.destroy() self.breakpts.destroy() self.watches.destroy() self.model.editor.debugger = None
def OnCloseWindow(self, event): try: if self.interacting: # XXX mmm self.OnStop(None) self.locs.destroy() self.globs.destroy() self.breakpts.destroy() self.watches.destroy() self.model.editor.debugger = None
30,214
def OnCloseWindow(self, event): try: if self.interacting: # XXX mmm self.OnStop(None) self.locs.destroy() self.globs.destroy() self.breakpts.destroy() self.watches.destroy() self.model.editor.debugger = None
def OnCloseWindow(self, event): try: if self.interacting: # XXX mmm self.OnStop(None) self.locs.destroy() self.globs.destroy() self.breakpts.destroy() self.watches.destroy() self.model.editor.debugger = None
30,215
def getJavaModuleData(): return \
def getJavaModuleData(): return \
30,216
def doCvsCmd(self, cmd, cvsDir, stdinput='', cvsOutput='output window'): # Repaint background wxYield()
def doCvsCmd(self, cmd, cvsDir, stdinput='', cvsOutput='output window'): # Repaint background wxYield()
30,217
def __init__(self, parent, editor): self.notebookStyle = 0 self.tracebackImgIdx = 0 self.tracebackText = 'Tracebacks' self.outputImgIdx = 1 self.outputText = 'Output' self.errorsImgIdx = 2 self.errorsText = 'Errors' self.diffPage = None self.diffImgIdx = 3
def __init__(self, parent, editor): self.notebookStyle = 0 self.tracebackImgIdx = 0 self.tracebackText = 'Tracebacks' self.outputImgIdx = 1 self.outputText = 'Output' self.errorsImgIdx = 2 self.errorsText = 'Errors' self.diffPage = None self.diffImgIdx = 3
30,218
def __init__(self, parent, editor): self.notebookStyle = 0 self.tracebackImgIdx = 0 self.tracebackText = 'Tracebacks' self.outputImgIdx = 1 self.outputText = 'Output' self.errorsImgIdx = 2 self.errorsText = 'Errors' self.diffPage = None self.diffImgIdx = 3
def __init__(self, parent, editor): self.notebookStyle = 0 self.tracebackImgIdx = 0 self.tracebackText = 'Tracebacks' self.outputImgIdx = 1 self.outputText = 'Output' self.errorsImgIdx = 2 self.errorsText = 'Errors' self.diffPage = None self.diffImgIdx = 3
30,219
def __init__(self, parent, editor): self.notebookStyle = 0 self.tracebackImgIdx = 0 self.tracebackText = 'Tracebacks' self.outputImgIdx = 1 self.outputText = 'Output' self.errorsImgIdx = 2 self.errorsText = 'Errors' self.diffPage = None self.diffImgIdx = 3
def __init__(self, parent, editor): self.notebookStyle = 0 self.tracebackImgIdx = 0 self.tracebackText = 'Tracebacks' self.outputImgIdx = 1 self.outputText = 'Output' self.errorsImgIdx = 2 self.errorsText = 'Errors' self.diffPage = None self.diffImgIdx = 3
30,220
def updateCtrls(self, errorList, outputList=None, rootName='Error', runningDir='', errRaw=None): self.runningDir = runningDir self.tracebackType = rootName tree = self.errorStackTC tree.DeleteAllItems() rtTI = tree.AddRoot(rootName+'s') parsedTracebacks = 0 for err in errorList: if err.error and err.stack: errTI = tree...
def updateCtrls(self, errorList, outputList=None, rootName='Error', runningDir='', errRaw=None): self.runningDir = runningDir self.tracebackType = rootName tree = self.errorStackTC tree.DeleteAllItems() rtTI = tree.AddRoot(rootName+'s') parsedTracebacks = 0 for err in errorList: if err.error and err.stack: errTI = tree...
30,221
def updateCtrls(self, errorList, outputList=None, rootName='Error', runningDir='', errRaw=None): self.runningDir = runningDir self.tracebackType = rootName tree = self.errorStackTC tree.DeleteAllItems() rtTI = tree.AddRoot(rootName+'s') parsedTracebacks = 0 for err in errorList: if err.error and err.stack: errTI = tree...
def updateCtrls(self, errorList, outputList=None, rootName='Error', runningDir='', errRaw=None): self.runningDir = runningDir self.tracebackType = rootName tree = self.errorStackTC tree.DeleteAllItems() rtTI = tree.AddRoot(rootName+'s') parsedTracebacks = 0 for err in errorList: if err.error and err.stack: errTI = tree...
30,222
def updateCtrls(self, errorList, outputList=None, rootName='Error', runningDir='', errRaw=None): self.runningDir = runningDir self.tracebackType = rootName tree = self.errorStackTC tree.DeleteAllItems() rtTI = tree.AddRoot(rootName+'s') parsedTracebacks = 0 for err in errorList: if err.error and err.stack: errTI = tree...
def updateCtrls(self, errorList, outputList=None, rootName='Error', runningDir='', errRaw=None): self.runningDir = runningDir self.tracebackType = rootName tree = self.errorStackTC tree.DeleteAllItems() rtTI = tree.AddRoot(rootName+'s') parsedTracebacks = 0 for err in errorList: if err.error and err.stack: errTI = tree...
30,223
def appendToTextCtrl(self, tc, txt, TEXTCTRL_MAXLEN=30000, TEXTCTRL_GOODLEN=20000): # Before appending to the output, remove old data. cursz = tc.GetLastPosition() newsz = cursz + len(txt) if newsz >= TEXTCTRL_MAXLEN: olddata = tc.GetValue()[newsz - TEXTCTRL_GOODLEN:] tc.SetValue(olddata) tc.SetFocus() tc.AppendText(tx...
def appendToTextCtrl(self, tc, txt, TEXTCTRL_MAXLEN=30000, TEXTCTRL_GOODLEN=20000): # Before appending to the output, remove old data. cursz = tc.GetLastPosition() newsz = cursz + len(txt) if newsz >= TEXTCTRL_MAXLEN: olddata = tc.GetValue()[newsz - TEXTCTRL_GOODLEN:] tc.SetValue(olddata) tc.SetFocus() tc.AppendText(tx...
30,224
def appendToTextCtrl(self, tc, txt, TEXTCTRL_MAXLEN=30000, TEXTCTRL_GOODLEN=20000): # Before appending to the output, remove old data. cursz = tc.GetLastPosition() newsz = cursz + len(txt) if newsz >= TEXTCTRL_MAXLEN: olddata = tc.GetValue()[newsz - TEXTCTRL_GOODLEN:] tc.SetValue(olddata) tc.SetFocus() tc.AppendText(tx...
def appendToTextCtrl(self, tc, txt, TEXTCTRL_MAXLEN=30000, TEXTCTRL_GOODLEN=20000): # Before appending to the output, remove old data. cursz = tc.GetLastPosition() newsz = cursz + len(txt) if newsz >= TEXTCTRL_MAXLEN: olddata = tc.GetValue()[newsz - TEXTCTRL_GOODLEN:] tc.SetValue(olddata) tc.SetFocus() tc.AppendText(tx...
30,225
def displayDiff(self, diffResult): if not self.diffPage: self.diffPage = wxStyledTextCtrl(self.notebook1, -1, style=wxSUNKEN_BORDER|wxCLIP_CHILDREN) self.diffPage.SetMarginWidth(1, 0) self.diffPage.SetLexer(wxSTC_LEX_DIFF) self.diffPage.StyleClearAll() for num, style in ( (2, 'fore:#FFFFCC,back:#000000,bold'), #diff (3...
def displayDiff(self, diffResult): if not self.diffPage: self.diffPage = wxStyledTextCtrl(self.notebook1, -1, style=wxSUNKEN_BORDER|wxCLIP_CHILDREN) self.diffPage.SetMarginWidth(1, 0) self.diffPage.SetLexer(wxSTC_LEX_DIFF) self.diffPage.StyleClearAll() for num, style in ( (2, 'fore:#FFFFCC,back:#000000,bold'), #diff (3...
30,226
def displayDiff(self, diffResult): if not self.diffPage: self.diffPage = wxStyledTextCtrl(self.notebook1, -1, style=wxSUNKEN_BORDER|wxCLIP_CHILDREN) self.diffPage.SetMarginWidth(1, 0) self.diffPage.SetLexer(wxSTC_LEX_DIFF) self.diffPage.StyleClearAll() for num, style in ( (2, 'fore:#FFFFCC,back:#000000,bold'), #diff (3...
def displayDiff(self, diffResult): if not self.diffPage: self.diffPage = wxStyledTextCtrl(self.notebook1, -1, style=wxSUNKEN_BORDER|wxCLIP_CHILDREN) self.diffPage.SetMarginWidth(1, 0) self.diffPage.SetLexer(wxSTC_LEX_DIFF) self.diffPage.StyleClearAll() for num, style in ( (2, 'fore:#FFFFCC,back:#000000,bold'), #diff (3...
30,227
def setStatusTextFieldMessage_(self, aMessage): """ Sets the contents of the statusTextField to aMessage and forces the field's contents to be redisplayed. """ if not aMessage: aMessage = "Displaying information about " +`len(self._methodList)` +" methods." +`self._working` self.statusTextField.performSelectorOnMainThr...
def setStatusTextFieldMessage_(self, aMessage): """ Sets the contents of the statusTextField to aMessage and forces the field's contents to be redisplayed. """ if not aMessage: aMessage = u"Displaying information about " +`len(self._methodList)` +" methods." +`self._working` self.statusTextField.performSelectorOnMainTh...
30,228
def setStatusTextFieldMessage_(self, aMessage): """ Sets the contents of the statusTextField to aMessage and forces the field's contents to be redisplayed. """ if not aMessage: aMessage = "Displaying information about " +`len(self._methodList)` +" methods." +`self._working` self.statusTextField.performSelectorOnMainThr...
def setStatusTextFieldMessage_(self, aMessage): """ Sets the contents of the statusTextField to aMessage and forces the field's contents to be redisplayed. """ if not aMessage: aMessage = "Displaying information about " +`len(self._methodList)` +" methods." +`self._working` self.statusTextField.performSelectorOnMainThr...
30,229
def getMethods(self, url): pool = NSAutoreleasePool.alloc().init() self._methodList =[] self._OrigList=[] self.startWorking() # Start Process indicator filelist =GlobDirectoryWalker(url, "*.m") for filename in filelist: self.receiveMethods(filename) self.stopWorking() del pool if self._windowIsClosing: return #self.set...
defgetMethods(self,url):pool=NSAutoreleasePool.alloc().init()self._methodList=[]self._OrigList=[]self.startWorking()#StartProcessindicatorfilelist=GlobDirectoryWalker(url,"*.m")forfilenameinfilelist:self.receiveMethods(filename)self.stopWorking()delpoolifself._windowIsClosing:return#self.setStatusTextFieldMessage_("Fou...
30,230
def assigned(line,i): """ finds out if a message is attached to a variable, returns a tuple with variable and position, position will be -1 if attached to varible, -2 if attached to allowed message, if its attached to a colon the position of the colon will be returned, -3 means error""" anc = anchorPattern.search(line[...
def assigned(line,i): """ finds out if a message is attached to a variable, returns a tuple with variable and position, position will be -1 if attached to varible, -2 if attached to allowed message, if its attached to a colon the position of the colon will be returned, -3 means error""" anc = anchorPattern.search(line[...
30,231
def assigned(line,i): """ finds out if a message is attached to a variable, returns a tuple with variable and position, position will be -1 if attached to varible, -2 if attached to allowed message, if its attached to a colon the position of the colon will be returned, -3 means error""" anc = anchorPattern.search(line[...
def assigned(line,i): """ finds out if a message is attached to a variable, returns a tuple with variable and position, position will be -1 if attached to varible, -2 if attached to allowed message, if its attached to a colon the position of the colon will be returned, -3 means error""" anc = anchorPattern.search(line[...
30,232
def dumpProfileStats(): import hotshot.stats global profData print "dump profiling data" stats = hotshot.stats.load(profData) stats.sort_stats("cumulative") stats.print_stats()
def dumpProfileStats(): import hotshot.stats global profData print "dump profiling data" stats = hotshot.stats.load(profData) stats.sort_stats("cumulative") stats.print_stats()
30,233
def __ensure_attribute( self, name ): invalid_decls = filter( lambda d: not hasattr( d, name ), self.decls ) if invalid_decls: raise RuntimeError( "Not all declarations have '%s' attribute." % name )
def __ensure_attribute( self, name ): invalid_decls = filter( lambda d: not hasattr( d, name ), self.decls ) if False in invalid_decls: raise RuntimeError( "Not all declarations have '%s' attribute." % name )
30,234
def __init__( self, name ): cache_base_t.__init__( self ) self.__name = name self.__cache = self.__load( self.__name ) self.__needs_flushed = bool( self.__cache ) # If empty then we need to flush for entry in self.__cache.itervalues(): # Clear hit flags entry.was_hit = False
def __init__( self, name ): cache_base_t.__init__( self ) self.__name = name self.__cache = self.__load( self.__name ) self.__needs_flushed = not bool( self.__cache ) # If empty then we need to flush for entry in self.__cache.itervalues(): # Clear hit flags entry.was_hit = False
30,235
def visit_class(self ): self.__link_members() #GCC-XML sometimes generates constructors with names that does not match #class name. I think this is because those constructors are compiler #generated. I need to find out more about this and to talk with Brad for decl in self.__inst.declarations: if not isinstance( decl, ...
def visit_class(self ): self.__link_members() #GCC-XML sometimes generates constructors with names that does not match #class name. I think this is because those constructors are compiler #generated. I need to find out more about this and to talk with Brad for decl in self.__inst.declarations: if not isinstance( decl, ...
30,236
def __init__( self, decls ): """@param decls: list of declarations to operate on. @type decls: list of L{declaration wrappers<decl_wrapper_t>} """ object.__init__( self ) self.__dict__['decls'] = decls
def __init__( self, decls ): """@param decls: list of declarations to operate on. @type decls: list of L{declaration wrappers<decl_wrapper_t>} """ object.__init__( self ) self.__dict__['decls'] = decls
30,237
def __nonzero__( self ): return bool( self.decls )
def __nonzero__( self ): return bool( self.decls )
30,238
def __len__( self ): """returns the number of declarations""" return len( self.decls )
def __len__( self ): """returns the number of declarations""" return len( self.decls )
30,239
def __getitem__( self, index ): """provides access to declaration""" return self.decls[index]
def __getitem__( self, index ): """provides access to declaration""" return self.decls[index]
30,240
def __iter__( self ): return iter(self.decls)
def __iter__( self ): return iter(self.decls)
30,241
def __ensure_attribute( self, name ): invalid_decls = filter( lambda d: not hasattr( d, name ), self.decls ) if False in invalid_decls: raise RuntimeError( "Not all declarations have '%s' attribute." % name )
def __ensure_attribute( self, name ): invalid_decls = filter( lambda d: not hasattr( d, name ), self.declarations ) if invalid_decls: raise RuntimeError( "Not all declarations have '%s' attribute." % name )
30,242
def __setattr__( self, name, value ): """Updates the value of attribute on all declarations. @param name: name of attribute @param value: new value of attribute """ self.__ensure_attribute( name ) for d in self.decls: setattr( d, name, value )
def __setattr__( self, name, value ): """Updates the value of attribute on all declarations. @param name: name of attribute @param value: new value of attribute """ self.__ensure_attribute( name ) for d in self.declarations: setattr( d, name, value )
30,243
def __getattr__( self, name ): """@param name: name of method """ return call_redirector_t( name, self.decls )
def __getattr__( self, name ): """@param name: name of method """ return call_redirector_t( name, self.decls )
30,244
def _get__cmp__items( self ): """implementation details""" items = [ self._sorted_list( self.arguments ) , self.return_type , self.has_extern , self._sorted_list( self.exceptions ) ] items.extend( self._get__cmp__call_items() ) return items
def _get__cmp__items( self ): """implementation details""" items = [ self.arguments , self.return_type , self.has_extern , self._sorted_list( self.exceptions ) ] items.extend( self._get__cmp__call_items() ) return items
30,245
def _set_arguments(self, arguments): self._arguments = arguments
def _set_arguments(self, arguments): self._arguments = arguments
30,246
def __create_matcher( self, match_class, **keywds ): matcher_args = keywds.copy() del matcher_args['function'] del matcher_args['recursive'] if matcher_args.has_key('allow_empty'): del matcher_args['allow_empty']
def __create_matcher( self, match_class, **keywds ): matcher_args = keywds.copy() del matcher_args['function'] del matcher_args['recursive'] if matcher_args.has_key('allow_empty'): del matcher_args['allow_empty']
30,247
def __create_matcher( self, match_class, **keywds ): matcher_args = keywds.copy() del matcher_args['function'] del matcher_args['recursive'] if matcher_args.has_key('allow_empty'): del matcher_args['allow_empty']
def __create_matcher( self, match_class, **keywds ): matcher_args = keywds.copy() del matcher_args['function'] del matcher_args['recursive'] if matcher_args.has_key('allow_empty'): del matcher_args['allow_empty']
30,248
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.debug( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
30,249
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
30,250
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
30,251
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
30,252
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
30,253
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
30,254
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
def __findout_range( self, name, decl_type, recursive ): if not self._optimized: utils.logger.info( 'running non optimized query - optimization has not been done' ) decls = self.declarations if recursive: decls = algorithm.make_flatten( self.declarations ) return decls
30,255
def _find_single( self, match_class, **keywds ): utils.logger.info( 'find single query execution - started' ) start_time = time.clock() norm_keywds = self.__normalize_args( **keywds ) matcher = self.__create_matcher( match_class, **norm_keywds ) dtype = self.__findout_decl_type( match_class, **norm_keywds ) recursive_ ...
def _find_single( self, match_class, **keywds ): utils.logger.debug( 'find single query execution - started' ) start_time = time.clock() norm_keywds = self.__normalize_args( **keywds ) matcher = self.__create_matcher( match_class, **norm_keywds ) dtype = self.__findout_decl_type( match_class, **norm_keywds ) recursive_...
30,256
def _find_single( self, match_class, **keywds ): utils.logger.info( 'find single query execution - started' ) start_time = time.clock() norm_keywds = self.__normalize_args( **keywds ) matcher = self.__create_matcher( match_class, **norm_keywds ) dtype = self.__findout_decl_type( match_class, **norm_keywds ) recursive_ ...
def _find_single( self, match_class, **keywds ): utils.logger.info( 'find single query execution - started' ) start_time = time.clock() norm_keywds = self.__normalize_args( **keywds ) matcher = self.__create_matcher( match_class, **norm_keywds ) dtype = self.__findout_decl_type( match_class, **norm_keywds ) recursive_ ...
30,257
def _find_multiple( self, match_class, **keywds ): utils.logger.info( 'find all query execution - started' ) start_time = time.clock() norm_keywds = self.__normalize_args( **keywds ) matcher = self.__create_matcher( match_class, **norm_keywds ) dtype = self.__findout_decl_type( match_class, **norm_keywds ) recursive_ =...
def _find_multiple( self, match_class, **keywds ): utils.logger.debug( 'find all query execution - started' ) start_time = time.clock() norm_keywds = self.__normalize_args( **keywds ) matcher = self.__create_matcher( match_class, **norm_keywds ) dtype = self.__findout_decl_type( match_class, **norm_keywds ) recursive_ ...
30,258
def _find_multiple( self, match_class, **keywds ): utils.logger.info( 'find all query execution - started' ) start_time = time.clock() norm_keywds = self.__normalize_args( **keywds ) matcher = self.__create_matcher( match_class, **norm_keywds ) dtype = self.__findout_decl_type( match_class, **norm_keywds ) recursive_ =...
def _find_multiple( self, match_class, **keywds ): utils.logger.info( 'find all query execution - started' ) start_time = time.clock() norm_keywds = self.__normalize_args( **keywds ) matcher = self.__create_matcher( match_class, **norm_keywds ) dtype = self.__findout_decl_type( match_class, **norm_keywds ) recursive_ =...
30,259
def enumerations( self, name=None, function=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.enumeration ] , name=name , function=function , decl_type=self._impl_decl_types[ scopedef_t.enumeration ] , header_dir=header_dir , header_...
def enumerations( self, name=None, function=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.enumeration ] , name=name , function=function , decl_type=self._impl_decl_types[ scopedef_t.enumeration ] , header_dir=header_dir , header_...
30,260
def __init__( self ): java_fundamental_t.__init__( self, jboolean_t.JNAME )
def __init__( self ): java_fundamental_t.__init__( self, jboolean_t.JNAME )
30,261
def __read_free_operator(self, attrs ): operator = self.__decl_factory.create_free_operator() self.__read_member_function( operator, attrs ) operator.name = 'operator' + operator.name return operator
def __read_free_operator(self, attrs ): operator = self.__decl_factory.create_free_operator() self.__read_member_function( operator, attrs ) if 'new' in operator.name or 'delete' in operator.name: operator.name = 'operator ' + operator.name else: operator.name = 'operator' + operator.name return operator
30,262
, decl_type=self._impl_decl_types[ scopedef_t.typedef ]
, decl_type=self._impl_decl_types[ scopedef_t.typedef ]
30,263
def __raise_on_wrong_settings(self): if not os.path.isfile( self.__config.gccxml_path ): if sys.platform == 'win32': gccxml_name = 'gccxml' + '.exe' environment_var_delimiter = ';' elif sys.platform == 'linux2': gccxml_name = 'gccxml' environment_var_delimiter = ':' else: raise RuntimeError( 'unable to find out locatio...
def __raise_on_wrong_settings(self): if not os.path.isfile( self.__config.gccxml_path ): if sys.platform == 'win32': gccxml_name = 'gccxml' + '.exe' environment_var_delimiter = ';' elif sys.platform == 'linux2' or sys.platform == 'darwin': gccxml_name = 'gccxml' environment_var_delimiter = ':' else: raise RuntimeError(...
30,264
def __create_command_line(self, file, xmlfile): assert isinstance( self.__config, config.config_t ) #returns cmd = [] #first is gccxml executable if 'win' in sys.platform: cmd.append( '"%s"' % os.path.normpath( self.__config.gccxml_path ) ) else: cmd.append( '%s' % os.path.normpath( self.__config.gccxml_path ) ) #seco...
def __create_command_line(self, file, xmlfile): assert isinstance( self.__config, config.config_t ) #returns cmd = [] #first is gccxml executable if 'win32' in sys.platform: cmd.append( '"%s"' % os.path.normpath( self.__config.gccxml_path ) ) else: cmd.append( '%s' % os.path.normpath( self.__config.gccxml_path ) ) #se...
30,265
def __create_command_line(self, file, xmlfile): assert isinstance( self.__config, config.config_t ) #returns cmd = [] #first is gccxml executable if 'win' in sys.platform: cmd.append( '"%s"' % os.path.normpath( self.__config.gccxml_path ) ) else: cmd.append( '%s' % os.path.normpath( self.__config.gccxml_path ) ) #seco...
def __create_command_line(self, file, xmlfile): assert isinstance( self.__config, config.config_t ) #returns cmd = [] #first is gccxml executable if 'win' in sys.platform: cmd.append( '"%s"' % os.path.normpath( self.__config.gccxml_path ) ) else: cmd.append( '%s' % os.path.normpath( self.__config.gccxml_path ) ) #seco...
30,266
def is_std_string( type ): decl_strings = [ '::std::basic_string<char,std::char_traits<char>,std::allocator<char> >' , '::std::basic_string<char, std::char_traits<char>, std::allocator<char> >' , '::std::string' ] type = remove_alias( type ) return remove_cv( type ).decl_string in decl_strings
def is_std_string( type ): decl_strings = [ '::std::basic_string<char,std::char_traits<char>,std::allocator<char> >' , '::std::basic_string<char, std::char_traits<char>, std::allocator<char> >' , '::std::string' ] if isinstance( type, types.StringTypes ): return type in decl_strings else: type = remove_alias( type ) re...
30,267
def _update_keymap(self, first_keycode, count):
def _update_keymap(self, first_keycode, count):
30,268
def send_request(self, request, wait_for_response):
def send_request(self, request, wait_for_response):
30,269
def pack_value(self, value):
def pack_value(self, value):
30,270
def line(self, gc, x1, y1, x2, y2, onerror = None):
def line(self, gc, x1, y1, x2, y2, onerror = None):
30,271
def parse_event_response(self, etype):
def parse_event_response(self, etype):
30,272
def __init__(self, display = None):
def __init__(self, display = None):
30,273
def keysym_to_keycodes(self, keysym):
def keysym_to_keycodes(self, keysym):
30,274
def _update_keymap(self, first_keycode, count):
def _update_keymap(self, first_keycode, count):
30,275
def _update_keymap(self, first_keycode, count):
def _update_keymap(self, first_keycode, count):
30,276
def _update_keymap(self, first_keycode, count):
def _update_keymap(self, first_keycode, count):
30,277
def _update_keymap(self, first_keycode, count):
def _update_keymap(self, first_keycode, count):
30,278
def _update_keymap(self, first_keycode, count):
def _update_keymap(self, first_keycode, count):
30,279
def _update_keymap(self, first_keycode, count):
def _update_keymap(self, first_keycode, count):
30,280
def refresh_keyboard_mapping(self, evt): """This method should be called once when a MappingNotify event is received, to update the keymap cache. evt should be the event object."""
def refresh_keyboard_mapping(self, evt): """This method should be called once when a MappingNotify event is received, to update the keymap cache. evt should be the event object."""
30,281
def refresh_keyboard_mapping(self, evt):
def refresh_keyboard_mapping(self, evt):
30,282
def next_event(self):
def next_event(self):
30,283
def send_and_recv(self, flush = None, event = None, request = None, recv = None):
def send_and_recv(self, flush = None, event = None, request = None, recv = None):
30,284
def send_and_recv(self, flush = None, event = None, request = None, recv = None):
def send_and_recv(self, flush = None, event = None, request = None, recv = None):
30,285
def send_and_recv(self, flush = None, event = None, request = None, recv = None):
defsend_and_recv(self,flush=None,event=None,request=None,recv=None):
30,286
def send_and_recv(self, flush = None, event = None, request = None, recv = None):
def send_and_recv(self, flush = None, event = None, request = None, recv = None):
30,287
def send_and_recv(self, flush = None, event = None, request = None, recv = None):
def send_and_recv(self, flush = None, event = None, request = None, recv = None):
30,288
def get_socket(dname, host, dno): try: # If hostname (or IP) is provided, use TCP socket if host: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, 6000 + dno)) # Else use Unix socket else: s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.connect('/tmp/.X11-unix/X%d' % dno) except socket.er...
def get_socket(dname, host, dno): try: # If hostname (or IP) is provided, use TCP socket if host: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, 6000 + dno)) # Else use Unix socket else: s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.connect('/tmp/.X11-unix/X%d' % dno) except socket.er...
30,289
def __len__(self):
def __len__(self):
30,290
def initialize(self, application): BaseSolver.initialize(self. application)
def initialize(self, application): BaseSolver.initialize(self. application)
30,291
def setProperties(self):
def setProperties(self):
30,292
def write(self, filename, grid): fp = file(filename, 'w') header = '%d x %d x %d\n' % (grid['nox'], grid['noy'], grid['noz']) #print header fp.write(header)
def write(self, filename, grid): fp = file(filename, 'w') header = '%d x %d x %d\n' % (grid['nox'], grid['noy'], grid['noz']) #print header fp.write(header)
30,293
def setProperties(self): import CitcomS.Regional as Regional
def setProperties(self): import CitcomS.Regional as Regional
30,294
def setProperties(self): import CitcomS.Regional as Regional
def setProperties(self): import CitcomS.Regional as Regional
30,295
def controller(name="controller"): return Controller(name)
def controller(name="controller"): return Controller(name)
30,296
def setProperties(self): print 'in output.py' from CitcomSLib import Output_set_properties Output_set_properties(self.all_variables, self.inventory) return
def setProperties(self): from CitcomSLib import Output_set_properties Output_set_properties(self.all_variables, self.inventory) return
30,297
def launch(self, application): BaseSolver.launch(self, application)
def launch(self, application): BaseSolver.launch(self, application)
30,298
def setProperties(self): self.CitcomModule.Solver_set_properties(self.all_variables, self.inventory)
def setProperties(self): self.CitcomModule.Solver_set_properties(self.all_variables, self.inventory)
30,299