<commit_before>#!/bin/sh

set -eu

echo -n 'Installing auto-kick bot... '

# install the repos
curl --silent --location https://rpm.nodesource.com/setup_8.x | bash - >/dev/null
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo > /etc/yum.repos.d/yarn.repo

# install the packages
yum -y -q install nodejs yarn | grep -v "already installed and latest version" || true

if [ -d ${STEAM_HOME}/kf2autokick ]
then
    sudo -u steam sh -c 'cd ~/kf2autokick && git reset --quiet --hard && git pull --quiet'
else
    # obtain a copy of kf2_autokick
    # wonderful workaround for "could not change back" bullcrap by git
    sudo -u steam sh -c "cd && git clone --quiet https://github.com/Sinewyk/kf2_autokick.git kf2autokick"
fi

# 'build' it
sudo -u steam sh -c "cd ${STEAM_HOME}/kf2autokick && yarn --quiet --frozen-lockfile >/dev/null"

echo 'done.'<commit_msg>More bruteforce<commit_after>#!/bin/sh

set -eu

echo -n 'Installing auto-kick bot... '

# install the repos
curl --silent --location https://rpm.nodesource.com/setup_8.x | bash - >/dev/null
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo > /etc/yum.repos.d/yarn.repo

# install the packages
yum -y -q install nodejs yarn | grep -v "already installed and latest version" || true

if [ -d ${STEAM_HOME}/kf2autokick ]
then
    sudo -u steam sh -c 'cd ~/kf2autokick && git reset --quiet --hard && git pull --quiet'
else
    # obtain a copy of kf2_autokick
    # wonderful workaround for "could not change back" bullcrap by git
    sudo -u steam sh -c "cd && git clone --quiet https://github.com/Sinewyk/kf2_autokick.git kf2autokick"
fi

# 'build' it
sudo -u steam sh -c "cd ${STEAM_HOME}/kf2autokick && yarn --silent --frozen-lockfile >/dev/null 2>&1"

echo 'done.'
{'fraction_non_alphanumeric': 0.14564220183486237, 'fraction_numerical': 0.009174311926605505, 'mean_word_length': 3.0866510538641685, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 6, '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': '6842220', 'n_tokens_mistral': 691, 'n_tokens_neox': 641, 'n_words': 201}