<commit_before>window.addEventListener("DOMContentLoaded", function () {

    // Initiate the app with a config. This will instantiate the api and invoke all
    // module registrations
    app({
        path: location.hash ? location.hash.slice(2) : "home",
        root: document.querySelector("body"),
        searchinput: document.querySelector("#topnav-input"),
        debug: true
    });

});<commit_msg>Put focus in searchinput on page load<commit_after>window.addEventListener("DOMContentLoaded", function () {

    var searchinput = document.querySelector("#topnav-input");

    // Initiate the app with a config. This will instantiate the api and invoke all
    // module registrations
    app({
        path: location.hash ? location.hash.slice(2) : "home",
        root: document.querySelector("body"),
        searchinput: searchinput,
        debug: true
    });

    // Set focus on the searchinput
    searchinput.focus();

});
{'fraction_non_alphanumeric': 0.11864406779661017, 'fraction_numerical': 0.00211864406779661, 'mean_word_length': 3.090909090909091, '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': '590042', 'n_tokens_mistral': 247, 'n_tokens_neox': 244, 'n_words': 73}