<commit_before><?php
/**
 * This file is part of the Axstrad library.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright 2014-2015 <NAME> <<EMAIL>>
 */

namespace Axstrad\Bundle\SeoBundle\DependencyInjection\CompilerPass;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;


/**
 * Axstrad\Bundle\SeoBundle\DependencyInjection\CompilerPass\ConfigureSonataAdminPass
 *
 * Loads SymfonyCMF's SEO admin configure when ORM persistence is enabled.
 * The Seo bundle contains a bug which prevents it from doing this itself.
 *
 * @author <NAME> <<EMAIL>>
 * @license MIT
 * @package Axstrad/SeoBundle
 * @subpackage Admin
 */
class ConfigureSonataAdminPass implements CompilerPassInterface
{
    public function process(ContainerBuilder $container)
    {
        if ($container->getParameter('cmf_seo.backend_type_orm') == true
            && !$container->hasDefinition('cmf_seo.admin_extension')
        ) {
            $this->loadCmfSeoSonataAdmin($container);
        }
    }

    protected function loadCmfSeoSonataAdmin(ContainerBuilder $container)<commit_msg>Booleans should be compared to strictly<commit_after><?php
/**
 * This file is part of the Axstrad library.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright 2014-2015 <NAME> <<EMAIL>>
 */

namespace Axstrad\Bundle\SeoBundle\DependencyInjection\CompilerPass;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;


/**
 * Axstrad\Bundle\SeoBundle\DependencyInjection\CompilerPass\ConfigureSonataAdminPass
 *
 * Loads SymfonyCMF's SEO admin configure when ORM persistence is enabled.
 * The Seo bundle contains a bug which prevents it from doing this itself.
 *
 * @author <NAME> <<EMAIL>>
 * @license MIT
 * @package Axstrad/SeoBundle
 * @subpackage Admin
 */
class ConfigureSonataAdminPass implements CompilerPassInterface
{
    public function process(ContainerBuilder $container)
    {
        if ($container->getParameter('cmf_seo.backend_type_orm') === true
            && !$container->hasDefinition('cmf_seo.admin_extension')
        ) {
            $this->loadCmfSeoSonataAdmin($container);
        }
    }

    protected function loadCmfSeoSonataAdmin(ContainerBuilder $container)
{'fraction_non_alphanumeric': 0.09707686755683868, 'fraction_numerical': 0.00577408877661494, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, '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': '2559149', 'n_tokens_mistral': 806, 'n_tokens_neox': 776, 'n_words': 194}