<commit_before><template>
<div :class="{
  'modal': true,
  'is-active': active
}">
  <div class="modal-background"></div>

  <div class="modal-content">
    <div class="box">

      <h1 class="title" v-if="isEditing()">
        {{ $t("task_status.edit_title") }} {{ taskStatusToEdit.name }}
      </h1>
      <h1 class="title" v-else>
        {{ $t("task_status.new_task_status") }}
      </h1>

      <form v-on:submit.prevent>
        <text-field
          ref="nameField"
          input-class="task-status-name"
          :label="$t('task_status.fields.name')"
          v-model="form.name"
          v-focus
        />
        <text-field
          ref="shortNameField"
          input-class="task-status-short-name"
          :label="$t('task_status.fields.short_name')"
          v-model="form.short_name"
          v-focus
        />
        <combobox-boolean
          :label="$t('task_status.fields.is_done')"
          v-model="form.is_done"
        />
        <combobox-boolean
          :label="$t('task_status.fields.is_retake')"
          v-model="form.is_retake"
        />
        <combobox-boolean
          :label="$t('task_status.fields.is_artist_allowed')"
          v-model="form.is_artist_allowed"
        />
        <combobox-boolean
          :label="$t('task_status.fields.is_client_allowed')"
          v-model="form.is_client_allowed"
        />

        <color-field
          ref="colorField"
          :label="$t('task_status.fields.color')"
          :colors="colors"
          v-model="form.color"
        />
      </form>

      <p class="has-text-right"><commit_msg>Don't allow task status short name longer than 8 chars<commit_after><template>
<div :class="{
  'modal': true,
  'is-active': active
}">
  <div class="modal-background"></div>

  <div class="modal-content">
    <div class="box">

      <h1 class="title" v-if="isEditing()">
        {{ $t("task_status.edit_title") }} {{ taskStatusToEdit.name }}
      </h1>
      <h1 class="title" v-else>
        {{ $t("task_status.new_task_status") }}
      </h1>

      <form v-on:submit.prevent>
        <text-field
          ref="nameField"
          input-class="task-status-name"
          :label="$t('task_status.fields.name')"
          v-model="form.name"
          v-focus
        />
        <text-field
          ref="shortNameField"
          input-class="task-status-short-name"
          :label="$t('task_status.fields.short_name')"
          :maxlength="8"
          v-model="form.short_name"
          v-focus
        />
        <combobox-boolean
          :label="$t('task_status.fields.is_done')"
          v-model="form.is_done"
        />
        <combobox-boolean
          :label="$t('task_status.fields.is_retake')"
          v-model="form.is_retake"
        />
        <combobox-boolean
          :label="$t('task_status.fields.is_artist_allowed')"
          v-model="form.is_artist_allowed"
        />
        <combobox-boolean
          :label="$t('task_status.fields.is_client_allowed')"
          v-model="form.is_client_allowed"
        />

        <color-field
          ref="colorField"
          :label="$t('task_status.fields.color')"
          :colors="colors"
          v-model="form.color"
        />
      </form>

      <p class="has-text-right">
{'fraction_non_alphanumeric': 0.16788990825688074, 'fraction_numerical': 0.0030581039755351682, 'mean_word_length': 1.9441944194419443, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '3098064', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1059, 'n_words': 125}