<commit_before>OriginalBLAKE2s = require "blake2s-js"

# Exports a BLAKE2s subclass with a more convenient API for our purposes.
module.exports = class BLAKE2s extends OriginalBLAKE2s
  constructor: (params) ->
    OriginalBLAKE2s.call(this, params.length)

  update: (input) ->
    OriginalBLAKE2s::update.call(this, input)
    return this
<commit_msg>Let BLAKE2s accept key parameter with tip of the hat to GR.<commit_after>OriginalBLAKE2s = require "blake2s-js"

# Exports a BLAKE2s subclass with a more convenient API for our purposes.
module.exports = class BLAKE2s extends OriginalBLAKE2s
  constructor: (params) ->
    OriginalBLAKE2s.call(this, params.length, params.key)

  update: (input) ->
    OriginalBLAKE2s::update.call(this, input)
    return this

{'fraction_non_alphanumeric': 0.08769633507853403, 'fraction_numerical': 0.01963350785340314, 'mean_word_length': 4.583941605839416, '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': '317789', 'n_tokens_mistral': 260, 'n_tokens_neox': 255, 'n_words': 72}