<commit_before>----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Misc")


local M = R:NewModule("Misc", "AceEvent-3.0", "AceTimer-3.0")

M.modName = L["小玩意儿"]
_Misc = M

M.Modules = {}

function M:RegisterMiscModule(name)
    table.insert(M.Modules, name)
end

function M:Initialize()
    local errList, errText = {}, ""
    for _, name in pairs(self.Modules) do
        local module = self:GetModule(name, true)
        if module then
            M:Debug(1, "%s Initializing...", name)
            local _, catch = pcall(module.Initialize, module)<commit_msg>update misc code<commit_after>----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Misc")


local M = R:NewModule("Misc", "AceEvent-3.0", "AceTimer-3.0")

M.modName = L["小玩意儿"]
_Misc = M

_Modules = {}

function M:RegisterMiscModule(name)
    table.insert(_Modules, name)
end

function M:Initialize()
    local errList, errText = {}, ""
    for _, name in pairs(_Modules) do
        local module = self:GetModule(name, true)
        if module then
            M:Debug(1, "%s Initializing...", name)
            local _, catch = pcall(module.Initialize, module)
{'fraction_non_alphanumeric': 0.29288389513108615, 'fraction_numerical': 0.00749063670411985, 'mean_word_length': 1.7044534412955465, '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': '1876995', 'n_tokens_mistral': 385, 'n_tokens_neox': 392, 'n_words': 91}