<commit_before>#!/bin/bash
set -eu -o pipefail

# shellcheck disable=SC1091
readonly OS_ID=$(. /etc/os-release; echo "$ID")

echo 'Install Jobber'
readonly LATEST=$(
  curl -sSI https://github.com/dshearer/jobber/releases/latest \
    | tr -d '\r' \
    | awk -F'/' '/^location:/{print $NF}'
)
case $OS_ID in
  ol)
    sudo yum -y localinstall "https://github.com/dshearer/jobber/releases/download/${LATEST}/jobber-${LATEST#v}-1.el7.x86_64.rpm"
    sudo systemctl restart jobber
    sudo systemctl enable jobber
    ;;
  ubuntu)
    readonly DEB_FILE=$(mktemp)
    curl -L# "https://github.com/dshearer/jobber/releases/download/${LATEST}/jobber_${LATEST#v}-1_amd64.deb" -o "$DEB_FILE"
    sudo dpkg -i "$DEB_FILE"
    rm "$DEB_FILE"
    sudo systemctl restart jobber
    sudo systemctl enable jobber
    ;;
esac
<commit_msg>Support Jobber v1.4.1 or higher<commit_after>#!/bin/bash
set -eu -o pipefail

# shellcheck disable=SC1091
readonly OS_ID=$(. /etc/os-release; echo "$ID")

echo 'Install Jobber'
readonly LATEST=$(
  curl -sSI https://github.com/dshearer/jobber/releases/latest \
    | tr -d '\r' \
    | awk -F'/' '/^location:/{print $NF}'
)
case $OS_ID in
  ol)
    sudo yum -y localinstall "https://github.com/dshearer/jobber/releases/download/${LATEST}/jobber-${LATEST#v}-1.el8.x86_64.rpm"
    sudo systemctl restart jobber
    sudo systemctl enable jobber
    ;;
  ubuntu)
    readonly DEB_FILE=$(mktemp)
    curl -L# "https://github.com/dshearer/jobber/releases/download/${LATEST}/jobber_${LATEST#v}-1_amd64.deb" -o "$DEB_FILE"
    sudo dpkg -i "$DEB_FILE"
    rm "$DEB_FILE"
    sudo systemctl restart jobber
    sudo systemctl enable jobber
    ;;
esac

{'fraction_non_alphanumeric': 0.15606242496998798, 'fraction_numerical': 0.017406962785114045, 'mean_word_length': 3.352480417754569, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '631496', 'n_tokens_mistral': 695, 'n_tokens_neox': 636, 'n_words': 138}