<commit_before>#!/bin/bash

echo 'Install Script for Mycroft-core:';
echo 'Do you want to continue to installing Mycroft-core?(y/n)';
read answer
if echo "$answer" | grep -iq "^y"; then
	#first if
	declare -A osInfo;
	osInfo[/etc/redhat-release]=yum
	osInfo[/etc/debian_version]=apt-get
	osInfo[/etc/arch-release]=pacman
	echo 'Please specify the destination you want to install Mycroft-core (default is '$HOME'/Mycroft-core, leave blank for default):';
		read location
	location_NO_EXTERNAL_SPACE="$(echo -e "${location}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
	if [ $location_NO_EXTERNAL_SPACE -eq '' ]; then
		dest=$HOME'/Mycroft-core'
	else
		dest=$location_NO_EXTERNAL_SPACE
	fi
	echo 'Destination set to : '$dest
	git --version 2>&1 >/dev/null
	GIT_IS_AVAILABLE=$?
	for f in ${!osInfo[@]}
		do
			if [[ -f $f ]]; then
				if [[ ${osInfo[$f]} == "apt-get" ]]; then
 	   				echo Installing<commit_msg>Fix logic when variable 'location' is empty<commit_after>#!/bin/bash

echo 'Install Script for Mycroft-core:';
echo 'Do you want to continue to installing Mycroft-core?(y/n)';
read answer
if echo "$answer" | grep -iq "^y"; then
	#first if
	declare -A osInfo;
	osInfo[/etc/redhat-release]=yum
	osInfo[/etc/debian_version]=apt-get
	osInfo[/etc/arch-release]=pacman
	echo 'Please specify the destination you want to install Mycroft-core (default is '$HOME'/Mycroft-core, leave blank for default):';
		read location
	location_NO_EXTERNAL_SPACE="$(echo -e "${location}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
	if [ -z "$location_NO_EXTERNAL_SPACE" ]; then
		dest=$HOME'/Mycroft-core'
	else
		dest=$location_NO_EXTERNAL_SPACE
	fi
	echo 'Destination set to : '$dest
	git --version 2>&1 >/dev/null
	GIT_IS_AVAILABLE=$?
	for f in ${!osInfo[@]}
		do
			if [[ -f $f ]]; then
				if [[ ${osInfo[$f]} == "apt-get" ]]; then
 	   				echo Installing
{'fraction_non_alphanumeric': 0.1754010695187166, 'fraction_numerical': 0.0021390374331550803, 'mean_word_length': 4.168508287292818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3720798', 'n_tokens_mistral': 745, 'n_tokens_neox': 696, 'n_words': 189}