<commit_before># frozen_string_literal: true

set :application, "nolotiro.org"
set :repo_url, "https://github.com/alabs/nolotiro.org"
set :deploy_to, "/home/ruby-data/app"

append :linked_files, "config/application.yml", "vendor/geolite/GeoLite2-City.mmdb"
append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system", "public/uploads", "public/legacy", "vendor/bundle"

set :keep_releases, 5
set :puma_bind, "tcp://0.0.0.0:3000"
set :puma_user, fetch(:user)

# Logical flow for deploying an app
# before "deploy:publishing", "deploy:max_mind:extract"

# namespace :deploy do
#   namespace :max_mind do
#     desc "Extract MaxMind DB for source compressed file"
#     task :extract do
#       on roles(:app) do
#         within release_path do
#           with rails_env: fetch(:rails_env) do
#             execute :rake, "max_mind:extract"
#           end
#         end
#       end
#     end
#   end
# end<commit_msg>Add ads.txt<commit_after># frozen_string_literal: true

set :application, "nolotiro.org"
set :repo_url, "https://github.com/alabs/nolotiro.org"
set :deploy_to, "/home/ruby-data/app"

append :linked_files, "config/application.yml", "vendor/geolite/GeoLite2-City.mmdb", "public/ads.txt"
append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system", "public/uploads", "public/legacy", "vendor/bundle"

set :keep_releases, 5
set :puma_bind, "tcp://0.0.0.0:3000"
set :puma_user, fetch(:user)

# Logical flow for deploying an app
# before "deploy:publishing", "deploy:max_mind:extract"

# namespace :deploy do
#   namespace :max_mind do
#     desc "Extract MaxMind DB for source compressed file"
#     task :extract do
#       on roles(:app) do
#         within release_path do
#           with rails_env: fetch(:rails_env) do
#             execute :rake, "max_mind:extract"
#           end
#         end
#       end
#     end
#   end
# end
{'fraction_non_alphanumeric': 0.14330874604847207, 'fraction_numerical': 0.01053740779768177, 'mean_word_length': 3.5649038461538463, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1151071', 'n_tokens_mistral': 703, 'n_tokens_neox': 660, 'n_words': 161}