<commit_before>'use strict';

/* eslint-disable no-console */

const fs = require('fs');
const path = require('path');
const findup = require('findup');
const semverUtils = require('semver-utils');
const prettyjson = require('prettyjson');
const isFunction = require('lodash/isFunction');
const isPlainObject = require('lodash/isPlainObject');
const isString = require('lodash/isString');
const merge = require('lodash/merge');
const isFinite = require('lodash/isFinite');
const isUndefined = require('lodash/isUndefined');
const utils = require('./utils/utils');
const consts = require('./consts');
const StyleguidistError = require('./utils/error');
const reactDocgen = require('react-docgen');
const displayNameHandler = require('react-docgen-displayname-handler').default;

const CONFIG_FILENAME = 'styleguide.config.js';
const DEFAULT_CONFIG = {
	components: null,
	sections: null,
	skipComponentsWithoutExample: false,
	defaultExample: false,
	showCode: false,
	title: 'Style guide',
	styleguideDir: 'styleguide',
	assetsDir: undefined,
	template: path.join(__dirname, './templates/index.html'),
	serverHost: 'localhost',
	serverPort: 3000,
	highlightTheme: 'base16-light',
	previewDelay: 500,
	verbose: false,
	getExampleFilename: componentpath => path.join(path.dirname(componentpath), 'Readme.md'),
	getComponentPathLine: componentpath => componentpath,
	webpackConfig: null,
	updateWebpackConfig: null,
	context: {
		React: 'react',
		_: 'lodash',
	},
	handlers: reactDocgen.defaultHandlers.concat(displayNameHandler),
	theme: {},
	styles: {},<commit_msg>Feat: Remove global Lodash<commit_after>'use strict';

/* eslint-disable no-console */

const fs = require('fs');
const path = require('path');
const findup = require('findup');
const semverUtils = require('semver-utils');
const prettyjson = require('prettyjson');
const isFunction = require('lodash/isFunction');
const isPlainObject = require('lodash/isPlainObject');
const isString = require('lodash/isString');
const merge = require('lodash/merge');
const isFinite = require('lodash/isFinite');
const isUndefined = require('lodash/isUndefined');
const utils = require('./utils/utils');
const consts = require('./consts');
const StyleguidistError = require('./utils/error');
const reactDocgen = require('react-docgen');
const displayNameHandler = require('react-docgen-displayname-handler').default;

const CONFIG_FILENAME = 'styleguide.config.js';
const DEFAULT_CONFIG = {
	components: null,
	sections: null,
	skipComponentsWithoutExample: false,
	defaultExample: false,
	showCode: false,
	title: 'Style guide',
	styleguideDir: 'styleguide',
	assetsDir: undefined,
	template: path.join(__dirname, './templates/index.html'),
	serverHost: 'localhost',
	serverPort: 3000,
	highlightTheme: 'base16-light',
	previewDelay: 500,
	verbose: false,
	getExampleFilename: componentpath => path.join(path.dirname(componentpath), 'Readme.md'),
	getComponentPathLine: componentpath => componentpath,
	webpackConfig: null,
	updateWebpackConfig: null,
	context: {
		React: 'react',
	},
	handlers: reactDocgen.defaultHandlers.concat(displayNameHandler),
	theme: {},
	styles: {},
{'fraction_non_alphanumeric': 0.14673913043478262, 'fraction_numerical': 0.005754475703324808, 'mean_word_length': 6.8225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7174955', 'n_tokens_mistral': 980, 'n_tokens_neox': 952, 'n_words': 214}