parameters: (self, vote=None)
return_statement: return self.is_removed
docstring: Mark comment to be hidden instead of displayed entirely.
docstring_summary: Mark comment to be hidden instead of displayed entirely.
docstring_tokens: Mark comment to be hidden instead of displayed entirely .
function: def toggle(self, vote=None):
          """ Mark comment to be hidden instead of displayed entirely.
          """
          if not self.is_removed:
              self.is_removed = True
          else:
              self.is_removed = False
          if vote is not None:
              self.reason = vote
          self.save()
          if self.is_removed:
              notify_author(self)
          return self.is_removed
function_tokens: def toggle ( self , vote = None ) : if not self . is_removed : self . is_removed = True else : self . is_removed = False if vote is not None : self . reason = vote self . save ( ) if self . is_removed : notify_author ( self ) return self . is_removed