<commit_before>module ActionDispatch::Routing
  class Mapper
    def godmin
      override_resources do
        yield
      end

      # # TODO: something goes wrong with view context, helpers etc
      # if Godmin.admin_user_class
      #   resources :sessions, only: [:new, :create, :destroy], controller: "/godmin/sessions"
      # end

      unless has_named_route?(:root)
        root to: "application#welcome"
      end
    end

    private

    def override_resources
      def resources(*resources)
        unless Godmin.resources.include?(resources.first)
          Godmin.resources << resources.first
        end

        super(*resources) do<commit_msg>Removes session routes<commit_after>module ActionDispatch::Routing
  class Mapper
    def godmin
      override_resources do
        yield
      end

      unless has_named_route?(:root)
        root to: "application#welcome"
      end
    end

    private

    def override_resources
      def resources(*resources)
        unless Godmin.resources.include?(resources.first)
          Godmin.resources << resources.first
        end

        super(*resources) do
{'fraction_non_alphanumeric': 0.07282415630550622, 'fraction_numerical': 0.0, 'mean_word_length': 2.415151515151515, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5353019', 'n_tokens_mistral': 303, 'n_tokens_neox': 297, 'n_words': 79}