<commit_before><?php
/*
 * This file is part of the Gea package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Gea\Filter;

use Gea\Exception\FilterException;

/**
 * @author  <NAME> <<EMAIL>>
 * @license http://opensource.org/licenses/MIT MIT
 * @package Gea
 */
final class EnumFilter implements FilterInterface
{
    use LazyFilterTrait;

    const MODE_STRICT = 1;

    /**
     * @var bool
     */
    private static $lazy = false;

    /**
     * @var array
     */
    private $allowed;

    /**
     * @var bool
     */
    private $strict;<commit_msg>Add MODE_NOT_STRICT to EnumFilter<commit_after><?php
/*
 * This file is part of the Gea package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Gea\Filter;

use Gea\Exception\FilterException;

/**
 * @author  <NAME> <<EMAIL>>
 * @license http://opensource.org/licenses/MIT MIT
 * @package Gea
 */
final class EnumFilter implements FilterInterface
{
    use LazyFilterTrait;

    const MODE_NOT_STRICT = 0;
    const MODE_STRICT = 1;

    /**
     * @var bool
     */
    private static $lazy = false;

    /**
     * @var array
     */
    private $allowed;

    /**
     * @var bool
     */
    private $strict;
{'fraction_non_alphanumeric': 0.12227687983134224, 'fraction_numerical': 0.0021082220660576245, 'mean_word_length': 2.595959595959596, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '2068578', 'n_tokens_mistral': 457, 'n_tokens_neox': 446, 'n_words': 139}