<commit_before>import * as fs from 'fs';
import * as yaml from 'js-yaml';

export const configDirPath = `${__dirname}/../.config`;
export const configPath = `${configDirPath}/config.yml`;

let config: IConfig;

try {
	config = yaml.safeLoad(fs.readFileSync(configPath, 'utf8')) as IConfig;
} catch (e) {

}

export default Object.assign(config || {}, {
	host: config ? config.url.substr(config.url.indexOf('://') + 3) : undefined
}) as IConfig & {
	host: string;
};

export interface IConfig {<commit_msg>specify nope<commit_after>import * as fs from 'fs';
import * as yaml from 'js-yaml';

export const configDirPath = `${__dirname}/../.config`;
export const configPath = `${configDirPath}/config.yml`;

let config: IConfig;

try {
	config = yaml.safeLoad(fs.readFileSync(configPath, 'utf8')) as IConfig;
} catch (e) {
	// nope
}

export default Object.assign(config || {}, {
	host: config ? config.url.substr(config.url.indexOf('://') + 3) : undefined
}) as IConfig & {
	host: string;
};

export interface IConfig {
{'fraction_non_alphanumeric': 0.1710914454277286, 'fraction_numerical': 0.003933136676499509, 'mean_word_length': 4.532608695652174, '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': '6089695', 'n_tokens_mistral': 350, 'n_tokens_neox': 345, 'n_words': 90}