<commit_before><?php
/**
 * @file
 * Contains \Drupal\AppConsole\Command\ConfigDebugCommand.
 */

namespace Drupal\AppConsole\Command;

use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class ConfigDebugCommand extends ContainerAwareCommand
{
  /**
   * {@inheritdoc}
   */
  protected function configure()
  {
    $this
      ->setName('config:debug')
      ->setDescription('Show the current configuration')
      ->addArgument('config-name', InputArgument::OPTIONAL, 'Config name')
    ;
  }

  /**
   * {@inheritdoc}
   */
  protected function execute(InputInterface $input, OutputInterface $output)
  {
    $config_name = $input->getArgument('config-name');

    $container = $this->getContainer();
    $configFactory = $container->get('config.factory');

    $table = $this->getHelperSet()->get('table');
    $table->setlayout($table::LAYOUT_COMPACT);

    $this->getAllConfigurations($output, $table, $configFactory);
<commit_msg>Call getConfigurationByName if config_name entered<commit_after><?php
/**
 * @file
 * Contains \Drupal\AppConsole\Command\ConfigDebugCommand.
 */

namespace Drupal\AppConsole\Command;

use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class ConfigDebugCommand extends ContainerAwareCommand
{
  /**
   * {@inheritdoc}
   */
  protected function configure()
  {
    $this
      ->setName('config:debug')
      ->setDescription('Show the current configuration')
      ->addArgument('config-name', InputArgument::OPTIONAL, 'Config name')
    ;
  }

  /**
   * {@inheritdoc}
   */
  protected function execute(InputInterface $input, OutputInterface $output)
  {
    $config_name = $input->getArgument('config-name');

    $container = $this->getContainer();
    $configFactory = $container->get('config.factory');

    $table = $this->getHelperSet()->get('table');
    $table->setlayout($table::LAYOUT_COMPACT);

    if (!$config_name) {
      $this->getAllConfigurations($output, $table, $configFactory);
    }
    else {
      $configStorage = $container->get('config.storage');
      $this->getConfigurationByName($output, $table, $configStorage, $config_name);
    }
{'fraction_non_alphanumeric': 0.14926660914581535, 'fraction_numerical': 0.0, 'mean_word_length': 4.3310344827586205, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '1989733', 'n_tokens_mistral': 673, 'n_tokens_neox': 675, 'n_words': 111}