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

namespace WellCommerce\Bundle\CoreBundle\DataGrid\Configuration;

use Symfony\Component\OptionsResolver\OptionsResolver;

/**
 * Class Mechanics
 *
 * @package WellCommerce\Bundle\CoreBundle\DataGrid\Configuration
 * @author  <NAME> <<EMAIL>>
 */
class Mechanics extends AbstractOption implements OptionInterface
{
    /**
     * {@inheritdoc}
     */
    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setRequired([
            'rows_per_page',
            'key',
        ]);

        $resolver->setDefined([
            'default_sorting',
            'right_click_menu',
            'auto_suggest_delay',
            'auto_suggest_min_length',
            'auto_suggest_suggestions',
            'only_one_selected',
            'no_column_modification',
            'no_column_resizing',
            'create_input',
            'save_column_modification',
            'persistent',
        ]);

        $resolver->setDefaults([
            'rows_per_page' => 50,
            'key'           => 'id',
        ]);

        $resolver->setAllowedTypes([
            'rows_per_page'            => 'int',
            'key'                      => ['int', 'string'],
            'default_sorting'          => ['int', 'string'],
            'right_click_menu'         => 'bool',
            'auto_suggest_delay'       => 'int',
            'auto_suggest_min_length'  => 'int',
            'auto_suggest_suggestions' => 'int',
            'only_one_selected'        => 'bool',
            'no_column_modification'   => 'bool',
            'no_column_resizing'       => 'bool',
            'create_input'             => 'bool',
            'save_column_modification' => 'bool',
            'persistent'               => 'bool',
        ]);
    }<commit_msg>Fixed mechanics<commit_after><?php
/*
 * WellCommerce Open-Source E-Commerce Platform
 *
 * This file is part of the WellCommerce package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code.
 */

namespace WellCommerce\Bundle\CoreBundle\DataGrid\Configuration;

use Symfony\Component\OptionsResolver\OptionsResolver;

/**
 * Class Mechanics
 *
 * @author  <NAME> <<EMAIL>>
 */
class Mechanics extends AbstractOption implements OptionInterface
{
    /**
     * {@inheritdoc}
     */
    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setRequired([
            'rows_per_page',
            'key',
        ]);

        $resolver->setDefaults([
            'rows_per_page'            => 50,
            'key'                      => 'id',
            'default_sorting'          => -9999,
            'right_click_menu'         => false,
            'auto_suggest_delay'       => 500,
            'auto_suggest_min_length'  => 3,
            'auto_suggest_suggestions' => 10,
            'only_one_selected'        => false,
            'no_column_modification'   => false,
            'no_column_resizing'       => false,
            'create_input'             => false,
            'save_column_modification' => true,
            'persistent'               => true,
        ]);

        $resolver->setAllowedTypes([
            'rows_per_page'            => 'int',
            'key'                      => ['int', 'string'],
            'default_sorting'          => ['int', 'string'],
            'right_click_menu'         => 'bool',
            'auto_suggest_delay'       => 'int',
            'auto_suggest_min_length'  => 'int',
            'auto_suggest_suggestions' => 'int',
            'only_one_selected'        => 'bool',
            'no_column_modification'   => 'bool',
            'no_column_resizing'       => 'bool',
            'create_input'             => 'bool',
            'save_column_modification' => 'bool',
            'persistent'               => 'bool',
        ]);
    }
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.003320683111954459, 'mean_word_length': 1.7490221642764017, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 63, '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': '5630263', 'n_tokens_mistral': 1185, 'n_tokens_neox': 1152, 'n_words': 221}