<commit_before>#!/bin/sh

PKGMGR="pacman --noconfirm"

update_package_list() {
  $PKGMGR -Syy
}

upgrade_packages() {
  $PKGMGR -Syu
}

# ideally have a map between general package names and distro-specific ones
__install_package() {
  $PKGMGR --needed -S $@
}

__remove_package() {
  $PKGMGR -R $@
}


# begin wrappers

__install_network_utils() {
  __install_package wget dnsutils
}

__install_sys_utils() {
  __install_package vim tmux mlocate speedtest-cli
}

__install_dev_utils() {
  __remove_package multilib-devel
  __install_package base-devel vim git
}

__install_yaourt() {
  __install_dev_utils
  __install_network_utils

  __install_package yajl

  # don't run if yaourt is already installed
  if ! hash yaourt 2>/dev/null ; then
    wget https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz
    wget https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz
    tar xvf package-query.tar.gz
    tar xvf yaourt.tar.gz
    cd package-query
    makepkg -i --asroot --noconfirm
    cd ../yaourt
    makepkg -i --asroot --noconfirm
  fi

    PKGMGR="yaourt --noconfirm"
}


#begin public functions

install_utils() {
  __install_yaourt
  __install_sys_utils
}

add_user() {
  useradd -m $1
}
<commit_msg>Install bc by default<commit_after>#!/bin/sh

PKGMGR="pacman --noconfirm"

update_package_list() {
  $PKGMGR -Syy
}

upgrade_packages() {
  $PKGMGR -Syu
}

# ideally have a map between general package names and distro-specific ones
__install_package() {
  $PKGMGR --needed -S $@
}

__remove_package() {
  $PKGMGR -R $@
}


# begin wrappers

__install_network_utils() {
  __install_package wget dnsutils
}

__install_sys_utils() {
  __install_package vim tmux mlocate speedtest-cli bc
}

__install_dev_utils() {
  __remove_package multilib-devel
  __install_package base-devel vim git
}

__install_yaourt() {
  __install_dev_utils
  __install_network_utils

  __install_package yajl

  # don't run if yaourt is already installed
  if ! hash yaourt 2>/dev/null ; then
    wget https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz
    wget https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz
    tar xvf package-query.tar.gz
    tar xvf yaourt.tar.gz
    cd package-query
    makepkg -i --asroot --noconfirm
    cd ../yaourt
    makepkg -i --asroot --noconfirm
  fi

    PKGMGR="yaourt --noconfirm"
}


#begin public functions

install_utils() {
  __install_yaourt
  __install_sys_utils
}

add_user() {
  useradd -m $1
}

{'fraction_non_alphanumeric': 0.10488100040338846, 'fraction_numerical': 0.0016135538523598225, 'mean_word_length': 3.500907441016334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '2569106', 'n_tokens_mistral': 953, 'n_tokens_neox': 910, 'n_words': 200}