<commit_before>require 'motorhead/errors'

module Motorhead
  module Engine
    extend ActiveSupport::Concern

    module ClassMethods
      attr_accessor :on_error
      attr_reader :mount_at

      def active_if(&block)
        @active_if = block
      end

      def active?(controller)
        controller.instance_eval(&@active_if)
      end

      def mount_at(path = nil)
        path ? @mount_at = path : @mount_at
      end
    end

    included do
      isolate_namespace self.parent
<commit_msg>:warning: method redefined; discarding old mount_at<commit_after>require 'motorhead/errors'

module Motorhead
  module Engine
    extend ActiveSupport::Concern

    module ClassMethods
      attr_accessor :on_error

      def active_if(&block)
        @active_if = block
      end

      def active?(controller)
        controller.instance_eval(&@active_if)
      end

      def mount_at(path = nil)
        path ? @mount_at = path : @mount_at
      end
    end

    included do
      isolate_namespace self.parent

{'fraction_non_alphanumeric': 0.06470588235294118, 'fraction_numerical': 0.0, 'mean_word_length': 2.5206896551724136, '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': '5865135', 'n_tokens_mistral': 307, 'n_tokens_neox': 294, 'n_words': 75}