<commit_before>"use strict";

var express = require('express')
	 , StatCtrl = require('../../controller/stat')
  // , UserCtrl = require('../../controller/user')
  // , UniversityCtrl = require('../../controller/university')
  // , PostCtrl = require('../../controller/post')
  // , CommentCtrl = require('../../controller/comment')
  // , config = require('../../../config/config')
  ;

var stat = express();

stat.get('/stats/users', StatCtrl.getUserStat);

stat.get('/stats/universities', StatCtrl.getUnivStat);

stat.get('/stats/posts', function () {
  
});

stat.get('/stats/comments', function () {
  
});

module.exports = stat;<commit_msg>added api doc for stat<commit_after>"use strict";

var express = require('express')
	 , StatCtrl = require('../../controller/stat')
  // , UserCtrl = require('../../controller/user')
  // , UniversityCtrl = require('../../controller/university')
  // , PostCtrl = require('../../controller/post')
  // , CommentCtrl = require('../../controller/comment')
  // , config = require('../../../config/config')
  ;

var stat = express();

/**
 * @api {get} /stats/users Fetch number of total users
 * @apiName GetUserStat
 * @apiGroup Stat
 *
 *
 * @apiUse SuccessCode
 *
 * @apiUse CouldNotFetchCount
 */
stat.get('/stats/users', StatCtrl.getUserStat);

/**
 * @api {get} /stats/users Fetch number of total users
 * @apiName GetUserStat
 * @apiGroup Stat
 *
 *
 * @apiUse SuccessCode
 *
 * @apiUse CouldNotFetchCount
 */
stat.get('/stats/universities', StatCtrl.getUnivStat);

stat.get('/stats/posts', function () {
  
});

stat.get('/stats/comments', function () {
  
});

module.exports = stat;
{'fraction_non_alphanumeric': 0.21747098350641417, 'fraction_numerical': 0.0, 'mean_word_length': 3.210796915167095, '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': '2600934', 'n_tokens_mistral': 503, 'n_tokens_neox': 501, 'n_words': 95}