<commit_before>
Object.notImplemented = (constructor, method) ->
  constructor::[method] = -> throw new Error "Method #{method} must be implemented by #{constructor}"

Object::tap = (obj, fn) ->
  fn(obj)
  obj

Object::isEmpty = ->
  for own key of this
    return false
  true

Number::toPaddedString = (length, base = 10) ->
  string = this.toString(base)
  string = "0#{string}" while string.length < length
  string
<commit_msg>fix Object::tap<commit_after>
Object.notImplemented = (constructor, method) ->
  constructor::[method] = -> throw new Error "Method #{method} must be implemented by #{constructor}"

Object::tap = (fn) ->
  fn(this)
  this

Object::isEmpty = ->
  for own key of this
    return false
  true

Number::toPaddedString = (length, base = 10) ->
  string = this.toString(base)
  string = "0#{string}" while string.length < length
  string

{'fraction_non_alphanumeric': 0.14219653179190753, 'fraction_numerical': 0.006936416184971098, 'mean_word_length': 4.005780346820809, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1040686', 'n_tokens_mistral': 275, 'n_tokens_neox': 269, 'n_words': 82}