<commit_before><template>

  <div class="task">
    <h1>{{ title }}</h1>
    <progress max="1" :value="percentage"></progress>
    <h2>{{ subTitle }}</h2>
    <p v-if="statusFailed">{{ $tr('failed_msg') }}</p>
    <icon-button class="buttons" @click="clearTaskHandler">
      {{ buttonMessage }}
    </icon-button>
  </div>

</template>


<script>

  const actions = require('../../actions');
  const logging = require('kolibri.lib.logging');
  const constants = require('../../state/constants');
  const TaskTypes = constants.TaskTypes;
  const TaskStatuses = constants.TaskStatuses;

  module.exports = {
    $trNameSpace: 'contentPage',
    $trs: {
      buttonClose: 'Close',
      buttonCancel: 'Cancel',
      failed: 'Try again',
      failed_msg: 'The transfer did not succeed. If you restart, any progress will be retained',
      completed: `Finished!`,
      loading: 'Please wait…',
      remoteImport: 'Importing from curation server',
      localImport: 'Importing from local drive',
      localExport: 'Exporting to local drive',
    },
    components: {<commit_msg>update import/export messaging<commit_after><template>

  <div class="task">
    <h1>{{ title }}</h1>
    <progress max="1" :value="percentage"></progress>
    <h2>{{ subTitle }}</h2>
    <p v-if="statusFailed">{{ $tr('failed_msg') }}</p>
    <icon-button class="buttons" @click="clearTaskHandler">
      {{ buttonMessage }}
    </icon-button>
  </div>

</template>


<script>

  const actions = require('../../actions');
  const logging = require('kolibri.lib.logging');
  const constants = require('../../state/constants');
  const TaskTypes = constants.TaskTypes;
  const TaskStatuses = constants.TaskStatuses;

  module.exports = {
    $trNameSpace: 'contentPage',
    $trs: {
      buttonClose: 'Close',
      buttonCancel: 'Cancel',
      failed: 'Try again',
      failed_msg: 'The transfer did not succeed. Restart it to resume transferring the remaining content',
      completed: `Finished!`,
      loading: 'Please wait…',
      remoteImport: 'Importing from curation server',
      localImport: 'Importing from local drive',
      localExport: 'Exporting to local drive',
    },
    components: {
{'fraction_non_alphanumeric': 0.1626313385107355, 'fraction_numerical': 0.0045682960255824575, 'mean_word_length': 3.397590361445783, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '5938905', 'n_tokens_mistral': 665, 'n_tokens_neox': 654, 'n_words': 172}