<commit_before>var fs = require('fs')

var pkg = require('../package.json')

var path = './doc/js-data-localstorage/' + pkg.version + '/styles/'

var files = fs.readdirSync(path)
files.forEach(function (file) {
  if (file.indexOf('site') === 0) {
    if (file.indexOf('lumen') === -1 && file.indexOf('dibs') === -1) {
      fs.unlinkSync(path + file)
    }
  }
})<commit_msg>Update script<commit_after>var fs = require('fs')

var pkg = require('../package.json')

var path = './doc/js-data/' + pkg.version + '/styles/'

var files = fs.readdirSync(path)
files.forEach(function (file) {
  if (file.indexOf('site') === 0) {
    if (file.indexOf('lumen') === -1 && file.indexOf('dibs') === -1) {
      fs.unlinkSync(path + file)
    }
  }
})

path = './doc/js-data/' + pkg.version

files = fs.readdirSync(path)
files.forEach(function (file) {
  if (file.indexOf('.html') === file.length - 5) {
    var content = fs.readFileSync(path + '/' + file, { encoding: 'utf8' })
    content = content.replace(/\/home\/ubuntu\/workspace\//gi, '')
    fs.writeFileSync(path + '/' + file, content, { encoding: 'utf8' })
  }
})
{'fraction_non_alphanumeric': 0.2254283137962128, 'fraction_numerical': 0.008115419296663661, 'mean_word_length': 3.269230769230769, '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': '5172806', 'n_tokens_mistral': 411, 'n_tokens_neox': 400, 'n_words': 77}