<commit_before>var express = require('express');
var site = require('../api/site');
var post = require('../api/post');
var guestbook = require('../api/guestbook');
var comment = require('../api/comment');
var about = require('../api/about');

//请求速率控制
var RateLimit = require('../middlewares/rate-limit');
//配置文件
var config = require('/config');

var router = express.Router();

/********************************初始化首页数据包括网站头部和底部*************************/

router.get('/init', site.initData);

/***************************************首页-文章列表**********************************/

var commentLimit = new RateLimit({
    errorMsg: '你今天已经到达最大的评论次数，谢谢你对本博客的支持！',
    limitCount: config.max_comment_per_day,<commit_msg>fix config.js cannot find in linux<commit_after>var express = require('express');
var site = require('../api/site');
var post = require('../api/post');
var guestbook = require('../api/guestbook');
var comment = require('../api/comment');
var about = require('../api/about');

//请求速率控制
var RateLimit = require('../middlewares/rate-limit');
//配置文件
var config = require('./config');

var router = express.Router();

/********************************初始化首页数据包括网站头部和底部*************************/

router.get('/init', site.initData);

/***************************************首页-文章列表**********************************/

var commentLimit = new RateLimit({
    errorMsg: '你今天已经到达最大的评论次数，谢谢你对本博客的支持！',
    limitCount: config.max_comment_per_day,
{'fraction_non_alphanumeric': 0.3365650969529086, 'fraction_numerical': 0.0, 'mean_word_length': 5.689814814814815, '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': '2601294', 'n_tokens_mistral': 473, 'n_tokens_neox': 505, 'n_words': 87}