<commit_before>require "sinatra"
require "json"
require_relative "src/orders_finder"

get "/:email/:order_numbers" do
  content_type "application/json"

  response["Access-Control-Allow-Origin"] = "*"

  { orders: orders }.to_json
end

private

def orders
  OrdersFinder.find(params[:email], params[:order_numbers].split(","))
end<commit_msg>Add / so I know what todo when I forget everything<commit_after>require "sinatra"
require "json"
require_relative "src/orders_finder"

get "/" do
  content_type "text/plain"

  "Nothing to see here. Visit /you@example.com/1234,5678,9012"
end

get "/:email/:order_numbers" do
  content_type "application/json"

  response["Access-Control-Allow-Origin"] = "*"

  { orders: orders }.to_json
end

private

def orders
  OrdersFinder.find(params[:email], params[:order_numbers].split(","))
end
{'fraction_non_alphanumeric': 0.1399276236429433, 'fraction_numerical': 0.014475271411338963, 'mean_word_length': 5.384615384615385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '4160922', 'n_tokens_mistral': 287, 'n_tokens_neox': 276, 'n_words': 63}