<commit_before>
/* JS behaviors for all Dryad pages */
jQuery(document).ready(function() {

    // If the page has separate sidebar boxes, try to align the topmost
    // box with the first "primary" box on the page.
    var topMainBox = $('#ds-body .primary:eq(0)');
    var topSidebarBox = $('#ds-options .simple-box:eq(0)');
    if (topMainBox.length && topSidebarBox.length) {
        var mainPageBoxTop = topMainBox.offset().top;
        var sidebarBoxTop = topSidebarBox.offset().top;
        var boxNudge = mainPageBoxTop - sidebarBoxTop;
        // ASSUMES that #ds-option has no padding-top!
        $('#ds-options').css('padding-top', boxNudge+"px");
    }

    jQuery('span.field-help').each(function(entry){
        jQuery(jQuery('span.field-help')[entry]).html(jQuery(jQuery('span.field-help')[entry]).text());
    });

    jQuery("#aspect_discovery_SimpleSearch_item_search-filter-list").css("display","none");

    jQuery("#advanced-search").click(function(){
        jQuery("#aspect_discovery_SimpleSearch_item_search-filter-list").toggle();
    });

    jQuery('#main-menu ul.sf-menu')
        .supersubs({
            // all numeric properties are in em
            minWidth: 12,
            maxWidth: 24,
            extraWidth: 1
        })
        .superfish({
            // make the menu snappy (fast+simple animation)
            delay: 0,
            animation: {
                //height: 'show',
                opacity: 'show'
            },
            speed: 0, 
            disableHI: true     // remove menu delay (from hoverIntent)
        })
        .supposition();

    // General support for simple tabs (styled as buttons) in all pages
    // NOTE: This logic supports multiple sets of tabs on a page.
    var jQuerytabButtons = jQuery('.tab-buttons a');
    jQuerytabButtons.unbind('click').click(function() {
        // highlight this button and show its panel
        jQuery(this).addClass('selected');
        var jQuerypanel = jQuery(jQuery(this).attr('href'));
        jQuerypanel.show();
        // dim others and hide their panels
        jQuery(this).siblings().each(function() {
            jQuery(this).removeClass('selected');
            var jQuerypanel = jQuery(jQuery(this).attr('href'));
            jQuerypanel.hide();
        });
        return false;
    });
    // CLick the first (default) tab in each set
    jQuery('.tab-buttons a:first-child').click();

});

/* JS behaviors for Home page only */
jQuery(document).ready(function() {
    // main carousel at top of homepage
    jQuery('#dryad-home-carousel .bxslider').bxSlider({
        auto: true,
        autoHover: true,
        pause: 10000,  // in ms
        speed: 500,   // ms for slide transition<commit_msg>Faster carousel on Home page (10sec => 6sec)<commit_after>
/* JS behaviors for all Dryad pages */
jQuery(document).ready(function() {

    // If the page has separate sidebar boxes, try to align the topmost
    // box with the first "primary" box on the page.
    var topMainBox = $('#ds-body .primary:eq(0)');
    var topSidebarBox = $('#ds-options .simple-box:eq(0)');
    if (topMainBox.length && topSidebarBox.length) {
        var mainPageBoxTop = topMainBox.offset().top;
        var sidebarBoxTop = topSidebarBox.offset().top;
        var boxNudge = mainPageBoxTop - sidebarBoxTop;
        // ASSUMES that #ds-option has no padding-top!
        $('#ds-options').css('padding-top', boxNudge+"px");
    }

    jQuery('span.field-help').each(function(entry){
        jQuery(jQuery('span.field-help')[entry]).html(jQuery(jQuery('span.field-help')[entry]).text());
    });

    jQuery("#aspect_discovery_SimpleSearch_item_search-filter-list").css("display","none");

    jQuery("#advanced-search").click(function(){
        jQuery("#aspect_discovery_SimpleSearch_item_search-filter-list").toggle();
    });

    jQuery('#main-menu ul.sf-menu')
        .supersubs({
            // all numeric properties are in em
            minWidth: 12,
            maxWidth: 24,
            extraWidth: 1
        })
        .superfish({
            // make the menu snappy (fast+simple animation)
            delay: 0,
            animation: {
                //height: 'show',
                opacity: 'show'
            },
            speed: 0, 
            disableHI: true     // remove menu delay (from hoverIntent)
        })
        .supposition();

    // General support for simple tabs (styled as buttons) in all pages
    // NOTE: This logic supports multiple sets of tabs on a page.
    var jQuerytabButtons = jQuery('.tab-buttons a');
    jQuerytabButtons.unbind('click').click(function() {
        // highlight this button and show its panel
        jQuery(this).addClass('selected');
        var jQuerypanel = jQuery(jQuery(this).attr('href'));
        jQuerypanel.show();
        // dim others and hide their panels
        jQuery(this).siblings().each(function() {
            jQuery(this).removeClass('selected');
            var jQuerypanel = jQuery(jQuery(this).attr('href'));
            jQuerypanel.hide();
        });
        return false;
    });
    // CLick the first (default) tab in each set
    jQuery('.tab-buttons a:first-child').click();

});

/* JS behaviors for Home page only */
jQuery(document).ready(function() {
    // main carousel at top of homepage
    jQuery('#dryad-home-carousel .bxslider').bxSlider({
        auto: true,
        autoHover: true,
        pause: 6000,  // in ms
        speed: 500,   // ms for slide transition
{'fraction_non_alphanumeric': 0.1400437636761488, 'fraction_numerical': 0.006564551422319475, 'mean_word_length': 2.3526894865525674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3229864', 'n_tokens_mistral': 1579, 'n_tokens_neox': 1521, 'n_words': 393}