<commit_before>#!/bin/sh

set -eu

# Steam user
if [ $(id -u steam 2>/dev/null || echo -1) -eq -1 ]
then
    echo -n 'Creating dedicated steam user... '
    useradd --user-group --create-home steam
    echo 'done.'
fi

# Deps
echo -n 'Installing dependencies... '
yum -y -q install glibc.i686 libstdc++.i686 unzip dos2unix
echo 'done.'

# SteamCMD
echo -n 'Installing Steam... '

# create the main steam dir
sudo -u steam sh -c 'mkdir -p ~/Steam'
# obtain steamcmd, tar overwrites by default
sudo -u steam sh -c 'curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar -C ~/Steam -zxf -'
# check if Steam is in PATH, yeah, it's ugly
if [ $(sudo -u steam sh -c ". ~/.bash_profile; env | grep ^PATH | tr -s ':' '\n' | grep Steam || echo -1") = -1 ]
then
    # add to PATH if needed
    sudo -u steam sh -c 'sed -i.orig '"'"'/^PATH=/ s@$@:$HOME/Steam@'"'"' ~/.bash_profile'
fi

echo 'done.'<commit_msg>Suppress 'already installed' messages<commit_after>#!/bin/sh

set -eu

# Steam user
if [ $(id -u steam 2>/dev/null || echo -1) -eq -1 ]
then
    echo -n 'Creating dedicated steam user... '
    useradd --user-group --create-home steam
    echo 'done.'
fi

# Deps
echo -n 'Installing dependencies... '
yum -y -q install glibc.i686 libstdc++.i686 unzip dos2unix | grep -v "already installed and latest version"
echo 'done.'

# SteamCMD
echo -n 'Installing Steam... '

# create the main steam dir
sudo -u steam sh -c 'mkdir -p ~/Steam'
# obtain steamcmd, tar overwrites by default
sudo -u steam sh -c 'curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar -C ~/Steam -zxf -'
# check if Steam is in PATH, yeah, it's ugly
if [ $(sudo -u steam sh -c ". ~/.bash_profile; env | grep ^PATH | tr -s ':' '\n' | grep Steam || echo -1") = -1 ]
then
    # add to PATH if needed
    sudo -u steam sh -c 'sed -i.orig '"'"'/^PATH=/ s@$@:$HOME/Steam@'"'"' ~/.bash_profile'
fi

echo 'done.'
{'fraction_non_alphanumeric': 0.1713990707279298, 'fraction_numerical': 0.0123902942694889, 'mean_word_length': 2.8224852071005917, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2711776', 'n_tokens_mistral': 774, 'n_tokens_neox': 723, 'n_words': 259}