<commit_before>(function ($) {
    'use strict';
    var conf = window.conf;
    var $menu = $('nav.menu'),
        $menuList = $('.menu-list', $menu),
        $menuSwitch = $('.menu-switch', $menu),
        $menuButton = $('button', $menuList),
        $head = $('header'),
        $foot = $('footer'),
        $section = $('section.md-container'),
        $aniContainer = $('.aniContainer'),
        $aniBlock = $('.aniBlock');

    /**
     * initial page
     */
    (function initPage() {
        fixAniBlockSize();
    }());


    /**
     * fix the rotated schema size
     */
    function fixAniBlockSize() {
        var w = $aniContainer.width(),
            h = $aniContainer.height(),
            s = (w > h ? w : h) * 1.3;
        $aniBlock.css({
            width: s,
            height: s,
            top: h / 2 - s / 2,
            left: w / 2 - s / 2
        });
        $menuList.removeAttr('style');
        var h2 = $menuList.height();
        $menuList.css({
            'height': h,
            'padding-top': (h - h2) / 2
        });
    }

    /**
     * load pack md and parse to relative section
     * @param packName
     */
    function loadPack(packName) {
        if (!conf.inRamPack[packName]) {
            $.get(packName + '.md', function (data) {
                console.log('got');
                conf.inRamPack[packName] = true;
                insertContent(packName, data);
                showPack(packName);
            });
        } else {
            showPack(packName);
        }
    }

    /**
     * insert markdown as html
     * @param packName<commit_msg>fix bug<commit_after>(function ($) {
    'use strict';
    var conf = window.conf;
    var $menu = $('nav.menu'),
        $menuList = $('.menu-list', $menu),
        $menuSwitch = $('.menu-switch', $menu),
        $menuButton = $('button', $menuList),
        $head = $('header'),
        $foot = $('footer'),
        $section = $('section.md-container'),
        $aniContainer = $('.aniContainer'),
        $aniBlock = $('.aniBlock');

    /**
     * initial page
     */
    (function initPage() {
        fixAniBlockSize();
    }());


    /**
     * fix the rotated schema size
     */
    function fixAniBlockSize() {
        var w = $aniContainer.width(),
            h = $aniContainer.height(),
            s = (w > h ? w : h) * 1.3;
        $aniBlock.css({
            width: s,
            height: s,
            top: h / 2 - s / 2,
            left: w / 2 - s / 2
        });
        $menuList.removeAttr('style');
        var h2 = $menuList.height();
        $menuList.css({
            'height': h,
            'padding-top': (h - h2) / 2
        });
    }

    /**
     * load pack md and parse to relative section
     * @param packName
     */
    function loadPack(packName) {
        if (!conf.inRamPack[packName]) {
            $.get(packName + '.md', function (data) {
                console.log('got');
                conf.inRamPack[packName] = true;
                insertContent(packName, data);
                showPack(packName);
            });
        } else {
            showPack(packName);
        }
        window.scrollTo(0, 0);
    }

    /**
     * insert markdown as html
     * @param packName
{'fraction_non_alphanumeric': 0.16537867078825347, 'fraction_numerical': 0.0061823802163833074, 'mean_word_length': 1.4533737680060652, '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': '6911072', 'n_tokens_mistral': 1008, 'n_tokens_neox': 952, 'n_words': 220}