<commit_before>#!/bin/bash
# HMURL=honda
if [ -z $1 ]
	then
		HMURL="http://localhost:30002/api/heatmap"
	else
		HMURL="$1"
	fi
# echo $HMURL

echo "working..."
result=$(
for z in {1..9}
	do
		for i in {1..9}
			do
				# echo "123"$i"456\n"
				curl -d '[
			    	{
			        	"latDegrees" : 44.481'$i'51'$z', 
			        	"lonDegrees" : -73.192'$z'7'$i'1, 
			        	"secondsWorked" : 4'$i'120, 
			        	"precision" : 6
			    	}
				]' $HMURL 2>&1
			done

		for i in {1..9}
			do
				# echo "123"$i"456\n"
				curl -d '[
			    	{
			        	"latDegrees" : 44.481'$i''$z', 
			        	"lonDegrees" : -73.189'$i'17, 
			        	"secondsWorked" : 1'$i'120, 
			        	"precision" : 6
			    	}
				]' $HMURL 2>&1
			done

			for i in {1..9}
			do
				# echo "123"$i"456\n"
				curl -d '[
			    	{
			        	"latDegrees" : 44.4811'$i', 
			        	"lonDegrees" : -73.181'$i$z'117, 
			        	"secondsWorked" : 1'$i'120, 
			        	"precision" : 6
			    	}
				]' $HMURL 2>&1
			done
	done
)


if [[ "$result" == *"rror"* ]]; 
	then
	echo "your request produced an error"
elif [[ "$result" == *"404"* ]];
	then
	echo "404"
elif [[ "$result" == *"couldn"* ]];
	then
	echo "couldn't connect to host"
elif [[ "$result" == *"uccess"* ]];
	then
	echo "Success"
else
	echo "Undetermined Error"
fi<commit_msg>PopulateHeatmap working with Bash v4.2.25<commit_after>#!/bin/bash
# HMURL=honda
if [ -z $1 ]
	then
		HMURL="http://localhost:30002/api/heatmap"
	else
		HMURL="$1"
	fi
# echo $HMURL

echo "working..."
result=$(
for z in `seq 1 9`
	do
		for i in `seq 1 9`
			do
				# echo "123"$i"456\n"
				curl -d '[
			    	{
			        	"latDegrees" : 44.481'$i'51'$z', 
			        	"lonDegrees" : -73.192'$z'7'$i'1, 
			        	"secondsWorked" : 4'$i'120, 
			        	"precision" : 6
			    	}
				]' $HMURL 2>&1
			done

		for i in `seq 1 9`
			do
				# echo "123"$i"456\n"
				curl -d '[
			    	{
			        	"latDegrees" : 44.481'$i''$z', 
			        	"lonDegrees" : -73.189'$i'17, 
			        	"secondsWorked" : 1'$i'120, 
			        	"precision" : 6
			    	}
				]' $HMURL 2>&1
			done

			for i in `seq 1 9`
			do
				# echo "123"$i"456\n"
				curl -d '[
			    	{
			        	"latDegrees" : 44.4811'$i', 
			        	"lonDegrees" : -73.181'$i$z'117, 
			        	"secondsWorked" : 1'$i'120, 
			        	"precision" : 6
			    	}
				]' $HMURL 2>&1
			done
	done
)


if [ "$result" == *"rror"* ]; 
	then
	echo "your request produced an error"
elif [ "$result" == *"404"* ];
	then
	echo "404"
elif [ "$result" == *"couldn"* ];
	then
	echo "couldn't connect to host"
elif [ "$result" == *"uccess"* ];
	then
	echo "Success"
else
	echo "Undetermined Error"
	echo "$result"
fi
{'fraction_non_alphanumeric': 0.19056463595839523, 'fraction_numerical': 0.07578008915304606, 'mean_word_length': 1.7820247933884297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7513704', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1122, 'n_words': 247}