<commit_before>#!/usr/bin/env bash

# THIS MUST BE RUN as bin/package_web.sh

# build assets
echo "Building assets"

pushd assets > /dev/null

npm install
gulp

popd > /dev/null

# build bundle assets
echo "Building bundle assets"
app/console assets:install

# build file list
echo "Creating list of files"

FILELIST=$(mktemp /tmp/orbital.XXXXXXXX)

echo "" > $FILELIST

echo "app/config/config.yml" >> $FILELIST
echo "app/config/config_prod.yml" >> $FILELIST
echo "app/config/parameters.yml.dist" >> $FILELIST
echo "app/config/routing.yml" >> $FILELIST
echo "app/config/security.yml" >> $FILELIST
echo "app/config/services.yml" >> $FILELIST
echo "app/config/version.yml" >> $FILELIST
echo "app/DoctrineMigrations/" >> $FILELIST
echo "app/Resources/" >> $FILELIST
echo "app/AppCache.php" >> $FILELIST
echo "app/AppKernel.php" >> $FILELIST
echo "app/autoload.php" >> $FILELIST
echo "app/console" >> $FILELIST
echo "src/AppBundle/" >> $FILELIST
echo "src/BarcodeBundle/" >> $FILELIST
echo "src/SocketIOBundle/" >> $FILELIST
echo "web/bundles/" >> $FILELIST
echo "web/css/" >> $FILELIST
echo "web/fonts/" >> $FILELIST
echo "web/images/" >> $FILELIST
echo "web/js/" >> $FILELIST
echo "web/app.php" >> $FILELIST
echo "web/favicon.ico" >> $FILELIST
echo "web/robots.txt" >> $FILELIST
echo "composer.json" >> $FILELIST
echo "composer.lock" >> $FILELIST

# build package
echo "Creating package"

VERSION=$(git rev-parse --short HEAD)
VERSION_DATE=$(date -d "$(git show -s --format=%ai HEAD)" +"%y%m%d%H%M")
OUTPUT="web-$VERSION.tar.gz"

# set version<commit_msg>Fixed package script<commit_after>#!/usr/bin/env bash

# THIS MUST BE RUN as bin/package_web.sh

# build assets
echo "Building assets"

pushd assets > /dev/null

npm install
gulp

popd > /dev/null

# build bundle assets
echo "Building bundle assets"
app/console assets:install

# build file list
echo "Creating list of files"

FILELIST=$(mktemp /tmp/orbital.XXXXXXXX)

echo "" > $FILELIST

echo "app/config/config.yml" >> $FILELIST
echo "app/config/config_prod.yml" >> $FILELIST
echo "app/config/parameters.yml.dist" >> $FILELIST
echo "app/config/routing.yml" >> $FILELIST
echo "app/config/security.yml" >> $FILELIST
echo "app/config/services.yml" >> $FILELIST
echo "app/config/version.yml" >> $FILELIST
echo "app/DoctrineMigrations/" >> $FILELIST
echo "app/Resources/" >> $FILELIST
echo "app/AppCache.php" >> $FILELIST
echo "app/AppKernel.php" >> $FILELIST
echo "app/autoload.php" >> $FILELIST
echo "app/console" >> $FILELIST
echo "src/AppBundle/" >> $FILELIST
echo "src/BarcodeBundle/" >> $FILELIST
echo "web/bundles/" >> $FILELIST
echo "web/css/" >> $FILELIST
echo "web/fonts/" >> $FILELIST
echo "web/images/" >> $FILELIST
echo "web/js/" >> $FILELIST
echo "web/app.php" >> $FILELIST
echo "web/favicon.ico" >> $FILELIST
echo "web/robots.txt" >> $FILELIST
echo "composer.json" >> $FILELIST
echo "composer.lock" >> $FILELIST

# build package
echo "Creating package"

VERSION=$(git rev-parse --short HEAD)
VERSION_DATE=$(date -d "$(git show -s --format=%ai HEAD)" +"%y%m%d%H%M")
OUTPUT="web-$VERSION.tar.gz"

# set version
{'fraction_non_alphanumeric': 0.17138211382113822, 'fraction_numerical': 0.0, 'mean_word_length': 4.771106941838649, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '3347770', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1085, 'n_words': 278}