<commit_before>var path = require('path');
var findup = require('findup');
var _ = require('lodash');

var CONFIG_FILENAME = 'styleguide.config.js';
var DEFAULT_CONFIG = {
	title: 'Style guide',
	serverHost: 'localhost',
	serverPort: 3000,
	getExampleFilename: function(componentpath) {
		return path.join(path.dirname(componentpath),  'examples.md');
	}
};

function readConfig() {
	try {
		var configDir = findup.sync(__dirname, CONFIG_FILENAME);
	}
	catch (e) {<commit_msg>Default examples file: examples.md → Readme.md.<commit_after>var path = require('path');
var findup = require('findup');
var _ = require('lodash');

var CONFIG_FILENAME = 'styleguide.config.js';
var DEFAULT_CONFIG = {
	title: 'Style guide',
	serverHost: 'localhost',
	serverPort: 3000,
	getExampleFilename: function(componentpath) {
		return path.join(path.dirname(componentpath),  'Readme.md');
	}
};

function readConfig() {
	try {
		var configDir = findup.sync(__dirname, CONFIG_FILENAME);
	}
	catch (e) {
{'fraction_non_alphanumeric': 0.14939024390243902, 'fraction_numerical': 0.008130081300813009, 'mean_word_length': 5.700680272108843, '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': '5961625', 'n_tokens_mistral': 346, 'n_tokens_neox': 328, 'n_words': 73}