  
  def expand_exc(excs, search, replace):
      def _fix_token(token, search, replace):
          fixed = dict(token)
          fixed[ORTH] = fixed[ORTH].replace(search, replace)
          return fixed
      new_excs = dict(excs)
 
</s> remove     if type(data) == dict:
 </s> add     if isinstance(data, dict): </s> remove         if package.project_name.replace('-', '_') == origin:
 </s> add         if package.project_name.replace('-', '_') == name: </s> remove     """
    Get user input via raw_input / input and return input value. Takes a
    description, and an optional default value to display with the prompt.
 </s> add     """Get user input from the command line via raw_input / input.

    Args:
        description (unicode): Text to display before prompt.
        default (unicode or False/None): Default value to display with prompt.
    Returns:
        unicode: User input.
    """Find string in tokenizer exceptions, duplicate entry and replace string.
    For example, to add additional versions with typographic apostrophes.

    Args:
        excs (dict): Tokenizer exceptions.
        search (unicode): String to find and replace.
        replace (unicode): Replacement.
    Returns:
        dict:
    """
  
  def expand_exc(excs, search, replace):
    """Find string in tokenizer exceptions, duplicate entry and replace string.
    For example, to add additional versions with typographic apostrophes.

    Args:
        excs (dict): Tokenizer exceptions.
        search (unicode): String to find and replace.
        replace (unicode): Replacement.
    Returns:
        dict:
    """
      def _fix_token(token, search, replace):
          fixed = dict(token)
          fixed[ORTH] = fixed[ORTH].replace(search, replace)
          return fixed
      new_excs = dict(excs)
keep add keep keep keep keep keep
 Add docstrings, error messages and fix consistency 
spacy/util.py