<commit_before><?php

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

namespace Madalynn\Bundle\PlumBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

use Plum\Plum;

class DeployCommand extends ContainerAwareCommand
{
    protected function configure()
    {
        $this
            ->setName('plum:deploy')
            ->setDescription('Deploys a project to another server')
            ->addArgument('server', InputArgument::REQUIRED, 'The server name')
            ->addArgument('deployers', InputArgument::OPTIONAL, 'A list of deployer name', 'rsync')
            ->setHelp(<<<EOF
The <info>project:deploy</info> command deploys a project on a server:

  <info>php app/console project:deploy production</info>

The server must be configured in <comment>app/config/config_dev.yml</comment>:

    madalynn_plum:
        deployers:
            - Plum\Deployer\RsyncDeployer
        servers:
            production:
                host: www.mywebsite.com
                port: 22
                user: julien
                dir: /var/www/sfblog/

To automate the deployment, the task uses rsync over SSH.
You must configure SSH access with a key or configure the password
in <comment>app/config/config_dev.yml</comment>.
EOF
            )
        ;
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $server    = $input->getArgument('server');
        $deployers = explode(',', $input->getArgument('deployers'));
<commit_msg>[Command] fixed command name in usage manual.<commit_after><?php

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

namespace Madalynn\Bundle\PlumBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

use Plum\Plum;

class DeployCommand extends ContainerAwareCommand
{
    protected function configure()
    {
        $this
            ->setName('plum:deploy')
            ->setDescription('Deploys a project to another server')
            ->addArgument('server', InputArgument::REQUIRED, 'The server name')
            ->addArgument('deployers', InputArgument::OPTIONAL, 'A list of deployer name', 'rsync')
            ->setHelp(<<<EOF
The <info>plum:deploy</info> command deploys a project on a server:

  <info>php app/console plum:deploy production</info>

The server must be configured in <comment>app/config/config_dev.yml</comment>:

    madalynn_plum:
        deployers:
            - Plum\Deployer\RsyncDeployer
        servers:
            production:
                host: www.mywebsite.com
                port: 22
                user: julien
                dir: /var/www/sfblog/

To automate the deployment, the task uses rsync over SSH.
You must configure SSH access with a key or configure the password
in <comment>app/config/config_dev.yml</comment>.
EOF
            )
        ;
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $server    = $input->getArgument('server');
        $deployers = explode(',', $input->getArgument('deployers'));

{'fraction_non_alphanumeric': 0.10320378151260504, 'fraction_numerical': 0.005252100840336135, 'mean_word_length': 2.992662473794549, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2726935', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1046, 'n_words': 294}