<commit_before>/*jslint browser: true, sloppy: true, todo: true, devel: true, white: true */
/*global $ */

$(document).ready(function () {
    var headerTop = null;

	// Calculate header size
    if ($('.content-hdr').length > 0) {
        headerTop = $('.content-hdr').offset().top;
    }

    $(window).scroll( function () {
		var windowTop = $(window).scrollTop();

		// Activity nav fixing, if there is one
        if (headerTop) {
            if ( windowTop >= headerTop/2 ) {
                $('.activity-nav-mod').addClass('fixed');
                $('.content-hdr').addClass('extra-pad');
                // $('.activity-nav-mod.fixed').fadeIn();
                $('.activity-nav-mod.fixed .activity-nav-logo .h2').addClass('visible');
            } else {
                $('.activity-nav-mod').removeClass('fixed');
                $('.content-hdr').removeClass('extra-pad');
                $('.activity-nav-mod .activity-nav-logo .h2').removeClass('visible');
            }
        }

		// reveal sidebar-mod once the page is scrolled at least halfway to the content.
        // This means the sidebar never shows up if the page can't be scrolled that far!
        // if( window_top >= content_top/2 ) {
        //     $('.sidebar-mod').fadeIn(2000);
        // }
	});

    // Just fade the sidebar in over three seconds
    $('.sidebar-mod').fadeIn(3000);

	// adding expanded class to .sidebar-mod on click
	$('.sidebar-hdr').add('.sidebar-bd-close').click(function() {
		$('.sidebar-mod').toggleClass('expanded');
	});

    // Set up colorbox for ImageInteractives
    $('.interactive-mod .colorbox').colorbox({});

});  // end document.ready<commit_msg>Set max sizes for ImageInteractive light boxes<commit_after>/*jslint browser: true, sloppy: true, todo: true, devel: true, white: true */
/*global $ */

$(document).ready(function () {
    var headerTop = null;

	// Calculate header size
    if ($('.content-hdr').length > 0) {
        headerTop = $('.content-hdr').offset().top;
    }

    $(window).scroll( function () {
		var windowTop = $(window).scrollTop();

		// Activity nav fixing, if there is one
        if (headerTop) {
            if ( windowTop >= headerTop/2 ) {
                $('.activity-nav-mod').addClass('fixed');
                $('.content-hdr').addClass('extra-pad');
                // $('.activity-nav-mod.fixed').fadeIn();
                $('.activity-nav-mod.fixed .activity-nav-logo .h2').addClass('visible');
            } else {
                $('.activity-nav-mod').removeClass('fixed');
                $('.content-hdr').removeClass('extra-pad');
                $('.activity-nav-mod .activity-nav-logo .h2').removeClass('visible');
            }
        }

		// reveal sidebar-mod once the page is scrolled at least halfway to the content.
        // This means the sidebar never shows up if the page can't be scrolled that far!
        // if( window_top >= content_top/2 ) {
        //     $('.sidebar-mod').fadeIn(2000);
        // }
	});

    // Just fade the sidebar in over three seconds
    $('.sidebar-mod').fadeIn(3000);

	// adding expanded class to .sidebar-mod on click
	$('.sidebar-hdr').add('.sidebar-bd-close').click(function() {
		$('.sidebar-mod').toggleClass('expanded');
	});

    // Set up colorbox for ImageInteractives
    $('.interactive-mod .colorbox').colorbox({ maxWidth: "100%", maxHeight: "100%" });

});  // end document.ready
{'fraction_non_alphanumeric': 0.18387096774193548, 'fraction_numerical': 0.0093841642228739, 'mean_word_length': 2.2485714285714287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '223519', 'n_tokens_mistral': 1037, 'n_tokens_neox': 965, 'n_words': 233}