<commit_before>{% set where = app.request.attributes.get("_controller") | split('\\') %}

{% if where | length > 1 %}
    {% set bun = where[1] %}
    {% set con = (where[3] | split('::'))[0] %}
    {% set act = (where[3] | split('::'))[1] %}
{% else %}
    {% set bun, con, act = '', '', ''%}
{% endif %}

<div id="sidebarButton" class="visible-xs">
    <button onClick="document.getElementById('sidebarButton').className = 'hidden'; document.getElementById('sidebarComplete').className = ''" class="btn btn-default btn-block btn-lg" style="text-align:left;padding-left:15px; padding-right:15px;margin-bottom:10px"><i class="fa fa-bars pull-right"></i> Menú</button>
</div>
<div id="sidebarComplete" class="hidden-xs">
{% if app.user %}
    <div class="media self">
        <a href="{{ path('userProfile', { 'id': app.user.id }) }}" class="pull-left">
            <img src="{% if app.user.avatar %}{{ path('userAvatar',{'uid':app.user.id,'width':50,'height':50}) }}{% else %}/img/unknown.gif{% endif %}" width="50">
        </a>
        <div class="media-body">
            <h4 class="media-heading">{{ app.user.name }}</h4>
            <div class="btn-group">
                <a href="{{ path('userEditProfile') }}" class="btn btn-default btn-xs">Editar perfil</a>
                <a href="{{ path('userLogout') }}" class="btn btn-default btn-xs" style="color:darkred;">Salir <span class="fa fa-sign-out"></span></a>
            </div>
        </div>
    </div>
    
    <hr>
{% elseif not(bun == 'UserBundle' and act == 'loginAction') %}
    <form class="login" action="{{ path('userLoginCheck') }}" method="post">
        <p class="lead">Iniciar sesión</p>
        
        
        <p class="input-group input-group-sm">
              <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
              <input  type="email" required class="form-control" id="username" name="_username" placeholder="Email" value="" onFocus="if(this.value == 'Email') this.value=''">
        </p>
        
        <p class="input-group input-group-sm">
              <span class="input-group-addon"><i class="fa fa-key"></i></span>
              <input type="password" required class="form-control" id="password" name="_password" class="input-medium" placeholder="<PASSWORD>aseña" value="" onFocus="if(this.value == 'Contraseña') this.value=''">
        </p>
        
        <p><label for="remember_me">
            <input id="remember_me" name="_remember_me" type="checkbox" checked /> Mantenerme conectado
        </label></p><commit_msg>Bug fix<commit_after>{% set where = app.request.attributes.get("_controller") | split('\\') %}

{% if where | length > 1 %}
    {% set bun = where[1] %}
    {% set con = (where[3] | split('::'))[0] %}
    {% set act = (where[3] | split('::'))[1] %}
{% else %}
    {% set bun, con, act = '', '', ''%}
{% endif %}

<div id="sidebarButton" class="visible-xs">
    <button onClick="document.getElementById('sidebarButton').className = 'hidden'; document.getElementById('sidebarComplete').className = ''" class="btn btn-default btn-block btn-lg" style="text-align:left;padding-left:15px; padding-right:15px;margin-bottom:10px"><i class="fa fa-bars pull-right"></i> Menú</button>
</div>
<div id="sidebarComplete" class="hidden-xs">
{% if app.user %}
    <div class="media self">
        <a href="{{ path('userProfile', { 'id': app.user.id }) }}" class="pull-left">
            <img src="{% if app.user.avatar %}{{ path('userAvatar',{'uid':app.user.id,'width':50,'height':50}) }}{% else %}/img/unknown.gif{% endif %}" width="50">
        </a>
        <div class="media-body">
            <h4 class="media-heading">{{ app.user.name }}</h4>
            <div class="btn-group">
                <a href="{{ path('userEditProfile') }}" class="btn btn-default btn-xs">Editar perfil</a>
                <a href="{{ path('userLogout') }}" class="btn btn-default btn-xs" style="color:darkred;">Salir <span class="fa fa-sign-out"></span></a>
            </div>
        </div>
    </div>
    
    <hr>
{% elseif not(bun == 'UserBundle' and act == 'loginAction') and bun != '' %}
    <form class="login" action="{{ path('userLoginCheck') }}" method="post">
        <p class="lead">Iniciar sesión</p>
        
        
        <p class="input-group input-group-sm">
              <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
              <input  type="email" required class="form-control" id="username" name="_username" placeholder="Email" value="" onFocus="if(this.value == 'Email') this.value=''">
        </p>
        
        <p class="input-group input-group-sm">
              <span class="input-group-addon"><i class="fa fa-key"></i></span>
              <input type="password" required class="form-control" id="password" name="_password" class="input-medium" placeholder="<PASSWORD>" value="" onFocus="if(this.value == '<PASSWORD>aseña') this.value=''">
        </p>
        
        <p><label for="remember_me">
            <input id="remember_me" name="_remember_me" type="checkbox" checked /> Mantenerme conectado
        </label></p>
{'fraction_non_alphanumeric': 0.2194738908519827, 'fraction_numerical': 0.007852375343541421, 'mean_word_length': 3.189967105263158, 'pattern_counts': {'":': 0, '<': 100, '<?xml version=': 0, '>': 102, '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': '118140', 'n_tokens_mistral': 1683, 'n_tokens_neox': 1601, 'n_words': 322}