<commit_before>'use strict';

const Model = use('Model');

class User extends Model {
  static boot () {
    super.boot();

    /**
     * A hook to bash the user password before saving
     * it to the database.
     *
     * Look at `app/Models/Hooks/User.js` file to
     * check the hashPassword method
     */
    this.addHook('beforeCreate', 'User.hashPassword');
  }

  /**
   * A relationship on tokens is required for auth to
   * work. Since features like `refreshTokens` or
   * `rememberToken` will be saved inside the
   * tokens table.
   *
   * @method tokens
   *
   * @return {Object}
   */
  tokens () {
    return this.hasMany('App/Models/Token');
  }

  posts () {
    return this.hasMany('App/Models/BlogPost');
  }
}

module.exports = User;
<commit_msg>Little change to deploy.<commit_after>'use strict';

const Model = use('Model');

class User extends Model {
  static boot () {
    super.boot();

    /**
     * A hook to bash the user password before saving
     * it to the database.
     *
     * Look at `app/Models/Hooks/User.js` file to
     * check the hashPassword method.
     */
    this.addHook('beforeCreate', 'User.hashPassword');
  }

  /**
   * A relationship on tokens is required for auth to
   * work. Since features like `refreshTokens` or
   * `rememberToken` will be saved inside the
   * tokens table.
   *
   * @method tokens
   *
   * @return {Object}
   */
  tokens () {
    return this.hasMany('App/Models/Token');
  }

  posts () {
    return this.hasMany('App/Models/BlogPost');
  }
}

module.exports = User;

{'fraction_non_alphanumeric': 0.12804097311139565, 'fraction_numerical': 0.0, 'mean_word_length': 2.52027027027027, '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': '4395243', 'n_tokens_mistral': 496, 'n_tokens_neox': 484, 'n_words': 145}