<commit_before>require 'etc'

REAL_USER = Etc::getpwuid(Integer(ENV["SUDO_UID"]))[:name]
REAL_GROUP = Etc::getgrgid(Integer(ENV["SUDO_GID"]))[:name]
REAL_HOME = ENV['HOME']

if REAL_USER == "root" || REAL_GROUP == "root" || HOME == "/root"
    raise "Unable to determine non-privileged user/group/home"
end<commit_msg>Correct variable name REAL_HOME.<commit_after>require 'etc'

REAL_USER = Etc::getpwuid(Integer(ENV["SUDO_UID"]))[:name]
REAL_GROUP = Etc::getgrgid(Integer(ENV["SUDO_GID"]))[:name]
REAL_HOME = ENV['HOME']

if REAL_USER == "root" || REAL_GROUP == "root" || REAL_HOME == "/root"
    raise "Unable to determine non-privileged user/group/home"
end
{'fraction_non_alphanumeric': 0.18333333333333332, 'fraction_numerical': 0.0, 'mean_word_length': 6.963855421686747, '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': '7381612', 'n_tokens_mistral': 260, 'n_tokens_neox': 249, 'n_words': 46}