<commit_before>require 'rails/generators/migration'

module ActsAsNpsRateable
  class MigrationGenerator < Rails::Generators::Base
    include Rails::Generators::Migration

    source_root File.expand_path('../templates', __FILE__)

    def self.next_migration_number(path)
      Time.now.utc.strftime("%Y%m%d%H%M%S")
    end

    def copy_migration_file
      migration_template 'migration.rb', 'db/migrate/acts_as_nps_rateable_migration'<commit_msg>* Renamed the copy_migration_file method to create_migration<commit_after>require 'rails/generators/migration'

module ActsAsNpsRateable
  class MigrationGenerator < Rails::Generators::Base
    include Rails::Generators::Migration

    source_root File.expand_path('../templates', __FILE__)

    def self.next_migration_number(path)
      Time.now.utc.strftime("%Y%m%d%H%M%S")
    end

    def create_migration
      migration_template 'migration.rb', 'db/migrate/acts_as_nps_rateable_migration'
{'fraction_non_alphanumeric': 0.10465116279069768, 'fraction_numerical': 0.0, 'mean_word_length': 5.271523178807947, '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': '7056937', 'n_tokens_mistral': 322, 'n_tokens_neox': 309, 'n_words': 47}