<commit_before>class Request
  include Mongoid::Document

  field :host, type: String
  field :port, type: Numeric
  field :path, type: String
  field :body, type: Hash
end
<commit_msg>Add Request#call<commit_after>class Request
  include Mongoid::Document

  field :host,    type: String
  field :port,    type: Numeric
  field :path,    type: String
  field :body,    type: Hash
  field :headers, type: Hash

  def call
    requester.call
  end

  private

  def requester
    @requester ||= Requester.new(
      "http://#{host}:#{port}",
      path,
      body: body,
      headers: headers
    )
  end
end

{'fraction_non_alphanumeric': 0.10327868852459017, 'fraction_numerical': 0.0, 'mean_word_length': 2.9419354838709677, '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': '2090973', 'n_tokens_mistral': 201, 'n_tokens_neox': 198, 'n_words': 63}