<commit_before>namespace :db do
  namespace :schema do
    #FIXME
    SCHEMA_FILE = "db/schema/schema.rb"

    task :diff => :environment do
      configs.each do |connection_name, config|
        ridgepole_diff(SCHEMA_FILE, connection_name, config)
      end
    end

    task :apply => :environment do
      execute_ridgepole(configs, "--apply")
    end

    task :apply_dry_run => :environment do
      execute_ridgepole(configs, "--apply", dry_run: true)
    end

    task :merge => :environment do
      execute_ridgepole(configs, "--merge")
    end

    task :merge_dry_run => :environment do
      execute_ridgepole(configs, "--merge", dry_run: true)<commit_msg>Add description<commit_after>namespace :db do
  namespace :schema do
    #FIXME
    SCHEMA_FILE = "db/schema/schema.rb"

    desc "Show diff between schema file and table configuration"
    task :diff => :environment do
      configs.each do |connection_name, config|
        ridgepole_diff(SCHEMA_FILE, connection_name, config)
      end
    end

    desc "Apply schema files to databases"
    task :apply => :environment do
      execute_ridgepole(configs, "--apply")
    end

    desc "Dry run apply schema"
    task :apply_dry_run => :environment do
      execute_ridgepole(configs, "--apply", dry_run: true)
    end

    desc "Merge schema file and table configutation"
    task :merge => :environment do
      execute_ridgepole(configs, "--merge")
    end

    desc "Dry run merge"
    task :merge_dry_run => :environment do
      execute_ridgepole(configs, "--merge", dry_run: true)
{'fraction_non_alphanumeric': 0.09884467265725289, 'fraction_numerical': 0.0, 'mean_word_length': 3.0704960835509136, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2117792', 'n_tokens_mistral': 494, 'n_tokens_neox': 464, 'n_words': 137}