<commit_before><?php
namespace TeamTNT\TNTSearch\Support;

class Tokenizer implements TokenizerInterface
{
    public function tokenize($text)
    {
        return preg_split("/[^\p{L}\p{N}]+/u", strtolower($text), -1, PREG_SPLIT_NO_EMPTY);
    }
}<commit_msg>mb_strtolower bug fix<commit_after><?php
namespace TeamTNT\TNTSearch\Support;

class Tokenizer implements TokenizerInterface
{
    public function tokenize($text)
    {
        $text = mb_strtolower($text);
        return preg_split("/[^\p{L}\p{N}]+/u", $text, -1, PREG_SPLIT_NO_EMPTY);
    }
}
{'fraction_non_alphanumeric': 0.148014440433213, 'fraction_numerical': 0.0036101083032490976, 'mean_word_length': 4.235849056603773, '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': '7288291', 'n_tokens_mistral': 197, 'n_tokens_neox': 197, 'n_words': 34}