# File referrercop.rb, line 398
  def self.input_type(input = ARGF)
    case input.gets
      when REGEXPS[:apache_combined]
        type = :apache_combined

      when REGEXPS[:awstats_header]
        type = :awstats

      else
        type = :text
    end

    input.rewind

    return type
  end