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

$loader = @include __DIR__ . '/../vendor/autoload.php';
if (!$loader) {
    die(
            <<<'EOT'
You must set up the project dependencies, run the following commands:
wget http://getcomposer.org/composer.phar
php composer.phar install
EOT
    );
}
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(
        array($loader, 'loadClass'));

spl_autoload_register(
        function ($class)
        {
            if (0 === strpos($class, 'Level42\\NotJaxbBundle\\')) {
                $path = __DIR__ . '/../'
                        . implode('/', array_slice(explode('\\', $class), 2))
                        . '.php';
                if (!stream_resolve_include_path($path)) {

                    return false;
                }
                require_once $path;

                return true;
            }
        });

/**
 * Load classes from path
 * @param unknown $path
 */
function loadClasses($path)
{

    if ($handle = opendir($path)) {
        while (false !== ($entry = readdir($handle))) {
            if (substr($entry, strlen($entry) - 4, strlen($entry)) == '.php') {
                require_once $path . '/' . $entry;
            }
        }
        closedir($handle);
    }
}

loadClasses(__DIR__ . '/../Annotation');
loadClasses(__DIR__ . '/../Exceptions');
loadClasses(__DIR__ . '/../Manager');
loadClasses(__DIR__ . '/../Mapping');

// Chargement du kernel
require_once __DIR__ . '/app/NotJaxbTestKernel.php';<commit_msg>Correction pbl PSR<commit_after><?php
/**
 * This file is part of the NotJaxbBundle package
 *
 * (c) Level42 <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

$loader = @include __DIR__ . '/../vendor/autoload.php';
if (!$loader) {
    die(
            <<<'EOT'
You must set up the project dependencies, run the following commands:
wget http://getcomposer.org/composer.phar
php composer.phar install
EOT
    );
}
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

spl_autoload_register(
        function ($class)
        {
            if (0 === strpos($class, 'Level42\\NotJaxbBundle\\')) {
                $path = __DIR__ . '/../'
                        . implode('/', array_slice(explode('\\', $class), 2))
                        . '.php';
                if (!stream_resolve_include_path($path)) {

                    return false;
                }
                require_once $path;

                return true;
            }
        }
);

// Chargement du kernel
require_once __DIR__ . '/app/NotJaxbTestKernel.php';
{'fraction_non_alphanumeric': 0.1452513966480447, 'fraction_numerical': 0.004539106145251397, 'mean_word_length': 2.0543710021321964, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 7, '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': '5281857', 'n_tokens_mistral': 847, 'n_tokens_neox': 820, 'n_words': 208}