<commit_before>const azure = {
  identityMetadata: process.env.IDENTITY_METADATA,
  clientID: process.env.REACT_APP_CLIENT_ID,
  validateIssuer: process.env.NODE_ENV == 'production' ? true : false
}

const github = {
  clientID: process.env.REACT_APP_GITHUB_CLIENT_ID,
  clientSecret: process.env.GITHUB_CLIENT_SECRET,
  botToken: process.env.GITHUB_BOT_TOKEN
}

const app = {
  groupConfigPath: process.env.GROUP_CONFIG_PATH
}

function validateConfig(configObject) {
  for (let prop of Object.keys(configObject)) {
    console.log(configObject[prop])
    if (configObject[prop] === undefined)
      throw new Error(`Missing environment variable: ${prop}`)
  }
}

validateConfig(azure)
validateConfig(github)<commit_msg>remove extraneous logging<commit_after>const azure = {
  identityMetadata: process.env.IDENTITY_METADATA,
  clientID: process.env.REACT_APP_CLIENT_ID,
  validateIssuer: process.env.NODE_ENV == 'production' ? true : false
}

const github = {
  clientID: process.env.REACT_APP_GITHUB_CLIENT_ID,
  clientSecret: process.env.GITHUB_CLIENT_SECRET,
  botToken: process.env.GITHUB_BOT_TOKEN
}

const app = {
  groupConfigPath: process.env.GROUP_CONFIG_PATH
}

function validateConfig(configObject) {
  for (let prop of Object.keys(configObject)) {
    if (configObject[prop] === undefined)
      throw new Error(`Missing environment variable: ${prop}`)
  }
}

validateConfig(azure)
validateConfig(github)
{'fraction_non_alphanumeric': 0.10648801128349789, 'fraction_numerical': 0.0, 'mean_word_length': 5.539170506912442, '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': '6659760', 'n_tokens_mistral': 475, 'n_tokens_neox': 477, 'n_words': 84}