<commit_before>############################################################
#	Passenger
#############################################################
namespace :deploy do
  desc "Restart Application"
  task :restart do
    run "touch #{current_path}/tmp/restart.txt"
  end
end

desc "Configure the server files"
task :serversetup do
  # Instantiate the database.yml file
  run "cd #{latest_release}/config              && cp -f database.yml.deploy database.yml"
  #run "cd #{current_path}/config/ultrasphinx   && cp -f development.conf.deploy development.conf && cp -f production.conf.deploy production.conf"
end

task :restartmemcached do # Found this idea. Maybe consider it for when memcached crashes? :only => {:memcached => true}
  run "rake -f #{current_path}/Rakefile cache:clear RAILS_ENV=production"
end

task :redopermissions do
  run "find #{current_path} #{current_path}/../../shared -user `whoami` ! -perm /g+w -execdir chmod g+w {} +"
end

task :warmupserver do
  run "curl -A 'Java' localhost > /dev/null"
end

task :set_umask do
  run "umask 0002"
end<commit_msg>changed rake to bundle exec rake<commit_after>############################################################
#	Passenger
#############################################################
namespace :deploy do
  desc "Restart Application"
  task :restart do
    run "touch #{current_path}/tmp/restart.txt"
  end
end

desc "Configure the server files"
task :serversetup do
  # Instantiate the database.yml file
  run "cd #{latest_release}/config              && cp -f database.yml.deploy database.yml"
  #run "cd #{current_path}/config/ultrasphinx   && cp -f development.conf.deploy development.conf && cp -f production.conf.deploy production.conf"
end

task :restartmemcached do # Found this idea. Maybe consider it for when memcached crashes? :only => {:memcached => true}
  run "bundle exec rake -f #{current_path}/Rakefile cache:clear RAILS_ENV=production"
end

task :redopermissions do
  run "find #{current_path} #{current_path}/../../shared -user `whoami` ! -perm /g+w -execdir chmod g+w {} +"
end

task :warmupserver do
  run "curl -A 'Java' localhost > /dev/null"
end

task :set_umask do
  run "umask 0002"
end
{'fraction_non_alphanumeric': 0.2147099132023755, 'fraction_numerical': 0.003654636820465966, 'mean_word_length': 4.53030303030303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5797141', 'n_tokens_mistral': 687, 'n_tokens_neox': 652, 'n_words': 210}