<commit_before><?php
    $action = preg_replace("#^(\w+/)#", "", $this->template);
    $this->bodyProperties['ng-app'] = "entity.app";
    $this->bodyProperties['ng-controller'] = "EntityController";
    $this->addEntityToJs($relation);

    if($this->isEditable()){
        $this->addEntityTypesToJs($relation);
    }

    $this->includeMapAssets();
    $this->includeAngularEntityAssets($relation);
    $seal = $relation->seal;
?>

<article class="main-content seal">
    <!-- exibição dos avatares do selo e do agente -->
    <div class="display-seal-relation">
        <div class="seal-avatar">
            <a href="<?php echo $seal->getSingleUrl(); ?>">
                <?php $this->part('singles/avatar-seal-relation', ['entity' => $seal, 'size'=> 'avatarMedium', 'default_image' => 'img/avatar--seal.png']); ?>
            </a>
        </div>
        <div class="agent-avatar">
            <a href="<?php echo $relation->owner->getSingleUrl(); ?>" >
                <?php $this->part('singles/avatar-seal-relation', ['entity' => $relation->owner, 'size'=> 'avatarMedium', 'default_image' => 'img/avatar--seal.png']); ?>
            </a>                    
        </div>
    </div>
        <div id="seal-info-container">
            <div id="seal-name">
                <?php $this->applyTemplateHook('seal-name','before'); ?>
                <h2>
                    <span class="js-editable" data-edit="name" data-original-title="<?php \MapasCulturais\i::esc_attr_e("Nome de exibição");?>" data-emptytext="<?php \MapasCulturais\i::esc_attr_e("Nome de exibição");?>">
                        <a href="<?php echo $app->createUrl('seal', 'single', ['id' => $seal->id])?>"><?php echo $seal->name; ?></a>
                    </span>
                </h2>
                <?php $this->applyTemplateHook('seal-name','after'); ?>
            </div>
            <div id="agent-name">
                <?php $this->applyTemplateHook('agent-name','before'); ?>
                <h5>
                    <span class="js-editable" data-edit="name" data-original-title="<?php \MapasCulturais\i::esc_attr_e("Nome de exibição");?>" data-emptytext="<?php \MapasCulturais\i::esc_attr_e("Nome de exibição");?>">
                        <a href="<?php echo $app->createUrl('seal', 'single', ['id' => $relation->owner->id])?>"><?php echo $relation->owner->name; ?></a>
                    </span>
                </h5><commit_msg>correcao do link para owner do selo<commit_after><?php
    $action = preg_replace("#^(\w+/)#", "", $this->template);
    $this->bodyProperties['ng-app'] = "entity.app";
    $this->bodyProperties['ng-controller'] = "EntityController";
    $this->addEntityToJs($relation);

    if($this->isEditable()){
        $this->addEntityTypesToJs($relation);
    }

    $this->includeMapAssets();
    $this->includeAngularEntityAssets($relation);
    $seal = $relation->seal;
?>

<article class="main-content seal">
    <!-- exibição dos avatares do selo e do agente -->
    <div class="display-seal-relation">
        <div class="seal-avatar">
            <a href="<?php echo $seal->getSingleUrl(); ?>">
                <?php $this->part('singles/avatar-seal-relation', ['entity' => $seal, 'size'=> 'avatarMedium', 'default_image' => 'img/avatar--seal.png']); ?>
            </a>
        </div>
        <div class="agent-avatar">
            <a href="<?php echo $relation->owner->getSingleUrl(); ?>" >
                <?php $this->part('singles/avatar-seal-relation', ['entity' => $relation->owner, 'size'=> 'avatarMedium', 'default_image' => 'img/avatar--seal.png']); ?>
            </a>                    
        </div>
    </div>
        <div id="seal-info-container">
            <div id="seal-name">
                <?php $this->applyTemplateHook('seal-name','before'); ?>
                <h2>
                    <span class="js-editable" data-edit="name" data-original-title="<?php \MapasCulturais\i::esc_attr_e("Nome de exibição");?>" data-emptytext="<?php \MapasCulturais\i::esc_attr_e("Nome de exibição");?>">
                        <a href="<?php echo $app->createUrl('seal', 'single', ['id' => $seal->id])?>"><?php echo $seal->name; ?></a>
                    </span>
                </h2>
                <?php $this->applyTemplateHook('seal-name','after'); ?>
            </div>
            <div id="agent-name">
                <?php $this->applyTemplateHook('agent-name','before'); ?>
                <h5>
                    <span class="js-editable" data-edit="name" data-original-title="<?php \MapasCulturais\i::esc_attr_e("Nome de exibição");?>" data-emptytext="<?php \MapasCulturais\i::esc_attr_e("Nome de exibição");?>">
                        <a href="<?php echo $relation->owner->getSingleUrl(); ?>"><?php echo $relation->owner->name; ?></a>
                    </span>
                </h5>
{'fraction_non_alphanumeric': 0.2122279792746114, 'fraction_numerical': 0.0016580310880829016, 'mean_word_length': 2.3914265635980323, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 157, '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': '139207', 'n_tokens_mistral': 1544, 'n_tokens_neox': 1536, 'n_words': 247}