<commit_before><template>
  <div class="md-tabs">
    <ul class="tabs">
      <slot></slot>
      <div ref="indicator" class="indicator"></div>
    </ul>

    <slot name="contents"></slot>
  </div>
</template>

<script>
  import Velocity from 'velocity-animate'
  import Vue from 'vue'

  // translated from http://appcomponents.org/material-components/#!/tabs/sources
  export default {
    props: ['active', 'isDisplayed', 'objectTabActive'],
    watch: {
      isDisplayed () {
        if (this.isDisplayed) {
          this.$emit('tab-select', this.active)
        }
      },
      objectTabActive (tab) {
        this.select(tab)
      }
    },
    data () {
      return {
        indicator: {
          left: '0',
          right: '0'
        }
      }
    },
    computed: {
      tabsCount () {
        return this.$children.length
      }
    },<commit_msg>Fixed indicator on active tab<commit_after><template>
  <div class="md-tabs">
    <ul class="tabs">
      <slot></slot>
      <div ref="indicator" class="indicator"></div>
    </ul>

    <slot name="contents"></slot>
  </div>
</template>

<script>
  import Velocity from 'velocity-animate'
  import Vue from 'vue'

  // translated from http://appcomponents.org/material-components/#!/tabs/sources
  export default {
    props: ['active', 'isDisplayed', 'objectTabActive'],
    watch: {
      isDisplayed () {
        if (this.isDisplayed) {
          this.select(this.objectTabActive)
        }
      },
      objectTabActive (tab) {
        this.select(tab)
      }
    },
    data () {
      return {
        activeTab: null
      }
    },
    computed: {
      tabsCount () {
        return this.$children.length
      }
    },
{'fraction_non_alphanumeric': 0.1567472009428403, 'fraction_numerical': 0.0011785503830288745, 'mean_word_length': 2.064981949458484, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '6595259', 'n_tokens_mistral': 539, 'n_tokens_neox': 529, 'n_words': 104}