<commit_before>import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import Ember from 'ember';
import moment from 'moment';
import { LokiJSModelMixin } from 'ember-lokijs';

const {
  computed,
  get
} = Ember;

const { inject: { service } } = Ember;

export default Model.extend(LokiJSModelMixin, {
  isAutosave: attr('boolean'),
  name: attr('string'),
  statePoints: attr(),
  engineId: attr('string'),

  i18n: service(),

  activeState: computed('statePoints.lastObject', {
    get() {
      return get(this, 'statePoints.lastObject');
    }
  }).readOnly(),

  updated: computed('meta.created', 'meta.updated', {
    get() {
      return get(this, 'meta.updated') || get(this, 'meta.created');
    }
  }).readOnly(),

  fullName: computed('name', 'activeState.sceneName', 'updated', {
    get() {
      let name = get(this, 'name') || get(this, 'activeState.sceneName');

      if (get(this, 'isAutosave')) {
        const autoTranslation = get(this, 'i18n').t('affinity-engine.local-save.auto');
<commit_msg>since statePoints are not Ember.A<commit_after>import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import Ember from 'ember';
import moment from 'moment';
import { LokiJSModelMixin } from 'ember-lokijs';

const {
  computed,
  get
} = Ember;

const { inject: { service } } = Ember;

export default Model.extend(LokiJSModelMixin, {
  isAutosave: attr('boolean'),
  name: attr('string'),
  statePoints: attr(),
  engineId: attr('string'),

  i18n: service(),

  activeState: computed('statePoints.[]', {
    get() {
      const statePoints = get(this, 'statePoints');

      return statePoints[statePoints.length - 1];
    }
  }).readOnly(),

  updated: computed('meta.created', 'meta.updated', {
    get() {
      return get(this, 'meta.updated') || get(this, 'meta.created');
    }
  }).readOnly(),

  fullName: computed('name', 'activeState.sceneName', 'updated', {
    get() {
      let name = get(this, 'name') || get(this, 'activeState.sceneName');

      if (get(this, 'isAutosave')) {
        const autoTranslation = get(this, 'i18n').t('affinity-engine.local-save.auto');

{'fraction_non_alphanumeric': 0.17407580720636406, 'fraction_numerical': 0.004211511464670099, 'mean_word_length': 3.972093023255814, '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': '4320902', 'n_tokens_mistral': 717, 'n_tokens_neox': 700, 'n_words': 160}