<commit_before>let fs = require('fs');
let path = require('path');

export { cliColor, isHarmonicProject, getConfig, titleToFilename };

// CLI color
function cliColor() {
    var clc = require('cli-color');
    return {
        info: clc.green,
        error: clc.red,
        warn: clc.yellowBright,
        message: clc.yellow
    };
}

// Check if harmonic.json file exists
function isHarmonicProject(sitePath = '.') {
    var clc = cliColor();

    try {
        getConfig(sitePath);
        return true;
    } catch (e) {
        console.log(
            clc.warn('It seems this is not an Harmonic project yet. \n') +
            clc.warn('Check your directory or run ') +
            clc.info.bgWhite.italic(' harmonic init ') +
            clc.warn(' to start a new Harmonic project.')
        );
        return false;
    }
}

function getConfig(sitePath = '.') {<commit_msg>Remove unnecessary defaults<commit_after>let fs = require('fs');
let path = require('path');

export { cliColor, isHarmonicProject, getConfig, titleToFilename };

// CLI color
function cliColor() {
    var clc = require('cli-color');
    return {
        info: clc.green,
        error: clc.red,
        warn: clc.yellowBright,
        message: clc.yellow
    };
}

// Check if harmonic.json file exists
function isHarmonicProject(sitePath) {
    var clc = cliColor();

    try {
        getConfig(sitePath);
        return true;
    } catch (e) {
        console.log(
            clc.warn('It seems this is not an Harmonic project yet. \n') +
            clc.warn('Check your directory or run ') +
            clc.info.bgWhite.italic(' harmonic init ') +
            clc.warn(' to start a new Harmonic project.')
        );
        return false;
    }
}

function getConfig(sitePath) {
{'fraction_non_alphanumeric': 0.12316384180790961, 'fraction_numerical': 0.0, 'mean_word_length': 2.225865209471767, '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': '6674571', 'n_tokens_mistral': 557, 'n_tokens_neox': 546, 'n_words': 148}