<commit_before>namespace :db do
  
  desc "Drop database for current RAILS_ENV"
  task :oracle_drop => :environment do
    system "bash -ic 'cd #{Rails.root}/db && ./generate_drops.sh | nucore_#{Rails.env}'"
  end

  desc "Drop current database and rebuild from schema"
  task :oracle_reset => [:environment, :oracle_drop, :reset] do
    
  end

  desc "Drop current database, rebuild from schema, seed with bi_seed"
  task :oracle_bi_reset => [:environment, :oracle_reset, :bi_seed] do
    
  end

  desc "Drop current database, rebuild from schema, seed with demo_seed "
  task :oracle_demo_reset => [:environment, :oracle_reset, :demo_seed] do
    
  end
end<commit_msg>make the oracle db drop task read the current env db config to figure out how to connect<commit_after>namespace :db do
  
  desc "Drop database for current RAILS_ENV"
  task :oracle_drop => :environment do
    config= Rails.configuration.database_configuration[Rails.env]
    connect_string = "#{config["username"]}/#{config["password"]}@#{config["database"]}"
    system "bash -ic 'cd #{Rails.root}/db && ./generate_drops.sh | sqlplus #{connect_string}'"
  end

  desc "Drop current database and rebuild from schema"
  task :oracle_reset => [:environment, :oracle_drop, :reset] do
    
  end

  desc "Drop current database, rebuild from schema, seed with bi_seed"
  task :oracle_bi_reset => [:environment, :oracle_reset, :bi_seed] do
    
  end

  desc "Drop current database, rebuild from schema, seed with demo_seed "
  task :oracle_demo_reset => [:environment, :oracle_reset, :demo_seed] do
    
  end
end
{'fraction_non_alphanumeric': 0.10809102402022756, 'fraction_numerical': 0.0, 'mean_word_length': 4.259136212624584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2529918', 'n_tokens_mistral': 515, 'n_tokens_neox': 488, 'n_words': 163}