<commit_before><template lang="pug">
  v-fade-transition
    .layout-container(v-show='show')
      //- Top title
      h6.video-title {{ title }}

      //- Window buttons
      .window-buttons
        v-btn.video-size(color='secondary', dark, icon, outlined, @click.stop='actOnWindow("minimize")', v-show='!controls.fullscreen')
          v-icon {{ controls.isMinimized ? 'keyboard_arrow_up' : 'keyboard_arrow_down' }}

        v-btn.video-close.mr-2.ml-4(color='secondary', dark, icon, outlined, @click.stop='actOnWindow("close")')
          v-icon close

      //- Loading object
      //- v-progress-circular.video-waiting(dark, indeterminate, v-show='waiting')

      player-controls(
        v-bind='controls',
      )
</template>

<script>
import PlayerControls from '@/components/video/controls.vue'

export default {
  name: 'Player-Layout',

  components: {
    PlayerControls
  },

  props: [
    'title',
    'timeline',
    'duration',
    'hasSubs',
    'subs',
    'currentLang',
    'pause',
    'mute'
  ],

  data: () => ({
    show: true,
    timeoutID: null,

    // Controls
    buffered: []
  }),

  computed: {
    controls () {
      return {
        ...this.$store.state.streaming.player.controls,
        timeline: this.timeline,
        currentTime: this.formatTime((this.timeline / 100) * this.duration),
        duration: this.formatTime(this.duration),
        buffered: this.buffered,<commit_msg>Now hiding layout automatically<commit_after><template lang="pug">
  v-fade-transition
    .layout-container(v-show='show')
      //- Top title
      h6.video-title {{ title }}

      //- Window buttons
      .window-buttons
        v-btn.video-size(color='secondary', dark, icon, outlined, @click.stop='actOnWindow("minimize")', v-show='!controls.fullscreen')
          v-icon {{ controls.isMinimized ? 'keyboard_arrow_up' : 'keyboard_arrow_down' }}

        v-btn.video-close.mr-2.ml-4(color='secondary', dark, icon, outlined, @click.stop='actOnWindow("close")')
          v-icon close

      //- Loading object
      //- v-progress-circular.video-waiting(dark, indeterminate, v-show='waiting')

      player-controls(
        v-bind='controls',
      )
</template>

<script>
import PlayerControls from '@/components/video/controls.vue'

export default {
  name: 'Player-Layout',

  components: {
    PlayerControls
  },

  props: [
    'title',
    'timeline',
    'duration',
    'hasSubs',
    'subs',
    'currentLang',
    'pause',
    'mute'
  ],

  data: () => ({
    show: true,
    timeoutID: null,

    // Controls
    buffered: []
  }),

  mounted () {
    setTimeout(this.hide, 1500)
  },

  computed: {
    controls () {
      return {
        ...this.$store.state.streaming.player.controls,
        timeline: this.timeline,
        currentTime: this.formatTime((this.timeline / 100) * this.duration),
        duration: this.formatTime(this.duration),
        buffered: this.buffered,
{'fraction_non_alphanumeric': 0.1609156132558934, 'fraction_numerical': 0.005466347796378545, 'mean_word_length': 2.5707317073170732, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '5924064', 'n_tokens_mistral': 975, 'n_tokens_neox': 926, 'n_words': 159}