<commit_before>/**
 * Configuration variables (mainly environment variables);
 */

module.exports = () => {
    return {
        test: process.env.NODE_ENV === 'test',
        debug: process.env.NODE_ENV !== 'production',
        debugSql: process.env.SQLDEBUGGER === 'true',
        mysqlUri: process.env.NODE_ENV === 'test'
            ? process.env.MYSQL_URI_TEST
            : process.env.MYSQL_URI,
        webUrl: process.env.WEB_URL,
        user: {
            hashSalt: process.env.USER_HASH_SALT,
            banTime: parseFloat(process.env.IP_BAN_TIME || 300, 10) * 1000,
            banLimit: parseFloat(process.env.IP_BAN_LIMIT || 60, 10) * 1000,
            banTries: parseInt(process.env.IP_BAN_TRIES || 5, 10)
        },
        msg: {
            unknownApiEndpoint: 'Unknown API endpoint',
            errorServerDb: 'Unknown database error',
            errorLoginBad: 'Bad PIN',
            errorIpBanned: 'Banned',
            errorNotAuthorized: 'You need to authenticate to do that',
            errorBadAuthorization: 'Bad authentication token'
        },
        data: {
            listCategories: ['funds', 'income', 'bills', 'food', 'general', 'holiday', 'social'],
            currencyUnit: '£',
            columnMapExtra: {
                funds: {
                    transactions: 't'
                },
                income: {},
                bills: {},
                food: {
                    category: 'k',<commit_msg>Default values for env vars<commit_after>/**
 * Configuration variables (mainly environment variables);
 */

module.exports = () => {
    return {
        test: process.env.NODE_ENV === 'test',
        debug: process.env.NODE_ENV !== 'production',
        debugSql: process.env.SQLDEBUGGER === 'true',
        mysqlUri: process.env.NODE_ENV === 'test'
            ? process.env.MYSQL_URI_TEST
            : process.env.MYSQL_URI,
        webUrl: process.env.WEB_URL || '',
        user: {
            hashSalt: process.env.USER_HASH_SALT || '',
            banTime: parseFloat(process.env.IP_BAN_TIME || 300, 10) * 1000,
            banLimit: parseFloat(process.env.IP_BAN_LIMIT || 60, 10) * 1000,
            banTries: parseInt(process.env.IP_BAN_TRIES || 5, 10)
        },
        msg: {
            unknownApiEndpoint: 'Unknown API endpoint',
            errorServerDb: 'Unknown database error',
            errorLoginBad: 'Bad PIN',
            errorIpBanned: 'Banned',
            errorNotAuthorized: 'You need to authenticate to do that',
            errorBadAuthorization: 'Bad authentication token'
        },
        data: {
            listCategories: ['funds', 'income', 'bills', 'food', 'general', 'holiday', 'social'],
            currencyUnit: '£',
            columnMapExtra: {
                funds: {
                    transactions: 't'
                },
                income: {},
                bills: {},
                food: {
                    category: 'k',
{'fraction_non_alphanumeric': 0.12677966101694915, 'fraction_numerical': 0.013559322033898305, 'mean_word_length': 1.7761053621825023, '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': '5957511', 'n_tokens_mistral': 875, 'n_tokens_neox': 828, 'n_words': 177}