<commit_before>/**
 * Created by chrisvm on 12/27/15.
 */
var path = require('path'),
    types = require('./byte_types');

function TypeAddon() {
    this.types = [];
};
TypeAddon.constructor = TypeAddon;

TypeAddon.prototype.add = function (key, type) {
    if (typeof(type) == 'string') {
        if (types.keys().indexOf(type) != 0) {
            type = types[type];
        }
    }
    this.types.append(type);
    return this;
};

function Re<commit_msg>definition configuring<commit_after>/**
 * Created by chrisvm on 12/27/15.
 */
var path = require('path'),
    types = require('./byte_types'),
    _ = require('underscore');


function ByteDef() {
    this.defs = {};
}
ByteDef.constructor = ByteDef;

ByteDef.prototype.definition = function (name, def) {
    // iterate throught the keys of the def
    this.defs[name] = _.mapObject(def, function (val, key) {
        // get type
        if (_.has(types, ))
    });
};
{'fraction_non_alphanumeric': 0.1689989235737352, 'fraction_numerical': 0.013993541442411194, 'mean_word_length': 2.8114754098360657, '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': '2186364', 'n_tokens_mistral': 315, 'n_tokens_neox': 302, 'n_words': 70}