<commit_before><commit_msg>puma config file<commit_after>#!/usr/bin/env puma

# rails environment
environment 'production'
threads 0, 16
workers 2

# application name, application path
app_name = "wechat"
# application_path = "/var/www/wechat-dev"
application_path = "/Users/ichr/Rails/wechat-dev"
directory "#{application_path}"

# puma configration
pidfile "#{application_path}/tmp/pids/puma.pid"
state_path "#{application_path}/tmp/sockets/puma.state"
stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
bind "unix://#{application_path}/tmp/sockets/#{app_name}.sock"
activate_control_app "unix://#{application_path}/tmp/sockets/pumactl.sock"

# run as daemonize
daemonize true
on_restart do
  puts 'On restart...'
end

preload_app!

rackup DefaultRackup
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'production'

on_worker_boot do
  ActiveRecord::Base.establish_connection
end
{'fraction_non_alphanumeric': 0.13844515441959532, 'fraction_numerical': 0.008519701810436636, 'mean_word_length': 6.4015748031496065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '4688466', 'n_tokens_mistral': 335, 'n_tokens_neox': 324, 'n_words': 62}