<commit_before>#!/bin/bash

# Check the stage
if test -z "$1" 
then
	stage="testserver"
else
  stage="$1"
fi

echo "Usage: sh deploy.sh [stage]"
echo "Default stage: testserver"
echo "Available stages: testserver, production"


echo "\n"
read -p "You will deploy to the $stage environment. Are you sure? [Y/n] "
if [[ $REPLY =~ ^[Yy]$ ]]
then
    echo "\nDeploying"

		cd factlink-core
		cap $stage deploy
		
		cd ../factlink-js-library
		cap $stage deploy
		
		cd ../factlink-chrome-extension
		cap $stage deploy
		
		cd ../web-proxy
		cap $stage deploy
		
		echo "\nDeployed to $stage environment."
		exit 0
else
	echo "\nExit without deploy. Have a nice day =)\n"
	exit 0

fi<commit_msg>More verbose when deploying<commit_after>#!/bin/bash

# Check the stage
if test -z "$1" 
then
	stage="testserver"
else
  stage="$1"
fi

echo "Usage: sh deploy.sh [stage]"
echo "Default stage: testserver"
echo "Available stages: testserver, production"


echo "\n"
read -p "You will deploy to the $stage environment. Are you sure? [Y/n] "
if [[ $REPLY =~ ^[Yy]$ ]]
then
    echo "\nDeploying"

		echo "\n\n\n=== factlink-core ==="
		cd factlink-core
		cap -v $stage deploy
		
		echo "\n\n\n=== factlink-js-library ==="
		cd ../factlink-js-library
		cap -v $stage deploy
		
		echo "\n\n\n=== factlink-chrome-extension ==="
		cd ../factlink-chrome-extension
		cap -v $stage deploy
		
		echo "\n\n\n=== web-proxy ==="
		cd ../web-proxy
		cap -v $stage deploy
		
		echo "\nDeployed to $stage environment."
		exit 0
else
	echo "\nExit without deploy. Have a nice day =)\n"
	exit 0

fi
{'fraction_non_alphanumeric': 0.14795918367346939, 'fraction_numerical': 0.00510204081632653, 'mean_word_length': 3.002551020408163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7620124', 'n_tokens_mistral': 621, 'n_tokens_neox': 554, 'n_words': 194}