<commit_before>/**
 * Created by Obscurity on 2016/5/2.
 */

var database = require('../model').loader;



(function () {
    (function connectDb(){
        require('mongoose').connect(require('../config/config')().mongodb, {
            server: {
                poolSize: 12,
                socketOptions: {
                    keepAlive: 1
                }
            }
        });
    })();
    var User = database.models.user;
    var user = new User();
    user.username = "HeavenDuke";
    user.password = "<PASSWORD>";
    user.save();
    console.log('finish deploying database seed.');
})();<commit_msg>完成初始化脚本<commit_after>/**
 * Created by Obscurity on 2016/5/2.
 */

var database = require('../model').loader;

var init = function () {
    var mongoose = require('mongoose');
    mongoose.connect(require('../config/config')().mongodb);
    var User = database.models.user;
    var user = new User();
    user.username = "HeavenDuke";
    user.password = "<PASSWORD>";
    user.save();
    console.log('finish deploying database seed.');
    mongoose.disconnect();
};

init();
{'fraction_non_alphanumeric': 0.17307692307692307, 'fraction_numerical': 0.013736263736263736, 'mean_word_length': 2.3221884498480243, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1299343', 'n_tokens_mistral': 344, 'n_tokens_neox': 332, 'n_words': 69}