<commit_before>#!/usr/bin/env zsh

local UPDATES=$(git diff --name-only origin/master..HEAD | wc -l)

if [[ $UPDATES -gt 0 ]]; then
  echo $PR_YELLOW"Updates for dotfiles detected."$PR_NO_COLOR
  echo
else
  git --git-dir "$(realpath ${0:a:h}/..)/.git" fetch origin &> /dev/null &!
fi
<commit_msg>Use log instead of the full diff<commit_after>#!/usr/bin/env zsh

local UPDATES=$(git log --oneline --no-patch origin/master..HEAD | wc -l)

if [[ $UPDATES -gt 0 ]]; then
  echo $PR_YELLOW"Updates for dotfiles detected."$PR_NO_COLOR
  echo
else
  git --git-dir "$(realpath ${0:a:h}/..)/.git" fetch origin &> /dev/null &!
fi

{'fraction_non_alphanumeric': 0.18357487922705315, 'fraction_numerical': 0.00644122383252818, 'mean_word_length': 3.5072463768115942, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '764610', 'n_tokens_mistral': 254, 'n_tokens_neox': 243, 'n_words': 65}