<commit_before><% content_for :account_popup_content do %>

  <div class="accounts-popup-half-form-container">
    <%= form_for(@user_new_session, as: 'user_new_session', url: factlink_accounts_create_session_path, html: { class: "accounts-popup-half-form" }) do |f| %>

      <h1 class="accounts-popup-half-form-heading">Sign in to Factlink</h1>

      <label for="login">Email address</label>
      <%= f.text_field :login, placeholder: '<EMAIL>' %>
      <%= possible_error_for_field(@user_new_session, :login) %>
      <label for="password">Password</label>
      <%= f.password_field :password %>

      <%= link_to "Forgot your password?", new_password_path('user'), target: '_blank', class: 'accounts-popup-forgot-password' %>

      <button type="submit" data-disable-with="Signing in..." class="button button-confirm pull-right accounts-popup-signin-button">Sign in</button>

    <% end %>

    <div class="accounts-popup-half-form-separator">
      or
    </div>

    <%= form_for(@user_new_account, as: 'user_new_account', url: factlink_accounts_create_account_path, html: { class: "accounts-popup-half-form" }) do |f| %>

      <h1 class="accounts-popup-half-form-heading">Create a Factlink account</h1>

      <label>Full name</label>
      <%= f.text_field :full_name, placeholder: '<NAME>' %>
      <%= possible_error_for_field(@user_new_account, :full_name) %>
      <label>Email address</label>
      <%= f.text_field :email, placeholder: '<EMAIL>' %>
      <%= possible_error_for_field(@user_new_account, :email) %>
      <label>Password</label>
      <%= f.password_field :password %>
      <%= possible_error_for_field(@user_new_account, :password) %>
      <label>Password confirmation</label>
      <%= f.password_field :password_confirmation %>
      <%= possible_error_for_field(@user_new_account, :password_confirmation) %>

      <p>By creating an account you accept our <%= link_to 'terms', pages_path('terms-of-service'), target: '_blank' %>.</p>

      <button type="submit" data-disable-with="Creating..." class="button pull-right">Create account</button>
    <% end %>
  </div>

<% end %><commit_msg>Use rails helpers<commit_after><% content_for :account_popup_content do %>

  <div class="accounts-popup-half-form-container">
    <%= form_for(@user_new_session, as: 'user_new_session', url: factlink_accounts_create_session_path, html: { class: "accounts-popup-half-form" }) do |f| %>

      <h1 class="accounts-popup-half-form-heading">Sign in to Factlink</h1>

      <%= f.label :login, 'Email address' %>
      <%= f.text_field :login, placeholder: '<EMAIL>' %>
      <%= possible_error_for_field(@user_new_session, :login) %>

      <%= f.label :password %>
      <%= f.password_field :password %>

      <%= link_to "Forgot your password?", new_password_path('user'), target: '_blank', class: 'accounts-popup-forgot-password' %>

      <button type="submit" data-disable-with="Signing in..." class="button button-confirm pull-right accounts-popup-signin-button">Sign in</button>

    <% end %>

    <div class="accounts-popup-half-form-separator">
      or
    </div>

    <%= form_for(@user_new_account, as: 'user_new_account', url: factlink_accounts_create_account_path, html: { class: "accounts-popup-half-form" }) do |f| %>

      <h1 class="accounts-popup-half-form-heading">Create a Factlink account</h1>

      <%= f.label :full_name %>
      <%= f.text_field :full_name, placeholder: '<NAME>' %>
      <%= possible_error_for_field(@user_new_account, :full_name) %>

      <%= f.label :email, 'Email address' %>
      <%= f.text_field :email, placeholder: '<EMAIL>' %>
      <%= possible_error_for_field(@user_new_account, :email) %>

      <%= f.label :password %>
      <%= f.password_field :password %>
      <%= possible_error_for_field(@user_new_account, :password) %>

      <%= f.label :password_confirmation %>
      <%= f.password_field :password_confirmation %>
      <%= possible_error_for_field(@user_new_account, :password_confirmation) %>

      <p>By creating an account you accept our <%= link_to 'terms', pages_path('terms-of-service'), target: '_blank' %>.</p>

      <button type="submit" data-disable-with="Creating..." class="button pull-right">Create account</button>
    <% end %>
  </div>

<% end %>
{'fraction_non_alphanumeric': 0.170611670963206, 'fraction_numerical': 0.0018748535270681978, 'mean_word_length': 4.087008343265793, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '2764044', 'n_tokens_mistral': 1497, 'n_tokens_neox': 1364, 'n_words': 248}