original_docstring: Verifies syntax of simulation is correct
  
      Args:
          folder (str): what to validate
      Returns:
          str: cleaned up folder name
      
docstring: Verifies syntax of simulation is correct
docstring_tokens: Verifies syntax of simulation is correct
code: def parse_name(name):
      """Verifies syntax of simulation is correct
  
      Args:
          folder (str): what to validate
      Returns:
          str: cleaned up folder name
      """
      if name is None:
          name = ''
      else:
          # ignore leading and trailing spaces
          name = name.strip()
      # don't raise an error on invalid name - the client is not looking for them
      # instead, remove illegal characters and throw an error if nothing is left
      name = re.sub(_NAME_ILLEGALS_RE, '', name)
      name = re.sub(_NAME_ILLEGAL_PERIOD, '', name)
      if len(name) == 0:
          raise util.Error('blank name')
      return name
code_tokens: def parse_name ( name ) : if name is None : name = '' else : name = name . strip ( ) name = re . sub ( _NAME_ILLEGALS_RE , '' , name ) name = re . sub ( _NAME_ILLEGAL_PERIOD , '' , name ) if len ( name ) == 0 : raise util . Error ( 'blank name' ) return name
short_docstring: Verifies syntax of simulation is correct
short_docstring_tokens: Verifies syntax of simulation is correct
comment: """Verifies syntax of simulation is correct
  
      Args:
          folder (str): what to validate
      Returns:
          str: cleaned up folder name
      """$SEP$# ignore leading and trailing spaces$SEP$# don't raise an error on invalid name - the client is not looking for them$SEP$# instead, remove illegal characters and throw an error if nothing is left