<commit_before># Environment (for interactive and automated)

include(shell_environment_functions.conf.m4)

# language and locale settings
export LANG='en_US.UTF-8'
export LANGUAGE='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'

# timezone will be set during installation, and passed as M4 macro variables
export TZ="PH_TZ"
export TZDIR="PH_TZDIR"

# configuration variables for general commands
export BASH_ENV="${HOME}/.bash_env"
export TERM="${TERM:-xterm-256color}"
export PAGER='less --RAW-CONTROL-CHARS --LONG-PROMPT --HILITE-UNREAD --status-column --chop-long-lines --shift .3'
export EDITOR='vim'
export BROWSER='w3m'

# coloured man pages
export LESS_TERMCAP_mb=$(printf '\e[01;31m')       # enter blinking mode
export LESS_TERMCAP_md=$(printf '\e[01;38;5;75m')  # enter double-bright mode
export LESS_TERMCAP_me=$(printf '\e[0m')           # turn off all appearance modes (mb, md, so, us) 
export LESS_TERMCAP_se=$(printf '\e[0m')           # leave standout mode
export LESS_TERMCAP_so=$(printf '\e[01;33m')       # enter standout mode
export LESS_TERMCAP_ue=$(printf '\e[0m')           # leave underline mode
export LESS_TERMCAP_us=$(printf '\e[04;38;5;200m') # enter underline mode
export GROFF_NO_SGR=1

# default umask setting
umask 022

ifelse(PH_SYSTEM, CYGWIN,

    # Cygwin will use pip to install python executables
    export PATH="${HOME}/.local/bin:${PATH}"

    # Windows has a user local temporary and a system temporary
    # We unified Windows user local temporary with Cygwin /tmp using fstab
    export WINTMP="$(cmd /c 'ECHO %TMP%' | tr --delete '[:space:]')"
    export WINSYSTMP="$(cmd /c 'ECHO %SYSTEMROOT%' | tr --delete '[:space:]')\Temp"
    export TMPDIR='/tmp'
    export TMP='/tmp'
    export TEMP='/tmp'

    # setting windows code page to UTF8
    chcp 65001 >/dev/null

    # if we're not in an SSH session, then the Windows GUI is available
    if [ -z "$SSH_CLIENT" -a -z "$SSH_TTY" -a -z "$SSH_CONNECTION" ] -a ; then

        export BROWSER="$(import_exec firefox && echo "firefox" || { import_exec chrome && echo "chrome" || echo "$BROWSER"; })"

    fi

    # cygwin X
    if [ -n "$DISPLAY" ]; then
        
        # ...

    fi

,

    # TMPDIR is the canonical UNIX environment variable
    export TMPDIR="${TMPDIR:/tmp}"
    export TMP="${TMPDIR:/tmp}"
    export TEMP="${TMPDIR:/tmp}"

    # linux X
    if [ -n "$DISPLAY" ]; then

        import_exec emacs && export EDITOR="emacs" VISUAL="emacs"
        export BROWSER="$(import_exec firefox && echo "firefox" || { import_exec chromium && echo "chromium" || echo "$BROWSER"; })"
        export SUDO_ASKPASS="${HOME}/bin/dpass"

    fi

)

# private bin, man and info paths, for software that isn't managed by the package manager
export PATH="${HOME}/bin:${PATH}"
export MANPATH="${HOME}/man:${MANPATH}"
export INFOPATH="${HOME}/info:${INFOPATH}"
<commit_msg>Added FHS bin paths<commit_after># Environment (for interactive and automated)

include(shell_environment_functions.conf.m4)

# language and locale settings
export LANG='en_US.UTF-8'
export LANGUAGE='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'

# timezone will be set during installation, and passed as M4 macro variables
export TZ="PH_TZ"
export TZDIR="PH_TZDIR"

# configuration variables for general commands
export BASH_ENV="${HOME}/.bash_env"
export TERM="${TERM:-xterm-256color}"
export PAGER='less --RAW-CONTROL-CHARS --LONG-PROMPT --HILITE-UNREAD --status-column --chop-long-lines --shift .3'
export EDITOR='vim'
export BROWSER='w3m'

# coloured man pages
export LESS_TERMCAP_mb=$(printf '\e[01;31m')       # enter blinking mode
export LESS_TERMCAP_md=$(printf '\e[01;38;5;75m')  # enter double-bright mode
export LESS_TERMCAP_me=$(printf '\e[0m')           # turn off all appearance modes (mb, md, so, us) 
export LESS_TERMCAP_se=$(printf '\e[0m')           # leave standout mode
export LESS_TERMCAP_so=$(printf '\e[01;33m')       # enter standout mode
export LESS_TERMCAP_ue=$(printf '\e[0m')           # leave underline mode
export LESS_TERMCAP_us=$(printf '\e[04;38;5;200m') # enter underline mode
export GROFF_NO_SGR=1

# default umask setting
umask 022

ifelse(PH_SYSTEM, CYGWIN,

    # Prepend FHS bin paths
    export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:${PATH}"

    # Cygwin will use pip to install python executables
    export PATH="${HOME}/.local/bin:${PATH}"    

    # Windows has a user local temporary and a system temporary
    # We unified Windows user local temporary with Cygwin /tmp using fstab
    export WINTMP="$(cmd /c 'ECHO %TMP%' | tr --delete '[:space:]')"
    export WINSYSTMP="$(cmd /c 'ECHO %SYSTEMROOT%' | tr --delete '[:space:]')\Temp"
    export TMPDIR='/tmp'
    export TMP='/tmp'
    export TEMP='/tmp'

    # setting windows code page to UTF8
    chcp 65001 >/dev/null

    # if we're not in an SSH session, then the Windows GUI is available
    if [ -z "$SSH_CLIENT" -a -z "$SSH_TTY" -a -z "$SSH_CONNECTION" ] -a ; then

        export BROWSER="$(import_exec firefox && echo "firefox" || { import_exec chrome && echo "chrome" || echo "$BROWSER"; })"

    fi

    # cygwin X
    if [ -n "$DISPLAY" ]; then
        
        # ...

    fi

,

    # TMPDIR is the canonical UNIX environment variable
    export TMPDIR="${TMPDIR:/tmp}"
    export TMP="${TMPDIR:/tmp}"
    export TEMP="${TMPDIR:/tmp}"

    # linux X
    if [ -n "$DISPLAY" ]; then

        import_exec emacs && export EDITOR="emacs" VISUAL="emacs"
        export BROWSER="$(import_exec firefox && echo "firefox" || { import_exec chromium && echo "chromium" || echo "$BROWSER"; })"
        export SUDO_ASKPASS="${HOME}/bin/dpass"

    fi

)

# private bin, man and info paths, for software that isn't managed by the package manager
export PATH="${HOME}/bin:${PATH}"
export MANPATH="${HOME}/man:${MANPATH}"
export INFOPATH="${HOME}/info:${INFOPATH}"

{'fraction_non_alphanumeric': 0.1436152002738788, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 3.6373015873015873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2629351', 'n_tokens_mistral': 2115, 'n_tokens_neox': 1969, 'n_words': 567}