<commit_before>#!/bin/bash

cd $(dirname ${0})
for dotfile in .?*; do
    case "$dotfile" in
        ".." )
            continue ;;
        \.git* )
            continue ;;
        ".doskey" )
            continue ;;
        * )
            ln -Fis "$PWD/$dotfile" $HOME ;;
    esac
done
<commit_msg>Improve symlink.sh<commit_after>#!/bin/bash

cd $(dirname ${0})
SANDBOX=$HOME/Dropbox/dev/sandbox
TARGET=$HOME
case $1 in
    make )
        cd dotfiles/
        for dotfile in .?*; do
            if [ -f $dotfile ]; then
                ln -sf $PWD/$dotfile $TARGET
                echo "created $TARGET/$dotfile@ as a symbolic link."
            elif [ $dotfile = '..' ]; then
                echo "parent directory"
            elif [ -d $dotfile ]; then
                cp -fpr $PWD/$dotfile $TARGET/
                echo "copy $TARGET/$dotfile"
            fi
        done
    ;;
    rm )
        cd $TARGET
        for dotfile in .?*; do
            if [ -L $dotfile ]; then
                rm -f $PWD/$dotfile
                echo "removed $TARGET/$dotfile@."
            fi
        done
    ;;
    test )
        echo "test"
    ;;
    * )
        echo "Require argument"
        echo "  make"
        echo "      create symbolic link and copy directory from dotfiles/."
        echo "  rm"
        echo "      remove symbolic link in $TARGET."
    ;;
esac

{'fraction_non_alphanumeric': 0.12527472527472527, 'fraction_numerical': 0.002197802197802198, 'mean_word_length': 1.2467105263157894, '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': '1110159', 'n_tokens_mistral': 437, 'n_tokens_neox': 407, 'n_words': 118}