<commit_before>/*
 * stickyNavbar.js v1.3.4
 * https://github.com/jbutko/stickyNavbar.js
 * Fancy sticky navigation jQuery plugin with smart anchor links highlighting
 *
 * Developed and maintenained under MIT licence by <NAME> - www.jozefbutko.com
 * http://www.opensource.org/licenses/MIT

 * Original jquery-browser code Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
 * http://jquery.org/license
 *
 * CREDITS:
 * Daniel Eden for Animate.CSS:
 * http://daneden.github.io/animate.css/
 * jQuery easing plugin:
 * http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * COPYRIGHT (C) 2014-2016 <NAME>
 * https://github.com/jbutko
 * LAST UPDATE: 14/04/2016
 *
 */
;(function($, window, document) {

  'use strict';

  $.fn.stickyNavbar = function(prop) {

    // Set default values
    var options = $.extend({
        activeClass: 'active', // Class to be added to highlight nav elements
        sectionSelector: 'scrollto', // Class of the section that is interconnected with nav links
        animDuration: 350, // Duration of jQuery animation as well as jQuery scrolling duration
        startAt: 0, // Stick the menu at XXXpx from the top of the this() (nav container)
        easing: 'swing', // Easing type if jqueryEffects = true, use jQuery Easing plugin to extend easing types - gsgd.co.uk/sandbox/jquery/easing
        animateCSS: true, // AnimateCSS effect on/off
        animateCSSRepeat: false, // Repeat animation everytime user scrolls
        cssAnimation: 'fadeInDown', // AnimateCSS class that will be added to selector
        jqueryEffects: false, // jQuery animation on/off
        jqueryAnim: 'slideDown', // jQuery animation type: fadeIn, show or slideDown
        selector: 'a', // Selector to which activeClass will be added, either 'a' or 'li'
        mobile: false, // If false, nav will not stick under viewport width of 480px (default) or user defined mobileWidth
        mobileWidth: 480, // The viewport width (without scrollbar) under which stickyNavbar will not be applied (due user usability on mobile)
        zindex: 9999, // The zindex value to apply to the element: default 9999, other option is 'auto'
        stickyModeClass: 'sticky', // Class that will be applied to 'this' in sticky mode
        unstickyModeClass: 'unsticky' // Class that will be applied to 'this' in non-sticky mode
      }, prop),
      sections = $('.' + options.sectionSelector);

    // Make sections focusable by scripts
    sections.attr('tabindex', -1);

    return this.each(function() {

      // cache variables
      var $self = $(this),
          $selfPosition = $self.css('position'), // Initial position of this,
          $selfZindex = $self.css('zIndex'), // Z-index of this
          thisHeight = $self.outerHeight(true), // Height of navigation wrapper
          $selfScrollTop = $self.offset().top - thisHeight, // scrollTop position of this
          $topOffset = $self.css('top') === 'auto' ? 0 : $self.css('top'), // Top property of this: if not set = 0
          menuItems = options.selector === 'a' ? $self.find('li a') : $self.find('li'), // Navigation lists or links
          menuItemsHref = $self.find('li a[href*="#"]'), // href attributes of navigation links
          windowPosition = $(window).scrollTop();

      /* Smooth scrolling logic */
      menuItems.click(function(e) {

        // get href attr
        var href,
            currentHref,
            i,
            sectionOffsets,
            sectionsLength;

        // cache href value
        if (options.selector === 'li') {
          href = $(this).children('a').attr('href');
        } else {
          href = $(this).attr('href');
        }

        // let normal links in navigation redirect to location<commit_msg>Update jquery.stickyNavbar.js<commit_after>/*
 * stickyNavbar.js v1.3.4
 * https://github.com/jbutko/stickyNavbar.js
 * Fancy sticky navigation jQuery plugin with smart anchor links highlighting
 *
 * Developed and maintenained under MIT licence by <NAME> - www.jozefbutko.com
 * http://www.opensource.org/licenses/MIT

 * Original jquery-browser code Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
 * http://jquery.org/license
 *
 * CREDITS:
 * Daniel Eden for Animate.CSS:
 * http://daneden.github.io/animate.css/
 * jQuery easing plugin:
 * http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * COPYRIGHT (C) 2014-2016 <NAME>
 * https://github.com/jbutko
 * LAST UPDATE: 14/04/2016
 *
 */
;(function($, window, document) {

  'use strict';

  $.fn.stickyNavbar = function(prop) {

    // Set default values
    var options = $.extend({
        activeClass: 'active', // Class to be added to highlight nav elements
        sectionSelector: 'scrollto', // Class of the section that is interconnected with nav links
        animDuration: 350, // Duration of jQuery animation as well as jQuery scrolling duration
        startAt: 0, // Stick the menu at XXXpx from the top of the this() (nav container)
        easing: 'swing', // Easing type if jqueryEffects = true, use jQuery Easing plugin to extend easing types - gsgd.co.uk/sandbox/jquery/easing
        animateCSS: true, // AnimateCSS effect on/off
        animateCSSRepeat: false, // Repeat animation everytime user scrolls
        cssAnimation: 'fadeInDown', // AnimateCSS class that will be added to selector
        jqueryEffects: false, // jQuery animation on/off
        jqueryAnim: 'slideDown', // jQuery animation type: fadeIn, show or slideDown
        selector: 'a', // Selector to which activeClass will be added, either 'a' or 'li'
        mobile: false, // If false, nav will not stick under viewport width of 480px (default) or user defined mobileWidth
        mobileWidth: 480, // The viewport width (without scrollbar) under which stickyNavbar will not be applied (due user usability on mobile)
        zindex: 9999, // The zindex value to apply to the element: default 9999, other option is 'auto'
        stickyModeClass: 'sticky', // Class that will be applied to 'this' in sticky mode
        unstickyModeClass: 'unsticky' // Class that will be applied to 'this' in non-sticky mode
      }, prop),
      sections = $('.' + options.sectionSelector);

    // Make sections focusable by scripts
    sections.attr('tabindex', -1);

    return this.each(function() {

      // cache variables
      var $self = $(this),
          $selfPosition = $self.css('position'), // Initial position of this,
          $selfZindex = $self.css('zIndex'), // Z-index of this
          thisHeight = $self.outerHeight(true), // Height of navigation wrapper
          $selfScrollTop = $self.offset().top - thisHeight, // scrollTop position of this
          $topOffset = $self.css('top') === 'auto' ? 0 : $self.css('top'), // Top property of this: if not set = 0
          menuItems = options.selector === 'a' ? $self.find('li a') : $self.find('li'), // Navigation lists or links
          menuItemsHref = $self.find('li a[href*="#"]'), // href attributes of navigation links
          windowPosition = $(window).scrollTop();

      /* Smooth scrolling logic */
      menuItems.click(function(e) {

        // get href attr
        var href,
            currentHref,
            i,
            sectionOffsets,
            sectionsLength;

        // cache href value
        if (options.selector === 'li') {
          href = $(this).children('a').attr('href');
        } else {
          href = $(this).attr('href') || '/';
        }

        // let normal links in navigation redirect to location
{'fraction_non_alphanumeric': 0.11922205941121619, 'fraction_numerical': 0.012788064473158386, 'mean_word_length': 2.6678065461651195, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1512828', 'n_tokens_mistral': 2199, 'n_tokens_neox': 2043, 'n_words': 730}