<commit_before>import { computed } from '@ember/object';
import { alias, not, gt } from '@ember/object/computed';
import { inject as service } from '@ember/service';
import Component from '@ember/component';
import moment from 'moment-timezone';

export default Component.extend({
  electron: service(),

  classNames: ['col-md-4'],
  isNotPaused: true,
  currentTime: service(),
  currentTimestamp: alias('currentTime.currentTime'),
  timezones: alias('currentTime.timezones'),
  isPaused: not('isNotPaused'),
  isNotLastIndex: gt('index', 0),

  init() {
    this._super(...arguments);

    this.set('currentTimezone', this.get('currentTime.currentTimezone'));
  },

  currentTimeDisplay: computed('currentTimestamp', 'pausedTime', 'isPaused', function () {
    if (this.isPaused) {
      return this.pausedTime;
    }
    return this.currentTimestamp;
  }),

  humanDate: computed('currentTimestamp', 'pausedTime', 'isPaused', function () {
    let timestampToConvert;
    if (this.isPaused) {
      timestampToConvert = this.pausedTime;
    } else {
      timestampToConvert = this.currentTimestamp;
    }
    return moment.unix(timestampToConvert).tz(this.get('currentTimezone.name'));
  }),

  humanDateUtc: computed('currentTimestamp', 'pausedTime', 'isPaused', function () {
    let timestampToConvert;
    if (this.isPaused) {
      timestampToConvert = this.pausedTime;
    } else {<commit_msg>[CHORE] Maybe now heroku upgrades?<commit_after>import { computed } from '@ember/object';
import { alias, not, gt } from '@ember/object/computed';
import { inject as service } from '@ember/service';
import Component from '@ember/component';
import moment from 'moment-timezone';

export default Component.extend({
  electron: service(),

  classNames: ['col-md-4'],
  isNotPaused: true,
  currentTime: service(),
  currentTimestamp: alias('currentTime.currentTime'),
  timezones: alias('currentTime.timezones'),
  isPaused: not('isNotPaused'),
  isNotLastIndex: gt('index', 0),

  init() {
    this._super(...arguments);

    this.set('currentTimezone', this.currentTime.currentTimezone);
  },

  currentTimeDisplay: computed('currentTimestamp', 'pausedTime', 'isPaused', function () {
    if (this.isPaused) {
      return this.pausedTime;
    }
    return this.currentTimestamp;
  }),

  humanDate: computed('currentTimestamp', 'pausedTime', 'isPaused', 'currentTimezone.name', function () {
    let timestampToConvert;
    if (this.isPaused) {
      timestampToConvert = this.pausedTime;
    } else {
      timestampToConvert = this.currentTimestamp;
    }
    return moment.unix(timestampToConvert).tz(this.currentTimezone.name);
  }),

  humanDateUtc: computed('currentTimestamp', 'pausedTime', 'isPaused', function () {
    let timestampToConvert;
    if (this.isPaused) {
      timestampToConvert = this.pausedTime;
    } else {
{'fraction_non_alphanumeric': 0.14265586474110603, 'fraction_numerical': 0.0014089468122578373, 'mean_word_length': 4.4510556621881, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2340809', 'n_tokens_mistral': 901, 'n_tokens_neox': 853, 'n_words': 179}