<commit_before>const resolveMarkdownFiles = require('../resolve-markdown-files')
const formatMarkdownFile = require('../format-markdown-file')

module.exports = {
  command: ['format [files..]'],
  describe: 'Auto-format the given Markdown files',
  builder: function (yargs) {
    yargs.positional('files', {
      type: 'string'
    })
  },
  handler: async function ({ files }) {
    const markdownFiles = await resolveMarkdownFiles(files)
    return Promise.all(markdownFiles, function (markdownFile) {
      return formatMarkdownFile(markdownFile)
    })
  }
}<commit_msg>Alias `format` to `fmt`<commit_after>const resolveMarkdownFiles = require('../resolve-markdown-files')
const formatMarkdownFile = require('../format-markdown-file')

module.exports = {
  command: ['format [files..]', 'fmt [files..]'],
  describe: 'Auto-format the given Markdown files',
  builder: function (yargs) {
    yargs.positional('files', {
      type: 'string'
    })
  },
  handler: async function ({ files }) {
    const markdownFiles = await resolveMarkdownFiles(files)
    return Promise.all(markdownFiles, function (markdownFile) {
      return formatMarkdownFile(markdownFile)
    })
  }
}
{'fraction_non_alphanumeric': 0.14309906858594412, 'fraction_numerical': 0.0, 'mean_word_length': 4.094827586206897, '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': '4195587', 'n_tokens_mistral': 355, 'n_tokens_neox': 343, 'n_words': 77}