<commit_before>module BrowserHelper
  # Makes use of the browser gem:
  # https://github.com/fnando/browser

  def browser_supported?
    return true if browser_preferred?

    browser.firefox? or browser.safari?
  end

  def browser_preferred?
    browser.chrome?
  end

end<commit_msg>supported and preferred helpers now support :firefox_extension feature toggle<commit_after>module BrowserHelper
  # Makes use of the browser gem:
  # https://github.com/fnando/browser

  def browser_supported?
    return true if browser_preferred?

    if can_haz :firefox_extension
      browser.safari?
    else
      browser.firefox? or browser.safari?
    end
  end

  def browser_preferred?
    if can_haz :firefox_extension
      browser.chrome? or browser.firefox?
    else
      browser.chrome?
    end
  end

end
{'fraction_non_alphanumeric': 0.06311881188118812, 'fraction_numerical': 0.0, 'mean_word_length': 3.3031914893617023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1989037', 'n_tokens_mistral': 256, 'n_tokens_neox': 245, 'n_words': 69}