<commit_before>/* eslint-env node */
'use strict';
const API_VERSION = require('./api-version.js');
require('dotenv').config('../.env');

module.exports = function(environment) {
  let ENV = {
    modulePrefix: 'ilios',
    environment,
    rootURL: '/',
    locationType: 'auto',
    redirectAfterShibLogin: true,
    contentSecurityPolicy: {
      'default-src': ["'none'"],
      'script-src':  ["'self'", "'unsafe-eval'", 'www.google-analytics.com'],
      'font-src':    ["'self'"],
      'connect-src': ["'self'", 'www.google-analytics.com'],
      'img-src':     ["'self'", 'data:', 'www.google-analytics.com'],
      'style-src':   ["'self'", "'unsafe-inline'"],
      'media-src':   ["'self'"]
    },
    flashMessageDefaults: {
      timeout: 2000,
      extendedTimeout: 3000,
      types: [ 'success', 'warning', 'info', 'alert' ]
    },
    'ember-simple-auth': {
      authorizer: 'authorizer:token'
    },
    'ember-simple-auth-token': {<commit_msg>Only load .env file if present<commit_after>/* eslint-env node */
'use strict';
const existsSync = require('exists-sync');
const dotenv = require('dotenv');
const path = require('path');
const dotEnvPath = path.join(__dirname, '../.env');
if (existsSync(dotEnvPath)) {
  dotenv.config({ path: dotEnvPath });
}

const API_VERSION = require('./api-version.js');

module.exports = function (environment) {

  let ENV = {
    modulePrefix: 'ilios',
    environment,
    rootURL: '/',
    locationType: 'auto',
    redirectAfterShibLogin: true,
    contentSecurityPolicy: {
      'default-src': ["'none'"],
      'script-src':  ["'self'", "'unsafe-eval'", 'www.google-analytics.com'],
      'font-src':    ["'self'"],
      'connect-src': ["'self'", 'www.google-analytics.com'],
      'img-src':     ["'self'", 'data:', 'www.google-analytics.com'],
      'style-src':   ["'self'", "'unsafe-inline'"],
      'media-src':   ["'self'"]
    },
    flashMessageDefaults: {
      timeout: 2000,
      extendedTimeout: 3000,
      types: [ 'success', 'warning', 'info', 'alert' ]
    },
    'ember-simple-auth': {
      authorizer: 'authorizer:token'
    },
    'ember-simple-auth-token': {
{'fraction_non_alphanumeric': 0.21325244983667754, 'fraction_numerical': 0.007466168922071862, 'mean_word_length': 3.1875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '770967', 'n_tokens_mistral': 728, 'n_tokens_neox': 716, 'n_words': 135}