<commit_before>module Presenters
  module Controller
    # Public: Finds the appropriate presenter
    #
    # model          - An instance of a class (usually a model or array of
    #                  models)
    # model_override - The name of the presenter to use instead (default: nil)
    #
    # Examples
    #
    #   present(Foo.find(1))
    #
    #   present(Foo.where([1, 2, 3]))
    #
    #   present(Foo.find(1), Bar)
    #   # => #<BarPresenter>
    #
    # Returns an instance of the presenter.
    def present(model, model_override = nil)
      presenter = ApplicationPresenter.find_presenter(model, model_override)

      presenter.new(model)
    end
  end<commit_msg>use the support function<commit_after>module Presenters
  module Controller
    # Public: Finds the appropriate presenter
    #
    # model          - An instance of a class (usually a model or array of
    #                  models)
    # model_override - The name of the presenter to use instead (default: nil)
    #
    # Examples
    #
    #   present(Foo.find(1))
    #
    #   present(Foo.where([1, 2, 3]))
    #
    #   present(Foo.find(1), Bar)
    #   # => #<BarPresenter>
    #
    # Returns an instance of the presenter.
    def present(model, model_override = nil)
      presenter = Support.choose_presenter(model, model_override)

      presenter.new(model)
    end
  end
{'fraction_non_alphanumeric': 0.09649122807017543, 'fraction_numerical': 0.007309941520467836, 'mean_word_length': 2.244075829383886, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6787457', 'n_tokens_mistral': 431, 'n_tokens_neox': 413, 'n_words': 116}