<commit_before>require 'bundler/capistrano'

server "cosmos.snoonet.org", :web, :app, :db, primary: true

set :application, 'snoonet.org'
set :deploy_to, "/home/deployer/snoonet"

set :user, "deployer"
set :deploy_via, :remote_cache
set :use_sudo, false
set :repository,  "<EMAIL>:snoonetIRC/snoonet.org"

set :scm, :git

default_run_options[:pty] = true
ssh_options[:forward_agent] = true

# keep last 5 releases, no more
after "deploy:restart", "deploy:cleanup"

namespace :deploy do
  %w[start stop restart].each do |command|
    desc "#{command} unicorn server"
    task command, roles: :app, except: {no_release: true} do
      run "/etc/init.d/unicorn_#{application} #{command}"
    end
  end

  task :setup_config, roles: :app do
    sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
    run "mkdir -p #{shared_path}/config"
  end
  after "deploy:setup", "deploy:setup_config"

  task :symlink_config, roles: :app do
    run "rm #{release_path}/config/database.yml"
    run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
  end
  after "deploy:finalize_update", "deploy:symlink_config"
end

namespace :rails do
  desc "Open the rails console on one of the remote servers"
  task :console, :roles => :app do
    hostname = find_servers_for_task(current_task).first
    exec "ssh -l #{user} #{hostname} -t 'source ~/.profile && #{current_path}/script/rails c #{rails_env}'"
  end
end
<commit_msg>Revert "Added rails console capistrano task"<commit_after>require 'bundler/capistrano'

server "cosmos.snoonet.org", :web, :app, :db, primary: true

set :application, 'snoonet.org'
set :deploy_to, "/home/deployer/snoonet"

set :user, "deployer"
set :deploy_via, :remote_cache
set :use_sudo, false
set :repository,  "<EMAIL>:snoonetIRC/snoonet.org"

set :scm, :git

default_run_options[:pty] = true
ssh_options[:forward_agent] = true

# keep last 5 releases, no more
after "deploy:restart", "deploy:cleanup"

namespace :deploy do
  %w[start stop restart].each do |command|
    desc "#{command} unicorn server"
    task command, roles: :app, except: {no_release: true} do
      run "/etc/init.d/unicorn_#{application} #{command}"
    end
  end

  task :setup_config, roles: :app do
    sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
    run "mkdir -p #{shared_path}/config"
  end
  after "deploy:setup", "deploy:setup_config"

  task :symlink_config, roles: :app do
    run "rm #{release_path}/config/database.yml"
    run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
  end
  after "deploy:finalize_update", "deploy:symlink_config"
end

{'fraction_non_alphanumeric': 0.14003724394785846, 'fraction_numerical': 0.0007448789571694599, 'mean_word_length': 4.751605995717345, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '866787', 'n_tokens_mistral': 989, 'n_tokens_neox': 948, 'n_words': 247}