<commit_before>module NotificationHelper
  def notification_warning_bubble(text)
    tag.div(class: 'alert alert-warning alert-dismissible', role: 'alert') do
      concat notification_close_button
      concat text
    end
  end

  def notification_close_button(text = nil)
    tag.button(
      class: 'close', aria: { label: 'Schliessen' }, data: { dismiss: 'alert' }, type: 'button'
    ) do
      if text.present?
        concat text
      else
        tag.span('&times;', aria: { hidden: 'true' })
      end
    end
  end
end<commit_msg>escape close-x for notification helper<commit_after>module NotificationHelper
  def notification_warning_bubble(text)
    tag.div(class: 'alert alert-warning alert-dismissible', role: 'alert') do
      concat notification_close_button
      concat text
    end
  end

  def notification_close_button(text = nil)
    tag.button(
      class: 'close', aria: { label: 'Schliessen' }, data: { dismiss: 'alert' }, type: 'button'
    ) do
      if text.present?
        concat text
      else
        tag.span('x', aria: { hidden: 'true' })
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1076923076923077, 'fraction_numerical': 0.0, 'mean_word_length': 2.8943661971830985, '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': '5033717', 'n_tokens_mistral': 345, 'n_tokens_neox': 332, 'n_words': 93}