<commit_before>module Acme
  module Authorizer
    class Engine < ::Rails::Engine
      InvalidConfigurationError = Class.new(StandardError)

      isolate_namespace Acme::Authorizer
      initializer 'acme-authorizer.config.force_ssl_assertion' do |app|
        raise InvalidConfigurationError, 'force_ssl can not be enabled globally. see http://guides.rubyonrails.org/action_controller_overview.html#force-https-protocol' if app.config.force_ssl
      end
    end
  end
end<commit_msg>exclude acme-authorizer path from force_ssl<commit_after>module Acme
  module Authorizer
    class Engine < ::Rails::Engine
      isolate_namespace Acme::Authorizer
      initializer 'acme-authorizer.config.set_ssl_options' do |app|
        app.config.ssl_options.deep_merge! redirect: { exclude: -> request { request.path =~  /\A\/\.well-known\/acme-challenge/ } }
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09204545454545454, 'fraction_numerical': 0.0, 'mean_word_length': 3.7621621621621624, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '7633260', 'n_tokens_mistral': 271, 'n_tokens_neox': 261, 'n_words': 57}