<commit_before>// @flow
import test from 'tape'

import { makeError } from './utils'

test('utils.makeError', assert => {
  const err = makeError('hello', 'world');
  assert.equals(
    err.message, 'hello world',
    'correctly formats the error message'
  );
  assert.end();
});<commit_msg>:white_check_mark: [utils] Update test for makeError<commit_after>// @flow
import test from 'tape'

import { makeError } from './utils'

test('utils.makeError', assert => {
  const spaceErr = makeError('hello', 'world');
  assert.equals(
    spaceErr.message, 'hello world',
    'correctly formats spaces'
  );

  const newlineErr = makeError('hello', '\n', 'world');
  assert.equals(
    newlineErr.message, 'hello\nworld',
    'correctly formats newlines'
  );

  const spaceAndNewlineErr = makeError(
    'there should be a space between',
    'these lines but there should not',
    '\n',
    'be a space at the start of this line'
  );
  assert.equals(
    spaceAndNewlineErr.message,
    'there should be a space between these lines but there should not\nbe a space at the start of this line',
    'correctly formats a combination of spaces and newlines'
  );

  assert.end();
});
{'fraction_non_alphanumeric': 0.13157894736842105, 'fraction_numerical': 0.0, 'mean_word_length': 3.6785714285714284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6929583', 'n_tokens_mistral': 365, 'n_tokens_neox': 361, 'n_words': 121}