<commit_before>/*
 * Sample configuration file for shrtn.js
 *
 * Copy/Rename to `config.js` and adapt for local configuration
 * See README for documentation of parameters
 */
module.exports = {
  http: {
    address: '127.0.0.1',
    port: 8080,
    enableCORS: true,
    CORS: {
      allowOrigin: '*',
      allowHeaders: 'X-Requested-With',
      allowMethods: 'GET',
      maxAge: 86400,
    },
    enableJSONP: false,
  },
  db: {
    host: 'localhost',
    port: 5432,
    user: 'shrtn',
    password: '<PASSWORD>',
    database: 'shrtn'
  },
  hash: {
    urlPrefix: 'http://localhost:8080/',
    length: 5,<commit_msg>Disable CORS by default<commit_after>/*
 * Sample configuration file for shrtn.js
 *
 * Copy/Rename to `config.js` and adapt for local configuration
 * See README for documentation of parameters
 */
module.exports = {
  http: {
    address: '127.0.0.1',
    port: 8080,
    enableCORS: false,
    CORS: {
      allowOrigin: '*',
      allowHeaders: 'X-Requested-With',
      allowMethods: 'GET',
      maxAge: 86400,
    },
    enableJSONP: false,
  },
  db: {
    host: 'localhost',
    port: 5432,
    user: 'shrtn',
    password: '<PASSWORD>',
    database: 'shrtn'
  },
  hash: {
    urlPrefix: 'http://localhost:8080/',
    length: 5,
{'fraction_non_alphanumeric': 0.1468034727703236, 'fraction_numerical': 0.037884767166535126, 'mean_word_length': 2.6228571428571428, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '757179', 'n_tokens_mistral': 475, 'n_tokens_neox': 442, 'n_words': 110}