<commit_before>module ApplicationHelper
  def is_active?(name)
    "active" if controller_name.eql?(name)
  end
end<commit_msg>- Added added notice_message (from https://github.com/xdite/bootstrap-helper) and change to work with bootstrap 3.0<commit_after>module ApplicationHelper
  def is_active?(name)
    "active" if controller_name.eql?(name)
  end
  # Get from https://github.com/xdite/bootstrap-helper
  def notice_message
    flash_messages = []
    flash.each do |type, message|
      type = :success if type == :notice
      type = :danger if type == :alert
      text = content_tag(:div, link_to("x", "#", :class => "close", "data-dismiss" => "alert") + message, :class => "alert fade in alert-#{type}")
      flash_messages << text if message
    end
    flash_messages.join("\n").html_safe
  end
end
{'fraction_non_alphanumeric': 0.1319358816276202, 'fraction_numerical': 0.002466091245376079, 'mean_word_length': 3.8622754491017965, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '2742318', 'n_tokens_mistral': 254, 'n_tokens_neox': 253, 'n_words': 69}