<commit_before>module DecentExposure
  class Strategy
    attr_reader :controller, :inflector, :options

    def initialize(controller, inflector, options={})
      @controller, @inflector, @options = controller, inflector, options
    end

    def name
      inflector.name
    end

    def options
      configuration.options.merge(@options)
    end

    def resource
      raise 'Implement in subclass'
    end

    protected

    def configuration
      controller.class._decent_configurations[config_method]
    end

    def model
      inflector.constant
    end

    def params
      controller.send(params_method)
    end

    def request
      controller.request
    end

    private

    def config_method
      @options[:config] || :default
    end

    def params_method
      options[:params] || :params
    end
  end
end
<commit_msg>Remove cruft<commit_after>module DecentExposure
  class Strategy
    attr_reader :controller, :inflector, :options

    def initialize(controller, inflector, options={})
      @controller, @inflector, @options = controller, inflector, options
    end

    def name
      inflector.name
    end

    def resource
      raise 'Implement in subclass'
    end

    protected

    def model
      inflector.constant
    end

    def params
      controller.send(params_method)
    end

    def request
      controller.request
    end

    private

    def params_method
      options[:params] || :params
    end
  end
end

{'fraction_non_alphanumeric': 0.06143344709897611, 'fraction_numerical': 0.0, 'mean_word_length': 2.449411764705882, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6864351', 'n_tokens_mistral': 419, 'n_tokens_neox': 405, 'n_words': 116}