<commit_before>this.SS_Color = (function () {
  function SS_Color() {
  }

  SS_Color.swatches = <%= SS.config.minicolors_swatches.color_codes %>;

  SS_Color.render = function () {
    $(".js-color").each(function () {
      var self, warp, slider, swatches, panel, btn, top;
      self = $(this);

      if (self.data("swatches")) {
        self.minicolors({ swatches: SS_Color.swatches });

        warp = self.closest(".minicolors");
        slider = $(warp).find('.minicolors-slider');
        swatches = $(warp).find('ul.minicolors-swatches');
        panel = $(warp).find(".minicolors-panel");

        $(panel).prepend(swatches);
        top = $(warp).find('li.minicolors-swatch.minicolors-sprite').outerHeight(true) * 2
          + $(swatches).outerHeight(true)
          + parseInt($(slider).css('top'));

        $(slider).css('top', `${top}px`);
      } else {
        self.minicolors();
      }

      if (self.data('clear')) {
        btn = $("<input type='button' class='btn' value='<%= I18n.t('ss.buttons.clear') %>' />").uniqueId();
        $(self).after(btn).after(' ');
        $('#' + btn.attr('id')).on("click", function () {
          $(self).minicolors('value', {
            color: 'transparent'
          });
        });<commit_msg>[fix] SS_Color : assets precompile failed<commit_after>this.SS_Color = (function () {
  function SS_Color() {
  }

  SS_Color.swatches = <%= SS.config.minicolors_swatches.color_codes %>;

  SS_Color.render = function () {
    $(".js-color").each(function () {
      var self, warp, slider, swatches, panel, btn, top;
      self = $(this);

      if (self.data("swatches")) {
        self.minicolors({ swatches: SS_Color.swatches });

        warp = self.closest(".minicolors");
        slider = $(warp).find('.minicolors-slider');
        swatches = $(warp).find('ul.minicolors-swatches');
        panel = $(warp).find(".minicolors-panel");

        $(panel).prepend(swatches);
        top = $(warp).find('li.minicolors-swatch.minicolors-sprite').outerHeight(true) * 2
          + $(swatches).outerHeight(true)
          + parseInt($(slider).css('top'));

        $(slider).css('top', top.toString() + 'px');
      } else {
        self.minicolors();
      }

      if (self.data('clear')) {
        btn = $("<input type='button' class='btn' value='<%= I18n.t('ss.buttons.clear') %>' />").uniqueId();
        $(self).after(btn).after(' ');
        $('#' + btn.attr('id')).on("click", function () {
          $(self).minicolors('value', {
            color: 'transparent'
          });
        });
{'fraction_non_alphanumeric': 0.21308264786525657, 'fraction_numerical': 0.0023501762632197414, 'mean_word_length': 2.602256699576869, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3858333', 'n_tokens_mistral': 872, 'n_tokens_neox': 828, 'n_words': 119}