<commit_before>namespace :deploy do
  [:start, :stop, :restart].each do |command|
    task command do
      on roles(:web) do
        execute :service, :puma, command, "app=#{current_path}"
      end

      on roles(:worker) do
        execute :service, :sidekiq, command, "index=0 app=#{current_path}"
      end
    end

    namespace :nginx do
      task command do
        on roles(:web) do
          execute :service, :nginx, command
        end
      end
    end
  end

  after :finishing, 'deploy:restart'
end<commit_msg>Add deploy:finishing command<commit_after>namespace :deploy do
  [:start, :stop, :restart].each do |command|
    desc "Run #{command} on servers"
    task command do
      on roles(:web) do
        execute :service, :puma, command, "app=#{current_path}"
      end

      on roles(:worker) do
        execute :service, :sidekiq, command, "index=0 app=#{current_path}"
      end
    end

    namespace :nginx do
      task command do
        on roles(:web) do
          execute :service, :nginx, command
        end
      end
    end
  end

  after 'deploy:finishing', 'deploy:restart'
end
{'fraction_non_alphanumeric': 0.10771992818671454, 'fraction_numerical': 0.0017953321364452424, 'mean_word_length': 2.4627329192546585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3848919', 'n_tokens_mistral': 354, 'n_tokens_neox': 340, 'n_words': 110}