<commit_before><?php

/**
 * @file
 * Contains \Drupal\Console\EventSubscriber\ShowCompletedMessageListener.
 */

namespace Drupal\Console\EventSubscriber;

use Symfony\Component\Console\ConsoleEvents;
use Symfony\Component\Console\Event\ConsoleTerminateEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Drupal\Console\Command\GeneratorCommand;

class ShowCompletedMessageListener implements EventSubscriberInterface
{
    private $skipCommands = [
        'self-update',
        'list',
    ];

    /**
     * @param ConsoleTerminateEvent $event
     */
    public function showCompletedMessage(ConsoleTerminateEvent $event)
    {
        /**
         * @var \Drupal\Console\Command\Command $command
         */
        $command = $event->getCommand();
        $output = $event->getOutput();

        $application = $command->getApplication();
        $messageHelper = $application->getMessageHelper();
        $translatorHelper = $application->getTranslator();

        $messageHelper->showMessages($output);

        if ($event->getExitCode() != 0) {
            return;
        }

        if (in_array($command->getName(), $this->skipCommands)) {
            return;
        }

        $completedMessageKey = 'application.console.messages.completed';

        if ($command instanceof GeneratorCommand) {
            $completedMessageKey = 'application.console.messages.generated.completed';
        }

        $completedMessage = $translatorHelper->trans($completedMessageKey);
        if ($completedMessage != $completedMessageKey) {
            $messageHelper->showMessage($output, $completedMessage);
        }
    }

    /**
     * @{@inheritdoc}
     */
    public static function getSubscribedEvents()
    {
        return [ConsoleEvents::TERMINATE => 'showCompletedMessage'];
    }
}<commit_msg>commenting the command complete message, affects autocomplete<commit_after><?php

/**
 * @file
 * Contains \Drupal\Console\EventSubscriber\ShowCompletedMessageListener.
 */

namespace Drupal\Console\EventSubscriber;

use Symfony\Component\Console\ConsoleEvents;
use Symfony\Component\Console\Event\ConsoleTerminateEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Drupal\Console\Command\GeneratorCommand;

class ShowCompletedMessageListener implements EventSubscriberInterface
{
    private $skipCommands = [
        'self-update',
        'list',
    ];

    /**
     * @param ConsoleTerminateEvent $event
     */
    public function showCompletedMessage(ConsoleTerminateEvent $event)
    {
        /**
         * @var \Drupal\Console\Command\Command $command
         */
        $command = $event->getCommand();
        $output = $event->getOutput();

        $application = $command->getApplication();
        $messageHelper = $application->getMessageHelper();
        $translatorHelper = $application->getTranslator();

        $messageHelper->showMessages($output);

        if ($event->getExitCode() != 0) {
            return;
        }

        if (in_array($command->getName(), $this->skipCommands)) {
            return;
        }

        /*$completedMessageKey = 'application.console.messages.completed';

        if ($command instanceof GeneratorCommand) {
            $completedMessageKey = 'application.console.messages.generated.completed';
        }

        $completedMessage = $translatorHelper->trans($completedMessageKey);
        if ($completedMessage != $completedMessageKey) {
            $messageHelper->showMessage($output, $completedMessage);
        }*/
    }

    /**
     * @{@inheritdoc}
     */
    public static function getSubscribedEvents()
    {
        return [ConsoleEvents::TERMINATE => 'showCompletedMessage'];
    }
}
{'fraction_non_alphanumeric': 0.12143241787829832, 'fraction_numerical': 0.0005385029617662897, 'mean_word_length': 2.939554612937434, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '3866397', 'n_tokens_mistral': 979, 'n_tokens_neox': 948, 'n_words': 154}