<commit_before>//= require bxslider
//= require_self

this.KeyVisual_Image = (function () {
  function KeyVisual_Image() {
  }

  KeyVisual_Image.slide = function (selector, opts) {
    var defaultOpts, slider;
    if (opts == null) {
      opts = {};
    }
    defaultOpts = {
      auto: true,
      autoControls: true,
      startText: "<%= I18n.t 'key_visual.controls.start' %>",
      stopText: "<%= I18n.t 'key_visual.controls.stop' %>",
      controls: false,
      pagerCustom: selector + " .bx-thumbs"
    };
    return slider = $(selector + " .images").bxSlider($.extend(defaultOpts, opts));
  };

  KeyVisual_Image.randomize = function (selector) {
    var list, wrap;
    wrap = $(selector);
    list = wrap.find("li");
    list = list.sort(function () {
      return Math.random() - .5;
    });
    return list.each(function () {
      return wrap.append($(this));
    });
  };

  return KeyVisual_Image;

})();
<commit_msg>[fix][#2882] fixed to jump to link when clicking on slide show (#3465)<commit_after>//= require bxslider
//= require_self

this.KeyVisual_Image = (function () {
  function KeyVisual_Image() {
  }

  KeyVisual_Image.slide = function (selector, opts) {
    var defaultOpts, slider;
    if (opts == null) {
      opts = {};
    }
    defaultOpts = {
      auto: true,
      autoControls: true,
      startText: "<%= I18n.t 'key_visual.controls.start' %>",
      stopText: "<%= I18n.t 'key_visual.controls.stop' %>",
      controls: false,
      pagerCustom: selector + " .bx-thumbs",
      touchEnabled : false
    };
    return slider = $(selector + " .images").bxSlider($.extend(defaultOpts, opts));
  };

  KeyVisual_Image.randomize = function (selector) {
    var list, wrap;
    wrap = $(selector);
    list = wrap.find("li");
    list = list.sort(function () {
      return Math.random() - .5;
    });
    return list.each(function () {
      return wrap.append($(this));
    });
  };

  return KeyVisual_Image;

})();

{'fraction_non_alphanumeric': 0.16539050535987748, 'fraction_numerical': 0.009188361408882083, 'mean_word_length': 2.7476099426386233, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1685582', 'n_tokens_mistral': 666, 'n_tokens_neox': 640, 'n_words': 135}