<commit_before>/* jshint node: true */

module.exports = function(environment) {
  var ENV = {
    modulePrefix: 'fan-score-app',
    environment: environment,
    baseURL: '/',
    locationType: 'auto',
    EmberENV: {
      FEATURES: {
        // Here you can enable experimental features on an ember canary build
        // e.g. 'with-controller': true
      }
    },

    APP: {
      // Here you can pass flags/options to your application instance
      // when it is created
      host: 'http://api.fanscore.xyz',
    },

    contentSecurityPolicy: {
      // 'default-src': "'unsafe-inline'",
      'script-src': "'self' https://*.googleapis.com https://*.gstatic.com",
      'font-src': "'self' https://*.gstatic.com",
      'connect-src': "'self' ",
      'img-src': "'self' https://*.googleapis.com https://*.gstatic.com data *",
      'style-src': "'self' https://*.googleapis.com",
      'media-src': "'self' "
    }
  };

  if (environment === 'development') {
    // ENV.APP.LOG_RESOLVER = true;
    // ENV.APP.LOG_ACTIVE_GENERATION = true;
    // ENV.APP.LOG_TRANSITIONS = true;
    // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
    // ENV.APP.LOG_VIEW_LOOKUPS = true;
    
    ENV.contentSecurityPolicy['connect-src'] +=
      ENV.APP.host;
    ENV.contentSecurityPolicy['script-src'] +=
      ENV.APP.host;
    
  }

  if (environment === 'test') {
    // Testem prefers this...
    ENV.baseURL = '/';
    ENV.locationType = 'none';

    // keep test console output quieter
    ENV.APP.LOG_ACTIVE_GENERATION = false;
    ENV.APP.LOG_VIEW_LOOKUPS = false;

    ENV.APP.rootElement = '#ember-testing';
  }<commit_msg>fix some cors?<commit_after>/* jshint node: true */

module.exports = function(environment) {
  var ENV = {
    modulePrefix: 'fan-score-app',
    environment: environment,
    baseURL: '/',
    locationType: 'auto',
    EmberENV: {
      FEATURES: {
        // Here you can enable experimental features on an ember canary build
        // e.g. 'with-controller': true
      }
    },

    APP: {
      // Here you can pass flags/options to your application instance
      // when it is created
      host: 'http://api.fanscore.xyz',
    },

    contentSecurityPolicy: {
      // 'default-src': "'unsafe-inline'",
      'script-src': "'self' https://*.googleapis.com https://*.gstatic.com ",
      'font-src': "'self' https://*.gstatic.com ",
      'connect-src': "'self' ",
      'img-src': "'self' https://*.googleapis.com https://*.gstatic.com data * ",
      'style-src': "'self' https://*.googleapis.com ",
      'media-src': "'self' "
    }
  };

  if (environment === 'development') {
    // ENV.APP.LOG_RESOLVER = true;
    // ENV.APP.LOG_ACTIVE_GENERATION = true;
    // ENV.APP.LOG_TRANSITIONS = true;
    // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
    // ENV.APP.LOG_VIEW_LOOKUPS = true;
    
    ENV.contentSecurityPolicy['connect-src'] +=
      ENV.APP.host;
    ENV.contentSecurityPolicy['script-src'] +=
      ENV.APP.host;
    
  }

  if (environment === 'test') {
    // Testem prefers this...
    ENV.baseURL = '/';
    ENV.locationType = 'none';

    // keep test console output quieter
    ENV.APP.LOG_ACTIVE_GENERATION = false;
    ENV.APP.LOG_VIEW_LOOKUPS = false;

    ENV.APP.rootElement = '#ember-testing';
  }
{'fraction_non_alphanumeric': 0.17059724349157734, 'fraction_numerical': 0.0, 'mean_word_length': 2.377456049638056, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '3716571', 'n_tokens_mistral': 1119, 'n_tokens_neox': 1081, 'n_words': 214}