<commit_before>'use strict';

var git = require('git-rev-sync');
var name = require('project-name');
var _ = require('lodash');

const ENVS = require('./envs.js');

var deployOptions = {};
deployOptions[ENVS.PRODUCTION] = {
  bucket: 'lucify-prod',
  baseUrl: 'http://www.lucify.com/',
  maxAge: 3600,
  simulateDeployment: false,
  forceDeployment: false
};
deployOptions[ENVS.STAGING] = {
  bucket: 'lucify-staging',
  baseUrl: 'http://staging.lucify.com/',
  maxAge: 0,
  simulateDeployment: false,
  forceDeployment: false
};
deployOptions[ENVS.DEVELOPMENT] = {
  bucket: 'lucify-dev',
  baseUrl: 'http://dev.lucify.com/',
  maxAge: 0,
  simulateDeployment: false,
  forceDeployment: false
};
deployOptions[ENVS.TEST] = {
  bucket: 'lucify-protected',
  baseUrl: 'https://protected.lucify.com/',
  maxAge: 0,
  simulateDeployment: false,
  forceDeployment: false
};

module.exports = function(env, opts_) {

  let opts = opts_ || {};

  function getProject() {
    let project = opts.project;
    if(_.isFunction(project)) {
      project = project(env);
    }
    if (_.isString(project)) {
      return project;
    }
    if (process.env.PROJECT) {
      return process.env.PROJECT;
    }
    if (process.env.CIRCLE_PROJECT_REPONAME) {<commit_msg>Update default for deploy-options<commit_after>'use strict';

var git = require('git-rev-sync');
var name = require('project-name');
var _ = require('lodash');

const ENVS = require('./envs.js');

var deployOptions = {};
deployOptions[ENVS.PRODUCTION] = {
  bucket: 'lucify-website-production',
  baseUrl: 'http://www.lucify.com/',
  maxAge: 3600,
  simulateDeployment: false,
  forceDeployment: false
};
deployOptions[ENVS.STAGING] = {
  bucket: 'lucify-staging-new',
  baseUrl: 'http://staging.lucify.com/',
  maxAge: 0,
  simulateDeployment: false,
  forceDeployment: false
};
deployOptions[ENVS.DEVELOPMENT] = {
  bucket: 'lucify-protected',
  baseUrl: 'http://protected.lucify.com/',
  maxAge: 0,
  simulateDeployment: false,
  forceDeployment: false
};
deployOptions[ENVS.TEST] = {
  bucket: 'lucify-protected',
  baseUrl: 'https://protected.lucify.com/',
  maxAge: 0,
  simulateDeployment: false,
  forceDeployment: false
};


module.exports = function(env, opts_) {

  let opts = opts_ || {};

  function getProject() {
    let project = opts.project;
    if(_.isFunction(project)) {
      project = project(env);
    }
    if (_.isString(project)) {
      return project;
    }
    if (process.env.PROJECT) {
      return process.env.PROJECT;
    }
    if (process.env.CIRCLE_PROJECT_REPONAME) {
{'fraction_non_alphanumeric': 0.15682440359796637, 'fraction_numerical': 0.005475166210402816, 'mean_word_length': 3.8446969696969697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4859233', 'n_tokens_mistral': 956, 'n_tokens_neox': 899, 'n_words': 169}