<commit_before><?php
/**
 * This file is part of the ImboClientCli package
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE file that was
 * distributed with this source code.
 */

namespace ImboClientCli\Command;

use ImboClient\Client as ImboClient,
    Symfony\Component\Console\Input\InputInterface,
    Symfony\Component\Console\Output\OutputInterface,
    Symfony\Component\Console\Input\InputArgument,
    Symfony\Component\Console\Input\InputOption,
    Symfony\Component\Finder\Finder,
    Exception,
    InvalidArgumentException;

/**
 * Command used to add images to an imbo server
 *
 * @package Commands
 * @author <NAME> <<EMAIL>>
 */
class AddImages extends RemoteCommand {
    /**
     * @var Finder
     */
    private $finder;

    /**
     * Class constructor
     */
    public function __construct() {
        parent::__construct('add-images');

        $this->setDescription('Add one or more images to an Imbo server');
        $this->setHelp('Add one or more images to one of the Imbo servers defined in the configuration');

        $this->addArgument('path', InputArgument::REQUIRED, 'Path to an image or a directory containing images');
        $this->addOption('suffixes', null, InputOption::VALUE_OPTIONAL, 'Comma separated list of suffixes to include when specifying a directory as a path (case insensitive)', 'jpg,png,gif');
        $this->addOption('depth', null, InputOption::VALUE_OPTIONAL, 'Directory depth. -1 = enter all subdirectories, 0 = don\'t enter subdirectories, N = enter N subdirectories', -1);
    }

    /**
     * Execute the command
     *
     * @see Symfony\Components\Console\Command\Command::execute()
     */
    protected function execute(InputInterface $input, OutputInterface $output) {
        $path = $input->getArgument('path');
<commit_msg>Added an alias for the command<commit_after><?php
/**
 * This file is part of the ImboClientCli package
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE file that was
 * distributed with this source code.
 */

namespace ImboClientCli\Command;

use ImboClient\Client as ImboClient,
    Symfony\Component\Console\Input\InputInterface,
    Symfony\Component\Console\Output\OutputInterface,
    Symfony\Component\Console\Input\InputArgument,
    Symfony\Component\Console\Input\InputOption,
    Symfony\Component\Finder\Finder,
    Exception,
    InvalidArgumentException;

/**
 * Command used to add images to an imbo server
 *
 * @package Commands
 * @author <NAME> <<EMAIL>>
 */
class AddImages extends RemoteCommand {
    /**
     * @var Finder
     */
    private $finder;

    /**
     * Class constructor
     */
    public function __construct() {
        parent::__construct('add-images');

        $this->setAliases(array('add'));

        $this->setDescription('Add one or more images to an Imbo server');
        $this->setHelp('Add one or more images to one of the Imbo servers defined in the configuration');

        $this->addArgument('path', InputArgument::REQUIRED, 'Path to an image or a directory containing images');
        $this->addOption('suffixes', null, InputOption::VALUE_OPTIONAL, 'Comma separated list of suffixes to include when specifying a directory as a path (case insensitive)', 'jpg,png,gif');
        $this->addOption('depth', null, InputOption::VALUE_OPTIONAL, 'Directory depth. -1 = enter all subdirectories, 0 = don\'t enter subdirectories, N = enter N subdirectories', -1);
    }

    /**
     * Execute the command
     *
     * @see Symfony\Components\Console\Command\Command::execute()
     */
    protected function execute(InputInterface $input, OutputInterface $output) {
        $path = $input->getArgument('path');

{'fraction_non_alphanumeric': 0.1150278293135436, 'fraction_numerical': 0.0015902464882056719, 'mean_word_length': 3.519760479041916, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 28, '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': '6121617', 'n_tokens_mistral': 1056, 'n_tokens_neox': 1044, 'n_words': 322}