<commit_before>:coffeescript
  $(document).ready ->
    $('#globalAlert').click ->
      $(this).remove()
    
    # setupTimer
    setTimeout(removeAlert, 7000)
  
  removeAlert = ->
    $('#globalAlert').fadeOut('500', => $(this).remove())


#globalAlert{class: "#{flash.notice ? '' : 'hidden'}"}
  .notice{class: "#{flash.notice ? '' : 'hidden'}"}
    %p= raw(flash.notice)
    .check

  .alert{class: "#{flash.alert ? '' : 'hidden'}"}
    %p= raw(flash.alert)
    .close<commit_msg>Alerts were never being shown with layouts/_alert.haml.  Fix the logic.<commit_after>:coffeescript
  $(document).ready ->
    $('#globalAlert').click ->
      $(this).remove()
    
    # setupTimer
    setTimeout(removeAlert, 7000)
  
  removeAlert = ->
    $('#globalAlert').fadeOut('500', => $(this).remove())


#globalAlert{class: "#{(flash.notice || flash.alert) ? '' : 'hidden'}"}
  .notice{class: "#{flash.notice ? '' : 'hidden'}"}
    %p= raw(flash.notice)
    .check

  .alert{class: "#{flash.alert ? '' : 'hidden'}"}
    %p= raw(flash.alert)
    .close
{'fraction_non_alphanumeric': 0.22254059216809932, 'fraction_numerical': 0.013371537726838587, 'mean_word_length': 3.2950819672131146, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5190183', 'n_tokens_mistral': 374, 'n_tokens_neox': 356, 'n_words': 59}