<commit_before>module Devise
  module Encryptors
    class BCrypt < Base
      def self.digest(password, salt, stretches, pepper)
        ::BCrypt::Engine.hash_secret("#{password}#{pepper}",salt, stretches)
      end

      def compare(encrypted_password, password, stretches, pepper)
        salt = ::BCrypt::Password.new(encrypted_password).salt
        Devise.secure_compare(encrypted_password, digest(password, salt, stretches, pepper))
      end
    end
  end
end<commit_msg>The signature must be the same<commit_after>module Devise
  module Encryptors
    class BCrypt < Base
      def self.digest(password, salt, stretches, pepper)
        ::BCrypt::Engine.hash_secret("#{password}#{pepper}",salt, stretches)
      end

      def compare(encrypted_password, password, salt, stretches, pepper)
        salt = ::BCrypt::Password.new(encrypted_password).salt
        Devise.secure_compare(encrypted_password, digest(password, salt, stretches, pepper))
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10274669379450661, 'fraction_numerical': 0.0, 'mean_word_length': 3.8472906403940885, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4800044', 'n_tokens_mistral': 294, 'n_tokens_neox': 277, 'n_words': 67}