<commit_before>--[[
Illarion Server

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>. 
]]
local class = require("base.class")

local _condition_helper_empty

--- Basic class for all conditions. Its never needed to create this class in any
--  NPC since this is just a collection of methods the actual condition classes
--  share.
condition = class(function(self)
    self["check"] = _condition_helper_empty
end)

function condition:setNPC(npc)
    self["npc"] = npc
end

function _condition_helper_empty(self, npcChar, texttype, player)
    -- by default nothing is done
end

return condition<commit_msg>Adding missing local in easyNPC framework<commit_after>--[[
Illarion Server

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>. 
]]
local class = require("base.class")

local _condition_helper_empty

--- Basic class for all conditions. Its never needed to create this class in any
--  NPC since this is just a collection of methods the actual condition classes
--  share.
local condition = class(function(self)
    self["check"] = _condition_helper_empty
end)

function condition:setNPC(npc)
    self["npc"] = npc
end

function _condition_helper_empty(self, npcChar, texttype, player)
    -- by default nothing is done
end

return condition
{'fraction_non_alphanumeric': 0.05975103734439834, 'fraction_numerical': 0.0008298755186721991, 'mean_word_length': 4.3937360178970915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1342559', 'n_tokens_mistral': 636, 'n_tokens_neox': 626, 'n_words': 327}