<commit_before>// Placeholder manifest file.
// the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js'

$(document).ready(function() {
  slider();
});

var index = 1;
var images = $("#showcase_inner_container > img");
var count = images.size();
var delay = 5000;
var timer;

console.log(images);

function slider() {
  document.getElementById("showcase_inner_container").className = "showcase_img";
  $("#showcase_inner_container").css("transform", "translateX(" + (index * -663) + "px)");

  if (index == count) {
    index = 0;
    delay = 0;
    document.getElementById("showcase_inner_container").className = "showcase_img_reset";
    $("#showcase_inner_container").css("transform", "translateX(" + (index * -663) + "px)");
    delay = 5000;
  }

  console.log(index + " : " + (index * -663) + "px  :  " + delay);
  index += 1;
}

(function repeat() {
  slider();
  timer = setTimeout(repeat, delay);
})();<commit_msg>Fix showcase.<commit_after>// Placeholder manifest file.
// the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js'

$(document).ready(function() {
  slider();
});

var index = 1;
var images = $("#showcase_inner_container > img");
var showcase = document.getElementById("showcase_inner_container");
var count = images.size();
var delay = 5000;
var timer;

console.log(images);

function slider() {
  showcase.className = "showcase_img";
  $("#showcase_inner_container").css("transform", "translateX(" + (index * -663) + "px)");

  if (index == count) {
    index = 0;
    delay = 0;
    showcase.className = "showcase_img_reset";
    $("#showcase_inner_container").css("transform", "translateX(" + (index * -663) + "px)");
    delay = 5000;
  }

  console.log(index + " : " + (index * -663) + "px  :  " + delay);
  index += 1;
}

(function repeat() {
  slider();
  timer = setTimeout(repeat, delay);
})();
{'fraction_non_alphanumeric': 0.18032786885245902, 'fraction_numerical': 0.02151639344262295, 'mean_word_length': 4.307065217391305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '528917', 'n_tokens_mistral': 667, 'n_tokens_neox': 626, 'n_words': 150}