<commit_before><% form_tag :action=> "signup" do -%>
<div  class="form">
<!-- 
  <h2><%= t("madb_account_type_signup") %></h2>
  <%= t("madb_select_account_type")%><select id="account_type_id" name="account_type_id" onchange="new Ajax.Updater('account_type_explanations', '<%= url_for :action => "account_type_explanations"%>/'+this.value, { evalScripts: true} ); new Effect.Highlight($('account_type_explanations'))">
  <%= options_for_select(@account_types, params["account_type_id"].to_i)%>
</select>
<div id="account_type_explanations"></div>
</div>
<script type="text/javascript">
  new Ajax.Updater('account_type_explanations', '<%= url_for :action => "account_type_explanations"%>/'+$('account_type_id').value, { evalScripts: true});
</script>
<div title="<%= t("madb_account_signup") %>"  class="form">
  <h2><%= t("madb_account_signup") %></h2>
  <% if flash['message'] %>
    <div id="ErrorExplanation">
      <h3><%= flash['message'] %></h3>
    </div>
  <% end %>
-->
<!--   <h3><%= t("madb_company") %></h3> -->
<% if @error_tos%>
<div class="errorExplanation" id="errorExplanation"><h2><%=t("madb_error_saving_account")%></h2>
  <ul>
<% if @error_tos %>
  <li><%=t("tos_acceptance_needed")%></li>
<%end%>
</ul>
</div>
<% end -%>


  <div class="form-padding">
    <!--
    <label for="account_name"><%=t "madb_company_name"%>:</label><br/>
    <%= text_field "account", "name", :size => 30 %><br/>
    <label for="account_street"><%=t "madb_company_street"%>:</label><br/>
    <%= text_field "account", "street", :size => 30 %><br/>
    <label for="account_zip_code"><%=t "madb_company_zip_code"%>:</label><br/>
    <%= text_field "account", "zip_code", :size => 30 %><br/>
    <label for="account_city"><%=t "madb_company_city"%>:</label><br/>
    <%= text_field "account", "city", :size => 30 %><br/>
    <label for="account_country"><%=t "madb_company_country"%>:</label><br/>
    <%= country_select "account", "country", { t("madb_choose") => 0}%><br/>
    <span id="vat_row" style="display:none">
      <label for="account_vat_number"><%=t "madb_company_vat"%>:</label><br/>
      <%= text_field "account", "vat_number", :size => 30  %><br/>
    </span>
    -->
  </div>
  <br/>
  <hr>
  <h3><%= t("madb_administrator_user")%></h3>
<% if @user.errors.count>0 %>
<div class="errorExplanation" id="errorExplanation"><h2><%=t("madb_error_saving_user")%></h2>
  <ul>
    <% done = [] %>
    <% @user.errors.each do |attr,e| %>
      <% next if done.include? e %>
      <% done.push e %>
      <li><%= t(e) %></li>
    <% end %>
</ul>
</div>
<%end%>
  <div class="form-padding">
<!--
    <label for="user_firstname"><%= t("madb_firstname") %>:</label><br/>
    <%= text_field "user", "firstname", :size => 30 %><br/>
    <label for="user_lastname"><%= t("madb_lastname") %>:</label><br/>
    <%= text_field "user", "lastname", :size => 30 %><br/>
    <label for="user_login"><%= t("madb_login_email") %>:</label><br/>
-->
    <%= text_field "user", "login", :size => 30 %><br/>
    <label for="user_login_confirmation"><%= t("madb_email_confirmation") %>:</label><br/>
<%if false %>
    <%= text_field "user", "login_confirmation", :size => 30 %><br/>
<% end %>
    <label for="user_password"><%= t("madb_choose_password_creation") %>:</label><br/><commit_msg>correct signup form labels<commit_after><% form_tag :action=> "signup" do -%>
