<commit_before>module Tok
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      def copy_initializer
        template "tok.rb", "config/initializers/tok.rb"
      end
    end
  end
end
<commit_msg>Add argument to install generator to specify model<commit_after>module Tok
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)
      class_option :model, type: :string, aliases: "-m", desc: "Specify a model different than User"

      def copy_initializer
        template "tok.rb", "config/initializers/tok.rb"
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.09206798866855524, 'fraction_numerical': 0.0, 'mean_word_length': 3.3641975308641974, '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': '5899470', 'n_tokens_mistral': 204, 'n_tokens_neox': 199, 'n_words': 58}