<commit_before>'use strict';

var _ = require('lodash');
var path = require('path');

// Allows for environment variables to be set using a .env file
require('dotenv').config({
  silent: true,
  path: path.join(__dirname, '.env')
});

// If no NODE_ENV was specified, we are in development
if (!process.env.NODE_ENV) {
  process.env.NODE_ENV = 'development';
}

console.log('Loading ' + process.env.NODE_ENV + ' configuration');
let config = require('./config/env/' + process.env.NODE_ENV);

// Loading Keystone configuration
config.keystone = {
  options: {
    'name': 'KBH Billeder',
    'brand': 'KBH Billeder',
    'auto update': true,
    'mongo': process.env.MONGO_CONNECTION || 'mongodb://localhost/kbh-billeder',
    'session store': 'mongo',
    'auth': true,
    'user model': 'User',
    'cookie secret': process.env.COOKIE_SECRET || 'not-a-secret',
    'wysiwyg cloudinary images': config.cloudinaryUrl ? true : false,
    'wysiwyg importcss': '/styles/keystone-tiny-mce.css'
  },
  nav: {
    users: 'users',
    pages: 'pages',
    'menus': ['menu-items'],
    galleries: ['galleries', 'gallery-items']
  }
}

module.exports = config;<commit_msg>Added a different path to the tinymce editor's javascript<commit_after>'use strict';

var _ = require('lodash');
var path = require('path');

// Allows for environment variables to be set using a .env file
require('dotenv').config({
  silent: true,
  path: path.join(__dirname, '.env')
});

// If no NODE_ENV was specified, we are in development
if (!process.env.NODE_ENV) {
  process.env.NODE_ENV = 'development';
}

console.log('Loading ' + process.env.NODE_ENV + ' configuration');
let config = require('./config/env/' + process.env.NODE_ENV);

// Loading Keystone configuration
config.keystone = {
  options: {
    'name': 'KBH Billeder',
    'brand': 'KBH Billeder',
    'auto update': true,
    'mongo': process.env.MONGO_CONNECTION || 'mongodb://localhost/kbh-billeder',
    'session store': 'mongo',
    'auth': true,
    'user model': 'User',
    'cookie secret': process.env.COOKIE_SECRET || 'not-a-secret',
    'wysiwyg cloudinary images': config.cloudinaryUrl ? true : false,
    'wysiwyg importcss': '/styles/keystone-tiny-mce.css',
    'wysiwyg additional options': {
      'external_plugins': {
        'uploadimage': '/keystone/js/lib/tinymce/tinymce.min.js'
      }
    },
  },
  nav: {
    users: 'users',
    pages: 'pages',
    'menus': ['menu-items'],
    galleries: ['galleries', 'gallery-items']
  }
}

module.exports = config;
{'fraction_non_alphanumeric': 0.16925527678215851, 'fraction_numerical': 0.0, 'mean_word_length': 3.704119850187266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6755707', 'n_tokens_mistral': 877, 'n_tokens_neox': 843, 'n_words': 201}