<commit_before>///Copyright 2012 Telefonica Investigación y Desarrollo, S.A.U
//
//This file is part of RUSH.
//

/*
 RUSH 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.
 RUSH 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 RUSH. If not, seehttp://www.gnu.org/licenses/.

 For those usages not covered by the GNU Affero General Public License please contact with::<EMAIL>
*/



var dir_prefix = process.env.RUSH_DIR_PREFIX || '';
/*
 Hostname.
 name of Rush instance host. DO NOT TOUCH!!!
 */
var HOSTNAME = require('os').hostname();



/*
 LOGGER CONFIGURATION
 ====================
 Levels for logger:
 debug
 warning
 error
 @type {String}
 */



//Create Object container for further options. Do not touch!
exports.consumer = {};

/*
 Consumer logger parameters
 */

//Create Object container for further options. Do not touch!
exports.consumer.logger = {};


/*
 Loglevel.
 Verbosity level for the consumer log
 */
exports.consumer.logger.logLevel = 'error';


/*
 InspectDepth.
 Level of depth an object will be inspected for the log.
 */
exports.consumer.logger.inspectDepth = 1;


/*
 Console.
 Verbosity level for the consumer console log
 */
exports.consumer.logger.Console = {
	level: 'debug',
	timestamp: true
};

/*
 Limit the number of characters of the retrieved target body in logs
 */

exports.consumer.logger.prefixBody = 50;


/*
 File.
 Verbosity level, filename, size and max number of files for the consumer file log
 */
exports.consumer.logger.File = {
	level: 'debug',
	filename: 'Rush_consumer_' + HOSTNAME + '.log',
	timestamp: true,
	json: false,
	maxsize: 1024 * 1024, maxFiles: 3
};

//Create Object container for further options. Do not touch!
exports.listener = {};


//Create Object container for further options. Do not touch!
exports.listener.logger = {};


/*
 Loglevel.
 Verbosity level for the consumer log
 */
exports.listener.logger.logLevel = 'error';


/*
 InspectDepth.
 Level of depth an object will be inspected for the log.
 */
exports.listener.logger.inspectDepth = 1;



/*
 Console.
 Verbosity level for the listener console (STD)
 */
exports.listener.logger.Console = {
	level: 'debug',
	timestamp: true
};


/*
 File.
 Verbosity level, filename, size and max number of files for the consumer file log
 */
exports.listener.logger.File = {
	level: 'debug',
	filename: 'Rush_listener_' + HOSTNAME + '.log',
	timestamp: true,
	json: false,
	maxsize: 1024 * 1024, maxFiles: 3
};


/* REDIS CONFIGURATION
 ======================
 Redis database to be used by this instance of Rush.
 Each Redis provides 16 DataBases.
 Use 0 by default
 */
exports.selectedDB = 0;

/*
 States the max memory that will be used at Redis before STOP pushing new tasks
 Usually a percetage of Redis Total memory
 it will be used in order to limit the size of the task queue.
 */
exports.redisMaxMemory=463260016*10;

/*
 Parameter used to stablish an extension namespace at Redis. DO NOT TOUCH!!!!.
 */
exports.dbrelayer = {keyPrefix: 'wrH:'};

/*
 Aux Redis host.
 Just used if the “sentinels” property is empty. Allow non HA Redis configurations
 */


/*
 Establish the DB where the requests queue will be located
 */
exports.queue = {redisHost:'localhost', redisPort:6379};


/*
 Establish the default expiration time in Redis (inteval-seconds) for the persistence policy
 */
exports.expireTime = 60 * 60;


/*
 HIGH AVAILABILITY CONFIGURATION<commit_msg>Improvement over config doc: exports.redisMaxMemory<commit_after>///Copyright 2012 Telefonica Investigación y Desarrollo, S.A.U
//
//This file is part of RUSH.
//

/*
 RUSH 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.
 RUSH 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 RUSH. If not, seehttp://www.gnu.org/licenses/.

 For those usages not covered by the GNU Affero General Public License please contact with::<EMAIL>
*/



var dir_prefix = process.env.RUSH_DIR_PREFIX || '';
/*
 Hostname.
 name of Rush instance host. DO NOT TOUCH!!!
 */
var HOSTNAME = require('os').hostname();



/*
 LOGGER CONFIGURATION
 ====================
 Levels for logger:
 debug
 warning
 error
 @type {String}
 */



//Create Object container for further options. Do not touch!
exports.consumer = {};

/*
 Consumer logger parameters
 */

//Create Object container for further options. Do not touch!
exports.consumer.logger = {};


/*
 Loglevel.
 Verbosity level for the consumer log
 */
exports.consumer.logger.logLevel = 'error';


/*
 InspectDepth.
 Level of depth an object will be inspected for the log.
 */
exports.consumer.logger.inspectDepth = 1;


/*
 Console.
 Verbosity level for the consumer console log
 */
exports.consumer.logger.Console = {
	level: 'debug',
	timestamp: true
};

/*
 Limit the number of characters of the retrieved target body in logs
 */

exports.consumer.logger.prefixBody = 50;


/*
 File.
 Verbosity level, filename, size and max number of files for the consumer file log
 */
exports.consumer.logger.File = {
	level: 'debug',
	filename: 'Rush_consumer_' + HOSTNAME + '.log',
	timestamp: true,
	json: false,
	maxsize: 1024 * 1024, maxFiles: 3
};

//Create Object container for further options. Do not touch!
exports.listener = {};


//Create Object container for further options. Do not touch!
exports.listener.logger = {};


/*
 Loglevel.
 Verbosity level for the consumer log
 */
exports.listener.logger.logLevel = 'error';


/*
 InspectDepth.
 Level of depth an object will be inspected for the log.
 */
exports.listener.logger.inspectDepth = 1;



/*
 Console.
 Verbosity level for the listener console (STD)
 */
exports.listener.logger.Console = {
	level: 'debug',
	timestamp: true
};


/*
 File.
 Verbosity level, filename, size and max number of files for the consumer file log
 */
exports.listener.logger.File = {
	level: 'debug',
	filename: 'Rush_listener_' + HOSTNAME + '.log',
	timestamp: true,
	json: false,
	maxsize: 1024 * 1024, maxFiles: 3
};


/* REDIS CONFIGURATION
 ======================
 Redis database to be used by this instance of Rush.
 Each Redis provides 16 DataBases.
 Use 0 by default
 */
exports.selectedDB = 0;

/*
 States the max memory that will be used at Redis before STOP pushing new tasks
 Usually a percentage of Redis Total memory (It includes Queue + Persistence)
 it will be used in order to limit the size of the task queue.
 It do not avoid to fulfill the whole Redis Mem (just make it less probable)
 */
exports.redisMaxMemory=463260016*10;

/*
 Parameter used to stablish an extension namespace at Redis. DO NOT TOUCH!!!!.
 */
exports.dbrelayer = {keyPrefix: 'wrH:'};

/*
 Aux Redis host.
 Just used if the “sentinels” property is empty. Allow non HA Redis configurations
 */


/*
 Establish the DB where the requests queue will be located
 */
exports.queue = {redisHost:'localhost', redisPort:6379};


/*
 Establish the default expiration time in Redis (inteval-seconds) for the persistence policy
 */
exports.expireTime = 60 * 60;


/*
 HIGH AVAILABILITY CONFIGURATION
{'fraction_non_alphanumeric': 0.10225236754543128, 'fraction_numerical': 0.012797542871768621, 'mean_word_length': 3.7623400365630713, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '574999', 'n_tokens_mistral': 2374, 'n_tokens_neox': 2202, 'n_words': 950}