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

use Rack::Cors do
  allow do
    origins 'localhost:3000', '127.0.0.1:3000', "<%= ENV['URL'] %>",
            /http:\/\/192\.168\.0\.\d{1,3}(:\d+)?/
            # regular expressions can be used here

    resource '/file/list_all/', :headers => 'x-domain-token'
    resource '/file/at/*',
        :methods => [:get, :post, :put, :delete, :options],
        :headers => 'x-domain-token',
        :expose  => ['Some-Custom-Response-Header'],
        :max_age => 600
        # headers to expose
  end

  allow do
    origins '*'
    resource '/public/*', :headers => :any, :methods => :get
  end
end

require ::File.expand_path('../config/environment', __FILE__)
run Rails.application<commit_msg>(rack-cors): Remove rack changes<commit_after># This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment', __FILE__)
run Rails.application
{'fraction_non_alphanumeric': 0.1712820512820513, 'fraction_numerical': 0.02666666666666667, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 11, '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': '4903720', 'n_tokens_mistral': 329, 'n_tokens_neox': 306, 'n_words': 85}