<commit_before><?php
namespace Cetera\Entity;

abstract class AbstractSection extends AbstractEntity {

    /**
     * Привязка раздела к структуре
     */
    protected $nodes;    
    
    protected $tag;
    protected $name;
    protected $tablename;
    protected $type;
    protected $template;
    protected $templatedir;
    protected $inheritfields;
    protected $typ;
    protected $dat;
    protected $hidden;
    protected $isServer;
	protected $preview;
    
    public function __construct() {
        $this->nodes = new ArrayCollection();
    }
	
	public function getUrl() {
		if (!count($this->nodes)) {
			return false;
		}
		return $this->nodes[0]->getUrl();
	}
    
}<commit_msg>ORM: AbstractSection::getUrl()<commit_after><?php
namespace Cetera\Entity;

abstract class AbstractSection extends AbstractEntity {

    /**
     * Привязка раздела к структуре
     */
    protected $nodes;    
    
    protected $tag;
    protected $name;
    protected $tablename;
    protected $type;
    protected $template;
    protected $templatedir;
    protected $inheritfields;
    protected $typ;
    protected $dat;
    protected $hidden;
    protected $isServer;
	protected $preview;
    
    public function __construct() {
        $this->nodes = new ArrayCollection();
    }
	
	public function getUrl() {
		if (!count($this->nodes)) {
			return false;
		}
		return $this->nodes[0]->getUrl();
	}
	
    public function isServer() {
        return $this->isServer;
    }	
    
}
{'fraction_non_alphanumeric': 0.11230665770006724, 'fraction_numerical': 0.0013449899125756557, 'mean_word_length': 2.748110831234257, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '3014151', 'n_tokens_mistral': 457, 'n_tokens_neox': 451, 'n_words': 112}