<commit_before>pkg         = require '../../package.json'
lruCache    = require '../lru'



module.exports = (req, res, next) ->
  # console.log process
  res.send 200,
    status: 'OK'
    ts: req._time
    service: pkg.name
    package: pkg.version
    uptimeSeconds: process.uptime()
    pid: process.pid
    cache:
      bytes: lruCache._length
      items: lruCache._itemCount

  next()
<commit_msg>api/health: removed logging, whitespace<commit_after>pkg         = require '../../package.json'
lruCache    = require '../lru'

module.exports = (req, res, next) ->

  res.send 200,
    status: 'OK'
    ts: req._time
    service: pkg.name
    package: pkg.version
    uptimeSeconds: process.uptime()
    pid: process.pid
    cache:
      bytes: lruCache._length
      items: lruCache._itemCount

  next()

{'fraction_non_alphanumeric': 0.13226205191594562, 'fraction_numerical': 0.007416563658838072, 'mean_word_length': 2.4322033898305087, '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': '5733254', 'n_tokens_mistral': 279, 'n_tokens_neox': 263, 'n_words': 65}