<commit_before>/* Copyright (c) <NAME>
 * See LICENSE for details.
 *
 * Some example recipes for Collectd RRD data - you *will* need to modify this
 * based on the RRD data available on your system.
 */

if(typeof(jarmon) === 'undefined') {
    var jarmon = {};
}

jarmon.TAB_RECIPES_STANDARD = [
    ['System',      ['cpu', 'memory','load']],
    ['Network',     ['interface']]
];

jarmon.CHART_RECIPES_COLLECTD = {
    'cpu': {
        title: 'CPU Usage',
        data: [
            ['data/cpu-0/cpu-wait.rrd', 0, 'CPU-0 Wait', '%'],
            ['data/cpu-1/cpu-wait.rrd', 0, 'CPU-1 Wait', '%'],
            ['data/cpu-0/cpu-system.rrd', 0, 'CPU-0 System', '%'],
            ['data/cpu-1/cpu-system.rrd', 0, 'CPU-1 System', '%'],
            ['data/cpu-0/cpu-user.rrd', 0, 'CPU-0 User', '%'],
            ['data/cpu-1/cpu-user.rrd', 0, 'CPU-1 User', '%']
        ],
        options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS,
                                         jarmon.Chart.STACKED_OPTIONS)
    },

    'memory': {
        title: 'Memory',
        data: [
            ['data/memory/memory-buffered.rrd', 0, 'Buffered', 'B'],
            ['data/memory/memory-used.rrd', 0, 'Used', 'B'],
            ['data/memory/memory-cached.rrd', 0, 'Cached', 'B'],
            ['data/memory/memory-free.rrd', 0, 'Free', 'B']
        ],
        options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS,
                                         jarmon.Chart.STACKED_OPTIONS)
    },

    'load': {
        title: 'Load Average',
        data: [
            ['data/load/load.rrd', 'shortterm', 'Short Term', ''],
            ['data/load/load.rrd', 'midterm', 'Medium Term', ''],
            ['data/load/load.rrd', 'longterm', 'Long Term', '']
        ],
        options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS)
    },

    'interface': {
        title: 'Wlan0 Throughput',
        data: [
            ['data/interface/if_octets-wlan0.rrd', 'tx', 'Transmit', 'b/s'],
            ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'b/s']
        ],
        options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS)
    }
};<commit_msg>fix network throughput units<commit_after>/* Copyright (c) <NAME>
 * See LICENSE for details.
 *
 * Some example recipes for Collectd RRD data - you *will* need to modify this
 * based on the RRD data available on your system.
 */

if(typeof(jarmon) === 'undefined') {
    var jarmon = {};
}

jarmon.TAB_RECIPES_STANDARD = [
    ['System',      ['cpu', 'memory','load']],
    ['Network',     ['interface']]
];

jarmon.CHART_RECIPES_COLLECTD = {
    'cpu': {
        title: 'CPU Usage',
        data: [
            ['data/cpu-0/cpu-wait.rrd', 0, 'CPU-0 Wait', '%'],
            ['data/cpu-1/cpu-wait.rrd', 0, 'CPU-1 Wait', '%'],
            ['data/cpu-0/cpu-system.rrd', 0, 'CPU-0 System', '%'],
            ['data/cpu-1/cpu-system.rrd', 0, 'CPU-1 System', '%'],
            ['data/cpu-0/cpu-user.rrd', 0, 'CPU-0 User', '%'],
            ['data/cpu-1/cpu-user.rrd', 0, 'CPU-1 User', '%']
        ],
        options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS,
                                         jarmon.Chart.STACKED_OPTIONS)
    },

    'memory': {
        title: 'Memory',
        data: [
            ['data/memory/memory-buffered.rrd', 0, 'Buffered', 'B'],
            ['data/memory/memory-used.rrd', 0, 'Used', 'B'],
            ['data/memory/memory-cached.rrd', 0, 'Cached', 'B'],
            ['data/memory/memory-free.rrd', 0, 'Free', 'B']
        ],
        options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS,
                                         jarmon.Chart.STACKED_OPTIONS)
    },

    'load': {
        title: 'Load Average',
        data: [
            ['data/load/load.rrd', 'shortterm', 'Short Term', ''],
            ['data/load/load.rrd', 'midterm', 'Medium Term', ''],
            ['data/load/load.rrd', 'longterm', 'Long Term', '']
        ],
        options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS)
    },

    'interface': {
        title: 'Wlan0 Throughput',
        data: [
            ['data/interface/if_octets-wlan0.rrd', 'tx', 'Transmit', 'B/s'],
            ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'B/s']
        ],
        options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS)
    }
};
{'fraction_non_alphanumeric': 0.20078649086282674, 'fraction_numerical': 0.011566042100393246, 'mean_word_length': 1.9657064471879286, 'pattern_counts': {'":': 0, '<': 5, '<?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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3298317', 'n_tokens_mistral': 1525, 'n_tokens_neox': 1483, 'n_words': 271}