<commit_before>var cfg = {
  hostname: (process.env.HOSTNAME || 'http://sizzlingstats.com')
, port: parseInt(process.env.PORT, 10) || 8001
, mongo_url: process.env.MONGO_URL || process.env.MONGOHQ_URL ||
                                      'mongodb://localhost/sizzlingstats'
, airbrake_host: 'sizzlingerrbit.herokuapp.com'
  // Redis Info
, redis_host: process.env.REDIS_HOST || '127.0.0.1'
, redis_port: parseInt(process.env.REDIS_PORT, 10) || 6379
, redis_db: parseInt(process.env.REDIS_DB, 10) || 2
, redis_password: <PASSWORD>
, session_prefix: (process.env.SESSION_PREFIX) || 'ss_sess'
  // Stats Sessions are valid for only 30 minutes since last update
, stats_session_timeout: 30*60*1000
  // Check for stat-sessions to expire every 15 minutes
, session_expiry_interval: 15
  // How long to wait before refreshing steam API info for a player - 3 hours
, player_metadata_cache_length: 3*60*60*1000
};

module.exports = cfg;<commit_msg>Added better hostname guessing, so I don't have to set the env variable<commit_after>var cfg = {
  hostname: process.env.HOSTNAME
, port: parseInt(process.env.PORT, 10) || 8001
, mongo_url: process.env.MONGO_URL || process.env.MONGOHQ_URL ||
                                      'mongodb://localhost/sizzlingstats'
, airbrake_host: 'sizzlingerrbit.herokuapp.com'
  // Redis Info
, redis_host: process.env.REDIS_HOST || '127.0.0.1'
, redis_port: parseInt(process.env.REDIS_PORT, 10) || 6379
, redis_db: parseInt(process.env.REDIS_DB, 10) || 2
, redis_password: process.env.REDIS_PASSWORD
, session_prefix: (process.env.SESSION_PREFIX) || 'ss_sess'
  // Stats Sessions are valid for only 30 minutes since last update
, stats_session_timeout: 30*60*1000
  // Check for stat-sessions to expire every 15 minutes
, session_expiry_interval: 15
  // How long to wait before refreshing steam API info for a player - 3 hours
, player_metadata_cache_length: 3*60*60*1000
};

if (!cfg.hostname) {
  if (process.env.NODE_ENV === 'production') {
    cfg.hostname = 'http://sizzlingstats.com';
  } else {
    cfg.hostname = 'http://localhost:' + cfg.port;
  }
}
console.log(cfg.hostname);
module.exports = cfg;
{'fraction_non_alphanumeric': 0.12710280373831775, 'fraction_numerical': 0.04205607476635514, 'mean_word_length': 3.9218390804597703, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2670202', 'n_tokens_mistral': 810, 'n_tokens_neox': 730, 'n_words': 170}