<commit_before><?php

/*
 * This file is part of the CG library.
 *
 *    (C) 2011 <NAME> <<EMAIL>>
 *
 */

spl_autoload_register(function($class) {
    if (0 === strpos($class, 'CG\Tests\\')) {
        $path = __DIR__.'/../tests/'.strtr($class, '\\', '/').'.php';
        if (file_exists($path) && is_readable($path)) {
            require_once $path;

            return true;
        }
    } elseif (0 === strpos($class, 'CG\\')) {
        $path = __DIR__.'/../src/'.($class = strtr($class, '\\', '/')).'.php';
        if (file_exists($path) && is_readable($path)) {
            require_once $path;

            return true;
        }
    } elseif (0 === strpos($class, 'Zend\\')) {
        $path = __DIR__.'/../../zend-framework2/library/'.($class = strtr($class, '\\', '/')).'.php';
        if (file_exists($path) && is_readable($path)) {
            require_once $path;

            return true;
        }
    }
});
<commit_msg>Update bootstrap.php<commit_after><?php

/*
 * This file is part of the CG library.
 *
 *    (C) 2011 <NAME> <<EMAIL>>
 *
 */

spl_autoload_register(function($class){
    if(0===strpos($class, 'CG\Tests\\')){
        $path = __DIR__.'/../tests/'.strtr($class, '\\', '/').'.php';
        if (file_exists($path) && is_readable($path)) {
            require_once $path;

            return true;
        }} elseif (0 === strpos($class, 'CG\\')) {
        $path = __DIR__.'/../src/'.($class = strtr($class, '\\', '/')).'.php';
        if (file_exists($path) && is_readable($path)) {
            require_once $path;

            return true;
        }
    }elseif (0 === strpos($class, 'Zend\\')) {
        $path = __DIR__.'/../../zend-framework2/library/'.($class = strtr($class, '\\', '/')).'.php';
        if (file_exists($path) && is_readable($path)) {
            require_once $path;

            return true;
        }
    }
});

{'fraction_non_alphanumeric': 0.2344420600858369, 'fraction_numerical': 0.008583690987124463, 'mean_word_length': 1.9887820512820513, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '7179038', 'n_tokens_mistral': 647, 'n_tokens_neox': 633, 'n_words': 115}