<commit_before>import compact from '../lib/compact'
import expect from 'expect.js'

describe.only('compact', () => {
  it('Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are falsey.', () => {
    expect( compact( [ false, null, 0, "", undefined, NaN ] ) ).to.eql( [] )
  })

  it('Creates an array with all falsey values removed.', () => {
    expect( compact( [ false, null, 0, "", undefined, NaN, 'Devon' ] ) ).to.eql( ['Devon'] )
  })

  it('Creates an array with all falsey values removed.', () => {
    expect( compact( [ false, null, 0, "", undefined, NaN, 'Devon', 5, true ] ) ).to.eql( [ 'Devon', 5, true ] )
  })
})<commit_msg>remove .only on describe so all test can run<commit_after>import compact from '../lib/compact'
import expect from 'expect.js'

describe('compact', () => {
  it('Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are falsey.', () => {
    expect( compact( [ false, null, 0, "", undefined, NaN ] ) ).to.eql( [] )
  })

  it('Creates an array with all falsey values removed.', () => {
    expect( compact( [ false, null, 0, "", undefined, NaN, 'Devon' ] ) ).to.eql( ['Devon'] )
  })

  it('Creates an array with all falsey values removed.', () => {
    expect( compact( [ false, null, 0, "", undefined, NaN, 'Devon', 5, true ] ) ).to.eql( [ 'Devon', 5, true ] )
  })
})
{'fraction_non_alphanumeric': 0.19828815977175462, 'fraction_numerical': 0.008559201141226819, 'mean_word_length': 3.4824281150159746, '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': '5685009', 'n_tokens_mistral': 484, 'n_tokens_neox': 453, 'n_words': 158}