<commit_before><div class="new-session">
  <h3>Sign in to Factlink</h3>

  <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
    <% if @layout == "client" %>
      <%= render 'home/notifications', notice: notice, alert: alert %>
    <% end %>

    <% if @layout %>
      <%= hidden_field_tag :layout, @layout %>
      <%# Check whether this is secure: %>
      <%= hidden_field_tag :return_to, params[:return_to] %>
    <% end %>

    <div class="with-credentials">
      <div class="form-box">
        <%= f.text_field :login, placeholder: "Username or email" %>
        <%= f.password_field :password, placeholder: "Password" %>
        <% if devise_mapping.rememberable? -%>
          <%= f.check_box :remember_me %>
          <%= f.label :remember_me %>
        <% end -%>

        <%= f.submit "Sign in", 'data-disable-with' => "Signing in...", :class => "btn pull-right" %>
      </div>
    </div>

    <div class="with-social">
      <a href="/auth/twitter?return_to=<%= params[:return_to] %>" class="btn twitter" data-disable-with="<i></i>Signing in...">
        <i></i>Sign in with Twitter
      </a>
      <a href="/auth/facebook?return_to=<%= params[:return_to] %>" class="btn facebook" data-disable-with="<i></i>Signing in...">
        <i></i>Sign in with Facebook
      </a>
    </div>

    <div class="separator">
      <span>or</span>
    </div>

    <div class="clearfix"></div>

    <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
      <%= link_to "Forgot your password?",
            new_password_path(resource_name),
            ( { target: "new" } if @layout == "client" ) %>
    <% end -%>
  <% end %>
</div>
<commit_msg>moved this to a more logical place (also show when layout isn't set)<commit_after><div class="new-session">
  <h3>Sign in to Factlink</h3>

  <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
    <% if @layout == "client" %>
      <%= render 'home/notifications', notice: notice, alert: alert %>
    <% end %>

    <% if @layout %>
      <%= hidden_field_tag :layout, @layout %>
    <% end %>

    <%# Check whether this is secure: %>
    <%= hidden_field_tag :return_to, params[:return_to] %>

    <div class="with-credentials">
      <div class="form-box">
        <%= f.text_field :login, placeholder: "Username or email" %>
        <%= f.password_field :password, placeholder: "Password" %>
        <% if devise_mapping.rememberable? -%>
          <%= f.check_box :remember_me %>
          <%= f.label :remember_me %>
        <% end -%>

        <%= f.submit "Sign in", 'data-disable-with' => "Signing in...", :class => "btn pull-right" %>
      </div>
    </div>

    <div class="with-social">
      <a href="/auth/twitter?return_to=<%= params[:return_to] %>" class="btn twitter" data-disable-with="<i></i>Signing in...">
        <i></i>Sign in with Twitter
      </a>
      <a href="/auth/facebook?return_to=<%= params[:return_to] %>" class="btn facebook" data-disable-with="<i></i>Signing in...">
        <i></i>Sign in with Facebook
      </a>
    </div>

    <div class="separator">
      <span>or</span>
    </div>

    <div class="clearfix"></div>

    <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
      <%= link_to "Forgot your password?",
            new_password_path(resource_name),
            ( { target: "new" } if @layout == "client" ) %>
    <% end -%>
  <% end %>
</div>

{'fraction_non_alphanumeric': 0.19971181556195966, 'fraction_numerical': 0.0011527377521613833, 'mean_word_length': 2.7242489270386265, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6635022', 'n_tokens_mistral': 1259, 'n_tokens_neox': 1139, 'n_words': 250}