<commit_before>'use strict';


var extend = require('extend');
var util = require("util");
var events = require("events");

var DEFAULTS = {
    autoinitialize: true,
    config: {
        port: process.env.PORT || 9000,
        host: 'localhost',
        root: process.cwd(),
        ignore: [],
        moduleIds: {
        	environment:'environment',
        	routes:'routes',
        	middleware:'middleware',
        	sockets:'sockets'
        },
        mountPath: '',
        staticDir: 'public',
        defaultMiddleware:true
    }
};

var Anden = function(options) {
	events.EventEmitter.call(this);
    options = extend({}, this.constructor.DEFAULTS, options);
    if (options.autoinitialize) this.init(options);
};

util.inherits(Anden, events.EventEmitter);

Anden.DEFAULTS = DEFAULTS;

Anden.prototype.init = function(options) {
    if (this.initialized) return;
    this.initialized = true;
    extend(this, this.constructor.DEFAULTS, options);

    //Run core modules
    require('./lib/core')(this);

    this.emit('postinit');
};

Anden.prototype.run = function(config) {
    extend(this.config, config || {});
    this.logger.log('START!', this.config);

    this.app.run();
};

Anden.prototype.logger = console;

module.exports = Anden;<commit_msg>removed Anded definition from index<commit_after>'use strict';

module.exports = require('./lib/anden');
{'fraction_non_alphanumeric': 0.15451895043731778, 'fraction_numerical': 0.0029154518950437317, 'mean_word_length': 3.1732522796352582, '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': '5943665', 'n_tokens_mistral': 418, 'n_tokens_neox': 422, 'n_words': 81}