<commit_before>'use strict';
/**
 * Implementation of API /status endpoint.
 * @module status
 */
const path = require('path');
const pck = require(path.join(__dirname, '..', '..', 'package.json'));
const moment = require('moment');
const config = require('config');

/**
 * Set up /status endpoint.
 * @param  {Object} router A Koa router
 */
module.exports = function(router) {
  /**
   * GET /status
   *
   * Returns a simple description of the deployed
   * application. Useful for smoke tests and ping.
   */
  router.get('/status', (ctx) => {
    ctx.status = 200;
    ctx.body = {
      success: true,
      name: pck.name,
      version: pck.version,
      env: config.get('env'),
      timestamp: moment().format('lll'),
      process: {
        pid: process.pid,
        platform: process.platform,
        mem: process.memoryUsage()
      }
    };
  });
};<commit_msg>Fix status test<commit_after>'use strict';
/**
 * Implementation of API /status endpoint.
 * @module status
 */
const path = require('path');
const pck = require(path.join(__dirname, '..', '..', 'package.json'));
const moment = require('moment');
const config = require('config');

/**
 * Set up /status endpoint.
 * @param  {Object} router A Koa router
 */
module.exports = function(router) {
  /**
   * GET /status
   *
   * Returns a simple description of the deployed
   * application. Useful for smoke tests and ping.
   */
  router.get('/status', (ctx) => {
    ctx.status = 200;
    ctx.body = {
      success: true,
      name: pck.name,
      version: pck.version,
      env: config.get('environment'),
      timestamp: moment().format('lll'),
      process: {
        pid: process.pid,
        platform: process.platform,
        mem: process.memoryUsage()
      }
    };
  });
};
{'fraction_non_alphanumeric': 0.1638418079096045, 'fraction_numerical': 0.003389830508474576, 'mean_word_length': 2.6515463917525772, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7179470', 'n_tokens_mistral': 543, 'n_tokens_neox': 532, 'n_words': 146}