<commit_before>#!/bin/sh
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals

# Feel free to change any of the following variables for your app:
TIMEOUT=${TIMEOUT-60}
APP_ROOT=/srv/data/current
PID=/srv/data/shared/pids/unicorn.pid
CMD="/srv/data/shared/bin/unicorn -D -c $APP_ROOT/config/unicorn.rb -E production"
INIT_CONF=$APP_ROOT/config/init.conf
action="$1"
set -u

test -f "$INIT_CONF" && . $INIT_CONF

old_pid="$PID.oldbin"

cd $APP_ROOT || exit 1

sig () {
  test -s "$PID" && kill -$1 `cat $PID`
}

oldsig () {<commit_msg>New version of of bundle seems to be keeping the gems in a different place<commit_after>#!/bin/sh
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals

# Feel free to change any of the following variables for your app:
TIMEOUT=${TIMEOUT-60}
APP_ROOT=/srv/data/current
PID=/srv/data/shared/pids/unicorn.pid
CMD="/srv/data/shared/bundle/ruby/2.2.0/bin/unicorn -D -c $APP_ROOT/config/unicorn.rb -E production"
INIT_CONF=$APP_ROOT/config/init.conf
action="$1"
set -u

test -f "$INIT_CONF" && . $INIT_CONF

old_pid="$PID.oldbin"

cd $APP_ROOT || exit 1

sig () {
  test -s "$PID" && kill -$1 `cat $PID`
}

oldsig () {
{'fraction_non_alphanumeric': 0.14601420678768745, 'fraction_numerical': 0.010260457774269928, 'mean_word_length': 4.031746031746032, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3895697', 'n_tokens_mistral': 491, 'n_tokens_neox': 468, 'n_words': 142}