<commit_before>const envalid = require('envalid')
const { str, url, num } = envalid

module.exports = envalid.cleanEnv(process.env, {
  PORT: num({ default: 5000 }),
  COUCH_URL: url({ devDefault: 'http://localhost:5984/' }),
  ISSUER_ID: str({ devDefault: '504', default: '505' }),
  PRIVATE_KEY: str({ devDefault: 'so-secret' }),
  AMQP_URL: url({ devDefault: 'amqp://localhost' }),
  EVENTS_QUEUE_NAME: str({ devDefault: 'events-dev' }),
  JOBS_QUEUE_NAME: str({ devDefault: 'jobs-dev' }),
  WORKER_SIZE: num({ default: require('os').cpus().length }),
  NODE_ENV: str({
    choices: ['testing', 'development', 'staging', 'production'],
    devDefault: 'development'
  }),
  ROLLBAR_TOKEN_JOBS: str({ devDefault: '' }),
  STATSD_HOST: str({ default: '172.17.0.1' }),
  NPM_REGISTRY: url({ default: 'https://registry.npmjs.org/' }),
  GITHUB_URL: url({ default: 'https://github.com' }),
  BADGES_SECRET: str({ devDefault: 'badges-secret' }),
  NPMHOOKS_SECRET: str({ devDefault: 'make-secrets-great-again' }),
  STRIPE_SECRET_KEY: str({ devDefault: 'stripe-token' })
})
<commit_msg>chore(env): add env var for GitHub enterprise<commit_after>const envalid = require('envalid')
const { bool, num, str, url } = envalid

module.exports = envalid.cleanEnv(process.env, {
  PORT: num({ default: 5000 }),
  COUCH_URL: url({ devDefault: 'http://localhost:5984/' }),
  ISSUER_ID: str({ devDefault: '504', default: '505' }),
  PRIVATE_KEY: str({ devDefault: 'so-secret' }),
  AMQP_URL: url({ devDefault: 'amqp://localhost' }),
  EVENTS_QUEUE_NAME: str({ devDefault: 'events-dev' }),
  JOBS_QUEUE_NAME: str({ devDefault: 'jobs-dev' }),
  WORKER_SIZE: num({ default: require('os').cpus().length }),
  NODE_ENV: str({
    choices: ['testing', 'development', 'staging', 'production'],
    devDefault: 'development'
  }),
  ROLLBAR_TOKEN_JOBS: str({ devDefault: '' }),
  STATSD_HOST: str({ default: '172.17.0.1' }),
  NPM_REGISTRY: url({ default: 'https://registry.npmjs.org/' }),
  GITHUB_URL: url({ default: 'https://github.com' }),
  BADGES_SECRET: str({ devDefault: 'badges-secret' }),
  NPMHOOKS_SECRET: str({ devDefault: 'make-secrets-great-again' }),
  STRIPE_SECRET_KEY: str({ devDefault: 'stripe-token' }),
  IS_ENTERPRISE: bool({ default: false })
})

{'fraction_non_alphanumeric': 0.19804183355585225, 'fraction_numerical': 0.018691588785046728, 'mean_word_length': 5.125340599455041, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4455300', 'n_tokens_mistral': 878, 'n_tokens_neox': 845, 'n_words': 171}