<commit_before>#!/bin/bash

# A relatively simple script to setup your VM if not using the Vagrant stuff.

TOP_DIR=$(readlink -f $(dirname $0) )

set -o nounset
set -o errexit


# Must be root, and not using 'sudo ./vm-setup.sh'
if [[ $EUID -ne 0 ]] || [[ -n ${SUDO_COMMAND:-} ]]; then
    echo "Must be root to run this script"
    echo "Please don't use 'sudo ./vm-setup.sh' as things can go wrong :("
    echo ""
    echo "Recommend to do: sudo su -"
    exit 1
fi<commit_msg>Allow to bypass sudo/root protections for vm-setup.sh<commit_after>#!/bin/bash

# A relatively simple script to setup your VM if not using the Vagrant stuff.

TOP_DIR=$(readlink -f $(dirname $0) )

set -o nounset
set -o errexit


# Must be root, and not using 'sudo ./vm-setup.sh'
if [[ "${1:-}" != "--force" ]]; then
    if [[ $EUID -ne 0 ]] || [[ -n ${SUDO_COMMAND:-} ]]; then
        echo "Must be root to run this script"
        echo "Please don't use 'sudo ./vm-setup.sh' as things can go wrong :("
        echo ""
        echo "Recommend to do: sudo su -"
        exit 1
    fi
fi
{'fraction_non_alphanumeric': 0.14352720450281425, 'fraction_numerical': 0.006566604127579738, 'mean_word_length': 2.641638225255973, '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': '7502965', 'n_tokens_mistral': 386, 'n_tokens_neox': 364, 'n_words': 148}