<commit_before>require 'devise/strategies/database_authenticatable'

module Devise
  module Models
    module Inactivatable

      def active_for_authentication?
        active? && super
      end

      def inactivate!
        touch :inactivated_at
      end

      def activate!
        update_attribute :inactivated_at, nil
      end

      def active?
        !!inactivated_at
      end

      def inactive?
        !!inactivated_at
      end

      def inactive_message
        inactive? ? :inactivated : super<commit_msg>Fix the active? method<commit_after>require 'devise/strategies/database_authenticatable'

module Devise
  module Models
    module Inactivatable

      def active_for_authentication?
        active? && super
      end

      def inactivate!
        touch :inactivated_at
      end

      def activate!
        update_attribute :inactivated_at, nil
      end

      def active?
        !inactivated_at
      end

      def inactive?
        !!inactivated_at
      end

      def inactive_message
        inactive? ? :inactivated : super
{'fraction_non_alphanumeric': 0.04896421845574388, 'fraction_numerical': 0.0, 'mean_word_length': 2.126470588235294, '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': '4102416', 'n_tokens_mistral': 315, 'n_tokens_neox': 284, 'n_words': 76}