<commit_before>_ = require("underscore")

module.exports = (engine) ->
  engine.defineMatcher "eq",
    match: (actual, expected) -> _.isEqual(actual, expected)
    failMessage: (actual, expected) -> "expected #{JSON.stringify(actual)} to be equal to #{JSON.stringify(expected)}"
    reverseFailMessage: (actual, expected) -> "expected #{JSON.stringify(actual)} to not be equal to #{JSON.stringify(expected)}"<commit_msg>simplified eq matcher<commit_after>_ = require("underscore")
s = JSON.stringify

module.exports = (engine) ->
  engine.defineMatcher "eq",
    match: (actual, expected) -> _.isEqual(actual, expected)
    errorMessage: (expected) -> "be equal to #{s expected}"
{'fraction_non_alphanumeric': 0.1588235294117647, 'fraction_numerical': 0.0, 'mean_word_length': 5.247706422018348, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '4973933', 'n_tokens_mistral': 201, 'n_tokens_neox': 197, 'n_words': 53}