<commit_before><?php declare(strict_types=1);

namespace EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\FakerData\String;

use EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\FakerData\AbstractFakerDataProvider;

class LocaleIdentifierFakerDataProvider extends AbstractFakerDataProvider
{
    public const EXCLUDED_LOCALES = [
        'trv_TW',
    ];

    public function __invoke(): string
    {
        do {
            $return = $this->generator->locale;
        } while (\in_array($return, self::EXCLUDED_LOCALES, true));

        return $return;
    }
}
<commit_msg>another locale that needs filtering out<commit_after><?php declare(strict_types=1);

namespace EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\FakerData\String;

use EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\FakerData\AbstractFakerDataProvider;

class LocaleIdentifierFakerDataProvider extends AbstractFakerDataProvider
{
    public const EXCLUDED_LOCALES = [
        'trv_TW',
        'gsw_CH',
    ];

    public function __invoke(): string
    {
        do {
            $return = $this->generator->locale;
        } while (\in_array($return, self::EXCLUDED_LOCALES, true));

        return $return;
    }
}

{'fraction_non_alphanumeric': 0.09966499162479062, 'fraction_numerical': 0.0016750418760469012, 'mean_word_length': 3.7233201581027666, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '534968', 'n_tokens_mistral': 364, 'n_tokens_neox': 355, 'n_words': 60}