<commit_before>#!/bin/bash
set -e
echo "Setting up VirtKick"
cd /opt/virtkick
if ! getent passwd virtkick-run > /dev/null; then
  useradd virtkick-run -c "VirtKick running account" -s /bin/bash -m $ADD_LIBVIRT -d /var/lib/virtkick-run
  chown -R virtkick-run /var/lib/virtkick-run # CentOS does not create a user dir with proper ownership (why?)
  chmod 700 /var/lib/virtkick-run # .. and without proper rights
fi
export VIRTKICK_RUN_USER='virtkick-run'
export VIRTKICK_RUN_USER_HOME='/var/lib/virtkick-run'
systemctl start sshd
systemctl enable sshd
. setup/system.sh
chown -R virtkick-run:root /opt/virtkick

if which firewall-cmd > /dev/null; then
  echo "Opening port 3000 on zone public"
  firewall-cmd --zone=public --add-port=3000/tcp --permanent
  firewall-cmd --reload
fi

for service in proxy webapp backend; do
  systemctl enable virtkick-$service
  systemctl start virtkick-$service
done

for n in 1 2 3 4 5; do
  systemctl enable virtkick-work@$n
  systemctl start virtkick-work@$n
done
<commit_msg>reduce the number of background jobs<commit_after>#!/bin/bash
set -e
echo "Setting up VirtKick"
cd /opt/virtkick
if ! getent passwd virtkick-run > /dev/null; then
  useradd virtkick-run -c "VirtKick running account" -s /bin/bash -m $ADD_LIBVIRT -d /var/lib/virtkick-run
  chown -R virtkick-run /var/lib/virtkick-run # CentOS does not create a user dir with proper ownership (why?)
  chmod 700 /var/lib/virtkick-run # .. and without proper rights
fi
export VIRTKICK_RUN_USER='virtkick-run'
export VIRTKICK_RUN_USER_HOME='/var/lib/virtkick-run'
systemctl start sshd
systemctl enable sshd
. setup/system.sh
chown -R virtkick-run:root /opt/virtkick

if which firewall-cmd > /dev/null; then
  echo "Opening port 3000 on zone public"
  firewall-cmd --zone=public --add-port=3000/tcp --permanent
  firewall-cmd --reload
fi

for service in proxy webapp backend; do
  systemctl enable virtkick-$service
  systemctl start virtkick-$service
done

for n in 1 2; do
  systemctl enable virtkick-work@$n
  systemctl start virtkick-work@$n
done

{'fraction_non_alphanumeric': 0.09897109260166585, 'fraction_numerical': 0.014208721215090642, 'mean_word_length': 3.9204819277108434, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6317187', 'n_tokens_mistral': 784, 'n_tokens_neox': 706, 'n_words': 230}