<commit_before># This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment', __FILE__)
run Rails.application

require 'rack/cors'
use Rack::Cors do
  allow do
    origins '*'
    resource '*', headers: :any, methods: [:get, :post, :put, :patch, :delete, :options]
  end
end<commit_msg>Update config.ru for production informations<commit_after># This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment', __FILE__)

# Production namespace like `https://my_url/shiva/users`
# map '/shiva'
run Rails.application

require 'rack/cors'
use Rack::Cors do
  allow do
    origins '*'
    resource '*', headers: :any, methods: %i(get post put patch delete options)
  end
end
{'fraction_non_alphanumeric': 0.12643678160919541, 'fraction_numerical': 0.0, 'mean_word_length': 4.52112676056338, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1106626', 'n_tokens_mistral': 250, 'n_tokens_neox': 243, 'n_words': 83}