<commit_before>App.Banners =

  update_banner: (selector, text) ->
    $(selector).html(text)

  update_style: (selector, style) ->
    $(selector).removeClass($(selector).attr("class"), true)
      .addClass(style, true)

  update_background_color: (selector, background_color) ->
    $(selector).css("background-color", background_color)

  update_font_color: (selector, font_color) ->
    $(selector).css("color", font_color)

  initialize: ->
    $("[data-js-banner-title]").on
      change: ->
        App.Banners.update_banner("#js-banner-title", $(this).val())

    $("[data-js-banner-description]").on
      change: ->
        App.Banners.update_banner("#js-banner-description", $(this).val())

    $("[name='banner[background_color]']").on
      change: -><commit_msg>Remove unused JavaScript banners code<commit_after>App.Banners =

  update_banner: (selector, text) ->
    $(selector).html(text)

  update_background_color: (selector, background_color) ->
    $(selector).css("background-color", background_color)

  update_font_color: (selector, font_color) ->
    $(selector).css("color", font_color)

  initialize: ->
    $("[data-js-banner-title]").on
      change: ->
        App.Banners.update_banner("#js-banner-title", $(this).val())

    $("[data-js-banner-description]").on
      change: ->
        App.Banners.update_banner("#js-banner-description", $(this).val())

    $("[name='banner[background_color]']").on
      change: ->
{'fraction_non_alphanumeric': 0.19241379310344828, 'fraction_numerical': 0.0, 'mean_word_length': 3.8046357615894038, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '3818837', 'n_tokens_mistral': 474, 'n_tokens_neox': 467, 'n_words': 63}