<commit_before><div class="auth row">
  <div class="small-12 medium-8 large-5 column small-centered">
    <div class="panel">
      <h1><%= t('omniauth.finish_signup.title') %></h1>

      <%= form_for current_user, as: :user, url: do_finish_signup_path, html: { role: 'form'} do |f| %>
        <%= render 'shared/errors', resource: current_user %>
        <%= f.text_field :username, placeholder: t("devise_views.users.registrations.new.username_label"), value: nil %>
        <%= f.email_field :email, placeholder: t("devise_views.users.registrations.new.email_label"), value: nil %>
        <%= f.submit t("devise_views.users.registrations.new.submit"), class: 'button radius' %>
      <% end %>
    </div>
  </div>
</div><commit_msg>Hides fields without errors in finish_signup.html.erb<commit_after><div class="auth row">
  <div class="small-12 medium-8 large-5 column small-centered">
    <div class="panel">
      <h1><%= t('omniauth.finish_signup.title') %></h1>

      <%= form_for current_user, as: :user, url: do_finish_signup_path, html: { role: 'form'} do |f| %>
        <%= render 'shared/errors', resource: current_user %>

        <% if current_user.errors.include? :username %>
          <%= f.text_field :username, placeholder: t("devise_views.users.registrations.new.username_label"), value: nil %>
        <% else %>
          <%= f.hidden_field :username %>
        <% end %>

        <% if current_user.errors.include? :email %>
          <%= f.email_field :email, placeholder: t("devise_views.users.registrations.new.email_label"), value: nil %>
        <% else %>
          <%= f.hidden_field :email %>
        <% end %>

        <%= f.submit t("devise_views.users.registrations.new.submit"), class: 'button radius expand' %>
      <% end %>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.17857142857142858, 'fraction_numerical': 0.006696428571428571, 'mean_word_length': 3.248815165876777, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '1785551', 'n_tokens_mistral': 634, 'n_tokens_neox': 580, 'n_words': 119}