<commit_before><template>

  <div>
    <VLayout>
      <VFlex xs7 lg5>
        <VSelect
          :key="kindSelectKey"
          :items="kindSelectItems"
          :value="kind"
          :label="$tr('questionTypeLabel')"
          data-test="kindSelect"
          @input="onKindUpdate"
        />
      </VFlex>
    </VLayout>

    <VLayout>
      <VFlex>
        <ErrorList
          :errors="questionErrorMessages"
          data-test="questionErrors"
        />

        <div class="grey--text text--darken-2 mb-1">
          {{ $tr('questionLabel') }}
        </div>

        <transition name="fade">
          <keep-alive include="MarkdownEditor">
            <MarkdownEditor
              v-if="isQuestionOpen"
              :markdown="question"
              @update="onQuestionUpdate"
            />

            <div
              v-else
              class="pl-2 pr-2 pt-3 pb-3 question-text"
              data-test="questionText"
              @click="openQuestion"
            >
              <VLayout align-top>
                <VIcon
                  color="grey darken-1"
                  class="mr-2"
                  :style="{ 'margin-top': '12px'}"
                >
                  edit
                </VIcon>
                <MarkdownViewer :markdown="question" />
              </VLayout>
            </div>
          </keep-alive>
        </transition>
      </VFlex>
    </VLayout>

    <VLayout mt-4>
      <VFlex>
        <ErrorList
          :errors="answersErrorMessages"
          data-test="answersErrors"
        />

        <AnswersEditor
          :questionKind="kind"
          :answers="answers"
          :openAnswerIdx="openAnswerIdx"
          @update="onAnswersUpdate"
          @open="openAnswer"
          @close="closeAnswer"
        />

        <HintsEditor
          class="mt-4"
          :hints="hints"
          :openHintIdx="openHintIdx"
          @update="onHintsUpdate"<commit_msg>Move edit icon to the right side<commit_after><template>

  <div>
    <VLayout>
      <VFlex xs7 lg5>
        <VSelect
          :key="kindSelectKey"
          :items="kindSelectItems"
          :value="kind"
          :label="$tr('questionTypeLabel')"
          data-test="kindSelect"
          @input="onKindUpdate"
        />
      </VFlex>
    </VLayout>

    <VLayout>
      <VFlex>
        <ErrorList
          :errors="questionErrorMessages"
          data-test="questionErrors"
        />

        <div class="grey--text text--darken-2 mb-1">
          {{ $tr('questionLabel') }}
        </div>

        <transition name="fade">
          <keep-alive include="MarkdownEditor">
            <MarkdownEditor
              v-if="isQuestionOpen"
              :markdown="question"
              @update="onQuestionUpdate"
            />

            <div
              v-else
              class="pl-2 pr-2 pt-3 pb-3 question-text"
              data-test="questionText"
              @click="openQuestion"
            >
              <VLayout align-center justify-space-between>
                <MarkdownViewer :markdown="question" />

                <VIcon
                  color="grey darken-1"
                  class="mr-2"
                >
                  edit
                </VIcon>
              </VLayout>
            </div>
          </keep-alive>
        </transition>
      </VFlex>
    </VLayout>

    <VLayout mt-4>
      <VFlex>
        <ErrorList
          :errors="answersErrorMessages"
          data-test="answersErrors"
        />

        <AnswersEditor
          :questionKind="kind"
          :answers="answers"
          :openAnswerIdx="openAnswerIdx"
          @update="onAnswersUpdate"
          @open="openAnswer"
          @close="closeAnswer"
        />

        <HintsEditor
          class="mt-4"
          :hints="hints"
          :openHintIdx="openHintIdx"
          @update="onHintsUpdate"
{'fraction_non_alphanumeric': 0.12448347107438017, 'fraction_numerical': 0.006714876033057851, 'mean_word_length': 1.303985722784057, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 63, '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': '4561540', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1082, 'n_words': 163}