<commit_before>function initialise() {
    /**
     * Called upon page load.
     */
    update(false);
    setSolrVersions();
    toggleRefresh(true);
    render();
}

function getSolrVersions() {
    $.ajax({
        url: '/solr_versions',
        type: 'GET',
        data: '',
        async: false,
        success: function(data, status, jqXHR){
            D['solr_versions'] = data['data'];
        }
    });
}

function toggleRefresh(on) {
    /**
     * Turns on or off the automatic refresh of data on the page.
     */
    if(on === true) {
        refreshHandler = setInterval('update()', D['refresh'] * 1000);
    } else {
        clearInterval(refreshHandler);
    }
}

function update(async) {
    async = (typeof async == 'undefined') ?
            true : async;
    $.ajax({
        url: '/details',
        type: 'GET',
        data: '',
        async: async,
        success: function(data, status, jqXHR){<commit_msg>Store solr version variable in D['data'] for ejs rendering<commit_after>function initialise() {
    /**
     * Called upon page load.
     */
    update(false);
    setSolrVersions();
    toggleRefresh(true);
    render();
}

function getSolrVersions() {
    $.ajax({
        url: '/solr_versions',
        type: 'GET',
        data: '',
        async: false,
        success: function(data, status, jqXHR){
            D['data']['solr_versions'] = data['data'];
        }
    });
}

function toggleRefresh(on) {
    /**
     * Turns on or off the automatic refresh of data on the page.
     */
    if(on === true) {
        refreshHandler = setInterval('update()', D['refresh'] * 1000);
    } else {
        clearInterval(refreshHandler);
    }
}

function update(async) {
    async = (typeof async == 'undefined') ?
            true : async;
    $.ajax({
        url: '/details',
        type: 'GET',
        data: '',
        async: async,
        success: function(data, status, jqXHR){
{'fraction_non_alphanumeric': 0.15360664244940322, 'fraction_numerical': 0.0041515308770108976, 'mean_word_length': 2.0749601275917064, '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': '393169', 'n_tokens_mistral': 594, 'n_tokens_neox': 579, 'n_words': 143}