<commit_before>module.exports =

  # Return a function which creates a new object with the given prototype and initializes this object with the given
  # constructor function.
  # Also copy optional `extend` object content to returned function.
  createConstructor: (prototype, constructor, extend) ->
    # Create function which forwards to given constructor function.
    F = (args) ->
      constructor.apply @, args
      @ # overwrite constructor return value
    # Set functions prototype field.
    F.prototype = prototype
    # Create function which creates a new object with the given prototype and initializes with the given constructor.
    f = ->
      new F arguments<commit_msg>make "constructor" param optional<commit_after>module.exports =

  # Return a function which creates a new object with the given prototype and initializes this object with the given
  # constructor function (if given).
  # Also copy optional `extend` object content to returned function.
  createConstructor: (prototype, constructor, extend) ->
    # Create function which forwards to given constructor function (if given).
    F = if not constructor? then -> else
      (args) ->
        constructor.apply @, args
        @ # overwrite constructor return value
    # Set functions prototype field.
    F.prototype = prototype
    # Create function which creates a new object with the given prototype and initializes with the given constructor.
    f = ->
      new F arguments
{'fraction_non_alphanumeric': 0.0605854322668482, 'fraction_numerical': 0.0, 'mean_word_length': 3.388059701492537, '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': '1584808', 'n_tokens_mistral': 331, 'n_tokens_neox': 324, 'n_words': 167}