<commit_before>#!/bin/sh
#
# $Id: install.sh,v 0.5 10.07.2021 22:05:57 mozgan Exp $
#

# =========================================================================== #
# === === ===                      LET's GO!                      === === === #
# =========================================================================== #

DEBUG=true

# === include() ============================================================= #
include()
{
    [ $# -eq 0 ] && printf "There is nothing to include!\n" && exit 1;

    i=0
    j=$#
    while [ $i -lt $j ];
    do
        f=${1}
        i=$((i+1))

        [ ! -e ${f} ] && printf "'${f}' not found!\n" && exit 1;

        . ${f}
        shift
    done
}

# === main ================================================================== #

# clear screen
clear

# set dot directory
DOT_DIR="$HOME/dot.files" && [ ! -e $DOT_DIR ] &&   \
    printf "dot.files should be in $HOME directory!\n" && exit 1;

# include the definitions
[ ! -e $DOT_DIR/defs.sh ] && printf "$DOT_DIR/defs.sh not found! \n" && exit 1;
include $DOT_DIR/defs.sh

# include source files
include ${SRC_FILES}

[ ! `command -v git` ] && fail "Please install git!" && return;

backup  # ask whether the backup should be done
menu    # show menu
choice  # choice from menu

git stash

<commit_msg>do not check dot.files directory<commit_after>#!/bin/sh
#
# $Id: install.sh,v 0.5 10.07.2021 22:05:57 mozgan Exp $
#

# =========================================================================== #
# === === ===                      LET's GO!                      === === === #
# =========================================================================== #

DEBUG=true

# === include() ============================================================= #
include()
{
    [ $# -eq 0 ] && printf "There is nothing to include!\n" && exit 1;

    i=0
    j=$#
    while [ $i -lt $j ];
    do
        f=${1}
        i=$((i+1))

        [ ! -e ${f} ] && printf "'${f}' not found!\n" && exit 1;

        . ${f}
        shift
    done
}

# === main ================================================================== #

# clear screen
clear

# set dot directory
#DOT_DIR="$HOME/dot.files" && [ ! -e $DOT_DIR ] &&   \
#    printf "dot.files should be in $HOME directory!\n" && exit 1;

# include the definitions
[ ! -e $DOT_DIR/defs.sh ] && printf "$DOT_DIR/defs.sh not found! \n" && exit 1;
include $DOT_DIR/defs.sh

# include source files
include ${SRC_FILES}

[ ! `command -v git` ] && fail "Please install git!" && return;

backup  # ask whether the backup should be done
menu    # show menu
choice  # choice from menu

git stash


{'fraction_non_alphanumeric': 0.3605494086226631, 'fraction_numerical': 0.018313620755436855, 'mean_word_length': 2.936936936936937, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4836847', 'n_tokens_mistral': 845, 'n_tokens_neox': 773, 'n_words': 216}