<commit_before><?php

/*
 * This file is part of the SEOBundle package.
 *
 * (c) Frodosghost <http://frodosghost.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Manhattan\SEOBundle\Entity;

use Manhattan\PublishBundle\Entity\Publish;

/**
 * Manhattan\SEOBundle\Entity\SEO
 *
 * This abstract class is for easy addition of the SEO fields to be used in Entities.
 */
abstract class SEO extends Publish
{

    /**
     * @var string
     */
    protected $pageTitle;

    /**
     * @var text
     */
    protected $metaKeywords;

    /**
     * @var text
     */
    protected $metaDescription;


    /**
     * Constructor
     */
    public function __construct()
    {
        parent::__construct();
    }


    /**
     * Set SEO fields
     */
    public function getSeo()
    {
        return array(
            'pageTitle' => $this->getPageTitle(),
            'metaKeywords' => $this->getMetaKeywords(),
            'metaDescription' => $this->getMetaDescription()
        );
    }

    /**
     * Set SEO fields
     *
     * @param  array $seo
     * @return SEO
     */
    public function setSeo(array $seo)
    {
        $this->setPageTitle($seo['pageTitle']);
        $this->setMetaKeywords($seo['metaKeywords']);
        $this->setMetaDescription($seo['metaDescription']);
<commit_msg>Updated entity for configuration of files.<commit_after><?php

/*
 * This file is part of the SEOBundle package.
 *
 * (c) Frodosghost <http://frodosghost.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Manhattan\SEOBundle\Entity;

use Manhattan\PublishBundle\Entity\Publish;

/**
 * Manhattan\SEOBundle\Entity\SEO
 *
 * This abstract class is for easy addition of the SEO fields to be used in Entities.
 */
abstract class SEO extends Publish
{

    /**
     * @var string
     */
    protected $pageTitle;

    /**
     * @var text
     */
    protected $metaKeywords;

    /**
     * @var text
     */
    protected $metaDescription;


    /**
     * Constructor
     */
    public function __construct()
    {
        parent::__construct();
    }


    /**
     * Set SEO fields
     */
    public function getSeo()
    {
        return array(
            'pageTitle' => $this->getPageTitle(),
            'metaKeywords' => $this->getMetaKeywords(),
            'metaDescription' => $this->getMetaDescription()
        );
    }

    /**
     * Set SEO fields
     *
     * @param  array $seo
     * @return SEO
     */
    public function setSeo(array $seo)
    {
        $this->setPageTitle(isset($seo['pageTitle']) ? $seo['pageTitle'] : null);
        $this->setMetaKeywords(isset($seo['metaKeywords']) ? $seo['metaKeywords'] : null);
        $this->setMetaDescription(isset($seo['metaDescription']) ? $seo['metaDescription'] : null);

{'fraction_non_alphanumeric': 0.13111413043478262, 'fraction_numerical': 0.0, 'mean_word_length': 2.3201803833145433, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 23, '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': '3164479', 'n_tokens_mistral': 884, 'n_tokens_neox': 871, 'n_words': 217}