original_docstring: 
          When a State changes to done necessary startup and cleanup functions
          are called and the current State is changed.
          
docstring: When a State changes to done necessary startup and cleanup functions
  are called and the current State is changed.
docstring_tokens: When a State changes to done necessary startup and cleanup functions are called and the current State is changed .
code: def flip_state(self):
          """
          When a State changes to done necessary startup and cleanup functions
          are called and the current State is changed.
          """
          previous, self.state_name = self.state_name, self.state.next
          persist = self.state.cleanup()
          self.state = self.state_dict[self.state_name]
          self.state.startup(self.now, persist)
          self.state.previous = previous
code_tokens: def flip_state ( self ) : previous , self . state_name = self . state_name , self . state . next persist = self . state . cleanup ( ) self . state = self . state_dict [ self . state_name ] self . state . startup ( self . now , persist ) self . state . previous = previous
short_docstring: When a State changes to done necessary startup and cleanup functions
  are called and the current State is changed.
short_docstring_tokens: When a State changes to done necessary startup and cleanup functions are called and the current State is changed .
comment: """
          When a State changes to done necessary startup and cleanup functions
          are called and the current State is changed.
          """