<commit_before><?php
$action = preg_replace("#^(\w+/)#", "", $this->template);

$this->bodyProperties['ng-app'] = "Entity";

$project = $entity->project;

$this->addRegistrationToJs($entity);

$this->includeAngularEntityAssets($entity);

?>
<?php $this->part('editable-entity', array('entity'=>$entity, 'action'=>$action));  ?>

<article class="main-content registration" ng-controller="ProjectController">
    <header class="main-content-header">
        <div
            <?php if($header = $project->getFile('header')): ?>
                class="header-image"
                style="background-image: url(<?php echo $header->transform('header')->url; ?>);"
            <?php endif; ?>
        >
        </div>
        <!--.header-image-->
        <div class="header-content">
        <?php if($avatar = $project->avatar): ?>
            <div class="avatar com-imagem">
                <img src="<?php echo $avatar->transform('avatarBig')->url; ?>" alt="" class="js-avatar-img" />
        <?php else: ?>
            <div class="avatar">
                <img class="js-avatar-img" src="<?php $this->asset('img/avatar--project.png'); ?>" />
        <?php endif; ?>
            <!-- pro responsivo!!! -->
            <?php if($project->isVerified): ?>
                <a class="verified-seal hltip active" title="Este projeto é verificado." href="#"></a>
            <?php endif; ?>
            </div>
            <!--.avatar-->
            <div class="entity-type registration-type">
                <div class="icon icon-project"></div>
                <a><?php echo $project->type->name; ?></a>
            </div>
            <!--.entity-type-->
            <h2><a href="<?php echo $project->singleUrl ?>"><?php echo $project->name; ?></a></h2>
        </div>
    </header>
    <div class="alert success">
        Inscrição enviada no dia
        <?php echo $entity->sentTimestamp->format('d/m/Y à\s H:i'); ?>
    </div>

    <h3 class="registration-header">Formulário de Inscrição</h3>

    <div class="registration-fieldset clearfix">
        <h4>Número da Inscrição</h4>
        <div class="registration-id alignleft">
            <?php if($action !== 'create'): ?><?php echo $entity->number ?><?php endif; ?>
        </div>
        <div class="alignright">
            <?php if($project->publishedRegistrations): ?>
                <span class="status status-{{getStatusSlug(<?php echo $entity->status ?>)}}">{{getStatusNameById(<?php echo $entity->status ?>)}}</span>
            <?php elseif($project->canUser('@control')): ?>
                <mc-select model="data.registration" data="data.registrationStatusesNames" getter="getRegistrationStatus" setter="setRegistrationStatus"></mc-select><commit_msg>Registration status color class in mc-select dropdown (#621)<commit_after><?php
$action = preg_replace("#^(\w+/)#", "", $this->template);

$this->bodyProperties['ng-app'] = "Entity";

$project = $entity->project;

$this->addRegistrationToJs($entity);

$this->includeAngularEntityAssets($entity);

?>
<?php $this->part('editable-entity', array('entity'=>$entity, 'action'=>$action));  ?>

<article class="main-content registration" ng-controller="ProjectController">
    <header class="main-content-header">
        <div
            <?php if($header = $project->getFile('header')): ?>
                class="header-image"
                style="background-image: url(<?php echo $header->transform('header')->url; ?>);"
            <?php endif; ?>
        >
        </div>
        <!--.header-image-->
        <div class="header-content">
        <?php if($avatar = $project->avatar): ?>
            <div class="avatar com-imagem">
                <img src="<?php echo $avatar->transform('avatarBig')->url; ?>" alt="" class="js-avatar-img" />
        <?php else: ?>
            <div class="avatar">
                <img class="js-avatar-img" src="<?php $this->asset('img/avatar--project.png'); ?>" />
        <?php endif; ?>
            <!-- pro responsivo!!! -->
            <?php if($project->isVerified): ?>
                <a class="verified-seal hltip active" title="Este projeto é verificado." href="#"></a>
            <?php endif; ?>
            </div>
            <!--.avatar-->
            <div class="entity-type registration-type">
                <div class="icon icon-project"></div>
                <a><?php echo $project->type->name; ?></a>
            </div>
            <!--.entity-type-->
            <h2><a href="<?php echo $project->singleUrl ?>"><?php echo $project->name; ?></a></h2>
        </div>
    </header>
    <div class="alert success">
        Inscrição enviada no dia
        <?php echo $entity->sentTimestamp->format('d/m/Y à\s H:i'); ?>
    </div>

    <h3 class="registration-header">Formulário de Inscrição</h3>

    <div class="registration-fieldset clearfix">
        <h4>Número da Inscrição</h4>
        <div class="registration-id alignleft">
            <?php if($action !== 'create'): ?><?php echo $entity->number ?><?php endif; ?>
        </div>
        <div class="alignright">
            <?php if($project->publishedRegistrations): ?>
                <span class="status status-{{getStatusSlug(<?php echo $entity->status ?>)}}">{{getStatusNameById(<?php echo $entity->status ?>)}}</span>
            <?php elseif($project->canUser('@control')): ?>
                <mc-select class="status status-{{getStatusSlug(data.registration.status)}}" model="data.registration" data="data.registrationStatusesNames" getter="getRegistrationStatus" setter="setRegistrationStatus"></mc-select>
{'fraction_non_alphanumeric': 0.2037940379403794, 'fraction_numerical': 0.0027100271002710027, 'mean_word_length': 2.5762273901808785, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 187, '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': '6615744', 'n_tokens_mistral': 1645, 'n_tokens_neox': 1629, 'n_words': 310}