<commit_before>class CarbonDispatch::Request
  getter :request, :path_params

  delegate :path, @request
  delegate :method, @request
  delegate :headers, @request

  def initialize(@request)
    @path_params = Hash(String, String?).new
  end

  def cookies
    @cookies ||= HTTP::Cookies.from_headers(request.headers)
  end

  def params
    @params ||= request_params.merge(path_params.merge(query_params))
  end

  def query_params
    query_params = @query_params
    return query_params if query_params

    query_params = Hash(String, String?).new
<commit_msg>added body to request<commit_after>class CarbonDispatch::Request
  getter :request, :path_params

  delegate :path, @request
  delegate :method, @request
  delegate :headers, @request
  delegate :body, @request

  def initialize(@request)
    @path_params = Hash(String, String?).new
  end

  def cookies
    @cookies ||= HTTP::Cookies.from_headers(request.headers)
  end

  def params
    @params ||= request_params.merge(path_params.merge(query_params))
  end

  def query_params
    query_params = @query_params
    return query_params if query_params

    query_params = Hash(String, String?).new

{'fraction_non_alphanumeric': 0.09682947729220223, 'fraction_numerical': 0.0, 'mean_word_length': 4.382488479262673, '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': '6062388', 'n_tokens_mistral': 368, 'n_tokens_neox': 347, 'n_words': 88}