<commit_before><!DOCTYPE html>
<html>
  <head>
    <title>Saruman</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
    <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
    <%= render partial: "layouts/ga" if Rails.env.production? %>

    <%= csrf_meta_tags %>
  </head>

  <body>
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <%= link_to "Saruman", root_path, class: 'navbar-brand' %>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">
        <% if can? :read, User and can? :read, Item %>
          <ul class="nav navbar-nav">
            <li><%= link_to "Partners", users_path %></li>
            <li><%= link_to "Items", items_path %></li>
          </ul>
        <% end %>

          <div class="hidden-xs navbar-form navbar-right">
            <div class="form-group">
            <% if user_signed_in? %>
              <%= button_to "Logout", destroy_user_session_path(current_user), class: "btn btn-default form-control",  method: :delete %>
            <% else %>
              <%= link_to "Admin login", new_user_session_path, { id: 'login-button', class: "btn btn-success form-control", title: 'This is for admins only. Partners should log in using their personal link sent by email!', data: { toggle: 'tooltip', placement: 'bottom' } } %>
            <% end %>
            </div>
          </div>

          <ul class="nav navbar-nav navbar-right">
            <li><%= mail_to "<EMAIL>", "Send feedback" %></li>
            <% if user_signed_in? %>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Logged in as <%= current_user.email %> <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><%= link_to "Edit password", edit_user_registration_path %></li>
              </ul>
            </li>
            <% end %>
          </ul>

          <div class="visible-xs navbar-form">
            <div class="form-group">
            <% if user_signed_in? %>
              <%= button_to "Logout", destroy_user_session_path(current_user), class: "btn btn-default form-control" %>
            <% else %>
              <%= button_to "Login", new_user_session_path, class: "btn btn-success form-control" %>
            <% end %>
            </div>
          </div>

        </div><!-- /.navbar-collapse -->
      </div><!-- /.navbar-collapse -->
    </nav>

    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="container">
      <div class="row">
        <div class="col-xs-12">
          <%= render partial: 'flash' %>
          <%= yield %>
        </div><commit_msg>Partners should not be able to edit their password<commit_after><!DOCTYPE html>
<html>
  <head>
    <title>Saruman</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
    <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
    <%= render partial: "layouts/ga" if Rails.env.production? %>

    <%= csrf_meta_tags %>
  </head>

  <body>
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <%= link_to "Saruman", root_path, class: 'navbar-brand' %>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">
        <% if can? :read, User and can? :read, Item %>
          <ul class="nav navbar-nav">
            <li><%= link_to "Partners", users_path %></li>
            <li><%= link_to "Items", items_path %></li>
          </ul>
        <% end %>

          <div class="hidden-xs navbar-form navbar-right">
            <div class="form-group">
            <% if user_signed_in? %>
              <%= button_to "Logout", destroy_user_session_path(current_user), class: "btn btn-default form-control",  method: :delete %>
            <% else %>
              <%= link_to "Admin login", new_user_session_path, { id: 'login-button', class: "btn btn-success form-control", title: 'This is for admins only. Partners should log in using their personal link sent by email!', data: { toggle: 'tooltip', placement: 'bottom' } } %>
            <% end %>
            </div>
          </div>

          <ul class="nav navbar-nav navbar-right">
            <li><%= mail_to "<EMAIL>", "Send feedback" %></li>
            <% if user_signed_in? %>
              <% if can? :crud, User %>
                <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Logged in as <%= current_user.name %> (<%= current_user.email %>) <b class="caret"></b></a>
                <ul class="dropdown-menu">
                  <li><%= link_to "Edit password", edit_user_registration_path %></li>
                </ul>
                </li>
              <% else %>
                <li><a>Logged in as <%= current_user.name %> (<%= current_user.email %>)</a></li>
              <% end %>
            <% end %>
          </ul>

          <div class="visible-xs navbar-form">
            <div class="form-group">
            <% if user_signed_in? %>
              <%= button_to "Logout", destroy_user_session_path(current_user), class: "btn btn-default form-control" %>
            <% else %>
              <%= button_to "Login", new_user_session_path, class: "btn btn-success form-control" %>
            <% end %>
            </div>
          </div>

        </div><!-- /.navbar-collapse -->
      </div><!-- /.navbar-collapse -->
    </nav>

    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="container">
      <div class="row">
        <div class="col-xs-12">
          <%= render partial: 'flash' %>
          <%= yield %>
        </div>
{'fraction_non_alphanumeric': 0.1698880976602238, 'fraction_numerical': 0.0014532771399505887, 'mean_word_length': 2.136736554238833, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 193, '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': '395588', 'n_tokens_mistral': 2177, 'n_tokens_neox': 2002, 'n_words': 500}