<commit_before><template>

  <div class="wrapper">
    <div v-if="isInProgress" class="progress-icon inprogress">
      <svg src="./progress-icons/inprogress.svg"/>
    </div>

    <div v-else-if="isCompleted" class="progress-icon completed">
      <svg src="./progress-icons/completed.svg"/>
    </div>
  </div>

</template>


<script>

  module.exports = {
    props: {
      progress: {
        type: Number,
        required: false,
        validator(value) {
          return (value >= 0) && (value <= 1);
        },
      },
    },
    computed: {
      isInProgress() {
        return (this.progress > 0) && (this.progress < 1);
      },
      isCompleted() {
        return this.progress === 1;
      },
    },
  };

</script>


<style lang="stylus" scoped>

  @require '~kolibri.styles.coreTheme'

  .wrapper
    display: inline-block

  .progress-icon<commit_msg>Tweak to progress-icon to get it to pass the tests.<commit_after><template>

  <div class="wrapper">
    <div v-if="isInProgress" class="progress-icon inprogress">
      <svg src="./progress-icons/inprogress.svg"/>
    </div>

    <div v-else-if="isCompleted" class="progress-icon completed">
      <svg src="./progress-icons/completed.svg"/>
    </div>
  </div>

</template>


<script>

  module.exports = {
    props: {
      progress: {
        type: Number,
        required: false,
        validator(value) {
          return (value >= 0) && (value <= 1);
        },
      },
    },
    computed: {
      isInProgress() {
        return (this.progress > 0) && (this.progress < 1);
      },
      isCompleted() {
        return this.progress >= 1;
      },
    },
  };

</script>


<style lang="stylus" scoped>

  @require '~kolibri.styles.coreTheme'

  .wrapper
    display: inline-block

  .progress-icon
{'fraction_non_alphanumeric': 0.16769489624228828, 'fraction_numerical': 0.005608524957936063, 'mean_word_length': 2.1743772241992882, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 34, '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': '1557265', 'n_tokens_mistral': 603, 'n_tokens_neox': 578, 'n_words': 116}