<commit_before>module RPCapistrano
  module CopyConfig
    def self.load_into(configuration)
      configuration.load do
        namespace :rp do
          namespace :config_copy do
            task :database_yml do
              run "cp #{release_path}/config/deploy/#{rails_env}/database.yml #{release_path}/config/database.yml"
            end
            task :polaris_yml do
              run "cp #{release_path}/config/deploy/#{rails_env}/polaris.yml #{release_path}/config/polaris.yml"
            end
            task :cas_yml do
              run "cp #{release_path}/config/deploy/#{rails_env}/cas_server.yml #{release_path}/config/cas_server.yml"
            end
            task :passenger_yml, :roles => :web do
              run "cp #{release_path}/config/deploy/#{rails_env}/passenger.yml /etc/passenger.d/#{app_name}.yml && sudo service passenger restart #{app_name}"
            end
            task :robots_txt do
              run "cp #{release_path}/config/deploy/#{rails_env}/robots.txt #{release_path}/public/robots.txt"
            end
          end
        end
      end
    end
  end
end

if Capistrano::Configuration.instance
  RPCapistrano::CopyConfig.load_into(Capistrano::Configuration.instance)
end<commit_msg>Remove passenger task for copying config file<commit_after>module RPCapistrano
  module CopyConfig
    def self.load_into(configuration)
      configuration.load do
        namespace :rp do
          namespace :config_copy do
            task :database_yml do
              run "cp #{release_path}/config/deploy/#{rails_env}/database.yml #{release_path}/config/database.yml"
            end
            task :polaris_yml do
              run "cp #{release_path}/config/deploy/#{rails_env}/polaris.yml #{release_path}/config/polaris.yml"
            end
            task :cas_yml do
              run "cp #{release_path}/config/deploy/#{rails_env}/cas_server.yml #{release_path}/config/cas_server.yml"
            end
            task :robots_txt do
              run "cp #{release_path}/config/deploy/#{rails_env}/robots.txt #{release_path}/public/robots.txt"
            end
          end
        end
      end
    end
  end
end

if Capistrano::Configuration.instance
  RPCapistrano::CopyConfig.load_into(Capistrano::Configuration.instance)
end
{'fraction_non_alphanumeric': 0.10157618213660245, 'fraction_numerical': 0.0, 'mean_word_length': 2.3309037900874636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5694577', 'n_tokens_mistral': 690, 'n_tokens_neox': 646, 'n_words': 132}