<commit_before>import Ember from 'ember';
import DS from 'ember-data';

export default DS.Model.extend({
  races: DS.hasMany('race', {async: false}),
  name: DS.attr('string'),
  city: DS.attr('string'),
  state: DS.attr('string', {
    defaultValue: 'AL'
  }),
  country: DS.attr('string', {
    defaultValue: 'US'
  }),
  lat: DS.attr('number'),
  lon: DS.attr('number'),
  // start date (some events are multiple days and will have an end date)
  startTime: DS.attr('number'),
  startDate: Ember.computed('startTime', {
    get() {
      return new Date(this.get('startTime'));
    },
    set(key, value) {
      this.set('startTime', (new Date(value)
        .getTime()));
      return value;
    }
  }),
  endTime: DS.attr('number'),
  endDate: Ember.computed('endTime', {
    get() {
      return new Date(this.get('endTime'));
    },
    set(key, value) {
      this.set('endTime', (new Date(value)<commit_msg>Fix JSCS error<commit_after>import Ember from 'ember';
import DS from 'ember-data';

export default DS.Model.extend({
  races: DS.hasMany('race', { async: false }),
  name: DS.attr('string'),
  city: DS.attr('string'),
  state: DS.attr('string', {
    defaultValue: 'AL'
  }),
  country: DS.attr('string', {
    defaultValue: 'US'
  }),
  lat: DS.attr('number'),
  lon: DS.attr('number'),
  // start date (some events are multiple days and will have an end date)
  startTime: DS.attr('number'),
  startDate: Ember.computed('startTime', {
    get() {
      return new Date(this.get('startTime'));
    },
    set(key, value) {
      this.set('startTime', (new Date(value)
        .getTime()));
      return value;
    }
  }),
  endTime: DS.attr('number'),
  endDate: Ember.computed('endTime', {
    get() {
      return new Date(this.get('endTime'));
    },
    set(key, value) {
      this.set('endTime', (new Date(value)
{'fraction_non_alphanumeric': 0.18726183995645074, 'fraction_numerical': 0.0, 'mean_word_length': 3.2645011600928076, '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': '3053002', 'n_tokens_mistral': 629, 'n_tokens_neox': 628, 'n_words': 147}