<commit_before><%= render partial: "users/menu" %>

<% if user_online? -%>

  <p>
    <%= link_to "Logga ut", action: "logout" %>
  </p>

<% else -%>

  <%= form_for User.new, url: { action: "login" }, builder: KPFormBuilder, html: { class: "login-form" } do |f| %>
    <%= f.title "Logga in" -%>

    <%= f.fields do -%>
      <%= f.text_field :username %>
      <%= f.password_field :password %>

      <%= f.buttons do -%>
        <%= f.submit "Logga in" %>
      <% end -%>

    <% end -%>

    <%= f.hint do -%>
      Om du inte har ett konto kan du registrera ett <%= link_to "här", new_user_path %>.<commit_msg>Change to make the link more visible. #12264<commit_after><%= render partial: "users/menu" %>

<% if user_online? -%>

  <p>
    <%= link_to "Logga ut", action: "logout" %>
  </p>

<% else -%>

  <%= form_for User.new, url: { action: "login" }, builder: KPFormBuilder, html: { class: "login-form" } do |f| %>
    <%= f.title "Logga in" -%>

    <%= f.fields do -%>
      <%= f.text_field :username %>
      <%= f.password_field :password %>

      <%= f.buttons do -%>
        <%= f.submit "Logga in" %>
      <% end -%>

    <% end -%>

    <%= f.hint do -%>
      Om du inte har ett konto kan du registrera ett <%= link_to raw("<strong>här</strong>"), new_user_path %>.
{'fraction_non_alphanumeric': 0.21644685802948022, 'fraction_numerical': 0.003878975950349108, 'mean_word_length': 2.467741935483871, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '3284694', 'n_tokens_mistral': 548, 'n_tokens_neox': 486, 'n_words': 121}