<commit_before>#!/bin/bash
# bash_config.sh
# <NAME>

# Expand multiple subdirectories using the globstar (**) option
shopt -s globstar

# Navigate history matching typed input using up/down arrow keys
bind '"\e[A": history-search-backward' 2> /dev/null
bind '"\e[B": history-search-forward' 2> /dev/null

# If shell is Bash 4 or newer
if [ $BASH_VERSINFO -ge 4 ]; then

	# If Bash Completion is installed
	if [ -f /usr/local/share/bash-completion/bash_completion ]; then
		# Load completions
		source /usr/local/share/bash-completion/bash_completion
	fi

fi

# Limitations on system resources

# Increase open files limit
ulimit -n 1024 2> /dev/null
# Increase available processes limit
ulimit -u 1024 2> /dev/null

# Active NVM (Node Version Manager)
source /usr/local/opt/nvm/nvm.sh 2> /dev/null<commit_msg>Revert "Activate NVM for each new shell instance"<commit_after>#!/bin/bash
# bash_config.sh
# <NAME>

# Expand multiple subdirectories using the globstar (**) option
shopt -s globstar

# Navigate history matching typed input using up/down arrow keys
bind '"\e[A": history-search-backward' 2> /dev/null
bind '"\e[B": history-search-forward' 2> /dev/null

# If shell is Bash 4 or newer
if [ $BASH_VERSINFO -ge 4 ]; then

	# If Bash Completion is installed
	if [ -f /usr/local/share/bash-completion/bash_completion ]; then
		# Load completions
		source /usr/local/share/bash-completion/bash_completion
	fi

fi

# Limitations on system resources

# Increase open files limit
ulimit -n 1024 2> /dev/null
# Increase available processes limit
ulimit -u 1024 2> /dev/null
{'fraction_non_alphanumeric': 0.10934520025429116, 'fraction_numerical': 0.018436109345200253, 'mean_word_length': 3.996825396825397, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 14, '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': '5368689', 'n_tokens_mistral': 582, 'n_tokens_neox': 512, 'n_words': 177}