<commit_before>module TwoFactorAuthenticatable
  module Generators
    class TwoFactorAuthenticationGenerator < Rails::Generators::NamedBase
      namespace "two_factor_authentication"

      desc "Add :two_factor_authenticable directive in the given model. Also generate migration for ActiveRecord"

      hook_for :orm

      def inject_two_factor_authentication_content
        path = File.join("app", "models", "#{file_path}.rb")
        inject_into_file(path, "two_factor_authenticatable, :", :after => "devise :") if File.exists?(path)
      end
    end
  end
end<commit_msg>generate migration after adding :two_factor_authentication<commit_after>module TwoFactorAuthenticatable
  module Generators
    class TwoFactorAuthenticationGenerator < Rails::Generators::NamedBase
      namespace "two_factor_authentication"

      desc "Add :two_factor_authenticable directive in the given model. Also generate migration for ActiveRecord"

      def inject_two_factor_authentication_content
        path = File.join("app", "models", "#{file_path}.rb")
        inject_into_file(path, "two_factor_authenticatable, :", :after => "devise :") if File.exists?(path)
      end

      hook_for :orm

    end
  end
end
{'fraction_non_alphanumeric': 0.08195364238410596, 'fraction_numerical': 0.0, 'mean_word_length': 4.397321428571429, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7153731', 'n_tokens_mistral': 340, 'n_tokens_neox': 326, 'n_words': 83}