<commit_before>const process = require('process')

class Config {
  constructor () {
    this.debug = true
    this.production = false
    this.port = process.env.RUN_PORT || 8000
    this.mongodbUrl = 'mongodb://localhost:27017/camus'
  }
}

class DevelopmentConfig extends Config {
  constructor () {
    super()
  }
}

class ProductionConfig extends Config {
  constructor () {
    super()
    this.debug = false
    this.production = true
    this.mongodbUrl = 'mongodb://database:27017/camus'
  }
}

const configs = new Map([
  ['development', new DevelopmentConfig()],
  ['production', new ProductionConfig()]
])

exports.config = configs.get(process.env.CAMUS_API_ENV || 'development')
<commit_msg>update config environment<commit_after>const process = require('process')

class Config {
  constructor () {
    this.debug = true
    this.production = false
    this.port = process.env.RUN_PORT || 8000
    this.mongodbUrl = 'mongodb://localhost:27017/camus'
  }
}

class DevelopmentConfig extends Config {
  constructor () {
    super()
  }
}

class ProductionConfig extends Config {
  constructor () {
    super()
    this.debug = false
    this.production = true
    this.mongodbUrl = 'mongodb://database:27017/camus'
  }
}

const configs = new Map([
  ['development', new DevelopmentConfig()],
  ['production', new ProductionConfig()]
])

exports.config = configs.get(process.env.NODE_ENV || 'development')

{'fraction_non_alphanumeric': 0.13126323218066338, 'fraction_numerical': 0.019760056457304165, 'mean_word_length': 3.67986798679868, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1719975', 'n_tokens_mistral': 458, 'n_tokens_neox': 427, 'n_words': 94}