<commit_before>#! /usr/bin/env bash

if [[ ! -d "$HOME/bin" ]];then
    mkdir -p "$HOME/bin"
fi

if [[ ! -d "$MY_DOTFILES/bin" ]];then
    mkdir -p "$MY_DOTFILES/bin"
fi

export MY_DOTFILES="$HOME/.dotfiles"
export MY_BIN="$HOME/bin" # 1. executable 2. does not concerns privacy
export MY_PRIVATE_BIN="$MY_DOTFILES/bin" # 1. executable 2. concerns privacy 3. will be deleted in cleanup-process.
export MY_I3="$MY_DOTFILES/my-i3"

export MY_BUNDLED_BIN="$MY_I3/bin" # 1. executable/does not concerns privacy 2. built-in of this whole setup
export MY_SH="$MY_I3/sh"

export MY_SH_MODULE="$MY_SH/module"

# reset to avoid issue causing by repeat sourcing
unset PATH
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
export PATH="$MY_BUNDLED_BIN:$PATH"
export PATH="$MY_PRIVATE_BIN:$PATH"

unset PROMPT_COMMAND

# for internal function, no `Usage`, only print log
_sh_log() {
    if [[ "$#" == 2 ]];then
        local LOG_DIR="$MY_I3/log"
        if [[ -d "$LOG_DIR" ]]; then<commit_msg>fix: path<commit_after>#! /usr/bin/env bash

if [[ ! -d "$HOME/bin" ]];then
    mkdir -p "$HOME/bin"
fi

if [[ ! -d "$MY_DOTFILES/bin" ]];then
    mkdir -p "$MY_DOTFILES/bin"
fi

export MY_DOTFILES="$HOME/.dotfiles"
export MY_BIN="$HOME/bin" # 1. executable 2. does not concerns privacy
export MY_PRIVATE_BIN="$MY_DOTFILES/bin" # 1. executable 2. concerns privacy 3. will be deleted in cleanup-process.
export MY_I3="$MY_DOTFILES/my-i3"

export MY_BUNDLED_BIN="$MY_I3/bin" # 1. executable/does not concerns privacy 2. built-in of this whole setup
export MY_SH="$MY_I3/sh"

export MY_SH_MODULE="$MY_SH/module"

# reset to avoid issue causing by repeat sourcing
unset PATH
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="$MY_BUNDLED_BIN:$PATH"
export PATH="$MY_PRIVATE_BIN:$PATH"

unset PROMPT_COMMAND

# for internal function, no `Usage`, only print log
_sh_log() {
    if [[ "$#" == 2 ]];then
        local LOG_DIR="$MY_I3/log"
        if [[ -d "$LOG_DIR" ]]; then
{'fraction_non_alphanumeric': 0.15419847328244274, 'fraction_numerical': 0.013231552162849873, 'mean_word_length': 4.187335092348285, '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': '7076962', 'n_tokens_mistral': 778, 'n_tokens_neox': 736, 'n_words': 196}