<commit_before>#!/bin/bash

function show_help
{
    echo "Usage:"
    echo "    --packages       Install packages"
    echo "    --links          Create links for configuration files from this repository to ~/"
    echo "    --printers       Download and install pretty-printers for GDB"
    echo "    --fonts          Download and install special fonts for emacs"
    echo "    --documentation  Download and install DASH documentation files"
    echo "    --shell          Install zsh and plugins"
    echo "    --all            Do all of the above"
    exit 1
}

if [ $# -eq 0 ]; then
    show_help
    exit 0
fi

for ARGUMENT in "$@"; do
    case $ARGUMENT in
        --packages)
        PACKAGES=TRUE
        ;;
        --links)
        LINKS=TRUE
        ;;
        --printers)
        PRINTERS=TRUE
        ;;
        --fonts)
        FONTS=TRUE
        ;;
        --documentation)
        DOCUMENTATION=TRUE
        ;;
        --shell)
        SHELL=TRUE
        ;;
        --all)
        PACKAGES=TRUE
        LINKS=TRUE
        PRINTERS=TRUE
        FONTS=TRUE
        DOCUMENTATION=TRUE
        SHELL=TRUE
        ;;
        *)
        show_help
        ;;
    esac
    shift
done

if [ "$PACKAGES" = TRUE ]; then
    # install packages
    sudo dnf install PackageKit-command-not-found adobe-source-code-pro-fonts adobe-source-sans-pro-fonts adobe-source-serif-pro-fonts aspell aspell-de aspell-en autojump-zsh clang clang-analyzer clang-devel cmake cmake-gui colorgcc cppcheck csslint devscripts-checkbashisms ditaa emacs gcc gdb gdouros-symbola-fonts gnuplot ImageMagick kcachegrind links llvm llvm-devel mupdf ninja-build npm poppler-devel poppler-glib-devel recode saxon ShellCheck sloccount sushi the_silver_searcher uncrustify util-linux-user valgrind wordnet libxml2 xmlstarlet yank zsh

    sudo npm install -g stylelint eslint jshint jslint standard jscs

    echo "Install Peco from https://github.com/peco/peco and RTags from https://github.com/Andersbakken/rtags manually."
    
    # install ssh-connect
    SSH_CONNECT_DIRECTORY=~/.ssh-connect
    if [ ! -d "$SSH_CONNECT_DIRECTORY" ]; then
        git clone --recursive --quiet https://github.com/gko/ssh-connect "$SSH_CONNECT_DIRECTORY"
    else<commit_msg>use lucid emacs instead of GTK+ variant<commit_after>#!/bin/bash

function show_help
{
    echo "Usage:"
    echo "    --packages       Install packages"
    echo "    --links          Create links for configuration files from this repository to ~/"
    echo "    --printers       Download and install pretty-printers for GDB"
    echo "    --fonts          Download and install special fonts for emacs"
    echo "    --documentation  Download and install DASH documentation files"
    echo "    --shell          Install zsh and plugins"
    echo "    --all            Do all of the above"
    exit 1
}

if [ $# -eq 0 ]; then
    show_help
    exit 0
fi

for ARGUMENT in "$@"; do
    case $ARGUMENT in
        --packages)
        PACKAGES=TRUE
        ;;
        --links)
        LINKS=TRUE
        ;;
        --printers)
        PRINTERS=TRUE
        ;;
        --fonts)
        FONTS=TRUE
        ;;
        --documentation)
        DOCUMENTATION=TRUE
        ;;
        --shell)
        SHELL=TRUE
        ;;
        --all)
        PACKAGES=TRUE
        LINKS=TRUE
        PRINTERS=TRUE
        FONTS=TRUE
        DOCUMENTATION=TRUE
        SHELL=TRUE
        ;;
        *)
        show_help
        ;;
    esac
    shift
done

if [ "$PACKAGES" = TRUE ]; then
    # install packages
    sudo dnf install PackageKit-command-not-found adobe-source-code-pro-fonts adobe-source-sans-pro-fonts adobe-source-serif-pro-fonts aspell aspell-de aspell-en autojump-zsh clang clang-analyzer clang-devel cmake cmake-gui colorgcc cppcheck csslint devscripts-checkbashisms ditaa emacs-lucid gcc gdb gdouros-symbola-fonts gnuplot ImageMagick kcachegrind links llvm llvm-devel mupdf ninja-build npm poppler-devel poppler-glib-devel recode saxon ShellCheck sloccount sushi the_silver_searcher uncrustify util-linux-user valgrind wordnet libxml2 xmlstarlet yank zsh

    sudo npm install -g stylelint eslint jshint jslint standard jscs

    echo "Install Peco from https://github.com/peco/peco and RTags from https://github.com/Andersbakken/rtags manually."
    
    # install ssh-connect
    SSH_CONNECT_DIRECTORY=~/.ssh-connect
    if [ ! -d "$SSH_CONNECT_DIRECTORY" ]; then
        git clone --recursive --quiet https://github.com/gko/ssh-connect "$SSH_CONNECT_DIRECTORY"
    else
{'fraction_non_alphanumeric': 0.08485117725455353, 'fraction_numerical': 0.001776988005330964, 'mean_word_length': 2.109806629834254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '544786', 'n_tokens_mistral': 1477, 'n_tokens_neox': 1379, 'n_words': 381}