<commit_before><?php
require_once __DIR__ . '/../vendor/autoload.php';

use Browphper\Console\Command;
use Browphper\Console\Command\ReceiverInterface as CommandReceiverInterface;

class EchoReceiver implements CommandReceiverInterface
{
    public function processCommand(Command $command)
    {
        $parser = new Browphper\SymbolLocation\SymbolDescriptorParser();
        $descriptor = $parser->parse($command->getArguments()[0]);
        var_dump($descriptor);
    }

    public function exitAsked(Command $command)
    {
        return false;
    }
}

$dispatcher = new Browphper\Console\Command\Dispatcher(
    array(
        'echo' => new EchoReceiver,
        'exit' => new Browphper\Console\Command\ExitReceiver
    )
);

$inputListener = new Browphper\Console\Command\InputListener($dispatcher);<commit_msg>Update test<commit_after><?php
require_once __DIR__ . '/../vendor/autoload.php';

use Browphper\Console\Command;
use Browphper\Console\Command\ReceiverInterface as CommandReceiverInterface;

class EchoReceiver implements CommandReceiverInterface
{
    public function processCommand(Command $command)
    {
        $parser = new Browphper\SymbolLocation\SymbolDescriptorParser();
        $descriptor = $parser->parse($command->getArguments()[0]);
        $locator = new Browphper\SymbolLocation\Locator();
        $locator->locate($descriptor)
            ->ifHasValue('var_dump')
            ->ifNull(function () { echo 'No result' . PHP_EOL; });
    }

    public function exitAsked(Command $command)
    {
        return false;
    }
}

$dispatcher = new Browphper\Console\Command\Dispatcher(
    array(
        'echo' => new EchoReceiver,
        'exit' => new Browphper\Console\Command\ExitReceiver
    )
);

$inputListener = new Browphper\Console\Command\InputListener($dispatcher);
{'fraction_non_alphanumeric': 0.1172566371681416, 'fraction_numerical': 0.0011061946902654867, 'mean_word_length': 3.6623711340206184, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '1304294', 'n_tokens_mistral': 512, 'n_tokens_neox': 501, 'n_words': 95}