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

const { Component, computed, inject } = Ember;
const { service } = inject;
const { PromiseArray } = DS;

export default Component.extend({
  init() {
    this._super(...arguments);

    const fromTimeStamp = moment().hour(0).minute(0).unix();
    const toTimeStamp = moment().hour(23).minute(59).add(30, 'days').unix();

    this.setProperties({ fromTimeStamp, toTimeStamp });
  },

  classNames: ['dashboard-agenda'],

  userEvents: service(),

  weeksEvents: computed('fromTimeStamp', 'toTimeStamp', function() {
    const from = this.get('fromTimeStamp');
    const to = this.get('toTimeStamp');

    return PromiseArray.create({
      promise: this.get('userEvents').getEvents(from, to)
    });
  }),<commit_msg>increased date range from 30 to 60 days in agenda.<commit_after>import moment from 'moment';
import Ember from 'ember';
import DS from 'ember-data';

const { Component, computed, inject } = Ember;
const { service } = inject;
const { PromiseArray } = DS;

export default Component.extend({
  /**
   * Days in advance of the current date.
   * @property daysInAdvance
   * @type int
   * @public
   */
  daysInAdvance: 60,

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

    const fromTimeStamp = moment().hour(0).minute(0).unix();
    const toTimeStamp = moment().hour(23).minute(59).add(this.daysInAdvance, 'days').unix();

    this.setProperties({ fromTimeStamp, toTimeStamp });
  },

  classNames: ['dashboard-agenda'],

  userEvents: service(),

  weeksEvents: computed('fromTimeStamp', 'toTimeStamp', function() {
    const from = this.get('fromTimeStamp');
    const to = this.get('toTimeStamp');

    return PromiseArray.create({
      promise: this.get('userEvents').getEvents(from, to)
    });
  }),
{'fraction_non_alphanumeric': 0.15879120879120878, 'fraction_numerical': 0.01098901098901099, 'mean_word_length': 4.044321329639889, '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': '7371366', 'n_tokens_mistral': 591, 'n_tokens_neox': 569, 'n_words': 137}