<commit_before>#!/usr/bin/env bash
# ---------------------------------------------------------------------------
# install.sh -- Install dotfiles
#
# Copyright 2013 <NAME> (<EMAIL>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License at (http://www.gnu.org/licenses/) for
# more details.
#
# Version: 1.0
# ---------------------------------------------------------------------------

# Function that printout the correct usage of the script
usage()
{
cat << EOF

Usage: $0 options

This install dotfiles in your home directory.

OPTIONS:
 -h      Show this message
 -b      Install bash dotfiles
 -z      Install zsh dotfiles
 -c      Install tcsh/csh dotfiles
 -v      Install vim dotfiles
 -m      Install mrxvt dotfiles
 -f      Install fish dotfiles
 -a      Install all dotfiles 

EOF
}

# Check if provided any argument
if [ $# -eq 0 ]; then
    usage
    exit
fi

# Change to script directory
cd "$(dirname "${BASH_SOURCE}")"

# Check input parameters and options
while getopts "hbzcvmfa" optname
 do
	 case "$optname" in
	   "h")
	     usage
	     exit
	     ;;
	   "b")
	     rsync -avh --no-perms bash/ ~
	     ;;<commit_msg>Check for rsync existense<commit_after>#!/usr/bin/env bash
# ---------------------------------------------------------------------------
# install.sh -- Install dotfiles
#
# Copyright 2013 <NAME> (<EMAIL>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License at (http://www.gnu.org/licenses/) for
# more details.
#
# Version: 1.0
# ---------------------------------------------------------------------------

# Function that printout the correct usage of the script
usage()
{
cat << EOF

Usage: $0 options

This install dotfiles in your home directory.

OPTIONS:
 -h      Show this message
 -b      Install bash dotfiles
 -z      Install zsh dotfiles
 -c      Install tcsh/csh dotfiles
 -v      Install vim dotfiles
 -m      Install mrxvt dotfiles
 -f      Install fish dotfiles
 -a      Install all dotfiles 

EOF
}

# Check if provided any argument
if [ $# -eq 0 ]; then
    usage
    exit
fi

# Check if rsync is available
command -v rsync >/dev/null && continue || { echo "rsync command not found. Please install rsync program."; exit 1; }

# Change to script directory
cd "$(dirname "${BASH_SOURCE}")"

# Check input parameters and options
while getopts "hbzcvmfa" optname
 do
	 case "$optname" in
	   "h")
	     usage
	     exit
	     ;;
	   "b")
	     rsync -avh --no-perms bash/ ~
	     ;;
{'fraction_non_alphanumeric': 0.1680390362915523, 'fraction_numerical': 0.005794449527294907, 'mean_word_length': 2.100189035916824, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2579123', 'n_tokens_mistral': 923, 'n_tokens_neox': 873, 'n_words': 400}