<commit_before>#!/bin/bash

set -x
set -e

BUILD_SERVER=fr-hq-build-02.corp.withings.com
BUILD_USER=scaleweb
BUILD_PATH=/home/$BUILD_USER/Cachet

ENVIRONMENT=$1
COMMIT=$2

# Sync source
rsync -az --delete --exclude="build/" ./ $BUILD_USER@$BUILD_SERVER:$BUILD_PATH/

# Build
ssh $BUILD_USER@$BUILD_SERVER "cd $BUILD_PATH; [[ -f composer.phar ]] || curl -sS https://getcomposer.org/installer | php"
ssh $BUILD_USER@$BUILD_SERVER "cd $BUILD_PATH; ./composer.phar install --no-dev -o"

# Retrieve build
if [ -d build ]; then
  rm -rf build
fi
mkdir build
#rsync -az $BUILD_USER@$BUILD_SERVER:$BUILD_PATH/ build/

<commit_msg>copy vendor/<commit_after>#!/bin/bash

set -x
set -e

BUILD_SERVER=fr-hq-build-02.corp.withings.com
BUILD_USER=scaleweb
BUILD_PATH=/home/$BUILD_USER/Cachet

ENVIRONMENT=$1
COMMIT=$2

# Sync source
rsync -az --delete --exclude="vendor/" ./ $BUILD_USER@$BUILD_SERVER:$BUILD_PATH/

# Build
ssh $BUILD_USER@$BUILD_SERVER "cd $BUILD_PATH; [[ -f composer.phar ]] || curl -sS https://getcomposer.org/installer | php"
ssh $BUILD_USER@$BUILD_SERVER "cd $BUILD_PATH; ./composer.phar install --no-dev -o"

# Retrieve build
if [ -d build ]; then
  rm -rf build
fi
mkdir build
rsync -az --delete $BUILD_USER@$BUILD_SERVER:$BUILD_PATH/vendor/ vendor/


{'fraction_non_alphanumeric': 0.15476190476190477, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 4.458874458874459, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4458987', 'n_tokens_mistral': 508, 'n_tokens_neox': 482, 'n_words': 106}