bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def initializePLY(): lextabname = "expressionlextab" yacctabname = "expressionparsetab" lex.lex( lextab=lextabname, optimize=1 )
def initializePLY(): lextabname = "expressionlextab" yacctabname = "expressionparsetab" lex.lex( lextab=lextabname, optimize=1 )
34,600
def getVariableReferenceId( aVariableReference ): aFastColon = string.index( aVariableReference, ':' ) aLastColon = string.rindex( aVariableReference, ':' ) # set Species Id to Reactant object if ( aVariableReference[aFastColon+1:aLastColon] == '.' ): aSpeciesReferencePath = string.replace( aReactionPath[1:], '/', '...
def getVariableReferenceId( aVariableReference ): aFirstColon = string.index( aVariableReference, ':' ) aLastColon = string.rindex( aVariableReference, ':' ) # set Species Id to Reactant object if ( aVariableReference[aFastColon+1:aLastColon] == '.' ): aSpeciesReferencePath = string.replace( aReactionPath[1:], '/', ...
34,601
def getVariableReferenceId( aVariableReference ): aFastColon = string.index( aVariableReference, ':' ) aLastColon = string.rindex( aVariableReference, ':' ) # set Species Id to Reactant object if ( aVariableReference[aFastColon+1:aLastColon] == '.' ): aSpeciesReferencePath = string.replace( aReactionPath[1:], '/', '...
def getVariableReferenceId( aVariableReference ): aFastColon = string.index( aVariableReference, ':' ) aLastColon = string.rindex( aVariableReference, ':' ) # set Species Id to Reactant object if ( aVariableReference[aFirstColon+1:aLastColon] == '.' ): if ( aReactionPath[1:] == '' ): return aVariableReference[aLas...
34,602
def getVariableReferenceId( aVariableReference ): aFastColon = string.index( aVariableReference, ':' ) aLastColon = string.rindex( aVariableReference, ':' ) # set Species Id to Reactant object if ( aVariableReference[aFastColon+1:aLastColon] == '.' ): aSpeciesReferencePath = string.replace( aReactionPath[1:], '/', '...
def getVariableReferenceId( aVariableReference ): aFastColon = string.index( aVariableReference, ':' ) aLastColon = string.rindex( aVariableReference, ':' ) # set Species Id to Reactant object if ( aVariableReference[aFastColon+1:aLastColon] == '.' ): aSpeciesReferencePath = string.replace( aReactionPath[1:], '/', '...
34,603
def animate( self ): if ( self.__running ):
def animate( self ): if ( self.__running ):
34,604
def __init__( self, aSession ):
def __init__( self, aSession ):
34,605
def openWindow( self ):
def openWindow( self ):
34,606
def openWindow( self ):
def openWindow( self ):
34,607
def openWindow( self ):
def openWindow( self ):
34,608
def openWindow( self ):
def openWindow( self ):
34,609
def openWindow( self ):
def openWindow( self ):
34,610
def openWindow( self ):
def openWindow( self ):
34,611
def openWindow( self ):
def openWindow( self ):
34,612
def __setMenuAndButtonsStatus( self, aDataLoadedStatus ): """sets initial widgets status aDataLoadedStatus -- the status of loading data (TRUE:Model or Script is loaded / FALSE:Not loaded) Returns None """
def __setMenuAndButtonsStatus( self, aDataLoadedStatus ): """sets initial widgets status aDataLoadedStatus -- the status of loading data (TRUE:Model or Script is loaded / FALSE:Not loaded) Returns None """
34,613
def __loadData( self, *arg ) : """loads model or script file arg[0] --- ok button of FileSelection arg[1] --- 'Model'/'Script' (str) Return None """
def __loadData( self, *arg ) : """loads model or script file arg[0] --- ok button of FileSelection arg[1] --- 'Model'/'Script' (str) Return None """
34,614
def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) )
def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) )
34,615
def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) )
def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) )
34,616
def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) )
defaRealTime = time.time() update(aRealTime = time.time() selfaRealTime = time.time() ):aRealTime = time.time() """updatesaRealTime = time.time() thisaRealTime = time.time() windowaRealTime = time.time() ReturnsaRealTime = time.time() NoneaRealTime = time.time() """aRealTime = time.time() ifaRealTime = time.time() nota...
34,617
def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) )
def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) )
34,618
def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) )
def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) )
34,619
def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) )
def def getCurrentTime( self, aTime ): theTime = self.datetime.fromtimestamp( aTime ) return str( theTime.hour-9 )+" : "+str( theTime.minute ) + " : " + str( theTime.second ) update( def getCurrentTime( self, aTime ): theTime = self.datetime.fromtimestamp( aTime ) return str( theTime.hour-9 )+" : "+str( theTime....
34,620
def __displayToolbar( self, *arg ): # show Toolbar
def __displayToolbar( self, *arg ): # show Toolbar
34,621
def __displayRealtime( self, *arg ): # show Indicator
def __displayTimer( self, *arg ): # show Indicator
34,622
def __displayRealtime( self, *arg ): # show Indicator
def __displayRealtime( self, *arg ): # show Indicator
34,623
def __displayRealtime( self, *arg ): # show Indicator
def __displayRealtime( self, *arg ): # show Indicator
34,624
def __displayRealtime( self, *arg ): # show Indicator
def __displayRealtime( self, *arg ): # show Indicator
34,625
def __displayRealtime( self, *arg ): # show Indicator
def __displayRealtime( self, *arg ): # show Indicator
34,626
def __displayRealtime( self, *arg ): # show Indicator
def __displayRealtime( self, *arg ): # show Indicator
34,627
def __clearRealTime( self, *arg ):
def __clearRealTime( self, *arg ):
34,628
def createEntityListWindow( self, rootWidget = 'EntityListWindow', aStatusBar=None ): """creates and returns an EntityListWindow """ anEntityListWindow = None
def createEntityListWindow( self, rootWidget = 'EntityListWindow', aStatusBar=None ): """creates and returns an EntityListWindow """ anEntityListWindow = None
34,629
def __updateByTimeOut( self, arg ): """when time out, calls updates method() Returns None """ if not gtk.events_pending(): self.updateWindows() if self.stuckRequests > 0: self.stuckRequests -= 1 elif self.theUpdateInterval >300: self.theUpdateInterval /=2 else: self.stuckRequests +=1 if self.stuckRequests >20: self.the...
def __updateByTimeOut( self, arg ): """when time out, calls updates method() Returns None """ if not gtk.events_pending(): self.updateWindows() if self.stuckRequests > 0: self.stuckRequests -= 1 elif self.theUpdateInterval >=225: self.theUpdateInterval /=1.5 else: self.stuckRequests +=1 if self.stuckRequests >20: self....
34,630
def __updateByTimeOut( self, arg ): """when time out, calls updates method() Returns None """ if not gtk.events_pending(): self.updateWindows() if self.stuckRequests > 0: self.stuckRequests -= 1 elif self.theUpdateInterval >300: self.theUpdateInterval /=2 else: self.stuckRequests +=1 if self.stuckRequests >20: self.the...
def __updateByTimeOut( self, arg ): """when time out, calls updates method() Returns None """ if not gtk.events_pending(): self.updateWindows() if self.stuckRequests > 0: self.stuckRequests -= 1 elif self.theUpdateInterval >300: self.theUpdateInterval /=2 else: self.stuckRequests +=1 if self.stuckRequests >20: self.the...
34,631
def saveAll(self):
def saveAll(self):
34,632
def p_property(t): ''' property : name valuelist SEMI ''' if type(t[2]) == str: t[2] = [t[2]] if t.type == 'Stepper': anEml.setStepperProperty(t.id, t[1], t[2]) else: anEml.setEntityProperty(t.id, t[1], t[2]) #t[0] = t[1], t[2]
def p_property(t): ''' property : name valuelist SEMI ''' if type(t[2]) == str: t[2] = [t[2]] if t.type == 'Stepper': anEml.setStepperProperty(t.id, t[1], t[2]) else: anEml.setEntityProperty(t.id, t[1], t[2]) #t[0] = t[1], t[2]
34,633
#def p_matrix(t):
#def p_matrix(t):
34,634
def convertEm2Eml( anEmFileObject, debug=0 ): # initialize eml object global anEml anEml = ecell.eml.Eml() # Build the lexer aLexer = lex.lex(lextab="emlextab") # Tokenizen test.. #while debug == 1: # Give the lexer some input for test # lex.input(anEmFileObject.read()) # tok = aLexer.token( anEmFileObject.re...
def convertEm2Eml( anEmFileObject, debug=0 ): # initialize eml object global anEml anEml = anEmlObject # Build the lexer aLexer = lex.lex(lextab="emlextab") # Tokenizen test.. #while debug == 1: # Give the lexer some input for test # lex.input(anEmFileObject.read()) # tok = aLexer.token( anEmFileObject.read()...
34,635
def convertEm2Eml( anEmFileObject, debug=0 ): # initialize eml object global anEml anEml = ecell.eml.Eml() # Build the lexer aLexer = lex.lex(lextab="emlextab") # Tokenizen test.. #while debug == 1: # Give the lexer some input for test # lex.input(anEmFileObject.read()) # tok = aLexer.token( anEmFileObject.re...
defconvertEm2Eml(anEmFileObject,debug=0):#initializeemlobjectglobalanEmlanEml=ecell.eml.Eml()#BuildthelexeraLexer=lex.lex(lextab="emlextab")#Tokenizentest..#whiledebug==1:#Givethelexersomeinputfortest#lex.input(anEmFileObject.read())#tok=aLexer.token(anEmFileObject.read())#ifnottok:break#Nomoreinput#printtok#ParsingaPa...
34,636
def __init__(self, aSimulator = None ): """sets up the osogo session, creates Mainwindow and other fundamental windows but doesn't show them"""
def __init__(self, aSimulator = None ): """sets up the osogo session, creates Mainwindow and other fundamental windows but doesn't show them"""
34,637
def __updateByTimeOut( self, arg ): """when time out, calls updates method() Returns None """ self.updateWindows() self.theTimer = gtk.timeout_add( self.theUpdateInterval, self.__updateByTimeOut, 0 )
def __updateByTimeOut( self, arg ): """when time out, calls updates method() Returns None """ if not gtk.events_pending(): self.updateWindows() self.theTimer = gtk.timeout_add( self.theUpdateInterval, self.__updateByTimeOut, 0 )
34,638
def setUpdateInterval(self, Secs): # "plugins are refreshed every secs seconds" self.theMainWindow.theUpdateInterval = Secs
def setUpdateInterval(self, Secs): # "plugins are refreshed every secs seconds" self.theMainWindow.theUpdateInterval = Secs
34,639
def __pasteConnectionObjectBuffer( self, aLayout, conBuffer, translationList ): anID = conBuffer.getID() processID = conBuffer.getProperty( CO_PROCESS_ATTACHED )
def __pasteConnectionObjectBuffer( self, aLayout, conBuffer, translationList ): anID = conBuffer.getID() processID = conBuffer.getProperty( CO_PROCESS_ATTACHED )
34,640
def __pasteConnectionObjectBuffer( self, aLayout, conBuffer, translationList ): anID = conBuffer.getID() processID = conBuffer.getProperty( CO_PROCESS_ATTACHED )
def __pasteConnectionObjectBuffer( self, aLayout, conBuffer, translationList ): anID = conBuffer.getID() processID = conBuffer.getProperty( CO_PROCESS_ATTACHED )
34,641
def __pasteConnectionObjectBuffer( self, aLayout, conBuffer, translationList ): anID = conBuffer.getID() processID = conBuffer.getProperty( CO_PROCESS_ATTACHED )
def __pasteConnectionObjectBuffer( self, aLayout, conBuffer, translationList ): anID = conBuffer.getID() processID = conBuffer.getProperty( CO_PROCESS_ATTACHED )
34,642
def __pasteConnectionObjectBuffer( self, aLayout, conBuffer, translationList ): anID = conBuffer.getID() processID = conBuffer.getProperty( CO_PROCESS_ATTACHED )
def __pasteConnectionObjectBuffer( self, aLayout, conBuffer, translationList ): anID = conBuffer.getID() processID = conBuffer.getProperty( CO_PROCESS_ATTACHED )
34,643
def __pasteConnectionObjectBuffer( self, aLayout, conBuffer, translationList ): anID = conBuffer.getID() processID = conBuffer.getProperty( CO_PROCESS_ATTACHED )
def __pasteConnectionObjectBuffer( self, aLayout, conBuffer, translationList ): anID = conBuffer.getID() processID = conBuffer.getProperty( CO_PROCESS_ATTACHED )
34,644
def loadModel( self, aModel ): # aModel : an EML instance, a file name (string) or a file object # return -> None # This method can thwor exceptions.
def loadModel( self, aModel ): # aModel : an EML instance, a file name (string) or a file object # return -> None # This method can thwor exceptions.
34,645
def setValue( self, aFullPN, aValue ):
def setValue( self, aFullPN, aValue ):
34,646
def createLogger( self, *objects ):
def createLogger( self, *objects ):
34,647
def changeFullPN( self, anObject ):
def changeFullPN( self, anObject ):
34,648
def __init__( self, aSBMLDocument, aSBMLmodel ):
def __init__( self, aSBMLDocument, aSBMLmodel ):
34,649
def getConstant( self, aSpecies ):
def getConstant( self, aSpecies ):
34,650
def getConstant( self, aSpecies ):
def getConstant( self, aSpecies ):
34,651
def __buttonPressed( self, *args ): event = args[2] if event.button = gtk.gdk._2BUTTON_PRESS self.__popUpMenu() return gtk.TRUE
def __buttonPressed( self, *args ): event = args[2] if event.button == gtk.gdk._2BUTTON_PRESS: self.__popUpMenu() return gtk.TRUE
34,652
def __popUpMenu(self ): aMenu = gtk.Menu() addItem = gtk.MenuItem( "Add" ) addItem.connect("activate", self.__addAction ) aMenu.append( addItem ) selectedIter = self.__getSelectedIter() if selectedIter != None:
defselectedFullID = self.__getSelectedFullID() if selectedFullID == None: isFullIDReal = False else: isFullIDReal = self.__doesExistEntity( selectedFullID ) openItem = gtk.MenuItem( "Open" ) if isFullIDReal: openItem.connect( "activate", self.__openAction, selectedFullID ) else: openItem.set_sensitive( gtk.FALSE ) aMe...
34,653
def __popUpMenu(self ): aMenu = gtk.Menu() addItem = gtk.MenuItem( "Add" ) addItem.connect("activate", self.__addAction ) aMenu.append( addItem ) selectedIter = self.__getSelectedIter() if selectedIter != None:
def __popUpMenu(self ): aMenu = gtk.Menu() addItem = gtk.MenuItem( "Add" ) addItem.connect("activate", self.__addAction ) aMenu.append( addItem ) deleteItem = gtk.MenuItem( "Delete" ) if selectedIter != None:
34,654
def __popUpMenu(self ): aMenu = gtk.Menu() addItem = gtk.MenuItem( "Add" ) addItem.connect("activate", self.__addAction ) aMenu.append( addItem ) selectedIter = self.__getSelectedIter() if selectedIter != None:
def __popUpMenu(self ): aMenu = gtk.Menu()deleteItem.connect( "activate", self.__deleteAction, anIter ) else: deleteItem.set_sensitive( gtk.FALSE ) aMenu.append( addItem ) aMenu.popup( None, None, None, 1, 0 ) def __openAction( self, *args ): aFullIDString = args[1] self.theSession.thePluginManager.createInstance( "P...
34,655
def __init__( self, gladefile=None, root=None ):
def __init__( self, gladefile=None, root=None ):
34,656
def p_stmts(t): ''' stmts : stmts stmt | stmt ''' t[0] = createList( 'stmts', t)
def p_stmts(t): ''' stmts : stmts stmt | stmt ''' t[0] = createListleft( t )
34,657
def p_stmt(t): ''' stmt : stepper_stmt | system_stmt ''' t[0] = createList( 'stmt', t )
def p_stmt(t): ''' stmt : stepper_stmt | system_stmt ''' t[0] = t[1]
34,658
def p_stepper_stmt(t): ''' stepper_stmt : stepper_object_decl LBRACE propertylist RBRACE ''' t[0] = t[1], t[2], t[4]
def p_stepper_stmt(t): ''' stepper_stmt : stepper_object_decl LBRACE propertylist RBRACE ''' t[0] = t[1], t[3]
34,659
def p_system_stmt(t): ''' system_stmt : system_object_decl LBRACE property_entity_list RBRACE ''' t[0] = t[1], t[2], t[4]
def p_system_stmt(t): ''' system_stmt : system_object_decl LBRACE property_entity_list RBRACE ''' t[0] = t[1], t[3]
34,660
def p_entity_other_stmt (t): ''' entity_other_stmt : entity_other_object_decl LBRACE propertylist RBRACE ''' t[4] = flatten_propertylist(t[4]) t[0] = t[1], t[2], t[4]
def p_entity_other_stmt (t): ''' entity_other_stmt : entity_other_object_decl LBRACE propertylist RBRACE ''' t[0] = t[1], t[3]
34,661
def p_propertylist(t): ''' propertylist : property propertylist | property | empty ''' t[0] = createList( 'propertylist', t )
def p_propertylist(t): ''' propertylist : propertylist property | property | empty ''' t[0] = createList( 'propertylist', t )
34,662
def p_propertylist(t): ''' propertylist : property propertylist | property | empty ''' t[0] = createList( 'propertylist', t )
def p_propertylist(t): ''' propertylist : property propertylist | property | empty ''' t[0] = createListleft( t )
34,663
def p_property(t): ''' property : name value SEMI ''' t[2] = flatten_nodelist(t[2]) if t.type == 'Stepper': anEml.setStepperProperty(t.id, t[1], t[2]) else: anEml.setEntityProperty(t.fullid, t[1], t[2]) t[0] = t[1], t[2]
def p_property(t): ''' property : name value SEMI ''' if type(t[2]) == str: t[2] = [t[2]] if t.type == 'Stepper': anEml.setStepperProperty(t.id, t[1], t[2]) else: anEml.setEntityProperty(t.fullid, t[1], t[2]) t[0] = t[1], t[2]
34,664
def p_property_entity_list(t): ''' property_entity_list : property_entity_list property_entity | property_entity | empty ''' t[0] = createList( 'property_entity_list', t )
def p_property_entity_list(t): ''' property_entity_list : property_entity_list property_entity | property_entity | empty ''' t[0] = createListleft( t )
34,665
def p_property_entity(t): ''' property_entity : property | entity_other_stmt ''' t[0] = createList( 'property_entity', t )
def p_property_entity(t): ''' property_entity : property | entity_other_stmt ''' t[0] = t[1]
34,666
def p_value(t): ''' value : quotedstring | name | number | matrixlist ''' t[0] = createList( 'value', t )
def p_value(t): ''' value : quotedstring | name | number | matrixlist ''' t[0] = t[1]
34,667
def p_valuelist(t): ''' valuelist : value valuelist | value ''' t[0] = createList( 'valuelist', t )
def p_valuelist(t): ''' valuelist : valuelist value | value ''' t[0] = createList( 'valuelist', t )
34,668
def p_valuelist(t): ''' valuelist : value valuelist | value ''' t[0] = createList( 'valuelist', t )
def p_valuelist(t): ''' valuelist : value valuelist | value ''' t[0] = createListleft( t )
34,669
def p_matrix(t): ''' matrix : LBRACKET valuelist RBRACKET ''' t[0] = flatten_nodetree(t[2])
def p_matrix(t): ''' matrix : LBRACKET valuelist RBRACKET ''' t[0] = t[2]
34,670
def p_matrixlist(t): ''' matrixlist : matrix matrixlist | matrix ''' t[0] = createList( 'matrixlist', t )
def p_matrixlist(t): ''' matrixlist : matrixlist matrix | matrix ''' t[0] = createList( 'matrixlist', t )
34,671
def p_matrixlist(t): ''' matrixlist : matrix matrixlist | matrix ''' t[0] = createList( 'matrixlist', t )
def p_matrixlist(t): ''' matrixlist : matrix matrixlist | matrix ''' t[0] = createList( 'matrixlist', t )
34,672
def createList( type, t): length = len(t.slice) - 1 if length != 1: aList = [] i = 1 while i <= length: aList.append( t[i] ) i = i + 1 return aList elif t[1] == None: return [] else: return t[1]
def createListleft( t ): if hasattr(t, 'slice'): length = len(t.slice) - 1 else: return [t] if length == 2: aList = t[1] aList.append( t[2] ) return aList elif t[1] == None: return [] else: return t[1]
34,673
def createList( type, t): length = len(t.slice) - 1 if length != 1: aList = [] i = 1 while i <= length: aList.append( t[i] ) i = i + 1 return aList elif t[1] == None: return [] else: return t[1]
def createList( type, t): length = len(t.slice) - 1 if length != 1: aList = [] i = 1 while i <= length: aList.append( t[i] ) i = i + 1 return aList elif t[1] == None: return [] else: return t[1]
34,674
def main(): # ------------------------------------- # initialize file names # ------------------------------------- anEmlFile = None anEssFile = None # ------------------------------------- # gets options # ------------------------------------- try: opts , args = getopt.getopt( sys.argv[1:] , 'he:f:', ["help", "exec=...
def main(): # ------------------------------------- # initialize file names # ------------------------------------- anEmlFile = None anEssFile = None # ------------------------------------- # gets options # ------------------------------------- try: opts , args = getopt.getopt( sys.argv[1:] , 'he:f:', ["help", "exec=...
34,675
def __checkArgs( self ): if type (self._Command__theReceiver) == 'object': if self._Command__theReceiver.__class__.__name__ == 'Layout': return True
def __checkArgs( self ): if type (self._Command__theReceiver) == 'object': if self._Command__theReceiver.__class__.__name__ == 'Layout': return True
34,676
def __checkArgs( self ): if type (self._Command__theReceiver) == 'object': if self._Command__theReceiver.__class__.__name__ == 'Layout': return True
def __checkArgs( self ): if type (self._Command__theReceiver) == 'object': if self._Command__theReceiver.__class__.__name__ == 'Layout': return True
34,677
def __checkArgs( self ): if type (self._Command__theReceiver) == 'object': if self._Command__theReceiver.__class__.__name__ == 'Layout': return True
def __checkArgs( self ): if type (self._Command__theReceiver) == 'object': if self._Command__theReceiver.__class__.__name__ == 'Layout': return True
34,678
def drawPoint(self, aColor, x, y, lastx, lasty ): #get datapoint x y values
def drawPoint(self, aColor, x, y, lastx, lasty ): #get datapoint x y values
34,679
def printList( sim, primitivetype, systempath,list ): for i in list: printAllProperties( sim, ( primitivetype, systempath, i ) )
def printList( sim, primitivetype, systempath,list ): for i in list: printAllProperties( sim, ( primitivetype, systempath, i ) )
34,680
def getSBaseAnnotation( sbaseObj, pn, aXMLNamespaceList ): propertyName = '%s:%s' % ( ECELL_XML_NAMESPACE_PREFIX, pn ) if sbaseObj.isSetAnnotation(): annotationString = '<xml' for i in range( aXMLNamespaceList.getLength() ): annotationString += ' xmlns:%s="%s"' % ( aXMLNamespaceList.getPrefix( i ), aXMLNamespaceList....
def getSBaseAnnotation( sbaseObj, pn, aXMLNamespaceList ): propertyName = '%s:%s' % ( ECELL_XML_NAMESPACE_PREFIX, pn ) if sbaseObj.isSetAnnotation(): annotationString = '<xml' for i in range( aXMLNamespaceList.getLength() ): annotationString += ' xmlns:%s="%s"' % ( aXMLNamespaceList.getPrefix( i ), aXMLNamespaceList....
34,681
def p_property(t): ''' property : name value SEMI ''' if type(t[2]) == str: t[2] = [t[2]] if t.type == 'Stepper': anEml.setStepperProperty(t.id, t[1], t[2]) else: anEml.setEntityProperty(t.fullid, t[1], t[2]) t[0] = t[1], t[2]
def p_property(t): ''' property : name valuelist SEMI ''' if type(t[2]) == str: t[2] = [t[2]] if t.type == 'Stepper': anEml.setStepperProperty(t.id, t[1], t[2]) else: anEml.setEntityProperty(t.fullid, t[1], t[2]) t[0] = t[1], t[2]
34,682
def p_value(t): ''' value : quotedstring | name | number | matrixlist ''' t[0] = t[1]
def p_value(t): ''' value : quotedstring | name | number | LBRACKET valuelist RBRACKET ''' if t[1] == '[': t[0] = t[2] else: t[0] = t[1]
34,683
def p_matrix(t): ''' matrix : LBRACKET valuelist RBRACKET ''' t[0] = t[2]
def p_matrix(t): ''' matrix : LBRACKET valuelist RBRACKET ''' t[0] = t[2]
34,684
def __loadEntity( self, aSystemPath='/' ):
def __loadEntity( self, aSystemPath='/' ):
34,685
def __init__( self, aDirName, aData, aPluginManager, aRoot=None ):
def __init__( self, aDirName, aData, aPluginManager, aRoot=None ):
34,686
def __init__( self, aDirName, aData, aPluginManager, aRoot=None ):
def__init__(self,aDirName,aData,aPluginManager,aRoot=None):
34,687
def __init__( self, aDirName, aData, aPluginManager, aRoot=None ):
def __init__( self, aDirName, aData, aPluginManager, aRoot=None ):
34,688
def __init__( self, aDirName, aData, aPluginManager, aRoot=None ):
def __init__( self, aDirName, aData, aPluginManager, aRoot=None ):
34,689
def update( self ):
defupdate(self):
34,690
def update( self ):
def update( self ):
34,691
def increaseValue( self, obj ):
def increaseValue( self, obj ):
34,692
def test( self, obj ): print 'you did it'
def test( self, obj ): print 'you did it'
34,693
def parse(self,input=None,lexer=None,debug=0): lookahead = None # Current lookahead symbol lookaheadstack = [ ] # Stack of lookahead symbols actions = self.action # Local reference to action table goto = self.goto # Local reference to goto table prod = self.prod...
def parse(self,input=None,lexer=None,debug=0): lookahead = None # Current lookahead symbol lookaheadstack = [ ] # Stack of lookahead symbols actions = self.action # Local reference to action table goto = self.goto # Local reference to goto table prod = self.prod...
34,694
def initialize_vars(): global Productions, Prodnames, Prodmap, Terminals global Nonterminals, First, Follow, Precedence, LRitems global Errorfunc, Signature, Requires Productions = [None] # A list of all of the productions. The first # entry is always reserved for the purpose of # building an augmented grammar Pro...
def initialize_vars(): global Productions, Prodnames, Prodmap, Terminals global Nonterminals, First, Follow, Precedence, LRitems global Errorfunc, Signature, Requires Productions = [None] # A list of all of the productions. The first # entry is always reserved for the purpose of # building an augmented grammar Pro...
34,695
def listEntity( self, aEntityTypeString, aSystemFullID ):
def listEntity( self, aEntityTypeString, aSystemFullID ):
34,696
def __loadRecentFileList ( self ): """ in: nothing returns nothing """ self.__theRecentFileList = [] aFileName = os.path.expanduser( RECENTFILELIST_FILENAME )
def __loadRecentFileList ( self ): """ in: nothing returns nothing """ self.__theRecentFileList = [] aFileName = os.path.expanduser( RECENTFILELIST_FILENAME )
34,697
def __saveRecentFileList ( self ): """ in: nothing returns nothing """ # creates recentfiledir if does not exist aDirName = self.__getHomeDir() + os.sep + RECENTFILELIST_DIRNAME if not os.path.isdir( aDirName ): os.mkdir( aDirName )
def__saveRecentFileList(self):"""in:nothingreturnsnothing"""#createsrecentfiledirifdoesnotexistaDirName=self.__getHomeDir()+os.sep+RECENTFILELIST_DIRNAMEifnotos.path.isdir(aDirName):os.mkdir(aDirName)
34,698
def deleteEntityProperty( self, aFullID, aPropertyName ):
def deleteEntityProperty( self, aFullID, aPropertyName ):
34,699