<commit_before>require 'pretty_request'

%w[ * ].each do |route|

  get route do
    write_to_log(PrettyRequest.new(request).print)
    200
  end

  post route do
    write_to_log(PrettyRequest.new(request).print)
    200
  end

end
<commit_msg>support PUT and DELETE methods<commit_after>require 'pretty_request'

%w[ * ].each do |route|

  get route do
    write_to_log(PrettyRequest.new(request).print)
    200
  end

  post route do
    write_to_log(PrettyRequest.new(request).print)
    200
  end

  put route do
    write_to_log(PrettyRequest.new(request).print)
    200
  end

  delete route do
    write_to_log(PrettyRequest.new(request).print)
    200
  end

end

{'fraction_non_alphanumeric': 0.08928571428571429, 'fraction_numerical': 0.026785714285714284, 'mean_word_length': 3.3986928104575163, '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': '1278783', 'n_tokens_mistral': 263, 'n_tokens_neox': 236, 'n_words': 54}