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

import inquirer from 'inquirer';
import isAdded from 'is-git-added';
import isGit from 'is-git-repository';
import getGitRemotes from 'get-git-remotes';
import getCommitRange from 'git-commit-range';
import taggedCommit from 'tagged-git-commit';
import updateNotifier from 'update-notifier';
import yargs from 'yargs';

import generateVersions from './helpers/generateVersions';
import getLatestVersion from './helpers/getLatestVersion';
import pkg from '../package.json';
import questions from './questions';
import tasks from './tasks';

const argv = yargs
  .usage('Usage: $0')
  .alias('v', 'version')
  .describe('v', 'Version number')
  .help('h')
  .alias('h', 'help')
  .argv;

updateNotifier({ pkg }).notify();

const cli = () => {
  const cwd = process.cwd();
  const latestTaggedCommit = taggedCommit({ path: cwd });<commit_msg>Fix: latest tagged commit to string (#4)<commit_after>#!/usr/bin/env node

import inquirer from 'inquirer';
import isAdded from 'is-git-added';
import isGit from 'is-git-repository';
import getGitRemotes from 'get-git-remotes';
import getCommitRange from 'git-commit-range';
import taggedCommits from 'tagged-git-commit';
import updateNotifier from 'update-notifier';
import yargs from 'yargs';

import generateVersions from './helpers/generateVersions';
import getLatestVersion from './helpers/getLatestVersion';
import pkg from '../package.json';
import questions from './questions';
import tasks from './tasks';

const argv = yargs
  .usage('Usage: $0')
  .alias('v', 'version')
  .describe('v', 'Version number')
  .help('h')
  .alias('h', 'help')
  .argv;

updateNotifier({ pkg }).notify();

const cli = () => {
  const cwd = process.cwd();
  const latestTaggedCommits = taggedCommits({ path: cwd });
  const latestTaggedCommit = latestTaggedCommits.length === 0 ? '' : latestTaggedCommits[0];
{'fraction_non_alphanumeric': 0.15483182060864922, 'fraction_numerical': 0.0026695141484249867, 'mean_word_length': 5.04516129032258, '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': '4836876', 'n_tokens_mistral': 606, 'n_tokens_neox': 589, 'n_words': 173}