<commit_before># Here you can set the server which you would like to, each server
# each role can have multiple servers, each server defined as <EMAIL>:port
# => port can be omiped and it defaults to 22
role :web, '<EMAIL>:22'
role :app, '<EMAIL>:22'
role :db, '<EMAIL>:22', primary: true

# The project's branch to use
# Uncomment and edit this if you're using git, for other SCM's please refer
# to capistrano's documentation
set :branch, "master"

# Use sudo ?
set :use_sudo, false

# Define deployments options
set :deploy_to,   "/home/vhosts/#{application}"
set :deploy_via,  :remote_cache
set :logs_path,   "#{deploy_to}/logs"
set :public_path, -> { "#{current_path}/public" }

# Keep only the last 5 releases
set :keep_releases, 5

# Using RVM? Set this to the ruby version/gemset to use
set :rvm_ruby_string, "1.9.2"

# Mysql credentials
set :mysql_credentials_file,                  -> { "#{deploy_to}/.mysql_password"}
set :mysql_credentials_host_regex,            /hostname: (.*)$/o
set :mysql_credentials_host_regex_match,      1
set :mysql_credentials_user_regex,            /username: (.*)$/o
set :mysql_credentials_user_regex_match       , 1
set :mysql_credentials_pass_regex,            /password: (.*)$/o
set :mysql_credentials_pass_regex_match,      1
set :mysql_root_credentials_file,             "/root/.mysql_password"
set :mysql_root_credentials_host_regex,       /hostname: (.*)$/o
set :mysql_root_credentials_host_regex_match, 1
set :mysql_root_credentials_user_regex,       /username: (.*)$/o
set :mysql_root_credentials_user_regex_match, , 1
set :mysql_root_credentials_pass_regex,       /password: (.*)$/o
set :mysql_root_credentials_pass_regex_match, 1

#############
# Web server
#

# Which web server to use?
# valid options: :nginx and :apache
set :web_server_app, :nginx

# Server specific configurations
# Uncomment as necessary, default option are as follow
# set :nginx_init_path, '/etc/init.d/nginx'
# set :apache_init_path, '/etc/init.d/apache2'

# Absolute path to this application's web server configuration
# This gem suppose that you are already including files from the folder you're placing
# the config file in, if not the application won't be up after deployment
set :web_conf_file, -> { "/etc/nginx/#{fetch(:stage).to_s}/#{fetch :application}.conf" }

# Which port does the server runs on ?
set :web_server_listen_port, 80

# What is the application url ?
# THis is used for Virtual Hosts
set :application_url, %w(example.com www.example.com)
<commit_msg>MISC: Fix a typo in the template file.<commit_after># Here you can set the server which you would like to, each server
# each role can have multiple servers, each server defined as <EMAIL>:port
# => port can be omiped and it defaults to 22
role :web, '<EMAIL>:22'
role :app, '<EMAIL>:22'
role :db, '<EMAIL>:22', primary: true

# The project's branch to use
# Uncomment and edit this if you're using git, for other SCM's please refer
# to capistrano's documentation
set :branch, "master"

# Use sudo ?
set :use_sudo, false

# Define deployments options
set :deploy_to,   "/home/vhosts/#{application}"
set :deploy_via,  :remote_cache
set :logs_path,   "#{deploy_to}/logs"
set :public_path, -> { "#{current_path}/public" }

# Keep only the last 5 releases
set :keep_releases, 5

# Using RVM? Set this to the ruby version/gemset to use
set :rvm_ruby_string, "1.9.2"

# Mysql credentials
set :mysql_credentials_file,                  -> { "#{deploy_to}/.mysql_password"}
set :mysql_credentials_host_regex,            /hostname: (.*)$/o
set :mysql_credentials_host_regex_match,      1
set :mysql_credentials_user_regex,            /username: (.*)$/o
set :mysql_credentials_user_regex_match,      1
set :mysql_credentials_pass_regex,            /password: (.*)$/o
set :mysql_credentials_pass_regex_match,      1
set :mysql_root_credentials_file,             "/root/.mysql_password"
set :mysql_root_credentials_host_regex,       /hostname: (.*)$/o
set :mysql_root_credentials_host_regex_match, 1
set :mysql_root_credentials_user_regex,       /username: (.*)$/o
set :mysql_root_credentials_user_regex_match, 1
set :mysql_root_credentials_pass_regex,       /password: (.*)$/o
set :mysql_root_credentials_pass_regex_match, 1

#############
# Web server
#

# Which web server to use?
# valid options: :nginx and :apache
set :web_server_app, :nginx

# Server specific configurations
# Uncomment as necessary, default option are as follow
# set :nginx_init_path, '/etc/init.d/nginx'
# set :apache_init_path, '/etc/init.d/apache2'

# Absolute path to this application's web server configuration
# This gem suppose that you are already including files from the folder you're placing
# the config file in, if not the application won't be up after deployment
set :web_conf_file, -> { "/etc/nginx/#{fetch(:stage).to_s}/#{fetch :application}.conf" }

# Which port does the server runs on ?
set :web_server_listen_port, 80

# What is the application url ?
# THis is used for Virtual Hosts
set :application_url, %w(example.com www.example.com)

{'fraction_non_alphanumeric': 0.11288074855663946, 'fraction_numerical': 0.00875970535536532, 'mean_word_length': 4.42548596112311, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, 'https://': 0, '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': '7309896', 'n_tokens_mistral': 1674, 'n_tokens_neox': 1611, 'n_words': 521}