<commit_before>require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rbenv'

# Basic settings:
#   domain        - The hostname to SSH to.
#   deploy_to     - Path to deploy into.
#   repository    - Git repo to clone from. (needed by mina/git)
#   branch        - Branch name to deploy. (needed by mina/git)
#
# Advanced settings:
#   forward_agent - SSH forward_agent
#   user          - Username in the server to SSH to

set :domain, ENV.fetch('domain')
set :repository, 'https://github.com/betagouv/tps.git'
deploy_to = '/var/www/ds'
set :deploy_to, deploy_to
set :user, 'ds'
set :branch, ENV.fetch('branch')

# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
# They will be linked in the 'deploy:link_shared_paths' step.
set :shared_dirs, [
  'log',
  'sockets',
  'tmp/pids',
  'tmp/cache'
]

set :rbenv_path, "/home/ds/.rbenv/bin/rbenv"
set :forward_agent, true # SSH forward_agent.

puts "Deploy to #{ENV.fetch('domain')}, branch: #{ENV.fetch('branch')}"

# This task is the environment that is loaded for most commands, such as
# `mina deploy` or `mina rake`.
task :setup do
  command %[mkdir -p "#{deploy_to}/shared/log"]
  command %[chmod g+rx,u+rwx "#{deploy_to}/shared/log"]

  command %[mkdir -p "#{deploy_to}/shared/tmp/pids"]
  command %[chmod g+rx,u+rwx "#{deploy_to}/shared/tmp/pids"]

  command %[mkdir -p "#{deploy_to}/shared/tmp/cache"]
  command %[chmod g+rx,u+rwx "#{deploy_to}/shared/tmp/cache"]

  command %[mkdir -p "#{deploy_to}/shared/sockets"]
  command %[chmod g+rx,u+rwx "#{deploy_to}/shared/sockets"]
end
<commit_msg>Remove a duplicated comment<commit_after>require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rbenv'

# Basic settings:
#   domain        - The hostname to SSH to.
#   deploy_to     - Path to deploy into.
#   repository    - Git repo to clone from. (needed by mina/git)
#   branch        - Branch name to deploy. (needed by mina/git)
#
# Advanced settings:
#   forward_agent - SSH forward_agent
#   user          - Username in the server to SSH to

set :domain, ENV.fetch('domain')
set :repository, 'https://github.com/betagouv/tps.git'
deploy_to = '/var/www/ds'
set :deploy_to, deploy_to
set :user, 'ds'
set :branch, ENV.fetch('branch')

# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
# They will be linked in the 'deploy:link_shared_paths' step.
set :shared_dirs, [
  'log',
  'sockets',
  'tmp/pids',
  'tmp/cache'
]

set :rbenv_path, "/home/ds/.rbenv/bin/rbenv"
set :forward_agent, true

puts "Deploy to #{ENV.fetch('domain')}, branch: #{ENV.fetch('branch')}"

# This task is the environment that is loaded for most commands, such as
# `mina deploy` or `mina rake`.
task :setup do
  command %[mkdir -p "#{deploy_to}/shared/log"]
  command %[chmod g+rx,u+rwx "#{deploy_to}/shared/log"]

  command %[mkdir -p "#{deploy_to}/shared/tmp/pids"]
  command %[chmod g+rx,u+rwx "#{deploy_to}/shared/tmp/pids"]

  command %[mkdir -p "#{deploy_to}/shared/tmp/cache"]
  command %[chmod g+rx,u+rwx "#{deploy_to}/shared/tmp/cache"]

  command %[mkdir -p "#{deploy_to}/shared/sockets"]
  command %[chmod g+rx,u+rwx "#{deploy_to}/shared/sockets"]
end

{'fraction_non_alphanumeric': 0.15666770282872242, 'fraction_numerical': 0.0, 'mean_word_length': 3.9054878048780486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '299386', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1169, 'n_words': 323}