<commit_before><?php

namespace Catalog\Filter;

use Zend\InputFilter\InputFilter;

class Product extends InputFilter
{
    public function __construct()
    {
        $this->add(array(
            'name'        => 'product_id',
            'required'    => 'false',
            'allow_empty' => 'true',
        ));
        $this->add(array(
            'name'        => 'name',
            'allow_empty' => true,
        ));
        $this->add(array(
            'name'        => 'description',
            'allow_empty' => true,
        ));
        $this->add(array(
            'name'        => 'manufacturer_id',
        ));
        $this->add(array(
            'name'        => 'item_number',
            'allow_empty' => true,
        ));
        $this->add(array(
            'name'        => 'product_type_id',
        ));
    }
}<commit_msg>change validation for product form<commit_after><?php

namespace Catalog\Filter;

use Zend\InputFilter\InputFilter;

class Product extends InputFilter
{
    public function __construct()
    {
        $this->add(array(
            'name'        => 'product_id',
            'required'    => 'true',
            'allow_empty' => 'true',
        ));
        $this->add(array(
            'name'        => 'name',
            'allow_empty' => false,
        ));
        $this->add(array(
            'name'        => 'description',
            'allow_empty' => true,
        ));
        $this->add(array(
            'name'        => 'manufacturer_id',
        ));
        $this->add(array(
            'name'        => 'item_number',
            'allow_empty' => true,
        ));
        $this->add(array(
            'name'        => 'product_type_id',
        ));
    }
}
{'fraction_non_alphanumeric': 0.1567034242600116, 'fraction_numerical': 0.0, 'mean_word_length': 1.3977746870653687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '3688706', 'n_tokens_mistral': 501, 'n_tokens_neox': 495, 'n_words': 84}