<commit_before>namespace :unicorn do
  desc "start unicorn"
  task :start, :roles => :app, :except => { :no_release => true } do
    puts "<><><><><><><><><><><><><>"
    puts "STARING UNICORN..."
    run "cd #{current_path} && #{unicorn_binary}"
  end
  desc "stop unicorn"
  task :stop, :roles => :app, :except => { :no_release => true } do
    if pid_running?(unicorn_pid)
      run "kill `cat #{unicorn_pid}`"
    end
  end
  desc "graceful stop unicorn"
  task :graceful_stop, :roles => :app, :except => { :no_release => true } do
    if pid_running?(unicorn_pid)
      run "kill -s QUIT `cat #{unicorn_pid}`"
    end
  end
  desc "graceful stop OLD unicorn"
  task :graceful_stop_old, :roles => :app, :except => { :no_release => true } do
    if pid_running?(unicorn_old_pid)
      run "kill -s QUIT `cat #{unicorn_old_pid}`"
    end<commit_msg>XXX updated unicorn_binary<commit_after>set(:unicorn_binary)  { "bundle exec unicorn_rails -c #{unicorn_config} -E #{rails_env} -D" }

namespace :unicorn do
  desc "start unicorn"
  task :start, :roles => :app, :except => { :no_release => true } do
    puts "<><><><><><><><><><><><><>"
    puts "STARING UNICORN..."
    run "cd #{current_path} && #{unicorn_binary}"
  end
  desc "stop unicorn"
  task :stop, :roles => :app, :except => { :no_release => true } do
    if pid_running?(unicorn_pid)
      run "kill `cat #{unicorn_pid}`"
    end
  end
  desc "graceful stop unicorn"
  task :graceful_stop, :roles => :app, :except => { :no_release => true } do
    if pid_running?(unicorn_pid)
      run "kill -s QUIT `cat #{unicorn_pid}`"
    end
  end
  desc "graceful stop OLD unicorn"
  task :graceful_stop_old, :roles => :app, :except => { :no_release => true } do
    if pid_running?(unicorn_old_pid)
      run "kill -s QUIT `cat #{unicorn_old_pid}`"
    end
{'fraction_non_alphanumeric': 0.1712707182320442, 'fraction_numerical': 0.0, 'mean_word_length': 3.5848101265822785, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 53, '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': '1042495', 'n_tokens_mistral': 694, 'n_tokens_neox': 688, 'n_words': 182}