<commit_before><?php

namespace SensioLabs\Deptrac\Command;

use SensioLabs\AstRunner\AstParser\NikicPhpParser\NikicPhpParser;
use SensioLabs\AstRunner\AstRunner;
use SensioLabs\Deptrac\ClassNameLayerResolver;
use SensioLabs\Deptrac\ClassNameLayerResolverCacheDecorator;
use SensioLabs\Deptrac\CollectorFactory;
use SensioLabs\Deptrac\Configuration;
use SensioLabs\Deptrac\ConfigurationLoader;
use SensioLabs\Deptrac\DependencyContext;
use SensioLabs\Deptrac\DependencyEmitter\BasicDependencyEmitter;
use SensioLabs\Deptrac\DependencyEmitter\DependencyEmitterInterface;
use SensioLabs\Deptrac\DependencyEmitter\InheritanceDependencyEmitter;
use SensioLabs\Deptrac\DependencyInheritanceFlatter;
use SensioLabs\Deptrac\DependencyResult;
use SensioLabs\Deptrac\Formatter\ConsoleFormatter;
use SensioLabs\Deptrac\OutputFormatterFactory;
use SensioLabs\Deptrac\RulesetEngine;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Finder\Finder;

class AnalyzeCommand extends Command
{
    protected $dispatcher;

    protected $astRunner;

    protected $formatterFactory;

    protected $rulesetEngine;

    protected $collectorFactory;

    public function __construct(
        EventDispatcherInterface $dispatcher,
        AstRunner $astRunner,
        OutputFormatterFactory $formatterFactory,
        RulesetEngine $rulesetEngine,
        CollectorFactory $collectorFactory
    ) {
        $this->dispatcher = $dispatcher;
        $this->astRunner = $astRunner;
        $this->formatterFactory = $formatterFactory;
        $this->rulesetEngine = $rulesetEngine;
        $this->collectorFactory = $collectorFactory;
        parent::__construct();
    }

    protected function configure()
    {
        $this->setName('analyze');

        $this->getDefinition()->setArguments([<commit_msg>added analyse alias for AnalyzeCommand (#150)<commit_after><?php

namespace SensioLabs\Deptrac\Command;

use SensioLabs\AstRunner\AstParser\NikicPhpParser\NikicPhpParser;
use SensioLabs\AstRunner\AstRunner;
use SensioLabs\Deptrac\ClassNameLayerResolver;
use SensioLabs\Deptrac\ClassNameLayerResolverCacheDecorator;
use SensioLabs\Deptrac\CollectorFactory;
use SensioLabs\Deptrac\Configuration;
use SensioLabs\Deptrac\ConfigurationLoader;
use SensioLabs\Deptrac\DependencyContext;
use SensioLabs\Deptrac\DependencyEmitter\BasicDependencyEmitter;
use SensioLabs\Deptrac\DependencyEmitter\DependencyEmitterInterface;
use SensioLabs\Deptrac\DependencyEmitter\InheritanceDependencyEmitter;
use SensioLabs\Deptrac\DependencyInheritanceFlatter;
use SensioLabs\Deptrac\DependencyResult;
use SensioLabs\Deptrac\Formatter\ConsoleFormatter;
use SensioLabs\Deptrac\OutputFormatterFactory;
use SensioLabs\Deptrac\RulesetEngine;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Finder\Finder;

class AnalyzeCommand extends Command
{
    protected $dispatcher;
    protected $astRunner;
    protected $formatterFactory;
    protected $rulesetEngine;
    protected $collectorFactory;

    public function __construct(
        EventDispatcherInterface $dispatcher,
        AstRunner $astRunner,
        OutputFormatterFactory $formatterFactory,
        RulesetEngine $rulesetEngine,
        CollectorFactory $collectorFactory
    ) {
        $this->dispatcher = $dispatcher;
        $this->astRunner = $astRunner;
        $this->formatterFactory = $formatterFactory;
        $this->rulesetEngine = $rulesetEngine;
        $this->collectorFactory = $collectorFactory;
        parent::__construct();
    }

    protected function configure()
    {
        $this->setName('analyze');
        $this->setAliases(['analyse']);

        $this->getDefinition()->setArguments([
{'fraction_non_alphanumeric': 0.08527696793002916, 'fraction_numerical': 0.0007288629737609329, 'mean_word_length': 5.256838905775076, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '6515457', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1220, 'n_words': 185}