<commit_before>/*jshint esversion:6, node:true*/
'use strict';
const extend = require('gextend');

// https://www.npmjs.com/package/data-mask
class Filter {
    constructor(config){
        config = extend({}, Filter.DEFAULTS, config);

        if(config.autoinitialize){
            this.init(config);
        }
    }

    init(config){

        extend(this, config);
    }

    run(message){

    }
}

Filter.DEFAULTS = {
    keywords: {
        password: '*',
        username: 'hash'
    }
};

module.exports = Filter;
<commit_msg>fix doc strings for logger Filter<commit_after>/*jshint esversion:6, node:true*/
'use strict';
const extend = require('gextend');


/** 
 * https://www.npmjs.com/package/data-mask
 * @memberof core/Logger
*/
class Filter {
    constructor(config){
        config = extend({}, Filter.DEFAULTS, config);

        if(config.autoinitialize){
            this.init(config);
        }
    }

    init(config){

        extend(this, config);
    }

    run(message){

    }
}

Filter.DEFAULTS = {
    keywords: {
        password: '*',
        username: 'hash'
    }
};

module.exports = Filter;

{'fraction_non_alphanumeric': 0.15569395017793594, 'fraction_numerical': 0.0017793594306049821, 'mean_word_length': 2.328402366863905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4471324', 'n_tokens_mistral': 370, 'n_tokens_neox': 355, 'n_words': 65}