<commit_before>#!/bin/bash

cd /home/eqbeats/eqbeats
make || return 1
mkdir -p /srv/eqbeats/{tools,static,templates/{html,json,oembed}}

install -m775 eqbeats.fcgi launch.sh failsafe hitsd.sh ytmgr.sh /srv/eqbeats/

cd tools
find . -maxdepth 1 -type f -executable -exec install -m775 '{}' /srv/eqbeats/tools/ \;

cd ../templates
find . -type f -exec install -m664 '{}' /srv/eqbeats/templates/'{}' \;


cd ../static
install -m664 *.css *.txt *.swf *.png *.jpg *.woff *.ttf *.eot *.svg *.js 502.html /srv/eqbeats/static
#for f in *.js; do
#    jsmin < $f > /srv/eqbeats/static/$f
#done

install -m664 favicon-pub.ico /srv/eqbeats/static/favicon.ico

cd icons
install -m664 * /srv/eqbeats/static/icons

sudo -u eqbeats-pub -i bash -c "/srv/eqbeats/launch.sh restart"<commit_msg>update deploy.sh to include rc scripts<commit_after>#!/bin/bash

cd /home/eqbeats/eqbeats
make || return 1
mkdir -p /srv/eqbeats/{tools,static,templates/{html,json,oembed},rc}

install -m775 eqbeats.fcgi launch.sh failsafe hitsd.sh ytmgr.sh /srv/eqbeats/

cd tools
find . -maxdepth 1 -type f -executable -exec install -m775 '{}' /srv/eqbeats/tools/ \;

cd rc
find . -maxdepth 1 -type f -executable -exec install -m775 '{}' /srv/eqbeats/rc/ \;

cd ../templates
find . -type f -exec install -m664 '{}' /srv/eqbeats/templates/'{}' \;


cd ../static
install -m664 *.css *.txt *.swf *.png *.jpg *.woff *.ttf *.eot *.svg *.js 502.html /srv/eqbeats/static
#for f in *.js; do
#    jsmin < $f > /srv/eqbeats/static/$f
#done

install -m664 favicon-pub.ico /srv/eqbeats/static/favicon.ico

cd icons
install -m664 * /srv/eqbeats/static/icons

sudo -u eqbeats-pub -i bash -c "/srv/eqbeats/launch.sh restart"
{'fraction_non_alphanumeric': 0.1737567405632115, 'fraction_numerical': 0.029958058717795086, 'mean_word_length': 3.093137254901961, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1106671', 'n_tokens_mistral': 756, 'n_tokens_neox': 680, 'n_words': 176}