<commit_before><section class="content-header">
  <% content_for :title, "Users - Edit" %>
<h1>
  Editing
  <small>your profile</small>
</h1>
<ol class="breadcrumb">
<li><%= link_to(dashboard_path) do %>
    <i class="fa fa-dashboard"></i> Home
  <% end %>
  </li>
    <li><a href="#">Editing <%= current_user.name %></a></li>
</ol>
</section>

<!-- Main content -->
<section class="content">

<!-- Default box -->
<div class="box">
  <div class="box-header with-border">
    <h3 class="box-title"><%= current_user.name %></h3>
  </div>
  <div class="box-body">
<%= simple_form_for(resource, as: resource_name, url: user_registration_path, html: { method: :put }) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">

      <%= f.input :name, label: "Name:", required: true, autofocus: true, wrapper: :vertical_input_group do %>
          <span class="input-group-addon"><i class="fa fa-user"></i></span>
          <%= f.input_field :name, class: "form-control" %>
        <% end %>    
      <%= f.input :email, label: "Password:", wrapper: :vertical_input_group do %>
          <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
          <%= f.input_field :password, class: "form-control" %>
        <% end %>
      <%= f.input :current_password, label: "Current Password:", wrapper: :vertical_input_group do %>
          <span class="input-group-addon"><i class="fa fa-lock"></i></span>
          <%= f.input_field :password, class: "form-control" %>
        <% end %>        
    <p class="help-block" id="password-confirmation-help">we need your current password to confirm your changes</p>

      <%= f.input :password, autocomplete: "off", required: false %>
      <p class="help-block" id="password-help">leave it blank if you don't want to change it</p>
      <%= f.input :password_confirmation, required: false %>
  <br>
  <div class="form-actions medium-offset-3 medium-6">
    <%= f.button :submit, "Update" %>
  </div>
<% end %>
</div>
</div>
<!-- /.box -->

</section>
 










<commit_msg>Update edit user page.<commit_after><section class="content-header">
  <% content_for :title, "Users - Edit" %>
<h1>
  Editing
  <small>your profile</small>
</h1>
<ol class="breadcrumb">
<li><%= link_to(dashboard_path) do %>
    <i class="fa fa-dashboard"></i> Home
  <% end %>
  </li>
    <li><a href="#">Editing <%= current_user.name %></a></li>
</ol>
</section>

<!-- Main content -->
<section class="content">

<!-- Default box -->
<div class="box">
  <div class="box-header with-border">
    <h3 class="box-title"><%= current_user.name %></h3>
  </div>
  <div class="box-body">
<%= simple_form_for(resource, as: resource_name, url: user_registration_path, html: { method: :put }) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">

      <%= f.input :name, label: "Name:", required: true, autofocus: true, wrapper: :vertical_input_group do %>
          <span class="input-group-addon"><i class="fa fa-user"></i></span>
          <%= f.input_field :name, class: "form-control" %>
        <% end %>    
      <%= f.input :email, label: "Email:", wrapper: :vertical_input_group do %>
          <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
          <%= f.input_field :email, class: "form-control" %>
        <% end %>
      <%= f.input :current_password, label: "Current Password:", wrapper: :vertical_input_group do %>
          <span class="input-group-addon"><i class="fa fa-lock"></i></span>
          <%= f.input_field :current_password, class: "form-control" %>
        <% end %>        
    <p class="help-block" id="password-confirmation-help">we need your current password to confirm your changes</p>


      <div class="box box-primary collapsed-box">
        <div class="box-header with-border">
          <h3 class="box-title">Change Password</h3>

          <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
            </button>
          </div>
        </div>
        <div class="box-body">
          <p class="help-block" id="password-help">leave it blank if you don't want to change it</p>
          <%= f.input :password, label: "New Password:", wrapper: :vertical_input_group do %>
          <span class="input-group-addon"><i class="fa fa-lock"></i></span>
          <%= f.input_field :password, class: "form-control" %>
          <% end %>   
          <%= f.input :password_confirmation, label: "New Password Confirmation:", wrapper: :vertical_input_group do %>
          <span class="input-group-addon"><i class="fa fa-lock"></i></span>
          <%= f.input_field :password_confirmation, class: "form-control" %>
          <% end %>   

       
        </div>
        <!-- /.box-body -->
      </div>



  <br>
  <div class="form-actions medium-offset-3 medium-6">
    <%= f.button :submit, "Update" %>
  </div>
<% end %>
</div>
</div>
<!-- /.box -->

</section>
 











{'fraction_non_alphanumeric': 0.20136518771331058, 'fraction_numerical': 0.0028106805862276652, 'mean_word_length': 2.953968253968254, 'pattern_counts': {'":': 0, '<': 168, '<?xml version=': 0, '>': 168, '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': '6335274', 'n_tokens_mistral': 1724, 'n_tokens_neox': 1614, 'n_words': 374}