<commit_before>#!/usr/bin/env node

'use strict';

const Path = require('path');
const semver = require('semver');
const Liftoff = require('liftoff');
const chalk = require('chalk');
const updateNofifier = require('update-notifier');
const cliPackage = require('../package.json');

const notifier = updateNofifier({
    pkg: cliPackage,
});

const FractalCli = new Liftoff({
    processTitle: 'fractal',
    moduleName: '@frctl/fractal',
    configName: 'fractal',
    extensions: {
        '.config.js': null,
        '.js': null,
    },
    // ,
    // v8flags: ['--harmony']
});

/*
 * Figure out what the Fractal CLI config file is called.
 *
 * - See if there is a package.json file present that contains a specific filename
 * - Otherwise look for the default fractal.config.js or fractal.js
 */

let config = {};
try {
    const projectPackage = require(Path.join(process.cwd(), 'package.json'));
    if (projectPackage.fractal && projectPackage.fractal.main) {
        config.configPath = Path.join(process.cwd(), projectPackage.fractal.main);
    }<commit_msg>refactor: fix typo in update-notifier require name (#746)<commit_after>#!/usr/bin/env node

'use strict';

const Path = require('path');
const semver = require('semver');
const Liftoff = require('liftoff');
const chalk = require('chalk');
const updateNotifier = require('update-notifier');
const cliPackage = require('../package.json');

const notifier = updateNotifier({
    pkg: cliPackage,
});

const FractalCli = new Liftoff({
    processTitle: 'fractal',
    moduleName: '@frctl/fractal',
    configName: 'fractal',
    extensions: {
        '.config.js': null,
        '.js': null,
    },
    // ,
    // v8flags: ['--harmony']
});

/*
 * Figure out what the Fractal CLI config file is called.
 *
 * - See if there is a package.json file present that contains a specific filename
 * - Otherwise look for the default fractal.config.js or fractal.js
 */

let config = {};
try {
    const projectPackage = require(Path.join(process.cwd(), 'package.json'));
    if (projectPackage.fractal && projectPackage.fractal.main) {
        config.configPath = Path.join(process.cwd(), projectPackage.fractal.main);
    }
{'fraction_non_alphanumeric': 0.15077910174152154, 'fraction_numerical': 0.00229147571035747, 'mean_word_length': 3.55741127348643, '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': '1984185', 'n_tokens_mistral': 705, 'n_tokens_neox': 686, 'n_words': 183}