<commit_before><?php

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

namespace JordiLlonch\Bundle\DeployBundle\Service;

use Symfony\Component\Console\Output\OutputInterface;
use Psr\Log\LoggerInterface;

class Engine
{
    protected $zoneManager;
    protected $dryMode = false;
    protected $silent = null;
    protected $configGeneral = array();
    protected $configZones = array();
    protected $helper = array();

    /**
     * @var OutputInterface
     */
    protected $output;

    /**
     * @var LoggerInterface
     */
    protected $logger;

    /**
     * @param ZoneManager $zoneManager
     * @param $dryMode
     */
    public function __construct(ZoneManager $zoneManager)
    {
        $this->zoneManager = $zoneManager;
    }

    /**
     * @param array $config
     */
    public function setConfigGeneralConfig(array $config)
    {
        $this->configGeneral = $config;
    }

    /**
     * @param array $config
     */
    public function setConfigZonesConfig(array $config)
    {
        $this->configZones = $config;
        if(isset($config['helper'])) $this->helper = $config['helper'];
    }

    /**
     * @param boolean $dryMode
     */
    public function setDryMode($dryMode)
    {
        $this->dryMode = $dryMode;
    }

    /**
     * @param boolean $silent
     */
    public function setSilent($silent)
    {
        $this->silent = $silent;
    }

    /**
     * Set deployer in mode to deploy only for selected zones
     *
     * @param array $selectedZones
     */
    public function setSelectedZones(array $selectedZones)
    {
        if(empty($selectedZones) || empty($selectedZones[0])) throw new \Exception('Zones is required');<commit_msg>fix helper config passed to Engine<commit_after><?php

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

namespace JordiLlonch\Bundle\DeployBundle\Service;

use Symfony\Component\Console\Output\OutputInterface;
use Psr\Log\LoggerInterface;

class Engine
{
    protected $zoneManager;
    protected $dryMode = false;
    protected $silent = null;
    protected $configGeneral = array();
    protected $configZones = array();
    protected $helper = array();

    /**
     * @var OutputInterface
     */
    protected $output;

    /**
     * @var LoggerInterface
     */
    protected $logger;

    /**
     * @param ZoneManager $zoneManager
     * @param $dryMode
     */
    public function __construct(ZoneManager $zoneManager)
    {
        $this->zoneManager = $zoneManager;
    }

    /**
     * @param array $config
     */
    public function setConfigGeneralConfig(array $config)
    {
        $this->configGeneral = $config;
        if(isset($config['helper'])) $this->helper = $config['helper'];
    }

    /**
     * @param array $config
     */
    public function setConfigZonesConfig(array $config)
    {
        $this->configZones = $config;
    }

    /**
     * @param boolean $dryMode
     */
    public function setDryMode($dryMode)
    {
        $this->dryMode = $dryMode;
    }

    /**
     * @param boolean $silent
     */
    public function setSilent($silent)
    {
        $this->silent = $silent;
    }

    /**
     * Set deployer in mode to deploy only for selected zones
     *
     * @param array $selectedZones
     */
    public function setSelectedZones(array $selectedZones)
    {
        if(empty($selectedZones) || empty($selectedZones[0])) throw new \Exception('Zones is required');
{'fraction_non_alphanumeric': 0.12197070572569907, 'fraction_numerical': 0.0005326231691078562, 'mean_word_length': 2.523452157598499, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, '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': '1954589', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1097, 'n_words': 274}