<commit_before>module Shim
  extend ::ActiveSupport::Concern

  included do
    include ::ActiveModel::MassAssignmentSecurity
    include ::Mongoid::Timestamps
    field :created_at, :type => DateTime
  end

  module ClassMethods
    def order(attribute)
      asc(attribute)
    end

    def find_by_email(email)
      find_by(:email => email)
    end
  end

  # overwrite equality (because some devise tests use this for asserting model equality)
  def ==(other)
    other.is_a?(self.class) && _id == other._id
  end
end
<commit_msg>Remove MassAssignment security from Mongoid test shim<commit_after>module Shim
  extend ::ActiveSupport::Concern

  included do
    include ::Mongoid::Timestamps
    field :created_at, :type => DateTime
  end

  module ClassMethods
    def order(attribute)
      asc(attribute)
    end

    def find_by_email(email)
      find_by(:email => email)
    end
  end

  # overwrite equality (because some devise tests use this for asserting model equality)
  def ==(other)
    other.is_a?(self.class) && _id == other._id
  end
end

{'fraction_non_alphanumeric': 0.08679245283018867, 'fraction_numerical': 0.0, 'mean_word_length': 3.476793248945148, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7039775', 'n_tokens_mistral': 330, 'n_tokens_neox': 315, 'n_words': 96}