<commit_before>module TokenAuthenticateMe
  module Generators
    class InstallGenerator < Rails::Generators::Base
      def run_generators
        params = @_initializer[0]

        invoke 'token_authenticate_me:models', params
        invoke 'token_authenticate_me:controllers', params
        invoke 'api_me:policy', %w(user username email password password_confirmation)
        invoke 'api_me:filter', ['user']
        invoke 'serializer', %w(user username email created_at updated_at)

        inject_into_class Rails.root.join('app', 'policies', 'user_policy.rb'), UserPolicy do
          "  def create?\n    true\n  end\n"
        end
      end
    end
  end
end<commit_msg>Fixes #11.<commit_after>module TokenAuthenticateMe
  module Generators
    class InstallGenerator < Rails::Generators::Base
      def run_generators
        params = @_initializer[0]

        invoke 'token_authenticate_me:models', params
        invoke 'token_authenticate_me:controllers', params
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08250497017892644, 'fraction_numerical': 0.003976143141153081, 'mean_word_length': 3.266949152542373, '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': '2653008', 'n_tokens_mistral': 298, 'n_tokens_neox': 287, 'n_words': 70}