<commit_before>#!/bin/bash

APP_PATH="$HOME/.dev-env"
git clone https://github.com/Alexoner/dev-env.git "$APP_PATH"

cd $APP_PATH || exit 1


#### main entry

link_files() {
    #rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
        #--exclude "README.md" --exclude "LICENSE" -avh --no-perms . ~;
	echo "creating symbol links of home files"
	for f in \
		.tmux \
		.babelrc \
		.bashrc \
		.curlrc \
		.esformatter \
		.eslintrc* \
		.gemrc \
		.gitconfig \
		.gitignore \
		.gitmodules \
		.init.sh \
		.pylintrc \
		.tern-project \
		.tmux.conf \
		.pip \
		bin
	do
		ln -sfv "$APP_PATH/$f" "$HOME/"
	done

}

if [ "$1" == "--force" -o "$1" == "-f" ]; then
    link_files;
else
    read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
    echo "";
    if [[ $REPLY =~ ^[Yy]$ ]]; then
        link_files;
    fi;
fi;

bash lib/initialize.sh --force shell python vim<commit_msg>logic OR syntax: `${x:-y}`<commit_after>#!/bin/bash

APP_PATH="$HOME/.dev-env"
git clone https://github.com/Alexoner/dev-env.git "$APP_PATH"

DEFAULT_MODULES='shell python vim'

cd $APP_PATH || exit 1


#### main entry

link_files() {
    #rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
        #--exclude "README.md" --exclude "LICENSE" -avh --no-perms . ~;
	echo "creating symbol links of home files"
	for f in \
		.tmux \
		.babelrc \
		.bashrc \
		.curlrc \
		.esformatter \
		.eslintrc* \
		.gemrc \
		.gitconfig \
		.gitignore \
		.gitmodules \
		.init.sh \
		.pylintrc \
		.tern-project \
		.tmux.conf \
		.pip \
		bin
	do
		ln -sfv "$APP_PATH/$f" "$HOME/"
	done

}

if [ "$1" == "--force" -o "$1" == "-f" ]; then
    link_files;
else
    read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
    echo "";
    if [[ $REPLY =~ ^[Yy]$ ]]; then
        link_files;
    fi;
fi;

# use ${x:-y} syntax for logic OR operation
bash lib/initialize.sh --force ${@:-${DEFAULT_MODULES}}
{'fraction_non_alphanumeric': 0.18546365914786966, 'fraction_numerical': 0.0040100250626566416, 'mean_word_length': 2.2667757774140753, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7337375', 'n_tokens_mistral': 856, 'n_tokens_neox': 788, 'n_words': 206}