<commit_before><?php

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

namespace octris {
    use \octris\core\provider as provider;

    /**
     * Application class.
     *
     * @octdoc      c:libs/app
     * @copyright   copyright (c) 2014 by <NAME>
     * @author      <NAME> <<EMAIL>>
     */
    class app extends \octris\cliff\app
    /**/
    {
        /**
         * Application name.
         *
         * @octdoc  p:app/$app_name
         * @type    string
         */
        protected static $app_name = 'octris';
        /**/
        
        /**
         * Application version.
         *
         * @octdoc  p:app/$app_version
         * @type    string
         */
        protected static $app_version = '0.0.5';
        /**/
        
        /**
         * Application version date.
         *
         * @octdoc  p:app/$app_version_date
         * @type    string
         */
        protected static $app_version_date = '2014-10-18';
        /**/
        
        /**
         * Constructor.
         *
         * @octdoc  m:app/__construct
         * @param   
         */
        public function __construct()
        /**/
        {
            parent::__construct();
        }

        /**
         * Configure application arguments.
         *
         * @octdoc  m:app/configure
         */
        protected function configure()
        /**/
        {
            parent::configure();
            
            $this->addCommand(new \octris\app\create('create'));
            $this->addCommand(new \octris\app\graph('graph'));
            $this->addCommand(new \octris\app\lint('lint'));
            $this->addCommand(new \octris\app\test('test'));
            $this->addCommand(new \octris\app\doc('doc'));
        }

        /**
         * Run main application.
         *
         * @octdoc  m:app/main
         * @param   \octris\cliff\args\collection        $args           Parsed arguments.
         */
        protected function main(\octris\cliff\args\collection $args)
        /**/
        {
            exit(0);
        }
    
        /**
         * Show help.
         *
         * @octdoc  m:app/showHelp<commit_msg>show help if no cli arguments have been specified<commit_after><?php

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

namespace octris {
    use \octris\core\provider as provider;

    /**
     * Application class.
     *
     * @octdoc      c:libs/app
     * @copyright   copyright (c) 2014 by <NAME>
     * @author      <NAME> <<EMAIL>>
     */
    class app extends \octris\cliff\app
    /**/
    {
        /**
         * Application name.
         *
         * @octdoc  p:app/$app_name
         * @type    string
         */
        protected static $app_name = 'octris';
        /**/
        
        /**
         * Application version.
         *
         * @octdoc  p:app/$app_version
         * @type    string
         */
        protected static $app_version = '0.0.5';
        /**/
        
        /**
         * Application version date.
         *
         * @octdoc  p:app/$app_version_date
         * @type    string
         */
        protected static $app_version_date = '2014-10-18';
        /**/
        
        /**
         * Constructor.
         *
         * @octdoc  m:app/__construct
         * @param   
         */
        public function __construct()
        /**/
        {
            parent::__construct();
        }

        /**
         * Configure application arguments.
         *
         * @octdoc  m:app/configure
         */
        protected function configure()
        /**/
        {
            parent::configure();
            
            $this->addCommand(new \octris\app\create('create'));
            $this->addCommand(new \octris\app\graph('graph'));
            $this->addCommand(new \octris\app\lint('lint'));
            $this->addCommand(new \octris\app\test('test'));
            $this->addCommand(new \octris\app\doc('doc'));
        }

        /**
         * Run main application.
         *
         * @octdoc  m:app/main
         * @param   \octris\cliff\args\collection        $args           Parsed arguments.
         */
        protected function main(\octris\cliff\args\collection $args)
        /**/
        {
            if (count($GLOBALS['argv']) == 1) {
                $this->showHelp();
                
                exit(1);
            } else {
                exit(0);
            }
        }
    
        /**
         * Show help.
         *
         * @octdoc  m:app/showHelp
{'fraction_non_alphanumeric': 0.1315136476426799, 'fraction_numerical': 0.007030603804797354, 'mean_word_length': 1.2269797421731123, 'pattern_counts': {'":': 0, '<': 19, '<?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': '1296099', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1366, 'n_words': 275}