<commit_before>var g_navbar = new Navbar();
function initializeNavbar()
{
    g_navbar.addKeyPoint("#home", true);
    g_navbar.addKeyPoint("#about", true);
    g_navbar.addKeyPoint("#skills", false);
    g_navbar.addKeyPoint("#portfolio", true);
    g_navbar.addKeyPoint("#contact", false);
    g_navbar.addKeyPoint("#main-footer", false);
    $(window).on('scroll', Navbar.onScroll);
}

window.onload = function()
{
    var content = $("#content");
    content.append(document.querySelector("#link-home").import.querySelector("#home"));
    content.append(document.querySelector("#link-about").import.querySelector("#about"));
    content.append(document.querySelector("#link-skills").import.querySelector("#skills"));
    content.append(document.querySelector("#link-portfolio").import.querySelector("#portfolio"));
    content.append(document.querySelector("#link-contact").import.querySelector("#contact"));

    initializeNavbar();

    $(function() {
        $.scrollify({
            section : ".section"
        });
    });
};
<commit_msg>- Refactoring<commit_after>function includeHTMLFiles()
{
    var content = $("#content");
    content.append(document.querySelector("#link-home").import.querySelector("#home"));
    content.append(document.querySelector("#link-about").import.querySelector("#about"));
    content.append(document.querySelector("#link-skills").import.querySelector("#skills"));
    content.append(document.querySelector("#link-portfolio").import.querySelector("#portfolio"));
    content.append(document.querySelector("#link-contact").import.querySelector("#contact"));
}

var g_navbar = new Navbar();
function initializeNavbar()
{
    g_navbar.addKeyPoint("#home", true);
    g_navbar.addKeyPoint("#about", true);
    g_navbar.addKeyPoint("#skills", false);
    g_navbar.addKeyPoint("#portfolio", true);
    g_navbar.addKeyPoint("#contact", false);
    g_navbar.addKeyPoint("#main-footer", false);
    $(window).on('scroll', Navbar.onScroll);
}

function setupScrollify()
{
    $(function() {
        $.scrollify({
            section : ".section"
        });
    });
}

window.onload = function()
{
    includeHTMLFiles();
    initializeNavbar();
    setupScrollify();
};

{'fraction_non_alphanumeric': 0.18647912885662432, 'fraction_numerical': 0.0, 'mean_word_length': 4.848806366047746, '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': '2836237', 'n_tokens_mistral': 628, 'n_tokens_neox': 630, 'n_words': 77}