<commit_before>'use strict';
var fs = require('fs')

var config = require('../../config')


/**
 * Home Page
 * @param {object} req
 * @param {object} res
 */
exports.index = function(req,res){
  res.render('index',{
    logContent: fs.readFileSync(config.ckpool.logFile)
  })
}<commit_msg>use tail to read the file, dirty<commit_after>'use strict';
var cp = require('child_process')

var config = require('../../config')


/**
 * Home Page
 * @param {object} req
 * @param {object} res
 */
exports.index = function(req,res){
  res.render('index',{
    logContent: ep.execSync('tail -n 10 ' + config.ckpool.logFile)
  })
}
{'fraction_non_alphanumeric': 0.19131832797427653, 'fraction_numerical': 0.003215434083601286, 'mean_word_length': 3.8294573643410854, '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': '3177538', 'n_tokens_mistral': 215, 'n_tokens_neox': 209, 'n_words': 51}