<commit_before>const Hapi = require( 'hapi' );
const Log = require( './methods/log' );

const port = process.env.PPORT || process.env.pport || 8000;

const server = new Hapi.Server();
server.connection( {
    port: port
} );

server.register( require( 'inert' ), ( err ) => {
    if ( err ) throw err;
} );

server.start( ( err ) => {

    if ( err ) throw err;
    Log( 'HAPI server listening on', server.info.uri + '\n', server.info );

} );

module.exports = server;


server.route( {
    path: '/_healthCheck',
    method: '*',
    handler: ( req, res ) => {
        res( "I'm alive" );
    }
} )
<commit_msg>add hostname in healthcheck<commit_after>const Hapi = require( 'hapi' );
const Log = require( './methods/log' );

const port = process.env.PPORT || process.env.pport || 8000;

const server = new Hapi.Server();
server.connection( {
    port: port
} );

server.register( require( 'inert' ), ( err ) => {
    if ( err ) throw err;
} );

server.start( ( err ) => {

    if ( err ) throw err;
    Log( 'HAPI server listening on', server.info.uri + '\n', server.info );

} );

module.exports = server;


server.route( {
    path: '/_healthCheck',
    method: '*',
    handler: ( req, res ) => {
        res( "I'm alive @ " + os.hostname() );
    }
} );

{'fraction_non_alphanumeric': 0.19047619047619047, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 2.7867867867867866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6291399', 'n_tokens_mistral': 454, 'n_tokens_neox': 436, 'n_words': 112}