<commit_before>$(function () {
    // Custom code to handle nested navigation menu
    $('.dropdown-menu a.dropdown-toggle').on('click', function () {
        if (!$(this).next().hasClass('show')) {
            $(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
        }
        var $subMenu = $(this).next(".dropdown-menu");
        $subMenu.toggleClass('show');


        $(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function () {
            $('.dropdown-submenu .show').removeClass("show");
        });


        return false;
    });

    // Filter the results on keyup
    $('#search-field').on('keyup', function () {

        var query = $(this).val();
        var entryParent = $('#result-list');
        var entries = $(entryParent).find('li').not('#no-result');
        var hasResult = false;
        var noResult = $('#no-result');

        if (query != undefined && query != '') {
            $(entries).each(function () {
                if ($(this).text().toLowerCase().indexOf(query.toLowerCase()) == -1) {
                    $(this).hide();
                } else {
                    hasResult = true;
                    $(this).show();
                }
            });
            if (hasResult) {
                $(noResult).hide();
            } else {
                $(noResult.show());
                hasResult = true;
            }
        }

        if (hasResult) {
            $(entryParent).width($(this).innerWidth())
            .css('left', $('#search-btn').parent().width())
            .show();
        } else {
            $(entryParent).hide();
        }
    });

    var closeSearch = function() {
        $('#search-field').val('');
        $('#search-field').trigger('keyup');
    }
    // Close the search result, when clicking outside
    $(':not("#search-area")').on('click', closeSearch);
    $(document).keyup(function(e) {
        if (e.key === 'Escape') {
            closeSearch();
        }
    });

    // Control size of navbar on scrolling
    $(window).scroll(function () {
        if ($(document).scrollTop() > 50) {
          $('.navbar').addClass('navbar-small').removeClass('container');
      }
      else {
          $('.navbar').removeClass('navbar-small').addClass('container');
      }<commit_msg>add proper margin on top of page<commit_after>$(function () {
    // Custom code to handle nested navigation menu
    $('.dropdown-menu a.dropdown-toggle').on('click', function () {
        if (!$(this).next().hasClass('show')) {
            $(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
        }
        var $subMenu = $(this).next(".dropdown-menu");
        $subMenu.toggleClass('show');


        $(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function () {
            $('.dropdown-submenu .show').removeClass("show");
        });


        return false;
    });

    // Filter the results on keyup
    $('#search-field').on('keyup', function () {

        var query = $(this).val();
        var entryParent = $('#result-list');
        var entries = $(entryParent).find('li').not('#no-result');
        var hasResult = false;
        var noResult = $('#no-result');

        if (query != undefined && query != '') {
            $(entries).each(function () {
                if ($(this).text().toLowerCase().indexOf(query.toLowerCase()) == -1) {
                    $(this).hide();
                } else {
                    hasResult = true;
                    $(this).show();
                }
            });
            if (hasResult) {
                $(noResult).hide();
            } else {
                $(noResult.show());
                hasResult = true;
            }
        }

        if (hasResult) {
            $(entryParent).width($(this).innerWidth())
            .css('left', $('#search-btn').parent().width())
            .show();
        } else {
            $(entryParent).hide();
        }
    });

    var closeSearch = function() {
        $('#search-field').val('');
        $('#search-field').trigger('keyup');
    }
    // Close the search result, when clicking outside
    $(':not("#search-area")').on('click', closeSearch);
    $(document).keyup(function(e) {
        if (e.key === 'Escape') {
            closeSearch();
        }
    });

    // Control size of navbar on scrolling
    $(window).scroll(function () {
        if ($(document).scrollTop() > 50) {
          $('.navbar').addClass('navbar-small').removeClass('container');
          $('main').css('margin-top', '100px');
      }
      else {
          $('.navbar').removeClass('navbar-small').addClass('container');
          $('main').removeAttr('style');
      }
{'fraction_non_alphanumeric': 0.20185810810810811, 'fraction_numerical': 0.001900337837837838, 'mean_word_length': 1.8013010053222944, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3059751', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1254, 'n_words': 221}