<div  class="form">
<!-- 
  <h2><%= t("madb_account_type_signup") %></h2>
  <%= t("madb_select_account_type")%><select id="account_type_id" name="account_type_id" onchange="new Ajax.Updater('account_type_explanations', '<%= url_for :action => "account_type_explanations"%>/'+this.value, { evalScripts: true} ); new Effect.Highlight($('account_type_explanations'))">
  <%= options_for_select(@account_types, params["account_type_id"].to_i)%>
</select>
<div id="account_type_explanations"></div>
</div>
<script type="text/javascript">
  new Ajax.Updater('account_type_explanations', '<%= url_for :action => "account_type_explanations"%>/'+$('account_type_id').value, { evalScripts: true});
</script>
<div title="<%= t("madb_account_signup") %>"  class="form">
  <h2><%= t("madb_account_signup") %></h2>
  <% if flash['message'] %>
    <div id="ErrorExplanation">
      <h3><%= flash['message'] %></h3>
    </div>
  <% end %>
-->
<!--   <h3><%= t("madb_company") %></h3> -->
<% if @error_tos%>
<div class="errorExplanation" id="errorExplanation"><h2><%=t("madb_error_saving_account")%></h2>
  <ul>
<% if @error_tos %>
  <li><%=t("tos_acceptance_needed")%></li>
<%end%>
</ul>
</div>
<% end -%>


  <div class="form-padding">
    <!--
    <label for="account_name"><%=t "madb_company_name"%>:</label><br/>
    <%= text_field "account", "name", :size => 30 %><br/>
    <label for="account_street"><%=t "madb_company_street"%>:</label><br/>
    <%= text_field "account", "street", :size => 30 %><br/>
    <label for="account_zip_code"><%=t "madb_company_zip_code"%>:</label><br/>
    <%= text_field "account", "zip_code", :size => 30 %><br/>
    <label for="account_city"><%=t "madb_company_city"%>:</label><br/>
    <%= text_field "account", "city", :size => 30 %><br/>
    <label for="account_country"><%=t "madb_company_country"%>:</label><br/>
    <%= country_select "account", "country", { t("madb_choose") => 0}%><br/>
    <span id="vat_row" style="display:none">
      <label for="account_vat_number"><%=t "madb_company_vat"%>:</label><br/>
      <%= text_field "account", "vat_number", :size => 30  %><br/>
    </span>
    -->
  </div>
  <br/>
  <hr>
  <h3><%= t("madb_administrator_user")%></h3>
<% if @user.errors.count>0 %>
<div class="errorExplanation" id="errorExplanation"><h2><%=t("madb_error_saving_user")%></h2>
  <ul>
    <% done = [] %>
    <% @user.errors.each do |attr,e| %>
      <% next if done.include? e %>
      <% done.push e %>
      <li><%= t(e) %></li>
    <% end %>
</ul>
</div>
<%end%>
  <div class="form-padding">
<!--
    <label for="user_firstname"><%= t("madb_firstname") %>:</label><br/>
    <%= text_field "user", "firstname", :size => 30 %><br/>
    <label for="user_lastname"><%= t("madb_lastname") %>:</label><br/>
    <%= text_field "user", "lastname", :size => 30 %><br/>
-->
    <label for="user_login"><%= t("madb_login_email") %>:</label><br/>
    <%= text_field "user", "login", :size => 30 %><br/>
<%if false %>
    <label for="user_login_confirmation"><%= t("madb_email_confirmation") %>:</label><br/>
    <%= text_field "user", "login_confirmation", :size => 30 %><br/>
<% end %>
    <label for="user_password"><%= t("madb_choose_password_creation") %>:</label><br/>
{'fraction_non_alphanumeric': 0.26154549611339734, 'fraction_numerical': 0.010364273738759335, 'mean_word_length': 4.9763205828779595, 'pattern_counts': {'":': 0, '<': 287, '<?xml version=': 0, '>': 315, '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': '7643255', 'n_tokens_mistral': 2677, 'n_tokens_neox': 2482, 'n_words': 414}