<commit_before># config valid only for current version of Capistrano
lock '3.4.0'

set :application, 'DPN-REST-RAILS'
set :repo_url, '<EMAIL>:dpn-admin/DPN-REST-RAILS.git'
set :scm, :git
set :format, :pretty
set :pty, true
set :rbenv_type, :system
set :rbenv_map_bins, %w{rake gem bundle ruby rails}

namespace :deploy do
  after :restart, :clear_cache do
    on roles(:web), in: :groups, limit: 3, wait: 10 do
      # Here we can do anything such as:
      # within release_path do
      #   execute :rake, 'cache:clear'
      # end
    end
  end
end

namespace :apache do
  desc "Restart apache"
  task :restart do
    on roles(:web) do
      execute  :sudo, "/etc/init.d/apache2 restart"
    end
  end
end

after :deploy, "apache:restart"

before :deploy, "job:queue:stop"
after :deploy, "job:queue:start"
<commit_msg>fix deployment bug from prev commit<commit_after># config valid only for current version of Capistrano
lock '3.4.0'

set :application, 'DPN-REST-RAILS'
set :repo_url, '<EMAIL>.com:dpn-admin/DPN-REST-RAILS.git'
set :scm, :git
set :format, :pretty
set :pty, true
set :rbenv_type, :system
set :rbenv_map_bins, %w{rake gem bundle ruby rails}

namespace :deploy do
  after :restart, :clear_cache do
    on roles(:web), in: :groups, limit: 3, wait: 10 do
      # Here we can do anything such as:
      # within release_path do
      #   execute :rake, 'cache:clear'
      # end
    end
  end
end

namespace :apache do
  desc "Restart apache"
  task :restart do
    on roles(:web) do
      execute  :sudo, "/etc/init.d/apache2 restart"
    end
  end
end

after :deploy, "apache:restart"

before :deploy, "jobs:queue:stop"
after :deploy, "jobs:queue:start"

{'fraction_non_alphanumeric': 0.11796407185628742, 'fraction_numerical': 0.008383233532934131, 'mean_word_length': 3.603305785123967, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4285455', 'n_tokens_mistral': 636, 'n_tokens_neox': 605, 'n_words': 199}