<commit_before>{{#if model.permissions.edit}}
  {{#if model.permissions.manage}}
    <div class="row">
      <div class="col-sm-3 col-xs-6">
        <div class="panel panel-default summary smaller">
          <div class="panel-heading">
            {{t "Last logged session" key='last_logged_session'}}
          </div>
          <div class="panel-body">
            {{#if first_log}}
              {{date_ago first_log.started_at}}
            {{else}}
              {{t "..." key='ellipsis'}}
            {{/if}}
          </div>
        </div>
      </div>
      <div class="col-sm-3 col-xs-6">
        <div class="panel panel-default summary smaller">
          <div class="panel-heading">
            {{t "Recent Sessions" key='recent_sessions'}}
          </div>
          <div class="panel-body">
            {{t "session" key='n_sessions' count=user_counts.recent_session_count}}
          </div>
        </div>
      </div>
      <div class="col-sm-3 col-xs-6">
        <div class="panel panel-default summary smaller">
          <div class="panel-heading">
            {{t "Recently-logged users" key='recently_logged_users'}}
          </div>
          <div class="panel-body">
            {{user_counts.recent_session_user_count}}{{#if model.total_users}} / {{model.total_users}}{{/if}}
            {{t "users" key='users_lower'}}
          </div>
        </div>
      </div>
      <div class="col-sm-3 col-xs-6">
        <div class="panel panel-default summary smaller">
          <div class="panel-heading">
            {{t "Recently-logged hours" key='recently_logged_hours'}}
          </div>
          <div class="panel-body">
            {{#if user_counts}}
              {{t "hour" key='n_hours' count=user_counts.recent_session_hours}}
            {{else}}
              {{t "..." key='ellipsis'}}
            {{/if}}
          </div>
        </div>
      </div>
      <div class='col-sm-12' style='margin-top: -10px; margin-bottom: 10px;'>
        {{#if model.permissions.edit}}
          <div style='float: right;'>
            <button class='btn btn-default' {{action 'edit_org'}}>{{t "Settings" key='settings'}}</button>
          </div>
        {{/if}}
        {{#if model.default_home_board}}
          <div class='text-muted'>
            {{t "default home board:" key='default_home_board'}}
            {{#link-to 'board' model.default_home_board.key}}{{model.default_home_board.key}}{{/link-to}}
          </div>
        {{/if}}
        <div style='clear: right;'></div>
      </div>
      <div class="col-sm-6" style="padding: 0;">
        {{#if weekly_stats.error}}
          {{t "There was a problem loading this report" key='problem_loading_report'}}
        {{else}}
          {{stats/sessions-per-week weekly_stats=weekly_stats}}
        {{/if}}
      </div>
      <div class="col-sm-3" style="padding: 0;">
        {{stats/recent-sessions total=model.total_users recent=user_counts.recent_session_user_count}}
      </div>
      {{#if user_counts}}
        <div class="col-sm-3" style="padding: 0;">
          {{stats/recent-goals total=model.total_users goal_set=user_counts.goal_set tracked=user_counts.goal_recently_logged}}
        </div>
      {{/if}}
      <div style='clear: both;'>
      <div class='col-sm-6'>
        <strong>{{t "Recently-Modeled Words" key='recently_modeled_words'}}</strong>
        {{#if combined_models.words_by_frequency.length}}
          {{stats/word-cloud stats=combined_models tiny=true zoom=1}}
        {{else}}
          <br/><br/><em>{{t "No modeled words to report" key='no_modeled_words_to_report'}}</em><br/>
        {{/if}}
      </div>
      {{#if app_state.feature_flags.profiles}}
        <div class="col-sm-3" style="padding: 0;">
          {{stats/recent-profiles type='communicator' total=user_counts.communicators recent=user_counts.communicator_recent_profiles}}
        </div>
        <div class="col-sm-3" style="padding: 0;">
          {{stats/recent-profiles type='supervisor' total=user_counts.supervisors recent=user_counts.supervisor_recent_profiles}}
        </div>
      {{/if}}
      </div>
    </div>
  {{/if}}
  <ul class='nav nav-pills' style="margin-bottom: 15px; margin-top: 20px;">
    {{#if model.admin}}
      <li class={{if show_organizations 'active'}}><a href="#" {{action 'pick' 'organizations'}}>{{t "Organizations" key='organizations'}}</a></li>
    {{else if model.children_orgs}}
      <li class={{if show_organizations 'active'}}><a href="#" {{action 'pick' 'organizations'}}>{{t "Organizations" key='organizations'}}</a></li>
    {{/if}}
    <li class={{if show_managers 'active'}}><a href="#" {{action 'pick' 'managers'}}>{{t "Managers" key='managers'}}</a></li>
    <li class={{if show_supervisors 'active'}}><a href="#" {{action 'pick' 'supervisors'}}>{{t "Supervisors" key='supervisors'}}</a></li>
    <li class={{if show_communicators 'active'}}><a href="#" {{action 'pick' 'communicators'}}>{{t "Communicators" key='communicators'}}</a></li>
    <li class={{if show_evals 'active'}}><a href="#" {{action 'pick' 'evals'}}>{{t "Evals" key='evals'}}</a></li>
    <li class={{if show_extras 'active'}}><a href="#" {{action 'pick' 'extras'}}>{{t "Symbols" key='symbols'}}</a></li>
  </ul>
  {{#if show_managers}}
    {{#if managers.data}}
      <p>
        {{t "manager" key='n_managers' count=model.total_managers}}
      </p>
      <table class="table table-hover" style="width: 400px;">
        <tbody>
          {{#each managers.data as |manager|}}
            <tr>
              <td style='font-size: 20px;'>
                {{#link-to 'user' manager.user_name}}
                  <img src={{manager.avatar_url}} style="height: 30px; width: 30px;" class='fit_image'/>
                  {{manager.user_name}}
                {{/link-to}}
              </td>
              <td>
                {{#if manager.org_manager}}
                  {{t "manager" key='manager'}}
                {{else if manager.org_assistant}}
                  {{t "assistant" key='assistant'}}
                {{/if}}
              </td>
              <td>
                <a href='#' {{action "management_action" 'remove_manager' manager.id}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
    {{else if managers.loading}}
      <p style="margin-bottom: 30px;">{{t "Loading managers..." key='loading_managers'}}</p>
    {{else}}
      <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
    {{/if}}
    <div style='margin-top: -15px;'>
      {{input value=manager_user_name placeholder="user name" class="form-control inline inline-masquerade input-sm"}}
      <button class="btn btn-default btn-sm" {{action "management_action" 'add_manager'}}>{{t "Add Manager" key='add_manager'}}</button>
      <button class="btn btn-default btn-sm" {{action "management_action" 'add_assistant'}}>{{t "Add Assistant" key='add_assistant'}}</button>
      <a href="#" {{action "new_user" 'add_manager'}} style='padding-left: 10px;'>{{t "New User" key='new_user'}}</a>
      {{#if suggest_creating_manager}}
        <p class='text-danger'>
          {{t "The user name %{user_name} doesn't exist." key='no_user_suggest_create' user_name=manager_user_name}}
        </p>
      {{/if}}
    </div>
  {{/if}}

  {{#if show_supervisors}}
    {{#if supervisors.data}}
      <p>
        {{t "supervisor" key='n_supervisors_lower' count=model.total_supervisors}}
        {{#if model.allotted_supervisor_licenses}}
          ({{model.used_supervisors}} / {{model.allotted_supervisor_licenses}} {{t "premium sponsorships used" key='premium_sponsorships_used'}})
        {{/if}}
      </p>
      <table class="table table-hover" style="width: 600px;">
        <tbody>
          {{#each supervisors.data as |user|}}
            <tr>
              <td style='font-size: 20px;'>
                {{#link-to 'user' user.user_name}}
                  <img src={{user.avatar_url}} style="height: 30px; width: 30px;" class='fit_image'/>
                  {{user.user_name}}
                {{/link-to}}
                {{#if user.org_supervision_pending}}
                  <span style="vertical-align: middle; white-space: nowrap;" class="text-muted">{{t "(pending)" key='pending_paren'}}</span>
                {{else if user.org_premium_supervisor}}
                  <span style="vertical-align: middle; white-space: nowrap;" class="text-muted">{{t "(premium)" key='premium_paren'}}</span>
                {{/if}}
                {{#if user.recent_org_profile}}
                  <div style='float: right; font-size: 14px; color: #888;' title={{t "Has a recently-completed profile" key='has_profile'}}>
                    <span class='glyphicon glyphicon-lamp'></span>
                  </div>
                {{/if}}
              </td>
              <td style='font-size: 14px;'>
                {{#each user.org_supervisees as |sup|}}
                  {{#link-to 'user' sup.user_name}}{{sup.user_name}}{{/link-to}}<br/>
                {{/each}}
              </td>
              <td>
                <a href='#' {{action "management_action" 'remove_supervisor' user.user_name}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
      {{#if more_supervisors}}
        <p style="margin-bottom: 30px;">
          {{#link-to 'organization.reports' (query-params current_report='all_supervisors')}}
            {{t "See all supervisors" key='see_all_supervisors'}}
          {{/link-to}}
        </p>
      {{/if}}
    {{else if supervisors.loading}}
      <p style="margin-bottom: 30px;">{{t "Loading supervisors..." key='loading_supervisors'}}</p>
    {{else}}
      <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
    {{/if}}
    <div style='margin-top: -15px;'>
      {{input value=supervisor_user_name placeholder="user name" class="form-control inline inline-masquerade input-sm"}}
      <button disabled={{no_supervisor_licenses}} class="btn btn-default btn-sm" {{action "management_action" 'add_premium_supervisor'}}>{{t "Add Premium Supervisor" key='add_premium_supervisor'}}</button>
      <button class="btn btn-default btn-sm" {{action "management_action" 'add_supervisor'}}>{{t "Add Supervisor" key='add_supervisor'}}</button>
      <a href="#" {{action "new_user" 'add_supervisor'}} style='padding-left: 10px;'>{{t "New User" key='new_user'}}</a>
      {{#if suggest_creating_supervisor}}
        <p class='text-danger'>
          {{t "The user name %{user_name} doesn't exist." key='no_user_suggest_create' user_name=supervisor_user_name}}
        </p>
      {{/if}}
    </div>
  {{/if}}

  {{#if show_communicators}}
    {{#if model.permissions}}
      <p>
        {{model.used_licenses}} {{t "out of" key='out_of' }}
        {{model.allotted_licenses}} {{t "sponsorships used, " key='sponsored_comma' }}
        {{t "user" key='n_users' count=model.total_users}} {{t "total" key='total'}}
      </p>
    {{/if}}
    {{#if users.data}}
      <table class="table table-hover" style="width: 400px;">
        <tbody>
          {{#each users.data as |user|}}
            <tr>
              <td>
                {{#link-to 'user' user.user_name}}
                  <img src={{user.avatar_url}} style="height: 30px; width: 30px;" class='fit_image'/>
                  {{user.user_name}}
                {{/link-to}}
                {{#if model.permissions.manage}}
                  <em>{{user.name}}</em>
                {{/if}}
                {{#if user.org_pending}}
                  <span style="vertical-align: middle;" class="text-muted">{{t "(pending)" key='pending_paren'}}</span>
                {{/if}}
                {{#if user.org_sponsored}}
                  <span style="vertical-align: middle;" class="text-muted">{{t "(sponsored)" key='sponsored_paren'}}</span>
                {{/if}}
                {{#if user.recent_org_profile}}
                  <div style='float: right; font-size: 14px; color: #888;' title={{t "Has a recently-completed profile" key='has_profile'}}>
                    <span class='glyphicon glyphicon-lamp'></span>
                  </div>
                {{/if}}
              </td>
              <td>
                <a href='#' {{action "management_action" 'remove_user' user.user_name}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
      {{#if more_users}}
        <p style="margin-bottom: 30px;">
          {{#link-to 'organization.reports' (query-params current_report='all_users')}}
            {{t "See all users" key='see_all_users'}}
          {{/link-to}}
        </p>
      {{/if}}
    {{else if users.loading}}
      <p style="margin-bottom: 30px;">{{t "Loading users..." key='loading_users'}}</p>
    {{else}}
      <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
    {{/if}}
    <div style='margin-top: -15px;'>
      {{input value=user_user_name placeholder="user name" class="form-control inline inline-masquerade input-sm"}}
      <button disabled={{no_licenses}} class="btn btn-default btn-sm" {{action "management_action" 'add_user'}}>{{t "Add Sponsored User" key='add_sponsored_user'}}</button>
      <button class="btn btn-default btn-sm" {{action "management_action" 'add_unsponsored_user'}}>{{t "Add Unsponsored User" key='add_unsponsored_user'}}</button>
      <a href="#" {{action "new_user" 'add_user'}} style='padding-left: 10px;'>{{t "New User" key='new_user'}}</a>
      {{#if suggest_creating_communicator}}
        <p class='text-danger'>
          {{t "The user name %{user_name} doesn't exist." key='no_user_suggest_create' user_name=user_user_name}}
        </p>
      {{/if}}
    </div>
  {{/if}}

  {{#if show_evals}}
    {{#if model.permissions}}
      <p>
        {{model.used_evals}} {{t "out of" key='out_of' }}
        {{model.allotted_eval_licenses}} {{t "eval accounts used" key='evals_used' }}
      </p>
    {{/if}}
    {{#if evals.data}}
      <table class="table table-hover" style="width: 400px;">
        <tbody>
          {{#each evals.data as |user|}}
            <tr>
              <td>
                {{#link-to 'user' user.user_name}}
                  <img src={{user.avatar_url}} style="height: 30px; width: 30px;" class='fit_image'/>
                  {{user.user_name}}
                {{/link-to}}
                {{#if user.org_pending}}
                  <span style="vertical-align: middle;" class="text-muted">{{t "(pending)" key='pending_paren'}}</span>
                {{/if}}
              </td>
              <td>
                <a href='#' {{action "management_action" 'remove_user' user.user_name}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
      {{#if more_evals}}
        <p style="margin-bottom: 30px;">
          {{#link-to 'organization.reports' (query-params current_report='all_evals')}}
            {{t "See all eval accounts" key='see_all_evals'}}
          {{/link-to}}
        </p>
      {{/if}}
    {{else if evals.loading}}
      <p style="margin-bottom: 30px;">{{t "Loading users..." key='loading_users'}}</p>
    {{else}}
      <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
    {{/if}}
    <div style='margin-top: -15px;'>
      {{input value=eval_user_name placeholder="user name" class="form-control inline inline-masquerade input-sm"}}
      <button disabled={{no_eval_licenses}} class="btn btn-default btn-sm" {{action "management_action" 'add_eval'}}>{{t "Add Eval Account" key='add_eval'}}</button>
      {{#unless no_eval_licenses}}
        <a href="#" {{action "new_user" 'add_eval'}} style='padding-left: 10px;'>{{t "New Eval Account" key='new_eval'}}</a>
        {{#if suggest_creating_eval}}
          <p class='text-danger'>
            {{t "The user name %{user_name} doesn't exist." key='no_user_suggest_create' user_name=eval_user_name}}
          </p>
        {{/if}}
      {{/unless}}
    </div>
  {{/if}}

  {{#if show_extras}}
    {{#if model.permissions}}
      <p>
        {{model.used_extras}} {{t "out of" key='out_of' }}
        {{model.allotted_extras}} {{t "premium symbol accounts used" key='extras_used' }}
      </p>
    {{/if}}
    {{#if extras.data}}
      <table class="table table-hover" style="width: 400px;">
        <tbody>
          {{#each extras.data as |user|}}
            <tr>
              <td>
                {{#link-to 'user' user.user_name}}
                  <img src={{user.avatar_url}} style="height: 30px; width: 30px;" class='fit_image'/>
                  {{user.user_name}}
                {{/link-to}}
              </td>
              <td>
                <a href='#' {{action "management_action" 'remove_extras' user.user_name true}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
    {{else if extras.loading}}
      <p style="margin-bottom: 30px;">{{t "Loading users..." key='loading_users'}}</p>
    {{else}}
      <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
    {{/if}}
    <div style='margin-top: -15px;'>
      {{input value=extras_user_name placeholder="user name" class="form-control inline inline-masquerade input-sm"}}
      <button disabled={{no_extras}} class="btn btn-default btn-sm" {{action "management_action" 'add_extras' extras_user_name}}>{{t "Add Premium Symbols" key='add_extras'}}</button>
    </div>
  {{/if}}

  {{#if show_organizations}}
    {{#if model.children_orgs}}
      <p>
        {{t "sub-organization" key='n_sub_organizations' count=model.children_orgs.length}}
      </p>
      <table class="table table-hover" style="width: 400px;">
        <tbody>
          {{#each model.children_orgs as |org|}}
            <tr>
              <td style='font-size: 20px;'>
                {{#link-to 'organization' org.id}}
                  <span class='glyphicon glyphicon-paperclip' style="font-size: 25px; vertical-align: middle;"></span>
                  {{org.name}}
                {{/link-to}}
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
    {{else if model.admin}}
      {{#if model.permissions.manage}}
        {{#if orgs.data}}
          <p>
            {{t "organization" key='n_organizations' count=orgs.data.length}}
          </p>
          <span style='display: block; width: 200px;'>
            {{input type='text' value=org_filter class='form-control' placeholder='search orgs'}}
          </span>
          <table class="table table-hover" style="width: 400px;">
            <tbody>
              {{#if filtered_orgs}}
                {{#each filtered_orgs as |org|}}
                    <tr>
                      <td style='font-size: 20px;'>
                        {{#link-to 'organization' org.id}}
                          <span class='glyphicon glyphicon-paperclip' style="font-size: 25px; vertical-align: middle;"></span>
                          {{#if org.premium}}
                            <b>{{org.name}}</b>
                          {{else}}
                            {{org.name}}
                          {{/else}}
                        {{/link-to}}
                      </td>
                      <td>
                        {{#unless org.admin}}
                          <a href='#' {{action "remove_org" org}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
                        {{/unless}}
                      </td>
                    </tr>
                {{/each}}
              {{else}}
                {{#each alphabetized_orgs as |letter|}}
                  <tr>
                    <td colspan="2">
                      <a href="#" {{action 'toggle_letter' letter}}>
                        <span  style='font-size: 20px;'>
                         {{letter.letter}} - 
                        </span> 
                        {{t "org" count=letter.orgs.length key='n_orgs'}}
                        {{#if letter.expanded}}
                          <span class='caret'></span>
                        {{else}}
                          <span class='caret-right'></span>
                        {{/if}}
                      </a>
                    </td>
                  </tr>
                  {{#if letter.expanded}}
                    {{#each letter.orgs as |org|}}
                      <tr>
                        <td style='font-size: 20px;'>
                          {{#link-to 'organization' org.id}}
                            <span class='glyphicon glyphicon-paperclip' style="font-size: 25px; vertical-align: middle;"></span>
                            {{org.name}}
                          {{/link-to}}
                        </td>
                        <td>
                          {{#unless org.admin}}
                            <a href='#' {{action "remove_org" org}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
                          {{/unless}}
                        </td>
                      </tr>
                    {{/each}}
                  {{/if}}
                {{/each}}
              {{/if}}
            </tbody>
          </table>
        {{else if orgs.loading}}
          <p style="margin-bottom: 30px;">{{t "Loading organizations..." key='loading_orgs'}}</p>
        {{else}}
          <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
        {{/if}}
        <div style='margin-top: -15px;'>
          {{input value=org_org_name placeholder="org name" class="form-control inline inline-masquerade input-sm"}}
          {{input value=org_user_name placeholder="admin user name" class="form-control inline inline-masquerade input-sm"}}
          <button class="btn btn-default btn-sm" {{action "add_org"}}>{{t "Add Organization" key='add_org'}}</button>
        </div><commit_msg>more premium org highlighting<commit_after>{{#if model.permissions.edit}}
  {{#if model.permissions.manage}}
    <div class="row">
      <div class="col-sm-3 col-xs-6">
        <div class="panel panel-default summary smaller">
          <div class="panel-heading">
            {{t "Last logged session" key='last_logged_session'}}
          </div>
          <div class="panel-body">
            {{#if first_log}}
              {{date_ago first_log.started_at}}
            {{else}}
              {{t "..." key='ellipsis'}}
            {{/if}}
          </div>
        </div>
      </div>
      <div class="col-sm-3 col-xs-6">
        <div class="panel panel-default summary smaller">
          <div class="panel-heading">
            {{t "Recent Sessions" key='recent_sessions'}}
          </div>
          <div class="panel-body">
            {{t "session" key='n_sessions' count=user_counts.recent_session_count}}
          </div>
        </div>
      </div>
      <div class="col-sm-3 col-xs-6">
        <div class="panel panel-default summary smaller">
          <div class="panel-heading">
            {{t "Recently-logged users" key='recently_logged_users'}}
          </div>
          <div class="panel-body">
            {{user_counts.recent_session_user_count}}{{#if model.total_users}} / {{model.total_users}}{{/if}}
            {{t "users" key='users_lower'}}
          </div>
        </div>
      </div>
      <div class="col-sm-3 col-xs-6">
        <div class="panel panel-default summary smaller">
          <div class="panel-heading">
            {{t "Recently-logged hours" key='recently_logged_hours'}}
          </div>
          <div class="panel-body">
            {{#if user_counts}}
              {{t "hour" key='n_hours' count=user_counts.recent_session_hours}}
            {{else}}
              {{t "..." key='ellipsis'}}
            {{/if}}
          </div>
        </div>
      </div>
      <div class='col-sm-12' style='margin-top: -10px; margin-bottom: 10px;'>
        {{#if model.permissions.edit}}
          <div style='float: right;'>
            <button class='btn btn-default' {{action 'edit_org'}}>{{t "Settings" key='settings'}}</button>
          </div>
        {{/if}}
        {{#if model.default_home_board}}
          <div class='text-muted'>
            {{t "default home board:" key='default_home_board'}}
            {{#link-to 'board' model.default_home_board.key}}{{model.default_home_board.key}}{{/link-to}}
          </div>
        {{/if}}
        <div style='clear: right;'></div>
      </div>
      <div class="col-sm-6" style="padding: 0;">
        {{#if weekly_stats.error}}
          {{t "There was a problem loading this report" key='problem_loading_report'}}
        {{else}}
          {{stats/sessions-per-week weekly_stats=weekly_stats}}
        {{/if}}
      </div>
      <div class="col-sm-3" style="padding: 0;">
        {{stats/recent-sessions total=model.total_users recent=user_counts.recent_session_user_count}}
      </div>
      {{#if user_counts}}
        <div class="col-sm-3" style="padding: 0;">
          {{stats/recent-goals total=model.total_users goal_set=user_counts.goal_set tracked=user_counts.goal_recently_logged}}
        </div>
      {{/if}}
      <div style='clear: both;'>
      <div class='col-sm-6'>
        <strong>{{t "Recently-Modeled Words" key='recently_modeled_words'}}</strong>
        {{#if combined_models.words_by_frequency.length}}
          {{stats/word-cloud stats=combined_models tiny=true zoom=1}}
        {{else}}
          <br/><br/><em>{{t "No modeled words to report" key='no_modeled_words_to_report'}}</em><br/>
        {{/if}}
      </div>
      {{#if app_state.feature_flags.profiles}}
        <div class="col-sm-3" style="padding: 0;">
          {{stats/recent-profiles type='communicator' total=user_counts.communicators recent=user_counts.communicator_recent_profiles}}
        </div>
        <div class="col-sm-3" style="padding: 0;">
          {{stats/recent-profiles type='supervisor' total=user_counts.supervisors recent=user_counts.supervisor_recent_profiles}}
        </div>
      {{/if}}
      </div>
    </div>
  {{/if}}
  <ul class='nav nav-pills' style="margin-bottom: 15px; margin-top: 20px;">
    {{#if model.admin}}
      <li class={{if show_organizations 'active'}}><a href="#" {{action 'pick' 'organizations'}}>{{t "Organizations" key='organizations'}}</a></li>
    {{else if model.children_orgs}}
      <li class={{if show_organizations 'active'}}><a href="#" {{action 'pick' 'organizations'}}>{{t "Organizations" key='organizations'}}</a></li>
    {{/if}}
    <li class={{if show_managers 'active'}}><a href="#" {{action 'pick' 'managers'}}>{{t "Managers" key='managers'}}</a></li>
    <li class={{if show_supervisors 'active'}}><a href="#" {{action 'pick' 'supervisors'}}>{{t "Supervisors" key='supervisors'}}</a></li>
    <li class={{if show_communicators 'active'}}><a href="#" {{action 'pick' 'communicators'}}>{{t "Communicators" key='communicators'}}</a></li>
    <li class={{if show_evals 'active'}}><a href="#" {{action 'pick' 'evals'}}>{{t "Evals" key='evals'}}</a></li>
    <li class={{if show_extras 'active'}}><a href="#" {{action 'pick' 'extras'}}>{{t "Symbols" key='symbols'}}</a></li>
  </ul>
  {{#if show_managers}}
    {{#if managers.data}}
      <p>
        {{t "manager" key='n_managers' count=model.total_managers}}
      </p>
      <table class="table table-hover" style="width: 400px;">
        <tbody>
          {{#each managers.data as |manager|}}
            <tr>
              <td style='font-size: 20px;'>
                {{#link-to 'user' manager.user_name}}
                  <img src={{manager.avatar_url}} style="height: 30px; width: 30px;" class='fit_image'/>
                  {{manager.user_name}}
                {{/link-to}}
              </td>
              <td>
                {{#if manager.org_manager}}
                  {{t "manager" key='manager'}}
                {{else if manager.org_assistant}}
                  {{t "assistant" key='assistant'}}
                {{/if}}
              </td>
              <td>
                <a href='#' {{action "management_action" 'remove_manager' manager.id}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
    {{else if managers.loading}}
      <p style="margin-bottom: 30px;">{{t "Loading managers..." key='loading_managers'}}</p>
    {{else}}
      <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
    {{/if}}
    <div style='margin-top: -15px;'>
      {{input value=manager_user_name placeholder="user name" class="form-control inline inline-masquerade input-sm"}}
      <button class="btn btn-default btn-sm" {{action "management_action" 'add_manager'}}>{{t "Add Manager" key='add_manager'}}</button>
      <button class="btn btn-default btn-sm" {{action "management_action" 'add_assistant'}}>{{t "Add Assistant" key='add_assistant'}}</button>
      <a href="#" {{action "new_user" 'add_manager'}} style='padding-left: 10px;'>{{t "New User" key='new_user'}}</a>
      {{#if suggest_creating_manager}}
        <p class='text-danger'>
          {{t "The user name %{user_name} doesn't exist." key='no_user_suggest_create' user_name=manager_user_name}}
        </p>
      {{/if}}
    </div>
  {{/if}}

  {{#if show_supervisors}}
    {{#if supervisors.data}}
      <p>
        {{t "supervisor" key='n_supervisors_lower' count=model.total_supervisors}}
        {{#if model.allotted_supervisor_licenses}}
          ({{model.used_supervisors}} / {{model.allotted_supervisor_licenses}} {{t "premium sponsorships used" key='premium_sponsorships_used'}})
        {{/if}}
      </p>
      <table class="table table-hover" style="width: 600px;">
        <tbody>
          {{#each supervisors.data as |user|}}
            <tr>
              <td style='font-size: 20px;'>
                {{#link-to 'user' user.user_name}}
                  <img src={{user.avatar_url}} style="height: 30px; width: 30px;" class='fit_image'/>
                  {{user.user_name}}
                {{/link-to}}
                {{#if user.org_supervision_pending}}
                  <span style="vertical-align: middle; white-space: nowrap;" class="text-muted">{{t "(pending)" key='pending_paren'}}</span>
                {{else if user.org_premium_supervisor}}
                  <span style="vertical-align: middle; white-space: nowrap;" class="text-muted">{{t "(premium)" key='premium_paren'}}</span>
                {{/if}}
                {{#if user.recent_org_profile}}
                  <div style='float: right; font-size: 14px; color: #888;' title={{t "Has a recently-completed profile" key='has_profile'}}>
                    <span class='glyphicon glyphicon-lamp'></span>
                  </div>
                {{/if}}
              </td>
              <td style='font-size: 14px;'>
                {{#each user.org_supervisees as |sup|}}
                  {{#link-to 'user' sup.user_name}}{{sup.user_name}}{{/link-to}}<br/>
                {{/each}}
              </td>
              <td>
                <a href='#' {{action "management_action" 'remove_supervisor' user.user_name}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
      {{#if more_supervisors}}
        <p style="margin-bottom: 30px;">
          {{#link-to 'organization.reports' (query-params current_report='all_supervisors')}}
            {{t "See all supervisors" key='see_all_supervisors'}}
          {{/link-to}}
        </p>
      {{/if}}
    {{else if supervisors.loading}}
      <p style="margin-bottom: 30px;">{{t "Loading supervisors..." key='loading_supervisors'}}</p>
    {{else}}
      <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
    {{/if}}
    <div style='margin-top: -15px;'>
      {{input value=supervisor_user_name placeholder="user name" class="form-control inline inline-masquerade input-sm"}}
      <button disabled={{no_supervisor_licenses}} class="btn btn-default btn-sm" {{action "management_action" 'add_premium_supervisor'}}>{{t "Add Premium Supervisor" key='add_premium_supervisor'}}</button>
      <button class="btn btn-default btn-sm" {{action "management_action" 'add_supervisor'}}>{{t "Add Supervisor" key='add_supervisor'}}</button>
      <a href="#" {{action "new_user" 'add_supervisor'}} style='padding-left: 10px;'>{{t "New User" key='new_user'}}</a>
      {{#if suggest_creating_supervisor}}
        <p class='text-danger'>
          {{t "The user name %{user_name} doesn't exist." key='no_user_suggest_create' user_name=supervisor_user_name}}
        </p>
      {{/if}}
    </div>
  {{/if}}

  {{#if show_communicators}}
    {{#if model.permissions}}
      <p>
        {{model.used_licenses}} {{t "out of" key='out_of' }}
        {{model.allotted_licenses}} {{t "sponsorships used, " key='sponsored_comma' }}
        {{t "user" key='n_users' count=model.total_users}} {{t "total" key='total'}}
      </p>
    {{/if}}
    {{#if users.data}}
      <table class="table table-hover" style="width: 400px;">
        <tbody>
          {{#each users.data as |user|}}
            <tr>
              <td>
                {{#link-to 'user' user.user_name}}
                  <img src={{user.avatar_url}} style="height: 30px; width: 30px;" class='fit_image'/>
                  {{user.user_name}}
                {{/link-to}}
                {{#if model.permissions.manage}}
                  <em>{{user.name}}</em>
                {{/if}}
                {{#if user.org_pending}}
                  <span style="vertical-align: middle;" class="text-muted">{{t "(pending)" key='pending_paren'}}</span>
                {{/if}}
                {{#if user.org_sponsored}}
                  <span style="vertical-align: middle;" class="text-muted">{{t "(sponsored)" key='sponsored_paren'}}</span>
                {{/if}}
                {{#if user.recent_org_profile}}
                  <div style='float: right; font-size: 14px; color: #888;' title={{t "Has a recently-completed profile" key='has_profile'}}>
                    <span class='glyphicon glyphicon-lamp'></span>
                  </div>
                {{/if}}
              </td>
              <td>
                <a href='#' {{action "management_action" 'remove_user' user.user_name}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
      {{#if more_users}}
        <p style="margin-bottom: 30px;">
          {{#link-to 'organization.reports' (query-params current_report='all_users')}}
            {{t "See all users" key='see_all_users'}}
          {{/link-to}}
        </p>
      {{/if}}
    {{else if users.loading}}
      <p style="margin-bottom: 30px;">{{t "Loading users..." key='loading_users'}}</p>
    {{else}}
      <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
    {{/if}}
    <div style='margin-top: -15px;'>
      {{input value=user_user_name placeholder="user name" class="form-control inline inline-masquerade input-sm"}}
      <button disabled={{no_licenses}} class="btn btn-default btn-sm" {{action "management_action" 'add_user'}}>{{t "Add Sponsored User" key='add_sponsored_user'}}</button>
      <button class="btn btn-default btn-sm" {{action "management_action" 'add_unsponsored_user'}}>{{t "Add Unsponsored User" key='add_unsponsored_user'}}</button>
      <a href="#" {{action "new_user" 'add_user'}} style='padding-left: 10px;'>{{t "New User" key='new_user'}}</a>
      {{#if suggest_creating_communicator}}
        <p class='text-danger'>
          {{t "The user name %{user_name} doesn't exist." key='no_user_suggest_create' user_name=user_user_name}}
        </p>
      {{/if}}
    </div>
  {{/if}}

  {{#if show_evals}}
    {{#if model.permissions}}
      <p>
        {{model.used_evals}} {{t "out of" key='out_of' }}
        {{model.allotted_eval_licenses}} {{t "eval accounts used" key='evals_used' }}
      </p>
    {{/if}}
    {{#if evals.data}}
      <table class="table table-hover" style="width: 400px;">
        <tbody>
          {{#each evals.data as |user|}}
            <tr>
              <td>
                {{#link-to 'user' user.user_name}}
                  <img src={{user.avatar_url}} style="height: 30px; width: 30px;" class='fit_image'/>
                  {{user.user_name}}
                {{/link-to}}
                {{#if user.org_pending}}
                  <span style="vertical-align: middle;" class="text-muted">{{t "(pending)" key='pending_paren'}}</span>
                {{/if}}
              </td>
              <td>
                <a href='#' {{action "management_action" 'remove_user' user.user_name}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
      {{#if more_evals}}
        <p style="margin-bottom: 30px;">
          {{#link-to 'organization.reports' (query-params current_report='all_evals')}}
            {{t "See all eval accounts" key='see_all_evals'}}
          {{/link-to}}
        </p>
      {{/if}}
    {{else if evals.loading}}
      <p style="margin-bottom: 30px;">{{t "Loading users..." key='loading_users'}}</p>
    {{else}}
      <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
    {{/if}}
    <div style='margin-top: -15px;'>
      {{input value=eval_user_name placeholder="user name" class="form-control inline inline-masquerade input-sm"}}
      <button disabled={{no_eval_licenses}} class="btn btn-default btn-sm" {{action "management_action" 'add_eval'}}>{{t "Add Eval Account" key='add_eval'}}</button>
      {{#unless no_eval_licenses}}
        <a href="#" {{action "new_user" 'add_eval'}} style='padding-left: 10px;'>{{t "New Eval Account" key='new_eval'}}</a>
        {{#if suggest_creating_eval}}
          <p class='text-danger'>
            {{t "The user name %{user_name} doesn't exist." key='no_user_suggest_create' user_name=eval_user_name}}
          </p>
        {{/if}}
      {{/unless}}
    </div>
  {{/if}}

  {{#if show_extras}}
    {{#if model.permissions}}
      <p>
        {{model.used_extras}} {{t "out of" key='out_of' }}
        {{model.allotted_extras}} {{t "premium symbol accounts used" key='extras_used' }}
      </p>
    {{/if}}
    {{#if extras.data}}
      <table class="table table-hover" style="width: 400px;">
        <tbody>
          {{#each extras.data as |user|}}
            <tr>
              <td>
                {{#link-to 'user' user.user_name}}
                  <img src={{user.avatar_url}} style="height: 30px; width: 30px;" class='fit_image'/>
                  {{user.user_name}}
                {{/link-to}}
              </td>
              <td>
                <a href='#' {{action "management_action" 'remove_extras' user.user_name true}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
    {{else if extras.loading}}
      <p style="margin-bottom: 30px;">{{t "Loading users..." key='loading_users'}}</p>
    {{else}}
      <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
    {{/if}}
    <div style='margin-top: -15px;'>
      {{input value=extras_user_name placeholder="user name" class="form-control inline inline-masquerade input-sm"}}
      <button disabled={{no_extras}} class="btn btn-default btn-sm" {{action "management_action" 'add_extras' extras_user_name}}>{{t "Add Premium Symbols" key='add_extras'}}</button>
    </div>
  {{/if}}

  {{#if show_organizations}}
    {{#if model.children_orgs}}
      <p>
        {{t "sub-organization" key='n_sub_organizations' count=model.children_orgs.length}}
      </p>
      <table class="table table-hover" style="width: 400px;">
        <tbody>
          {{#each model.children_orgs as |org|}}
            <tr>
              <td style='font-size: 20px;'>
                {{#link-to 'organization' org.id}}
                  <span class='glyphicon glyphicon-paperclip' style="font-size: 25px; vertical-align: middle;"></span>
                  {{org.name}}
                {{/link-to}}
              </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
    {{else if model.admin}}
      {{#if model.permissions.manage}}
        {{#if orgs.data}}
          <p>
            {{t "organization" key='n_organizations' count=orgs.data.length}}
          </p>
          <span style='display: block; width: 200px;'>
            {{input type='text' value=org_filter class='form-control' placeholder='search orgs'}}
          </span>
          <table class="table table-hover" style="width: 400px;">
            <tbody>
              {{#if filtered_orgs}}
                {{#each filtered_orgs as |org|}}
                    <tr>
                      <td style='font-size: 20px;'>
                        {{#link-to 'organization' org.id}}
                          <span class='glyphicon glyphicon-paperclip' style="font-size: 25px; vertical-align: middle;"></span>
                          {{#if org.premium}}
                            <b>{{org.name}}</b>
                          {{else}}
                            {{org.name}}
                          {{/if}}
                        {{/link-to}}
                      </td>
                      <td>
                        {{#unless org.admin}}
                          <a href='#' {{action "remove_org" org}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
                        {{/unless}}
                      </td>
                    </tr>
                {{/each}}
              {{else}}
                {{#each alphabetized_orgs as |letter|}}
                  <tr>
                    <td colspan="2">
                      <a href="#" {{action 'toggle_letter' letter}}>
                        <span  style='font-size: 20px;'>
                         {{letter.letter}} - 
                        </span> 
                        {{t "org" count=letter.orgs.length key='n_orgs'}}
                        {{#if letter.expanded}}
                          <span class='caret'></span>
                        {{else}}
                          <span class='caret-right'></span>
                        {{/if}}
                      </a>
                    </td>
                  </tr>
                  {{#if letter.expanded}}
                    {{#each letter.orgs as |org|}}
                      <tr>
                        <td style='font-size: 20px;'>
                          {{#link-to 'organization' org.id}}
                            <span class='glyphicon glyphicon-paperclip' style="font-size: 25px; vertical-align: middle;"></span>
                            {{#if org.premium}}
                              <b>{{org.name}}</b>
                            {{else}}
                              {{org.name}}
                            {{/if}}
                          {{/link-to}}
                        </td>
                        <td>
                          {{#unless org.admin}}
                            <a href='#' {{action "remove_org" org}} class="glyphicon glyphicon-remove"><span class='text-hide'>remove</span></a>
                          {{/unless}}
                        </td>
                      </tr>
                    {{/each}}
                  {{/if}}
                {{/each}}
              {{/if}}
            </tbody>
          </table>
        {{else if orgs.loading}}
          <p style="margin-bottom: 30px;">{{t "Loading organizations..." key='loading_orgs'}}</p>
        {{else}}
          <p style="margin-bottom: 30px;">{{t "None found" key='none_found'}}</p>
        {{/if}}
        <div style='margin-top: -15px;'>
          {{input value=org_org_name placeholder="org name" class="form-control inline inline-masquerade input-sm"}}
          {{input value=org_user_name placeholder="admin user name" class="form-control inline inline-masquerade input-sm"}}
          <button class="btn btn-default btn-sm" {{action "add_org"}}>{{t "Add Organization" key='add_org'}}</button>
        </div>
{'fraction_non_alphanumeric': 0.18362667745633557, 'fraction_numerical': 0.006968327826106503, 'mean_word_length': 2.0713151536071797, 'pattern_counts': {'":': 0, '<': 683, '<?xml version=': 0, '>': 683, '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': '4733204', 'n_tokens_mistral': 14507, 'n_tokens_neox': 13566, 'n_words': 2769}