<commit_before><% content_for :heading do -%><%= t("myplaceonline.general.register") %><% end -%>
<h1><%= t("myplaceonline.general.register") %></h1>

<% if Rails.configuration.require_invite_code %>
  <p><%= raw(t("myplaceonline.general.requires_invite_code")) %></p>
<% end %>

<%= form_for(resource, as: resource_name, url: new_registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

  <div><%= f.label :email, class: "ui-hidden-accessible" %>
  <%= f.email_field :email, class: "autofocus", placeholder: t("myplaceonline.general.email") %></div>

  <div><%= f.label :password, class: "ui-hidden-accessible" %>
  <%=
    if @validatable
      f.password_field :password, autocomplete: "off", placeholder: t("myplaceonline.general.passwordwithmin", minchars: @minimum_password_length)
    else
      f.password_field :password, autocomplete: "off", placeholder: t("myplaceonline.general.password")
    end
  %>
  </div>

  <div><%= f.label :password_confirmation, class: "ui-hidden-accessible" %>
    <%= f.password_field :password_confirmation, autocomplete: "off", placeholder: t("myplaceonline.general.password2") %></div>

  <%
  if Rails.configuration.require_invite_code
  %>
    <div>
      <%= f.label :invite_code, class: "ui-hidden-accessible" %>
      <%= f.password_field :invite_code, autocomplete: "off", placeholder: t("myplaceonline.users.invite") %>
    </div>
  <%
  end
  %>

  <div><%= f.submit t("myplaceonline.general.signup") %></div>
<script type="text/javascript">
onPageLoad(function() {
  maybeFocus(".autofocus");
});
</script>
<% end %>

<%= render "users/shared/links" %><commit_msg>Make invite code first field so user doesn't waste time before realizing they need a code<commit_after><% content_for :heading do -%><%= t("myplaceonline.general.register") %><% end -%>
<h1><%= t("myplaceonline.general.register") %></h1>

<% if Rails.configuration.require_invite_code %>
  <p><%= raw(t("myplaceonline.general.requires_invite_code")) %></p>
<% end %>

<%= form_for(resource, as: resource_name, url: new_registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

  <%
  if Rails.configuration.require_invite_code
  %>
    <div>
      <%= f.label :invite_code, class: "ui-hidden-accessible" %>
      <%= f.password_field :invite_code, autocomplete: "off", placeholder: t("myplaceonline.users.invite") %>
    </div>
  <%
  end
  %>

  <div><%= f.label :email, class: "ui-hidden-accessible" %>
  <%= f.email_field :email, class: "autofocus", placeholder: t("myplaceonline.general.email") %></div>

  <div><%= f.label :password, class: "ui-hidden-accessible" %>
  <%=
    if @validatable
      f.password_field :password, autocomplete: "off", placeholder: t("myplaceonline.general.passwordwithmin", minchars: @minimum_password_length)
    else
      f.password_field :password, autocomplete: "off", placeholder: t("myplaceonline.general.password")
    end
  %>
  </div>

  <div><%= f.label :password_confirmation, class: "ui-hidden-accessible" %>
    <%= f.password_field :password_confirmation, autocomplete: "off", placeholder: t("myplaceonline.general.password2") %></div>

  <div><%= f.submit t("myplaceonline.general.signup") %></div>
<script type="text/javascript">
onPageLoad(function() {
  maybeFocus(".autofocus");
});
</script>
<% end %>

<%= render "users/shared/links" %>
{'fraction_non_alphanumeric': 0.19026284348864994, 'fraction_numerical': 0.0017921146953405018, 'mean_word_length': 4.959074733096085, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '6333517', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1122, 'n_words': 211}