<commit_before>const boilerplates = readDirFiles('./boilerplate/')
Object.keys(boilerplates).forEach(key => {
  const val = boilerplates[key]
  boilerplates[key] = o => val.replace(/\$\{(\w+)\}/g, (_, g1) => o[g1])
})

module.exports = {
  boilerplate: {
    // where to place generated components
    dir: 'src/components',
    files: boilerplates,
    // prefix of the tag of a component
    prefix: 'c'
  },

  md2vue: {
    // globs identifying those `.md` files
    // to be transformed into `.vue`
    globs: [
      'src/components/**/index.md',
      'docs/content/**/*.md'
    ],
    // where to write `.vue`
    output: 'docs/pages',
    vueTools (name, uid) {
      return `<input id="${uid}" type="checkbox" /><label for="${uid}"></label>`
    }
  },

  rollup: {
    name: 'Clair',
    input: 'src/js/entry.js',
    output: [
      {
        format: 'umd',
        file: 'dist/clair.js'
      },
      {
        format: 'es',
        file: 'dist/clair.esm.js'
      },
      {
        format: 'cjs',
        file: 'dist/clair.common.js'
      }
    ],
<commit_msg>chore(docs): add custom tool for demo blocks<commit_after>const boilerplates = readDirFiles('./boilerplate/')
Object.keys(boilerplates).forEach(key => {
  const val = boilerplates[key]
  boilerplates[key] = o => val.replace(/\$\{(\w+)\}/g, (_, g1) => o[g1])
})

module.exports = {
  boilerplate: {
    // where to place generated components
    dir: 'src/components',
    files: boilerplates,
    // prefix of the tag of a component
    prefix: 'c'
  },

  md2vue: {
    // globs identifying those `.md` files
    // to be transformed into `.vue`
    globs: [
      'src/components/**/index.md',
      'docs/content/**/*.md'
    ],
    // where to write `.vue`
    output: 'docs/pages',
    vueTools (name, uid) {
      return `<input id="${uid}" type="checkbox" /><label for="${uid}"></label><c-run-online uid="${uid}"/>`
    }
  },

  rollup: {
    name: 'Clair',
    input: 'src/js/entry.js',
    output: [
      {
        format: 'umd',
        file: 'dist/clair.js'
      },
      {
        format: 'es',
        file: 'dist/clair.esm.js'
      },
      {
        format: 'cjs',
        file: 'dist/clair.common.js'
      }
    ],

{'fraction_non_alphanumeric': 0.18978761861726162, 'fraction_numerical': 0.0027112516945323093, 'mean_word_length': 2.1315417256011315, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 16, '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': '1251117', 'n_tokens_mistral': 809, 'n_tokens_neox': 771, 'n_words': 165}