<commit_before>'use strict';

const pkgJson = require('./package.json');
const fs = require('fs');


const CURRENT_VERSION = pkgJson.version;


fs.writeFile('./src/app-version.ts', `export const APP_VERSION = "${CURRENT_VERSION}";`, (err) => {
  if (err) throw err;
  console.log("Version environment variable updated.");
});

fs.readFile('./src/assets/service-worker.js', {encoding: 'utf8'}, (err, data) => {
  if (err) throw err;

  const newData = data
    .replace(/const VERSION = '[\S].*';/g, `const VERSION = '${CURRENT_VERSION}';`);

  fs.writeFile('./src/service-worker.js', newData, (err) => {
    if (err) throw err;
    console.log("Service worker version updated.");
  });
});<commit_msg>fix version.bump path error<commit_after>'use strict';

const pkgJson = require('./package.json');
const fs = require('fs');


const CURRENT_VERSION = pkgJson.version;


fs.writeFile('./src/app-version.ts', `export const APP_VERSION = "${CURRENT_VERSION}";`, (err) => {
  if (err) throw err;
  console.log("Version environment variable updated.");
});

fs.readFile('./src/service-worker.js', {encoding: 'utf8'}, (err, data) => {
  if (err) throw err;

  const newData = data
    .replace(/const VERSION = '[\S].*';/g, `const VERSION = '${CURRENT_VERSION}';`);

  fs.writeFile('./src/service-worker.js', newData, (err) => {
    if (err) throw err;
    console.log("Service worker version updated.");
  });
});
{'fraction_non_alphanumeric': 0.20723917672107878, 'fraction_numerical': 0.0014194464158978, 'mean_word_length': 4.222222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4463395', 'n_tokens_mistral': 473, 'n_tokens_neox': 462, 'n_words': 111}