<commit_before>'use strict';

const fs = require('fs');
const message = require('./message');

const dirExist = boof => {
  try {
    fs.statSync(boof);
  } catch (e) {
    if (e.code === 'ENOENT') {
      message.warn(`${boof} doesn't exist!`);
      process.exit(1);
    } else {
      console.error(e);
      process.exit(1);
    }
  }

  return true;
};

const helpMessage = [
  'Example:',
  '  $ toth command [params] [flags]',
  '  $ toth new scss/*.scss --dir myFolder',
  '  $ toth serve --dir myFolder',
  'Commands:',
  '  ⇢ new   - Generates a styleguide at toth dir.',
  '  ⇢ serve - Up a server from toth folder at port 8080.',
  'Flags:',
  '  ⇢ --dir  - Change the directory.',
  '  ⇢ --port - Change the port of the server.'
].join('\n');

module.exports = {<commit_msg>Uses es6 tempalte strings in help message<commit_after>'use strict';

const fs = require('fs');
const message = require('./message');

const dirExist = boof => {
  try {
    fs.statSync(boof);
  } catch (e) {
    if (e.code === 'ENOENT') {
      message.warn(`${boof} doesn't exist!`);
      process.exit(1);
    } else {
      console.error(e);
      process.exit(1);
    }
  }

  return true;
};

const helpMessage = `
  Example:
    $ toth command [params] [flags]
    $ toth new scss/*.scss --dir myFolder
    $ toth serve --dir myFolder
  Commands:
    ⇢ new   - Generates a styleguide at toth dir.
    ⇢ serve - Up a server from toth folder at port 8080.
  Flags:
    ⇢ --dir  - Change the directory.
    ⇢ --port - Change the port of the server.
`;

module.exports = {
{'fraction_non_alphanumeric': 0.16581306017925737, 'fraction_numerical': 0.008322663252240717, 'mean_word_length': 2.4656319290465634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '166912', 'n_tokens_mistral': 577, 'n_tokens_neox': 571, 'n_words': 163}