<commit_before>var ralMiddleware = require('node-ral').Middleware;
var ral = require('node-ral').RAL;

module.exports.ral = function(app, conf){
    yog.RAL = ral;
    yog.ral = ral;
    //ral初始化由中间件完成
    return function(){
        app.use(ralMiddleware(conf));
    };
};

module.exports.ral.defaultConf = {
    confDir: yog.ROOT_PATH + '/conf/ral',
    logger: require('../log').log.defaultConf
};<commit_msg>添加默认的mock目录<commit_after>var ralMiddleware = require('node-ral').Middleware;
var ral = require('node-ral').RAL;

module.exports.ral = function(app, conf){
    yog.RAL = ral;
    yog.ral = ral;
    //ral初始化由中间件完成
    return function(){
        app.use(ralMiddleware(conf));
    };
};

module.exports.ral.defaultConf = {
    confDir: yog.ROOT_PATH + '/conf/ral',
    mockDir: yog.ROOT_PATH + '/mock',
    logger: require('../log').log.defaultConf
};
{'fraction_non_alphanumeric': 0.175990675990676, 'fraction_numerical': 0.0, 'mean_word_length': 3.3604060913705585, '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': '727943', 'n_tokens_mistral': 319, 'n_tokens_neox': 325, 'n_words': 49}