<commit_before># tasks/apt.bash

apt_install() {
  if ! is-macos && has-apt; then
    :
  fi
}<commit_msg>fix(config): add apt pkgs conf<commit_after># tasks/apt.bash

apt_install() {
  if ! is-macos && has-apt; then
    _apt_install_pkgs
  fi
}


_apt_install_pkgs() {
  local pkgs="$DOTFILES_CONFIG/apt/pkgs.conf"
  local pkg

  cat "$pkgs" | while read pkg; do
    if [ "${pkg:0:1}" == '#' ]; then
      continue
    fi

    pkg="${pkg%%\#*}"
    pkg="$(echo "$pkg" | tr -d '[:space:]')"

    if ! dpkg -s "$pkg" > /dev/null; then
      echo "> apt install $pkg -y"
      apt install "$pkg" -y
    fi
  done
}

{'fraction_non_alphanumeric': 0.18433931484502447, 'fraction_numerical': 0.0032626427406199023, 'mean_word_length': 2.590643274853801, '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': '4352006', 'n_tokens_mistral': 260, 'n_tokens_neox': 242, 'n_words': 60}