<commit_before>#!/bin/bash

if [ -z "$1"];
then
  echo "Please choose an enviroment to deploy: dev/prod";
	exit 1;
elif [ "$1" = "dev"];
then
	echo "BACKEND: DEPLOYING DEVELOPMENT ENVIRONMENT";
elif [ "$1" = "prod" ];
then
	echo "BACKEND: DEPLOYING PRODUCTION ENVIRONMENT";
else
	echo "Enviroment "$1" is not a valid one."
	echo "Please chose a valid envoriment: dev/prod"
fi

ENVIROMENT=$1

# Fix limit on system for watching files
echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf && sysctl -p
npm dedupe

# Start transmission torrent client
echo "BACKEND: STARTING TRANSMISSION-DAEMON"
service transmission-daemon start

# Start service
echo "BACKEND: STARTING SERVICE WITH PM2"
pm2 start start.config.json --only downtorrent --env $ENVIROMENT --no-daemon
<commit_msg>Grammar fix on script<commit_after>#!/bin/bash

if [ -z "$1"];
then
  echo "Please choose an enviroment to deploy: dev/prod";
	exit 1;
elif [ "$1" = "dev"];
then
	echo "BACKEND: DEPLOYING DEVELOPMENT ENVIRONMENT";
elif [ "$1" = "prod" ];
then
	echo "BACKEND: DEPLOYING PRODUCTION ENVIRONMENT";
else
	echo "Enviroment "$1" is not a valid one."
	echo "Please chose a valid envoriment: dev/prod"
fi

ENVIRONMENT=$1

# Fix limit on system for watching files
echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf && sysctl -p
npm dedupe

# Start transmission torrent client
echo "BACKEND: STARTING TRANSMISSION-DAEMON"
service transmission-daemon start

# Start service
echo "BACKEND: STARTING SERVICE WITH PM2"
pm2 start start.config.json --only downtorrent --env $ENVIRONMENT --no-daemon

{'fraction_non_alphanumeric': 0.11363636363636363, 'fraction_numerical': 0.017676767676767676, 'mean_word_length': 4.541958041958042, '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': '3162889', 'n_tokens_mistral': 602, 'n_tokens_neox': 567, 'n_words': 191}