<commit_before>export default function (coordinate = 0, speed = this.params.speed, runCallbacks = true, translateBounds = true, internal) {
  const swiper = this;

  const {
    params,
  } = swiper;

  if (swiper.animating && params.preventInteractionOnTransition) {
    return false;
  }

  const minTranslate = swiper.minTranslate();
  const maxTranslate = swiper.maxTranslate();
  let translate;
  if (translateBounds && coordinate > minTranslate) translate = minTranslate;
  else if (translateBounds && coordinate < maxTranslate) translate = maxTranslate;
  else translate = coordinate;

  // Update progress
  swiper.updateProgress(translate);

  if (speed === 0) {
    swiper.setTransition(0);
    swiper.setTranslate(translate);<commit_msg>Minor update to argument names to better adhere with existing translate documentation and code.<commit_after>export default function (translate = 0, speed = this.params.speed, runCallbacks = true, translateBounds = true, internal) {
  const swiper = this;

  const {
    params,
  } = swiper;

  if (swiper.animating && params.preventInteractionOnTransition) {
    return false;
  }

  const minTranslate = swiper.minTranslate();
  const maxTranslate = swiper.maxTranslate();
  if (translateBounds && translate > minTranslate) translate = minTranslate;
  else if (translateBounds && translate < maxTranslate) translate = maxTranslate;

  // Update progress
  swiper.updateProgress(translate);

  if (speed === 0) {
    swiper.setTransition(0);
    swiper.setTranslate(translate);
{'fraction_non_alphanumeric': 0.10216110019646366, 'fraction_numerical': 0.003929273084479371, 'mean_word_length': 4.437722419928826, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1360010', 'n_tokens_mistral': 443, 'n_tokens_neox': 426, 'n_words': 117}