<commit_before>--
-- ion/mod_statusbar/mod_statusbar.lua
-- 
-- Copyright (c) <NAME> 2004-2005.
--
-- Ion is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the License, or
-- (at your option) any later version.
--

-- This is a slight abuse of the _LOADED variable perhaps, but library-like 
-- packages should handle checking if they're loaded instead of confusing 
-- the user with require/include differences.
if _LOADED["mod_statusbar"] then return end

if not ioncore.load_module("mod_statusbar") then
    return
end

local mod_statusbar=_G["mod_statusbar"]
assert(mod_statusbar)


-- Settings {{{

-- Default settings
local defaults={
    template=string.format(
        "[ %%date || %s: %%load || %s: %%mail_new/%%mail_total ]",
        TR("load"), TR("mail")
    ),
}

local date_format_backcompat_kludge

-- }}}


-- Statusbar list {{{

local statusbars={}
<commit_msg>Removed mail monitor from default statusbar template.<commit_after>--
-- ion/mod_statusbar/mod_statusbar.lua
-- 
-- Copyright (c) <NAME> 2004-2005.
--
-- Ion is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the License, or
-- (at your option) any later version.
--

-- This is a slight abuse of the _LOADED variable perhaps, but library-like 
-- packages should handle checking if they're loaded instead of confusing 
-- the user with require/include differences.
if _LOADED["mod_statusbar"] then return end

if not ioncore.load_module("mod_statusbar") then
    return
end

local mod_statusbar=_G["mod_statusbar"]
assert(mod_statusbar)


-- Settings {{{

-- Default settings
local defaults={
    template=string.format(
        "[ %%date || %s: %%load ]",
        --"[ %%date || %s: %%load || %s: %%mail_new/%%mail_total ]",
        TR("load"), TR("mail")
    ),
}

local date_format_backcompat_kludge

-- }}}


-- Statusbar list {{{

local statusbars={}

{'fraction_non_alphanumeric': 0.12677388836329234, 'fraction_numerical': 0.00946073793755913, 'mean_word_length': 3.519230769230769, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4099273', 'n_tokens_mistral': 668, 'n_tokens_neox': 632, 'n_words': 223}