<commit_before><?php

namespace G4\DataMapper\Exception;

use G4\DataMapper\ErrorCodes as ErrorCode;

class EmptyDataException extends \Exception
{
    public function __construct($message = '')
    {
        if(!$message) {
            $message = 'Empty data.';
        }

        parent::__construct($message, ErrorCode::EMPTY_DATA);
    }
}<commit_msg>000 - Added error message constant instead of hardcoded message.<commit_after><?php

namespace G4\DataMapper\Exception;

use G4\DataMapper\ErrorCodes as ErrorCode;
use G4\DataMapper\ErrorMessages as ErrorMessage;

class EmptyDataException extends \Exception
{
    public function __construct($message = '')
    {
        if(!$message) {
            $message = ErrorMessage::EMPTY_DATA;
        }

        parent::__construct($message, ErrorCode::EMPTY_DATA);
    }
}
{'fraction_non_alphanumeric': 0.10962241169305725, 'fraction_numerical': 0.0097442143727162, 'mean_word_length': 3.372340425531915, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1196045', 'n_tokens_mistral': 237, 'n_tokens_neox': 234, 'n_words': 51}