<commit_before><?php

/*
 * This file is part of the RollerworksSearch package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Rollerworks\Bundle\SearchBundle\Processor;

use Doctrine\Common\Cache\Cache;
use Rollerworks\Component\Search\Extension\Symfony\DependencyInjection\ExporterFactory;
use Rollerworks\Component\Search\Extension\Symfony\DependencyInjection\InputFactory;
use Rollerworks\Component\Search\Extension\Symfony\Validator\Validator;
use Rollerworks\Component\Search\Input\ProcessorConfig;
use Rollerworks\Component\Search\SearchConditionOptimizerInterface;
use Rollerworks\Component\Search\SearchConditionSerializer;
use Rollerworks\Component\UriEncoder\UriEncoderInterface;
use Symfony\Component\Translation\TranslatorInterface;

class SearchProcessorFactory implements SearchProcessorFactoryInterface
{
    /**
     * @var InputFactory
     */
    private $inputFactory;

    /**
     * @var ExporterFactory
     */
    private $exportFactory;

    /**
     * @var SearchConditionOptimizerInterface
     */
    private $conditionOptimizer;

    /**
     * @var SearchConditionSerializer
     */
    private $conditionSerializer;

    /**
     * @var Validator
     */
    private $validator;

    /**
     * @var UriEncoderInterface
     */
    private $uirEncoder;

    /**
     * @var Cache
     */
    private $cacheAdapter;

    /**
     * Constructor.
     *
     * @param InputFactory                      $inputFactory
     * @param ExporterFactory                   $exportFactory<commit_msg>Fix missing property in SearchProcessorFactory<commit_after><?php

/*
 * This file is part of the RollerworksSearch package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Rollerworks\Bundle\SearchBundle\Processor;

use Doctrine\Common\Cache\Cache;
use Rollerworks\Component\Search\Extension\Symfony\DependencyInjection\ExporterFactory;
use Rollerworks\Component\Search\Extension\Symfony\DependencyInjection\InputFactory;
use Rollerworks\Component\Search\Extension\Symfony\Validator\Validator;
use Rollerworks\Component\Search\Input\ProcessorConfig;
use Rollerworks\Component\Search\SearchConditionOptimizerInterface;
use Rollerworks\Component\Search\SearchConditionSerializer;
use Rollerworks\Component\UriEncoder\UriEncoderInterface;
use Symfony\Component\Translation\TranslatorInterface;

class SearchProcessorFactory implements SearchProcessorFactoryInterface
{
    /**
     * @var InputFactory
     */
    private $inputFactory;

    /**
     * @var ExporterFactory
     */
    private $exportFactory;

    /**
     * @var SearchConditionOptimizerInterface
     */
    private $conditionOptimizer;

    /**
     * @var SearchConditionSerializer
     */
    private $conditionSerializer;

    /**
     * @var Validator
     */
    private $validator;

    /**
     * @var TranslatorInterface
     */
    private $translator;

    /**
     * @var UriEncoderInterface
     */
    private $uirEncoder;

    /**
     * @var Cache
     */
    private $cacheAdapter;

    /**
     * Constructor.
     *
     * @param InputFactory                      $inputFactory
     * @param ExporterFactory                   $exportFactory
{'fraction_non_alphanumeric': 0.09247695509961344, 'fraction_numerical': 0.0, 'mean_word_length': 3.1175030599755202, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '2636876', 'n_tokens_mistral': 912, 'n_tokens_neox': 891, 'n_words': 189}