<commit_before>class InvitationalGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)

  argument :roles, type: :array, default: [":none", ":user", ":admin"], banner: "List of Roles"

  def initializer_file
    @role_list = roles.join(", ")
    template "initializer.rb", "config/initializers/invitational.rb"
  end
end<commit_msg>Generator now installs migrations<commit_after>class InvitationalGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)

  argument :roles, type: :array, default: [":none", ":user", ":admin"], banner: "List of Roles"

  def initializer_file
    @role_list = roles.join(", ")
    template "initializer.rb", "config/initializers/invitational.rb"
  end

  def install_migration
    rake("invitational_engine:install:migrations")
  end
end
{'fraction_non_alphanumeric': 0.14218009478672985, 'fraction_numerical': 0.0, 'mean_word_length': 5.550387596899225, 'pattern_counts': {'":': 6, '<': 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': '411424', 'n_tokens_mistral': 263, 'n_tokens_neox': 261, 'n_words': 60}