<commit_before>------------------------------------------
-- Ϣʾ
------------------------------------------
local _L = MY.LoadLangPack(MY.GetAddonInfo().szRoot.."MY_Toolbox/lang/")
local _Cache = {
    bFighting = false,
    nLastFightStartTimestarp = 0,
    nLastFightEndTimestarp = 0,
}
local Config_Default = {
    Ping        = { -- ӳ
    	bEnable = false, bShowBg = false, bShowTitle = false, rgb = { 95, 255, 95 },
    	anchor = { x = -180, y = -210, s = "BOTTOMCENTER", r = "BOTTOMCENTER" }, nFont = 48,
    },
    TimeMachine = { -- ʾʾж࿨
        bEnable = false, bShowBg = false, bShowTitle = true, rgb = { 31, 255, 31 },
        anchor  = { x = -272, y = -211, s = "BOTTOMCENTER", r = "BOTTOMCENTER" },
    },
    FPS         = { -- FPS
        bEnable = false, bShowBg = true, bShowTitle = true,
    	anchor  = { x = -10, y = -220, s = "BOTTOMRIGHT", r = "BOTTOMRIGHT" },
    },
    Distance    = { -- Ŀ
        bEnable = false, bShowBg = false, bShowTitle = false, rgb = { 255, 255, 0 },
        anchor  = { x = 203, y = -106, s = "CENTER", r = "CENTER" }, nFont = 209,
    },
    SysTime     = { -- ϵͳʱ
        bEnable = false, bShowBg = true, bShowTitle = true,
    	anchor  = { x = 285, y = -18, s = "BOTTOMLEFT", r = "BOTTOMLEFT" },
    },
    FightTime   = { -- սʱ
        bEnable = false, bShowBg = false, bShowTitle = false, rgb = { 255, 0, 128 },
        anchor  = { x = 340, y = -214, s = "BOTTOMCENTER", r = "BOTTOMCENTER" }, nFont = 199,
    },
    LotusTime   = { -- 𻨺źʱ
        bEnable = false, bShowBg = true, bShowTitle = true,
    	anchor  = { x = -290, y = -38, s = "BOTTOMRIGHT", r = "BOTTOMRIGHT" },
    },
    GPS         = { -- ɫ
        bEnable = false, bShowBg = true, bShowTitle = false, rgb = { 255, 255, 255 },
        anchor  = { x = -21, y = 250, s = "TOPRIGHT", r = "TOPRIGHT" }, nFont = 0,
    },
    Speedometer = { -- ɫٶ
        bEnable = false, bShowBg = false, bShowTitle = false, rgb = { 255, 255, 255 },
        anchor  = { x = -21, y = 210, s = "TOPRIGHT", r = "TOPRIGHT" }, nFont = 0,
    },
}
local _C = {}
MY_InfoTip = {}
MY_InfoTip.Config = clone(Config_Default)
_C.tTm = {}
_C.nTmFrameCount = GetLogicFrameCount()
_C.tSm = {}
_C.nSmFrameCount = GetLogicFrameCount()
MY_InfoTip.Cache = {
    Ping         = { -- Ping
        formatString = '', title = _L['ping monitor'], prefix = _L['Ping: '], content = _L['%d'],
        GetContent = function() return string.format(MY_InfoTip.Cache.Ping.formatString, GetPingValue() / 2) end
    },
    TimeMachine  = { -- ʾ
        formatString = '', title = _L['time machine'], prefix = _L['Rate: '], content = 'x%.2f',
        GetContent = function()
            local s = 1
            if _C.nTmFrameCount ~= GetLogicFrameCount() then
                local tm = _C.tTm[GLOBAL.GAME_FPS] or {}
                tm.frame = GetLogicFrameCount()
                tm.tick  = GetTickCount()
                for i = GLOBAL.GAME_FPS, 1, -1 do
                    _C.tTm[i] = _C.tTm[i - 1]
                end
                _C.tTm[1] = tm
                _C.nTmFrameCount = GetLogicFrameCount()
            end
            local tm = _C.tTm[GLOBAL.GAME_FPS] or {}<commit_msg>一处笔误<commit_after>------------------------------------------
-- Ϣʾ
------------------------------------------
local _L = MY.LoadLangPack(MY.GetAddonInfo().szRoot.."MY_Toolbox/lang/")
local _Cache = {
    bFighting = false,
    nLastFightStartTimestarp = 0,
    nLastFightEndTimestarp = 0,
}
local Config_Default = {
    Ping        = { -- ӳ
    	bEnable = false, bShowBg = false, bShowTitle = false, rgb = { 95, 255, 95 },
    	anchor = { x = -180, y = -210, s = "BOTTOMCENTER", r = "BOTTOMCENTER" }, nFont = 48,
    },
    TimeMachine = { -- ʾʾж࿨
        bEnable = false, bShowBg = false, bShowTitle = true, rgb = { 31, 255, 31 },
        anchor  = { x = -272, y = -211, s = "BOTTOMCENTER", r = "BOTTOMCENTER" },
    },
    FPS         = { -- FPS
        bEnable = false, bShowBg = true, bShowTitle = true,
    	anchor  = { x = -10, y = -220, s = "BOTTOMRIGHT", r = "BOTTOMRIGHT" },
    },
    Distance    = { -- Ŀ
        bEnable = false, bShowBg = false, bShowTitle = false, rgb = { 255, 255, 0 },
        anchor  = { x = 203, y = -106, s = "CENTER", r = "CENTER" }, nFont = 209,
    },
    SysTime     = { -- ϵͳʱ
        bEnable = false, bShowBg = true, bShowTitle = true,
    	anchor  = { x = 285, y = -18, s = "BOTTOMLEFT", r = "BOTTOMLEFT" },
    },
    FightTime   = { -- սʱ
        bEnable = false, bShowBg = false, bShowTitle = false, rgb = { 255, 0, 128 },
        anchor  = { x = 340, y = -214, s = "BOTTOMCENTER", r = "BOTTOMCENTER" }, nFont = 199,
    },
    LotusTime   = { -- 𻨺źʱ
        bEnable = false, bShowBg = true, bShowTitle = true,
    	anchor  = { x = -290, y = -38, s = "BOTTOMRIGHT", r = "BOTTOMRIGHT" },
    },
    GPS         = { -- ɫ
        bEnable = false, bShowBg = true, bShowTitle = false, rgb = { 255, 255, 255 },
        anchor  = { x = -21, y = 250, s = "TOPRIGHT", r = "TOPRIGHT" }, nFont = 0,
    },
    Speedometer = { -- ɫٶ
        bEnable = false, bShowBg = false, bShowTitle = false, rgb = { 255, 255, 255 },
        anchor  = { x = -21, y = 210, s = "TOPRIGHT", r = "TOPRIGHT" }, nFont = 0,
    },
}
local _C = {}
MY_InfoTip = {}
MY_InfoTip.Config = clone(Config_Default)
_C.tTm = {}
_C.nTmFrameCount = GetLogicFrameCount()
_C.tSm = {}
_C.nSmFrameCount = GetLogicFrameCount()
MY_InfoTip.Cache = {
    Ping         = { -- Ping
        formatString = '', title = _L['ping monitor'], prefix = _L['Ping: '], content = _L['%d'],
        GetContent = function() return string.format(MY_InfoTip.Cache.Ping.formatString, GetPingValue() / 2) end
    },
    TimeMachine  = { -- ʾ
        formatString = '', title = _L['time machine'], prefix = _L['Rate: '], content = 'x%.2f',
        GetContent = function()
            local s = 1
            if _C.nTmFrameCount ~= GetLogicFrameCount() then
                local tm = _C.tTm[GLOBAL.GAME_FPS] or {}
                tm.frame = GetLogicFrameCount()
                tm.tick  = GetTickCount()
                for i = GLOBAL.GAME_FPS, 1, -1 do
                    _C.tTm[i] = _C.tTm[i - 1]
                end
                _C.tTm[1] = tm
                _C.nTmFrameCount = GetLogicFrameCount()
            end
            local tm = _C.tTm[GLOBAL.GAME_FPS]
{'fraction_non_alphanumeric': 0.18072097824360805, 'fraction_numerical': 0.03620771796093378, 'mean_word_length': 1.7929046563192905, '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': '5602904', 'n_tokens_mistral': 2564, 'n_tokens_neox': 2344, 'n_words': 553}