<commit_before><?php

namespace Ekyna\Bundle\CoreBundle\Model;

/**
 * Trait TaggedEntityTrait
 * @package Ekyna\Bundle\CoreBundle\Model
 * @author <NAME> <<EMAIL>>
 */
trait TaggedEntityTrait
{
    /**
     * {@inheritdoc}
     */
    public function getEntityTag()
    {
        if (null === $this->getId()) {
            throw new \RuntimeException('Unable to generate entity tag, as the id property is undefined.');
        }
        return sprintf('%s[id:%s]', self::getEntityTagPrefix(), $this->getId());
    }
}<commit_msg>Fix TaggedEntityTrait<commit_after><?php

namespace Ekyna\Bundle\CoreBundle\Model;

/**
 * Trait TaggedEntityTrait
 * @package Ekyna\Bundle\CoreBundle\Model
 * @author <NAME> <<EMAIL>>
 */
trait TaggedEntityTrait
{
    /**
     * {@inheritdoc}
     */
    public function getEntityTag()
    {
        if (null === $this->getId()) {
            throw new \RuntimeException('Unable to generate entity tag, as the id property is undefined.');
        }
        return sprintf('%s[id:%s]', static::getEntityTagPrefix(), $this->getId());
    }

    /**
     * @return mixed
     */
    public static function getEntityTagPrefix()
    {
        throw new \BadMethodCallException('Must be implemented');
    }
}
{'fraction_non_alphanumeric': 0.14991896272285252, 'fraction_numerical': 0.0, 'mean_word_length': 2.859375, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2198759', 'n_tokens_mistral': 367, 'n_tokens_neox': 376, 'n_words': 84}