<commit_before>import { expect } from 'chai'
import head from '../functions/head'

describe( 'head', () => {
  it('returns the first element of an array', () => {
    expect( head([1,2,3]) ).to.eql( 1 )
  }
  it('returns the first element of a string', () => {
    expect( head('asdf') ).to.eql( 'a' )
  })

  it('returns undefined when passed an empty array', () => {
    expect( head([]) ).to.eql( undefined )
  })

  it('returns undefined when passed an empty string', () => {
    expect( head('') ).to.eql( undefined )
  })

  it('returns undefined when passed an object', () => {
    expect( head('') ).to.eql( undefined )
  })
})
<commit_msg>fix mysterious deleted close parenthesis<commit_after>import { expect } from 'chai'
import head from '../functions/head'

describe.only( 'head', () => {
  it('returns the first element of an array', () => {
    expect( head([1,2,3]) ).to.eql( 1 )
  })
  it('returns the first element of a string', () => {
    expect( head('asdf') ).to.eql( 'a' )
  })

  it('returns undefined when passed an empty array', () => {
    expect( head([]) ).to.eql( undefined )
  })

  it('returns undefined when passed an empty string', () => {
    expect( head('') ).to.eql( undefined )
  })

  it('returns undefined when passed an object', () => {
    expect( head('') ).to.eql( undefined )
  })
})

{'fraction_non_alphanumeric': 0.200150489089541, 'fraction_numerical': 0.006019563581640331, 'mean_word_length': 3.2628205128205128, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '2841544', 'n_tokens_mistral': 442, 'n_tokens_neox': 431, 'n_words': 132}