<commit_before>module Browser
  ALLOWED_BROWSERS = %w[firefox ie11 ie10 ie9 ie8 ie7 chrome safari]

  def user_agent
    case request.env['HTTP_USER_AGENT']
    when /Firefox/    then 'firefox'
    when /Chrome/     then 'chrome'
    when /Safari/     then 'safari'
    when /Opera/      then 'opera'
    when /Trident\/7/ then 'ie11'
    when /MSIE 10/    then 'ie10'
    when /MSIE 9/     then 'ie9'
    when /MSIE 8/     then 'ie8'
    when /MSIE 7/     then 'ie7'
    when /MSIE 6/     then 'ie6'
    end
  end

  def supported_browser?
    ALLOWED_BROWSERS.include?(user_agent)
  end
end<commit_msg>Remove support for IE7 and IE8<commit_after>module Browser
  ALLOWED_BROWSERS = %w[firefox ie11 ie10 ie9 chrome safari]

  def user_agent
    case request.env['HTTP_USER_AGENT']
    when /Firefox/    then 'firefox'
    when /Chrome/     then 'chrome'
    when /Safari/     then 'safari'
    when /Opera/      then 'opera'
    when /Trident\/7/ then 'ie11'
    when /MSIE 10/    then 'ie10'
    when /MSIE 9/     then 'ie9'
    end
  end

  def supported_browser?
    ALLOWED_BROWSERS.include?(user_agent)
  end
end
{'fraction_non_alphanumeric': 0.09481216457960644, 'fraction_numerical': 0.03398926654740608, 'mean_word_length': 2.3008849557522124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '862640', 'n_tokens_mistral': 458, 'n_tokens_neox': 423, 'n_words': 121}