<commit_before>'use babel'

export const compiler = false
export const minifier = false
export function process(contents) {
  const chunks = contents.split(/\r?\n/)
  if (chunks[chunks.length - 1] !== '') {
    chunks.push('')
  }
  return chunks.join('\n')
}<commit_msg>:new: Implement the package<commit_after>'use babel'

export const compiler = false
export const minifier = true

let uglify = null

export function process(contents, _, {config, state}) {
  if (uglify === null) {
    uglify = require('uglify-js')
  }
  const options = Object.assign({
    fromString: true,
    outSourceMap: 'processed.map'
  }, config.uglify)
  const processed = uglify.minify(contents, options)
  state.sourceMap = processed.map
  return processed.code.slice(0, -34)
}
{'fraction_non_alphanumeric': 0.1370223978919631, 'fraction_numerical': 0.005270092226613966, 'mean_word_length': 4.066666666666666, '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': '7265140', 'n_tokens_mistral': 250, 'n_tokens_neox': 248, 'n_words': 65}