<commit_before>'use strict';

function Config() {
	var config = this,
		fs = require('fs'),
		settings;

	function init() {
		settings = JSON.parse(fs.readFileSync('./config/' + (process.env.NODE_ENV || 'development') + '.json', {encoding: 'utf8'}));
	}

	config.get = function get(path) {
		var obj = settings;

		path.split('/').forEach(function(key) {
			if (key in obj) {<commit_msg>let environment config extend the development config<commit_after>'use strict';

function Config() {
	var config = this,
		fs = require('fs'),
		submerge = require('submerge'),
		settings = {};

	function init() {
		settings = JSON.parse(fs.readFileSync('./config/development.json', {encoding: 'utf8'}));

		if (process.env.NODE_ENV) {
			settings = submerge(JSON.parse(fs.readFileSync('./config/' + process.env.NODE_ENV + '.json', {encoding: 'utf8'})), settings);
		}
	}

	config.get = function get(path) {
		var obj = settings;

		path.split('/').forEach(function(key) {
			if (key in obj) {
{'fraction_non_alphanumeric': 0.18571428571428572, 'fraction_numerical': 0.003061224489795918, 'mean_word_length': 4.163157894736842, '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': '7348743', 'n_tokens_mistral': 347, 'n_tokens_neox': 320, 'n_words': 74}