<commit_before>//应用配置文件
//Author: minghe <<EMAIL>>

var path = require('path');
var local = require('./local');
var _ = require('../base/util');
var config = {
    title:'apebook 猿书 程序员的图书馆',
    appName: 'apebook',
    //端口号配置
    port: 8080,
    host: 'http://apebook.org/',
    coverHost:'//cover.apebook.org/',
    //书籍地址
    bookHost:'//book.apebook.org',
    assetHost:'//a.apebook.org',
    //kissy 静态资源的包配置
    kissyPkg: 'http://a.apebook.org',
    //是否开启调试，调试的情况下会输出错误信息
    debug: true,
    // 是否开启快照
    snapshot: true,
    //redis数据库连接配置
    redis:{
        host: 'localhost',
        port: 7777
    },
    //github配置
    github:{
        clientID: '1f70a5a2b666fc22b5c0',
        clientSecret: 'xxxx',
        callbackURL: 'http://www.apebook.org/github/callback',
        scope: ['user','public_repo','admin:repo_hook','admin:org_hook','read:org'],
        userKey: 'github_user',
        timeout: 50000
    },
    //触发github授权的路由
    githubPath:'/github/auth?redirect_uri=',
    //邮箱配置
    //http://submail.cn/
    mail:{
        appid: '10815',
        appkey: 'xxxx',
        signtype: 'normal',
        from:'<EMAIL>'
    },
    //邮箱模板
    mailProject:{
        //注册用户使用的激活邮箱
        join:'v07Wj'
    },
    //模板所在的目录
    viewDir: path.join(__dirname,'..','view'),
    logDir: path.join(__dirname,'..', 'log'),<commit_msg>二分钟超时<commit_after>//应用配置文件
//Author: minghe <<EMAIL>>

var path = require('path');
var local = require('./local');
var _ = require('../base/util');
var config = {
    title:'apebook 猿书 程序员的图书馆',
    appName: 'apebook',
    //端口号配置
    port: 8080,
    host: 'http://apebook.org/',
    coverHost:'//cover.apebook.org/',
    //书籍地址
    bookHost:'//book.apebook.org',
    assetHost:'//a.apebook.org',
    //kissy 静态资源的包配置
    kissyPkg: 'http://a.apebook.org',
    //是否开启调试，调试的情况下会输出错误信息
    debug: true,
    // 是否开启快照
    snapshot: true,
    //redis数据库连接配置
    redis:{
        host: 'localhost',
        port: 7777
    },
    //github配置
    github:{
        clientID: '1f70a5a2b666fc22b5c0',
        clientSecret: 'xxxx',
        callbackURL: 'http://www.apebook.org/github/callback',
        scope: ['user','public_repo','admin:repo_hook','admin:org_hook','read:org'],
        userKey: 'github_user',
        timeout: 120000
    },
    //触发github授权的路由
    githubPath:'/github/auth?redirect_uri=',
    //邮箱配置
    //http://submail.cn/
    mail:{
        appid: '10815',
        appkey: 'xxxx',
        signtype: 'normal',
        from:'<EMAIL>'
    },
    //邮箱模板
    mailProject:{
        //注册用户使用的激活邮箱
        join:'v07Wj'
    },
    //模板所在的目录
    viewDir: path.join(__dirname,'..','view'),
    logDir: path.join(__dirname,'..', 'log'),
{'fraction_non_alphanumeric': 0.18481107369996258, 'fraction_numerical': 0.024317246539468762, 'mean_word_length': 2.25700365408039, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5346368', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1173, 'n_words': 159}