<commit_before>require 'tok'
require 'rails'

module Tok
  class Engine < Rails::Engine
    isolate_namespace Tok

    initializer :append_migrations do |app|
      if user_model_exist?
        config.paths["db/migrate"].expanded.each do |expanded_path| 
          app.config.paths["db/migrate"] << expanded_path
        end
      end
    end

    private<commit_msg>Filter encrypted_password and password from logs<commit_after>require 'tok'
require 'rails'

module Tok
  class Engine < Rails::Engine
    isolate_namespace Tok

    initializer :append_migrations do |app|
      if user_model_exist?
        config.paths["db/migrate"].expanded.each do |expanded_path| 
          app.config.paths["db/migrate"] << expanded_path
        end
      end
    end

    initializer :filter_params do |app|
      app.config.filter_parameters += [:encrypted_password, :password]
    end

    private
{'fraction_non_alphanumeric': 0.08773903262092239, 'fraction_numerical': 0.0, 'mean_word_length': 3.0454545454545454, 'pattern_counts': {'":': 0, '<': 9, '<?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': '7012021', 'n_tokens_mistral': 273, 'n_tokens_neox': 266, 'n_words': 64}