<commit_before>module Engine
  class Server < Sinatra::Base

    private
<commit_msg>server<commit_after>module Engine
  class Server < Sinatra::Base
    get '/' do
      content_type :json
      params[:response] = handle_get params
      params.to_json
    end

    post '/' do
      content_type :json
      response = handle_post params
      { response:response }.to_json
    end

    private

{'fraction_non_alphanumeric': 0.07537688442211055, 'fraction_numerical': 0.0, 'mean_word_length': 2.6272727272727274, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3786163', 'n_tokens_mistral': 119, 'n_tokens_neox': 115, 'n_words': 31}