<commit_before>// dlog.js 0.0.1
// https://github.com/ddo/dlog
// (c) 2014 Ddo <http://ddo.me>

(function() {
    var root = this;

    root.dlog = dlog;

    function dlog(opts) {
        opts = opts ? opts : {};

        //default name = Ddo
        this.setName(opts.name);

        //default level = info
        this.setLevel(opts.level);

        //default font-size = 14
        this.setSize(opts.size);
    }

    dlog.prototype.setName = function(name) {
        this.name = name ? name : 'DLOG';
        return this.name;
    };

    dlog.prototype.setLevel = function(level) {
        this.level = level ? (this.level_map[level] ? level : 'info') : 'info';
        this.level_no = this.level_map[this.level];
        return this.level;
    };

    dlog.prototype.setSize = function(size) {
        this.size = size ? size : 14;
        return this.size;
    };

    dlog.prototype.level_map = {
        trace:  1,
        debug:  2,
        info:   3,
        warn:   4,
        error:  5,
        silent: 6,<commit_msg>comma error<commit_after>// dlog.js 0.0.1
// https://github.com/ddo/dlog
// (c) 2014 Ddo <http://ddo.me>

(function() {
    var root = this;

    root.dlog = dlog;

    function dlog(opts) {
        opts = opts ? opts : {};

        //default name = Ddo
        this.setName(opts.name);

        //default level = info
        this.setLevel(opts.level);

        //default font-size = 14
        this.setSize(opts.size);
    }

    dlog.prototype.setName = function(name) {
        this.name = name ? name : 'DLOG';
        return this.name;
    };

    dlog.prototype.setLevel = function(level) {
        this.level = level ? (this.level_map[level] ? level : 'info') : 'info';
        this.level_no = this.level_map[this.level];
        return this.level;
    };

    dlog.prototype.setSize = function(size) {
        this.size = size ? size : 14;
        return this.size;
    };

    dlog.prototype.level_map = {
        trace:  1,
        debug:  2,
        info:   3,
        warn:   4,
        error:  5,
        silent: 6
{'fraction_non_alphanumeric': 0.14618746964545895, 'fraction_numerical': 0.01651287032540068, 'mean_word_length': 1.7176781002638521, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6750522', 'n_tokens_mistral': 734, 'n_tokens_neox': 697, 'n_words': 144}