<commit_before><?php
declare(strict_types=1);

namespace ManaPHP\Amqp;

use ManaPHP\Component;
use ManaPHP\Exception\MisuseException;

/**
 * @property-read \ManaPHP\Pool\ManagerInterface $poolManager
 */
class Client extends Component implements ClientInterface
{
    protected string $uri;
    protected int $pool_size = 4;
    protected int $timeout = 3;
    protected EngineInterface $engine;

    public function __construct(string $uri)
    {
        $this->uri = $uri;

        if (preg_match('#pool_size=(\d+)#', $uri, $match)) {
            $this->pool_size = (int)$match[1];
        }

        $sample = $this->container->make('ManaPHP\Amqp\Engine\Php', [$uri]);
        $this->poolManager->add($this, $sample, $this->pool_size);<commit_msg>fix Condition always evaluates to 'true/false'<commit_after><?php
declare(strict_types=1);

namespace ManaPHP\Amqp;

use ManaPHP\Component;
use ManaPHP\Exception\MisuseException;

/**
 * @property-read \ManaPHP\Pool\ManagerInterface $poolManager
 */
class Client extends Component implements ClientInterface
{
    protected string $uri;
    protected int $pool_size = 4;
    protected int $timeout = 3;
    protected ?EngineInterface $engine = null;

    public function __construct(string $uri)
    {
        $this->uri = $uri;

        if (preg_match('#pool_size=(\d+)#', $uri, $match)) {
            $this->pool_size = (int)$match[1];
        }

        $sample = $this->container->make('ManaPHP\Amqp\Engine\Php', [$uri]);
        $this->poolManager->add($this, $sample, $this->pool_size);
{'fraction_non_alphanumeric': 0.14841218405703174, 'fraction_numerical': 0.005184705119896306, 'mean_word_length': 3.5545722713864305, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '7355059', 'n_tokens_mistral': 500, 'n_tokens_neox': 482, 'n_words': 103}