<commit_before><%= form_for(@user) do |f| %>
    <fieldset class="user_controller">
      <legend>Editing user</legend>
      <% if @user.errors.any? %>
          <div id="error_explanation">
            <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

            <ul>
              <% @user.errors.full_messages.each do |msg| %>
                  <li><%= msg %></li>
              <% end %>
            </ul>
          </div>
      <% end %>

      <div class="field">
        <%= f.label :email %>
        <br/>
        <%= f.text_field :email %>
      </div>
      <div class="field">
        <%= f.label :name %>
        <br/>
        <%= f.text_field :name %>
      </div>
      <div class="field">
        <%= f.label :time_zone %>
        <br/>
        <%= f.time_zone_select :time_zone, ActiveSupport::TimeZone.us_zones, :prompt => '- Select Timezone -' %>
      </div>
      <fieldset>
        <legend>Change Password</legend>
        <div class="field">
          <%= f.label :password %>
          <%= f.password_field :password %>
        </div>
        <div class="field">
          <%= f.label :password_confirmation %>
          <%= f.password_field :password_confirmation %>
        </div>
      </fieldset>
      <% permitted_to? :update_roles, @user do %>
          <div class="field">
            <%= f.label :developer_id %>
            <br/>
            <%= f.collection_select :developer_id, Developer.with_permissions_to.order('developers.name'), :id, :name, include_blank: '- No Developer -' %>
          </div>
          <div class="field">
            <fieldset class="role_editor">
              <legend>Roles</legend>
              <ul>
                <% system_roles.each do |r, v| %>
                    <li>
                      <%= check_box_tag "roles[#{r}]", "1", @user.role_symbols.include?(r) %>
                      <%= label_tag "roles[#{r}]", v %>
                    </li>
                <% end %>
              </ul>
            </fieldset>
          </div>
      <% end %>
      <div class="actions">
        <%= f.submit disable_with: 'Saving...' %>
      </div>
    </fieldset>
<% end %>
<commit_msg>temporarily disable the password change elements<commit_after><%= form_for(@user) do |f| %>
    <fieldset class="user_controller">
      <legend>Editing user</legend>
      <% if @user.errors.any? %>
          <div id="error_explanation">
            <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

            <ul>
              <% @user.errors.full_messages.each do |msg| %>
                  <li><%= msg %></li>
              <% end %>
            </ul>
          </div>
      <% end %>

      <div class="field">
        <%= f.label :email %>
        <br/>
        <%= f.text_field :email %>
      </div>
      <div class="field">
        <%= f.label :name %>
        <br/>
        <%= f.text_field :name %>
      </div>
      <div class="field">
        <%= f.label :time_zone %>
        <br/>
        <%= f.time_zone_select :time_zone, ActiveSupport::TimeZone.us_zones, :prompt => '- Select Timezone -' %>
      </div>
      <!--fieldset>
        <legend>Change Password</legend>
        <div class="field">
          <%= f.label :password %>
          <%= f.password_field :password %>
        </div>
        <div class="field">
          <%= f.label :password_confirmation %>
          <%= f.password_field :password_confirmation %>
        </div>
      </fieldset-->
      <% permitted_to? :update_roles, @user do %>
          <div class="field">
            <%= f.label :developer_id %>
            <br/>
            <%= f.collection_select :developer_id, Developer.with_permissions_to.order('developers.name'), :id, :name, include_blank: '- No Developer -' %>
          </div>
          <div class="field">
            <fieldset class="role_editor">
              <legend>Roles</legend>
              <ul>
                <% system_roles.each do |r, v| %>
                    <li>
                      <%= check_box_tag "roles[#{r}]", "1", @user.role_symbols.include?(r) %>
                      <%= label_tag "roles[#{r}]", v %>
                    </li>
                <% end %>
              </ul>
            </fieldset>
          </div>
      <% end %>
      <div class="actions">
        <%= f.submit disable_with: 'Saving...' %>
      </div>
    </fieldset>
<% end %>

{'fraction_non_alphanumeric': 0.1781038374717833, 'fraction_numerical': 0.0013544018058690745, 'mean_word_length': 1.5583140877598152, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 147, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3840359', 'n_tokens_mistral': 1486, 'n_tokens_neox': 1339, 'n_words': 261}