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

'use strict';

const program = require('commander');
const logo = require('turbo-logo');
const path = require('path');
const getPort = require('get-port');
const ora = require('ora');
const chalk = require('chalk');
const opn = require('opn');
const { inspect } = require('util');
const pkgJson = require('./package');
const pingy = require('./pingy');
const init = require('./init');
const { getPingyJson, setPingyJson } = require('./pingyJson');
const Configstore = require('configstore');

const conf = new Configstore(pkgJson.name, { version: pkgJson.version });
global.conf = conf;

function run() {
  logo('Pingy');
  console.log('\n');

  program.version(pkgJson.version);

  program
    .command('init')
    .description('Initialise a new or existing website using Pingy')
    .option('--yarn', 'Use Yarn instead of NPM for installing packages')
    .option(
      '--global-pingy',<commit_msg>[cli] Save package version to config<commit_after>#!/usr/bin/env node

'use strict';

const program = require('commander');
const logo = require('turbo-logo');
const path = require('path');
const getPort = require('get-port');
const ora = require('ora');
const chalk = require('chalk');
const opn = require('opn');
const { inspect } = require('util');
const pkgJson = require('./package');
const pingy = require('./pingy');
const init = require('./init');
const { getPingyJson, setPingyJson } = require('./pingyJson');
const Configstore = require('configstore');

const conf = new Configstore(pkgJson.name, {});
conf.set('version', pkgJson.version);
global.conf = conf;

function run() {
  logo('Pingy');
  console.log('\n');

  program.version(pkgJson.version);

  program
    .command('init')
    .description('Initialise a new or existing website using Pingy')
    .option('--yarn', 'Use Yarn instead of NPM for installing packages')
    .option(
      '--global-pingy',
{'fraction_non_alphanumeric': 0.17687074829931973, 'fraction_numerical': 0.0, 'mean_word_length': 4.724550898203593, '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': '2230159', 'n_tokens_mistral': 598, 'n_tokens_neox': 580, 'n_words': 160}