<commit_before>module.exports =

  # checks if actual object contains all expected properties and that the number values are similar
  toApprox: (expected, maxEps) ->
    for key, numb of expected
      expect(@actual[key]).toBeDefined()
      if (Math.abs @actual[key] - numb) > maxEps
        return false
    true<commit_msg>add default param<commit_after>module.exports =

  # checks if actual object contains all expected properties and that the number values are similar
  toApprox: (expected, maxEps = 0) ->
    for key, numb of expected
      expect(@actual[key]).toBeDefined()
      if (Math.abs @actual[key] - numb) > maxEps
        return false
    true
{'fraction_non_alphanumeric': 0.08885542168674698, 'fraction_numerical': 0.0015060240963855422, 'mean_word_length': 3.2903225806451615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6687208', 'n_tokens_mistral': 192, 'n_tokens_neox': 184, 'n_words': 68}