<commit_before><?php
namespace Koala\ContentBundle\Entity;
use Knp\Menu\NodeInterface;

class Page implements NodeInterface
{
    protected $id;

    private $lft;

    private $lvl;

    private $rgt;

    private $root;

    private $parent;

    private $children;

    protected $menuTitle;

    protected $slug;

    protected $url;

    protected $layout;

    protected $regions;

    /**
     * Get the name of the node
     *
     * Each child of a node must have a unique name
     *
     * @return string
     */
    function getName()
    {
        return $this->getMenuTitle();
    }

    /**
     * Get the options for the factory to create the item for this node
     *
     * @return array
     */
    function getOptions()
    {
        $options = array();

        if (($url = $this->getUrl()) !== null) {
            $options['route'] = 'koala_content_page_show';
            $options['routeParameters'] = array('url' => $url);
        }

        return $options;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set menu_title
     *
     * @param string $menuTitle
     */
    public function setMenuTitle($menuTitle)
    {
        $this->menuTitle = $menuTitle;<commit_msg>In Page entity use slug as name and menuTitle as label<commit_after><?php
namespace Koala\ContentBundle\Entity;
use Knp\Menu\NodeInterface;

class Page implements NodeInterface
{
    protected $id;

    private $lft;

    private $lvl;

    private $rgt;

    private $root;

    private $parent;

    private $children;

    protected $menuTitle;

    protected $slug;

    protected $url;

    protected $layout;

    protected $regions;

    /**
     * Get the name of the node
     *
     * Each child of a node must have a unique name
     *
     * @return string
     */
    function getName()
    {
        return $this->getSlug();
    }

    /**
     * Get the options for the factory to create the item for this node
     *
     * @return array
     */
    function getOptions()
    {
        $options = array(
            'label' => $this->getMenuTitle(),
        );

        if (($url = $this->getUrl()) !== null) {
            $options['route'] = 'koala_content_page_show';
            $options['routeParameters'] = array('url' => $url);
        }

        return $options;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set menu_title
     *
     * @param string $menuTitle
     */
    public function setMenuTitle($menuTitle)
    {
        $this->menuTitle = $menuTitle;
{'fraction_non_alphanumeric': 0.11786646773591944, 'fraction_numerical': 0.0, 'mean_word_length': 1.8411016949152543, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '177865', 'n_tokens_mistral': 823, 'n_tokens_neox': 788, 'n_words': 219}