<commit_before><?php

/*
 * This file is part of jdj project.
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Sylius\Component\Resource\Model\ResourceInterface;

/**
 * @author <NAME> <<EMAIL>>
 *
 * @ORM\Entity
 * @ORM\Table(name="jdj_block")
 */
class Block implements ResourceInterface
{
    use IdentifiableTrait;

    const POSITION_LEFT = 'left';
    const POSITION_RIGHT = 'right';
    const POSITION_TOP = 'top';

    /**
     * @var string
     *
     * @ORM\Column(type="string", unique=true, nullable=true)
     */
    protected $code;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    protected $title;

    /**
     * @var string
     *
     * @ORM\Column(type="text", nullable=true)
     */
    protected $body;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    protected $imagePosition;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    protected $class;

    /**
     * @var integer
     *
     * @Gedmo\SortablePosition
     * @ORM\column(type="integer")
     */
    protected $position;

    /**
     * @var BlockImage
     *
     * @ORM\OneToOne(targetEntity="BlockImage", cascade={"persist", "merge"})
     */
    protected $image;

    /**
     * @var Article
     *
     * @Gedmo\SortableGroup
     * @ORM\ManyToOne(targetEntity="Article", inversedBy="blocks")
     */
    protected $article;

    /**
     * @var SlideShowBlock
     *
     * @Gedmo\SortableGroup
     * @ORM\ManyToOne(targetEntity="SlideShowBlock", inversedBy="blocks")
     */
    protected $slideShowBlock;

    /**
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * @param string $code
     *
     * @return $this
     */
    public function setCode($code)<commit_msg>few fix on article slideshow<commit_after><?php

/*
 * This file is part of jdj project.
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Sylius\Component\Resource\Model\ResourceInterface;

/**
 * @author <NAME> <<EMAIL>>
 *
 * @ORM\Entity
 * @ORM\Table(name="jdj_block")
 */
class Block implements ResourceInterface
{
    use IdentifiableTrait;

    const POSITION_LEFT = 'left';
    const POSITION_RIGHT = 'right';
    const POSITION_TOP = 'top';

    /**
     * @var string
     *
     * @ORM\Column(type="string", unique=true, nullable=true)
     */
    protected $code;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    protected $title;

    /**
     * @var string
     *
     * @ORM\Column(type="text", nullable=true)
     */
    protected $body;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    protected $imagePosition;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    protected $class;

    /**
     * @var integer
     *
     * @Gedmo\SortablePosition
     * @ORM\column(type="integer")
     */
    protected $position;

    /**
     * @var BlockImage
     *
     * @ORM\OneToOne(targetEntity="BlockImage", cascade={"persist", "merge"})
     */
    protected $image;

    /**
     * @var Article
     *
     * @Gedmo\SortableGroup
     * @ORM\ManyToOne(targetEntity="Article", inversedBy="blocks")
     */
    protected $article;

    /**
     * @var SlideShowBlock
     *
     * @Gedmo\SortableGroup
     * @ORM\ManyToOne(targetEntity="SlideShowBlock", inversedBy="blocks", cascade={"persist", "merge"})
     */
    protected $slideShowBlock;

    /**
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * @param string $code
     *
     * @return $this
     */
    public function setCode($code)
{'fraction_non_alphanumeric': 0.14722023383440705, 'fraction_numerical': 0.0, 'mean_word_length': 2.287843137254902, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6515451', 'n_tokens_mistral': 1393, 'n_tokens_neox': 1345, 'n_words': 273}