<commit_before><commit_msg>introduces configubot to manage the config files<commit_after>// Requires
var yaml = require('js-yaml'),
    fs   = require('fs');

// Constructor
function Configubot (cb) {
    try {
        this.configFile = yaml.safeLoad(fs.readFileSync('wpkit.yml', 'utf8'), {
            filename: 'wpkit.yml',
            schema: yaml.JSON_SCHEMA
        });

    } catch (err) {
        cb(err);
    }

    return this;
};

Configubot.prototype.set = function (key, value) {
    this.configFile[key] = value;
    return this;
};

Configubot.prototype.get = function (key, stage) {
    if (stage) {
        return this.configFile[stage][key];
    } else {
        return this.configFile[key];
    }
};

module.exports = Configubot;
{'fraction_non_alphanumeric': 0.14190093708165996, 'fraction_numerical': 0.0013386880856760374, 'mean_word_length': 2.6310679611650487, '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': '3170972', 'n_tokens_mistral': 251, 'n_tokens_neox': 237, 'n_words': 51}