<commit_before>jQuery(function($) {

  //Initiat WOW JS
  new WOW().init();

  // one page navigation 
  $('.main-navigation').onePageNav({
    currentClass: 'active'
  });

  // Countdown
  $('#counter').bind('inview', function(event, visible, visiblePartX, visiblePartY) {
    if (visible) {
      $(this).find('.timer').each(function() {
        var $this = $(this);
        $({
          Counter: 0
        }).animate({
          Counter: $this.text()
        }, {
          duration: 2000,
          easing: 'swing',
          step: function() {
            $this.text(Math.ceil(this.Counter));
          }
        });
      });
      $(this).unbind('inview');
    }
  });


  /**
   * main.js
   * http://www.codrops.com
   *
   * Licensed under the MIT license.
   * http://www.opensource.org/licenses/mit-license.php
   * 
   * Copyright 2014, Codrops
   * http://www.codrops.com
   */
  (function() {

    var bodyEl = document.body,
      content = document.querySelector('.contents'),
      openbtn = document.getElementById('open-button'),
      closebtn = document.getElementById('close-button'),
      isOpen = false;

    function init() {
      initEvents();
    }

    function initEvents() {
      openbtn.addEventListener('click', toggleMenu);
      if (closebtn) {
        closebtn.addEventListener('click', toggleMenu);
      }

      // close the menu element if the target it´s not the menu element or one of its descendants..
      content.addEventListener('click', function(ev) {
        var target = ev.target;
        if (isOpen && target !== openbtn) {
          toggleMenu();
        }
      });
    }

    function toggleMenu() {
      if (isOpen) {
        classie.remove(bodyEl, 'show-menu');
      } else {
        classie.add(bodyEl, 'show-menu');
      }
      isOpen = !isOpen;
    }

    init();

  })();

});<commit_msg>[#111131880] Prettifies the main js file<commit_after>jQuery(function($) {
  //Initiat WOW JS
  new WOW().init();
  // one page navigation 
  $('.main-navigation').onePageNav({
    currentClass: 'active'
  });
  // Countdown
  $('#counter').bind('inview', function(event, visible, visiblePartX, visiblePartY) {
    if (visible) {
      $(this).find('.timer').each(function() {
        var $this = $(this);
        $({
          Counter: 0
        }).animate({
          Counter: $this.text()
        }, {
          duration: 2000,
          easing: 'swing',
          step: function() {
            $this.text(Math.ceil(this.Counter));
          }
        });
      });
      $(this).unbind('inview');
    }
  });
  /**
   * main.js
   * http://www.codrops.com
   *
   * Licensed under the MIT license.
   * http://www.opensource.org/licenses/mit-license.php
   * 
   * Copyright 2014, Codrops
   * http://www.codrops.com
   */
  (function() {
    var bodyEl = document.body,
      content = document.querySelector('.contents'),
      openbtn = document.getElementById('open-button'),
      closebtn = document.getElementById('close-button'),
      isOpen = false;

    function init() {
      initEvents();
    }

    function initEvents() {
      openbtn.addEventListener('click', toggleMenu);
      if (closebtn) {
        closebtn.addEventListener('click', toggleMenu);
      }
      // close the menu element if the target it´s not the menu element or one of its descendants..
      content.addEventListener('click', function(ev) {
        var target = ev.target;
        if (isOpen && target !== openbtn) {
          toggleMenu();
        }
      });
    }

    function toggleMenu() {
      if (isOpen) {
        classie.remove(bodyEl, 'show-menu');
      } else {
        classie.add(bodyEl, 'show-menu');
      }
      isOpen = !isOpen;
    }
    init();
  })();
});
{'fraction_non_alphanumeric': 0.1615322796678275, 'fraction_numerical': 0.007232788641843022, 'mean_word_length': 2.0656814449917897, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '4366517', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1108, 'n_words': 227}