<commit_before><?php

namespace CtiDigital\Configurator\Console\Command;

use CtiDigital\Configurator\Model\ComponentList;
use CtiDigital\Configurator\Exception\ConfiguratorAdapterException;
use CtiDigital\Configurator\Api\ConfigInterface;
use CtiDigital\Configurator\Api\ConfiguratorAdapterInterface;
use Magento\Framework\ObjectManagerInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class ListCommand extends Command
{
    /**
     * @var ConfiguratorAdapterInterface
     */
    private $configuratorAdapter;

    /**
     * @var ConfigInterface|CtiDigital\Configurator\Console\Command\ListCommand
     */
    private $configInterface;

    /**
     * @var ObjectManagerInterface
     */
    private $objectManagerInterface;

    public function __construct(
        ConfiguratorAdapterInterface $configuratorAdapter,
        ConfigInterface $config,
        ObjectManagerInterface $objectManager
    ) {
        parent::__construct();
        $this->objectManagerInterface = $objectManager;
        $this->configuratorAdapter = $configuratorAdapter;
        $this->configInterface = $config;
    }

    protected function configure()
    {
        $this->setName('configurator:list');
        $this->setDescription('List configurator components');
    }

    /**
     * @param InputInterface $input
     * @param OutputInterface $output
     * @return void
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
     */
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        try {
            $count = 1;
            foreach ($this->configInterface->getAllComponents() as $component) {

                /* @var \CtiDigital\Configurator\Model\Component\ComponentAbstract $componentClass */
                $componentClass = $this->objectManagerInterface->create($component['class']);
                $comment =
                    str_pad($count.') ', 4)
                    . str_pad($componentClass->getComponentAlias(), 20)
                    . ' - ' . $componentClass->getDescription();
                $output->writeln('<comment>' . $comment . '</comment>');
                $count++;
            }
        } catch (ConfiguratorAdapterException $e) {
            $output->writeln('<error>' . $e->getMessage() . '</error>');
        }
    }
}<commit_msg>Codecompletion comment update in ListCommand<commit_after><?php

namespace CtiDigital\Configurator\Console\Command;

use CtiDigital\Configurator\Model\ComponentList;
use CtiDigital\Configurator\Exception\ConfiguratorAdapterException;
use CtiDigital\Configurator\Api\ConfigInterface;
use CtiDigital\Configurator\Api\ConfiguratorAdapterInterface;
use Magento\Framework\ObjectManagerInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class ListCommand extends Command
{
    /**
     * @var ConfiguratorAdapterInterface
     */
    private $configuratorAdapter;

    /**
     * @var ConfigInterface|CtiDigital\Configurator\Console\Command\ListCommand
     */
    private $configInterface;

    /**
     * @var ObjectManagerInterface
     */
    private $objectManagerInterface;

    public function __construct(
        ConfiguratorAdapterInterface $configuratorAdapter,
        ConfigInterface $config,
        ObjectManagerInterface $objectManager
    ) {
        parent::__construct();
        $this->objectManagerInterface = $objectManager;
        $this->configuratorAdapter = $configuratorAdapter;
        $this->configInterface = $config;
    }

    protected function configure()
    {
        $this->setName('configurator:list');
        $this->setDescription('List configurator components');
    }

    /**
     * @param InputInterface $input
     * @param OutputInterface $output
     * @return void
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
     */
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        try {
            $count = 1;
            foreach ($this->configInterface->getAllComponents() as $component) {

                /* @var \CtiDigital\Configurator\Component\ComponentAbstract $componentClass */
                $componentClass = $this->objectManagerInterface->create($component['class']);
                $comment =
                    str_pad($count.') ', 4)
                    . str_pad($componentClass->getComponentAlias(), 20)
                    . ' - ' . $componentClass->getDescription();
                $output->writeln('<comment>' . $comment . '</comment>');
                $count++;
            }
        } catch (ConfiguratorAdapterException $e) {
            $output->writeln('<error>' . $e->getMessage() . '</error>');
        }
    }
}
{'fraction_non_alphanumeric': 0.11385628989087915, 'fraction_numerical': 0.0016471072678608193, 'mean_word_length': 2.8131868131868134, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 39, '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': '7125829', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1243, 'n_words': 206}