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

set -euo pipefail

uninstall_zsh_root() {
  echo "Removing bash completion script"
  sudo 'rm /usr/share/zsh/site-functions/_clever'
}

uninstall_bash_root() {
  echo "Removing zsh completion script"
  sudo 'rm /usr/share/bash-completion/completions/clever'
}

uninstall() {
  if which zsh >/dev/null 2>&1; then
    uninstall_zsh_root
  fi
  if which bash >/dev/null 2>&1; then
    uninstall_bash_root
  fi
}

uninstall<commit_msg>uninstall-autocomplete: require being run as root<commit_after>#!/usr/bin/env sh

set -euo pipefail

uninstall_zsh_root() {
  echo "Removing bash completion script"
  rm "/usr/share/zsh/site-functions/_clever"
}

uninstall_bash_root() {
  echo "Removing zsh completion script"
  rm "/usr/share/bash-completion/completions/clever"
}

uninstall() {
  if which zsh >/dev/null 2>&1; then
    uninstall_zsh_root
  fi
  if which bash >/dev/null 2>&1; then
    uninstall_bash_root
  fi
}

main() {
  if [ "$(id -u)" -ne 0 ]; then
    echo "This program requires root privileges" >&2
    echo "Please run it as root or try either 'pkexec ${0}' or 'sudo ${0}'" >&2
    exit 1
  fi
  uninstall
}

main
{'fraction_non_alphanumeric': 0.12110726643598616, 'fraction_numerical': 0.012110726643598616, 'mean_word_length': 3.5731225296442686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '502391', 'n_tokens_mistral': 461, 'n_tokens_neox': 432, 'n_words': 117}