<commit_before>
const { execSync }     = require('child_process'),
      { readFileSync } = require('fs'),
      semver           = require('semver');

const package          = readFileSync('./package.json'),
      pJson            = JSON.parse(package),
      priv_version     = pJson.version;

const public_version   = `${execSync('npm view jssm version')}`.trim(),
      last_commit_msg  = `${execSync('git show -s --format=%s')}`.trim().replace(/[^0-9a-z _\-=]/gi, '');



if (semver.valid(public_version)) {
  if (semver.valid(priv_version)) {
    if (semver.gt(public_version, priv_version)) {
      console.log(`Version regression: locally ${priv_version}, publicly ${public_version}`);
    } else {
      if (semver.gt(priv_version, public_version)) {

        try {

          console.log(`Version is updated; passing ☑\n  (public ${public_version}, private ${priv_version}\n\nApplying tags`);
          execSync(`git tag -a v${priv_version} -m ${JSON.stringify(last_commit_msg)}`);
          console.log(`  Committing`);
          execSync(`git commit -m ${JSON.stringify(last_commit_msg)}`);
          console.log(`  Pushing tags`);
          execSync(`git push origin --tags`);
          process.exit(0);

        } catch (e) {

          console.log("Error!\n=====\n");

          console.log( require('util').inspect(e) );
          console.log( `${e.output[2]}` );

          console.log("\n-----\n");

        }


      } else {
        console.log(`Version unchanged: locally ${priv_version}, publicly also ${public_version}`);
    } }<commit_msg>let's see what the error was in attempt 5 full automatic release, attempt 3<commit_after>
const { execSync }     = require('child_process'),
      { readFileSync } = require('fs'),
      semver           = require('semver');

const package          = readFileSync('./package.json'),
      pJson            = JSON.parse(package),
      priv_version     = pJson.version;

const public_version   = `${execSync('npm view jssm version')}`.trim(),
      last_commit_msg  = `${execSync('git show -s --format=%s')}`.trim().replace(/[^0-9a-z _\-=]/gi, '');



if (semver.valid(public_version)) {
  if (semver.valid(priv_version)) {
    if (semver.gt(public_version, priv_version)) {
      console.log(`Version regression: locally ${priv_version}, publicly ${public_version}`);
    } else {
      if (semver.gt(priv_version, public_version)) {

        try {

          console.log(`Version is updated; passing ☑\n  (public ${public_version}, private ${priv_version})\n\nApplying tags`);
          execSync(`git tag -a v${priv_version} -m ${JSON.stringify(last_commit_msg)}`);
          console.log(`  Committing`);
          execSync(`git commit -m ${JSON.stringify(last_commit_msg)}`);
          console.log(`  Pushing tags`);
          execSync(`git push origin --tags`);
          process.exit(0);

        } catch (e) {

          console.log("Error!\n=====\n");

          console.log( e.stdout.toString() );

          console.log("\n-----\n");
          console.log( e.stderr.toString() );

          console.log("\n-----\n");

          console.log( require('util').inspect(e) );

          console.log("\n=====\n");

        }


      } else {
        console.log(`Version unchanged: locally ${priv_version}, publicly also ${public_version}`);
    } }
{'fraction_non_alphanumeric': 0.1770739064856712, 'fraction_numerical': 0.0027149321266968325, 'mean_word_length': 2.5541264737406215, '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': '4872868', 'n_tokens_mistral': 1025, 'n_tokens_neox': 1007, 'n_words': 199}