<commit_before>/*
 * hadtodo is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * hadtodo is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with hadtodo.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Config stuff
 */

'use strict';

/**
 * Main configuration object
 * @typedef {{server}} Config
 */
var config = {};

/**
 * Server configuration object
 * @typedef {{host, port, logsPath}} ConfigServer
 */
config.server = {};
/**
 * An address where the server should run,
 * by default uses environment variable 'HOST'
 * or if not set: '0.0.0.0'
 * @type {string} [host='0.0.0.0']
 */
config.server.host = process.env.HOST || '0.0.0.0';
/**
 * A port on which the server should be established,
 * by default uses environment varialbe 'PORT'
 * or if not set: 6000
 * @type {number} [port=6000]
 */
config.server.port = process.env.PORT || 3000;
/**
 * A path to the logs file
 * @type {string} [logsPath='./logs/server.log']
 */
config.server.logsPath = './logs/server.log';

/**
 * MongoDB configuration object
 * @typedef {{url}}
 */
config.mongodb = {};
/**
 * MongoDB address
 * The url can include user:password to authenticate
 * @type {string} [url='mongodb://0.0.0.0:27017']
 */
config.mongodb.url = 'mongodb://0.0.0.0:27017';
<commit_msg>config: Update documentation for server port<commit_after>/*
 * hadtodo is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * hadtodo is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with hadtodo.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Config stuff
 */

'use strict';

/**
 * Main configuration object
 * @typedef {{server}} Config
 */
var config = {};

/**
 * Server configuration object
 * @typedef {{host, port, logsPath}} ConfigServer
 */
config.server = {};
/**
 * An address where the server should run,
 * by default uses environment variable 'HOST'
 * or if not set: '0.0.0.0'
 * @type {string} [host='0.0.0.0']
 */
config.server.host = process.env.HOST || '0.0.0.0';
/**
 * A port on which the server should be established,
 * by default uses environment varialbe 'PORT'
 * or if not set: 3000
 * @type {number} [port=3000]
 */
config.server.port = process.env.PORT || 3000;
/**
 * A path to the logs file
 * @type {string} [logsPath='./logs/server.log']
 */
config.server.logsPath = './logs/server.log';

/**
 * MongoDB configuration object
 * @typedef {{url}}
 */
config.mongodb = {};
/**
 * MongoDB address
 * The url can include user:password to authenticate
 * @type {string} [url='mongodb://0.0.0.0:27017']
 */
config.mongodb.url = 'mongodb://0.0.0.0:27017';

{'fraction_non_alphanumeric': 0.1359862582307472, 'fraction_numerical': 0.024620669911251072, 'mean_word_length': 3.5376623376623377, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 10, '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': '4464703', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1045, 'n_words': 409}