<commit_before>var locastyle = locastyle || {};

locastyle.steps = (function() {
  'use strict';

  var config = {
    selectors: {
      moduleActive: '.ls-actived [data-ls-module=steps]',
      nav: '.ls-steps-nav',
      button: '.ls-steps-btn',
      container: '.ls-steps-content'
    },
    status: {
      active: 'ls-active',
      actived: 'ls-actived'
    },
    classes: {
      active: '.ls-active'
    },
    actions:{
      next: '.ls-steps-content [data-action="next"]',
      prev: '.ls-steps-content [data-action="prev"]'
    }
  };

  function init() {
    unbind();
    stepsAffix();
    addActivedNav();
    bindClickOnTriggers();
    nextStep();
    prevStep();
    ariaSteps();
    addAriaLabel();
  }

  function stepsAffix() {
    var $steps   = $(config.selectors.nav);
    var offset    = $steps.offset();
    var marginTop = 20;
    $(window).scroll(function() {
     if ($(window).scrollTop() > offset.top) {
       $steps.stop().animate({
         marginTop: $(window).scrollTop() - offset.top + marginTop
       });
     } else {
       $steps.stop().animate({
         marginTop: 0
       });
     };
    });
  }

  function addActivedNav() {
    var index = $(config.selectors.nav).find(config.classes.active).index();
    addActiveContent(index);
    index = parseInt(index + 1);
    $(config.selectors.nav).find('li:lt(' + index + ')');
  }

  function addActiveContent(index) {
    $(config.selectors.container).eq(index).addClass(config.status.active);<commit_msg>add class ls-actived on the steps<commit_after>var locastyle = locastyle || {};

locastyle.steps = (function() {
  'use strict';

  var config = {
    selectors: {
      moduleActive: '.ls-actived [data-ls-module=steps]',
      nav: '.ls-steps-nav',
      button: '.ls-steps-btn',
      container: '.ls-steps-content'
    },
    status: {
      active: 'ls-active',
      actived: 'ls-actived'
    },
    classes: {
      active: '.ls-active'
    },
    actions:{
      next: '.ls-steps-content [data-action="next"]',
      prev: '.ls-steps-content [data-action="prev"]'
    }
  };

  function init() {
    unbind();
    stepsAffix();
    addActivedNav();
    bindClickOnTriggers();
    nextStep();
    prevStep();
    ariaSteps();
    addAriaLabel();
  }

  function stepsAffix() {
    var $steps   = $(config.selectors.nav);
    var offset    = $steps.offset();
    var marginTop = 20;
    $(window).scroll(function() {
     if ($(window).scrollTop() > offset.top) {
       $steps.stop().animate({
         marginTop: $(window).scrollTop() - offset.top + marginTop
       });
     } else {
       $steps.stop().animate({
         marginTop: 0
       });
     };
    });
  }

  function addActivedNav() {
    var index = $(config.selectors.nav).find(config.classes.active).index();
    addActiveContent(index);
    index = parseInt(index + 1);
    $(config.selectors.nav).find('li:lt(' + index + ')').addClass(config.status.actived);
  }

  function addActiveContent(index) {
    $(config.selectors.container).eq(index).addClass(config.status.active);
{'fraction_non_alphanumeric': 0.18152031454783749, 'fraction_numerical': 0.002621231979030144, 'mean_word_length': 2.533564814814815, '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': '2264814', 'n_tokens_mistral': 1019, 'n_tokens_neox': 997, 'n_words': 169}