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

            desc "Creates Jarvis initializer, controllers, views, and routes."

            def install
                # Create initializer
                copy_file "config/initializers/jarvis.rb", "config/initializers/jarvis.rb"
            end

            def create_migrations
                Dir["#{self.class.source_root}/migrations/*.rb"].sort.each do |filepath|
                    name = File.basename(filepath)
                    migration_template "migrations/#{name}", "db/migrate/#{name}"
                end
            end
        end
    end
end
<commit_msg>Add in next_migration number<commit_after>module Jarvis
    module Generators
        class InstallGenerator < Rails::Generators::Base
            include Rails::Generators::Migration
            source_root File.expand_path("../templates", __FILE__)

            desc "Creates Jarvis initializer, controllers, views, and routes."

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

            def install
                # Create initializer
                copy_file "config/initializers/jarvis.rb", "config/initializers/jarvis.rb"
            end

            def create_migrations
                Dir["#{self.class.source_root}/migrations/*.rb"].sort.each do |filepath|
                    name = File.basename(filepath)
                    migration_template "migrations/#{name}", "db/migrate/#{name}"
                end
            end
        end
    end
end

{'fraction_non_alphanumeric': 0.09302325581395349, 'fraction_numerical': 0.0005672149744753262, 'mean_word_length': 1.7692307692307692, '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': '662428', 'n_tokens_mistral': 469, 'n_tokens_neox': 453, 'n_words': 95}