<commit_before>var graphite = "http://graphite.mrfjo.org/render/";

var loaded = 0;

$(function() {
    if (loaded === 0) {
        metrics = [ {
            name: "Balkong",
            metricPath: "mrfjo.hjemme.temp.telldus.Balkong",
            type: "temperature",
            suffix: "°C",
            scale: "",
            dashboard: true,
            single: false
        }, {
            name: "Soverom",
            metricPath: "mrfjo.hjemme.temp.telldus.Soverom",
            type: "temperature",
            suffix: "°C",
            dashboard: true,
            scale: "",
            single: ""
        }, {
            name: "Office desk",
            metricPath: "mrfjo.hjemme.temp.28-000002dcb9bc",
            type: "temperature",
            dashboard: false,
            suffix: "°C",
            scale: "0.001",
            single: ""
        }, {
            name: "Outside wall",
            metricPath: "mrfjo.hjemme.temp.28-0000044ddd1d",
            type: "temperature",
            dashboard: false,
            suffix: "°C",
            scale: "0.001",
            single: ""
        }, {
            name: "Barometer",
            metricPath: "mrfjo.hjemme.pressure.bmp085_pressure",
            type: "pressure",
            dashboard: true,
            suffix: "",
            scale: "Pa",
            single: true
        }, {
            name: "Light",
            metricPath: "mrfjo.hjemme.light.tsl2561_lux",
            type: "light",
            dashboard: false,
            suffix: "lx",
            scale: "",
            single: true
        }, {
            name: "Humidity",
            metricPath: "mrfjo.hjemme.humidity.dht11_humidity",
            type: "humidity",
            dashboard: false,
            suffix: "%",
            scale: "",
            single: true
        } ];
        loaded = 1;
    }
});
<commit_msg>Clean up loading of metrics object<commit_after>var graphite = "http://graphite.mrfjo.org/render/";

var metrics = metrics || [ {
    name: "Balkong",
    metricPath: "mrfjo.hjemme.temp.telldus.Balkong",
    type: "temperature",
    suffix: "°C",
    scale: "",
    dashboard: true,
    single: false
}, {
    name: "Soverom",
    metricPath: "mrfjo.hjemme.temp.telldus.Soverom",
    type: "temperature",
    suffix: "°C",
    dashboard: true,
    scale: "",
    single: ""
}, {
    name: "Office desk",
    metricPath: "mrfjo.hjemme.temp.28-000002dcb9bc",
    type: "temperature",
    dashboard: false,
    suffix: "°C",
    scale: "0.001",
    single: ""
}, {
    name: "Outside wall",
    metricPath: "mrfjo.hjemme.temp.28-0000044ddd1d",
    type: "temperature",
    dashboard: false,
    suffix: "°C",
    scale: "0.001",
    single: ""
}, {
    name: "Barometer",
    metricPath: "mrfjo.hjemme.pressure.bmp085_pressure",
    type: "pressure",
    dashboard: true,
    suffix: "",
    scale: "Pa",
    single: true
}, {
    name: "Light",
    metricPath: "mrfjo.hjemme.light.tsl2561_lux",
    type: "light",
    dashboard: false,
    suffix: "lx",
    scale: "",
    single: true
}, {
    name: "Humidity",
    metricPath: "mrfjo.hjemme.humidity.dht11_humidity",
    type: "humidity",
    dashboard: false,
    suffix: "%",
    scale: "",
    single: true
} ];

{'fraction_non_alphanumeric': 0.15296662546353523, 'fraction_numerical': 0.023176761433868973, 'mean_word_length': 1.6930116472545758, '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': '1000513', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1062, 'n_words': 206}