<commit_before>/**
 * @file Defines the hydrater settings.
 */

// nodeEnv can either be "development" or "production"
var nodeEnv = process.env.nodeEnv || "development";
var defaultPort = 8000;


// Number of instance to run simultaneously per cluster
var defaultConcurrency = 1;

if(nodeEnv === "production") {
  defaultPort = 80;
}

// Exports configuration
module.exports = {
  env: nodeEnv,
  port: process.env.PORT || defaultPort,

  thumb_size: "350x250",
  display_size: "750x750",
  concurrency: process.env.IMAGE_CONCURRENCY || defaultConcurrency,
  appName: process.env.APP_NAME || "iptc-hydrater",
  redisUrl: process.env.REDIS_URL
};<commit_msg>Add opbeat config<commit_after>/**
 * @file Defines the hydrater settings.
 */

// nodeEnv can either be "development" or "production"
var nodeEnv = process.env.nodeEnv || "development";
var defaultPort = 8000;


// Number of instance to run simultaneously per cluster
var defaultConcurrency = 1;

if(nodeEnv === "production") {
  defaultPort = 80;
}

// Exports configuration
module.exports = {
  env: nodeEnv,
  port: process.env.PORT || defaultPort,

  thumb_size: "350x250",
  display_size: "750x750",
  concurrency: process.env.IMAGE_CONCURRENCY || defaultConcurrency,
  appName: process.env.APP_NAME || "iptc-hydrater",
  redisUrl: process.env.REDIS_URL,

  opbeat: {
    organizationId: process.env.OPBEAT_ORGANIZATION_ID,
    appId: process.env.OPBEAT_APP_ID,
    secretToken: process.env.OPBEAT_SECRET_TOKEN
  }
};
{'fraction_non_alphanumeric': 0.12221471978392978, 'fraction_numerical': 0.025658338960162053, 'mean_word_length': 4.468634686346864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3064231', 'n_tokens_mistral': 531, 'n_tokens_neox': 487, 'n_words': 119}