<commit_before>var path = alchemy.use('path');

// Prepare the settings object
var settings = alchemy.settings = {};

// Get the local (environment) specific settings
var local = require(path.resolve(PATH_ROOT, 'app', 'config', 'local'));
settings.environment = local.environment;

// Get default settings
var default_settings = require(path.resolve(PATH_ROOT, 'app', 'config', 'default'));
settings.config = default_settings;

// Get the config
var env_config = require(path.resolve(PATH_ROOT, 'app', 'config', settings.environment, 'config'));

// Overwrite default config with environment config
for (var i in env_config) settings.config[i] = env_config[i];<commit_msg>Use config overrides in the local.js file<commit_after>var path = alchemy.use('path');

// Prepare the settings object
var settings = alchemy.settings = {};

// Get the local (environment) specific settings
var local = require(path.resolve(PATH_ROOT, 'app', 'config', 'local'));
settings.environment = local.environment;

// Get default settings
var default_settings = require(path.resolve(PATH_ROOT, 'app', 'config', 'default'));
settings.config = default_settings;

// Get the config
var env_config = require(path.resolve(PATH_ROOT, 'app', 'config', settings.environment, 'config'));

// Overwrite default config with environment config and optional local overrides
alchemy.inject(settings.config, env_config, local.override);
{'fraction_non_alphanumeric': 0.13428571428571429, 'fraction_numerical': 0.0, 'mean_word_length': 5.901477832512315, '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': '2056436', 'n_tokens_mistral': 389, 'n_tokens_neox': 383, 'n_words': 121}