<commit_before>#!/bin/bash
set -e

source <%= node[:rvm][:basedir] %>/scripts/rvm

export TZ=UTC
export SUBSCRIBE_AMQP=1
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export JAVA_OPTS='<%= node[:jdk][:opts] %>'
export RAILS_ENV=<%= node[:etc][:railsenv] %>
export JRUBY_OPTS='<%= node[:jruby][:opts] %>'
<% unless node[:roles].include?('desktop') %>
export SECRET_KEY_BASE=<%= node[:voice_rails][:keybase] %>
<% end %>

cd <%= node[:voice_rails][:basedir] %>
exec chpst -u <%= node[:wim][:user] %> ./bin/puma -e <%= node[:etc][:railsenv] %> -p <%= node[:puma][:port] %> -t 0:64 2>&1
<commit_msg>start puma with 32 threads<commit_after>#!/bin/bash
set -e

source <%= node[:rvm][:basedir] %>/scripts/rvm

export TZ=UTC
export SUBSCRIBE_AMQP=1
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export JAVA_OPTS='<%= node[:jdk][:opts] %>'
export RAILS_ENV=<%= node[:etc][:railsenv] %>
export JRUBY_OPTS='<%= node[:jruby][:opts] %>'
<% unless node[:roles].include?('desktop') %>
export SECRET_KEY_BASE=<%= node[:voice_rails][:keybase] %>
<% end %>

cd <%= node[:voice_rails][:basedir] %>
exec chpst -u <%= node[:wim][:user] %> ./bin/puma -e <%= node[:etc][:railsenv] %> -p <%= node[:puma][:port] %> -t 32:32 2>&1

{'fraction_non_alphanumeric': 0.2508250825082508, 'fraction_numerical': 0.015676567656765675, 'mean_word_length': 6.351515151515152, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 27, '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': '1080555', 'n_tokens_mistral': 589, 'n_tokens_neox': 507, 'n_words': 90}