<commit_before>#!/bin/bash
set -o nounset
set -o errexit

success () {
    printf "\e[32m$1\e[39m\n"
}

warning () {
    printf "\e[33m$1\e[39m\n"
}

error () {
    printf "\e[31m$1\e[39m\n"
}

remove () {
    Target=$1
    if [ -z "$Target" ]; then
        error "Target not given"
        return
    fi

    if [ ! -e $Target ]; then
        error "Target does not exist"
        return
    fi

    if [ -e $Target ]; then
        rm -r $Target
        success "Dir $Target removed"
    else
        rm $Target
        success "File $Target removed"
    fi
}

# bash
remove ~/.aliases
rm -f ~/.bashrc
rm -f ~/.profile
rm -f ~/.inputrc
rm -f ~/.functionrc

# ssh
rm -f ~/.ssh/config

# xfce
rm -f ~/.config/xfce4/xinitrc
rm -f ~/.config/menus/xfce-applications.menu

# gnupg
rm -f ~/.gnupg/gpg.conf

# git
rm -f ~/.gitconfig
rm -f ~/.gitignore
rm -f ~/.git/git-prompt.sh

# vim
rm -f ~/.vimrc
rm -rf ~/.vim/bundle
rm -rf ~/.vim/backup
rm -rf ~/.vim/temp

# haskell
rm -f ~/.ghc/ghci.conf
rm -f ~/.cabal/config

# bin
rm -f ~/bin/backup
rm -f ~/bin/changeTag
rm -f ~/bin/convertImages
rm -f ~/bin/gitHelper
rm -f ~/bin/mon
rm -f ~/bin/moveTmpMusic
rm -f ~/bin/organizeImages

# tmux
rm -f ~/.tmux.conf

# irssi
rm -f ~/.irssi/config
rm -f ~/.irssi/furry.theme

# asunder
rm -f ~/.asunder

# apollo
rm -f ~/.apollo
<commit_msg>Bugfixing wrong if for target exist<commit_after>#!/bin/bash
set -o nounset
set -o errexit

success () {
    printf "\e[32m$1\e[39m\n"
}

warning () {
    printf "\e[33m$1\e[39m\n"
}

error () {
    printf "\e[31m$1\e[39m\n"
}

remove () {
    Target=$1
    if [ -z "$Target" ]; then
        error "Target not given"
        return
    fi

    if [ ! -f $Target ] && [ ! -e $Target ]; then
        error "Target does not exist"
        return
    fi

    if [ -e $Target ]; then
        rm -r $Target
        success "Dir $Target removed"
    else
        rm $Target
        success "File $Target removed"
    fi
}

# bash
remove ~/.aliases
rm -f ~/.bashrc
rm -f ~/.profile
rm -f ~/.inputrc
rm -f ~/.functionrc

# ssh
rm -f ~/.ssh/config

# xfce
rm -f ~/.config/xfce4/xinitrc
rm -f ~/.config/menus/xfce-applications.menu

# gnupg
rm -f ~/.gnupg/gpg.conf

# git
rm -f ~/.gitconfig
rm -f ~/.gitignore
rm -f ~/.git/git-prompt.sh

# vim
rm -f ~/.vimrc
rm -rf ~/.vim/bundle
rm -rf ~/.vim/backup
rm -rf ~/.vim/temp

# haskell
rm -f ~/.ghc/ghci.conf
rm -f ~/.cabal/config

# bin
rm -f ~/bin/backup
rm -f ~/bin/changeTag
rm -f ~/bin/convertImages
rm -f ~/bin/gitHelper
rm -f ~/bin/mon
rm -f ~/bin/moveTmpMusic
rm -f ~/bin/organizeImages

# tmux
rm -f ~/.tmux.conf

# irssi
rm -f ~/.irssi/config
rm -f ~/.irssi/furry.theme

# asunder
rm -f ~/.asunder

# apollo
rm -f ~/.apollo

{'fraction_non_alphanumeric': 0.17706013363028952, 'fraction_numerical': 0.012620638455827766, 'mean_word_length': 1.9911209766925637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '290838', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1163, 'n_words': 325}