<commit_before>'use strict';

let Base = require('../base/Base');

module.exports = class Message extends Base {

    constructor (category, message, params, language) {
        super({category, message, params, language});
    }

    addParams (addon) {
        this.params = Object.assign(this.params || {}, addon);
    }
};

let I18n = require('./I18n');<commit_msg>Add return self to Message after add params<commit_after>'use strict';

let Base = require('../base/Base');

module.exports = class Message extends Base {

    constructor (category, message, params, language) {
        super({category, message, params, language});
    }

    addParams (addon) {
        this.params = Object.assign(this.params || {}, addon);
        return this;
    }
};

let I18n = require('./I18n');
{'fraction_non_alphanumeric': 0.15335868187579213, 'fraction_numerical': 0.010139416983523447, 'mean_word_length': 3.202127659574468, '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': '3573237', 'n_tokens_mistral': 235, 'n_tokens_neox': 226, 'n_words': 62}