<commit_before>$(document).ready(function() {  
  // nav
  // nav clase
  $(".nav a").on("click", function(){
   $(".nav").find(".active").removeClass("active");
   $(this).parent().addClass("active");
});  
  // new
 /* $('.navbar-collapse a').click(function (e) {
        $('.navbar-collapse').collapse('toggle');
      });*/
  // end new
    $('nav').affix({
      offset: {
        top: function() { return  $('#imagen-inicial').height(); }
      }
     });
  
  $('a[href*="#"]:not([href="#"])').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html, body').animate({
          scrollTop: target.offset().top - 51
        }, 1000);
        return false;
      }
    }
  });
  
  // Animación
  var $window           = $(window),
      win_height_padded = $window.height() * 1.1,
      isTouch           = Modernizr.touch;

  if (isTouch) { $('.revealOnScroll').addClass('animated'); }
  
  $window.on('scroll', revealOnScroll);

  function revealOnScroll() {    
    var scrolled = $window.scrollTop(),<commit_msg>Update script.js<commit_after>$(document).ready(function() {  
  // nav
  // nav clase
  $(".nav a").on("click", function(){
   $(".nav").find(".active").removeClass("active");
   $(this).parent().addClass("active");
});  
  // new
 /* $('.navbar-collapse a').click(function (e) {
        $('.navbar-collapse').collapse('toggle');
      });*/
  // end new
    $('nav').affix({
      offset: {
        top: function() { return  $('#imagen-inicial').height(); }
      }
     });
  
  /*
  $('a[href*="#"]:not([href="#"])').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html, body').animate({
          scrollTop: target.offset().top - 51
        }, 1000);
        return false;
      }
    }
  });
  */
  
  // Animación
  var $window           = $(window),
      win_height_padded = $window.height() * 1.1,
      isTouch           = Modernizr.touch;

  if (isTouch) { $('.revealOnScroll').addClass('animated'); }
  
  $window.on('scroll', revealOnScroll);

  function revealOnScroll() {    
    var scrolled = $window.scrollTop(),
{'fraction_non_alphanumeric': 0.23666534966416436, 'fraction_numerical': 0.007111813512445673, 'mean_word_length': 2.4542974079126876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '715536', 'n_tokens_mistral': 838, 'n_tokens_neox': 815, 'n_words': 130}