<commit_before># Remove < 0.7.0 version
if [ -f ~/bin/simdem.py ]; then
    echo "Since version 0.7.0 Simdem is installed in a different way, we need to remove the old Simdem version."
    rm ~/bin/simdem.py
    rm ~/bin/simdem
fi

if [ -f /usr/local/bin/simdem.py ]; then
    echo "Since version 0.7.0 Simdem is installed in a different way, we need to remove the old Simdem version."
    sudo rm /usr/local/bin/simdem.py
    sudo rm /usr/local/bin/simdem
fi

if [ -f /.dockerenv ]; then
    echo "Running in a Docker container"
    IS_DOCKER=true
    INSTALL_DIR=~/bin/simdem-dev/
else
    echo "Not running in a Docker container"
    IS_DOCKER=false
    INSTALL_DIR=/usr/local/bin/simdem-dev/
fi

MAIN_FILE=main.py
SYMLINK=simdem

unameOut="$(uname -s)"
case "${unameOut}" in
    Linux*)     sudo apt update; sudo apt-get install -y python3-pip;;
    Darwin*)    brew install python3;;
    *)          echo "Unsupported OS: ${unameOut}"<commit_msg>don't use sudo if in a Docker container<commit_after>function removeEarlier() {
# Remove < 0.7.0 version
    if [ -f ~/bin/simdem.py ]; then
	echo "Since version 0.7.0 Simdem is installed in a different way, we need to remove the old Simdem version."
	rm ~/bin/simdem.py
	rm ~/bin/simdem
    fi

    if [ -f /usr/local/bin/simdem.py ]; then
	echo "Since version 0.7.0 Simdem is installed in a different way, we need to remove the old Simdem version."
	sudo rm /usr/local/bin/simdem.py
	sudo rm /usr/local/bin/simdem
    fi

    if [ -f /.dockerenv ]; then
	echo "Running in a Docker container"
	IS_DOCKER=true
	INSTALL_DIR=~/bin/simdem-dev/
    else
	echo "Not running in a Docker container"
	IS_DOCKER=false
	INSTALL_DIR=/usr/local/bin/simdem-dev/
    fi
}

function installLinuxDependencies() {
    if [ "$IS_DOCKER" = true ]; then
	apt update
	apt-get install -y python3-pip
    else
	sudo apt update
	sudo apt-get install -y python3-pip
    fi
}

MAIN_FILE=main.py
SYMLINK=simdem

unameOut="$(uname -s)"
case "${unameOut}" in
    Linux*)     installLinuxDependencies;;
    Darwin*)    brew install python3;;
    *)          echo "Unsupported OS: ${unameOut}"
{'fraction_non_alphanumeric': 0.11452910553715097, 'fraction_numerical': 0.010884997633696167, 'mean_word_length': 2.9440298507462686, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6568291', 'n_tokens_mistral': 780, 'n_tokens_neox': 742, 'n_words': 240}