<commit_before>$(document).on('ready page:load', function() {
    $('#google-search-dropdown').on('show.bs.dropdown', function() {
        $('#google_search i').removeClass('fa-search').addClass('fa-times');
        $('#nav').css('z-index', 'inherit')
    });
    $('#google-search-dropdown').on('shown.bs.dropdown', function() {
        $("#gsc-i-id1").focus();
    });
    $('#google-search-dropdown').on('hidden.bs.dropdown', function() {
        $('#google_search i').removeClass('fa-times').addClass('fa-search');
        $('#nav').css('z-index', 0)
    });
    return false;
});<commit_msg>minor fix on search behavior<commit_after>$(document).on('ready page:load', function(e) {
    $("#google_search").click(function() {
        // Replace search icon with close
        if($('#google_search_wrapper').css('display') == "none") {
            $('#google_search i').removeClass('fa-search').addClass('fa-times');
            $('#nav').css('z-index', 1000);
        } else {
            $('#google_search i').removeClass('fa-times').addClass('fa-search');
        }

        $('#google_search_wrapper').fadeToggle(200, function() {
            $("#gsc-i-id1").focus();
        });
    });
    return false;
});
{'fraction_non_alphanumeric': 0.24279835390946503, 'fraction_numerical': 0.00823045267489712, 'mean_word_length': 3.150170648464164, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5987076', 'n_tokens_mistral': 361, 'n_tokens_neox': 366, 'n_words': 47}