<commit_before>"use strict";
var path = require("path");
var _ = require("lodash");

var env = process.env.NODE_ENV = process.env.NODE_ENV || "development";

var base = {
  app: {
    root: path.normalize(__dirname + "/.."),
    env: env,
  }
};

var specific = {
  development: {
    app: {
      port: 3000,
      name: "Points genie - Dev",
      keys: ["super-secret-hurr-durr"],
    },
    mongo: {
      url: "mongodb://localhost/pointsgenie_dev",
    },
    ldap: {
      url: "ldaps://ldap.usherbrooke.ca:636",
      base: "ou=personnes,dc=usherbrooke,dc=ca",
      username: process.env.LDAP_USER,
      password: <PASSWORD>,
    },
  },
  test: {
    app: {
      port: 3001,
      name: "Points genie - Test realm",
      keys: ["super-secret-hurr-durr"],
    },
    mongo: {
      url: "mongodb://localhost/pointsgenie_test",
    }
  },
  production: {
    app: {
      port: process.env.PORT || 3000,
      name: "Points genie",
    },
    mongo: {
      url: "mongodb://localhost/pointsgenie",
    }
  }
};

module.exports = _.merge(base, specific[env]);
<commit_msg>added config for tests<commit_after>"use strict";
var path = require("path");
var _ = require("lodash");

var env = process.env.NODE_ENV = process.env.NODE_ENV || "development";

var base = {
  app: {
    root: path.normalize(__dirname + "/.."),
    env: env,
  },
};

var specific = {
  development: {
    app: {
      port: 3000,
      name: "Points genie - Dev",
      keys: ["super-secret-hurr-durr"],
    },
    mongo: {
      url: "mongodb://localhost/pointsgenie_dev",
    },
    ldap: {
      url: "ldaps://ldap.usherbrooke.ca:636",
      base: "ou=personnes,dc=usherbrooke,dc=ca",
      username: process.env.LDAP_USER,
      password: process.env.LDAP_PASSWORD,
    },
  },
  test: {
    app: {
      port: 3001,
      name: "Points genie - Test realm",
      keys: ["super-secret-hurr-durr"],
    },
    mongo: {
      url: "mongodb://localhost/pointsgenie_test",
    },
    ldap: {
      url: "ldaps://example.com",
      base: "base",
      username: "dummy",
      password: "<PASSWORD>",
    },
  },
  production: {
    app: {
      port: process.env.PORT || 3000,
      name: "Points genie",
    },
    mongo: {
      url: "mongodb://localhost/pointsgenie",
    }
  }
};

module.exports = _.merge(base, specific[env]);

{'fraction_non_alphanumeric': 0.17789291882556132, 'fraction_numerical': 0.012953367875647668, 'mean_word_length': 2.348265895953757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '181112', 'n_tokens_mistral': 875, 'n_tokens_neox': 838, 'n_words': 154}