<commit_before><template>
  <div>
    <div :class="{
      'action-topbar': true,
      'hidden': isHidden
    }">
      <div class="flexrow action-bar">

        <div class="flexrow-item more-menu-icon" @click="toggleMenu">
          <div class="flexrow">
            <span class="flexrow-item hide-small-screen">
              {{ currentMenuLabel }}
            </span>
            <chevron-down-icon class="flexrow-item" />
          </div>
        </div>

        <div class="flexrow-item" v-if="selectedBar === 'assignation'">
          <div
            class="flexrow"
            v-if="isCurrentUserManager || isSupervisorInDepartment ||
            isInDepartment"
          >
            <div class="assignation flexrow-item hide-small-screen">
              <span>
                {{ $tc('tasks.assign', nbSelectedTasks, {nbSelectedTasks}) }}
              </span>
              <span v-show="isCurrentUserArtist">
                myself
              </span>
            </div>
            <div class="flexrow-item combobox-item">
              <people-field
                ref="assignation-field"
                :people="currentTeam"
                v-model="person"
                v-show="isCurrentUserManager || isCurrentUserSupervisor"
              />
            </div>
            <div class="" v-if="isAssignationLoading">
              <spinner :is-white="true" :size="25" />
            </div>
            <div class="flexrow-item" v-if="!isAssignationLoading">
              <button
                class="button is-success confirm-button"
                @click="confirmAssign"
              >
                {{ $t('main.confirmation') }}
              </button>
            </div>
            <div
              class="flexrow-item hide-small-screen"
              v-if="!isAssignationLoading && isCurrentUserManager"
            >
              {{ $t('main.or') }}
            </div>
            <div
              class="flexrow-item hide-small-screen"
              v-if="!isAssignationLoading && isCurrentUserManager"
            >
              <button
                class="button is-link clear-assignation-button hide-small-screen"
                @click="clearAssignation"
              >
                {{ $t('tasks.clear_assignations') }}
              </button>
            </div>
            <div
              class="flexrow-item hide-small-screen"
              v-else-if="!isAssignationLoading && isCurrentUserArtist"
            >
              <button
                class="button is-link clear-assignation-button hide-small-screen"
                @click="clearAssignation"
              >
                {{ $t('tasks.clear_own_assignations') }}
              </button>
            </div>
            <div class="flexrow-item" v-if="!isShowAssignations">
              {{ $t('tasks.assignation_warning') }}
            </div>
          </div><commit_msg>[qa] allow supervisors to clear assignations on allowed departments<commit_after><template>
  <div>
    <div :class="{
      'action-topbar': true,
      'hidden': isHidden
    }">
      <div class="flexrow action-bar">

        <div class="flexrow-item more-menu-icon" @click="toggleMenu">
          <div class="flexrow">
            <span class="flexrow-item hide-small-screen">
              {{ currentMenuLabel }}
            </span>
            <chevron-down-icon class="flexrow-item" />
          </div>
        </div>

        <div class="flexrow-item" v-if="selectedBar === 'assignation'">
          <div
            class="flexrow"
            v-if="isCurrentUserManager || isSupervisorInDepartment ||
            isInDepartment"
          >
            <div class="assignation flexrow-item hide-small-screen">
              <span>
                {{ $tc('tasks.assign', nbSelectedTasks, {nbSelectedTasks}) }}
              </span>
              <span v-show="isCurrentUserArtist">
                myself
              </span>
            </div>
            <div class="flexrow-item combobox-item">
              <people-field
                ref="assignation-field"
                :people="currentTeam"
                v-model="person"
                v-show="isCurrentUserManager || isCurrentUserSupervisor"
              />
            </div>
            <div class="" v-if="isAssignationLoading">
              <spinner :is-white="true" :size="25" />
            </div>
            <div class="flexrow-item" v-if="!isAssignationLoading">
              <button
                class="button is-success confirm-button"
                @click="confirmAssign"
              >
                {{ $t('main.confirmation') }}
              </button>
            </div>
            <div
              class="flexrow-item hide-small-screen"
              v-if="!isAssignationLoading && (
                isCurrentUserManager || isSupervisorInDepartment)"
            >
              {{ $t('main.or') }}
            </div>
            <div
              class="flexrow-item hide-small-screen"
              v-if="!isAssignationLoading && (
                isCurrentUserManager || isSupervisorInDepartment)"
            >
              <button
                class="button is-link clear-assignation-button hide-small-screen"
                @click="clearAssignation"
              >
                {{ $t('tasks.clear_assignations') }}
              </button>
            </div>
            <div
              class="flexrow-item hide-small-screen"
              v-else-if="!isAssignationLoading && isCurrentUserArtist"
            >
              <button
                class="button is-link clear-assignation-button hide-small-screen"
                @click="clearAssignation"
              >
                {{ $t('tasks.clear_own_assignations') }}
              </button>
            </div>
            <div class="flexrow-item" v-if="!isShowAssignations">
              {{ $t('tasks.assignation_warning') }}
            </div>
          </div>
{'fraction_non_alphanumeric': 0.1302887844190732, 'fraction_numerical': 0.000671591672263264, 'mean_word_length': 1.3875751503006013, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, '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': '4024560', 'n_tokens_mistral': 1593, 'n_tokens_neox': 1539, 'n_words': 245}