<commit_before>// This configuration is shared with the client. Any hidden, server-only config
// belongs in ./server instead.
import crypto from 'crypto'

let globalMessage = null;
// {
//   frontPageOnly: true,
//   text: 'hello world',
//   expires: 'Nov 20, 2015'
// };

if (globalMessage) {
  const sha = crypto.createHash('sha1');
  if (!globalMessage.text) {
    throw 'Global message defined with no text'
  }
  sha.update(globalMessage.text);
  globalMessage.key = sha.digest('hex');
}

function config() {
  return {
    https: process.env.HTTPS === 'true',
    httpsProxy: process.env.HTTPS_PROXY === 'true',

    debugLevel: process.env.DEBUG_LEVEL,<commit_msg>Add global message for privacy policy change<commit_after>// This configuration is shared with the client. Any hidden, server-only config
// belongs in ./server instead.
import crypto from 'crypto'

let globalMessage = {
  frontPageOnly: true,
  text: 'We’re [updating our privacy policy](https://www.reddit.com/r/announcements/comments/3tlcil/we_are_updating_our_privacy_policy_effective_jan/), to take effect on January 1, 2016. By continuing to use m.reddit.com, you agree to the [new privacy policy](https://www.reddit.com/help/privacypolicy)',
  expires: 'Jan 01, 2016'
};

if (globalMessage) {
  const sha = crypto.createHash('sha1');
  if (!globalMessage.text) {
    throw 'Global message defined with no text'
  }
  sha.update(globalMessage.text);
  globalMessage.key = sha.digest('hex');
}

function config() {
  return {
    https: process.env.HTTPS === 'true',
    httpsProxy: process.env.HTTPS_PROXY === 'true',

    debugLevel: process.env.DEBUG_LEVEL,
{'fraction_non_alphanumeric': 0.1330891330891331, 'fraction_numerical': 0.01221001221001221, 'mean_word_length': 4.02760736196319, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3902006', 'n_tokens_mistral': 529, 'n_tokens_neox': 509, 'n_words': 146}