<commit_before>$ = window.jQuery

# Notifier.init() to add to document
# Notifier.message("foo") to display html
# pass in a background color: Notifier.message("bar", "#fff")
# add a continue button to the bottom of it: Notifier.message("bar", "#000", true)
# it will display below the anchor element
# Notifier.hide() to close it

Notifier =
  init: ->
    @el = $("
      <div id='notifier'>
        <img class='notifier-close' src='./images/x-icon.svg'>
        <div class='notifier-content'></div>
        <button class='action-button'>Continue</button>
      ")
    @el.appendTo $('body')

    @content = @el.find('.notifier-content')
    @actionButton = @el.find('.action-button')
    @closeIcon = @el.find('.notifier-close, .action-button')
      .on 'click', => @hide()

    window.onresize = => @setPosition() if @notifierIsVisible()
<commit_msg>closing tag<commit_after>$ = window.jQuery

# Notifier.init() to add to document
# Notifier.message("foo") to display html
# pass in a background color: Notifier.message("bar", "#fff")
# add a continue button to the bottom of it: Notifier.message("bar", "#000", true)
# it will display below the anchor element
# Notifier.hide() to close it

Notifier =
  init: ->
    @el = $("
      <div id='notifier'>
        <img class='notifier-close' src='./images/x-icon.svg'>
        <div class='notifier-content'></div>
        <button class='action-button'>Continue</button>
      </div>
      ")
    @el.appendTo $('body')

    @content = @el.find('.notifier-content')
    @actionButton = @el.find('.action-button')
    @closeIcon = @el.find('.notifier-close, .action-button')
      .on 'click', => @hide()

    window.onresize = => @setPosition() if @notifierIsVisible()

{'fraction_non_alphanumeric': 0.17722254503195817, 'fraction_numerical': 0.003486345148169669, 'mean_word_length': 3.4153846153846152, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 22, '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': '5774154', 'n_tokens_mistral': 558, 'n_tokens_neox': 542, 'n_words': 140}