<commit_before><?php

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

namespace org\octris\core\app\cli {
    use \org\octris\core\validate as validate;
    use \org\octris\core\provider as provider;
    
    /**
     * Class Autoloader. This is a special autoloader for cli applications. It's required because they may
     * have libraries installed in a libs subdirectory of the clis' directory located in the tools directory.
     *
     * @octdoc      c:cli/autoloader
     * @copyright   copyright (c) 2011 by <NAME>
     * @author      <NAME> <<EMAIL>>
     */
    class autoloader
    /**/
    {
        /**
         * Class Autoloader.
         *
         * @octdoc  m:app/autoload
         * @param   string      $classpath      Path of class to load.
         */
        public static function autoload($classpath)
        /**/
        {
            $env = provider::access('env');
            
            $pkg = preg_replace('|\\\\|', '/', preg_replace('|\\\\|', '.', ltrim($classpath, '\\\\'), 2)) . '.class.php';

            $pkg = $env->getValue('OCTRIS_BASE', validate::T_PATH) . '/tools/' . $pkg;

            include_once($pkg);
        }
    }

    spl_autoload_register(array('\org\octris\core\app\cli\autoloader', 'autoload'));
}<commit_msg>- prevent \ErrorException in case the include-file is not found<commit_after><?php

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

namespace org\octris\core\app\cli {
    use \org\octris\core\validate as validate;
    use \org\octris\core\provider as provider;

    /**
     * Class Autoloader. This is a special autoloader for cli applications. It's required because they may
     * have libraries installed in a libs subdirectory of the clis' directory located in the tools directory.
     *
     * @octdoc      c:cli/autoloader
     * @copyright   copyright (c) 2011 by <NAME>
     * @author      <NAME> <<EMAIL>>
     */
    class autoloader
    /**/
    {
        /**
         * Class Autoloader.
         *
         * @octdoc  m:app/autoload
         * @param   string      $classpath      Path of class to load.
         */
        public static function autoload($classpath)
        /**/
        {
            $env = provider::access('env');

            $pkg = preg_replace('|\\\\|', '/', preg_replace('|\\\\|', '.', ltrim($classpath, '\\\\'), 2)) . '.class.php';

            $pkg = $env->getValue('OCTRIS_BASE', validate::T_PATH) . '/tools/' . $pkg;

            try {
                include_once($pkg);
            } catch(\Exception $e) {
            }
        }
    }

    spl_autoload_register(array('\org\octris\core\app\cli\autoloader', 'autoload'));
}
{'fraction_non_alphanumeric': 0.1419939577039275, 'fraction_numerical': 0.003356831151393085, 'mean_word_length': 2.0192502532928063, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '799150', 'n_tokens_mistral': 936, 'n_tokens_neox': 908, 'n_words': 246}