<commit_before>#!/bin/bash

if [ $# -lt 2 ]; then
	echo "Usage: deploy.sh <install directory> <username> <optional password>"
	exit
fi

cd $1

mkdir -p logs
mkdir -p artifacts
mkdir -p public-html/build

scripts/setup-centos7.sh > logs/setup-centos7.log 2>&1

touch artifacts/host-services.json

cat <<EOF >> artifacts/start.sh
#!/bin/bash

cd $1

scripts/python/git-commit-checker.py > logs/git-commit-checker.log 2>&1 &

scripts/python/watcher.py artifacts/master.latest.commit "scripts/update-build.sh > logs/update-build.log 2>&1" > logs/master-commit-watcher.log 2>&1 &

scripts/python/watcher.py binaries/libjaypea-api,artifacts/host-services.json "binaries/libjaypea-api --port 10443 > logs/libjaypea-api.log 2>&1" > logs/libjaypea-api-watcher.log 2>&1 &

scripts/python/watcher.py binaries/http-redirecter "binaries/http-redirecter --port 10080 > logs/http-redirecter.log 2>&1" > logs/http-redirecter-watcher.log 2>&1 &
<commit_msg>Cleaned start.sh creation in deploy.sh<commit_after>#!/bin/bash

if [ $# -lt 2 ]; then
	echo "Usage: deploy.sh <install directory> <username> <optional password>"
	exit
fi

cd $1

mkdir -p logs
mkdir -p artifacts
mkdir -p public-html/build

scripts/setup-centos7.sh > logs/setup-centos7.log 2>&1

touch artifacts/host-services.json

cat <<EOF >> artifacts/start.sh
#!/bin/bash

cd $1

scripts/python/git-commit-checker.py > logs/git-commit-checker.log 2>&1 &

scripts/python/watcher.py artifacts/master.latest.commit "scripts/update-build.sh" > logs/master-commit-watcher.log 2>&1 &

scripts/python/watcher.py binaries/libjaypea-api,artifacts/host-services.json "binaries/libjaypea-api --port 10443" > logs/libjaypea-api-watcher.log 2>&1 &

scripts/python/watcher.py binaries/http-redirecter "binaries/http-redirecter --port 10080" > logs/http-redirecter-watcher.log 2>&1 &

{'fraction_non_alphanumeric': 0.14994487320837926, 'fraction_numerical': 0.030871003307607496, 'mean_word_length': 4.32258064516129, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 39, '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': '6371503', 'n_tokens_mistral': 723, 'n_tokens_neox': 658, 'n_words': 128}