<commit_before>/* global Vue, gl */
/* eslint-disable no-param-reassign */
((gl) => {
  gl.VueTimeAgo = Vue.extend({
    data() {
      return {
        timeInterval: '',
        currentTime: new Date(),
      };
    },
    props: [
      'pipeline',
      'addTimeInterval',
    ],
    created() {
      this.timeInterval = setInterval(() => {
        this.currentTime = new Date();
      }, 1000);

      this.addTimeInterval(this.timeInterval, this);
    },
    computed: {
      localTimeFinished() {
        return gl.utils.formatDate(this.pipeline.details.finished_at);
      },
      timeStopped() {
        const changeTime = this.currentTime;

        const options = {
          weekday: 'long',
          year: 'numeric',
          month: 'short',
          day: 'numeric',
        };

        options.timeZoneName = 'short';

        const finished = this.pipeline.details.finished_at;

        if (!finished && changeTime) return false;
        return ({ words: gl.utils.getTimeago().format(finished) });
      },
    },
    methods: {<commit_msg>format - [ci skip]<commit_after>/* global Vue, gl */
/* eslint-disable no-param-reassign */
((gl) => {
  gl.VueTimeAgo = Vue.extend({
    data() {
      return {
        timeInterval: '',
        currentTime: new Date(),
      };
    },
    props: [
      'pipeline',
      'addTimeInterval',
    ],
    created() {
      this.timeInterval = setInterval(() => {
        this.currentTime = new Date();
      }, 1000);

      this.addTimeInterval(this.timeInterval, this);
    },
    computed: {
      localTimeFinished() {
        return gl.utils.formatDate(this.pipeline.details.finished_at);
      },
      timeStopped() {
        const changeTime = this.currentTime;
        const options = {
          weekday: 'long',
          year: 'numeric',
          month: 'short',
          day: 'numeric',
        };
        options.timeZoneName = 'short';
        const finished = this.pipeline.details.finished_at;
        if (!finished && changeTime) return false;
        return ({ words: gl.utils.getTimeago().format(finished) });
      },
    },
    methods: {
{'fraction_non_alphanumeric': 0.1485148514851485, 'fraction_numerical': 0.003771805752003772, 'mean_word_length': 1.9678321678321677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6644606', 'n_tokens_mistral': 635, 'n_tokens_neox': 628, 'n_words': 120}