<commit_before>'use strict';

let Attributes     = require('./Attributes');
let AbstractAction = require('../Action/AbstractAction');

/**
 * Schedule
 *
 * Schedule object
 */
class Schedule {
  /**
   * Constructor
   *
   * @param {Object} attributes Attributes
   */
  constructor(attributes) {
    this.attributes = new Attributes(attributes);
  }

  /**
   * Get schedule id
   *
   * @return {string} Schedule id
   */
  get id() {
    return this.attributes.get('id');
  }

  /**
   * Get name
   *
   * @return {string} Name
   */
  get name() {
    return this.attributes.get('name');
  }

  /**
   * Set name
   *
   * @param {string} name Name
   */
  set name(name) {
    this.attributes.set('name', String(name));
  }
<commit_msg>GitHub #28 - Default autodelete and status<commit_after>'use strict';

let Attributes     = require('./Attributes');
let AbstractAction = require('../Action/AbstractAction');

const DEFAULT_ATTRIBUTES = {
  'status':    'enabled',
  'autodelete': true,
};

/**
 * Schedule
 *
 * Schedule object
 */
class Schedule {
  /**
   * Constructor
   *
   * @param {Object} attributes Attributes
   */
  constructor(attributes) {
    this.attributes = new Attributes(attributes, DEFAULT_ATTRIBUTES);
  }

  /**
   * Get schedule id
   *
   * @return {string} Schedule id
   */
  get id() {
    return this.attributes.get('id');
  }

  /**
   * Get name
   *
   * @return {string} Name
   */
  get name() {
    return this.attributes.get('name');
  }

  /**
   * Set name
   *
   * @param {string} name Name
   */
  set name(name) {
    this.attributes.set('name', String(name));
  }

{'fraction_non_alphanumeric': 0.16131025957972805, 'fraction_numerical': 0.0012360939431396785, 'mean_word_length': 2.581858407079646, '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': '1266714', 'n_tokens_mistral': 531, 'n_tokens_neox': 523, 'n_words': 116}