<commit_before>set :application, 'github_ranks'
set :repo_url, '<EMAIL>:k0kubun/githubranks.git'
set :deploy_to, ENV['DEPLOY_TO']
set :log_level, :info

set :linked_files, %w[
  .env
  config/secrets.yml
]

set :linked_dirs, %w[
  bin
  log
  light_blue
  tmp/pids
  tmp/cache
  tmp/sockets
  vendor/bundle
  public/system
  public/assets
]

set :ssh_options, {
  keys: [File.expand_path('~/.ssh/id_rsa')],
  forward_agent: true,
  auth_methods: %w(publickey)
}

namespace :deploy do
  desc 'Restart application'
  task :restart do
    invoke 'unicorn:restart'
  end
end
after 'deploy:publishing', 'deploy:restart'<commit_msg>Link solr directory<commit_after>set :application, 'github_ranks'
set :repo_url, '<EMAIL>:k0kubun/githubranks.git'
set :deploy_to, ENV['DEPLOY_TO']
set :log_level, :info

set :linked_files, %w[
  .env
  config/secrets.yml
]

set :linked_dirs, %w[
  bin
  log
  light_blue
  solr
  tmp/pids
  tmp/cache
  tmp/sockets
  vendor/bundle
  public/system
  public/assets
]

set :ssh_options, {
  keys: [File.expand_path('~/.ssh/id_rsa')],
  forward_agent: true,
  auth_methods: %w(publickey)
}

namespace :deploy do
  desc 'Restart application'
  task :restart do
    invoke 'unicorn:restart'
  end
end
after 'deploy:publishing', 'deploy:restart'
{'fraction_non_alphanumeric': 0.12806324110671938, 'fraction_numerical': 0.0015810276679841897, 'mean_word_length': 4.456896551724138, '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': '2798448', 'n_tokens_mistral': 526, 'n_tokens_neox': 507, 'n_words': 108}