<commit_before>namespace :deploy do

  desc "Create nginx/passenger configuration for deployment"
  task :setup_nginx do
    template "nginx_site.erb", "/opt/local/nginx/conf/sites.d/#{deploy_env}_#{deploy_port}.conf"
  end

  desc "Restart passenger"
  task :restart do
    run "touch #{File.join(current_path, 'tmp', 'restart.txt')}"
    sudo "/opt/local/nginx/sbin/nginx -s reload"
  end

  desc "Create releases and log folder"
  task :create_release_dir, :except => { :no_release => true } do
    run "mkdir -p #{fetch :releases_path}"
    run "mkdir -p #{fetch :shared_path}/log"
  end

  desc "Create application configuration files"
  task :setup_application do
    template "rails_env.erb", File.join(current_path, "config", "environments", "#{deploy_env}.rb")
    template "couch_config.erb", File.join(current_path, "config", "couchdb.yml")
  end

end<commit_msg>Subhas/Akash - attempting to fix broken deployment pipeline<commit_after>namespace :deploy do

  desc "Create nginx/passenger configuration for deployment"
  task :setup_nginx do
    template "nginx_site.erb", "/opt/local/nginx/conf/sites.d/#{deploy_env}_#{deploy_port}.conf"
  end

  desc "Restart passenger"
  task :restart do
    run "touch #{File.join(current_path, 'tmp', 'restart.txt')}"
    # sudo "/opt/local/nginx/sbin/nginx -s reload"
  end

  desc "Create releases and log folder"
  task :create_release_dir, :except => { :no_release => true } do
    run "mkdir -p #{fetch :releases_path}"
    run "mkdir -p #{fetch :shared_path}/log"
  end

  desc "Create application configuration files"
  task :setup_application do
    template "rails_env.erb", File.join(current_path, "config", "environments", "#{deploy_env}.rb")
    template "couch_config.erb", File.join(current_path, "config", "couchdb.yml")
  end

end
{'fraction_non_alphanumeric': 0.13307349665924276, 'fraction_numerical': 0.0, 'mean_word_length': 4.332344213649852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4591724', 'n_tokens_mistral': 630, 'n_tokens_neox': 596, 'n_words': 157}