<commit_before><div id="content">
	<p class="success"><span><%= flash[:notice] %></span></p>
	
    <% form_for ([:admin, @user]) do |f| %>
      <%= f.error_messages %>
	
	<p>
      <%= f.label :login %><br />
      <%= f.text_field :login %>
    </p>
    
    <p>
      <%= f.label :password, f.object.new_record? ? nil : "Change password" %><br />
      <%= f.password_field :password %>
    </p>
    
    <p>
      <%= f.label :password_confirmation %><br />
      <%= f.password_field :password_confirmation %>
    </p>
    
    <p>
      <%= f.label :email %><br />
      <%= f.text_field :email %><br />
    </p>

        <% if @user.new_record? %>
          <%= f.submit 'Save' %>
        <% else %>
          <%= f.submit 'Update' %>
        <% end %>
    <% end %>
</div>

<div id="sidebar">
    <ul>
      <li><%= link_to 'Users', admin_users_path, :class => 'list' %></li>
    </ul>
</div> <commit_msg>Added link to user details or user list<commit_after><div id="content">
	<p class="success"><span><%= flash[:notice] %></span></p>
	
    <% form_for ([:admin, @user]) do |f| %>
      <%= f.error_messages %>
	
	<p>
      <%= f.label :login %><br />
      <%= f.text_field :login %>
    </p>
    
    <p>
      <%= f.label :password, f.object.new_record? ? nil : "<PASSWORD>" %><br />
      <%= f.password_field :password %>
    </p>
    
    <p>
      <%= f.label :password_confirmation %><br />
      <%= f.password_field :password_confirmation %>
    </p>
    
    <p>
      <%= f.label :email %><br />
      <%= f.text_field :email %><br />
    </p>

    <%= f.submit 'Save', :class=> 'save_btn' %>
    <% end %>
    <% if @user.new_record? then %>
        <%= button_to 'Cancel', admin_user_path(@user), :confirm => "Are you sure?", :method => :get, :class=> 'cancel_btn' %>
    <% else %>
        <%= button_to 'Cancel', admin_users_path, :confirm => "Are you sure?", :method => :get, :class=> 'cancel_btn' %>
    <% end %>
</div>

<div id="sidebar">
    <ul>
      <% if @user.new_record? %>
      <li><%= link_to 'Users', admin_users_path, :class => 'list' %></li>
      <% else %>
      <li><%= link_to 'User Details', admin_user_path(@user), :class => 'list' %></li>
      <% end %>    
    </ul>
</div> 
{'fraction_non_alphanumeric': 0.23640449438202246, 'fraction_numerical': 0.0, 'mean_word_length': 2.2928994082840237, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 107, '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': '3935360', 'n_tokens_mistral': 892, 'n_tokens_neox': 812, 'n_words': 175}