<commit_before>const test = require('tape')
const minify = require('../minify.js')

test('minify', t => {
  minify(`
    /* comment */

    (function(long){
      // comment
      console.log(long * 2)
    })(1)
  `)
  .then(min => t.equal(min, '!function(o){console.log(2*o)}(1);'))
  .then(() => t.end())
  .catch(err => console.log(err))
})<commit_msg>uses tape fail when chatching error<commit_after>const test = require('tape')
const minify = require('../minify.js')

test('minify', t => {
  minify(`
    /* comment */

    (function(long){
      // comment
      console.log(long * 2)
    })(1)
  `)
  .then(min => t.equal(min, '!function(o){console.log(2*o)}(1);'))
  .then(() => t.end())
  .catch(err => t.fail(err))
})
{'fraction_non_alphanumeric': 0.24484181568088034, 'fraction_numerical': 0.011004126547455296, 'mean_word_length': 3.0898876404494384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4409810', 'n_tokens_mistral': 282, 'n_tokens_neox': 272, 'n_words': 49}