<commit_before>
#include <planet/common.hpp>

namespace planet {

    namespace detail {

        std::function<void (void *)> const null_deleter = [](void *) {};

        char const * const errmsg[] = {
            "invalid cast from \'fs_entry\' to \'file_entry\'",
            "invalid cast from \'fs_entry\' to \'dentry\'"
        };

        generic_shared_null_ptr_t const shared_null_ptr;

    }   // namespace detail

    char const *get_errmsg(detail::errmsg_number num) noexcept
    {
        return num >= detail::pe_end ? nullptr : detail::errmsg[num];
    }

}   // namespace planet
<commit_msg>planet/common: change error messages<commit_after>
#include <planet/common.hpp>

namespace planet {

    namespace detail {

        std::function<void (void *)> const null_deleter = [](void *) {};

        char const * const errmsg[] = {
            "Invalid cast: not a file",
            "Invalid cast: not a directory"
        };

        generic_shared_null_ptr_t const shared_null_ptr;

    }   // namespace detail

    char const *get_errmsg(detail::errmsg_number num) noexcept
    {
        return num >= detail::pe_end ? nullptr : detail::errmsg[num];
    }

}   // namespace planet

{'fraction_non_alphanumeric': 0.12166666666666667, 'fraction_numerical': 0.0, 'mean_word_length': 2.501457725947522, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '772495', 'n_tokens_mistral': 368, 'n_tokens_neox': 352, 'n_words': 91}