<commit_before>#!/usr/bin/env node

const program = require('commander');

program
	.version(require('../package.json').version)
	.usage('[options]')
	.option('-a, --advanced', 'Show advanced informations')
	.option('-t, --table', 'Show output as a table')
	.option('-h, --host [host]', 'The HOST, default to "localhost"')
	.option('-p, --port [port]', 'The PORT, default to "4223"')
	.parse(process.argv);

if (program.port >= 0 && program.port < 65536) {
	require('../src/connected.js').list(program.host, program.port, program.advanced, program.table);
} else {
	console.error('\nPlease check your inserted PORT\n');
	process.exit(1);
}
<commit_msg>fix issue with default port<commit_after>#!/usr/bin/env node

const program = require('commander');

program
	.version(require('../package.json').version)
	.usage('[options]')
	.option('-a, --advanced', 'Show advanced informations')
	.option('-t, --table', 'Show output as a table')
	.option('-h, --host [host]', 'The HOST, default to "localhost"')
	.option('-p, --port [port]', 'The PORT, default to "4223"')
	.parse(process.argv);

if (!program.port || (program.port >= 0 && program.port < 65536)) {
	require('../src/connected').list(program.host, program.port, program.advanced, program.table);
} else {
	console.error('\nPlease check your inserted PORT\n');
	process.exit(1);
}

{'fraction_non_alphanumeric': 0.2151424287856072, 'fraction_numerical': 0.01649175412293853, 'mean_word_length': 4.493827160493828, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7348294', 'n_tokens_mistral': 474, 'n_tokens_neox': 455, 'n_words': 111}