<commit_before><?php

if (!class_exists('Symfony\Component\ClassLoader\UniversalClassLoader', false)) {
    require_once __DIR__.'/../vendor/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
}

if (!class_exists('Symfony\Component\ClassLoader\ApcUniversalClassLoader', false)) {
    require_once __DIR__.'/../vendor/symfony/src/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php';
}

use Symfony\Component\ClassLoader\ApcUniversalClassLoader;
use Symfony\Component\ClassLoader\UniversalClassLoader;
use Doctrine\Common\Annotations\AnnotationRegistry;

//$loader = new \Symfony\Component\ClassLoader\ApcUniversalClassLoader('project_'.filemtime(__DIR__));
$loader = new UniversalClassLoader();

$loader->registerNamespaces(array(
    'Symfony'           => array(
        __DIR__.'/../vendor/symfony/src',
        __DIR__.'/../vendor/bundles'
    ),
    'Sensio'            => __DIR__.'/../vendor/bundles',
    'JMS'               => __DIR__.'/../vendor/bundles',
    'Doctrine\\Bundle'                => __DIR__.'/../vendor/bundles',
    'Doctrine\\DBAL\\Migrations'      => __DIR__.'/../vendor/doctrine-migrations/lib',
    'Doctrine\\Common\\DataFixtures'  => __DIR__.'/../vendor/doctrine-data-fixtures/lib',
    'Doctrine\\Common'                => __DIR__.'/../vendor/doctrine-common/lib',
    'Doctrine\\DBAL'                  => __DIR__.'/../vendor/doctrine-dbal/lib',
    'Doctrine\\ORM'                   => __DIR__.'/../vendor/doctrine/lib',
    'Monolog'           => __DIR__.'/../vendor/monolog/src',
    'Assetic'           => __DIR__.'/../vendor/assetic/src',
    'Metadata'          => __DIR__.'/../vendor/metadata/src',
    'FOS'               => __DIR__.'/../vendor/bundles',
    'Knp'               => array(
        __DIR__.'/../vendor/bundles',
        __DIR__.'/../vendor/knp/menu/src'
    ),
    'Sonata'            => array(
        __DIR__.'/../vendor/sonata/src',
        __DIR__.'/../vendor/bundles',
        __DIR__.'/../vendor/sonata-doctrine-extensions/src'
    ),
    'Imagine'           => __DIR__.'/../vendor/imagine/lib',
    'Gaufrette'         => __DIR__.'/../vendor/gaufrette/src',
    'Buzz'              => __DIR__.'/../vendor/buzz/lib',
    'Exporter'          => __DIR__.'/../vendor/exporter/lib',
    'Application'       => __DIR__.'/../src',
    'Behat\Mink'        => __DIR__.'/../vendor/behat/mink/src',
    'Behat\MinkBundle'  => __DIR__.'/../vendor/bundles',
    'Behat\SahiClient'  => __DIR__.'/../vendor/behat/sahi/src',
    'Behat\BehatBundle' => __DIR__.'/../vendor/bundles',
    'Behat\Behat'       => __DIR__.'/../vendor/behat/behat/src',
    'Behat\Gherkin'     => __DIR__.'/../vendor/behat/gherkin/src',
    'Bazinga'           => __DIR__.'/../vendor/bundles',
    'Faker'             => __DIR__.'/../vendor/faker/src',
    'SimpleThings'      => __DIR__.'/../vendor/bundles',
));

$loader->registerPrefixes(array(
    'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
    'Twig_'            => __DIR__.'/../vendor/twig/lib',
));
$loader->registerPrefixFallbacks(array(
    __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs',
));
$loader->registerNamespaceFallbacks(array(
    __DIR__.'/../src',
));
$loader->register();

AnnotationRegistry::registerLoader(function($class) use ($loader) {
    $loader->loadClass($class);
    return class_exists($class, false);
});
AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');

// Swiftmailer needs a special autoloader to allow
// the lazy loading of the init file (which is expensive)
require_once __DIR__.'/../vendor/swiftmailer/lib/classes/Swift.php';
Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/lib/swift_init.php');
<commit_msg>Altering autoload to use composer<commit_after><?php

if (!$loader = include __DIR__.'/../vendor/autoload.php') {
    $nl = PHP_SAPI === 'cli' ? PHP_EOL : '<br />';
    echo "$nl$nl";
    die('You must set up the project dependencies.'.$nl.
        'Run the following commands in '.dirname(__DIR__).':'.$nl.$nl.
        'curl -s http://getcomposer.org/installer | php'.$nl.
        'php composer.phar install'.$nl);
}

use Doctrine\Common\Annotations\AnnotationRegistry;

// intl
if (!function_exists('intl_get_error_code')) {
    require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';

    $loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
}

AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

// Swiftmailer needs a special autoloader to allow
// the lazy loading of the init file (which is expensive)
require_once __DIR__.'/../vendor/swiftmailer/swiftmailer/lib/classes/Swift.php';
Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/swiftmailer/lib/swift_init.php');
{'fraction_non_alphanumeric': 0.18964454489418534, 'fraction_numerical': 0.0, 'mean_word_length': 2.8543151227236736, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 42, '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': '5347635', 'n_tokens_mistral': 1641, 'n_tokens_neox': 1609, 'n_words': 194}