original_docstring: 
          Remove all children. Makes sure to stop each child if necessary.
          
docstring: Remove all children. Makes sure to stop each child if necessary.
docstring_tokens: Remove all children . Makes sure to stop each child if necessary .
code: def remove_all_children(self):
          """
          Remove all children. Makes sure to stop each child if necessary.
          """
          for child in self.children:
              if child.status == Status.RUNNING:
                  child.stop(Status.INVALID)
          # makes sure to delete it for this class and all references to it
          #   http://stackoverflow.com/questions/850795/clearing-python-lists
          del self.children[:]
code_tokens: def remove_all_children ( self ) : for child in self . children : if child . status == Status . RUNNING : child . stop ( Status . INVALID ) del self . children [ : ]
short_docstring: Remove all children.
short_docstring_tokens: Remove all children .
comment: """
          Remove all children. Makes sure to stop each child if necessary.
          """$SEP$# makes sure to delete it for this class and all references to it$SEP$#   http://stackoverflow.com/questions/850795/clearing-python-lists