<commit_before>#!/bin/bash

function exit_failure {
    if [ "$1" ]; then
        echo -e "\e[31mError: $1\e[0m"
    fi
    exit 1
}

function is_os_ubuntu {
    command -v lsb_relase > /dev/null 2>&1 || return 1
    lbs_release -a | grep -i ubuntu > /dev/null 2>&1 && return 0
    
    return 1
}

function is_user_root {
    id -un | grep root > /dev/null 2>&1 && return 0
    return 1
}

if ! is_os_ubuntu; then
    exit_failure "This script is only intended to be run on Ubuntu GNU/Linux."
fi

if ! is_user_root; then
    exit_failure "You must be root to execute this script (sudo -i)."
fi<commit_msg>Fix typos.<commit_after>#!/bin/bash

function exit_failure {
    if [ "$1" ]; then
        echo -e "\e[31mError: $1\e[0m"
    fi
    exit 1
}

function is_os_ubuntu {
    command -v lsb_release > /dev/null 2>&1 || return 1
    (lsb_release -a | grep -i ubuntu) > /dev/null 2>&1 && return 0
    
    return 1
}

function is_user_root {
    id -un | grep root > /dev/null 2>&1 && return 0
    return 1
}

if ! is_os_ubuntu; then
    exit_failure "This script is only intended to be run on Ubuntu GNU/Linux."
fi

if ! is_user_root; then
    exit_failure "You must be root to execute this script (sudo -i)."
fi
{'fraction_non_alphanumeric': 0.11633663366336634, 'fraction_numerical': 0.028052805280528052, 'mean_word_length': 2.5364431486880465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '1001485', 'n_tokens_mistral': 494, 'n_tokens_neox': 441, 'n_words': 152}