<commit_before>#!/bin/sh

export PATH=/opt/chef/embedded/bin:$PATH
export HOME=<%= node[:berkshelf_api][:deploy_path] %>
cd $HOME

exec 2>&1
exec bundle exec bin/berks-api -p <%= node[:berkshelf_api][:port] %> -c <%= node[:berkshelf_api][:config_path] %><commit_msg>Do not run berks-api as root.<commit_after>#!/bin/sh

export PATH=/opt/chef/embedded/bin:$PATH
export HOME=<%= node[:berkshelf_api][:deploy_path] %>
cd $HOME

exec 2>&1
exec chpst -u <%= node[:berkshelf_api][:owner] %> bundle exec bin/berks-api -p <%= node[:berkshelf_api][:port] %> -c <%= node[:berkshelf_api][:config_path] %>
{'fraction_non_alphanumeric': 0.209106239460371, 'fraction_numerical': 0.006745362563237774, 'mean_word_length': 6.2439024390243905, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, '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': '6194323', 'n_tokens_mistral': 268, 'n_tokens_neox': 226, 'n_words': 44}