<commit_before>/* 
* @Author: justinwebb
* @Date:   2015-05-28 22:46:32
* @Last Modified by:   kuychaco
*
* ----------------------------
* Create application
* Add middleware
* Start server
* ----------------------------
*/

'use strict';
// Load environmental variables from .env file into ENV (process.env)
if (require('fs').statSync('.env').isFile()) {
  require('dotenv').load();<commit_msg>(fix) Configure server to use production vars instead of local .env<commit_after>/* 
* @Author: justinwebb
* @Date:   2015-05-28 22:46:32
* @Last Modified by:   justinwebb
*
* ----------------------------
* Create application
* Add middleware
* Start server
* ----------------------------
*/

'use strict';
try {
    require('dotenv').load();
} catch (err) {
  console.log('[server] .env file not available:', err);
  console.log('[server] loading production server environment variables');
{'fraction_non_alphanumeric': 0.2655367231638418, 'fraction_numerical': 0.031638418079096044, 'mean_word_length': 2.4474708171206228, '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': '1306344', 'n_tokens_mistral': 280, 'n_tokens_neox': 258, 'n_words': 73}