<commit_before>(function(app) {
    if (typeof window.config !== 'undefined') {
        var config = window.config;
    } else {
        if (window.location.port === '6085') {
            // Use the default config
            var config = {
                servers: [{
                    name: "Varnish",
                    host: null,
                    port: 6085,
                    user: false,
                    pass: false
                }],
                update_freq: 2000,
                max_points: 100,
                show_manage_server_page: true,
                show_vcl_page: true,
                show_stats_page: true,
                show_params_page: true,
                show_logs_page: true,
                show_restart_varnish_btn: true
            };
        }
    }

    var requestPlot, bandwidthPlot, requestData = [], bandwidthData = [];
    var servers = config.servers;
    var hasConfig = typeof config !== 'undefined';
    var isCombinedView = servers.length > 1;
    var currentServer = isCombinedView ? -1 : 0;<commit_msg>Add default config and merge with normal config to avoid breaking during upgrades<commit_after>(function(app) {
    var default_config = {
        update_freq: 2000,
        max_points: 100,
        show_manage_server_page: true,
        show_vcl_page: true,
        show_stats_page: true,
        show_params_page: true,
        show_logs_page: true,
        show_restart_varnish_btn: true
    };

    if (typeof window.config !== 'undefined') {
        var config = window.config;
    } else {
        if (window.location.port === '6085') {
            // Use the default config
            var config = {
                servers: [{
                    name: "Varnish",
                    host: null,
                    port: 6085,
                    user: false,
                    pass: false
                }]
            };
        }
    }

    for (var option in default_config) {
        if (typeof config[option] === 'undefined') {
            config[option] = default_config[option];
        }
    }

    var requestPlot, bandwidthPlot, requestData = [], bandwidthData = [];
    var servers = config.servers;
    var hasConfig = typeof config !== 'undefined';
    var isCombinedView = servers.length > 1;
    var currentServer = isCombinedView ? -1 : 0;
{'fraction_non_alphanumeric': 0.0958904109589041, 'fraction_numerical': 0.015410958904109588, 'mean_word_length': 1.5156081808396125, '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': '1153471', 'n_tokens_mistral': 674, 'n_tokens_neox': 608, 'n_words': 158}