<commit_before><?php
/**
 * PHP version 5.6
 *
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
 */
class RoboFile extends \Robo\Tasks
{
    /**
     * @description Run all the Codeception acceptance tests in PhantomJS
     */
    public function acceptance()
    {
        $this->stopOnFail();
        $this
            ->taskExec('node_modules/.bin/phantomjs')
            ->option('webdriver', 4444)
            ->option('webdriver-loglevel', 'WARNING')
            ->background()
            ->run()
        ;
        $this
            ->taskServer(8000)
            ->dir('web')
            ->background()
            ->run()
        ;
        $this
            ->taskExec('php bin/codecept')
            ->arg('clean')
            ->run()
        ;
        $this
            ->taskCodecept('bin/codecept')
            ->suite('acceptance')
            ->option('steps')
            ->run()
        ;
    }
}<commit_msg>Add Robot tasks to run all the tests and the app.<commit_after><?php
/**
 * PHP version 5.6
 *
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
 */
class RoboFile extends \Robo\Tasks
{
    /**
     * @description Run all the Codeception acceptance tests in PhantomJS
     */
    public function acceptance()
    {
        $this->stopOnFail();
        $this
            ->taskExec('node_modules/.bin/phantomjs')
            ->option('webdriver', 4444)
            ->option('webdriver-loglevel', 'WARNING')
            ->background()
            ->run()
        ;
        $this
            ->taskServer(8000)
            ->dir('web')
            ->background()
            ->run()
        ;
        $this
            ->taskExec('php bin/codecept')
            ->arg('clean')
            ->run()
        ;
        $this
            ->taskCodecept('bin/codecept')
            ->suite('acceptance')
            ->option('steps')
            ->run()
        ;
    }

    /**
     * @description Run Behat, phpspec, PHPUnit and Codeception tests
     */
    public function test()
    {
        $this->stopOnFail();
        $this
            ->taskExec('php bin/behat')
            ->run()
        ;

        $this
            ->taskPhpspec('bin/phpspec')
            ->run()
        ;

        $this
            ->taskPhpUnit('bin/phpunit')
            ->option('testdox')
            ->run()
        ;

        $this->acceptance();
    }

    /**
     * @description Run the application using PHP built-in server
     */
    public function run()
    {
        $this->stopOnFail();
        $this
            ->taskServer(8000)
            ->dir('web')
            ->background()
            ->run()
        ;

        while (true);
    }
}
{'fraction_non_alphanumeric': 0.13897937024972856, 'fraction_numerical': 0.008686210640608035, 'mean_word_length': 1.3403895004233701, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 51, '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': '4385972', 'n_tokens_mistral': 778, 'n_tokens_neox': 749, 'n_words': 177}