<commit_before><?php

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

/**
 * Class AppKernel
 */
class AppKernel extends Kernel
{
    /**
     * Register bundles
     *
     * @return array|\Symfony\Component\HttpKernel\Bundle\BundleInterface[]
     */
    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            new Symfony\Bundle\MonologBundle\MonologBundle(),
            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
            new Symfony\Bundle\AsseticBundle\AsseticBundle(),
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
            new JMS\AopBundle\JMSAopBundle(),
            new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
            new JMS\DiExtraBundle\JMSDiExtraBundle($this),

            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
            new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
            new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
            new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),

            new FOS\UserBundle\FOSUserBundle(),

            new Avalanche\Bundle\ImagineBundle\AvalancheImagineBundle(),

            new Knp\Bundle\MenuBundle\KnpMenuBundle(),

            new Liip\FunctionalTestBundle\LiipFunctionalTestBundle(),

            new Sonata\IntlBundle\SonataIntlBundle(),

            new Sonata\BlockBundle\SonataBlockBundle(),
            new Sonata\AdminBundle\SonataAdminBundle(),
            new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
            new Sonata\jQueryBundle\SonatajQueryBundle(),

            new Stfalcon\Bundle\PageBundle\StfalconPageBundle(),
            new Stfalcon\Bundle\NewsBundle\StfalconNewsBundle(),
            new Stfalcon\Bundle\EventBundle\StfalconEventBundle(),
            new Stfalcon\Bundle\PaymentBundle\StfalconPaymentBundle(),
            new Stfalcon\Bundle\SponsorBundle\StfalconSponsorBundle(),

            new Application\Bundle\DefaultBundle\ApplicationDefaultBundle(),
            new Application\Bundle\UserBundle\ApplicationUserBundle(),

            new Vich\UploaderBundle\VichUploaderBundle(),
            new Ornicar\GravatarBundle\OrnicarGravatarBundle(),

            new TFox\MpdfPortBundle\TFoxMpdfPortBundle(),
        );

        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
            $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
            $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
        }

        return $bundles;
    }

    /**<commit_msg>Add SonataCoreBundle into the AppKernel. It is now required<commit_after><?php

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

/**
 * Class AppKernel
 */
class AppKernel extends Kernel
{
    /**
     * Register bundles
     *
     * @return array|\Symfony\Component\HttpKernel\Bundle\BundleInterface[]
     */
    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            new Symfony\Bundle\MonologBundle\MonologBundle(),
            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
            new Symfony\Bundle\AsseticBundle\AsseticBundle(),
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
            new JMS\AopBundle\JMSAopBundle(),
            new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
            new JMS\DiExtraBundle\JMSDiExtraBundle($this),

            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
            new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
            new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
            new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),

            new FOS\UserBundle\FOSUserBundle(),

            new Avalanche\Bundle\ImagineBundle\AvalancheImagineBundle(),

            new Knp\Bundle\MenuBundle\KnpMenuBundle(),

            new Liip\FunctionalTestBundle\LiipFunctionalTestBundle(),

            new Sonata\IntlBundle\SonataIntlBundle(),

            new Sonata\BlockBundle\SonataBlockBundle(),
            new Sonata\AdminBundle\SonataAdminBundle(),
            new Sonata\CoreBundle\SonataCoreBundle(),
            new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
            new Sonata\jQueryBundle\SonatajQueryBundle(),

            new Stfalcon\Bundle\PageBundle\StfalconPageBundle(),
            new Stfalcon\Bundle\NewsBundle\StfalconNewsBundle(),
            new Stfalcon\Bundle\EventBundle\StfalconEventBundle(),
            new Stfalcon\Bundle\PaymentBundle\StfalconPaymentBundle(),
            new Stfalcon\Bundle\SponsorBundle\StfalconSponsorBundle(),

            new Application\Bundle\DefaultBundle\ApplicationDefaultBundle(),
            new Application\Bundle\UserBundle\ApplicationUserBundle(),

            new Vich\UploaderBundle\VichUploaderBundle(),
            new Ornicar\GravatarBundle\OrnicarGravatarBundle(),

            new TFox\MpdfPortBundle\TFoxMpdfPortBundle(),
        );

        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
            $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
            $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
        }

        return $bundles;
    }

    /**
{'fraction_non_alphanumeric': 0.09720820719811638, 'fraction_numerical': 0.0, 'mean_word_length': 2.841731266149871, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '718297', 'n_tokens_mistral': 1665, 'n_tokens_neox': 1587, 'n_words': 212}