<commit_before><% title _('Edit profile') %>
<div class="row">
  <div class="col-md-12">
    <h1><%= _('Edit profile') %></h1>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
      <ul class="nav nav-tabs" role="tablist">
        <li role="personal-details" class="nav-item active">
          <a href="#personal-details" role="tab" class="nav-link"
             aria-controls="personal-details" data-toggle="tab"><%= _('Personal Details') %></a>
        </li>
        <li role="password-details" class="nav-item">
          <a href="#password-details" role="tab" class="nav-link"
             aria-controls="password-details" data-toggle="tab"><%= _('Password') %></a>
        </li>
        <% if @user.can_org_admin? %>
          <li role="api-details" class="nav-item">
            <a href="#api-details" role="tab" class="nav-link"
               aria-controls="api-details" data-toggle="tab"><%= _('API Access') %></a>
          </li>
        <% end %>
        <li role="notification-preferences" class="nav-item">
          <a href="#notification-preferences" role="tab" class="nav-link"
             aria-controls="notification-preferences" data-toggle="tab"><%= _('Notification Preferences') %></a>
        </li>
      </ul>

      <div class="tab-content">
        <div id="personal-details" role="tabpanel" class="tab-pane active">
          <div class="panel panel-default">
            <div class="panel-body">
              <%= render partial: 'devise/registrations/personal_details', locals: {orgs: @orgs, org_partial: @org_partial} %>
            </div>
          </div>
        </div>
        <div id="password-details" role="tabpanel" class="tab-pane">
          <div class="panel panel-default">
            <div class="panel-body">
              <%= render partial: 'devise/registrations/password_details' %>
            </div>
          </div>
        </div>
        <% if @user.can_org_admin? %>
          <div id="api-details" role="tabpanel" class="tab-pane">
            <div class="panel panel-default">
              <div class="panel-body">
                <%= render partial: 'devise/registrations/api_token', locals: { user: @user } %>
              </div>
            </div>
          </div>
        <% end %>
        <div id="notification-preferences" role="tabpanel" class="tab-pane">
          <div class="panel panel-default">
            <div class="panel-body">
              <%= render partial: 'users/notification_preferences' %>
            </div>
          </div>
        </div>
      </div>
<commit_msg>Issue #629 - (DCC Bug) Fix for "Granting API use rights does not work if other Org Admin privileges not set."<commit_after><% title _('Edit profile') %>
<div class="row">
  <div class="col-md-12">
    <h1><%= _('Edit profile') %></h1>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
      <ul class="nav nav-tabs" role="tablist">
        <li role="personal-details" class="nav-item active">
          <a href="#personal-details" role="tab" class="nav-link"
             aria-controls="personal-details" data-toggle="tab"><%= _('Personal Details') %></a>
        </li>
        <li role="password-details" class="nav-item">
          <a href="#password-details" role="tab" class="nav-link"
             aria-controls="password-details" data-toggle="tab"><%= _('Password') %></a>
        </li>
        <% if @user.can_use_api? %>
          <li role="api-details" class="nav-item">
            <a href="#api-details" role="tab" class="nav-link"
               aria-controls="api-details" data-toggle="tab"><%= _('API Access') %></a>
          </li>
        <% end %>
        <li role="notification-preferences" class="nav-item">
          <a href="#notification-preferences" role="tab" class="nav-link"
             aria-controls="notification-preferences" data-toggle="tab"><%= _('Notification Preferences') %></a>
        </li>
      </ul>

      <div class="tab-content">
        <div id="personal-details" role="tabpanel" class="tab-pane active">
          <div class="panel panel-default">
            <div class="panel-body">
              <%= render partial: 'devise/registrations/personal_details', locals: {orgs: @orgs, org_partial: @org_partial} %>
            </div>
          </div>
        </div>
        <div id="password-details" role="tabpanel" class="tab-pane">
          <div class="panel panel-default">
            <div class="panel-body">
              <%= render partial: 'devise/registrations/password_details' %>
            </div>
          </div>
        </div>
        <% if @user.can_use_api? %>
          <div id="api-details" role="tabpanel" class="tab-pane">
            <div class="panel panel-default">
              <div class="panel-body">
                <%= render partial: 'devise/registrations/api_token', locals: { user: @user } %>
              </div>
            </div>
          </div>
        <% end %>
        <div id="notification-preferences" role="tabpanel" class="tab-pane">
          <div class="panel panel-default">
            <div class="panel-body">
              <%= render partial: 'users/notification_preferences' %>
            </div>
          </div>
        </div>
      </div>

{'fraction_non_alphanumeric': 0.18581860107609532, 'fraction_numerical': 0.0028823981552651805, 'mean_word_length': 2.214947498455837, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, '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': '6530534', 'n_tokens_mistral': 1618, 'n_tokens_neox': 1561, 'n_words': 325}