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

const git = require('simple-git');
const changelog = require('generate-changelog');
const fs = require('fs');
const idx = require('idx');
const argv = require('minimist')(process.argv.slice(1));

git().tags((err, tags) => {
  const currentChangelog = fs.readFileSync('./CHANGELOG.md');
  const matched = tags.latest != null ? tags.latest.match(/v\d+.\d+.\d+-(\d+)/) : 'v0.0.1-0';
  const build = (idx(matched, _ => Number(_[1])) || 0) + 1;

  changelog
    .generate({<commit_msg>chore(changelog): update changelog.js<commit_after>#!/usr/bin/env node

const git = require('simple-git');
const changelog = require('generate-changelog');
const fs = require('fs');
const idx = require('idx');
const argv = require('minimist')(process.argv.slice(1));

git().tags((err, tags) => {
  const currentChangelog = fs.readFileSync('./CHANGELOG.md');
  const matched = tags.latest.match(/v\d+.\d+.\d+-(\d+)/);
  const build = (idx(matched, _ => Number(_[1])) || 0) + 1;

  changelog
    .generate({
{'fraction_non_alphanumeric': 0.22135161606268364, 'fraction_numerical': 0.011753183153770812, 'mean_word_length': 4.554347826086956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3652679', 'n_tokens_mistral': 370, 'n_tokens_neox': 365, 'n_words': 70}