code: def stats():
      '''
      Returns statistics about the locate database
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' locate.stats
      '''
      ret = {}
      cmd = 'locate -S'
      out = __salt__['cmd.run'](cmd).splitlines()
      for line in out:
          comps = line.strip().split()
          if line.startswith('Database'):
              ret['database'] = comps[1].replace(':', '')
              continue
          ret[' '.join(comps[1:])] = comps[0]
      return ref stats():
      '''
      Returns statistics about the locate database
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' locate.stats
      '''
      ret = {}
      cmd = 'locate -S'
      out = __salt__['cmd.run'](cmd).splitlines()
      for line in out:
          comps = line.strip().split()
          if line.startswith('Database'):
              ret['database'] = comps[1].replace(':', '')
              continue
          ret[' '.join(comps[1:])] = comps[0]
      return ret
docs: Returns statistics about the locate database
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' locate.stats