<commit_before><%= error_messages_for :user, :person %>

<% if !@wizard %>
  <% if ! defined? hidden_atention || ! hidden_atention %>
  <p/>
  <div class="atention">
  <%= _('Dear user, welcome to the %s network. To start your participation in this space, fill in the fields below. After this operation, your login and password will be registered, allowing you to create %s and %s in this environment.') % [environment.name, __('communities'), __('enterprises')] %>
  </div>
  <% end %>
<% end %>

<% labelled_form_for :user, @user,
   :html => { :help=>_('Fill all these fields to join in this environment. <p/> If you forgot your password, do not create a new account, click on the "<b>I forgot my password!</b>" link. ;-)'), :id => 'profile-data'
            } do |f| -%>
<%= icaptcha_field() %>

<%= hidden_field_tag :invitation_code, @invitation_code %>

<%= hidden_field_tag :wizard, @wizard %>

<%= required_fields_message %>

<div id='signup-email'>
<%= required f.text_field(:email,
    :help => help=_('This e-mail address will be used to contact you.')) %>
<div class='help-small-msg'><%= help %></div>
</div>

<%= required f.text_field(:login,
      :help => help=_('Insert your login'),
      :onchange => 'this.value = convToValidLogin( this.value )') %>
<div id='url-check'>
<div class='help-small-msg'><%= help %></div>
</div>

<%= observe_field 'user_login', :url => {:action => 'check_url'}, :with => 'identifier', :update => 'url-check' %>

<div id='signup-password'>
<%= required f.password_field(:password,
    :help => help=_('Choose a password that you can remember easily. It must have at least 4 characters.')) %>
<div class='help-small-msg'><%= help %></div>
</div>

<%= required f.password_field(:password_confirmation,
    :help => help=_('To confirm, repeat your password.')) %>
<div class='help-small-msg'><%= help %></div>

<% labelled_fields_for :profile_data, @person do |f| %>
  <%= render :partial => 'profile_editor/person_form', :locals => {:f => f} %>
<% end %>

<% if @terms_of_use %>
  <div id='terms-of-use-box' class='formfieldline'><commit_msg>Substituting 'helps' -> With small tag for content<commit_after><%= error_messages_for :user, :person %>

<% if !@wizard %>
  <% if ! defined? hidden_atention || ! hidden_atention %>
  <p/>
  <div class="atention">
  <%= _('Dear user, welcome to the %s network. To start your participation in this space, fill in the fields below. After this operation, your login and password will be registered, allowing you to create %s and %s in this environment.') % [environment.name, __('communities'), __('enterprises')] %>
  </div>
  <% end %>
<% end %>

<% labelled_form_for :user, @user,
   :html => { :help=>_('Fill all these fields to join in this environment. <p/> If you forgot your password, do not create a new account, click on the "<b>I forgot my password!</b>" link. ;-)'), :id => 'profile-data'
            } do |f| -%>
<%= icaptcha_field() %>

<%= hidden_field_tag :invitation_code, @invitation_code %>

<%= hidden_field_tag :wizard, @wizard %>

<%= required_fields_message %>

<div id='signup-email'>
  <%= required f.text_field(:email) %>
  <%= content_tag(:small,_('This e-mail address will be used to contact you.')) %>
</div>

<%= required f.text_field(:login, :onchange => 'this.value = convToValidLogin( this.value )') %>
<%= content_tag(:small,_('Insert your login')) %>
<div id='url-check'></div>

<%= observe_field 'user_login', :url => {:action => 'check_url'}, :with => 'identifier', :update => 'url-check' %>

<div id='signup-password'>
  <%= required f.password_field(:password) %>
  <%= content_tag(:small,_('Choose a password that you can remember easily. It must have at least 4 characters.')) %>
</div>

<%= required f.password_field(:password_confirmation) %>
<%= content_tag(:small,_('To confirm, repeat your password.')) %>

<% labelled_fields_for :profile_data, @person do |f| %>
  <%= render :partial => 'profile_editor/person_form', :locals => {:f => f} %>
<% end %>

<% if @terms_of_use %>
  <div id='terms-of-use-box' class='formfieldline'>
{'fraction_non_alphanumeric': 0.19221291276490882, 'fraction_numerical': 0.0004928536224741252, 'mean_word_length': 4.653203342618385, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 112, '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': '6797847', 'n_tokens_mistral': 1429, 'n_tokens_neox': 1322, 'n_words': 388}