<commit_before>'use strict';

var path = require('path');
var _ = require('lodash');

function requiredProcessEnv(name) {
  if(!process.env[name]) {
    throw new Error('You must set the ' + name + ' environment variable');
  }
  return process.env[name];
}

// All configurations will extend these options
// ============================================
var all = {
    env: process.env.NODE_ENV,

    // Root path of server
    root: path.normalize(__dirname + '/../../..'),

    // Server port
    port: process.env.PORT || 9000,

    // Should we populate the DB with sample data?
    seedDB: false,

    // Secret for session, you will want to change this and make it an environment variable
    secrets: {
        session: 'dig-secret'
    },

    // List of user roles
    userRoles: ['guest', 'user', 'admin'],

    // MongoDB connection options
    mongo: {
        options: {
            db: {
                safe: true
            }
        }
    },

    euiServerUrl: process.env.EUI_SERVER_URL || 'http://localhost',
    euiServerPort: process.env.EUI_SERVER_PORT || 9200,
    euiSearchIndex: process.env.EUI_SEARCH_INDEX || 'dig',

    imageSimUrl: process.env.IMAGE_SIM_URL || 'http://localhost',
    imageSimPort: process.env.IMAGE_SIM_PORT || 3001,

    blurImages: ((!!process.env.BLUR_IMAGES && process.env.BLUR_IMAGES === 'false') ? false : (process.env.BLUR_IMAGES ? process.env.BLUR_IMAGES : 'blur')),

    blurPercentage: process.env.BLUR_PERCENT || 2.5,
    pixelatePercentage: process.env.PIXELATE_PERCENT || 5,

    euiConfigs: {
        'dig': {
            facets: {
                euiFilters :[{
                    title: 'Phone',
                    type: 'eui-filter',
                    field: 'phonenumber',
                    terms: 'phone'
                }],
                simFilter: {
                    title: 'Image',
                    type: 'simFilter',
                    field: 'hasFeatureCollection.similar_images_feature.featureValue'
                },
                aggFilters: [{
                    title: 'City/Region',
                    type: 'eui-aggregation',<commit_msg>fixing incorrect change to server config<commit_after>'use strict';

var path = require('path');
var _ = require('lodash');

function requiredProcessEnv(name) {
  if(!process.env[name]) {
    throw new Error('You must set the ' + name + ' environment variable');
  }
  return process.env[name];
}

// All configurations will extend these options
// ============================================
var all = {
    env: process.env.NODE_ENV,

    // Root path of server
    root: path.normalize(__dirname + '/../../..'),

    // Server port
    port: process.env.PORT || 9000,

    // Should we populate the DB with sample data?
    seedDB: false,

    // Secret for session, you will want to change this and make it an environment variable
    secrets: {
        session: 'dig-secret'
    },

    // List of user roles
    userRoles: ['guest', 'user', 'admin'],

    // MongoDB connection options
    mongo: {
        options: {
            db: {
                safe: true
            }
        }
    },

    euiServerUrl: process.env.EUI_SERVER_URL || 'http://localhost',
    euiServerPort: process.env.EUI_SERVER_PORT || 9200,
    euiSearchIndex: process.env.EUI_SEARCH_INDEX || 'dig',

    imageSimUrl: process.env.IMAGE_SIM_URL || 'http://localhost',
    imageSimPort: process.env.IMAGE_SIM_PORT || 3001,

    blurImages: ((!!process.env.BLUR_IMAGES && process.env.BLUR_IMAGES === 'false') ? false : (process.env.BLUR_IMAGES ? process.env.BLUR_IMAGES : 'blur')),

    blurPercentage: process.env.BLUR_PERCENT || 2.5,
    pixelatePercentage: process.env.PIXELATE_PERCENT || 5,

    euiConfigs: {
        'dig-latest': {
            facets: {
                euiFilters :[{
                    title: 'Phone',
                    type: 'eui-filter',
                    field: 'phonenumber',
                    terms: 'phone'
                }],
                simFilter: {
                    title: 'Image',
                    type: 'simFilter',
                    field: 'hasFeatureCollection.similar_images_feature.featureValue'
                },
                aggFilters: [{
                    title: 'City/Region',
                    type: 'eui-aggregation',
{'fraction_non_alphanumeric': 0.14547563805104408, 'fraction_numerical': 0.0069605568445475635, 'mean_word_length': 1.9751552795031055, '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': '5305664', 'n_tokens_mistral': 1319, 'n_tokens_neox': 1228, 'n_words': 282}