<commit_before>namespace :discuss_it do
  desc 'start discuss_it server'
  task :start do
    on roles(:app) do
      within "#{current_path}" do
        with rack_env: fetch(:rack_env) do
          execute "./bin/server"
        end
      end
    end
  end

  desc 'stop discuss_it server'
  task :stop do
    on roles(:app) do
      within "#{current_path}" do
        with rack_env: fetch(:rack_env) do
          execute :bundle, :exec, "pumactl -P /var/www/discuss_it/shared/pids/puma.pid stop"
        end
      end
    end
  end

  desc 'restart discuss_it server'
  task :restart do
    on roles(:app) do
      within "#{current_path}" do
        with rack_env: fetch(:rack_env) do
          execute :bundle, :exec, "pumactl -P /var/www/discuss_it/shared/pids/puma.pid stop"
          execute "./bin/server"
        end
      end
    end
  end
end<commit_msg>ignore failure on cap server restart<commit_after>namespace :puma do
  desc 'start puma server'
  task :start do
    on roles(:app) do
      within "#{current_path}" do
        with rack_env: fetch(:rack_env) do
          execute "./bin/server"
        end
      end
    end
  end

  desc 'stop puma server'
  task :stop do
    on roles(:app) do
      within "#{current_path}" do
        with rack_env: fetch(:rack_env) do
          execute :bundle, :exec, "pumactl -P /var/www/discuss_it/shared/pids/puma.pid stop"
        end
      end
    end
  end

  desc 'restart puma server'
  task :restart do
    on roles(:app) do
      within "#{current_path}" do
        with rack_env: fetch(:rack_env) do
          execute :bundle, :exec, "pumactl -P /var/www/discuss_it/shared/pids/puma.pid stop", raise_on_non_zero_exit: false
          execute "./bin/server"
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09988649262202043, 'fraction_numerical': 0.0, 'mean_word_length': 2.170863309352518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3935709', 'n_tokens_mistral': 600, 'n_tokens_neox': 584, 'n_words': 176}