<commit_before>do
    local versionString
    if not _mpPatch then
        versionString = Locale.Lookup("TXT_KEY_MPPATCH_UNKNOWN_FAILURE")
    elseif not _mpPatch.canEnable then
        versionString = Locale.Lookup("TXT_KEY_MPPATCH_BINARY_NOT_PATCHED")
    elseif not _mpPatch.enabled then
        versionString = Locale.Lookup("TXT_KEY_MPPATCH_DISABLED")
    else
        versionString = "MpPatch v".._mpPatch.versionString
    end
    Controls.VersionNumber:SetText(Controls.VersionNumber:GetText().." -- "..versionString)
end<commit_msg>Try to reduce the chance of accidentally activating NetPatch somewhere it shouldn't be.<commit_after>do
    local versionString
    if not _mpPatch then
        versionString = Locale.Lookup("TXT_KEY_MPPATCH_UNKNOWN_FAILURE")
    elseif not _mpPatch.canEnable then
        versionString = Locale.Lookup("TXT_KEY_MPPATCH_BINARY_NOT_PATCHED")
    elseif not _mpPatch.enabled then
        versionString = Locale.Lookup("TXT_KEY_MPPATCH_DISABLED")
    else
        versionString = "MpPatch v".._mpPatch.versionString
    end
    Controls.VersionNumber:SetText(Controls.VersionNumber:GetText().." -- "..versionString)
end

if _mpPatch and _mpPatch.canEnable then
    Modding = _mpPatch.hookTable(Modding, {ActivateDLC = function(...)
        print("Resetting NetPatch (just in case)")
        _mpPatch.patch.NetPatch.reset()
        return Modding._super.ActivateDLC(...)
    end})
end
{'fraction_non_alphanumeric': 0.08720112517580872, 'fraction_numerical': 0.0, 'mean_word_length': 3.759197324414716, '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': '2655282', 'n_tokens_mistral': 442, 'n_tokens_neox': 443, 'n_words': 88}