<commit_before>class SpecialistDocumentBuilder
  def initialize(specialist_document_factory, id_generator)
    @document_factory = specialist_document_factory
    @id_generator = id_generator
  end

  def call(attrs)
    document_factory
      .call(id_generator.call, [])
      .tap { |d|
        d.update(attrs)
      }
  end

  private

  attr_reader :document_factory, :id_generator
end<commit_msg>Name parameters in SpecialistDocumentBuilder<commit_after>class SpecialistDocumentBuilder
  def initialize(specialist_document_factory, id_generator)
    @document_factory = specialist_document_factory
    @id_generator = id_generator
  end

  def call(attrs)
    document_factory
      .call(new_document_id, editions)
      .tap { |d|
        d.update(attrs)
      }
  end

  private

  attr_reader :document_factory, :id_generator

  def new_document_id
    id_generator.call
  end

  def editions
    []
  end
end
{'fraction_non_alphanumeric': 0.06528835690968444, 'fraction_numerical': 0.0, 'mean_word_length': 3.6464646464646466, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6534610', 'n_tokens_mistral': 287, 'n_tokens_neox': 274, 'n_words': 56}