<commit_before>/* global exports, process, require */
/* jshint unused: false */

var config = exports
  , system = null
  , env    = null
  , sugar  = null;

try {
    system = require('system');
    env = system.env;
} catch (ex) {
    env = process.env;
    sugar = require('sugar');
}
    
function getEnv(value, defaultValue) {
    return (typeof value !== 'undefined' && value !== '') ? value : defaultValue;
}

// GOD
config.GOD_ADDRESS = getEnv(env.GOD_ADDRESS, "172.16.17.32");
config.GOD_PORT = getEnv(env.GOD_PORT, 7331);
config.GOD_BACK_CHANNEL_PORT = getEnv(env.GOD_BACK_CHANNEL_PORT, 3000);

// SERAPH TODO its seraph singular and seraphim plural ! 
config.SERAPH_ADDRESS = getEnv(env.SERAPH_ADDRESS, "127.0.0.1");
config.SERAPH_PORT = getEnv(env.SERAPH_PORT, 8421);
config.SERAPH_CONFIG_PATH = getEnv(env.SERAPH_CONFIG_PATH, '/tmp/seraphConfig.json');
config.ANGEL_START_PORT = getEnv(env.ANGEL_START_PORT, 55550);
config.ANGEL_PORT_COUNT = getEnv(env.ANGEL_PORT_COUNT, 5);
try {
    config.ANGEL_PORTS = Number.range(config.ANGEL_START_PORT, config.ANGEL_START_PORT + config.ANGEL_PORT_COUNT - 1).every();
} catch (ex) {
}<commit_msg>Don't use deployment constants<commit_after>/* global exports, process, require */
/* jshint unused: false */

var config = exports
  , system = null
  , env    = null
  , sugar  = null;

try {
    system = require('system');
    env = system.env;
} catch (ex) {
    env = process.env;
    sugar = require('sugar');
}
    
function getEnv(value, defaultValue) {
    return (typeof value !== 'undefined' && value !== '') ? value : defaultValue;
}

// GOD
config.GOD_ADDRESS = getEnv(env.GOD_ADDRESS, "127.0.0.1");
config.GOD_PORT = getEnv(env.GOD_PORT, 7331);
config.GOD_BACK_CHANNEL_PORT = getEnv(env.GOD_BACK_CHANNEL_PORT, 3000);

// SERAPH TODO its seraph singular and seraphim plural ! 
config.SERAPH_ADDRESS = getEnv(env.SERAPH_ADDRESS, "127.0.0.1");
config.SERAPH_PORT = getEnv(env.SERAPH_PORT, 8421);
config.SERAPH_CONFIG_PATH = getEnv(env.SERAPH_CONFIG_PATH, '/tmp/seraphConfig.json');
config.ANGEL_START_PORT = getEnv(env.ANGEL_START_PORT, 55550);
config.ANGEL_PORT_COUNT = getEnv(env.ANGEL_PORT_COUNT, 5);
try {
    config.ANGEL_PORTS = Number.range(config.ANGEL_START_PORT, config.ANGEL_START_PORT + config.ANGEL_PORT_COUNT - 1).every();
} catch (ex) {
}
{'fraction_non_alphanumeric': 0.14304235090751943, 'fraction_numerical': 0.028089887640449437, 'mean_word_length': 4.511904761904762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6828458', 'n_tokens_mistral': 895, 'n_tokens_neox': 847, 'n_words': 161}