<commit_before>/**
 * jQuery Auto Pagination v1.0
 * Copyright 2013 <NAME>
 * An unobstrusive auto pagination plugin for JQuery
 *
 * Inspired by "Infinite Scroll" JQuery Plugin
 * by <NAME> & <NAME>
 *
 * Dual licensed under the MIT and GPL
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function( $ ) {
    $.fn.AutoPagination = function( options ) {

        var opts = $.extend( {}, $.fn.AutoPagination.defaults, options ),
            $this = $( this );

        // Hide the 'nextPageSelector' anchor since it the point of this
        // plugin is that one shouldn't need to click 'Next Page'
        $( opts.nextPageSelector ).css( { visibility:'hidden' } );

        // scroll event fires repeatedly as the window is scrolled
        $( window ).scroll(function() {

            // if 'nextPageSelector' anchor href isn't empty and...
            if ( $( opts.nextPageSelector ).attr( 'href' ) &&
                    // ...window scroll is less then 'nextPageBufferPx' pixels away from it
                $( window ).scrollTop() + $( window ).height() >
                $( opts.nextPageSelector ).offset().top - opts.nextPageBufferPx ) {

                // remember the 'nextPageSelector' anchor href as 'nextPage'
                var nextPage = $( opts.nextPageSelector ).attr( 'href' );

                // set the 'nextPageSelector' anchor href to an empty string<commit_msg>#70 hide nextPage selector<commit_after>/**
 * jQuery Auto Pagination v1.0
 * Copyright 2013 <NAME>
 * An unobstrusive auto pagination plugin for JQuery
 *
 * Inspired by "Infinite Scroll" JQuery Plugin
 * by <NAME> & <NAME>
 *
 * Dual licensed under the MIT and GPL
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 *   MODIFIED VERSION - uses nextPageSelector.hide() instead of 'visiblity:hidden'
 */
(function( $ ) {
    $.fn.AutoPagination = function( options ) {

        var opts = $.extend( {}, $.fn.AutoPagination.defaults, options ),
            $this = $( this );

        // Hide the 'nextPageSelector' anchor since it the point of this
        // plugin is that one shouldn't need to click 'Next Page'
        $( opts.nextPageSelector ).hide();

        // scroll event fires repeatedly as the window is scrolled
        $( window ).scroll(function() {

            // if 'nextPageSelector' anchor href isn't empty and...
            if ( $( opts.nextPageSelector ).attr( 'href' ) &&
                    // ...window scroll is less then 'nextPageBufferPx' pixels away from it
                $( window ).scrollTop() + $( window ).height() >
                $( opts.nextPageSelector ).offset().top - opts.nextPageBufferPx ) {

                // remember the 'nextPageSelector' anchor href as 'nextPage'
                var nextPage = $( opts.nextPageSelector ).attr( 'href' );

                // set the 'nextPageSelector' anchor href to an empty string
{'fraction_non_alphanumeric': 0.12529550827423167, 'fraction_numerical': 0.004728132387706856, 'mean_word_length': 2.2693156732891833, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3306183', 'n_tokens_mistral': 836, 'n_tokens_neox': 791, 'n_words': 262}