<commit_before>#!/bin/bash
PATH="/usr/local/rbenv/bin:$PATH"
mkdir /var/log/apache2
cd /home/app/
rm /home/app/app/config/newrelic.yml
git fetch origin master
git reset --hard FETCH_HEAD
git pull --depth 1
cp /home/newrelic.yml /home/app/

RAILS_ENV=production


export  RAILS_ENV

/usr/local/rbenv/shims/bundle install

/usr/local/rbenv/shims/bundle exec rake db:migrate

/usr/local/rbenv/shims/bundle exec rake db:seed

/usr/local/rbenv/shims/bundle exec rake assets:precompile

SECRET_KEY_BASE=`/usr/local/rbenv/shims/bundle exec rake secret`
export SECRET_KEY_BASE RAILS_ENV

cp -rp /home/app/log /var/log/app

rm -rf  /home/app/log 

ln -s /var/log/app /home/app/log 

touch  /engines/var/run/startup_complete
rm /var/run/apache2/apache2.pid
/usr/sbin/apache2ctl -D FOREGROUND

rm /var/run/apache2/apache2.pid
rm /engines/var/run/startup_complete
<commit_msg>only master (will change to support current)<commit_after>#!/bin/bash
PATH="/usr/local/rbenv/bin:$PATH"
mkdir /var/log/apache2
cd /home/app/
rm /home/app/app/config/newrelic.yml
git fetch origin master
git reset --hard FETCH_HEAD
git pull --depth 1 master
cp /home/newrelic.yml /home/app/

RAILS_ENV=production


export  RAILS_ENV

/usr/local/rbenv/shims/bundle install

/usr/local/rbenv/shims/bundle exec rake db:migrate

/usr/local/rbenv/shims/bundle exec rake db:seed

/usr/local/rbenv/shims/bundle exec rake assets:precompile

SECRET_KEY_BASE=`/usr/local/rbenv/shims/bundle exec rake secret`
export SECRET_KEY_BASE RAILS_ENV

cp -rp /home/app/log /var/log/app

rm -rf  /home/app/log 

ln -s /var/log/app /home/app/log 

touch  /engines/var/run/startup_complete
rm /var/run/apache2/apache2.pid
/usr/sbin/apache2ctl -D FOREGROUND

rm /var/run/apache2/apache2.pid
rm /engines/var/run/startup_complete

{'fraction_non_alphanumeric': 0.12570781426953567, 'fraction_numerical': 0.007927519818799546, 'mean_word_length': 3.801630434782609, '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': '2002529', 'n_tokens_mistral': 750, 'n_tokens_neox': 726, 'n_words': 145}