<commit_before>namespace :db do
  desc "Generates migrations as per structure design in your models and runs them"
  task :upgrade => :environment do
    if Migrant::MigrationGenerator.new.run
      puts "\nAutomigrating #{Rails.env} environment:"
      Rake::Task['db:migrate'].invoke

      # If RAILS_ENV is explicitly specified, don't clone out to test
      unless ENV['RAILS_ENV']
        puts "\nMigrated. Now, cloning out to the test database:"
        Rake::Task['db:test:clone'].invoke
      end
    end
  end
end

<commit_msg>- Make migration names a lot more sane when modifying existing tables - Automatically run db:test:clone unless RAILS_ENV is specified<commit_after>namespace :db do
  desc "Generates migrations as per structure design in your models and runs them"
  task :upgrade => :environment do
    if Migrant::MigrationGenerator.new.run
      puts "\nInvoking db:migrate for #{Rails.env} environment."
      Rake::Task['db:migrate'].invoke

      # If RAILS_ENV is explicitly specified, don't clone out to test
      unless ENV['RAILS_ENV']
        puts "Migrated. Now, cloning out to the test database."
        Rake::Task['db:test:clone'].invoke
      end
    end
  end
end


{'fraction_non_alphanumeric': 0.08985024958402663, 'fraction_numerical': 0.0, 'mean_word_length': 3.3745454545454545, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1021745', 'n_tokens_mistral': 356, 'n_tokens_neox': 351, 'n_words': 126}