<commit_before>module.exports = class
  @_addition: (a, b) -> (a + b)
  @_multiplication: (a, b) -> (a * b)

  @sum: (array) =>
    array.reduce(@_addition, 0)

  @product: (array) =>
    array.reduce(@_multiplication, 0)<commit_msg>Add some more hashing functions<commit_after>module.exports = class
  @_addition: (a, b) -> (a + b)
  @_multiplication: (a, b) -> (a * b)

  @sum: (array) =>
    array.reduce(@_addition, 0)

  @reverseSum: (array) =>
    array.reverse().reduce(@_addition, 0)

  @product: (array) =>
    array.reduce(@_multiplication, 0)

  @reverseProduct: (array) =>
    array.reverse().reduce(@_multiplication, 0)
{'fraction_non_alphanumeric': 0.1930379746835443, 'fraction_numerical': 0.00949367088607595, 'mean_word_length': 3.83206106870229, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '6315347', 'n_tokens_mistral': 248, 'n_tokens_neox': 229, 'n_words': 51}