<commit_before>#!/bin/sh

set -u
set -e

# the user when provisioning is `vagrant`, but files are created by `www-data`
# don't fail if permissions don't get set on all files (useful when reloading the container)
chmod -R 777 storage bootstrap/cache || true

if [ ! -d node_modules ]; then
  mkdir -p ~/node_modules
  ln -snf ~/node_modules node_modules
fi

curl -sL https://getcomposer.org/installer > composer-installer
php composer-installer

# dummy user, no privilege github token to avoid github api limit
php composer.phar config -g github-oauth.github.com <PASSWORD>

rm -f bootstrap/cache/*.php bootstrap/cache/*.json

php composer.phar install

php artisan migrate --force
php artisan lang:js resources/assets/js/messages.js
php artisan laroute:generate

yarn
./node_modules/gulp/bin/gulp.js --production<commit_msg>Fix failing on travis<commit_after>#!/bin/sh

set -u
set -e

# the user when provisioning is `vagrant`, but files are created by `www-data`
# don't fail if permissions don't get set on all files (useful when reloading the container)
chmod -R 777 storage bootstrap/cache || true

if [ ! -d node_modules ]; then
  mkdir -p ~/node_modules
  ln -snf ~/node_modules node_modules
fi

curl -sL https://getcomposer.org/installer > composer-installer
php composer-installer

# dummy user, no privilege github token to avoid github api limit
php composer.phar config -g github-oauth.github.com <PASSWORD>

rm -f bootstrap/cache/*.php bootstrap/cache/*.json

php composer.phar install

php artisan migrate --force
php artisan lang:js resources/assets/js/messages.js
php artisan laroute:generate

command -v yarn || npm install -g yarn
yarn
./node_modules/gulp/bin/gulp.js --production
{'fraction_non_alphanumeric': 0.09652736904061213, 'fraction_numerical': 0.003531489111241907, 'mean_word_length': 4.089820359281437, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4238140', 'n_tokens_mistral': 573, 'n_tokens_neox': 535, 'n_words': 197}