<commit_before>var gui = require( 'easy-web-app' ) 
var log = require( 'npmlog' )
var MongoClient = require( 'mongodb' ).MongoClient, assert = require( 'assert' )
var dateFormat  = require('dateformat')
var pjson = require('./package.json');

//----------------------------------------------------------------------------
// evaluate arguments
var argv = require('minimist')(process.argv.slice(2));

var mongoHost = 'localhost'
var mongoDB   = 'dashboard'
if ( argv[ 'mongoHost' ] ) { mongoHost = argv[ 'mongoHost' ] }
if ( argv[ 'mongoDB' ]   ) { mongoDB   = argv[ 'mongoDB' ] }
var mongoDbURL  = 'mongodb://'+mongoHost+':27017/'+mongoDB
log.info( 'MongoDB', mongoDbURL )

// ----------------------------------------------------------------------------
// define the GUI  page
var mainPage = gui.init( 'Service Heartbeats', 8888, '/heartbeat' )
mainPage.title = 'Home'
mainPage.addView( 
  { 
  	id:    'ServiceStatus', 
  	title: 'Services', 
  	type:  'pong-easytable', 
  	resourceURL: '/heartbeat/services' 
  }, 
	{
    dataURL:'',
    pollDataSec: "5",
    easyCols:
      [
        'Health=light|5%',
        'Service~Name=name',
        'Check=check',
        'Service~Status=status',
        'Checking~since=started'
      ]
  } 
)
<commit_msg>reduce log<commit_after>var gui = require( 'easy-web-app' ) 
var log = require( 'npmlog' )
var MongoClient = require( 'mongodb' ).MongoClient, assert = require( 'assert' )
var dateFormat  = require('dateformat')
var pjson = require('./package.json');

//----------------------------------------------------------------------------
// evaluate arguments
var argv = require('minimist')(process.argv.slice(2));

var mongoHost = 'localhost'
var mongoDB   = 'dashboard'
if ( argv[ 'mongoHost' ] ) { mongoHost = argv[ 'mongoHost' ] }
if ( argv[ 'mongoDB' ]   ) { mongoDB   = argv[ 'mongoDB' ] }
var mongoDbURL  = 'mongodb://'+mongoHost+':27017/'+mongoDB

// ----------------------------------------------------------------------------
// define the GUI  page
var mainPage = gui.init( 'Service Heartbeats', 8888, '/heartbeat' )
mainPage.title = 'Home'
mainPage.addView( 
  { 
  	id:    'ServiceStatus', 
  	title: 'Services', 
  	type:  'pong-easytable', 
  	resourceURL: '/heartbeat/services' 
  }, 
	{
    dataURL:'',
    pollDataSec: "5",
    easyCols:
      [
        'Health=light|5%',
        'Service~Name=name',
        'Check=check',
        'Service~Status=status',
        'Checking~since=started'
      ]
  } 
)

{'fraction_non_alphanumeric': 0.2727640631323351, 'fraction_numerical': 0.00971266693646297, 'mean_word_length': 2.0109622411693056, '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': '6280332', 'n_tokens_mistral': 835, 'n_tokens_neox': 798, 'n_words': 162}