<commit_before>using System;

namespace Valit.Errors
{
    internal class ValitRuleError
    {
        private readonly Func<string> _messageFunc;
        public string Message => _messageFunc();
        public int? ErrorCode { get; }

        private ValitRuleError(Func<string> messageFunc)
        {
            _messageFunc = messageFunc;
        }

        private ValitRuleError(int errorCode)
        {
            ErrorCode = errorCode;
            _messageFunc = () => null;
        }

        public static ValitRuleError CreateForMessage(Func<string> messageFunc)
            => new ValitRuleError(messageFunc);

        public static ValitRuleError CreateForErrorCode(int errorCode)
            => new ValitRuleError(errorCode);   
    }
}<commit_msg>Replaced default value for function to be empty string<commit_after>using System;

namespace Valit.Errors
{
    internal class ValitRuleError
    {
        private readonly Func<string> _messageFunc;
        public string Message => _messageFunc();
        public int? ErrorCode { get; }

        private ValitRuleError(Func<string> messageFunc)
        {
            _messageFunc = messageFunc;
        }

        private ValitRuleError(int errorCode)
        {
            ErrorCode = errorCode;
            _messageFunc = () => string.Empty;
        }

        public static ValitRuleError CreateForMessage(Func<string> messageFunc)
            => new ValitRuleError(messageFunc);

        public static ValitRuleError CreateForErrorCode(int errorCode)
            => new ValitRuleError(errorCode);   
    }
}
{'fraction_non_alphanumeric': 0.07301587301587302, 'fraction_numerical': 0.0, 'mean_word_length': 2.3389830508474576, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, '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': '5696895', 'n_tokens_mistral': 413, 'n_tokens_neox': 404, 'n_words': 98}