<commit_before>'use strict';

module.exports = function () {
  return {
    moment: {
      // Options:
      // 'all' - all years, all timezones
      // '2010-2020' - 2010-2020, all timezones
      // 'none' - no data, just timezone API
      includeTimezone: 'all'
    }
  }
};

module.exports = function (environment) {
  let ENV = {
    taleIconHeight: "360",
    taleIconWidth: "360",

    modulePrefix: 'wholetale',
    environment: environment,
    rootURL: '/',
    locationType: 'auto',
    torii: {
      providers: { 
          
      }
    },
    EmberENV: {
      FEATURES: {
        // Here you can enable experimental features on an ember canary build
        // e.g. 'with-controller': true
      },
      EXTEND_PROTOTYPES: {
        // Prevent Ember Data from overriding Date.parse.
        Date: false
      },
      'ember-oauth2': {
        model: {}
      }
    },

    APP: {
      // Here you can pass flags/options to your application instance
      // when it is created
    }
  };

  ENV['ember-cli-mirage'] = {
    enabled: false
  };

  if (environment === 'test') {
    ENV['ember-cli-mirage'] = {
      enabled: true
    };
    // Testem prefers this...
    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';
    ENV.apiHost = '';
    ENV.apiPath = '/api';
    ENV.apiUrl = '';
    ENV.dev = true;
    ENV.authRedirect = 'http://dashboard.dev.wholetale.org/login-success';
    // ENV.APP.autoboot = false;
  }

  if (environment === 'test-dev') {
    ENV.apiHost = 'https://girdertest.wholetale.org';
    ENV.apiPath = 'api/v1';
    ENV.apiUrl = 'https://girdertest.wholetale.org/api/v1';
    ENV.dev = true;
    ENV.authRedirect = 'http://dashboard.dev.wholetale.org/login-success';
  }

  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.apiHost = 'https://girder.dev.wholetale.org';
    ENV.apiPath = 'api/v1';
    ENV.apiUrl = 'https://girder.dev.wholetale.org/api/v1';
    ENV.dev = true;
    ENV.authRedirect = 'http://dashboard.dev.wholetale.org/login-success';
    ENV.orcidLogin = 'https://cn-stage-2.test.dataone.org/portal/oauth?action=start&target='+ENV.authRedirect
  }

  if (environment === 'production') {
    ENV.apiHost = 'apiHOST';
    ENV.apiPath = 'api/v1';
    ENV.apiUrl = ENV.apiHost + '/' + ENV.apiPath;
    ENV.dev = false;
    ENV.authRedirect = 'http://dashboard.wholetale.org/login-success';
    ENV.orcidLogin = 'https://cn.dataone.org/portal/oauth?action=start&target='+ENV.authRedirect
  }

  return ENV;
};
<commit_msg>Don't use Prod DataONE CN in Prod WT<commit_after>'use strict';

module.exports = function () {
  return {
    moment: {
      // Options:
      // 'all' - all years, all timezones
      // '2010-2020' - 2010-2020, all timezones
      // 'none' - no data, just timezone API
      includeTimezone: 'all'
    }
  }
};

module.exports = function (environment) {
  let ENV = {
    taleIconHeight: "360",
    taleIconWidth: "360",

    modulePrefix: 'wholetale',
    environment: environment,
    rootURL: '/',
    locationType: 'auto',
    torii: {
      providers: { 
          
      }
    },
    EmberENV: {
      FEATURES: {
        // Here you can enable experimental features on an ember canary build
        // e.g. 'with-controller': true
      },
      EXTEND_PROTOTYPES: {
        // Prevent Ember Data from overriding Date.parse.
        Date: false
      },
      'ember-oauth2': {
        model: {}
      }
    },

    APP: {
      // Here you can pass flags/options to your application instance
      // when it is created
    }
  };

  ENV['ember-cli-mirage'] = {
    enabled: false
  };

  if (environment === 'test') {
    ENV['ember-cli-mirage'] = {
      enabled: true
    };
    // Testem prefers this...
    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';
    ENV.apiHost = '';
    ENV.apiPath = '/api';
    ENV.apiUrl = '';
    ENV.dev = true;
    ENV.authRedirect = 'http://dashboard.dev.wholetale.org/login-success';
    // ENV.APP.autoboot = false;
  }

  if (environment === 'test-dev') {
    ENV.apiHost = 'https://girdertest.wholetale.org';
    ENV.apiPath = 'api/v1';
    ENV.apiUrl = 'https://girdertest.wholetale.org/api/v1';
    ENV.dev = true;
    ENV.authRedirect = 'http://dashboard.dev.wholetale.org/login-success';
  }

  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.apiHost = 'https://girder.dev.wholetale.org';
    ENV.apiPath = 'api/v1';
    ENV.apiUrl = 'https://girder.dev.wholetale.org/api/v1';
    ENV.dev = true;
    ENV.authRedirect = 'http://dashboard.dev.wholetale.org/login-success';
    ENV.orcidLogin = 'https://cn-stage-2.test.dataone.org/portal/oauth?action=start&target='+ENV.authRedirect
  }

  if (environment === 'production') {
    ENV.apiHost = 'apiHOST';
    ENV.apiPath = 'api/v1';
    ENV.apiUrl = ENV.apiHost + '/' + ENV.apiPath;
    ENV.dev = false;
    ENV.authRedirect = 'http://dashboard.wholetale.org/login-success';
    ENV.orcidLogin = 'https://cn-stage-2.test.dataone.org/portal/oauth?action=start&target='+ENV.authRedirect
  }

  return ENV;
};

{'fraction_non_alphanumeric': 0.15795015795015796, 'fraction_numerical': 0.010354510354510354, 'mean_word_length': 2.350382128159906, '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': '3059931', 'n_tokens_mistral': 2121, 'n_tokens_neox': 2015, 'n_words': 355}