<commit_before>#!/bin/sh
# Run the setup scripts

# TODO: set a flag that will stop this script from running if already run

SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
cd $SCRIPTPATH

# Add Apache Ports and Domain Mappings
(cd apache ; sh add-ports.sh)

# Add Symlinks to output files
ln -s ../../.output/.build/public-ludumdare.com/all.js /vagrant/www/public-ludumdare.com/-/all.js
ln -s ../../.output/.build/public-ludumdare.com/all.css /vagrant/www/public-ludumdare.com/-/all.css
ln -s ../../.output/.build/public-ludumdare.com/all.svg /vagrant/www/public-ludumdare.com/-/all.svg
ln -s ../../.output/.build/public-jammer.vg/all.js /vagrant/www/public-jammer.vg/-/all.js
ln -s ../../.output/.build/public-jammer.vg/all.css /vagrant/www/public-jammer.vg/-/all.css
ln -s ../../.output/.build/public-jammer.vg/all.svg /vagrant/www/public-jammer.vg/-/all.svg
ln -s ../../.output/.build/public-jammer.bio/all.js /vagrant/www/public-jammer.bio/-/all.js
ln -s ../../.output/.build/public-jammer.bio/all.css /vagrant/www/public-jammer.bio/-/all.css
ln -s ../../.output/.build/public-jammer.bio/all.svg /vagrant/www/public-jammer.bio/-/all.svg

# Create tables
(cd /vagrant/www/src/shrub/tools; echo YES | php table-create)
<commit_msg>Added a potential improvement to the setup script, for vagrant destroy loops<commit_after>#!/bin/sh
# Run the setup scripts

# TODO: set a flag that will stop this script from running if already run

SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
cd $SCRIPTPATH

# Add Apache Ports and Domain Mappings
(cd apache ; sh add-ports.sh)

# Add Symlinks to output files
ln -svf ../../.output/.build/public-ludumdare.com/all.js /vagrant/www/public-ludumdare.com/-/all.js
ln -svf ../../.output/.build/public-ludumdare.com/all.css /vagrant/www/public-ludumdare.com/-/all.css
ln -svf ../../.output/.build/public-ludumdare.com/all.svg /vagrant/www/public-ludumdare.com/-/all.svg
ln -svf ../../.output/.build/public-jammer.vg/all.js /vagrant/www/public-jammer.vg/-/all.js
ln -svf ../../.output/.build/public-jammer.vg/all.css /vagrant/www/public-jammer.vg/-/all.css
ln -svf ../../.output/.build/public-jammer.vg/all.svg /vagrant/www/public-jammer.vg/-/all.svg
ln -svf ../../.output/.build/public-jammer.bio/all.js /vagrant/www/public-jammer.bio/-/all.js
ln -svf ../../.output/.build/public-jammer.bio/all.css /vagrant/www/public-jammer.bio/-/all.css
ln -svf ../../.output/.build/public-jammer.bio/all.svg /vagrant/www/public-jammer.bio/-/all.svg

# Create tables
(cd /vagrant/www/src/shrub/tools; echo YES | php table-create)

{'fraction_non_alphanumeric': 0.20264488525865423, 'fraction_numerical': 0.0007779074290159471, 'mean_word_length': 2.896969696969697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 20, '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': '6671108', 'n_tokens_mistral': 1089, 'n_tokens_neox': 988, 'n_words': 181}