<commit_before><?php

if(!$app->isEnabled('seals'))
	return;

$owner = isset($project->registrationSeals->owner) ? $project->registrationSeals->owner : '';
$institution = isset($project->registrationSeals->institution) ? $project->registrationSeals->institution : '';
$collective = isset($project->registrationSeals->collective) ? $project->registrationSeals->collective : '';

$this->addSealsToJs(false, [$owner, $institution, $collective]);
?>
<!-- BEGIN Seals -->
<div id="registration-agent" class="registration-fieldset">
    <h4>5. Selos Certificadores</h4>
    <p class="registration-help">Selos certificadores que serão atribuídos aos agentes da inscrição quando a mesma for aprovada.</p>
    <ul class="registration-list" ng-controller="SealsController">
        <li class="registration-list-item registration-edit-mode">
            <div class="registration-label">
                <span class="label">Agente responsável</span>
            </div>
            <div class="registration-description">Selos atribuídos a agentes</div>

            <div class="js-registration-agent registration-agent">
                <div class="clearfix">
                    <div ng-if="<?php echo $owner; ?>" class="avatar-agent-registration ng-scope">
                        <img ng-src="{{avatarUrl(seals[getArrIndexBySealId(<?php echo $owner; ?>)]['@files:avatar.avatarMedium'].url)}}" class="registration-agent-avatar">
                        <div>
                            <a href="{{seals[getArrIndexBySealId(<?php echo $owner; ?>)].singleUrl}}" class="ng-binding">{{seals[getArrIndexBySealId(<?php echo $owner; ?>)].name}}</a>
                            <span ng-if="!<?php echo $owner; ?>">Não informado</span>
                        </div>
                    </div>
                </div>
            </div>
        </li><commit_msg>Hide seals agents when there's none on registration form.<commit_after><?php

if(!$app->isEnabled('seals'))
	return;

$owner = isset($project->registrationSeals->owner) ? $project->registrationSeals->owner : '';
$institution = isset($project->registrationSeals->institution) ? $project->registrationSeals->institution : '';
$collective = isset($project->registrationSeals->collective) ? $project->registrationSeals->collective : '';

$this->addSealsToJs(false, [$owner, $institution, $collective]);

if(EMPTY($owner+$institution+$collective))
	return;
?>
<!-- BEGIN Seals -->
<div id="registration-agent" class="registration-fieldset">
    <h4>5. Selos Certificadores</h4>
    <p class="registration-help">Selos certificadores que serão atribuídos aos agentes da inscrição quando a mesma for aprovada.</p>
    <ul class="registration-list" ng-controller="SealsController">
        <li class="registration-list-item registration-edit-mode">
            <div class="registration-label">
                <span class="label">Agente responsável</span>
            </div>
            <div class="registration-description">Selos atribuídos a agentes</div>

            <div class="js-registration-agent registration-agent">
                <div class="clearfix">
                    <div ng-if="<?php echo $owner; ?>" class="avatar-agent-registration ng-scope">
                        <img ng-src="{{avatarUrl(seals[getArrIndexBySealId(<?php echo $owner; ?>)]['@files:avatar.avatarMedium'].url)}}" class="registration-agent-avatar">
                        <div>
                            <a href="{{seals[getArrIndexBySealId(<?php echo $owner; ?>)].singleUrl}}" class="ng-binding">{{seals[getArrIndexBySealId(<?php echo $owner; ?>)].name}}</a>
                            <span ng-if="!<?php echo $owner; ?>">Não informado</span>
                        </div>
                    </div>
                </div>
            </div>
        </li>
{'fraction_non_alphanumeric': 0.16600581549035157, 'fraction_numerical': 0.0015860428231562252, 'mean_word_length': 2.909090909090909, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 99, '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': '6039175', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1089, 'n_words': 197}