<commit_before>#!/bin/sh

echo ""
echo "========================================"
echo "Stock watcher - Projet L3 (DELMAS/MHIRI)"
echo "========================================"
echo ""
echo "Stock value update frequency: every "`crontab -l|grep "/home/stock_watcher/getStock.sh"|cut -f2 -d" "|cut -f2 -d"/"`" hour(s)"
echo "Chart update frequency: every "`crontab -l|grep "/home/stock_watcher/getChart.sh"|cut -f2 -d" "|cut -f2 -d"/"`" hour(s)"
echo ""
echo "Here's a list of your followed stocks"
echo ""
for i in `cat Stocks.dat`
do
	echo "- "$i
done
echo ""
while true
do
	echo "Would you like to add stocks ? (yes/no)"
	read input
	if [ $input == "yes" ]; then
		./addStock.sh
		break
	fi
	if [ $input == "no" ]; then
		break
	fi
done
echo ""
while true
do
	echo "Would you like to change the stock value update frequency ? (yes/no)"
	read input
	if [ $input == "yes" ]; then
		echo "How often would you like it to be ? (in hours)"
		read value
		./setStockFrequency.sh $value
		break
	fi
	if [ $input == "no" ]; then
		break
	fi
done
echo ""
while true
do
	echo "Would you like to change the chart update frequency ? (yes/no)"
	read input
	if [ $input == "yes" ]; then
		echo "How often would you like it to be ? (in hours)"
		read value
		./setChartFrequency.sh $value
		break
	fi
	if [ $input == "no" ]; then
		break
	fi
done
echo ""
echo "Thanks !"<commit_msg>update: fix == issue, add value check for hours<commit_after>#!/bin/sh

echo ""
echo "========================================"
echo "Stock watcher - Projet L3 (DELMAS/MHIRI)"
echo "========================================"
echo ""
echo "Stock value update frequency: every "`crontab -l|grep "/home/stock_watcher/getStock.sh"|cut -f2 -d" "|cut -f2 -d"/"`" hour(s)"
echo "Chart update frequency: every "`crontab -l|grep "/home/stock_watcher/getChart.sh"|cut -f2 -d" "|cut -f2 -d"/"`" hour(s)"
echo ""
echo "Here's a list of your followed stocks"
echo ""
for i in `cat Stocks.dat`
do
	echo "- "$i
done
echo ""
while true
do
	echo "Would you like to add stocks ? (yes/no)"
	read input
	if [ $input = "yes" ]; then
		./addStock.sh
		break
	fi
	if [ $input = "no" ]; then
		break
	fi
done
echo ""
while true
do
	echo "Would you like to change the stock value update frequency ? (yes/no)"
	read input
	if [ $input = "yes" ]; then
		echo "How often would you like it to be ? (in hours)"
		while true
		do
			read value
			if [ $value -ge 0 ] && [ $value -le 23 ]; then
				break
			else
				echo "The value must be between 0 and 23"
			fi
		done
		./setStockFrequency.sh $value
		break
	fi
	if [ $input = "no" ]; then
		break
	fi
done
echo ""
while true
do
	echo "Would you like to change the chart update frequency ? (yes/no)"
	read input
	if [ $input = "yes" ]; then
		echo "How often would you like it to be ? (in hours)"
		while true
		do
			read value
			if [ $value -ge 0 ] && [ $value -le 23 ]; then
				break
			else
				echo "The value must be between 0 and 23"
			fi
		done
		./setChartFrequency.sh $value
		break
	fi
	if [ $input = "no" ]; then
		break
	fi
done
echo ""
echo "Thanks !"
{'fraction_non_alphanumeric': 0.18378024852844996, 'fraction_numerical': 0.007194244604316547, 'mean_word_length': 3.25452016689847, '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': '6354639', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1068, 'n_words': 417}