# File referrercop, line 263
def self.filter_apache_combined(input, output = $stdout)
  input.each do |line|
    @stats.lines += 1

    # Skip over invalid lines.
    unless line =~ REGEXPS[:apache_combined]
      @stats.invalid += 1
      output.puts line
      next
    end

    # Examine the URL.
    if spam?($1)
      @stats.spam += 1
    else
      @stats.ham += 1
      output.puts line
    end
  end
end