<commit_before>/**
 * Created by chriscai on 2015/1/15.
 */


var BusinessService = require('../../service/BusinessService'),
    _ = require('underscore'),
    StatisticsService = require('../../service/StatisticsService'),
    compassService = require('../../service/compassService');

var log4js = require('log4js'),
    logger = log4js.getLogger();


function formateTime(time) {
    var DateObj = new Date(time),
        year = DateObj.getFullYear(),
        month = DateObj.getMonth() - -1,
        date = DateObj.getDate() - 0;
    return year + (month > 9 ? month : 0 + '' + month) + (date > 9 ? date : 0 + '' + date);
}

var StatisticsAction = {


    index: function (param, req, res) {
        var params = req.query,
            user = req.session.user;
<commit_msg>fixed bug formateTime mast be string<commit_after>/**
 * Created by chriscai on 2015/1/15.
 */


var BusinessService = require('../../service/BusinessService'),
    _ = require('underscore'),
    StatisticsService = require('../../service/StatisticsService'),
    compassService = require('../../service/compassService');

var log4js = require('log4js'),
    logger = log4js.getLogger();


function formateTime(time) {
    var DateObj = new Date(time),
        year = DateObj.getFullYear(),
        month = DateObj.getMonth() - -1,
        date = DateObj.getDate() - 0;
    return year + (month > 9 ? month + '': 0 + '' + month) + (date > 9 ? date + '' : 0 + '' + date);
}

var StatisticsAction = {


    index: function (param, req, res) {
        var params = req.query,
            user = req.session.user;

{'fraction_non_alphanumeric': 0.16750629722921914, 'fraction_numerical': 0.020151133501259445, 'mean_word_length': 2.6867749419953597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1196906', 'n_tokens_mistral': 508, 'n_tokens_neox': 473, 'n_words': 119}